1/*! inspector-core - v3.0.7 - Build date: 2018-07-17 */ 2 3 4mksort={},function(){var a=function(a){var b=0,c=0;for(c in a)a.hasOwnProperty(c)&&b++;return b},b=function(a,b){var c=0,d=0;for(d in a)if(a.hasOwnProperty(d)){if(c==b)return d;c++}return!1},c=function(a,b,c){return c=null!==c?c:1,a=d(a)?1*a:a.toLowerCase(),b=d(b)?1*b:b.toLowerCase(),a==b?0:a>b?1*c:-1*c},d=function(a){return!isNaN(parseFloat(a))&&isFinite(a)};mksort.sort=function(d,e){e=e||{};var f=a(e);if(!f)return d.sort(c);for(var g in e)e[g]="desc"==e[g]||-1==e[g]?-1:"skip"==e[g]||0===e[g]?0:1;return d.sort(function(a,d){for(var g=0,h=0;0===g&&f>h;){var i=b(e,h);if(i){var j=e[i];g=c(a[i],d[i],j),h++}}return g}),d}}();var CSSLint=function(){function a(a,b,c,d){"use strict";this.messages=[],this.stats=[],this.lines=a,this.ruleset=b,this.allow=c,this.allow||(this.allow={}),this.ignore=d,this.ignore||(this.ignore=[])}var b=b||{},c=function(){var a;return(a=function(){function b(c,d,e){function f(h,i){if(!d[h]){if(!c[h]){var j="function"==typeof a&&a;if(!i&&j)return j(h,!0);if(g)return g(h,!0);var k=new Error("Cannot find module '"+h+"'");throw k.code="MODULE_NOT_FOUND",k}var l=d[h]={exports:{}};c[h][0].call(l.exports,function(a){var b=c[h][1][a];return f(b||a)},l,l.exports,b,c,d,e)}return d[h].exports}for(var g="function"==typeof a&&a,h=0;h<e.length;h++)f(e[h]);return f}return b}()({1:[function(a,b){"use strict";b.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeborder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Backgroun
4d color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Backgroun
4d color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},{}],2:[function(a,b){"use strict";function c(a,b,c){d.call(this,a,b,c,e.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(a)?this.type="descendant":">"===a?this.type="child":"+"===a?this.type="adjacent-sibling":"~"===a&&(this.type="sibling")}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],3:[function(a,b){"use strict";function c(a,b){this.match=function(b){var c;return b.mark(),c=a(b),c?b.drop():b.restore(),c},this.toString="function"==typeof b?b:function(){return b}}b.exports=c;var d=a("../util/StringReader"),e=a("../util/SyntaxError");c.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},c.parse=function(a){var b,f,g,h,i,j,k,l,m;if(b=new d(a),f=function(a){var c=b.readMatch(a);if(null===c)throw new e("Expected "+a,b.getLine(),b.getCol());return c},g=function(){for(var a=[h()];null!==b.readMatch(" | ");)a.push(h());return 1===a.length?a[0]:c.alt.apply(c,a)},h=function(){for(var a=[i()];null!==b.readMatch(" || ");)a.push(i());return 1===a.length?a[0]:c.oror.apply(c,a)},i=function(){for(var a=[j()];null!==b.readMatch(" && ");)a.push(j());return 1===a.length?a[0]:c.andand.apply(c,a)},j=function(){for(var a=[k()];null!==b.readMatch(/^ (?![&|\]])/);)a.push(k());return 1===a.length?a[0]:c.seq.apply(c,a)},k=function(){var a=l();if(null!==b.readMatch("?"))return a.question();if(null!==b.readMatch("*"))return a.star();if(null!==b.readMatch("+"))return a.plus();if(null!==b.readMatch("#"))return a.hash();if(null!==b.readMatch(/^\{\s*/)){var c=f(/^\d+/);f(/^\s*,\s*/);var d=f(/^\d+/);return f(/^\s*\}/),a.braces(Number(c),Number(d))}return a},l=function(){if(null!==b.readMatch("[ ")){var a=g();return f(" ]"),a}return c.fromType(f(/^[^ ?*+#{]+/))},m=g(),!b.eof())throw new e("Expected end of string",b.getLine(),b.getCol());return m},c.cast=function(a){return a instanceof c?a:c.parse(a)},c.fromType=function(b){var d=a("./ValidationTypes");return new c(function(a){return a.hasNext()&&d.isType(a,b)},b)},c.seq=function(){var a=Array.prototype.slice.call(arguments).map(c.cast);return 1===a.length?a[0]:new c(function(b){var c,d=!0;for(c=0;d&&c<a.length;c++)d=a[c].match(b);return d},function(b){var d=c.prec.SEQ,e=a.map(function(a){return a.toString(d)}).join(" ");return b>d&&(e="[ "+e+" ]"),e})},c.alt=function(){var a=Array.prototype.slice.call(arguments).map(c.cast);return 1===a.length?a[0]:new c(function(b){var c,d=!1;for(c=0;!d&&c<a.length;c++)d=a[c].match(b);return d},function(b){var d=c.prec.ALT,e=a.map(function(a){return a.toString(d)}).join(" | ");return b>d&&(e="[ "+e+" ]"),e})},c.many=function(b){var d=Array.prototype.slice.call(arguments,1).reduce(function(b,d){if(d.expand){var e=a("./ValidationTypes");b.push.apply(b,e.complex[d.expand].options)}else b.push(c.cast(d));return b},[]);b===!0&&(b=d.map(function(){return!0}));var e=new c(function(a){var c=[],e=0,f=0,g=function(a){return 0===f?(e=Math.max(a,e),a===d.length):a===e},h=function(e){for(var f=0;f<d.length;f++)if(!c[f])if(a.mark(),d[f].match(a)){if(c[f]=!0,h(e+(b===!1||b[f]?1:0)))return a.drop(),!0;
4a.restore(),c[f]=!1}else a.drop();return g(e)};if(h(0)||(f++,h(0)),b===!1)return e>0;for(var i=0;i<d.length;i++)if(b[i]&&!c[i])return!1;return!0},function(a){var e=b===!1?c.prec.OROR:c.prec.ANDAND,f=d.map(function(a,d){return b===!1||b[d]?a.toString(e):a.toString(c.prec.MOD)+"?"}).join(b===!1?" || ":" && ");return a>e&&(f="[ "+f+" ]"),f});return e.options=d,e},c.andand=function(){var a=Array.prototype.slice.call(arguments);return a.unshift(!0),c.many.apply(c,a)},c.oror=function(){var a=Array.prototype.slice.call(arguments);return a.unshift(!1),c.many.apply(c,a)},c.prototype={constructor:c,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(a){return c.seq(this,a)},or:function(a){return c.alt(this,a)},andand:function(a){return c.many(!0,this,a)},oror:function(a){return c.many(!1,this,a)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",c.cast(","))},braces:function(a,b,d,e){var f=this,g=e?e.then(this):this;return d||(d="{"+a+","+b+"}"),new c(function(c){var d,h=!0;for(d=0;b>d&&(h=d>0&&e?g.match(c):f.match(c),h);d++);return d>=a},function(){return f.toString(c.prec.MOD)+d})}}},{"../util/StringReader":24,"../util/SyntaxError":25,"./ValidationTypes":21}],4:[function(a,b){"use strict";function c(a,b){d.call(this,"("+a+(null!==b?":"+b:"")+")",a.startLine,a.startCol,e.MEDIA_FEATURE_TYPE),this.name=a,this.value=b}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],5:[function(a,b){"use strict";function c(a,b,c,f,g){d.call(this,(a?a+" ":"")+(b?b:"")+(b&&c.length>0?" and ":"")+c.join(" and "),f,g,e.MEDIA_QUERY_TYPE),this.modifier=a,this.mediaType=b,this.features=c}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],6:[function(a,b){"use strict";function c(a){d.call(this),this.options=a||{},this._tokenStream=null}b.exports=c;var d=a("../util/EventTarget"),e=a("../util/SyntaxError"),f=a("../util/SyntaxUnit"),g=a("./Combinator"),h=a("./MediaFeature"),i=a("./MediaQuery"),j=a("./PropertyName"),k=a("./PropertyValue"),l=a("./PropertyValuePart"),m=a("./Selector"),n=a("./SelectorPart"),o=a("./SelectorSubPart"),p=a("./TokenStream"),q=a("./Tokens"),r=a("./Validation");c.DEFAULT_TYPE=0,c.COMBINATOR_TYPE=1,c.MEDIA_FEATURE_TYPE=2,c.MEDIA_QUERY_TYPE=3,c.PROPERTY_NAME_TYPE=4,c.PROPERTY_VALUE_TYPE=5,c.PROPERTY_VALUE_PART_TYPE=6,c.SELECTOR_TYPE=7,c.SELECTOR_PART_TYPE=8,c.SELECTOR_SUB_PART_TYPE=9,c.prototype=function(){var a,b=new d,s={__proto__:null,constructor:c,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var a,b,c,d=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();d.peek()===q.IMPORT_SYM;)this._import(),this._skipCruft();for(;d.peek()===q.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(c=d.peek();c>q.EOF;){try{switch(c){case q.MEDIA_SYM:this._media(),this._skipCruft();break;case q.PAGE_SYM:this._page(),this._skipCruft();break;case q.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case q.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case q.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case q.DOCUMENT_SYM:this._document(),this._skipCruft();break;case q.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case q.UNKNOWN_SYM:if(d.get(),this.options.strict)throw new e("Unknown @ rule.",d.LT(0).startLine,d.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+d.LT(0).value+".",line:d.LT(0).startLine,col:d.LT(0).startCol}),a=0;d.advance([q.LBRACE,q.RBRACE])===q.LBRACE;)a++;for(;a;)d.advance([q.RBRACE]),a--;break;case q.S:this._readWhitespace();break;default:if(!this._ruleset())switch(c){case q.CHARSET_SYM:throw b=d.LT(1),this._charset(!1),new e("@charset not allowed here.",b.startLine,b.startCol);case q.IMPORT_SYM:throw b=d.LT(1),this._import(!1),new e("@import not allowed here.",b.startLine,b.startCol);case q.NAMESPACE_SYM:throw b=d.LT(1),this._namespace(!1),new e("@namespace not allowed here.",b.startLine,b.startCol);
4default:d.get(),this._unexpectedToken(d.token())}}}catch(f){if(!(f instanceof e)||this.options.strict)throw f;this.fire({type:"error",error:f,message:f.message,line:f.line,col:f.col})}c=d.peek()}c!==q.EOF&&this._unexpectedToken(d.token()),this.fire("endstylesheet")},_charset:function(a){var b,c,d,e,f=this._tokenStream;f.match(q.CHARSET_SYM)&&(d=f.token().startLine,e=f.token().startCol,this._readWhitespace(),f.mustMatch(q.STRING),c=f.token(),b=c.value,this._readWhitespace(),f.mustMatch(q.SEMICOLON),a!==!1&&this.fire({type:"charset",charset:b,line:d,col:e}))},_import:function(a){var b,c,d=this._tokenStream,e=[];d.mustMatch(q.IMPORT_SYM),c=d.token(),this._readWhitespace(),d.mustMatch([q.STRING,q.URI]),b=d.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),e=this._media_query_list(),d.mustMatch(q.SEMICOLON),this._readWhitespace(),a!==!1&&this.fire({type:"import",uri:b,media:e,line:c.startLine,col:c.startCol})},_namespace:function(a){var b,c,d,e,f=this._tokenStream;f.mustMatch(q.NAMESPACE_SYM),b=f.token().startLine,c=f.token().startCol,this._readWhitespace(),f.match(q.IDENT)&&(d=f.token().value,this._readWhitespace()),f.mustMatch([q.STRING,q.URI]),e=f.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),f.mustMatch(q.SEMICOLON),this._readWhitespace(),a!==!1&&this.fire({type:"namespace",prefix:d,uri:e,line:b,col:c})},_supports:function(a){var b,c,d=this._tokenStream;if(d.match(q.SUPPORTS_SYM)){for(b=d.token().startLine,c=d.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),d.mustMatch(q.LBRACE),this._readWhitespace(),a!==!1&&this.fire({type:"startsupports",line:b,col:c});;)if(!this._ruleset())break;d.mustMatch(q.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:b,col:c})}},_supports_condition:function(){var a,b=this._tokenStream;if(b.match(q.IDENT))a=b.token().value.toLowerCase(),"not"===a?(b.mustMatch(q.S),this._supports_condition_in_parens()):b.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();b.peek()===q.IDENT;)a=b.LT(1).value.toLowerCase(),("and"===a||"or"===a)&&(b.mustMatch(q.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var a,b=this._tokenStream;b.match(q.LPAREN)?(this._readWhitespace(),b.match(q.IDENT)?(a=b.token().value.toLowerCase(),"not"===a?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),b.mustMatch(q.RPAREN)):(b.unget(),this._supports_declaration_condition(!1))):(this._supports_condition(),this._readWhitespace(),b.mustMatch(q.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(a){var b=this._tokenStream;a!==!1&&b.mustMatch(q.LPAREN),this._readWhitespace(),this._declaration(),b.mustMatch(q.RPAREN)},_media:function(){var a,b,c,d=this._tokenStream;for(d.mustMatch(q.MEDIA_SYM),a=d.token().startLine,b=d.token().startCol,this._readWhitespace(),c=this._media_query_list(),d.mustMatch(q.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:c,line:a,col:b});;)if(d.peek()===q.PAGE_SYM)this._page();else if(d.peek()===q.FONT_FACE_SYM)this._font_face();else if(d.peek()===q.VIEWPORT_SYM)this._viewport();else if(d.peek()===q.DOCUMENT_SYM)this._document();else if(d.peek()===q.SUPPORTS_SYM)this._supports();else if(d.peek()===q.MEDIA_SYM)this._media();else if(!this._ruleset())break;d.mustMatch(q.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:c,line:a,col:b})},_media_query_list:function(){var a=this._tokenStream,b=[];for(this._readWhitespace(),(a.peek()===q.IDENT||a.peek()===q.LPAREN)&&b.push(this._media_query());a.match(q.COMMA);)this._readWhitespace(),b.push(this._media_query());return b},_media_query:function(){var a=this._tokenStream,b=null,c=null,d=null,e=[];if(a.match(q.IDENT)&&(c=a.token().value.toLowerCase(),"only"!==c&&"not"!==c?(a.unget(),c=null):d=a.token()),this._readWhitespace(),a.peek()===q.IDENT?(b=this._media_type(),null===d&&(d=a.token())):a.peek()===q.LPAREN&&(null===d&&(d=a.LT(1)),e.push(this._media_expression())),null===b&&0===e.length)return null;for(this._readWhitespace();a.match(q.IDENT);
4)"and"!==a.token().value.toLowerCase()&&this._unexpectedToken(a.token()),this._readWhitespace(),e.push(this._media_expression());return new i(c,b,e,d.startLine,d.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var a,b=this._tokenStream,c=null,d=null;return b.mustMatch(q.LPAREN),c=this._media_feature(),this._readWhitespace(),b.match(q.COLON)&&(this._readWhitespace(),a=b.LT(1),d=this._expression()),b.mustMatch(q.RPAREN),this._readWhitespace(),new h(c,d?new f(d,a.startLine,a.startCol):null)},_media_feature:function(){var a=this._tokenStream;return this._readWhitespace(),a.mustMatch(q.IDENT),f.fromToken(a.token())},_page:function(){var a,b,c=this._tokenStream,d=null,e=null;c.mustMatch(q.PAGE_SYM),a=c.token().startLine,b=c.token().startCol,this._readWhitespace(),c.match(q.IDENT)&&(d=c.token().value,"auto"===d.toLowerCase()&&this._unexpectedToken(c.token())),c.peek()===q.COLON&&(e=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:d,pseudo:e,line:a,col:b}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:d,pseudo:e,line:a,col:b})},_margin:function(){var a,b,c=this._tokenStream,d=this._margin_sym();return d?(a=c.token().startLine,b=c.token().startCol,this.fire({type:"startpagemargin",margin:d,line:a,col:b}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:d,line:a,col:b}),!0):!1},_margin_sym:function(){var a=this._tokenStream;return a.match([q.TOPLEFTCORNER_SYM,q.TOPLEFT_SYM,q.TOPCENTER_SYM,q.TOPRIGHT_SYM,q.TOPRIGHTCORNER_SYM,q.BOTTOMLEFTCORNER_SYM,q.BOTTOMLEFT_SYM,q.BOTTOMCENTER_SYM,q.BOTTOMRIGHT_SYM,q.BOTTOMRIGHTCORNER_SYM,q.LEFTTOP_SYM,q.LEFTMIDDLE_SYM,q.LEFTBOTTOM_SYM,q.RIGHTTOP_SYM,q.RIGHTMIDDLE_SYM,q.RIGHTBOTTOM_SYM])?f.fromToken(a.token()):null},_pseudo_page:function(){var a=this._tokenStream;return a.mustMatch(q.COLON),a.mustMatch(q.IDENT),a.token().value},_font_face:function(){var a,b,c=this._tokenStream;c.mustMatch(q.FONT_FACE_SYM),a=c.token().startLine,b=c.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:a,col:b}),this._readDeclarations(!0),this.fire({type:"endfontface",line:a,col:b})},_viewport:function(){var a,b,c=this._tokenStream;c.mustMatch(q.VIEWPORT_SYM),a=c.token().startLine,b=c.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:a,col:b}),this._readDeclarations(!0),this.fire({type:"endviewport",line:a,col:b})},_document:function(){var a,b=this._tokenStream,c=[],d="";for(b.mustMatch(q.DOCUMENT_SYM),a=b.token(),/^@-([^-]+)-/.test(a.value)&&(d=RegExp.$1),this._readWhitespace(),c.push(this._document_function());b.match(q.COMMA);)this._readWhitespace(),c.push(this._document_function());b.mustMatch(q.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:c,prefix:d,line:a.startLine,col:a.startCol});for(var e=!0;e;)switch(b.peek()){case q.PAGE_SYM:this._page();break;case q.FONT_FACE_SYM:this._font_face();break;case q.VIEWPORT_SYM:this._viewport();break;case q.MEDIA_SYM:this._media();break;case q.KEYFRAMES_SYM:this._keyframes();break;case q.DOCUMENT_SYM:this._document();break;default:e=Boolean(this._ruleset())}b.mustMatch(q.RBRACE),a=b.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:c,prefix:d,line:a.startLine,col:a.startCol})},_document_function:function(){var a,b=this._tokenStream;return b.match(q.URI)?(a=b.token().value,this._readWhitespace()):a=this._function(),a},_operator:function(a){var b=this._tokenStream,c=null;return(b.match([q.SLASH,q.COMMA])||a&&b.match([q.PLUS,q.STAR,q.MINUS]))&&(c=b.token(),this._readWhitespace()),c?l.fromToken(c):null},_combinator:function(){var a,b=this._tokenStream,c=null;return b.match([q.PLUS,q.GREATER,q.TILDE])&&(a=b.token(),c=new g(a.value,a.startLine,a.startCol),this._readWhitespace()),c},_unary_operator:function(){var a=this._tokenStream;return a.match([q.MINUS,q.PLUS])?a.token().value:null},_property:function(){var a,b,c,d,e=this._tokenStream,f=null,g=null;return e.peek()===q.STAR&&this.options.starHack&&(e.get(),b=e.token(),g=b.value,c=b.startLine,d=b.startCol),e.match(q.IDENT)&&(b=e.token(),a=b.value,"_"===a.charAt(0)&&this.options.underscoreHack&&(g="_",a=a.substring(1)),f=new j(a,g,c||b.startLine,d||b.startCol),this._readWhitespace()),f},_ruleset:function(){var a,b,c=this._tokenStream;try{b=this._selectors_group()}catch(d){if(!(d instanceof e)||this.options.strict)throw d;if(this.fire({type:"error",error:d,message:d.message,line:d.line,col:d.col}),a=c.advance([q.RBRACE]),a!==q.RBRACE)throw d;return!0}return b&&(this.fire({type:"startrule",selectors:b,line:b[0].line,col:b[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:b,line:b[0].line,col:b[0].col})),b},_selectors_group:function(){var a,b=this._tokenStream,c=[];if(a=this._selector(),null!==a)for(c.push(a);b.match(q.COMMA);)this._readWhitespace(),a=this._selector(),null!==a?c.push(a):this._unex
4pectedToken(b.LT(1));return c.length?c:null},_selector:function(){var a=this._tokenStream,b=[],c=null,d=null,e=null;if(c=this._simple_selector_sequence(),null===c)return null;for(b.push(c);;)if(d=this._combinator(),null!==d)b.push(d),c=this._simple_selector_sequence(),null===c?this._unexpectedToken(a.LT(1)):b.push(c);else{if(!this._readWhitespace())break;e=new g(a.token().value,a.token().startLine,a.token().startCol),d=this._combinator(),c=this._simple_selector_sequence(),null===c?null!==d&&this._unexpectedToken(a.LT(1)):(b.push(null!==d?d:e),b.push(c))}return new m(b,b[0].line,b[0].col)},_simple_selector_sequence:function(){var a,b,c=this._tokenStream,d=null,e=[],f="",g=[function(){return c.match(q.HASH)?new o(c.token().value,"id",c.token().startLine,c.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],h=0,i=g.length,j=null;for(a=c.LT(1).startLine,b=c.LT(1).startCol,d=this._type_selector(),d||(d=this._universal()),null!==d&&(f+=d);;){if(c.peek()===q.S)break;for(;i>h&&null===j;)j=g[h++].call(this);if(null===j){if(""===f)return null;break}h=0,e.push(j),f+=j.toString(),j=null}return""!==f?new n(d,e,f,a,b):null},_type_selector:function(){var a=this._tokenStream,b=this._namespace_prefix(),c=this._element_name();return c?(b&&(c.text=b+c.text,c.col-=b.length),c):(b&&(a.unget(),b.length>1&&a.unget()),null)},_class:function(){var a,b=this._tokenStream;return b.match(q.DOT)?(b.mustMatch(q.IDENT),a=b.token(),new o("."+a.value,"class",a.startLine,a.startCol-1)):null},_element_name:function(){var a,b=this._tokenStream;return b.match(q.IDENT)?(a=b.token(),new o(a.value,"elementName",a.startLine,a.startCol)):null},_namespace_prefix:function(){var a=this._tokenStream,b="";return(a.LA(1)===q.PIPE||a.LA(2)===q.PIPE)&&(a.match([q.IDENT,q.STAR])&&(b+=a.token().value),a.mustMatch(q.PIPE),b+="|"),b.length?b:null},_universal:function(){var a,b=this._tokenStream,c="";return a=this._namespace_prefix(),a&&(c+=a),b.match(q.STAR)&&(c+="*"),c.length?c:null},_attrib:function(){var a,b,c=this._tokenStream,d=null;return c.match(q.LBRACKET)?(b=c.token(),d=b.value,d+=this._readWhitespace(),a=this._namespace_prefix(),a&&(d+=a),c.mustMatch(q.IDENT),d+=c.token().value,d+=this._readWhitespace(),c.match([q.PREFIXMATCH,q.SUFFIXMATCH,q.SUBSTRINGMATCH,q.EQUALS,q.INCLUDES,q.DASHMATCH])&&(d+=c.token().value,d+=this._readWhitespace(),c.mustMatch([q.IDENT,q.STRING]),d+=c.token().value,d+=this._readWhitespace()),c.mustMatch(q.RBRACKET),new o(d+"]","attribute",b.startLine,b.startCol)):null},_pseudo:function(){var a,b,c=this._tokenStream,d=null,f=":";if(c.match(q.COLON)){if(c.match(q.COLON)&&(f+=":"),c.match(q.IDENT)?(d=c.token().value,a=c.token().startLine,b=c.token().startCol-f.length):c.peek()===q.FUNCTION&&(a=c.LT(1).startLine,b=c.LT(1).startCol-f.length,d=this._functional_pseudo()),!d){var g=c.LT(1).startLine,h=c.LT(0).startCol;throw new e("Expected a `FUNCTION` or `IDENT` after colon at line "+g+", col "+h+".",g,h)}d=new o(f+d,"pseudo",a,b)}return d},_functional_pseudo:function(){var a=this._tokenStream,b=null;return a.match(q.FUNCTION)&&(b=a.token().value,b+=this._readWhitespace(),b+=this._expression(),a.mustMatch(q.RPAREN),b+=")"),b},_expression:function(){for(var a=this._tokenStream,b="";a.match([q.PLUS,q.MINUS,q.DIMENSION,q.NUMBER,q.STRING,q.IDENT,q.LENGTH,q.FREQ,q.ANGLE,q.TIME,q.RESOLUTION,q.SLASH]);)b+=a.token().value,b+=this._readWhitespace();return b.length?b:null},_negation:function(){var a,b,c,d=this._tokenStream,e="",f=null;return d.match(q.NOT)&&(e=d.token().value,a=d.token().startLine,b=d.token().startCol,e+=this._readWhitespace(),c=this._negation_arg(),e+=c,e+=this._readWhitespace(),d.match(q.RPAREN),e+=d.token().value,f=new o(e,"not",a,b),f.args.push(c)),f},_negation_arg:function(){var a,b,c,d=this._tokenStream,e=[this._type_selector,this._universal,function(){return d.match(q.HASH)?new o(d.token().value,"id",d.token().startLine,d.token().startCol):null},this._class,this._attrib,this._pseudo],f=null,g=0,h=e.length;for(a=d.LT(1).startLine,b=d.LT(1).startCol;h>g&&null===f;)f=e[g].call(this),g++;return null===f&&this._unexpectedToken(d.LT(1)),c="elementName"===f.type?new n(f,[],f.toString(),a,b):new n(null,[f],f.toString(),a,b)},_declaration:function(){var a=this._tokenStream,b=null,c=null,d=null,e=null,f="";if(b=this._property(),null!==b){a.mustMatch(q.COLON),this._readWhitespace(),c=this._expr(),c&&0!==c.length||this._unex
4pectedToken(a.LT(1)),d=this._prio(),f=b.toString(),(this.options.starHack&&"*"===b.hack||this.options.underscoreHack&&"_"===b.hack)&&(f=b.text);try{this._validateProperty(f,c)}catch(g){e=g}return this.fire({type:"property",property:b,value:c,important:d,line:b.line,col:b.col,invalid:e}),!0}return!1},_prio:function(){var a=this._tokenStream,b=a.match(q.IMPORTANT_SYM);return this._readWhitespace(),b},_expr:function(a){var b=[],c=null,d=null;if(c=this._term(a),null!==c)for(b.push(c);;){if(d=this._operator(a),d&&b.push(d),c=this._term(a),null===c)break;b.push(c)}return b.length>0?new k(b,b[0].line,b[0].col):null},_term:function(a){var b,c,d,e=this._tokenStream,f=null,g=null,h=null,i=null;return f=this._unary_operator(),null!==f&&(c=e.token().startLine,d=e.token().startCol),e.peek()===q.IE_FUNCTION&&this.options.ieFilters?(g=this._ie_function(),null===f&&(c=e.token().startLine,d=e.token().startCol)):a&&e.match([q.LPAREN,q.LBRACE,q.LBRACKET])?(b=e.token(),h=b.endChar,g=b.value+this._expr(a).text,null===f&&(c=e.token().startLine,d=e.token().startCol),e.mustMatch(q.type(h)),g+=h,this._readWhitespace()):e.match([q.NUMBER,q.PERCENTAGE,q.LENGTH,q.ANGLE,q.TIME,q.FREQ,q.STRING,q.IDENT,q.URI,q.UNICODE_RANGE])?(g=e.token().value,null===f&&(c=e.token().startLine,d=e.token().startCol,i=l.fromToken(e.token())),this._readWhitespace()):(b=this._hexcolor(),null===b?(null===f&&(c=e.LT(1).startLine,d=e.LT(1).startCol),null===g&&(g=e.LA(3)===q.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(g=b.value,null===f&&(c=b.startLine,d=b.startCol))),null!==i?i:null!==g?new l(null!==f?f+g:g,c,d):null},_function:function(){var a,b=this._tokenStream,c=null,d=null;if(b.match(q.FUNCTION)){if(c=b.token().value,this._readWhitespace(),d=this._expr(!0),c+=d,this.options.ieFilters&&b.peek()===q.EQUALS)do for(this._readWhitespace()&&(c+=b.token().value),b.LA(0)===q.COMMA&&(c+=b.token().value),b.match(q.IDENT),c+=b.token().value,b.match(q.EQUALS),c+=b.token().value,a=b.peek();a!==q.COMMA&&a!==q.S&&a!==q.RPAREN;)b.get(),c+=b.token().value,a=b.peek();while(b.match([q.COMMA,q.S]));b.match(q.RPAREN),c+=")",this._readWhitespace()}return c},_ie_function:function(){var a,b=this._tokenStream,c=null;if(b.match([q.IE_FUNCTION,q.FUNCTION])){c=b.token().value;do for(this._readWhitespace()&&(c+=b.token().value),b.LA(0)===q.COMMA&&(c+=b.token().value),b.match(q.IDENT),c+=b.token().value,b.match(q.EQUALS),c+=b.token().value,a=b.peek();a!==q.COMMA&&a!==q.S&&a!==q.RPAREN;)b.get(),c+=b.token().value,a=b.peek();while(b.match([q.COMMA,q.S]));b.match(q.RPAREN),c+=")",this._readWhitespace()}return c},_hexcolor:function(){var a,b=this._tokenStream,c=null;if(b.match(q.HASH)){if(c=b.token(),a=c.value,!/#[a-f0-9]{3,6}/i.test(a))throw new e("Expected a hex color but found '"+a+"' at line "+c.startLine+", col "+c.startCol+".",c.startLine,c.startCol);this._readWhitespace()}return c},_keyframes:function(){var a,b,c,d=this._tokenStream,e="";for(d.mustMatch(q.KEYFRAMES_SYM),a=d.token(),/^@-([^-]+)-/.test(a.value)&&(e=RegExp.$1),this._readWhitespace(),c=this._keyframe_name(),this._readWhitespace(),d.mustMatch(q.LBRACE),this.fire({type:"startkeyframes",name:c,prefix:e,line:a.startLine,col:a.startCol}),this._readWhitespace(),b=d.peek();b===q.IDENT||b===q.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),b=d.peek();this.fire({type:"endkeyframes",name:c,prefix:e,line:a.startLine,col:a.startCol}),this._readWhitespace(),d.mustMatch(q.RBRACE),this._readWhitespace()},_keyframe_name:function(){var a=this._tokenStream;return a.mustMatch([q.IDENT,q.STRING]),f.fromToken(a.token())},_keyframe_rule:function(){var a=this._key_list();this.fire({type:"startkeyframerule",keys:a,line:a[0].line,col:a[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:a,line:a[0].line,col:a[0].col})},_key_list:function(){var a=this._tokenStream,b=[];for(b.push(this._key()),this._readWhitespace();a.match(q.COMMA);)this._readWhitespace(),b.push(this._key()),this._readWhitespace();return b},_key:function(){var a,b=this._tokenStream;if(b.match(q.PERCENTAGE))return f.fromToken(b.token());if(b.match(q.IDENT)){if(a=b.token(),/from|to/i.test(a.value))return f.fromToken(a);b.unget()}
4this._unexpectedToken(b.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([q.S,q.CDO,q.CDC]););},_readDeclarations:function(a,b){var c,d=this._tokenStream; 5this._readWhitespace(),a&&d.mustMatch(q.LBRACE),this._readWhitespace();try{for(;;){if(d.match(q.SEMICOLON)||b&&this._margin());else{if(!this._declaration())break;if(!d.match(q.SEMICOLON))break;this.fire({type:"endproperty",line:d.token().endLine,col:d.token().endCol})}this._readWhitespace()}d.mustMatch(q.RBRACE),this.fire({type:"ruleCloseBrace",line:d.token().endLine,col:d.token().endCol}),this._readWhitespace()}catch(f){if(!(f instanceof e)||this.options.strict)throw f;if(this.fire({type:"error",error:f,message:f.message,line:f.line,col:f.col}),c=d.advance([q.SEMICOLON,q.RBRACE]),c===q.RBRACE&&this.fire({type:"ruleCloseBrace",line:d.token().endLine,col:d.token().endCol}),c===q.SEMICOLON)this._readDeclarations(!1,b);else if(c!==q.RBRACE)throw f}},_readWhitespace:function(){for(var a=this._tokenStream,b="";a.match(q.S);)b+=a.token().value;return b},_unexpectedToken:function(a){throw new e("Unexpected token '"+a.value+"' at line "+a.startLine+", col "+a.startCol+".",a.startLine,a.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==q.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(a,b){r.validate(a,b)},parse:function(a){this._tokenStream=new p(a,q),this._stylesheet()},parseStyleSheet:function(a){return this.parse(a)},parseMediaQuery:function(a){this._tokenStream=new p(a,q);var b=this._media_query();return this._verifyEnd(),b},parsePropertyValue:function(a){this._tokenStream=new p(a,q),this._readWhitespace();var b=this._expr();return this._readWhitespace(),this._verifyEnd(),b},parseRule:function(a){this._tokenStream=new p(a,q),this._readWhitespace();var b=this._ruleset();return this._readWhitespace(),this._verifyEnd(),b},parseSelector:function(a){this._tokenStream=new p(a,q),this._readWhitespace();var b=this._selector();return this._readWhitespace(),this._verifyEnd(),b},parseStyleAttribute:function(a){a+="}",this._tokenStream=new p(a,q),this._readDeclarations()}};for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(b[a]=s[a]);return b}()},{"../util/EventTarget":23,"../util/SyntaxError":25,"../util/SyntaxUnit":26,"./Combinator":2,"./MediaFeature":4,"./MediaQuery":5,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./TokenStream":17,"./Tokens":18,"./Validation":19}],7:[function(a,b){"use strict";b.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"[ none | forwards | backwards | both ]#","animation-iteration-count":"[ <number> | infinite ]#","animation-name":"[ none | <single-animation-name> ]#","animation-play-state":"[ running | paused ]#","animation-timing-function":1,"-moz-animation-delay":"<time>#","-moz-animation-direction":"[ normal | alternate ]#","-moz-animation-duration":"<time>#","-moz-animation-iteration-count":"[ <number> | infinite ]#","-moz-animation-name":"[ none | <single-animation-name> ]#","-moz-animation-play-state":"[ running | paused ]#","-ms-animation-delay":"<time>#","-ms-animation-direction":"[ normal | alternate ]#","-ms-animation-duration":"<time>#","-ms-animation-iteration-count":"[ <number> | infinite ]#","-ms-animation-name":"[ none | <single-animation-name> ]#","-ms-animation-play-state":"[ running | paused ]#","-webkit-animation-delay":"<time>#","-webkit-animation-direction":"[ normal | alternate ]#","-webkit-animation-duration":"<time>#","-webkit-animation-fill-mode":"[ none | forwards | backwards | both ]#","-webkit-animation-iteration-count":"[ <number> | infinite ]#","-webkit-animation-name":"[ none | <single-animation-name> ]#","-webkit-animation-play-state":"[ running | paused ]#","-o-animation-delay":"<time>#","-o-animation-direction":"[ normal | alternate ]#","-o-animation-duration":"<time>#","-o-animation-iteration-count":"[ <number> | infinite ]#","-o-animation-name":"[ none | <single-animation-name> ]#","-o-animation-play-state":"[ running | paused ]#",appearance:"none | auto","-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","-ms-appearance":"none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal","-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 | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb
5-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical","-o-appearance":"none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",azimuth:"<azimuth>","backface-visibility":"visible | hidden",background:1,"background-attachment":"<attachment>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":1,"border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round | space ]{1,2}","border-image-slice":"<border-image-slice>","border-image-source":"<image> | none","border-image-width":"[ <length> | <percentage> | <number> | auto ]{1,4}","border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color>","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":"<border-radius>","border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color>","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":"<length>{1,2}","border-style":"<border-style>{1,4}","border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color>","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":"<border-width>{1,4}",bottom:"<margin-width>","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice | clone","-moz-box-direction":"normal | reverse","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis","-moz-box-pack":"start | end | center | justify","-o-box-decoration-break":"slice | clone","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice | clone","-webkit-box-direction":"normal | reverse","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis","-webkit-box-pack":"start | end | center | justify","box-decoration-break":"slice | clone","box-shadow":"<box-shadow>","box-sizing":"content-box | border-box","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom",clear:"none | right | left | both",clip:"<shape> | auto","-webkit-clip-path":"<clip-source> | <clip-path> | none","clip-path":"<clip-source> | <clip-path> | none","clip-rule":"nonzero | evenodd",color:"<color>","color-interpolation":"auto | sRGB | linearRGB","color-interpolation-filters":"auto | sRGB | linearRGB","color-profile":1,"color-rendering":"auto | optimizeSpeed | optimizeQuality","column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<sh
5ape> | auto",cue:"cue-after | cue-before","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | none | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge","drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"<integer>",elevation:"<angle> | below | level | above | higher | lower","empty-cells":"show | hide","enable-background":1,fill:"<paint>","fill-opacity":"<opacity-value>","fill-rule":"nonzero | evenodd",filter:"<filter-function-list> | none",fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<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","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify | distribute","-ms-flex-wrap":"nowrap | wrap | wrap-reverse","float":"left | right | none","float-offset":1,"flood-color":1,"flood-opacity":"<opacity-value>",font:"<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar","font-family":"<font-family>","font-feature-settings":"<feature-tag-value> | normal","font-kerning":"auto | normal | none","font-size":"<font-size>","font-size-adjust":"<number> | none","font-stretch":"<font-stretch>","font-style":"<font-style>","font-variant":"<font-variant> | normal | none","font-variant-alternates":"<font-variant-alternates> | normal","font-variant-caps":"<font-variant-caps> | normal","font-variant-east-asian":"<font-variant-east-asian> | normal","font-variant-ligatures":"<font-variant-ligatures> | normal | none","font-variant-numeric":"<font-variant-numeric> | normal","font-variant-position":"normal | sub | super","font-weight":"<font-weight>","glyph-orientation-horizontal":"<glyph-angle>","glyph-orientation-vertical":"auto | <glyph-angle>",grid:1,"grid-area":1,"grid-auto-columns":1,"grid-auto-flow":1,"grid-auto-position":1,"grid-auto-rows":1,"grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-start":1,"grid-column-end":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-start":1,"grid-row-end":1,"grid-row-span":"<integer>","grid-row-sizing":1,"grid-template":1,"grid-template-areas":1,"grid-template-columns":1,"grid-template-rows":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing>","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":"auto | optimizeSpeed | optimizeQuality","image-resolution":1,"ime-mode":"auto | normal | active | inactive | disabled","inline-box-align":"last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around","-webkit-ju
5stify-content":"flex-start | flex-end | center | space-between | space-around",kerning:"auto | <length>",left:"<margin-width>","letter-spacing":"<length> | normal","line-height":"<line-height>","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none","list-style-position":"inside | outside","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",margin:"<margin-width>{1,4}","margin-bottom":"<margin-width>","margin-left":"<margin-width>","margin-right":"<margin-width>","margin-top":"<margin-width>",mark:1,"mark-after":1,"mark-before":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,mask:1,"max-height":"<length> | <percentage> | <content-sizing> | none","max-width":"<length> | <percentage> | <content-sizing> | none","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,"object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",opacity:"<opacity-value>",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer>",outline:1,"outline-color":"<color> | invert","outline-offset":1,"outline-style":"<border-style>","outline-width":"<border-width>",overflow:"visible | hidden | scroll | auto","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:"<padding-width>{1,4}","padding-bottom":"<padding-width>","padding-left":"<padding-width>","padding-right":"<padding-width>","padding-top":"<padding-width>",page:1,"page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",position:"static | relative | absolute | fixed | sticky | -webkit-sticky","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width>",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,"shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",size:1,speak:"normal | none | spell-out","speak-header":"once | always","speak-numeral":"digits | continuous","speak-punctuation":"code | none","speech-rate":1,src:1,"stop-color":1,"stop-opacity":"<opacity-value>",stress:1,"string-set":1,stroke:"<paint>","stroke-dasharray":"none | <dasharray>","stroke-dashoffset":"<percentage> | <length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<miterlimit>","stroke-opacity":"<opacity-value>","stroke-width":"<percentage> | <length>","table-layout":"auto | fixed","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | match-parent | start | end","text-align-last":1,"text-anchor":"start | middle | end","text-decoration":"<text-decoration-line> || <text-decoration-style> || <text-decoration-color>","text-decoration-color":"<text-decoration-color>","text-decoration-line":"<text-decoration-line>","text-decoration-style":"<text-decoration-style>","text-decoration-skip":"none | [ objects || spaces || ink || edges || box-decoration ]","-webkit-text-decoration-skip":"none | [ objects || space
5s || ink || edges || box-decoration ]","text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage>","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none","text-wrap":"normal | none | avoid",top:"<margin-width>","-ms-touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation","touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext","user-modify":"read-only | read-write | write-only","user-select":"auto | text | none | contain | all","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer>",width:"<length> | <percentage> | <content-sizing> | auto","will-change":"<will-change>","word-break":"normal | keep-all | break-all","word-spacing":"<length> | normal","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb","z-index":"<integer> | auto",zoom:"<number> | <percentage> | normal"}},{}],8:[function(a,b){"use strict";function c(a,b,c,f){d.call(this,a,c,f,e.PROPERTY_NAME_TYPE),this.hack=b}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c,c.prototype.toString=function(){return(this.hack?this.hack:"")+this.text}},{"../util/SyntaxUnit":26,"./Parser":6}],9:[function(a,b){"use strict";function c(a,b,c){d.call(this,a.join(" "),b,c,e.PROPERTY_VALUE_TYPE),this.parts=a}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],10:[function(a,b){"use strict";function c(a){this._i=0,this._parts=a.parts,this._marks=[],this.value=a}b.exports=c,c.prototype.count=function(){return this._parts.length},c.prototype.isFirst=function(){return 0===this._i},c.prototype.hasNext=function(){return this._i<this._parts.length},c.prototype.mark=function(){this._marks.push(this._i)},c.prototype.peek=function(a){return this.hasNext()?this._parts[this._i+(a||0)]:null},c.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},c.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},c.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},c.prototype.drop=function(){this._marks.pop()}},{}],11:[function(a,b){"use strict";function c(a,b,g,h){var i=h||{};d.call(this,a,b,g,f.PROPERTY_VALUE_PART_TYPE),this.type="unknown";var j;if(/^([+-]?[\d.]+)([a-z]+)$/i.test(a))switch(this.type="dimension",this.value=Number(RegExp.$1),this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+-]?[\d.]+)%$/i.test(a)?(this.type="percentage",this.value=Number(RegExp.$1)):/^([+-]?\d+)$/i.test(a)?(this.type="integer",this.value=Number(RegExp.$1)):/^([+-]?[\d.]+)$/i.test(a)?(this.type="number",this.value=Number(RegExp.$1)):/^#([a-f0-9]{3,6})/i.test(a)?(this.type="color",j=RegExp.$1,3===j.length?(this.red=parseInt(j.charAt(0)+j.charAt(0),16),this.green=parseInt(j.charAt(1)+j.charAt(1),16),this.blue=parseInt(j.charAt(2)+j.charAt(2),16)):(this.red=parseInt(j.substring(0,2),16),this.green=parseInt(j.substring(2,4),16),this.blue=parseInt(j.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(a)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3)):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(a)?(this.type="color",this.red=255*Number(RegExp.$1)/100,this.green=255*Number(RegExp.$2)/100,this.blue=255*Number(RegExp.$3)/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/i.test(a)?(this.type="color",this.red=Number(RegExp.$1),this.green=Number(RegExp.$2),this.blue=Number(RegExp.$3),this.alpha=Number(RegExp.$4)):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(a)?(this.type="color",this.red=255*Number(RegExp.$1)/100,this.green=255*Number(RegExp.$2)/100,this.blue=255*Number(RegExp.$3)/100,this.alpha=Number(RegExp.$4)):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(a)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d.]+)\s*\)/i.test(a)?(this.type="color",this.hue=Number(RegExp.$1),this.saturation=Number(RegExp.$2)/100,this.lightness=Number(RegExp.$3)/100,this.alpha=Number(RegExp.$4)):/^url\(("([^\\"]|\.)*")\)/i.test(a)?(this.type="uri",this.uri=c.parseString(RegExp.$1)):/^([^(]+)\(/i.test(a)?(this.type="function",this.name=RegExp.$1,this.value=a):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(a)?(this.type="string",this.value=c.parseString(a)):/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(a)?(this.type="string",this.value=c.parseString(a)):e[a.toLowerCase()]?(this.type="color",j=e[a.toLowerCase()].substring(1),this.red=parseInt(j.substring(0,2),16),this.green=parseInt(j.substring(2,4),16),this.blue=parseInt(j.substring(4,6),16)):/^[,\/]$/.test(a)?(this.type="operator",this.value=a):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(a)&&(this.t
5ype="identifier",this.value=a);this.wasIdent=Boolean(i.ident)}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Colors"),f=a("./Parser"),g=a("./Tokens");c.prototype=new d,c.prototype.constructor=c,c.parseString=function(a){a=a.slice(1,-1);var b=function(a,b){if(/^(\n|\r\n|\r|\f)$/.test(b))return"";var c=/^[0-9a-f]{1,6}/i.exec(b);if(c){var d=parseInt(c[0],16);return String.fromCodePoint?String.fromCodePoint(d):String.fromCharCode(d)}return b};return a.replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/gi,b)},c.serializeString=function(a){var b=function(a,b){if('"'===b)return"\\"+b;var c=String.codePointAt?String.codePointAt(0):String.charCodeAt(0);return"\\"+c.toString(16)+" "};return'"'+a.replace(/["\r\n\f]/g,b)+'"'},c.fromToken=function(a){var b=new c(a.value,a.startLine,a.startCol,{ident:a.type===g.IDENT});return b}},{"../util/SyntaxUnit":26,"./Colors":1,"./Parser":6,"./Tokens":18}],12:[function(a,b){"use strict";var c=b.exports={__proto__:null,":first-letter":1,":first-line":1,":before":1,":after":1};c.ELEMENT=1,c.CLASS=2,c.isElement=function(a){return 0===a.indexOf("::")||c[a.toLowerCase()]===c.ELEMENT}},{}],13:[function(a,b){"use strict";function c(a,b,c){d.call(this,a.join(" "),b,c,e.SELECTOR_TYPE),this.parts=a,this.specificity=f.calculate(this)}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser"),f=a("./Specificity");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6,"./Specificity":16}],14:[function(a,b){"use strict";function c(a,b,c,f,g){d.call(this,c,f,g,e.SELECTOR_PART_TYPE),this.elementName=a,this.modifiers=b}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],15:[function(a,b){"use strict";function c(a,b,c,f){d.call(this,a,c,f,e.SELECTOR_SUB_PART_TYPE),this.type=b,this.args=[]}b.exports=c;var d=a("../util/SyntaxUnit"),e=a("./Parser");c.prototype=new d,c.prototype.constructor=c},{"../util/SyntaxUnit":26,"./Parser":6}],16:[function(a,b){"use strict";function c(a,b,c,d){this.a=a,this.b=b,this.c=c,this.d=d}b.exports=c;var d=a("./Pseudos"),e=a("./SelectorPart");c.prototype={constructor:c,compare:function(a){var b,c,d=["a","b","c","d"];for(b=0,c=d.length;c>b;b++){if(this[d[b]]<a[d[b]])return-1;if(this[d[b]]>a[d[b]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},c.calculate=function(a){function b(a){var c,e,f,g,h,l=a.elementName?a.elementName.text:"";for(l&&"*"!==l.charAt(l.length-1)&&k++,c=0,f=a.modifiers.length;f>c;c++)switch(h=a.modifiers[c],h.type){case"class":case"attribute":j++;break;case"id":i++;break;case"pseudo":d.isElement(h.text)?k++:j++;break;case"not":for(e=0,g=h.args.length;g>e;e++)b(h.args[e])}}var f,g,h,i=0,j=0,k=0;for(f=0,g=a.parts.length;g>f;f++)h=a.parts[f],h instanceof e&&b(h);return new c(0,i,j,k)}},{"./Pseudos":12,"./SelectorPart":14}],17:[function(a,b){"use strict";function c(a){return null!==a&&o.test(a)}function d(a){return null!==a&&/\d/.test(a)}function e(a){return null!==a&&r.test(a)}function f(a){return null!==a&&q.test(a)}function g(a){return null!==a&&/[a-z_\u00A0-\uFFFF\\]/i.test(a)}function h(a){return null!==a&&(g(a)||/[0-9\-\\]/.test(a))}function i(a){return null!==a&&(g(a)||/-\\/.test(a))}function j(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);return a}function k(a){l.call(this,a,n)}b.exports=k;var l=a("../util/TokenStreamBase"),m=a("./PropertyValuePart"),n=a("./Tokens"),o=/^[0-9a-fA-F]$/,p=/^[\u00A0-\uFFFF]$/,q=/\n|\r\n|\r|\f/,r=/\u0009|\u000a|\u000c|\u000d|\u0020/;k.prototype=j(new l,{_getToken:function(){var a,b=this._reader,c=null,f=b.getLine(),j=b.getCol();for(a=b.read();a;){switch(a){case"/":c="*"===b.peek()?this.commentToken(a,f,j):this.charToken(a,f,j);break;case"|":case"~":case"^":case"$":case"*":c="="===b.peek()?this.comparisonToken(a,f,j):this.charToken(a,f,j); 6break;case'"':case"'":c=this.stringToken(a,f,j);break;case"#":c=h(b.peek())?this.hashToken(a,f,j):this.charToken(a,f,j);break;case".":c=d(b.peek())?this.numberToken(a,f,j):this.charToken(a,f,j);break;case"-":c="-"===b.peek()?this.htmlCommentEndToken(a,f,j):g(b.peek())?this.identOrFunctionToken(a,f,j):this.charToken(a,f,j);break;case"!":c=this.importantToken(a,f,j);break;case"@":c=this.atRuleToken(a,f,j);break;case":":c=this.notToken(a,f,j);break;case"<":c=this.htmlCommentStartToken(a,f,j);break;case"\\":c=/[^\r\n\f]/.test(b.peek())?this.identOrFunctionToken(this.readEscape(a,!0),f,j):this.charToken(a,f,j);break;case"U":case"u":if("+"===b.peek()){c=this.unicodeRangeToken(a,f,j);break}default:c=d(a)?this.numberToken(a,f,j):e(a)?this.whitespaceToken(a,f,j):i(a)?this.identOrFunctionToken(a,f,j):this.charToken(a,f,j)}break}return c||null!==a||(c=this.createToken(n.EOF,null,f,j)),c},createToken:function(a,b,c,d,e){var f=this._reader;return e=e||{},{value:b,type:a,channel:e.channel,endChar:e.endChar,hide:e.hide||!1,startLine:c,startCol:d,endLine:f.getLine(),endCol:f.getCol()}},atRuleToken:function(a,b,c){var d,e=a,f=this._reader,g=n.CHAR;return f.mark(),d=this.readName(),e=a+d,g=n.type(e.toLowerCase()),(g===n.CHAR||g===n.UNKNOWN)&&(e.length>1?g=n.UNKNOWN_SYM:(g=n.CHAR,e=a,f.reset())),this.createToken(g,e,b,c)},charToken:function(a,b,c){var d=n.type(a),e={};return-1===d?d=n.CHAR:e.endChar=n[d].endChar,this.createToken(d,a,b,c,e)},commentToken:function(a,b,c){var d=this.readComment(a);return this.createToken(n.COMMENT,d,b,c)},comparisonToken:function(a,b,c){var d=this._reader,e=a+d.read(),f=n.type(e)||n.CHAR;return this.createToken(f,e,b,c)},hashToken:function(a,b,c){var d=this.readName(a);return this.createToken(n.HASH,d,b,c)},htmlCommentStartToken:function(a,b,c){var d=this._reader,e=a;return d.mark(),e+=d.readCount(3),"<!--"===e?this.createToken(n.CDO,e,b,c):(d.reset(),this.charToken(a,b,c))},htmlCommentEndToken:function(a,b,c){var d=this._reader,e=a;return d.mark(),e+=d.readCount(2),"-->"===e?this.createToken(n.CDC,e,b,c):(d.reset(),this.charToken(a,b,c))},identOrFunctionToken:function(a,b,c){var d,e=this._reader,f=this.readName(a),g=n.IDENT,h=["url(","url-prefix(","domain("];return"("===e.peek()?(f+=e.read(),h.indexOf(f.toLowerCase())>-1?(e.mark(),d=this.readURI(f),null===d?(e.reset(),g=n.FUNCTION):(g=n.URI,f=d)):g=n.FUNCTION):":"===e.peek()&&"progid"===f.toLowerCase()&&(f+=e.readTo("("),g=n.IE_FUNCTION),this.createToken(g,f,b,c)},importantToken:function(a,b,c){var d,f,g=this._reader,h=a,i=n.CHAR;for(g.mark(),f=g.read();f;){if("/"===f){if("*"!==g.peek())break;if(d=this.readComment(f),""===d)break}else{if(!e(f)){if(/i/i.test(f)){d=g.readCount(8),/mportant/i.test(d)&&(h+=f+d,i=n.IMPORTANT_SYM);break}break}h+=f+this.readWhitespace()}f=g.read()}return i===n.CHAR?(g.reset(),this.charToken(a,b,c)):this.createToken(i,h,b,c)},notToken:function(a,b,c){var d=this._reader,e=a;return d.mark(),e+=d.readCount(4),":not("===e.toLowerCase()?this.createToken(n.NOT,e,b,c):(d.reset(),this.charToken(a,b,c))},numberToken:function(a,b,c){var d,e=this._reader,f=this.readNumber(a),g=n.NUMBER,h=e.peek();return i(h)?(d=this.readName(e.read()),f+=d,g=/^em$|^ex$|^px$|^fr$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(d)?n.LENGTH:/^deg|^rad$|^grad$|^turn$/i.test(d)?n.ANGLE:/^ms$|^s$/i.test(d)?n.TIME:/^hz$|^khz$/i.test(d)?n.FREQ:/^dpi$|^dpcm$/i.test(d)?n.RESOLUTION:n.DIMENSION):"%"===h&&(f+=e.read(),g=n.PERCENTAGE),this.createToken(g,f,b,c)},stringToken:function(a,b,d){for(var g,h=a,i=a,j=this._reader,k=n.STRING,l=j.read();l;){if(i+=l,"\\"===l){if(l=j.read(),null===l)break;if(/[^\r\n\f0-9a-f]/i.test(l))i+=l;else{for(g=0;c(l)&&6>g;g++)i+=l,l=j.read();if("\r"===l&&"\n"===j.peek()&&(i+=l,l=j.read()),!e(l))continue;i+=l}}else{if(l===h)break;if(f(j.peek())){k=n.INVALID;break}}l=j.read()}return null===l&&(k=n.INVALID),this.createToken(k,i,b,d)},unicodeRangeToken:function(a,b,c){var d,e=this._reader,f=a,g=n.CHAR;return"+"===e.peek()&&(e.mark(),f+=e.read(),f+=this.readUnicodeRangePart(!0),2===f.length?e.reset():(g=n.UNICODE_RANGE,-1===f.indexOf("?")&&"-"===e.peek()&&(e.mark(),d=e.read(),d+=this.readUnicodeRangePart(!1),1===d.length?e.reset():f+=d))),this.createToken(g,f,b,c)},whitespaceToken:function(a,b,c){var d=a+this.readWhitespace();return this.createToken(n.S,d,b,c)},readUnicodeRangePart:function(a){for(var b=this._reader,d="",e=b.peek();c(e)&&d.length<6;)b.read(),d+=e,e=b.peek();if(a)for(;"?"===e&&d.length<6;)b.read(),d+=e,e=b.peek();return d},readWhitespace:function(){for(var a=this._reader,b="",c=a.peek();e(c);)a.read(),b+=c,c=a.peek();return b},readNumber:function(a){for(var b=this._reader,c=a,e="."===a,f=b.peek();f;){if(d(f))c+=b.read();else{if("."!==f)break;
6if(e)break;e=!0,c+=b.read()}f=b.peek()}return c},readString:function(){var a=this.stringToken(this._reader.read(),0,0);return a.type===n.INVALID?null:a.value},readURI:function(a){for(var b=this._reader,c=a,d="",f=b.peek();f&&e(f);)b.read(),f=b.peek();for("'"===f||'"'===f?(d=this.readString(),null!==d&&(d=m.parseString(d))):d=this.readUnquotedURL(),f=b.peek();f&&e(f);)b.read(),f=b.peek();return null===d||")"!==f?c=null:c+=m.serializeString(d)+b.read(),c},readUnquotedURL:function(a){var b,c=this._reader,d=a||"";for(b=c.peek();b;b=c.peek())if(p.test(b)||/^[-!#$%&*-[\]-~]$/.test(b))d+=b,c.read();else{if("\\"!==b)break;if(!/^[^\r\n\f]$/.test(c.peek(2)))break;d+=this.readEscape(c.read(),!0)}return d},readName:function(a){var b,c=this._reader,d=a||"";for(b=c.peek();b;b=c.peek())if("\\"===b){if(!/^[^\r\n\f]$/.test(c.peek(2)))break;d+=this.readEscape(c.read(),!0)}else{if(!h(b))break;d+=c.read()}return d},readEscape:function(a,b){var d=this._reader,e=a||"",f=0,g=d.peek();if(c(g))do e+=d.read(),g=d.peek();while(g&&c(g)&&++f<6);if(1===e.length){if(!/^[^\r\n\f0-9a-f]$/.test(g))throw new Error("Bad escape sequence.");if(d.read(),b)return g}else"\r"===g?(d.read(),"\n"===d.peek()&&(g+=d.read())):/^[ \t\n\f]$/.test(g)?d.read():g="";if(b){var h=parseInt(e.slice(a.length),16);return String.fromCodePoint?String.fromCodePoint(h):String.fromCharCode(h)}return e+g},readComment:function(a){var b=this._reader,c=a||"",d=b.read();if("*"===d){for(;d;){if(c+=d,c.length>2&&"*"===d&&"/"===b.peek()){c+=b.read();break}d=b.read()}return c}return""}})},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(a,b){"use strict";var c=b.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var a=[],b=Object.create(null);c.UNKNOWN=-1,c.unshift({name:"EOF"});for(var d=0,e=c.length;e>d;d++)if(a.push(c[d].name),c[c[d].name]=d,c[d].text)if(c[d].text instanceof Array)for(var f=0;f<c[d].text.length;f++)b[c[d].text[f]]=d;else b[c[d].text]=d;c.name=function(b){return a[b]},c.type=function(a){return b[a]||-1}}()},{}],19:[function(a,b){"use strict";{var c=a("./Matcher"),d=a("./Properties"),e=a("./ValidationTypes"),f=
6a("./ValidationError"),g=a("./PropertyValueIterator");b.exports={validate:function(a,b){var c,h=a.toString().toLowerCase(),i=new g(b),j=d[h];if(j){if("number"!=typeof j){if(e.isAny(i,"inherit | initial | unset")){if(i.hasNext())throw c=i.next(),new f("Expected end of value but found '"+c+"'.",c.line,c.col);return}this.singleProperty(j,i)}}else if(0!==h.indexOf("-"))throw new f("Unknown property '"+a+"'.",a.line,a.col)},singleProperty:function(a,b){var d,g=!1,h=b.value;if(g=c.parse(a).match(b),!g)throw b.hasNext()&&!b.isFirst()?(d=b.peek(),new f("Expected end of value but found '"+d+"'.",d.line,d.col)):new f("Expected ("+e.describe(a)+") but found '"+h+"'.",h.line,h.col);if(b.hasNext())throw d=b.next(),new f("Expected end of value but found '"+d+"'.",d.line,d.col)}}}},{"./Matcher":3,"./Properties":7,"./PropertyValueIterator":10,"./ValidationError":20,"./ValidationTypes":21}],20:[function(a,b){"use strict";function c(a,b,c){this.col=c,this.line=b,this.message=a}b.exports=c,c.prototype=new Error},{}],21:[function(a,b){"use strict";function c(a,b){Object.keys(b).forEach(function(c){a[c]=b[c]})}var d=b.exports,e=a("./Matcher");c(d,{isLiteral:function(a,b){var c,d,e=a.text.toString().toLowerCase(),f=b.split(" | "),g=!1;for(c=0,d=f.length;d>c&&!g;c++)"<"===f[c].charAt(0)?g=this.simple[f[c]](a):"()"===f[c].slice(-2)?g="function"===a.type&&a.name===f[c].slice(0,-2):e===f[c].toLowerCase()&&(g=!0);return g},isSimple:function(a){return Boolean(this.simple[a])},isComplex:function(a){return Boolean(this.complex[a])},describe:function(a){return this.complex[a]instanceof e?this.complex[a].toString(0):a},isAny:function(a,b){var c,d,e=b.split(" | "),f=!1;for(c=0,d=e.length;d>c&&!f&&a.hasNext();c++)f=this.isType(a,e[c]);return f},isAnyOfGroup:function(a,b){var c,d,e=b.split(" || "),f=!1;for(c=0,d=e.length;d>c&&!f;c++)f=this.isType(a,e[c]);return f?e[c-1]:!1},isType:function(a,b){var c=a.peek(),d=!1;return"<"!==b.charAt(0)?(d=this.isLiteral(c,b),d&&a.next()):this.simple[b]?(d=this.simple[b](c),d&&a.next()):d=this.complex[b]instanceof e?this.complex[b].match(a):this.complex[b](a),d},simple:{__proto__:null,"<absolute-size>":"xx-small | x-small | small | medium | large | x-large | xx-large","<animateable-feature>":"scroll-position | contents | <animateable-feature-name>","<animateable-feature-name>":function(a){return this["<ident>"](a)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(a)},"<angle>":function(a){return"angle"===a.type},"<attachment>":"scroll | fixed | local","<attr>":"attr()","<basic-shape>":"inset() | circle() | ellipse() | polygon()","<bg-image>":"<image> | <gradient> | none","<border-style>":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","<border-width>":"<length> | thin | medium | thick","<box>":"padding-box | border-box | content-box","<clip-source>":"<uri>","<color>":function(a){return"color"===a.type||"transparent"===String(a)||"currentColor"===String(a)},"<color-svg>":function(a){return"color"===a.type},"<content>":"content()","<content-sizing>":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","<feature-tag-value>":function(a){return"function"===a.type&&/^[A-Z0-9]{4}$/i.test(a)},"<filter-function>":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","<flex-basis>":"<width>","<flex-direction>":"row | row-reverse | column | column-reverse","<flex-grow>":"<number>","<flex-shrink>":"<number>","<flex-wrap>":"nowrap | wrap | wrap-reverse","<font-size>":"<absolute-size> | <relative-size> | <length> | <percentage>","<font-stretch>":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","<font-style>":"normal | italic | oblique","<font-variant-caps>":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","<font-variant-css21>
6":"normal | small-caps","<font-weight>":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","<generic-family>":"serif | sans-serif | cursive | fantasy | monospace","<geometry-box>":"<shape-box> | fill-box | stroke-box | view-box","<glyph-angle>":function(a){return"angle"===a.type&&"deg"===a.units},"<gradient>":function(a){return"function"===a.type&&/^(?:-(?:ms|moz|o|webkit)-)?(?:repeating-)?(?:radial-|linear-)?gradient/i.test(a)},"<icccolor>":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","<ident>":function(a){return"identifier"===a.type||a.wasIdent},"<ident-not-generic-family>":function(a){return this["<ident>"](a)&&!this["<generic-family>"](a)},"<image>":"<uri>","<integer>":function(a){return"integer"===a.type},"<length>":function(a){return"function"===a.type&&/^(?:-(?:ms|moz|o|webkit)-)?calc/i.test(a)?!0:"length"===a.type||"number"===a.type||"integer"===a.type||"0"===String(a)},"<line>":function(a){return"integer"===a.type},"<line-height>":"<number> | <length> | <percentage> | normal","<margin-width>":"<length> | <percentage> | auto","<miterlimit>":function(a){return this["<number>"](a)&&a.value>=1},"<nonnegative-length-or-percentage>":function(a){return(this["<length>"](a)||this["<percentage>"](a))&&("0"===String(a)||"function"===a.type||a.value>=0)},"<nonnegative-number-or-percentage>":function(a){return(this["<number>"](a)||this["<percentage>"](a))&&("0"===String(a)||"function"===a.type||a.value>=0)},"<number>":function(a){return"number"===a.type||this["<integer>"](a)},"<opacity-value>":function(a){return this["<number>"](a)&&a.value>=0&&a.value<=1},"<padding-width>":"<nonnegative-length-or-percentage>","<percentage>":function(a){return"percentage"===a.type||"0"===String(a)},"<relative-size>":"smaller | larger","<shape>":"rect() | inset-rect()","<shape-box>":"<box> | margin-box","<single-animation-direction>":"normal | reverse | alternate | alternate-reverse","<single-animation-name>":function(a){return this["<ident>"](a)&&/^-?[a-z_][-a-z0-9_]+$/i.test(a)&&!/^(none|unset|initial|inherit)$/i.test(a)},"<string>":function(a){return"string"===a.type},"<time>":function(a){return"time"===a.type},"<uri>":function(a){return"uri"===a.type},"<width>":"<margin-width>"},complex:{__proto__:null,"<azimuth>":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","<bg-position>":"<position>#","<bg-size>":"[ <length> | <percentage> | auto ]{1,2} | cover | contain","<border-image-slice>":e.many([!0],e.cast("<nonnegative-number-or-percentage>"),e.cast("<nonnegative-number-or-percentage>"),e.cast("<nonnegative-number-or-percentage>"),e.cast("<nonnegative-number-or-percentage>"),"fill"),"<border-radius>":"<nonnegative-length-or-percentage>{1,4} [ / <nonnegative-length-or-percentage>{1,4} ]?","<box-shadow>":"none | <shadow>#","<clip-path>":"<basic-shape> || <geometry-box>","<dasharray>":e.cast("<nonnegative-length-or-percentage>").braces(1,1/0,"#",e.cast(",").question()),"<family-name>":"<string> | <ident-not-generic-family> <ident>*","<filter-function-list>":"[ <filter-function> | <uri> ]+","<flex>":"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]","<font-family>":"[ <generic-family> | <family-name> ]#","<font-shorthand>":"[ <font-style> || <font-variant-css21>
6 || <font-weight> || <font-stretch> ]? <font-size> [ / <line-height> ]? <font-family>","<font-variant-alternates>":"stylistic() || historical-forms || styleset() || character-variant() || swash() || ornaments() || annotation()","<font-variant-ligatures>":"[ common-ligatures | no-common-ligatures ] || [ discretionary-ligatures | no-discretionary-ligatures ] || [ historical-ligatures | no-historical-ligatures ] || [ contextual | no-contextual ]","<font-variant-numeric>":"[ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero","<font-variant-east-asian>":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] || [ full-width | proportional-width ] || ruby","<paint>":"<paint-basic> | <uri> <paint-basic>?","<paint-basic>":"none | currentColor | <color-svg> <icccolor>?","<position>":"[ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ left | center | right | top | bottom | <percentage> | <length> ]","<repeat-style>":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","<shadow>":e.many([!0],e.cast("<length>").braces(2,4),"inset","<color>"),"<text-decoration-color>":"<color>","<text-decoration-line>":"none | [ underline || overline || line-through || blink ]","<text-decoration-style>":"solid | double | dotted | dashed | wavy","<will-change>":"auto | <animateable-feature>#","<x-one-radius>":"[ <length> | <percentage> ]{1,2}"}}),Object.keys(d.simple).forEach(function(a){var b=d.simple[a];"string"==typeof b&&(d.simple[a]=function(a){return d.isLiteral(a,b)})}),Object.keys(d.complex).forEach(function(a){var b=d.complex[a];"string"==typeof b&&(d.complex[a]=e.parse(b))}),d.complex["<font-variant>"]=e.oror({expand:"<font-variant-ligatures>"},{expand:"<font-variant-alternates>"},"<font-variant-caps>",{expand:"<font-variant-numeric>"},{expand:"<font-variant-east-asian>"})},{"./Matcher":3}],22:[function(a,b){"use strict";b.exports={Colors:a("./Colors"),Combinator:a("./Combinator"),Parser:a("./Parser"),PropertyName:a("./PropertyName"),PropertyValue:a("./PropertyValue"),PropertyValuePart:a("./PropertyValuePart"),Matcher:a("./Matcher"),MediaFeature:a("./MediaFeature"),MediaQuery:a("./MediaQuery"),Selector:a("./Selector"),SelectorPart:a("./SelectorPart"),SelectorSubPart:a("./SelectorSubPart"),Specificity:a("./Specificity"),TokenStream:a("./TokenStream"),Tokens:a("./Tokens"),ValidationError:a("./ValidationError")}},{"./Colors":1,"./Combinator":2,"./Matcher":3,"./MediaFeature":4,"./MediaQuery":5,"./Parser":6,"./PropertyName":8,"./PropertyValue":9,"./PropertyValuePart":11,"./Selector":13,"./SelectorPart":14,"./SelectorSubPart":15,"./Specificity":16,"./TokenStream":17,"./Tokens":18,"./ValidationError":20}],23:[function(a,b){"use strict";function c(){this._listeners=Object.create(null)}b.exports=c,c.prototype={constructor:c,addListener:function(a,b){this._listeners[a]||(this._listeners[a]=[]),this._listeners[a].push(b)},fire:function(a){if("string"==typeof a&&(a={type:a}),"undefined"!=typeof a.target&&(a.target=this),"undefined"==typeof a.type)throw new Error("Event object missing 'type' property.");if(this._listeners[a.type])for(var b=this._listeners[a.type].concat(),c=0,d=b.length;d>c;c++)b[c].call(this,a)},removeListener:function(a,b){if(this._listeners[a])for(var c=this._listeners[a],d=0,e=c.length;e>d;d++)if(c[d]===b){c.splice(d,1);break}}}},{}],24:[function(a,b){"use strict";function c(a){this._input=a.replace(/(\r\n?|\n)/g,"\n"),this._line=1,this._col=1,this._cursor=0}b.exports=c,c.prototype={constructor:c,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(a){var b=null;return a="undefined"==typeof a?1:a,this._cursor<this._input.length&&(b=this._input.charAt(this._cursor+a-1)),b},read:function(){var a=null;return this._cursor<this._input.length&&("\n"===this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,a=this._input.charAt(this._cursor++)),a},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(a){for(var b,c="";c.length<a.length||c.lastIndexOf(a)!==c.length-a.length;){if(b=this.read(),!b)throw new Error('Expected "'+a+'" at line '+this._line+", col "+this._col+".");c+=b}return c},readWhile:function(a){for(var b="",c=this.peek();null!==c&&a(c);)b+=this.read(),c=this.peek();return b},readMatch:function(a){var b=this._input.substring(this._cursor),
6c=null;return"string"==typeof a?b.slice(0,a.length)===a&&(c=this.readCount(a.length)):a instanceof RegExp&&a.test(b)&&(c=this.readCount(RegExp.lastMatch.length)),c},readCount:function(a){for(var b="";a--;)b+=this.read();return b}}},{}],25:[function(a,b){"use strict";function c(a,b,c){Error.call(this),this.name=this.constructor.name,this.col=c,this.line=b,this.message=a}b.exports=c,c.prototype=Object.create(Error.prototype),c.prototype.constructor=c},{}],26:[function(a,b){"use strict";function c(a,b,c,d){this.col=c,this.line=b,this.text=a,this.type=d}b.exports=c,c.fromToken=function(a){return new c(a.value,a.startLine,a.startCol)},c.prototype={constructor:c,valueOf:function(){return this.toString()},toString:function(){return this.text}}},{}],27:[function(a,b){"use strict";function c(a,b){this._reader=new d(a?a.toString():""),this._token=null,this._tokenData=b,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}b.exports=c;var d=a("./StringReader"),e=a("./SyntaxError");c.createTokenData=function(a){var b=[],c=Object.create(null),d=a.concat([]),e=0,f=d.length+1;for(d.UNKNOWN=-1,d.unshift({name:"EOF"});f>e;e++)b.push(d[e].name),d[d[e].name]=e,d[e].text&&(c[d[e].text]=e);return d.name=function(a){return b[a]},d.type=function(a){return c[a]},d},c.prototype={constructor:c,match:function(a,b){a instanceof Array||(a=[a]);for(var c=this.get(b),d=0,e=a.length;e>d;)if(c===a[d++])return!0;return this.unget(),!1},mustMatch:function(a){var b;if(a instanceof Array||(a=[a]),!this.match.apply(this,arguments))throw b=this.LT(1),new e("Expected "+this._tokenData[a[0]].name+" at line "+b.startLine+", col "+b.startCol+".",b.startLine,b.startCol)},advance:function(a,b){for(;0!==this.LA(0)&&!this.match(a,b);)this.get();return this.LA(0)},get:function(a){var b,c,d=this._tokenData,e=0;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(e++,this._token=this._lt[this._ltIndex++],c=d[this._token.type];"undefined"!=typeof c.channel&&a!==c.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],c=d[this._token.type],e++;if(("undefined"==typeof c.channel||a===c.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(e),this._token.type}return b=this._getToken(),b.type>-1&&!d[b.type].hide&&(b.channel=d[b.type].channel,this._token=b,this._lt.push(b),this._ltIndexCache.push(this._lt.length-this._ltIndex+e),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),c=d[b.type],c&&(c.hide||"undefined"!=typeof c.channel&&a!==c.channel)?this.get(a):b.type},LA:function(a){var b,c=a;if(a>0){if(a>5)throw new Error("Too much lookahead.");for(;c;)b=this.get(),c--;for(;a>c;)this.unget(),c++}else if(0>a){if(!this._lt[this._ltIndex+a])throw new Error("Too much lookbehind.");b=this._lt[this._ltIndex+a].type}else b=this._token.type;return b},LT:function(a){return this.LA(a),this._lt[this._ltIndex+a-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(a){return 0>a||a>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[a].name},tokenType:function(a){return this._tokenData[a]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}}},{"./StringReader":24,"./SyntaxError":25}],28:[function(a,b){"use strict";b.exports={StringReader:a("./StringReader"),SyntaxError:a("./SyntaxError"),SyntaxUnit:a("./SyntaxUnit"),EventTarget:a("./EventTarget"),TokenStreamBase:a("./TokenStreamBase")}},{"./EventTarget":23,"./StringReader":24,"./SyntaxError":25,"./SyntaxUnit":26,"./TokenStreamBase":27}],parserlib:[function(a,b){"use strict";b.exports={css:a("./css"),util:a("./util")}},{"./css":22,"./util":28}]},{},[]))("parserlib")}(),d=function(){"use strict";function a(a,b){return null!=b&&a instanceof b}function b(c,d,e,f,i){function l(c,e){if(null===c)return null;if(0===e)return c;var p,q;if("object"!=typeof c)return c;if(a(c,h))p=new h;else if(a(c,j))p=new j;else if(a(c,k))p=new k(function(a,b){c.then(function(b){a(l(b,e-1))},function(a){b(l(a,e-1))})});else if(b.__isArray(c))p=[];else if(b.__isRegExp(c))p=new RegExp(c.source,g(c)),c.lastIndex&&(p.lastIndex=c.lastIndex);else if(b.__isDate(c))p=new Date(c.getTime());else{if(o&&Buffer.isBuffer(c))return p=new Buffer(c.length),c.copy(p),p;a(c,Error)?p=Object.create(c):"undefined"==typeof f?(q=Object.getPrototypeOf(c),p=Object.create(q)):(p=Object.create(f),q=f)}if(d){var r=m.indexOf(c);if(-1!=r)return n[r];m.push(c),n.push(p)}
6a(c,h)&&c.forEach(function(a,b){var c=l(b,e-1),d=l(a,e-1);p.set(c,d)}),a(c,j)&&c.forEach(function(a){var b=l(a,e-1);p.add(b)});for(var s in c){var t;q&&(t=Object.getOwnPropertyDescriptor(q,s)),t&&null==t.set||(p[s]=l(c[s],e-1))}if(Object.getOwnPropertySymbols)for(var u=Object.getOwnPropertySymbols(c),s=0;s<u.length;s++){var v=u[s],w=Object.getOwnPropertyDescriptor(c,v);(!w||w.enumerable||i)&&(p[v]=l(c[v],e-1),w.enumerable||Object.defineProperty(p,v,{enumerable:!1}))}if(i)for(var x=Object.getOwnPropertyNames(c),s=0;s<x.length;s++){var y=x[s],w=Object.getOwnPropertyDescriptor(c,y);w&&w.enumerable||(p[y]=l(c[y],e-1),Object.defineProperty(p,y,{enumerable:!1}))}return p}"object"==typeof d&&(e=d.depth,f=d.prototype,i=d.includeNonEnumerable,d=d.circular);var m=[],n=[],o="undefined"!=typeof Buffer;return"undefined"==typeof d&&(d=!0),"undefined"==typeof e&&(e=1/0),l(c,e)}function c(a){return Object.prototype.toString.call(a)}function d(a){return"object"==typeof a&&"[object Date]"===c(a)}function e(a){return"object"==typeof a&&"[object Array]"===c(a)}function f(a){return"object"==typeof a&&"[object RegExp]"===c(a)}function g(a){var b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),b}var h;try{h=Map}catch(i){h=function(){}}var j;try{j=Set}catch(i){j=function(){}}var k;try{k=Promise}catch(i){k=function(){}}return b.clonePrototype=function(a){if(null===a)return null;var b=function(){};return b.prototype=a,new b},b.__objToStr=c,b.__isDate=d,b.__isArray=e,b.__isRegExp=f,b.__getRegExpFlags=g,b}();"object"==typeof b&&b.exports&&(b.exports=d);var e=function(){"use strict";function b(a,b){var c,d=a&&a.match(h),e=d&&d[1];return e&&(c={"true":2,"":1,"false":0,2:2,1:1,0:0},e.toLowerCase().split(",").forEach(function(a){var d=a.split(":"),e=d[0]||"",f=d[1]||"";b[e.trim()]=c[f.trim()]})),b}var f=[],g=[],h=/\/\*\s*csslint([^\*]*)\*\//,i=new c.util.EventTarget;return i.version="1.0.5",i.addRule=function(a){f.push(a),f[a.id]=a},i.clearRules=function(){f=[]},i.getRules=function(){return[].concat(f).sort(function(a,b){return a.id>b.id?1:0})},i.getRuleset=function(){for(var a={},b=0,c=f.length;c>b;)a[f[b++].id]=1;return a},i.addFormatter=function(a){g[a.id]=a},i.getFormatter=function(a){return g[a]},i.format=function(a,b,c,d){var e=i.getFormatter(c),f=null;return e&&(f=e.startFormat(),f+=e.formatResults(a,b,d||{}),f+=e.endFormat()),f},i.hasFormat=function(a){return g.hasOwnProperty(a)},i.verify=function(g,j){var k,l,m,n=0,o={},p=[],q=new c.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});l=g.replace(/\n\r?/g,"$split$").split("$split$"),e.Util.forEach(l,function(a,b){var c=a&&a.match(/\/\*[ \t]*csslint[ \t]+allow:[ \t]*([^\*]*)\*\//i),d=c&&c[1],e={};d&&(d.toLowerCase().split(",").forEach(function(a){e[a.trim()]=!0}),Object.keys(e).length>0&&(o[b+1]=e))});var r=null,s=null;e.Util.forEach(l,function(a,b){null===r&&a.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(r=b),a.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(s=b),null!==r&&null!==s&&(p.push([r,s]),r=s=null)}),null!==r&&p.push([r,l.length]),j||(j=i.getRuleset()),h.test(g)&&(j=d(j),j=b(g,j)),k=new a(l,j,o,p),j.errors=2;for(n in j)j.hasOwnProperty(n)&&j[n]&&f[n]&&f[n].init(q,k);try{q.parse(g)}catch(t){k.error("Fatal error, cannot continue: "+t.message,t.line,t.col,{})}return m={messages:k.messages,stats:k.stats,ruleset:k.ruleset,allow:k.allow,ignore:k.ignore},m.messages.sort(function(a,b){return a.rollup&&!b.rollup?1:!a.rollup&&b.rollup?-1:a.line-b.line}),m},i}();return a.prototype={constructor:a,error:function(a,b,c,d){"use strict";this.messages.push({type:"error",line:b,col:c,message:a,evidence:this.lines[b-1],rule:d||{}})},warn:function(a,b,c,d){"use strict";this.report(a,b,c,d)},report:function(a,b,c,d){"use strict";this.allow.hasOwnProperty(b)&&this.allow[b].hasOwnProperty(d.id)||this.isIgnored(b)||this.messages.push({type:2===this.ruleset[d.id]?"error":"warning",line:b,col:c,message:a,evidence:this.lines[b-1],rule:d})},info:function(a,b,c,d){"use strict";this.messages.push({type:"info",line:b,col:c,message:a,evidence:this.lines[b-1],rule:d})},rollupError:function(a,b){"use strict";this.messages.push({type:"error",rollup:!0,message:a,rule:b})},rollupWarn:function(a,b){"use strict";this.messages.push({type:"warning",rollup:!0,message:a,rule:b})},stat:function(a,b){"use strict";this.stats[a]=b},isIgnored:function(a){"use strict";var b=!1;return e.Util.forEach(this.ignore,function(c){c[0]<=a&&a<=c[1]&&(b=!0)}),b}},e._Reporter=a,e.Util={mix:function(a,b){"use strict";var c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return c},indexOf:function(a,b){"use strict";if(a.indexOf)return a.indexOf(b);for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}
6,forEach:function(a,b){"use strict";if(a.forEach)return a.forEach(b);for(var c=0,d=a.length;d>c;c++)b(a[c],c,a)}},e.addRule({id:"adjoining-classes",name:"Disallow adjoining classes",desc:"Don't use adjoining classes.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-adjoining-classes",browsers:"IE6",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(d){var e,f,g,h,i,j,k,l=d.selectors;for(i=0;i<l.length;i++)for(e=l[i],j=0;j<e.parts.length;j++)if(f=e.parts[j],f.type===a.SELECTOR_PART_TYPE)for(h=0,k=0;k<f.modifiers.length;k++)g=f.modifiers[k],"class"===g.type&&h++,h>1&&b.report("Adjoining classes: "+l[i].text,f.line,f.col,c)})}}),e.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(a,b){"use strict";function c(){e={},i=!1}function d(){var a,c;if(!i){if(e.height)for(a in h)h.hasOwnProperty(a)&&e[a]&&(c=e[a].value,("padding"!==a||2!==c.parts.length||0!==c.parts[0].value)&&b.report("Using height with "+a+" can sometimes make elements larger than you expect.",e[a].line,e[a].col,f));if(e.width)for(a in g)g.hasOwnProperty(a)&&e[a]&&(c=e[a].value,("padding"!==a||2!==c.parts.length||0!==c.parts[1].value)&&b.report("Using width with "+a+" can sometimes make elements larger than you expect.",e[a].line,e[a].col,f)) 7}}var e,f=this,g={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},h={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},i=!1;a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("startpage",c),a.addListener("startpagemargin",c),a.addListener("startkeyframerule",c),a.addListener("startviewport",c),a.addListener("property",function(a){var b=a.property.text.toLowerCase();h[b]||g[b]?/^0\S*$/.test(a.value)||"border"===b&&"none"===a.value.toString()||(e[b]={line:a.property.line,col:a.property.col,value:a.value}):/^(width|height)/i.test(b)&&/^(length|percentage)/.test(a.value.parts[0].type)?e[b]=1:"box-sizing"===b&&(i=!0)}),a.addListener("endrule",d),a.addListener("endfontface",d),a.addListener("endpage",d),a.addListener("endpagemargin",d),a.addListener("endkeyframerule",d),a.addListener("endviewport",d)}}),e.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn't supported in IE6 and IE7.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-box-sizing",browsers:"IE6, IE7",tags:["Compatibility"],init:function(a,b){"use strict";var c=this;a.addListener("property",function(a){var d=a.property.text.toLowerCase();"box-sizing"===d&&b.report("The box-sizing property isn't supported in IE6 and IE7.",a.line,a.col,c)})}}),e.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(a,b){"use strict";var c,d,e=this,f=!1,g=!0,h=!1;a.addListener("startfontface",function(){f=!0}),a.addListener("property",function(a){if(f){var b=a.property.toString().toLowerCase(),e=a.value.toString();if(c=a.line,d=a.col,"src"===b){var i=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!e.match(i)&&g?(h=!0,g=!1):e.match(i)&&!g&&(h=!1)}}}),a.addListener("endfontface",function(){f=!1,h&&b.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",c,d,e)})}}),e.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(a,b){"use strict";var c,d,f,g,h,i,j,k=this,l=!1,m=Array.prototype.push,n=[];c={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz","box-direction":"webkit moz","box-flex":"webkit moz","box-lines":"webkit","box-ordinal-group":"webkit moz","box-orient":"webkit moz","box-pack":"webkit moz","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",flex:"webkit ms","flex-basis":"webkit","flex-direction":"webkit ms","flex-flow":"webkit","flex-grow":"webkit","flex-shrink":"webkit",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"};for(f in c)if(c.hasOwnProperty(f)){for(g=[],h=c[f].split(" "),i=0,j=h.length;j>i;i++)g.push("-"+h[i]+"-"+f);c[f]=g,m.apply(n,g)}a.addListener("startrule",function(){d=[]}),a.addListener("startkeyframes",function(a){l=a.prefix||!0}),a.addListener("endkeyframes",function(){l=!1}),a.addListener("property",function(a){var b=a.property;e.Util.indexOf(n,b.text)>-1&&(l&&"string"==typeof l&&0===b.text.indexOf("-"+l+"-")||d.push(b))}),a.addListener("endrule",function(){if(d.length){var a,f,g,h,i,j,l,m,n,o,p={};for(a=0,f=d.length;f>a;a++){g=d[a];for(h in c)c.hasOwnProperty(h)&&(i=c[h],e.Util.indexOf(i,g.text)>-1&&(p[h]||(p[h]={full:i.slice(0),actual:[],actualNodes:[]}),-1===e.Util.indexOf(p[h].actual,g.text)&&(p[h].actual.push(g.text),p[h].actualNodes.push(g))))}for(h in p)if(p.hasOwnProperty(h)&&(j=p[h],l=j.full,m=j.actual,l.length>m.length))for(a=0,f=l.length;f>a;a++)n=l[a],-1===e.Util.indexOf(m,n)&&(o=1===m.length?m[0]:m.join(2===m.length?" and ":", "),b.report("The property "+n+" is compatible with "+o+" and should be included as well.",j.actualNodes[0].line,j.actualNodes[0].c
7ol,k))}})}}),e.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",url:"https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",browsers:"All",init:function(a,b){"use strict";function c(a,c,d){f[a]&&("string"!=typeof h[a]||f[a].value.toLowerCase()!==h[a])&&b.report(d||a+" can't be used with display: "+c+".",f[a].line,f[a].col,g)}function d(){f={}}function e(){var a=f.display?f.display.value:null;if(a)switch(a){case"inline":c("height",a),c("width",a),c("margin",a),c("margin-top",a),c("margin-bottom",a),c("float",a,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":c("vertical-align",a);break;case"inline-block":c("float",a);break;default:0===a.indexOf("table-")&&(c("margin",a),c("margin-left",a),c("margin-right",a),c("margin-top",a),c("margin-bottom",a),c("float",a))}}var f,g=this,h={display:1,"float":"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1};a.addListener("startrule",d),a.addListener("startfontface",d),a.addListener("startkeyframerule",d),a.addListener("startpagemargin",d),a.addListener("startpage",d),a.addListener("startviewport",d),a.addListener("property",function(a){var b=a.property.text.toLowerCase();h[b]&&(f[b]={value:a.value.text,line:a.property.line,col:a.property.col})}),a.addListener("endrule",e),a.addListener("endfontface",e),a.addListener("endkeyframerule",e),a.addListener("endpagemargin",e),a.addListener("endpage",e),a.addListener("endviewport",e)}}),e.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",browsers:"All",init:function(a,b){"use strict";var c=this,d={};a.addListener("property",function(a){var e,f,g=a.property.text,h=a.value;if(g.match(/background/i))for(e=0,f=h.parts.length;f>e;e++)"uri"===h.parts[e].type&&("undefined"==typeof d[h.parts[e].uri]?d[h.parts[e].uri]=a:b.report("Background image '"+h.parts[e].uri+"' was used multiple times, first declared at line "+d[h.parts[e].uri].line+", col "+d[h.parts[e].uri].col+".",a.line,a.col,c))})}}),e.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",browsers:"All",init:function(a,b){"use strict";function c(){d={}}var d,e,f=this;a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("startpage",c),a.addListener("startpagemargin",c),a.addListener("startkeyframerule",c),a.addListener("startviewport",c),a.addListener("property",function(a){var c=a.property,g=c.text.toLowerCase();!d[g]||e===g&&d[g]!==a.value.text||b.report("Duplicate property '"+a.property+"' found.",a.line,a.col,f),d[g]=a.value.text,e=g})}}),e.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",browsers:"All",init:function(a,b){"use strict";var c=this,d=0;a.addListener("startrule",function(){d=0}),a.addListener("property",function(){d++}),a.addListener("endrule",function(a){var e=a.selectors;0===d&&b.report("Rule is empty.",e[0].line,e[0].col,c)})}}),e.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("error",function(a){b.error(a.message,a.line,a.col,c)})}}),e.addRule({id:"fallback-colors",name:"Require fallback colors",desc:"For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.",url:"https://github.com/CSSLint/csslint/wiki/Require-fallback-colors",browsers:"IE6,IE7,IE8",init:function(a,b){"use strict";function c(){d=null}var d,e=this,f={color:1,background:1,"border-color":1,"border-top-color":1,"border-right-color":1,"border-bottom-color":1,"border-left-color":1,border:1,"border-top":1,"border-right":1,"border-bottom":1,"border-left":1,"background-color":1};a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("startpage",c),a.addListener("startpagemargin",c),a.addListener("startkeyframerule",c),a.addListener("startviewport",c),a.addListener("property",function(a){var c=a.property,g=c.text.toLowerCase(),h=a.value.parts,i=0,j="",k=h.length;if(f[g])for(;k>i;)"color"===h[i].type&&("alpha"in h[i]||"hue"in h[i]?(/([^\)]+)\(/.test(h[i])&&(j=RegExp.$1.toUpperCase()),d&&d.property.text.toLowerCase()===g&&"compat"===d.colorType||b.report("Fallback "+g+" (hex or RGB) should precede "+j+" "+g+".",a.line,a.col,e)):a.colorType="compat"),i++;d=a})}}),e.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",url:"https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats",browsers:"All",init:function(a,b){"use strict";var c=this,d=0;a.addListener("property",function(a){b.isIgnored(a.property.line)||"float"===a.property.text.toLowerCase()&&"none"!==a.value.text.toLowerCase()&&d++}),a.addListener("endstylesheet",function(){b.stat("floats",d),d>=10&&b.rollupWarn("Too many floats ("+d+"), you're probably using them for layout. Consider using a grid system instead.",c)})}}),e.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(a,b){"use strict";var c=this,d=0;a.addListener("startfontface",function(a){b.isIgnored(a.line)||d++}),a.addListener("endstylesheet",function(){d>5&&b.rollupWarn("Too many @font-face declarations ("+d+").",c)})}}),e.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(a,b){"use strict";var c=this,d=0;a.addListener("property",function(a){b.isIgnored(a.property.line)||"font-size"===a.property.toString()&&d++}),a.addListener("endstylesheet",function(){b.stat("font-sizes",d),d>=10&&b.rollupWarn("Too many font-size declarations ("+d+"), abstraction needed.",c)})}}),e.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(a,b){"use strict";var c,d=this;a.addListener("startrule",function(){c={moz:0,webkit:0,oldWebkit:0,o:0}}),a.addListener("property",function(a){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(a.value)?c[RegExp.$1]=1:/\-webkit\-gradient/i.test(a.value)&&(c.oldWebkit=1)}),a.addListener("endrule",function(a){var e=[];c.moz||e.push("Firefox 3.6+"),c.webkit||e.push("Webkit (Safari 5+, Chrome)"),c.oldWebkit||e.push("Old Webkit (Safari 4+, Chrome)"),c.o||e.push("Opera 11.1+"),e.length&&e.length<4&&b.report("Missing vendor-prefixed CSS gradients for "+e.join(", ")+".",a.selectors[0].line,a.selectors[0].col,d)})}}),e.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(d){var e,f,g,h,i,j,k,l=d.selectors;for(i=0;i<l.length;i++){for(e=l[i],h=0,j=0;j<e.parts.length;j++)if(f=e.parts[j],f.type===a.SELECTOR_PART_TYPE)for(k=0;k<f.modifiers.length;k++)g=f.modifiers[k],"id"===g.type&&h++;1===h?b.report("Don't use IDs in selectors.",e.line,e.col,c):h>1&&b.report(h+" IDs in the selector, really?",e.line,e.col,c)}})}}),e.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(a,b){"use strict";function c(){f=0}var d=this,e=31,f=0;a.addListener("startpage",c),a.addListener("import",function(){f++}),a.addListener("endstylesheet",function(){f>e&&b.rollupError("Too many @import rules ("+f+"). IE6-9 supports up to 31 import per stylesheet.",d)})}}),e.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("import",function(a){b.report("@import prevents parallel downloads, use <link> instead.",a.line,a.col,c)})}}),e.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(a,b){"use strict";var c=this,d=0;a.addListener("property",function(a){b.isIgnored(a.line)||a.important===!0&&(d++,b.report("Use of !important",a.line,a.col,c))}),a.addListener("endstylesheet",function(){b.stat("important",d),d>=10&&b.rollupWarn("Too many !important declarations ("+d+"), try to use less than 10 to avoid specificity issues.",c)})}}),e.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("property",function(a){a.invalid&&b.report(a.invalid.message,a.line,a.col,c)})}}),e.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(a,b){"use strict";var c,d=this,e=function(){c=[]},f=function(a){var e=c.join(","),f=c.sort().join(",");e!==f&&b.report("Rule doesn't have all its properties in alphabetical order.",a.line,a.col,d)};a.addListener("startrule",e),a.addListener("startfontface",e),a.addListener("startpage",e),a.addListener("startpagemargin",e),a.addListener("startkeyframerule",e),a.addListener("startviewport",e),a.addListener("property",function(a){var b=a.property.text,d=b.toLowerCase().replace(/^-.*?-/,"");c.push(d)}),a.addListener("endrule",f),a.addListener("endfontface",f),a.addListener("endpage",f),a.addListener("endpagemargin",f),a.addListener("endkeyframerule",f),a.addListener("endviewport",f)}}),e.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(a,b){"use strict";function c(a){e=a.selectors?{line:a.line,col:a.col,selectors:a.selectors,propCount:0,outline:!1}:null}function d(){e&&e.outline&&(-1===e.selectors.toString().toLowerCase().indexOf(":focus")?b.report("Outlines should only be modified using :focus.",e.line,e.col,f):1===e.propCount&&b.report("Outlines shouldn't be hidden unless other visual changes are made.",e.line,e.col,f))}var e,f=this;a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("startpage",c),a.addListener("startpagemargin",c),a.addListener("startkeyframerule",c),a.addListener("startviewport",c),a.addListener("property",function(a){var b=a.property.text.toLowerCase(),c=a.value;e&&(e.propCount++,"outline"!==b||"none"!==c.toString()&&"0"!==c.toString()||(e.outline=!0))}),a.addListener("endrule",d),a.addListener("endfontface",d),a.addListener("endpage",d),a.addListener("endpagemargin",d),a.addListener("endkeyframerule",d),a.addListener("endviewport",d)}}),e.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(a,b){"use strict";var c=this,d={};a.addListener("startrule",function(e){var f,g,h,i,j,k,l=e.selectors;for(i=0;i<l.length;i++)for(f=l[i],j=0;j<f.parts.length;j++)if(g=f.parts[j],g.type===a.SELECTOR_PART_TYPE)for(k=0;k<g.modifiers.length;k++)h=g.modifiers[k],g.elementName&&"id"===h.type?b.report("Element ("+g+") is overqualified, just use "+h+" without element name.",g.line,g.col,c):"class"===h.type&&(d[h]||(d[h]=[]),d[h].push({modifier:h,part:g}))}),a.addListener("endstylesheet",function(){var a;for(a in d)d.hasOwnProperty(a)&&1===d[a].length&&d[a][0].part.elementName&&b.report("Element ("+d[a][0].part+") is overqualified, just use "+d[a][0].modifier+" without element name.",d[a][0].part.line,d[a][0].part.col,c)})}}),e.addRule({id:"performant-transitions",name:"Allow only performant transisitons",desc:"Only allow transitions that trigger compositing for performant, 60fps transformations.",url:"",browsers:"All",init:function(a,b){"use strict";var c=this,d=["transition-property","transition","-webkit-transition","-o-transition"],e=[/-webkit-transform/g,/-ms-transform/g,/transform/g,/opacity/g];a.addListener("property",function(a){var f=a.property.toString().toLowerCase(),g=a.value.toString(),h=a.line,i=a.col,j=g.split(",");if(-1!==d.indexOf(f)){var k=j.filter(function(a){for(var b=[],c=0;c<e.length;c++)a.match(e[c])&&b.push(c);return 0===b.length});k.length>0&&b.report("Unexpected transition property '"+k.join(",").trim()+"'",h,i,c)}})}}),e.addRule({id:"qualified-headings",name:"Disallow qualified headings",desc:"Headings should not be qualified (namespaced).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-qualified-headings",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(d){var e,f,g,h,i=d.selectors;for(g=0;g<i.length;g++)for(e=i[g],h=0;h<e.parts.length;h++)f=e.parts[h],f.type===a.SELECTOR_PART_TYPE&&f.elementName&&/h[1-6]/.test(f.elementName.toString())&&h>0&&b.report("Heading ("+f.elementName+") should not be qualified.",f.line,f.col,c)})}}),e.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",de
7sc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(d){var e,f,g,h,i,j,k=d.selectors;for(h=0;h<k.length;h++)for(e=k[h],i=0;i<e.parts.length;i++)if(f=e.parts[i],f.type===a.SELECTOR_PART_TYPE)for(j=0;j<f.modifiers.length;j++)g=f.modifiers[j],"attribute"===g.type&&/([~\|\^\$\*]=)/.test(g)&&b.report("Attribute selectors with "+RegExp.$1+" are slow!",g.line,g.col,c)})}}),e.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(a,b){"use strict";var c=0;a.addListener("startrule",function(){c++}),a.addListener("endstylesheet",function(){b.stat("rule-count",c)})}}),e.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(a,b){"use strict";var c=this,d=0;a.addListener("startrule",function(a){d+=a.selectors.length}),a.addListener("endstylesheet",function(){d>=3800&&b.report("You have "+d+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,c)})}}),e.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(a,b){"use strict";var c=this,d=0;a.addListener("startrule",function(a){d+=a.selectors.length}),a.addListener("endstylesheet",function(){d>4095&&b.report("You have "+d+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,c)})}}),e.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(a,b){"use strict";function c(a){var c,e,f,g,h,i,j,k,l,m,n,o=a.selectors;for(c=0,e=o.length;e>c;c++)for(f=o[c],g=0,i=f.parts.length;i>g;g++)for(h=g+1;i>h;h++)j=f.parts[g],k=f.parts[h],l=j.type,m=j.line,n=k.line,"descendant"===l&&n>m&&b.report("newline character found in selector (forgot a comma?)",m,o[c].parts[0].col,d)}var d=this;a.addListener("startrule",c)}}),e.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(a,b){"use strict";function c(){h={}}function d(a){var c,d,e,f;for(c in k)if(k.hasOwnProperty(c)){for(f=0,d=0,e=k[c].length;e>d;d++)f+=h[k[c][d]]?1:0;f===k[c].length&&b.report("The properties "+k[c].join(", ")+" can be replaced by "+c+".",a.line,a.col,i)}}var e,f,g,h,i=this,j={},k={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(e in k)if(k.hasOwnProperty(e))for(f=0,g=k[e].length;g>f;f++)j[k[e][f]]=e;a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("property",function(a){var b=a.property.toString().toLowerCase();j[b]&&(h[b]=1)}),a.addListener("endrule",d),a.addListener("endfontface",d)}}),e.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-star-hack",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("property",function(a){var d=a.property;"*"===d.hack&&b.report("Property with star prefix found.",a.property.line,a.property.col,c)})}}),e.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",url:"https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent",browsers:"All",init:function(a,b){"use strict";function c(){e=!1,f="inherit"}function d(){e&&"ltr"!==f&&b.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",e.line,e.col,g)}var e,f,g=this;a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("property",function(a){var b=a.property.toString().toLowerCase(),c=a.value;"text-indent"===b&&c.parts[0].value<-99?e=a.property:"direction"===b&&"ltr"===c.toString()&&(f="ltr")}),a.addListener("endrule",d),a.addListener("endfontface",d)}}),e.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-underscore-hack",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("property",function(a){var d=a.property;"_"===d.hack&&b.report("Property with underscore prefix found.",a.property.line,a.property.col,c)})}}),e.addRule({id:"unique-headings",name:"Headings should only be defined once",desc:"Headings should be defined only once.",url:"https://github.com/CSSLint/csslint/wiki/Headings-should-only-be-defined-once",browsers:"All",init:function(a,b){"use strict";var c=this,d={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};a.addListener("startrule",function(a){var e,f,g,h,i,j=a.selectors;for(h=0;h<j.length;h++)if(e=j[h],f=e.parts[e.parts.length-1],!b.isIgnored(f.line)&&f.elementName&&/(h[1-6])/i.test(f.elementName.toString())){for(i=0;i<f.modifiers.length;i++)if("pseudo"===f.modifiers[i].type){g=!0;break}g||(d[RegExp.$1]++,d[RegExp.$1]>1&&b.report("Heading ("+f.elementName+") has already been defined.",f.line,f.col,c))}}),a.addListener("endstylesheet",function(){var a,e=[];for(a in d)d.hasOwnProperty(a)&&d[a]>1&&e.push(d[a]+" "+a+"s");e.length&&b.rollupWarn("You have "+e.join(", ")+" defined in this stylesheet.",c)})}}),e.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(a){var d,e,f,g=a.selectors;for(f=0;f<g.length;f++)d=g[f],e=d.parts[d.parts.length-1],"*"===e.elementName&&b.report(c.desc,e.line,e.col,c)})}}),e.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("startrule",function(d){var e,f,g,h,i,j=d.selectors,k=!1;for(h=0;h<j.length;h++)if(e=j[h],f=e.parts[e.parts.length-1],f.type===a.SELECTOR_PART_TYPE){for(i=0;i<f.modifiers.length;i++)if(g=f.modifiers[i],"class"===g.type||"id"===g.type){k=!0;break}if(!k)for(i=0;i<f.modifiers.length;i++)g=f.modifiers[i],"attribute"!==g.type||f.elementName&&"*"!==f.elementName||b.report(c.desc,f.line,f.col,c)}})}}),e.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",url:"https://github.com/CSSLint/csslint/wiki/Require-standard-property-with-vendor-prefix",browsers:"All",init:function(a,b){"use strict";function c(){e={},f=1}function d(){var a,c,d,f,i,j=[];for(a in e)h[a]&&j.push({actual:a,needed:h[a]});for(c=0,d=j.length;d>c;c++)f=j[c].needed,i=j[c].actual,e[f]?e[f][0].pos<e[i][0].pos&&b.report("Standard property '"+f+"' should come after vendor-prefixed property '"+i+"'.",e[i][0].name.line,e[i][0].name.col,g):b.report("Missing standard property '"+f+"' to go along with '"+i+"'.",e[i][0].name.line,e[i][0].name.col,g)}var e,f,g=this,h={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};a.addListener("startrule",c),a.addListener("startfontface",c),a.addListener("startpage",c),a.addListener("startpagemargin",c),a.addListener("startkeyframerule",c),a.addListener("startviewport",c),a.addListener("property",function(a){var b=a.property.text.toLowerCase();e[b]||(e[b]=[]),e[b].push({name:a.property,value:a.value,pos:f++})}),a.addListener("endrule",d),a.addListener("endfontface",d),a.addListener("endpage",d),a.addListener("endpagemargin",d),a.addListener("endkeyframerule",d),a.addListener("endviewport",d)}}),e.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-units-for-zero-values",browsers:"All",init:function(a,b){"use strict";var c=this;a.addListener("property",function(a){for(var d=a.value.parts,e=0,f=d.length;f>e;)!d[e].units&&"percentage"!==d[e].type||0!==d[e].value||"time"===d[e].type||b.report("Values of 0 shouldn't have units specified.",d[e].line,d[e].col,c),e++})}}),function(){"use strict";var a=function(a){return a&&a.constructor===String?a.replace(/["&><]/g,function(a){switch(a){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}}):""};e.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(b,c){return'<file name="'+a(b)+'"><error line="0" column="0" severty="error" message="'+a(c)+'"></error></file>'},formatResults:function(b,c){var d=b.messages,f=[],g=function(a){return a&&"name"in a?"net.csslint."+a.name.replace(/\s/g,""):""};return d.length>0&&(f.push('<file name="'+c+'">'),e.Util.forEach(d,function(b){b.rollup||f.push('<error line="'+b.line+'" column="'+b.col+'" severity="'+b.type+'" message="'+a(b.message)+'" source="'+g(b.rule)+'"/>')}
7),f.push("</file>")),f.join("")}})}(),e.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(a,b,c){"use strict";var d=a.messages,f="";c=c||{};var g=function(a){return a.charAt(0).toUpperCase()+a.slice(1)};return 0===d.length?c.quiet?"":b+": Lint Free!":(e.Util.forEach(d,function(a){f+=a.rollup?b+": "+g(a.type)+" - "+a.message+" ("+a.rule.id+")\n":b+": line "+a.line+", col "+a.col+", "+g(a.type)+" - "+a.message+" ("+a.rule.id+")\n"}),f)}}),e.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(a,b){"use strict";var c=a.messages,d=[],f=function(a){return a&&a.constructor===String?a.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return c.length>0&&(d.push('<file name="'+b+'">'),e.Util.forEach(c,function(a){d.push(a.rollup?'<issue severity="'+a.type+'" reason="'+f(a.message)+'" evidence="'+f(a.evidence)+'"/>':'<issue line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+f(a.message)+'" evidence="'+f(a.evidence)+'"/>') 8}),d.push("</file>")),d.join("")}}),e.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var a="";return this.json.length>0&&(a=JSON.stringify(1===this.json.length?this.json[0]:this.json)),a},formatResults:function(a,b,c){"use strict";return(a.messages.length>0||!c.quiet)&&this.json.push({filename:b,messages:a.messages,stats:a.stats}),""}}),e.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(a,b){"use strict";var c=a.messages,d=[],e={error:0,failure:0},f=function(a){return a&&"name"in a?"net.csslint."+a.name.replace(/\s/g,""):""},g=function(a){return a&&a.constructor===String?a.replace(/"/g,"'").replace(/</g,"<").replace(/>/g,">"):""};return c.length>0&&(c.forEach(function(a){var b="warning"===a.type?"error":a.type;a.rollup||(d.push('<testcase time="0" name="'+f(a.rule)+'">'),d.push("<"+b+' message="'+g(a.message)+'"><![CDATA['+a.line+":"+a.col+":"+g(a.evidence)+"]]></"+b+">"),d.push("</testcase>"),e[b]+=1)}),d.unshift('<testsuite time="0" tests="'+c.length+'" skipped="0" errors="'+e.error+'" failures="'+e.failure+'" package="net.csslint" name="'+b+'">'),d.push("</testsuite>")),d.join("")}}),e.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(a,b){"use strict";var c=a.messages,d=[],f=function(a){return a&&a.constructor===String?a.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return c.length>0&&(d.push('<file name="'+b+'">'),e.Util.forEach(c,function(a){if(a.rollup)d.push('<issue severity="'+a.type+'" reason="'+f(a.message)+'" evidence="'+f(a.evidence)+'"/>');else{var b="";a.rule&&a.rule.id&&(b='rule="'+f(a.rule.id)+'" '),d.push("<issue "+b+'line="'+a.line+'" char="'+a.col+'" severity="'+a.type+'" reason="'+f(a.message)+'" evidence="'+f(a.evidence)+'"/>')}}),d.push("</file>")),d.join("")}}),e.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(a,b,c){"use strict";var d=a.messages,f="";if(c=c||{},0===d.length)return c.quiet?"":"\n\ncsslint: No errors in "+b+".";f="\n\ncsslint: There ",f+=1===d.length?"is 1 problem":"are "+d.length+" problems",f+=" in "+b+".";var g=b.lastIndexOf("/"),h=b;return-1===g&&(g=b.lastIndexOf("\\")),g>-1&&(h=b.substring(g+1)),e.Util.forEach(d,function(a,b){f=f+"\n\n"+h,a.rollup?(f+="\n"+(b+1)+": "+a.type,f+="\n"+a.message):(f+="\n"+(b+1)+": "+a.type+" at line "+a.line+", col "+a.col,f+="\n"+a.message,f+="\n"+a.evidence)}),f}}),e}();Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c,d,e=b?b:0;if(!this)throw new TypeError;if(d=this.length,0===d||e>=d)return-1;for(0>e&&(e=d-Math.abs(e)),c=e;d>c;c++)if(this[c]===a)return c;return-1}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/gm,"")}),String.prototype.replaceBetween||(String.prototype.replaceBetween=function(a,b,c){return this.substring(0,a)+c+this.substring(b)}),Array.prototype.map||(Array.prototype.map=function(a,b){var c,d,e;if(null==this)throw new TypeError(" this is null or not defined");var f=Object(this),g=f.length>>>0;if("function"!=typeof a)throw new TypeError(a+" is not a function");for(b&&(c=b),d=new Array(g),e=0;g>e;){var h,i;if(e in f){var j=e.toString();h=f[j],i=a.call(c,h,e,f),d[j]=i}e++}return d}),Array.prototype.filter||(Array.prototype.filter=function(a){"use strict";if(void 0===this||null===this)throw new TypeError;var b=Object(this),c=b.length>>>0;if("function"!=typeof a)throw new TypeError;for(var d=[],e=arguments.length>=2?arguments[1]:void 0,f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css",b.id="matchmediajs-test",c.parentNode.insertBefore(b,c),d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle,a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; } }";return b.styleSheet?b.styleSheet.cssText=c:b.textContent=c,"1px"===d.width}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var a=window.matchMedia,b=a("only all").matches,c=!1,d=0,e=[],f=function(){clearTimeout(d),d=setTimeout(function(){for(var b=0,c=e.length;c>b;b++){var d=e[b].mql,f=e[b].listeners||[],g=a(d.media).matches;if(g!==d.matches){d.matches=g;for(var h=0,i=f.length;i>h;h++)f[h].call(window,d)}}},30)};window.matchMedia=function(d){var g=a(d),h=[],i=0;return g.addListener=function(a){b&&(c||(c=!0,window.addEventListener("resize",f,!0)),0===i&&(i=e.push({mql:g,listeners:h})),h.push(a))},g.removeListener=function(a){for(var b=0,c=h.length;c>b;b++)h[b]===a&&h.splice(b,1)},g}}(),function(){"use strict";function a(){var a=this,b={};a.subscriptions=b,this.fire=function(c,d){if(b.hasOwnProperty(c))for(var e in b[c])b[c][e].apply(a,d?(new Array).concat(d):[])},this.subscribe=function(a,c){return b.hasOwnProperty(a)===!1&&(b[a]=[]),b[a].push(c),[a,c]},this.unsubscribe=function(a){var c=a[0];if(b.hasOwnProperty(c))for(var d in b[c])b[c][d]===a[1]&&b[c].splice(d,1)}}this.version="3.0.4";var b=this,c=null;this.modes={INACTIVE:-1,INSPECTOR_MODE:1,STYLESHEET_MODE:2};var d=this.modes.INACTIVE;CSSLint.clearRules(),CSSLint.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(a,b){var c=this;a.addListener("error",function(a){b.error(a.message,a.line,a.col,c)})}}),CSSLint.addRule({id:"parser",name:"StyleSheetParser",desc:"",browsers:"All",init:function(a,c){var d,e=[],f=void 0,g=void 0;a.addListener("startrule",function(a){void 0!==f&&console.warn("previous rule not closed"),f={properties:[],propertyMap:{},startsAtLine:a.line,startsAtCol:a.col,endsAtLine:void 0,endsAtCol:void 0,selectors:a.selectors,cssText:void 0}}),a.addListener("property",function(a){g=a,void 0!==f&&(f.properties.push(a),d=a.property.text,f.propertyMap.hasOwnProperty(d)||(f.propertyMap[d]=[]),f.propertyMap[d].push(a))}),a.addListener("endproperty",function(a){void 0!==g?(g.endsAtLine=a.line,g.endsAtCol=a.col,g=void 0):console.warn("called endproperty for unopened declaration")}),a.addListener("endrule",function(){void 0!==f&&(e.push(f),f=void 0)}),a.addListener("ruleCloseBrace",function(a){void 0!==f&&(f.endsAtLine=a.line,f.endsAtCol=a.col)}),a.addListener("error",function(){}),a.addListener("endstylesheet",function(){var a,d,f,g,h,i,j,k,l;
8for(a=e.length-1;a>=0;a--){for(f=[],i=e[a],d=0;d<i.properties.length;d++){if(k=i.properties[d],l="",k.metadata=void 0,k.metadataFull=void 0,k.line===k.endsAtLine)l=c.lines[k.line-1].substring(k.col-1,k.endsAtCol-1);else{for(l=[],g=k.line;g<=k.endsAtLine;g++)j=c.lines[g-1]+"",g===k.line?j=j.substring(k.col-1):g===k.endsAtLine&&(j=j.substring(0,k.endsAtCol-1)),l=l.concat(j);l=l.join("\n")}if(k.propertyText=l,-1!==l.indexOf("(")||-1!==l.indexOf("(")){var m=l.match(/\(/g)||[],n=l.match(/\)/g)||[];m.length!==n.length&&c.error("One or more parentheses are not closed",k.endsAtLine,k.endsAtCol,i)}var o=/\/\*!([\S\s]+?)\*\//gim.exec(l);null!==o&&(k.metadataFull=o[0],k.metadata=o[1].trim())}if(i.startsAtLine===i.endsAtLine)f=f.concat(c.lines[i.startsAtLine-1].substring(i.startsAtCol-1,i.endsAtCol-1));else for(g=i.startsAtLine;g<=i.endsAtLine;g++)j=c.lines[g-1]+"",g===i.startsAtLine?j=j.substring(i.startsAtCol-1):g===i.endsAtLine&&(j=j.substring(0,i.endsAtCol-1)),f=f.concat(j);i.cssText=f.join("\n"),h=b.parseSingleRule(i.cssText),h===!1?e.splice(a,1):i.browserParsedCssText=h.cssText}c.stat("parsedRules",e),c.stat("parsedLines",c.lines)})}});var e=function(){null===c&&(c=document.createElement("style"),c.className="ci-style-validator",document.body.appendChild(c),c.sheet.disabled=!0),b.parseSingleRule=function(a){if("-ms-"===f.UAPrefix)c.innerHTML=a;else{c.sheet.cssRules.length>0&&c.sheet.deleteRule(0);try{c.sheet.insertRule(a,0)}catch(b){return console.warn("The UA couldn't parse this rule: \n "+a),!1}}var d=c.sheet.cssRules[0];return void 0!==d?d:!1},b.eventManager.fire("mode_change",[d]),b.eventManager.subscribe("mode_change",function(a,c){if(a!==d||c===!0){var e=k.getActiveStyleSheets();if(d===b.modes.STYLESHEET_MODE&&k.reassociateStyleSheets(),a===b.modes.INSPECTOR_MODE)for(var f=0;f<e.length;f++)e[f].parseAndVerifySourceCode(),e[f].mapParsedRulesToBrowserRules();else if(a===b.modes.STYLESHEET_MODE)for(var f=0;f<e.length;f++)e[f].rebuildSourceCode(),e[f].parseAndVerifySourceCode();d=a,b.eventManager.fire("mode_changed",[a])}})},f=function(){function a(a,b,c){if(a+="",b+="",b.length<=0)return a.length+1;for(var d=0,e=0,f=c?1:b.length;;){if(e=a.indexOf(b,e),!(e>=0))break;d++,e+=f}return d}var b={inheritableProperties:["azimuth","border-collapse","border-spacing","caption-side","color","cursor","direction","elevation","empty-cells","font-family","font-size","font-style","font-variant","font-weight","font","letter-spacing","line-height","list-style-image","list-style-position","list-style-type","list-style","orphans","pitch-range","pitch","quotes","resize","richness","speak-header","speak-numeral","speak-punctuation","speak","speech-rate","stress","text-align","text-indent","text-transform","text-shadow","visibility","voice-family","volume","white-space","widows","word-spacing","zoom"],shorthands:["background","font","margin","border","border-top","border-right","border-bottom","border-left","border-width","border-color","border-style","transition","transform","padding","list-style","border-radius"],longhands:{},UASupportedProperties:[],UAPrefix:""},c=window.getComputedStyle(document.documentElement,""),d=(Array.prototype.slice.call(c).join("").match(/-(moz|webkit|ms)-/)||""===c.OLink&&["","o"])[1];b.UAPrefix="-"+d+"-";for(var e=0;e<c.length;e++)b.UASupportedProperties.push(c[e]);for(var e=0;e<b.shorthands.length;e++)-1===b.UASupportedProperties.indexOf(b.UAPrefix+b.shorthands[e])?b.UASupportedProperties.push(b.shorthands[e]):b.shorthands.push(b.UAPrefix+b.shorthands[e]);for(var e=0;e<b.shorthands.length;e++){var f=a(b.shorthands[e],"-",!1);b.longhands[b.shorthands[e]]=[];for(var g=0;g<b.UASupportedProperties.length;g++)0===b.UASupportedProperties[g].indexOf(b.shorthands[e]+"-")&&a(b.UASupportedProperties[g],"-",!1)===f+1&&b.longhands[b.shorthands[e]].push(b.UASupportedProperties[g])}return b}();this.CSSMetadata=f;var g={extend:function(a,b){if(Object.keys)for(var c=Object.keys(b),d=0,e=c.length;e>d;d++){var f=c[d];Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(b,f))}else{var g={}.hasOwnProperty;for(var f in b)g.call(b,f)&&(a[f]=b[f])}return a},crc32:function(a){a=this.utf8_encode(a);var b="00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6
8B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D",c=0,d=0,e=0;c=-1^c;for(var f=0,g=a.length;g>f;f++)e=255&(c^a.charCodeAt(f)),d="0x"+b.substr(9*e,8),c=c>>>8^d;return-1^c},utf8_encode:function(a){if(null===a||"undefined"==typeof a)return"";var b,c,d=a+"",e="",f=0;b=c=0,f=d.length;for(var g=0;f>g;g++){var h=d.charCodeAt(g),i=null;if(128>h)c++;else if(h>127&&2048>h)i=String.fromCharCode(h>>6|192,63&h|128);else if(55296!=(63488&h))i=String.fromCharCode(h>>12|224,h>>6&63|128,63&h|128);else{if(55296!=(64512&h))throw new RangeError("Unmatched trail surrogate at "+g);var j=d.charCodeAt(++g);if(56320!=(64512&j))throw new RangeError("Unmatched lead surrogate at "+(g-1));h=((1023&h)<<10)+(1023&j)+65536,i=String.fromCharCode(h>>18|240,h>>12&63|128,h>>6&63|128,63&h|128)}null!==i&&(c>b&&(e+=d.slice(b,c)),e+=i,b=c=g+1)}return c>b&&(e+=d.slice(b,f)),e},addEventListener:function(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener&&a.addEventListener(b,c,!1)},hasClass:function(a,b){return new RegExp("(\\s|^)"+b+"(\\s|$)").test(a.className)},addClass:function(a,b){g.hasClass(a,b)||(a.className+=(a.className?" ":"")+b)},removeClass:function(a,b){g.hasClass(a,b)&&(a.className=a.className.replace(new RegExp("(\\s|^)"+b+"(\\s|$)")," ").replace(/^\s+|\s+$/g,""))},isDescendant:function(a,b){for(var c=b.parentNode;null!=c;){if(c==a)return!0;c=c.parentNode}return!1},stringToHTMLNodes:function(a){var b,c=document.createElement("body"),d=[];for(c.innerHTML=a;b=c.firstChild;)d.push(b.cloneNode(!0)),c.removeChild(b);return d},warn:function(a){console.warn(a)},log:function(a){console.warn(a)},logDocumentFragment:function(a){var b=document.createElement("div");b.appendChild(a.cloneNode(!0)),console.log(b)}};b.eventManager=new a;var h=function(){var a,c,d=0,e=[],g=[],h=this,i=function(){var d=function(){h.updateOverloadedProperties(e.filter(function(a,b){return e.indexOf(a)==b})),e=[]};this.longhandKeyMap={};for(var i in f.longhands)for(var j=0;j<f.longhands[i].length;j++)this.longhandKeyMap[f.longhands[i][j]]=i;b.eventManager.subscribe("properties_added",function(a,b){e=e.concat(b.map(function(a){return a.property.text})),clearTimeout(c),c=setTimeout(d,7)}),b.eventManager.subscribe("properties_removed",function(a,b){e=e.concat(b.map(function(a){return a.property.text})),clearTimeout(c),c=setTimeout(d,7)}),b.eventManager.subscribe("delete_rule",function(a){var b=g.indexOf(a);-1!==b&&g.splice(b,1),h.updateOverloadedProperties()}),b.eventManager.subscribe("selectortext_changed",function(){h.calculateSpecifityForWatchedRules(),h.updateOverloadedProperties()}),b.eventManager.subscribe("CSSRuleStateChange",function(b){-1!==g.indexOf(b)&&(clearTimeout(a),a=setTimeout(function(){h.updateOverloadedProperties()},10))})};this.watchRules=function(a){void 0!==a&&(this.clearRules(),g=a,this.calculateSpecifityForWatchedRules(),this.updateOverloadedProperties())},this.clearRules=function(){for(var a=0;a<g.length;a++)delete g.overloadedProperties;g=[]},this.calculateSpecifityForWatchedRules=function(){var a,c;for(a=0;a<g.length;a++){var d=g[a].parsedRule.selectors;if(d.length>1){for(d.sort(function(a,b){return b.specificity.compare(a.specificity)}),c=0;c<d.length;c++)if(k.matchElementWithSelector(g[a].getInspectedElement(),d[c].text.replace(/:+hover|:+active/gi,""))){g[a].specificity=d[c].specificity.valueOf();break}}else g[a].specificity=d[0].specificity.valueOf()}b.eventManager.fire("specificity_update",[g])},this.updateOverloadedProperties=function(a){var c,e,h,i,j,k,l,m,n={},o=[];if(n.inheritable=[],void 0===a)for(a=[],c=0;c<g.length;c++)g[c].overloadedProperties={},a=a.concat(g[c].parsedRule.properties.map(function(a){return a.property.text}));var p=[];for(c=0;c<a.length;c++)-1!==f.shorthands.indexOf(a[c])?p=p.concat(f.longhands[a[c]]):this.longhandKeyMap.hasOwnProperty(a[c])&&(p=p.concat([this.longhandKeyMap[a[c]]]));for(a=a.concat(p),a=a.filter(function(b,c){return a.indexOf(b)==c}),c=0;c<g.length;c++){if(m=g[c],h=m.getInspectedElement(),m.isActive){n.hasOwnProperty(h.nodeMapID)||(h.hasOwnProperty("nodeMapID")||(h.nodeMapID=++d),n[h.nodeMapID]=[]);for(k in m.parsedRule.propertyMap){var q=m.parsedRule.propertyMap[k];q.length>
81&&q.sort(function(a,b){return a.important===b.important?a.line===b.line?b.col-a.col:b.line-a.line:a.important?-1:1});var r=q[0],s=r.property.text;if(-1!==a.indexOf(s)){var t;if(t=-1!==f.inheritableProperties.indexOf(s)?n.inheritable:n[h.nodeMapID],t.hasOwnProperty(s)||(t[s]=[]),t[s].push({rule:m,importantProperty:r.important}),f.longhands.hasOwnProperty(s))for(var u=f.longhands[s],e=0;e<u.length;e++)t.hasOwnProperty(u[e])||(t[u[e]]=[]),t[u[e]].push({rule:m,importantProperty:r.important})}}}m.unsupportedProperties=[]}for(i in n)for(k in n[i])if(l=n[i][k],l.length>=2){for(j=[],c=0;c<l.length;c++)j.push({rule:l[c].rule,property:k,csstext:l[c].rule.cssText,isImportant:l[c].importantProperty?1:0,inheritDepth:l[c].rule.inheritDepth,specificity:l[c].rule.specificity,sheetIndex:l[c].rule.parentStyleSheet.getCascadeIndex(),line:l[c].rule.parsedRule.startsAtLine});for(mksort.sort(j,{inheritDepth:"asc",isImportant:"desc",specificity:"desc",sheetIndex:"desc",line:"desc"}),m=j[0].rule,m.overloadedProperties.hasOwnProperty(k)&&(delete m.overloadedProperties[k],-1===o.indexOf(m)&&o.push(m)),c=1;c<j.length;c++)m=j[c].rule,m.overloadedProperties.hasOwnProperty(k)||-1===o.indexOf(m)&&o.push(m),m.overloadedProperties[k]={overloadedBy:j[0].rule}}else m=l[0].rule,m.overloadedProperties.hasOwnProperty(k)&&(delete m.overloadedProperties[k],-1===o.indexOf(m)&&o.push(m));b.eventManager.fire("overloaded_properties_update",[g])},i.call(h)},i=new h;this.api={},this.api.CSSMetadata=this.CSSMetadata,this.api.getModifiedStyleSheet=function(){return k.getModifiedStyleSheets()},this.api.filterAndLoadStyleSheets=function(a,b){return k.loadStyleSheets(a,b)},this.api.lintStyleSheets=function(){for(var a=this.getActiveStyleSheets(),b=0;b<a.length;b++)a[b].parseAndVerifySourceCode()},this.api.loadStyleSheet=function(a){return k.addCSSStyleSheet(a)},this.api.removeStyleSheet=function(a,b){return k.removeCSSStyleSheet(a,b)},this.api.getRulesForElement=function(a){return this.getRulesForElements(a)},this.api.getRulesForElements=function(a){var c,d,e={direct:[],inherited:[]};if(b.mode!==b.modes.INSPECTOR_MODE?b.eventManager.fire("mode_change",[b.modes.INSPECTOR_MODE]):this.lintStyleSheets(),void 0!==a.length){for(c=0;c<a.length;c++){var f=k.getCSSRulesAppliedToElement(a[c]);for(d=0;d<f.direct.length;d++)-1===e.direct.indexOf(f.direct[d])&&e.direct.push(f.direct[d]);for(d=0;d<f.inherited.length;d++)-1===e.inherited.indexOf(f.inherited[d])&&e.inherited.push(f.inherited[d])}i.clearRules()}else e=k.getCSSRulesAppliedToElement(a),i.watchRules(e.direct.concat(e.inherited));return e},this.api.getActiveMode=function(){return d},this.api.getActiveStyleSheets=function(){return k.getActiveStyleSheets()},this.api.getModifiedStyleSheets=function(){return k.getModifiedStyleSheets()},this.api.getActiveRules=function(){return k.getActiveCSSRules()};var j=function(){var a=document.documentElement,c=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.oMatchesSelector||a.msMatchesSelector,e=[],f=this;this.getStyleSheetsOnPage=function(){return document.styleSheets},this.getActiveStyleSheets=function(){return e},this.getActiveCSSRules=function(){for(var a=[],b=0;b<e.length;b++)a=a.concat(e[b].getCustomData("inspectableRules"));return a},this.addCSSStyleSheet=function(a){if(-1!==k.getActiveStyleSheets().indexOf(a))return console.warn("Unable to add",a,"because it has been added before."),!1;if(a.disabled===!0)return!1;d!==b.modes.STYLESHEET_MODE&&b.eventManager.fire("mode_change",[b.modes.STYLESHEET_MODE]);var c=a.loadSourceCode();if(c===!1||void 0===c||null===c)return!1;var f=a.ownerNode,g=document.createElement("style");g.innerHTML=c,g.setAttribute("data-source",a.sourceFile),a.disabled=!0;for(var h={},i=0;i<a.ownerNode.attributes.length;i++)h[a.ownerNode.attributes[i].name]=a.ownerNode.attributes[i].value;a.ownerNode.parentNode.insertBefore(g,a.ownerNode),a.ownerNode.parentNode.removeChild(a.ownerNode),a=g.sheet,a.setCustomData({id:f.id,savable:!0,unsavedChanges:!1,lastMode:b.modes.INACTIVE,styleTagAttributes:h,invalid:!1,lintResults:[],fatal_error:!1,originalNode:f});try{a.cssRules.length}
8catch(j){alert("Weâve encountered a problem in your CSS, likely due to an incorrect @import rule. Make sure your external stylesheets are valid, or contact Cargo Support at support.cargocollective.com."),a.setCustomData("fatal_error",!0),b.eventManager.fire("stylesheet_fatal_error",[a])}a.loadSourceCode(),e.push(a),b.eventManager.fire("stylesheet_added",[a])},this.removeCSSStyleSheet=function(a,c){function d(a,b,c){var d=a.indexOf("#"),e=-1===d?"":a.substr(d);a=-1===d?a:a.substr(0,d);var f=new RegExp("([?&])"+b+"=.*?(&|$)","i"),g=-1!==a.indexOf("?")?"&":"?";return a=a.match(f)?a.replace(f,"$1"+b+"="+c+"$2"):a+g+b+"="+c,a+e}if(-1===k.getActiveStyleSheets().indexOf(a))return console.warn("Unable to remove",a,"because it has never been added."),!1;if(e.splice(e.indexOf(a),1),null!==a.styleNode.parentNode){var f=a.getCustomData("originalNode");f&&"LINK"===f.nodeName&&f.setAttribute("href",d(f.getAttribute("href"),"nocache",Date.now())),a.styleNode.parentNode.insertBefore(f,a.styleNode),c===!0?a.styleNode.parentNode.removeChild(a.styleNode):setTimeout(function(){null!==a.styleNode.parentNode&&a.styleNode.parentNode.removeChild(a.styleNode)},1e3)}return b.eventManager.fire("stylesheet_removed",[a]),a.getCustomData("originalNode")},this.getModifiedStyleSheets=function(){var a,c=[],e=this.getActiveStyleSheets();for(a=0;a<e.length;a++)e[a].hasUnsavedChanges()===!0&&(d===b.modes.INSPECTOR_MODE&&e[a].rebuildSourceCode(),c.push({filename:e[a].getCustomData("sourceFile"),cssString:e[a].privateData.sourceCode,CSSStyleSheet:e[a]}));return c}
8,this.getStylesheetById=function(a){var b,c=this.getActiveStyleSheets();for(b=0;b<c.length;b++)if(c[b].getCustomData("id")===a)return c[b];return!1};var g=[];this.getCSSRulesAppliedToElement=function(a){for(var b=0;b<g.length;b++)g[b].clearInspectedElement();var c=h(a),d={direct:c,inherited:i(a,c)};return g=c.concat(d.inherited),d},this.matchElementWithSelector=function(a,b){try{if(c.call(a,b))return!0}catch(d){return console.warn("couldn't match ",b),!1}return!1};var h=function(a,b){for(var c,d=[],e=f.getActiveCSSRules(),g=0;g<e.length;g++)c=e[g].selectorText,e[g].hasOwnProperty("originalSelectorText")&&-1!==e[g].originalSelectorText.search(/\*|\*:+hover|\*:+active|\*:+after|\*:+before/gi,"")&&(c=e[g].originalSelectorText),f.matchElementWithSelector(a,c.replace(/:+hover|:+active/gi,""))&&(b!==!0&&(e[g].setInspectedElement(a),e[g].inheritDepth=0),d.push(e[g]));return d},i=function(a,b){var c,d=1,e=[];for(void 0===b&&(b=[]),a=a.parentNode;a.nodeType===Node.ELEMENT_NODE;){var f=h(a,!0);for(c=0;c<f.length;c++)if(-1===e.indexOf(f[c])&&-1===b.indexOf(f[c])){var g=f[c].getInheritableProperties();g.length>0&&(f[c].setInspectedElement(a),f[c].inheritDepth=d,e.push(f[c]))}a=a.parentNode,d++}return e};this.reassociateStyleSheets=function(){for(var a=k.getActiveStyleSheets(),c=0;c<a.length;c++){a[c].loopThroughAllRules(function(a,b){b.type===CSSRule.MEDIA_RULE&&b.removeChangeListeners()}),null!==a[c].ownerNode&&(a[c].ownerNode.innerHTML=a[c].getSourceCode());for(var d=0;d<document.styleSheets.length;d++)if(a[c].styleNode===document.styleSheets[d].ownerNode){document.styleSheets[d].setCustomData(a[c].getCustomData());var e=a[c];a[c]=document.styleSheets[d],a[c].loadSourceCode(),b.eventManager.fire("stylesheet_reassociated",[e,a[c]]),a[c].parseAndVerifySourceCode(!0)}}},this.loadStyleSheets=function(a,b){var c=this.getStyleSheetsOnPage(),d=[],e=0;for(e=c.length-1;e>=0;e--)if(a(c[e])===!0){var f=!1;"function"==typeof b&&b(c[e])===!0&&(f=!0),this.addCSSStyleSheet(c[e],e,f)!==!1&&d.push(c[e])}return d}},k=new j;this.engine=k,g.extend(CSSStyleSheet.prototype,{setCustomData:function(a,b){this.hasOwnProperty("publicData")||(this.publicData={}),"object"==typeof a&&void 0===b?g.extend(this.publicData,a):this.publicData[a]=b},getCustomData:function(a){return void 0!==a?this.publicData.hasOwnProperty(a)?this.publicData[a]:void 0:this.publicData},loopThroughAllRules:function(a){var b=this;this.loopThrough=function(c){for(var d=null,e=0;e<c.length;e++){if(a(e,c[e],d)===!1)return!1;void 0!==c[e].cssRules&&b.loopThrough(c[e].cssRules),d=c[e]}},this.loopThrough(this.cssRules)},loadSourceCode:function(){function a(a,b,c){var d=a.indexOf("#"),e=-1===d?"":a.substr(d);a=-1===d?a:a.substr(0,d);var f=new RegExp("([?&])"+b+"=.*?(&|$)","i"),g=-1!==a.indexOf("?")?"&":"?";return a=a.match(f)?a.replace(f,"$1"+b+"="+c+"$2"):a+g+b+"="+c,a+e}var b=this;if(this.privateData={},null!==this.href){var c=new XMLHttpRequest,d=a(this.href,"no-cache",+Date.now());c.open("GET",d,!1),c.onreadystatechange=function(){4===this.readyState&&200===this.status&&(b.privateData.sourceCode=this.responseText.replace(/[\u200B-\u200D\uFEFF]/g,""),b.privateData.sourceCode.replace(/\u00A0/g," "),b.sourceFile=b.href.substring(b.href.lastIndexOf("/")+1,b.href.length).split("?")[0])};try{c.send(null)}catch(e){return!1}}else{this.privateData.sourceCode=this.ownerNode.innerHTML.replace(/[\u200B-\u200D\uFEFF]/g,"");var f=this.ownerNode.getAttribute("data-source");this.setCustomData("sourceFile",null===f?"inline":f),this.styleNode=this.ownerNode}return this.mapParsedRulesToBrowserRules(),this.privateData.sourceCode},getSourceCode:function(){return d!==b.modes.STYLESHEET_MODE&&b.eventManager.fire("mode_change",[b.modes.STYLESHEET_MODE]),this.privateData.sourceCode},insertEditableRule:function(a,c){var e;d!==b.modes.STYLESHEET_MODE?(e=d,b.eventManager.fire("mode_change",[b.modes.STYLESHEET_MODE])):this.mapParsedRulesToBrowserRules(),isNaN(c)&&(c=0);var f=!0;c>this.cssRules.length-1?c=this.cssRules.length-1:0>=c&&(c=0,f=!1);var g=this.getSourceCode();if(""===g)return this.updateSourceCode(a),void 0!==e&&b.eventManager.fire("mode_change",[e]),0;var h=g.replace(/\n\r?/g,"$split$").split("$split$"),i=this.cssRules[c];if(f){var j=h[i.parsedRule.endsAtLine-1];if(void 0===j)return!1;var k=i.parsedRule.endsAtLine-1,l=h[k].replace("}","}\n\n"+a),m=l.split("\n");Array.prototype.splice.apply(h,[k,1].concat(m))}else h.unshift(a+"\n");return this.updateSourceCode(h.join("\n")),void 0!==e&&b.eventManager.fire("mode_change",[e]),f?c+1:0},getLintResults:function(a){var b=this.parseAndVerifySourceCode(a);return b.messages},getParsedRules:function(a){var b=this.parseAndVerifySourceCode(a);return b.stats.parsedRules},getParsedLines:function(a){var b=this.parseAndVerifySourceCode(a);return b.stats.parsedLines},parseAndVerifySourceCode:function(a){d===b.modes.INSPECTOR_MODE&&this.rebuildSourceCode(!0);var c=g.crc32(this.privateData.sourceCode);
8if(c===this.getCustomData("lastSourceHash")&&a!==!0)return this.getCustomData("lastParseResults");var e=CSSLint.verify(this.privateData.sourceCode);this.setCustomData("lastParseResults",e),this.setCustomData("lastSourceHash",c);var f,h=0;for(void 0!==this.getCustomData("lintResults")&&(h=this.getCustomData("lintResults").length),this.setCustomData("lintResults",[]),f=0;f<e.messages.length;f++)"error"===e.messages[f].type&&this.getCustomData("lintResults").push(e.messages[f]);return this.getCustomData("lintResults").length>0?this.getCustomData("invalid")!==!0&&(this.setCustomData("invalid",!0),b.eventManager.fire("stylesheet_invalid",[this])):h>0&&0===this.getCustomData("lintResults").length&&this.getCustomData("invalid")===!0&&(this.setCustomData("invalid",!1),b.eventManager.fire("stylesheet_valid",[this])),b.eventManager.fire("stylesheet_lint_update",[this,this.getCustomData("lintResults")]),b.eventManager.fire("stylesheet_parsed",[this,this.getCustomData("lintResults")]),e},getCascadeIndex:function(){for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a]===this)return a;return-1},updateSourceCode:function(a){b.eventManager.fire("mode_change",[b.modes.STYLESHEET_MODE]);var c={success:!0,revert:!1};return this.getCustomData("savable")!==!0?(c.success=!1,c.revert=!0,c):(this.styleNode.innerHTML=this.privateData.sourceCode=a.replace(/\u00A0/g," ").replace(/[\u200B-\u200D\uFEFF]/g,""),this.getCustomData("hasUnrecoverableError")&&this.mapParsedRulesToBrowserRules(),this.markAsUnsaved(),this.setCustomData("lastMode",b.mode),this.getCustomData("invalid")&&this.parseAndVerifySourceCode(),b.eventManager.fire("style_changed",[this]),c)},rebuildSourceCode:function(a){var b=!1;if(0===this.cssRules.length)return this.privateData.sourceCode;if(this.hasOwnProperty("sourceCodeRebuildTemplate")){if(b=this.sourceCodeRebuildTemplate,""===b)return!1;var c=this.getCustomData("inspectableRules"),d=b.match(/(\[\[\*__\d+__\*\]\])/gm);if(void 0!==this.getCustomData("lastParseResults")&&this.getCustomData("lastParseResults").stats.hasOwnProperty("parsedRules")&&null!==d&&this.getCustomData("lastParseResults").stats.parsedRules.length!==d.length)return console.warn("couldn't rebuild source. Mismatch between amount of placeholders and active rules."),!1;if(null===d)return console.warn("couldn't rebuild source. No placeholders in rebuild template."),!1;if(d.length!==c.length)return console.warn("couldn't rebuild source. Mismatch between amount of placeholders and active rules."),!1;for(var e=0;e<c.length;e++)c[e].hasOwnProperty("cssPlaceHolderRegEx")&&(b=b.replace(c[e].cssPlaceHolderRegEx,c[e].getSourceCode()));this.privateData.sourceCode=b,a!==!0&&this.parseAndVerifySourceCode()}return b},mapParsedRulesToBrowserRules:function(){this.privateData.hasOwnProperty("sourceCode")||this.loadSourceCode(),this.setCustomData("inspectableRules",[]),this.sourceCodeRebuildTemplate=this.privateData.sourceCode;var a,b,c,d=this.getParsedRules(),e=this.getParsedLines(),f="",g=0,h=this;if(void 0!==d&&void 0!==e){e=e.slice(0),this.loopThroughAllRules(function(e,f){if(f.type===CSSRule.STYLE_RULE&&g<d.length){if(c=d[g],b=!1,f.cssText===c.browserParsedCssText)b=!0;else{console.warn("Couldn't match: ",f.cssText," with ",c," on first try. Looking ahead...");for(var i=g+1;i<d.length;i++)if(c=d[i],f.cssText===c.browserParsedCssText){console.log("Match succeeded eventually. Skipped "+(i-g)+" rules"),b=!0,g=i;break}b===!1&&console.warn("No match found anywhere. Ignoring this rule.")}if(b){f.parsedRule=c,f.cssPlaceHolderId=g,f.cssPlaceHolderText="[[*__"+g+"__*]]",f.cssPlaceHolderRegEx=new RegExp("(\\[\\[\\*__"+g+"__\\*\\]\\])","gm"),a=[];for(var j=0;j<c.selectors.length;j++)a.push(c.selectors[j].text);f.originalSelectorText=a.join(", "),h.getCustomData("inspectableRules").push(f)}g++}else f.type===CSSRule.MEDIA_RULE&&f.addChangeListener() 9});var c,i,j,k=h.getCustomData("inspectableRules");for(j=k.length-1;j>=0;j--)if(c=k[j].parsedRule,c.startsAtLine===c.endsAtLine)e[c.startsAtLine-1]=e[c.startsAtLine-1].replaceBetween(c.startsAtCol-1,c.endsAtCol-1,k[j].cssPlaceHolderText);else for(i=c.endsAtLine;i>=c.startsAtLine;i--)i===c.startsAtLine?e[i-1]=e[i-1].substring(0,c.startsAtCol-1)+k[j].cssPlaceHolderText:i===c.endsAtLine?(e[i-1]=e[i-1].substring(c.endsAtCol-1),0===e[i-1].length&&e.splice(i-1,1)):e.splice(i-1,1);f=e.join("\n"),this.sourceCodeRebuildTemplate=f}},hasUnsavedChanges:function(){return this.getCustomData("unsavedChanges")}
9,markAsUnsaved:function(){this.getCustomData("unsavedChanges")!==!0&&(this.setCustomData("unsavedChanges",!0),b.eventManager.fire("unsaved_stylesheet",this))},markAsSaved:function(){this.getCustomData("unsavedChanges")!==!1&&(this.setCustomData("unsavedChanges",!1),b.eventManager.fire("saved_stylesheet",this))},publicData:{}}),g.extend(CSSRule.prototype,{updateActiveState:function(a){this.isActive!==a&&(this.isActive=a,b.eventManager.fire("CSSRuleStateChange",[this,a]))},getSourceCode:function(){return this.parsedRule.cssText},setInspectedElement:function(a){this.inspectedElement!==a&&(this.inspectedElement=a,this.addPseudoClassEventListeners())},getInspectedElement:function(){return this.inspectedElement},clearInspectedElement:function(){this.inspectedElement=void 0,this.removePseudoClassEventListeners()},removePseudoClassEventListeners:function(){for(var a,b=0;b<this.psuedoClassEventListeners.length;b++)a=this.psuedoClassEventListeners[b],a.el.removeEventListener(a.type,a.handler,!1);this.psuedoClassEventListeners=[]},addPseudoClassEventListeners:function(){if(this.removePseudoClassEventListeners(),void 0===this.inspectedElement||-1===this.selectorText.search(/:hover|:active/gi))return!1;var a,b,c,d=this,e=this.selectorText;this.hasOwnProperty("originalSelectorText")&&-1!==this.originalSelectorText.search(/\*:hover|\*:active/gi,"")&&(e=this.originalSelectorText);var f=e.split(",");for(b=0;b<f.length;b++){var g=f[b];if(-1!==g.indexOf(":active")){var h=g.substring(0,g.indexOf(":active")),i=document.querySelectorAll(h);for(c=0;c<i.length;c++)a={el:i[c],type:"mousedown",handler:function(){d.updateActiveState(!0)}},a.el.addEventListener(a.type,a.handler,!1),this.psuedoClassEventListeners.push(a),a={el:i[c],type:"mouseup",handler:function(){d.updateActiveState(!1)}},a.el.addEventListener(a.type,a.handler,!1),this.psuedoClassEventListeners.push(a),a={el:i[c],type:"mouseout",handler:function(){d.updateActiveState(!1)}},a.el.addEventListener(a.type,a.handler,!1),this.psuedoClassEventListeners.push(a);d.updateActiveState(!1)}if(-1!==g.indexOf(":hover")){var h=g.substring(0,g.indexOf(":hover")),i=document.querySelectorAll(h);for(c=0;c<i.length;c++)a={el:i[c],type:"mouseenter",handler:function(){d.updateActiveState(!0)}},a.el.addEventListener(a.type,a.handler,!1),this.psuedoClassEventListeners.push(a),a={el:i[c],type:"mouseleave",handler:function(){d.updateActiveState(!1)}},a.el.addEventListener(a.type,a.handler,!1),this.psuedoClassEventListeners.push(a);d.updateActiveState(k.matchElementWithSelector(this.inspectedElement,":hover"))}}this.hasPsuedoClassEventListeners=!0},getInheritableProperties:function(){var a,b=[];for(a=0;a<this.style.length;a++)-1!==f.inheritableProperties.indexOf(this.style[a])&&b.push(this.style[a]);return b},mergeDeclarations:function(a){if(b.eventManager.fire("mode_change",[b.modes.INSPECTOR_MODE]),"object"!=typeof a)return console.warn("mergeDeclarations expects the new declarations as Object Literal. Aborting."),!1;var c,d;for(c in a)if(d=a[c].value,""!==d){var e=".__test__ { "+c+": "+d+"; }",f=CSSLint.verify(e);0===f.stats.parsedRules[0].properties.length&&(console.info('mergeDeclarations: Unable to parse "'+c+": "+d+';". Ignoring this declaration.'),delete a[c])}var g,h,i,j,k,l,m=this.getSourceCode().replace(/\n\r?/g,"$split$").split("$split$"),n=this.parsedRule.startsAtLine,o=[];for(l=this.parsedRule.properties.length-1;l>=0;l--)k=this.parsedRule.properties[l],a.hasOwnProperty(k.property.text)===!0&&-1===o.indexOf(k.property.text)&&(g=k.property.text,h=a[k.property.text].value,i=a[k.property.text].meta,""===h?k.line!==k.value.line?console.warn("Removing multiline declarations is not (yet) supported."):(j=k.value.line-n,m[j]=m[j].replaceBetween(k.col-1,k.endsAtCol-1,""),(0===m[j].length||/^\s*$/.test(m[j]))&&m.splice(j,1)):(j=k.value.line-n,-1===m[j].indexOf(";")?console.warn("Modifying multiline or unclosed values is not (yet) supported."):(m[j]=m[j].replaceBetween(k.value.col-1,m[j].indexOf(";"),h),void 0!==i?m[j]=m[j].replace(";"," /*!"+i+"*/;"):void 0!==k.metadataFull&&(m[j]=m[j].replace(";",k.metadataFull+";"))),o.push(k.property.text)));for(g in a)if(h=a[g].value,i=a[g].meta,-1===o.indexOf(g)){if(""!==h){var p=" "+g+": "+h;void 0!==i&&""!==i&&(p+=" /*!"+i+"*/"),m.splice(m.length-1,0,p+";")}o.push(g)}var q=m.join("\n");this.updateSourceCode(q)},getParsedRule:function(){return CSSLint.verify(new Array(this.parsedRule.startsAtLine).join("\n")+this.parsedRule.cssText).stats.parsedRules[0]},updateSourceCode:function(a){b.eventManager.fire("mode_change",[b.modes.INSPECTOR_MODE]);var c,d,e,f,g,h={success:!0,revert:!1},i=b.parseSingleRule(a),j=0===a.replace(/\W/g,"").length,k=[],l=[];
9if(this.parentStyleSheet.getCustomData("savable")!==!0)return h.success=!1,h.revert=!0,h;if(i!==!1){if(this.parsedRule.cssText=a,c=this.selectorText,this.selectorText=i.selectorText,c!==i.selectorText&&(this.addPseudoClassEventListeners(),b.eventManager.fire("selectortext_changed",[this,i.selectorText])),i.selectorText!==this.selectorText)return alert("Class names can be edited in Full CSS mode."),h.success=!1,h.revert=!0,h;for(;this.style.length>0;)e=this.style[0],-1!==e.search(/(border|margin|padding).+-value/gi)&&(e=e.substring(0,e.lastIndexOf("-value"))),this.style.removeProperty(e);for(g=0;g<i.style.length;g++)e=i.style.item(g),f=i.style.getPropertyValue(e),d=i.style.getPropertyPriority(e),-1===e.search(/(l|r)t(l|r)-source/gi)&&(-1!==e.search(/(border|margin|padding).+-value/gi)&&(e=e.substring(0,e.lastIndexOf("-value"))),d||(d=""),this.style.setProperty(e,f,d));null!==i.style.getPropertyValue("background-repeat")&&this.style.setProperty("background-repeat",i.style.getPropertyValue("background-repeat"),i.style.getPropertyPriority("background-repeat"));var m=this.getParsedRule(),n=function(a,b,c,d){for(var e in a)b.hasOwnProperty(e)?c(e,a[e],b[e]):d(e,a[e],b[e])};if(void 0!==m){var o=m.propertyMap,p=this.parsedRule.propertyMap,q=m.endsAtLine-this.parsedRule.endsAtLine,r=this.parentStyleSheet.getCustomData("inspectableRules");if(void 0!==r&&0!==q){var s=[],t=function v(a,b,c){if(c===!0&&(s=[]),!(a instanceof Error))for(var d in a)"object"==typeof a[d]&&null!==a[d]&&-1===s.indexOf(a[d])?(v(a[d],b,!1),s.push(a[d])):"line"!==d||isNaN(a[d])||(a[d]+=b)};this.parsedRule.endsAtLine+=q;for(var g=0;g<r.length;g++)r[g]!==this&&r[g].parsedRule.startsAtLine>this.parsedRule.endsAtLine&&(r[g].parsedRule.startsAtLine+=q,r[g].parsedRule.endsAtLine+=q,t(r[g].parsedRule,q,!0));b.eventManager.fire("linenumbers_update",this.parentStyleSheet)}n(o,p,function(a,b,c){for(var d,e={},f={},g=0;g<c.length;g++)d=a+":"+c[g].value.text+":"+(c[g].important?1:0),e.hasOwnProperty(d)||(e[d]=[]),e[d].push(c[g]);for(var g=0;g<b.length;g++)d=a+":"+b[g].value.text+":"+(b[g].important?1:0),f.hasOwnProperty(d)||(f[d]=[]),f[d].push(b[g]);n(f,e,function(a,b,c){var d=b.length-c.length;if(0>d)for(g=0;-1*d>g;g++)l.push(c[g]);else if(d>0)for(g=0;d>g;g++)k.push(b[g])},function(a,b){for(g=0;g<b.length;g++)k.push(b[g])}),n(e,f,function(){},function(a,b){for(g=0;g<b.length;g++)l.push(b[g])})},function(a,b){for(g=0;g<b.length;g++)k.push(b[g])}),n(p,o,function(){},function(a,b){for(g=0;g<b.length;g++)l.push(b[g])}),this.parsedRule=m}k.length>0&&b.eventManager.fire("properties_added",[this,k]),l.length>0&&b.eventManager.fire("properties_removed",[this,l])}else{if(!j)return h.success=!1,h.revert=!1,h;if(!confirm("This will remove the rule and cannot be undone."))return h.success=!1,h.revert=!0,h;a="",this.parsedRule.cssText=a}if(this.parentStyleSheet.markAsUnsaved(),this.parentStyleSheet.setCustomData("lastMode",b.mode),j){var u=this;this.parentStyleSheet.loopThroughAllRules(function(a,c){if(c===u){var d=u.parentStyleSheet.getCustomData("inspectableRules");return u.parentStyleSheet.setCustomData("inspectableRules",d.splice(d.indexOf(u),1)),u.parentStyleSheet.hasOwnProperty("sourceCodeRebuildTemplate")&&u.hasOwnProperty("cssPlaceHolderRegEx")&&(u.parentStyleSheet.sourceCodeRebuildTemplate=u.parentStyleSheet.sourceCodeRebuildTemplate.replace(u.cssPlaceHolderRegEx,u.parsedRule.cssText)),b.eventManager.fire("delete_rule",[u]),null!==u.parentRule?u.parentRule.deleteRule(a):u.parentStyleSheet.deleteRule(a),!1}})}return b.eventManager.fire("style_changed",[this]),h},isActive:!0,psuedoClassEventListeners:[]}),g.extend(CSSMediaRule.prototype,{addChangeListener:function(){if(!this.hasChangeListener){var a,b=this;for(a=0;a<this.media.length;a++){var c=matchMedia(this.media[a]),d=function(a){b.activeStateChange(a.matches)};c.addListener(d),b.changeListeners.push({matcher:c,listener:d}),b.activeStateChange(c.matches)}}},removeChangeListeners:function(){for(var a=0;a<this.changeListeners.length;a++)this.changeListeners[a].matcher.removeListener(this.changeListeners[a].listener);this.changeListeners=[]}
9,activeStateChange:function(a){if(this.isActive=a,b.eventManager.fire("CSSMediaRuleStateChange",[this,a]),null!==this.cssRules)for(var c=0;c<this.cssRules.length;c++)this.cssRules[c].updateActiveState(a)},isActive:!0,hasChangeListener:!1,changeListeners:[]}),e()}.call(window.CargoInspector=document.CargoInspector=document.CargoInspector||{});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.