From: alexlamsl Date: Sat, 26 Mar 2016 11:26:43 +0000 (+0800) Subject: suppress minifyCSS on non-CSS contents X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c9965699bf56e15f0332b2182ae7a1bd04f50a0a;p=html-minifier.git suppress minifyCSS on non-CSS contents --- diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index f2722e1..2eac123 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -31965,6 +31965,20 @@ function isExecutableScript(tag, attrs) { return true; } +function isStyleSheet(tag, attrs) { + if (tag !== 'style') { + return false; + } + for (var i = 0, len = attrs.length; i < len; i++) { + var attrName = attrs[i].name.toLowerCase(); + if (attrName === 'type') { + var attrValue = trimWhitespace(attrs[i].value).toLowerCase(); + return attrValue === '' || attrValue === 'text/css'; + } + } + return true; +} + function isStyleLinkTypeAttribute(tag, attrName, attrValue) { return ( (tag === 'style' || tag === 'link') && @@ -32723,7 +32737,7 @@ function minify(value, options, partialMarkup) { text = text.slice(0, -1); } } - if (currentTag === 'style' && options.minifyCSS) { + if (options.minifyCSS && isStyleSheet(currentTag, currentAttrs)) { text = minifyCSS(text, options.minifyCSS); } if (options.removeOptionalTags && text) { diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index c94b736..39ff24d 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -15,4 +15,4 @@ for(var b,c=0,d=this.children.length;d>c;c++)b=this.children[c],b[i]?b.walk(a):" var i=null,j=b.globals=new v,h=new y(function(a,c){if(a instanceof sa){var d=i;return i=a,c(),i=d,!0}if(a instanceof Aa&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof pb){var e=a.name;if("eval"==e&&h.parent()instanceof Pa)for(var f=a.scope;f&&!f.uses_eval;f=f.parent_scope)f.uses_eval=!0;var g=a.scope.find_variable(e);if(g)a.thedef=g;else{var k;j.has(e)?k=j.get(e):(k=new Q(b,j.size(),a),k.undeclared=!0,k.global=!0,j.set(e,k)),a.thedef=k,i&&"arguments"==e&&(i.uses_arguments=!0)}return a.reference(),!0}});b.walk(h),a.cache&&(this.cname=a.cache.cname)}),qa.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),sa.DEFMETHOD("init_scope_vars",function(){qa.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var a=new Oa({name:"arguments",start:this.start,end:this.end}),b=new Q(this,this.variables.size(),a);this.variables.set(a.name,b)}),pb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),qa.DEFMETHOD("find_variable",function(a){return a instanceof fb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),qa.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),qa.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new Q(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),qa.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=Zb(++this.cname);if(F(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),ua.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof kb&&this.name&&this.name.definition();;){var d=sa.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),qa.DEFMETHOD("references",function(a){return a instanceof fb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),fb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),gb.DEFMETHOD("unmangleable",function(){return!0}),ob.DEFMETHOD("unmangleable",function(){return!1}),fb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),fb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),qb.DEFMETHOD("undeclared",function(){return!1}),ob.DEFMETHOD("undeclared",function(){return!1}),fb.DEFMETHOD("definition",function(){return this.thedef}),fb.DEFMETHOD("global",function(){return this.definition().global}),Ma.DEFMETHOD("has_const_pragma",function(){var a=this.start&&this.start.comments_before,b=a&&a[a.length-1];return b&&/@const\b/.test(b.value)}),ra.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),ra.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a),a.except.push("arguments");var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new y(function(e,f){if(e instanceof ia){var g=b;return f(),b=g,!0}if(e instanceof qa){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),a.sort&&h.sort(function(a,b){return b.references.length-a.references.length}),void c.push.apply(c,h)}if(e instanceof ob){var i;do i=Zb(++b);while(!F(i));return e.mangled_name=i,!0}return a.screw_ie8&&e instanceof nb?void c.push(e.definition()):void 0});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),ra.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new y(function(b){b instanceof sb?Zb.consider(b.print_to_string()):b instanceof ya?Zb.consider("return"):b instanceof za?Zb.consider("throw"):b instanceof Ca?Zb.consider("continue"):b instanceof Ba?Zb.consider("break"):b instanceof ba?Zb.consider("debugger"):b instanceof ca?Zb.consider(b.value):b instanceof ma?Zb.consider("while"):b instanceof la?Zb.consider("do while"):b instanceof Da?(Zb.consider("if"),b.alternative&&Zb.consider("else")):b instanceof Ma?Zb.consider("var"):b instanceof Na?Zb.consider("const"):b instanceof sa?Zb.consider("function"):b instanceof na?Zb.consider("for"):b instanceof oa?Zb.consider("for in"):b instanceof Ea?Zb.consider("switch"):b instanceof Ha?Zb.consider("case"):b instanceof Ga?Zb.consider("default"):b instanceof pa?Zb.consider("with"):b instanceof db?Zb.consider("set"+b.key):b instanceof eb?Zb.consider("get"+b.key):b instanceof cb?Zb.consider(b.key):b instanceof Qa?Zb.consider("new"):b instanceof rb?Zb.consider("this"):b instanceof Ia?Zb.consider("try"):b instanceof Ja?Zb.consider("catch"):b instanceof Ka?Zb.consider("finally"):b instanceof fb&&b.unmangleable(a)?Zb.consider(b.name):b instanceof Va||b instanceof Ya?Zb.consider(b.operator):b instanceof Ta&&Zb.consider(b.property)});this.walk(b),Zb.sort()});var Zb=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return A(a)&&!A(b)?1:A(b)&&!A(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();ra.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new y(function(c){if(a.undeclared&&c instanceof pb&&c.undeclared()&&_.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof $a&&c.left instanceof pb?d=c.left:c instanceof oa&&c.init instanceof pb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&_.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof pb&&c.undeclared()&&"eval"==c.name&&_.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof hb||c instanceof ob)&&!(c instanceof nb)&&c.unreferenced()&&_.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof ob?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof sa&&c.uses_arguments&&_.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof va&&!(b.parent()instanceof qa)&&_.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)}),function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c){var d=a.length-1;a.forEach(function(a,e){a instanceof ga||(c.indent(),a.print(c),e==d&&b||(c.newline(),b&&c.newline()))})}function d(a,b){a.length>0?b.with_block(function(){c(a,!1,b)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof la&&!b.option("screw_ie8"))return void n(a.body,b);for(var c=a.body;;)if(c instanceof Da){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ha))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ga?b.print("{}"):a instanceof fa?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ga?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof aa&&e.body===d)return!0;if(!(e instanceof Ra&&e.car===d||e instanceof Pa&&e.expression===d&&!(e instanceof Qa)||e instanceof Ta&&e.expression===d||e instanceof Ua&&e.expression===d||e instanceof Za&&e.condition===d||e instanceof Ya&&e.left===d||e instanceof Xa&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return 0==a.args.length&&!b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof fa?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1;_.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof ca&&"use asm"==d.value&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof sa&&(q=f)}),_.DEFMETHOD("print_to_string",function(a){var b=R(a);return this.print(b),b.get()}),_.DEFMETHOD("add_comments",function(a){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof xa&&c.value&&c.value.walk(new y(function(a){return a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof ua||a instanceof _a||a instanceof ab?!0:void 0})),b?b.test?e=e.filter(function(a){return"comment5"==a.type||b.test(a.value)}):"function"==typeof b&&(e=e.filter(function(a){return"comment5"==a.type||b(c,a)})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}),b(_,function(){return!1}),b(ua,function(a){return i(a)}),b(ab,function(a){return i(a)}),b([Va,zb],function(a){var b=a.parent();return b instanceof Sa&&b.expression===this}),b(Ra,function(a){var b=a.parent();return b instanceof Pa||b instanceof Va||b instanceof Ya||b instanceof Oa||b instanceof Sa||b instanceof _a||b instanceof bb||b instanceof Za}),b(Ya,function(a){var b=a.parent();if(b instanceof Pa&&b.expression===this)return!0;if(b instanceof Va)return!0;if(b instanceof Sa&&b.expression===this)return!0;if(b instanceof Ya){var c=b.operator,d=Wb[c],e=this.operator,f=Wb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Sa,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)try{this.walk(new y(function(a){if(a instanceof Pa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Pa,function(a){var b,c=a.parent();return c instanceof Qa&&c.expression===this?!0:this.expression instanceof ua&&c instanceof Sa&&c.expression===this&&(b=a.parent(1))instanceof $a&&b.left===c}),b(Qa,function(a){var b=a.parent();return j(this,a)&&(b instanceof Sa||b instanceof Pa&&b.expression===this)?!0:void 0}),b(ub,function(a){var b=a.parent();return this.getValue()<0&&b instanceof Sa&&b.expression===this?!0:void 0}),b([$a,Za],function(a){var b=a.parent();return b instanceof Va?!0:b instanceof Ya&&!(b instanceof $a)?!0:b instanceof Pa&&b.expression===this?!0:b instanceof Za&&b.condition===this?!0:b instanceof Sa&&b.expression===this?!0:void 0}),a(ca,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ba,function(a,b){b.print("debugger"),b.semicolon()}),ha.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(aa,function(a,b){a.body.print(b),b.semicolon()}),a(ra,function(a,b){c(a.body,!0,b),b.print("")}),a(ia,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(da,function(a,b){a.body.print(b),b.semicolon()}),a(fa,function(a,b){d(a.body,b)}),a(ga,function(a,b){b.semicolon()}),a(la,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(ma,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(na,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ga?b.print(";"):(a.init instanceof La?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(oa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(pa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),sa.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a)}),a(sa,function(a,b){a._do_print(b)}),xa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(ya,function(a,b){a._do_print(b,"return")}),a(za,function(a,b){a._do_print(b,"throw")}),Aa.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ba,function(a,b){a._do_print(b,"break")}),a(Ca,function(a,b){a._do_print(b,"continue")}),a(Da,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Ea,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Fa.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(Ga,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ha,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ia,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Ja,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(Ka,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),La.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof na||c instanceof oa,e=d&&c.init===this;e||a.semicolon()}),a(Ma,function(a,b){a._do_print(b,"var")}),a(Na,function(a,b){a._do_print(b,"const")}),a(Oa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof na||c instanceof oa;f(a.value,b,d)}}),a(Pa,function(a,b){a.expression.print(b),a instanceof Qa&&j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Qa,function(a,b){b.print("new"),b.space(),Pa.prototype._codegen(a,b)}),Ra.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Ra,function(a,b){a._do_print(b)}),a(Ta,function(a,b){var c=a.expression;c.print(b),c instanceof ub&&c.getValue()>=0&&(/[xa-f.]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Ua,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Wa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Wa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Xa,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Ya,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Xa&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Wa&&"!"==a.right.operator&&a.right.expression instanceof Wa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a(Za,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(_a,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Ab&&b.comma()}),d>0&&b.space()})}),a(ab,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(cb,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Hb(c)?b.option("screw_ie8"):I(c))?b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(db,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(eb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(zb,function(a,b){b.print("void 0")}),a(Ab,m),a(Bb,function(a,b){b.print("Infinity")}),a(yb,function(a,b){b.print("NaN")}),a(rb,function(a,b){b.print("this")}),a(sb,function(a,b){b.print(a.getValue())}),a(tb,function(a,b){b.print_string(a.getValue(),a.quote)}),a(ub,function(a,b){q&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(vb,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof Ya&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(_,m),o(ca,p),o(ba,p),o(fb,p),o(wa,p),o(ha,p),o(ia,m),o(sa,p),o(Ea,p),o(Fa,p),o(fa,p),o(ra,m),o(Qa,p),o(Ia,p),o(Ja,p),o(Ka,p),o(La,p),o(sb,p),o(db,function(a,b){b.add_mapping(a.start,a.key.name)}),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(bb,function(a,b){b.add_mapping(a.start,a.key)})}(),S.prototype=new P,l(S.prototype,{option:function(a){return this.options[a]},warn:function(){this.options.warnings&&_.warn.apply(_,arguments)},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof qa&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof qa&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof _)return c.transform(a);switch(typeof c){case"string":return b(tb,d,{value:c}).optimize(a);case"number":return b(isNaN(c)?yb:ub,d,{value:c}).optimize(a);case"boolean":return b(c?Eb:Db,d).optimize(a);case"undefined":return b(zb,d).optimize(a);default:if(null===c)return b(xb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(vb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Pa&&a.expression===c&&(d instanceof Sa||d instanceof pb&&"eval"===d.name)?b(Ra,c,{car:b(ub,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof fa)return a.body;if(a instanceof ga)return[];if(a instanceof aa)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a?!0:a instanceof ga?!0:a instanceof fa?0==a.body.length:!1}function i(a){return a instanceof Ea?a:(a instanceof na||a instanceof oa||a instanceof ka)&&a.body instanceof fa?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof pb&&(b instanceof $a&&a===b.left||b instanceof Va&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,u.value);return u.value=null,n.splice(t,1),0===n.length&&(a[l]=b(ga,h),i=!0),k.walk(new y(function(a){delete a._squeezed,delete a._optimized})),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),s=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof La)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),0>=j)break;var l=j-1,m=a[l];if(m instanceof La){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},t=n.length;--t>=0;){var u=n[t];if(null==u.value)break;var v=u.name.name;if(!v||!v.length)break;if(v in o)break;o[v]=!0;var w=h.find_variable&&h.find_variable(v);if(w&&w.references&&1===w.references.length&&"arguments"!=v){var x=w.references[0];if(x.scope.uses_eval||x.scope.uses_with)break;if(u.value.is_constant(c)){var z=new P(function(a){return a===x?g(a,z.parent(),!0):void 0});k.transform(z)}else if(!(p|=q))if(x.scope===h){var A=new y(function(a){a instanceof pb&&e(a,A.parent())&&(r[a.name]=q=!0)});u.value.walk(A);var B=!1,C=new P(function(a){if(B)return a;var b=C.parent();return a instanceof sa||a instanceof Ia||a instanceof pa||a instanceof Ha||a instanceof ja||b instanceof Da&&a!==b.condition||b instanceof Za&&a!==b.condition||b instanceof Ya&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Ea&&a!==b.expression?(p=B=!0,a):void 0},function(a){return B?a:a===x?(B=!0,g(a,C.parent(),!1)):(p|=a.has_side_effects(c))?(B=!0,a):q&&a instanceof pb&&a.name in r?(p=!0,B=!0,a):void 0});k.transform(C)}else p|=u.value.has_side_effects(c)}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof ga&&a.splice(D,1);return a}function g(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(tb,a,{value:a.name})})}function f(a,c){return b(_a,a,{elements:c})}function g(a,c){return b(da,a,{body:b($a,a,{operator:"=",left:b(Ta,c,{expression:b(pb,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof sa&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof va?a.push(g(b,b.name)):b instanceof La?b.definitions.forEach(function(b){b.value&&b.value instanceof sa&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function h(a){var b=[];return a.reduce(function(a,c){return c instanceof fa?(s=!0,a.push.apply(a,h(c.body))):c instanceof ga?s=!0:c instanceof ca?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):s=!0:a.push(c),a},[])}function j(a,c){var d=c.self(),f=d instanceof sa,g=[];a:for(var h=a.length;--h>=0;){var j=a[h];switch(!0){case f&&j instanceof ya&&!j.value&&0==g.length:s=!0;continue a;case j instanceof Da:if(j.body instanceof ya){if((f&&0==g.length||g[0]instanceof ya&&!g[0].value)&&!j.body.value&&!j.alternative){s=!0;var k=b(da,j.condition,{body:j.condition});g.unshift(k);continue a}if(g[0]instanceof ya&&j.body.value&&g[0].value&&!j.alternative){s=!0,j=j.clone(),j.alternative=g[0],g[0]=j.transform(c);continue a}if((0==g.length||g[0]instanceof ya)&&j.body.value&&!j.alternative&&f){s=!0,j=j.clone(),j.alternative=g[0]||b(ya,j,{value:b(zb,j)}),g[0]=j.transform(c);continue a}if(!j.body.value&&f){s=!0,j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=null,g=[j.transform(c)];continue a}if(c.option("sequences")&&1==g.length&&f&&g[0]instanceof da&&(!j.alternative||j.alternative instanceof da)){s=!0,g.push(b(ya,g[0],{value:b(zb,g[0])}).transform(c)),g=e(j.alternative).concat(g),g.unshift(j);continue a}}var l=m(j.body),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0;var o=e(j.body).slice(0,-1);j=j.clone(),j.condition=j.condition.negate(c),j.body=b(fa,j,{body:e(j.alternative).concat(g)}),j.alternative=b(fa,j,{body:o}),g=[j.transform(c)];continue a}var l=m(j.alternative),n=l instanceof Aa?c.loopcontrol_target(l.label):null;if(l&&(l instanceof ya&&!l.value&&f||l instanceof Ca&&d===i(n)||l instanceof Ba&&n instanceof fa&&d===n)){l.label&&p(l.label.thedef.references,l),s=!0,j=j.clone(),j.body=b(fa,j.body,{body:e(j.body).concat(g)}),j.alternative=b(fa,j.alternative,{body:e(j.alternative).slice(0,-1)}),g=[j.transform(c)];continue a}g.unshift(j);break;default:g.unshift(j)}}return g}function l(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)k(b,d,a);else{if(d instanceof Aa){var f=b.loopcontrol_target(d.label);d instanceof Ba&&f instanceof fa&&i(f)===e||d instanceof Ca&&i(f)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);m(d)&&(c=!0)}return a},[]),s=a.length!=d,a}function n(a,c){function d(){e=Ra.from_array(e),e&&f.push(b(da,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof da&&e.length<2e3?e.push(a.body):(d(),f.push(a))}),d(),f=o(f,c),s=f.length!=a.length,f}function o(a,c){function d(a){e.pop();var b=f.body;return b instanceof Ra?b.add(a):b=Ra.cons(b,a),b.transform(c)}var e=[],f=null;return a.forEach(function(a){if(f)if(a instanceof na){var c={};try{f.body.walk(new y(function(a){if(a instanceof Ya&&"in"==a.operator)throw c})),!a.init||a.init instanceof La?a.init||(a.init=f.body,e.pop()):a.init=d(a.init)}catch(g){if(g!==c)throw g}}else a instanceof Da?a.condition=d(a.condition):a instanceof pa?a.expression=d(a.expression):a instanceof xa&&a.value?a.value=d(a.value):a instanceof xa?a.value=d(b(zb,a)):a instanceof Ea&&(a.expression=d(a.expression));e.push(a),f=a instanceof da?a:null}),e}function q(a,b){var c=null;return a.reduce(function(a,b){return b instanceof La&&c&&c.TYPE==b.TYPE?(c.definitions=c.definitions.concat(b.definitions),s=!0):b instanceof na&&c instanceof La&&(!b.init||b.init.TYPE==c.TYPE)?(s=!0,a.pop(),b.init?b.init.definitions=c.definitions.concat(b.init.definitions):b.init=c,a.push(b),c=b):(c=b,a.push(b)),a},[])}function r(a,c){a.forEach(function(a){a instanceof da&&(a.body=function c(a){return a.transform(new P(function(a){if(a instanceof Pa&&a.expression instanceof ua)return b(Wa,a,{operator:"!",expression:a});if(a instanceof Pa)a.expression=c(a.expression);else if(a instanceof Ra)a.car=c(a.car);else if(a instanceof Za){var d=c(a.condition);if(d!==a.condition){a.condition=d;var e=a.consequent;a.consequent=a.alternative,a.alternative=e}}return a}))}(a.body))})}var s,t=10;do s=!1,c.option("angular")&&(a=g(a)),a=h(a),c.option("dead_code")&&(a=l(a,c)),c.option("if_return")&&(a=j(a,c)),c.option("sequences")&&(a=n(a,c)),c.option("join_vars")&&(a=q(a,c)),c.option("collapse_vars")&&(a=f(a,c));while(s&&t-- >0);return c.option("negate_iife")&&r(a,c),a}function k(a,b,c){a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new y(function(b){return b instanceof La?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof va?(c.push(b),!0):b instanceof qa?!0:void 0}))}function l(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function m(a){return a&&a.aborts()}function r(a,c){function d(d){d=e(d),a.body instanceof fa?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(fa,a.body,{body:d}).transform(c),r(a,c)}var f=a.body instanceof fa?a.body.body[0]:a.body;f instanceof Da&&(f.body instanceof Ba&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ba&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Ya,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function s(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function w(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Eb,a):a}a(_,function(a,b){return a}),_.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(_,function(){return!1}),a(Wa,function(){return g(this.operator,b)}),a(Ya,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a(Za,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a($a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Ra,function(){return this.cdr.is_boolean()}),a(Eb,function(){return!0}),a(Db,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(_,function(){return!1}),a(tb,function(){return!0}),a(Wa,function(){return"typeof"==this.operator}),a(Ya,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a($a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Ra,function(a){return this.cdr.is_string(a)}),a(Za,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Pa,function(a){return a.option("unsafe")&&this.expression instanceof pb&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}_.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[l(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),_.DEFMETHOD("is_constant",function(a){return this instanceof sb||this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb||this.evaluate(a).length>1}),_.DEFMETHOD("constant_value",function(a){if(this instanceof sb)return this.value;if(this instanceof Wa&&"!"==this.operator&&this.expression instanceof sb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(aa,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(ua,function(){throw a}),a(_,function(){throw a}),a(sb,function(){return this.getValue()}),a(Wa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof ua)return"function";if(d=b(d,c),d instanceof RegExp)throw a; return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":if(d=b(d,c),0===d)throw a;return-d;case"+":return+b(d,c)}throw a}),a(Ya,function(c){var d=this.left,e=this.right;switch(this.operator){case"&&":return b(d,c)&&b(e,c);case"||":return b(d,c)||b(e,c);case"|":return b(d,c)|b(e,c);case"&":return b(d,c)&b(e,c);case"^":return b(d,c)^b(e,c);case"+":return b(d,c)+b(e,c);case"*":return b(d,c)*b(e,c);case"/":return b(d,c)/b(e,c);case"%":return b(d,c)%b(e,c);case"-":return b(d,c)-b(e,c);case"<<":return b(d,c)<>":return b(d,c)>>b(e,c);case">>>":return b(d,c)>>>b(e,c);case"==":return b(d,c)==b(e,c);case"===":return b(d,c)===b(e,c);case"!=":return b(d,c)!=b(e,c);case"!==":return b(d,c)!==b(e,c);case"<":return b(d,c)":return b(d,c)>b(e,c);case">=":return b(d,c)>=b(e,c);case"in":return b(d,c)in b(e,c);case"instanceof":return b(d,c)instanceof b(e,c)}throw a}),a(Za,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(pb,function(c){var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c);throw a}),a(Ta,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(Wa,a,{operator:"!",expression:a})}a(_,function(){return c(this)}),a(aa,function(){throw new Error("Cannot negate a statement")}),a(ua,function(){return c(this)}),a(Wa,function(){return"!"==this.operator?this.expression:c(this)}),a(Ra,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a(Za,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),l(c(this),b)}),a(Ya,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),l(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),l(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(_,function(a){return!0}),a(ga,function(a){return!1}),a(sb,function(a){return!1}),a(rb,function(a){return!1}),a(Pa,function(a){var b=a.option("pure_funcs");return b?"function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0:!0}),a(ea,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(da,function(a){return this.body.has_side_effects(a)}),a(va,function(a){return!0}),a(ua,function(a){return!1}),a(Ya,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a($a,function(a){return!0}),a(Za,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a(Va,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(pb,function(a){return this.global()&&this.undeclared()}),a(ab,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(bb,function(a){return this.value.has_side_effects(a)}),a(_a,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ta,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a):!0}),a(Ua,function(a){return a.option("pure_getters")?this.expression.has_side_effects(a)||this.property.has_side_effects(a):!0}),a(Sa,function(a){return!a.option("pure_getters")}),a(Ra,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&m(this.body[a-1])}a(aa,function(){return null}),a(wa,function(){return this}),a(fa,b),a(Fa,b),a(Da,function(){return this.alternative&&m(this.body)&&m(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(ca,function(a,c){return"up"===c.has_directive(a.value)?b(ga,a):a}),a(ba,function(a,c){return c.option("drop_debugger")?b(ga,a):a}),a(ia,function(a,c){return a.body instanceof Ba&&c.loopcontrol_target(a.body.label)===a.body?b(ga,a):0==a.label.references.length?a.body:a}),a(ea,function(a,b){return a.body=j(a.body,b),a}),a(fa,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ga,a)}return a}),qa.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof ra)&&!c.uses_eval){var d=[],e=new v,f=this,h=new y(function(b,g){if(b!==c){if(b instanceof va)return e.add(b.name.name,b),!0;if(b instanceof La&&f===c)return b.definitions.forEach(function(b){b.value&&(e.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof pb)return n(d,b.definition()),!0;if(b instanceof qa){var i=f;return f=b,g(),f=i,!0}}});c.walk(h);for(var i=0;i=0;){var l=i[k];if(!l.unreferenced())break;i.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:l.name,file:l.start.file,line:l.start.line,col:l.start.col})}if(e instanceof va&&e!==c)return g(e.name.definition(),d)?e:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:e.name.name,file:e.name.start.file,line:e.name.start.line,col:e.name.start.col}),b(ga,e));if(e instanceof La&&!(j.parent()instanceof oa)){var m=e.definitions.filter(function(b){if(g(b.name.definition(),d))return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});m=q(m,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var n=[],k=0;k0&&(n.push(o.value),o.value=Ra.from_array(n),n=[]),++k)}return n=n.length>0?b(fa,e,{body:[b(da,e,{body:Ra.from_array(n)})]}):null,0!=m.length||n?0==m.length?h?Z.splice(n.body):n:(e.definitions=m,n?(n.body.unshift(e),h?Z.splice(n.body):n):e):b(ga,e)}if(e instanceof na&&(f(e,this),e.init instanceof fa)){var p=e.init.body.slice(0,-1);return e.init=e.init.body.slice(-1)[0].body,p.push(e),h?Z.splice(p):b(fa,e,{body:p})}return e instanceof qa&&e!==c?e:void 0});c.transform(j)}}),qa.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new y(function(a){return a instanceof qa&&a!==c?!0:a instanceof Ma?(++k,!0):void 0})),e=e&&k>1;var l=new P(function(a){if(a!==c){if(a instanceof ca)return f.push(a),b(ga,a);if(a instanceof va&&d)return g.push(a),b(ga,a);if(a instanceof Ma&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof oa&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(pb,m,m)}return h}return k instanceof na&&k.init===a?h:h?b(da,a,{body:h}):b(ga,a)}if(a instanceof qa)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof sa&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(na,a,{body:a.body});if(a instanceof ma&&c.option("dead_code")){var e=[];return k(c,a.body,e),b(fa,a,{body:e})}}return a}),a(ma,function(a,c){return c.option("loops")?(a=ka.prototype.optimize.call(a,c),a instanceof ma&&(r(a,c),a=b(na,a,a).transform(c)),a):a}),a(na,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof aa?e.push(a.init):a.init&&e.push(b(da,a.init,{body:a.init})),k(c,a.body,e),b(fa,a,{body:e})}return r(a,c),a}),a(Da,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return a.alternative&&k(c,a.alternative,e),e.push(a.body),b(fa,a,{body:e}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return k(c,a.body,e),a.alternative&&e.push(a.alternative),b(fa,a,{body:e}).transform(c)}f(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=a.condition.print_to_string().length,i=g.print_to_string().length,j=h>i;if(a.alternative&&j){j=!1,a.condition=g;var l=a.body;a.body=a.alternative||b(ga),a.alternative=l}if(f(a.body)&&f(a.alternative))return b(da,a.condition,{body:a.condition}).transform(c);if(a.body instanceof da&&a.alternative instanceof da)return b(da,a,{body:b(Za,a,{condition:a.condition,consequent:a.body.body,alternative:a.alternative.body})}).transform(c);if(f(a.alternative)&&a.body instanceof da)return h===i&&!j&&a.condition instanceof Ya&&"||"==a.condition.operator&&(j=!0),j?b(da,a,{body:b(Ya,a,{operator:"||",left:g,right:a.body.body})}).transform(c):b(da,a,{body:b(Ya,a,{operator:"&&",left:a.condition,right:a.body.body})}).transform(c);if(a.body instanceof ga&&a.alternative&&a.alternative instanceof da)return b(da,a,{body:b(Ya,a,{operator:"||",left:a.condition,right:a.alternative.body})}).transform(c);if(a.body instanceof xa&&a.alternative instanceof xa&&a.body.TYPE==a.alternative.TYPE)return b(a.body.CTOR,a,{value:b(Za,a,{condition:a.condition,consequent:a.body.value||b(zb,a.body).optimize(c),alternative:a.alternative.value||b(zb,a.alternative).optimize(c)})}).transform(c);if(a.body instanceof Da&&!a.body.alternative&&!a.alternative&&(a.condition=b(Ya,a.condition,{operator:"&&",left:a.condition,right:a.body.condition}).transform(c),a.body=a.body.body),m(a.body)&&a.alternative){var n=a.alternative;return a.alternative=null,b(fa,a,{body:[a,n]}).transform(c)}if(m(a.alternative)){var o=a.body;return a.body=a.alternative,a.condition=j?g:a.condition.negate(c),a.alternative=null,b(fa,a,{body:[a,o]}).transform(c)}return a}),a(Ea,function(a,c){if(0==a.body.length&&c.option("conditionals"))return b(da,a,{body:a.expression}).transform(c);for(;;){var d=a.body[a.body.length-1];if(d){var e=d.body[d.body.length-1];if(e instanceof Ba&&i(c.loopcontrol_target(e.label))===a&&d.body.pop(),d instanceof Ga&&0==d.body.length){a.body.pop();continue}}break}var f=a.expression.evaluate(c);a:if(2==f.length)try{if(a.expression=f[0],!c.option("dead_code"))break a;var g=f[1],h=!1,j=!1,k=!1,l=!1,n=!1,o=new P(function(d,e,f){if(d instanceof sa||d instanceof da)return d;if(d instanceof Ea&&d===a)return d=d.clone(),e(d,this),n?d:b(fa,d,{body:d.body.reduce(function(a,b){return a.concat(b.body)},[])}).transform(c);if(d instanceof Da||d instanceof Ia){var i=h;return h=!j,e(d,this),h=i,d}if(d instanceof ha||d instanceof Ea){var i=j;return j=!0,e(d,this),j=i,d}if(d instanceof Ba&&this.loopcontrol_target(d.label)===a)return h?(n=!0,d):j?d:(l=!0,f?Z.skip:b(ga,d));if(d instanceof Fa&&this.parent()===a){if(l)return Z.skip;if(d instanceof Ha){var o=d.expression.evaluate(c);if(o.length<2)throw a;return o[1]===g||k?(k=!0,m(d)&&(l=!0),e(d,this),d):Z.skip}return e(d,this),d}});o.stack=c.stack.slice(),a=a.transform(o)}catch(p){if(p!==a)throw p}return a}),a(Ha,function(a,b){return a.body=j(a.body,b),a}),a(Ia,function(a,b){return a.body=j(a.body,b),a}),La.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(a){a.value=null})}),La.DEFMETHOD("to_assignments",function(){var a=this.definitions.reduce(function(a,c){if(c.value){var d=b(pb,c.name,c.name);a.push(b($a,c,{operator:"=",left:d,right:c.value}))}return a},[]);return 0==a.length?null:Ra.from_array(a)}),a(La,function(a,c){return 0==a.definitions.length?b(ga,a):a}),a(ua,function(a,b){return a=sa.prototype.optimize.call(a,b),b.option("unused")&&!b.option("keep_fnames")&&a.name&&a.name.unreferenced()&&(a.name=null),a}),a(Pa,function(a,d){if(d.option("unsafe")){var e=a.expression;if(e instanceof pb&&e.undeclared())switch(e.name){case"Array":if(1!=a.args.length)return b(_a,a,{elements:a.args}).transform(d);break;case"Object":if(0==a.args.length)return b(ab,a,{properties:[]});break;case"String":if(0==a.args.length)return b(tb,a,{value:""});if(a.args.length<=1)return b(Ya,a,{left:a.args[0],operator:"+",right:b(tb,a,{value:""})}).transform(d);break;case"Number":if(0==a.args.length)return b(ub,a,{value:0});if(1==a.args.length)return b(Wa,a,{expression:a.args[0],operator:"+"}).transform(d);case"Boolean":if(0==a.args.length)return b(Db,a);if(1==a.args.length)return b(Wa,a,{expression:b(Wa,null,{expression:a.args[0],operator:"!"}),operator:"!"}).transform(d);break;case"Function":if(0==a.args.length)return b(ua,a,{argnames:[],body:[]});if(u(a.args,function(a){return a instanceof tb}))try{var f="(function("+a.args.slice(0,-1).map(function(a){return a.value}).join(",")+"){"+a.args[a.args.length-1].value+"})()",g=O(f);g.figure_out_scope({screw_ie8:d.option("screw_ie8")});var h=new S(d.options);g=g.transform(h),g.figure_out_scope({screw_ie8:d.option("screw_ie8")}),g.mangle_names();var i;try{g.walk(new y(function(a){if(a instanceof sa)throw i=a,g}))}catch(j){if(j!==g)throw j}if(!i)return a;var k=i.argnames.map(function(c,d){return b(tb,a.args[d],{value:c.print_to_string()})}),f=R();return fa.prototype._codegen.call(i,i,f),f=f.toString().replace(/^\{|\}$/g,""),k.push(b(tb,a.args[a.args.length-1],{value:f})),a.args=k,a}catch(j){if(!(j instanceof K))throw console.log(j),j;d.warn("Error parsing code passed to new Function [{file}:{line},{col}]",a.args[a.args.length-1].start),d.warn(j.toString())}}else{if(e instanceof Ta&&"toString"==e.property&&0==a.args.length)return b(Ya,a,{left:b(tb,a,{value:""}),operator:"+",right:e.expression}).transform(d);if(e instanceof Ta&&e.expression instanceof _a&&"join"==e.property){var m=0==a.args.length?",":a.args[0].evaluate(d)[1];if(null!=m){var n=e.expression.elements.reduce(function(a,b){if(b=b.evaluate(d),0==a.length||1==b.length)a.push(b);else{var e=a[a.length-1];if(2==e.length){var f=""+e[1]+m+b[1];a[a.length-1]=[c(d,f,e[0]),f]}else a.push(b)}return a},[]);if(0==n.length)return b(tb,a,{value:""});if(1==n.length)return n[0][0];if(""==m){var o;return o=n[0][0]instanceof tb||n[1][0]instanceof tb?n.shift()[0]:b(tb,a,{value:""}),n.reduce(function(a,c){return b(Ya,c[0],{operator:"+",left:a,right:c[0]})},o).transform(d)}var p=a.clone();return p.expression=p.expression.clone(),p.expression.expression=p.expression.expression.clone(),p.expression.expression.elements=n.map(function(a){return a[0]}),l(a,p)}}}}if(d.option("side_effects")&&a.expression instanceof ua&&0==a.args.length&&!ea.prototype.has_side_effects.call(a.expression,d))return b(zb,a).transform(d);if(d.option("drop_console")&&a.expression instanceof Sa){for(var q=a.expression.expression;q.expression;)q=q.expression;if(q instanceof pb&&"console"==q.name&&q.undeclared())return b(zb,a).transform(d)}return a.evaluate(d)[0]}),a(Qa,function(a,c){if(c.option("unsafe")){var d=a.expression;if(d instanceof pb&&d.undeclared())switch(d.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return b(Pa,a,a).transform(c)}}return a}),a(Ra,function(a,c){if(!c.option("side_effects"))return a;if(!a.car.has_side_effects(c))return d(c.parent(),a,a.cdr);if(c.option("cascade")){if(a.car instanceof $a&&!a.car.left.has_side_effects(c)){if(a.car.left.equivalent_to(a.cdr))return a.car;if(a.cdr instanceof Pa&&a.cdr.expression.equivalent_to(a.car.left))return a.cdr.expression=a.car,a.cdr}if(!a.car.has_side_effects(c)&&!a.cdr.has_side_effects(c)&&a.car.equivalent_to(a.cdr))return a.car}return a.cdr instanceof Wa&&"void"==a.cdr.operator&&!a.cdr.expression.has_side_effects(c)?(a.cdr.expression=a.car,a.cdr):a.cdr instanceof zb?b(Wa,a,{operator:"void",expression:a.car}):a}),Va.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")&&this.expression instanceof Ra){var b=this.expression,c=b.to_array();return this.expression=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}return this}),a(Xa,function(a,b){return a.lift_sequences(b)}),a(Wa,function(a,c){a=a.lift_sequences(c);var d=a.expression;if(c.option("booleans")&&c.in_boolean_context()){switch(a.operator){case"!":if(d instanceof Wa&&"!"==d.operator)return d.expression;break;case"typeof":return c.warn("Boolean expression always true [{file}:{line},{col}]",a.start),b(Eb,a)}d instanceof Ya&&"!"==a.operator&&(a=l(a,d.negate(c)))}return a.evaluate(c)[0]}),Ya.DEFMETHOD("lift_sequences",function(a){if(a.option("sequences")){if(this.left instanceof Ra){var b=this.left,c=b.to_array();return this.left=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}if(this.right instanceof Ra&&this instanceof $a&&!s(this.left,a)){var b=this.right,c=b.to_array();return this.right=c.pop(),c.push(this),b=Ra.from_array(c).transform(a)}}return this});var x=t("== === != !== * & | ^");a(Ya,function(a,c){function e(b,d){if(d||!a.left.has_side_effects(c)&&!a.right.has_side_effects(c)){b&&(a.operator=b);var e=a.left;a.left=a.right,a.right=e}}if(x(a.operator)&&(a.right instanceof sb&&!(a.left instanceof sb)&&(a.left instanceof Ya&&Wb[a.left.operator]>=Wb[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof pb&&a.right instanceof Za){if(a.right.consequent instanceof pb&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof pb&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof pb&&a.left instanceof Za){if(a.left.consequent instanceof pb&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof pb&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof tb&&"undefined"==a.left.value&&a.right instanceof Wa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof pb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(zb,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of && always true [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0])):(c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0]))}else if("||"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0])):(c.warn("Condition left of || always false [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0]))}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&!f[1]||g.length>1&&!g[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Db)}).optimize(c):b(Db,a);if(f.length>1&&f[1])return g[0];if(g.length>1&&g[1])return f[0];break;case"||":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[1]||g.length>1&&g[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Ra,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof tb&&f[1]||g.length>1&&g[0]instanceof tb&&g[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Eb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Ya)||c.parent()instanceof $a){var h=b(Wa,a,{operator:"!",expression:a.negate(c)});a=l(a,h)}switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof tb&&""===a.right.getValue()&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(tb,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof sb&&a.left instanceof Ya&&"+"==a.left.operator&&a.left.right instanceof sb&&a.left.is_string(c)&&(a=b(Ya,a,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Ya&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof sb&&a.right instanceof Ya&&"+"==a.right.operator&&a.right.left instanceof sb&&a.right.is_string(c)&&(a=b(Ya,a,{operator:"+",left:b(Ya,a.left,{operator:"+",left:a.left.left,right:b(tb,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof Ya&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Ya,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(pb,function(a,d){function e(a,b){return b instanceof Ya&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&f.hasOwnProperty(a.name))return c(d,f[a.name],a);switch(a.name){case"undefined":return b(zb,a);case"NaN":return b(yb,a).transform(d);case"Infinity":return b(Bb,a).transform(d)}}return a}),a(Bb,function(a,c){return b(Ya,a,{operator:"/",left:b(ub,a,{value:1}),right:b(ub,a,{value:0})})}),a(zb,function(a,c){if(c.option("unsafe")){var d=c.find_parent(qa),e=d.find_variable("undefined");if(e){var f=b(pb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var z=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a($a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof pb&&a.right instanceof Ya&&a.right.left instanceof pb&&a.right.left.name==a.left.name&&g(a.right.operator,z)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a(Za,function(a,e){function f(a){return a instanceof Eb||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!a.expression.value}function g(a){return a instanceof Db||a instanceof Wa&&"!"==a.operator&&a.expression instanceof sb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Ra){var h=a.condition.car;return a.condition=a.condition.cdr,Ra.cons(h,a)}var i=a.condition.evaluate(e);if(i.length>1)return i[1]?(e.warn("Condition always true [{file}:{line},{col}]",a.start),d(e.parent(),a,a.consequent)):(e.warn("Condition always false [{file}:{line},{col}]",a.start),d(e.parent(),a,a.alternative));var j=i[0].negate(e);l(i[0],j)===j&&(a=b(Za,a,{condition:j,consequent:a.alternative,alternative:a.consequent}));var k=a.consequent,m=a.alternative;if(k instanceof $a&&m instanceof $a&&k.operator==m.operator&&k.left.equivalent_to(m.left)&&!k.left.has_side_effects(e))return b($a,a,{operator:k.operator,left:k.left,right:b(Za,a,{condition:a.condition,consequent:k.right,alternative:m.right})});if(k instanceof Pa&&m.TYPE===k.TYPE&&k.args.length==m.args.length&&!k.expression.has_side_effects(e)&&k.expression.equivalent_to(m.expression)){if(0==k.args.length)return b(Ra,a,{car:a.condition,cdr:k});if(1==k.args.length)return k.args[0]=b(Za,a,{condition:a.condition,consequent:k.args[0],alternative:m.args[0]}),k}if(k instanceof Za&&k.alternative.equivalent_to(m))return b(Za,a,{condition:b(Ya,a,{left:a.condition,operator:"&&",right:k.condition}),consequent:k.consequent,alternative:m});if(k.is_constant(e)&&m.is_constant(e)&&k.equivalent_to(m)){var n=k.constant_value();return a.condition.has_side_effects(e)?Ra.from_array([a.condition,c(e,n,a)]):c(e,n,a)}return f(k)&&g(m)?a.condition.is_boolean()?a.condition:(a.condition=a.condition.negate(e),b(Wa,a.condition,{operator:"!",expression:a.condition})):g(k)&&f(m)?a.condition.negate(e):a}),a(Cb,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Ya&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(ub,a,{value:+a.value})):b(Wa,a,{operator:"!",expression:b(ub,a,{value:1-a.value})})}return a}),a(Ua,function(a,c){var d=a.property;if(d instanceof tb&&c.option("properties")){if(d=d.getValue(),Hb(d)?c.option("screw_ie8"):I(d))return b(Ta,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(ub,a.property,{value:e}))}return a}),a(Ta,function(a,c){var d=a.property;return Hb(d)&&!c.option("screw_ie8")?b(Ua,a,{expression:a.expression,property:b(tb,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(_a,w),a(ab,w),a(vb,w),a(ya,function(a,b){return a.value instanceof zb&&(a.value=null),a})}(),function(){function a(a){return"Literal"==a.type?null!=a.raw?a.raw:a.value+"":void 0}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new $({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var l="function From_Moz_"+a+"(M){\n";l+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(l+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":l+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":l+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":l+="M."+c,m+="M."+e;break;case"%":l+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),l+="\n})\n}",m+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),k[a]=l,h(e,m)}function f(a){l.push(a);var b=null!=a?k[a.type](a):null;return l.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k={ExpressionStatement:function(a){var c=a.expression;return"Literal"===c.type&&"string"==typeof c.value?new ca({start:b(a),end:d(a),value:c.value}):new da({start:b(a),end:d(a),body:f(c)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ia({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new Ka(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new cb(g);case"set":return g.value.name=f(c),new db(g);case"get":return g.value.name=f(c),new eb(g)}},ObjectExpression:function(a){return new ab({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Ra.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Ua:Ta)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ha:Ga)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Na:Ma)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new xb(e);switch(typeof c){case"string":return e.value=c,new tb(e);case"number":return e.value=c,new ub(e);case"boolean":return new(c?Eb:Db)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new vb(e)}},Identifier:function(a){var c=l[l.length-2];return new("LabeledStatement"==c.type?ob:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?jb:ib:"FunctionExpression"==c.type?c.id===a?mb:kb:"FunctionDeclaration"==c.type?c.id===a?lb:kb:"CatchClause"==c.type?nb:"BreakStatement"==c.type||"ContinueStatement"==c.type?qb:pb)({start:b(a),end:d(a),name:a.name})}};k.UpdateExpression=k.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Wa:Xa)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("Program",ra,"body@body"),e("EmptyStatement",ga),e("BlockStatement",fa,"body@body"),e("IfStatement",Da,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ia,"label>label, body>body"),e("BreakStatement",Ba,"label>label"),e("ContinueStatement",Ca,"label>label"),e("WithStatement",pa,"object>expression, body>body"),e("SwitchStatement",Ea,"discriminant>expression, cases@body"),e("ReturnStatement",ya,"argument>value"),e("ThrowStatement",za,"argument>value"),e("WhileStatement",ma,"test>condition, body>body"),e("DoWhileStatement",la,"test>condition, body>body"),e("ForStatement",na,"init>init, test>condition, update>step, body>body"), e("ForInStatement",oa,"left>init, right>object, body>body"),e("DebuggerStatement",ba),e("FunctionDeclaration",va,"id>name, params@argnames, body%body"),e("VariableDeclarator",Oa,"id>name, init>value"),e("CatchClause",Ja,"param>argname, body%body"),e("ThisExpression",rb),e("ArrayExpression",_a,"elements@elements"),e("FunctionExpression",ua,"id>name, params@argnames, body%body"),e("BinaryExpression",Ya,"operator=operator, left>left, right>right"),e("LogicalExpression",Ya,"operator=operator, left>left, right>right"),e("AssignmentExpression",$a,"operator=operator, left>left, right>right"),e("ConditionalExpression",Za,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Qa,"callee>expression, arguments@args"),e("CallExpression",Pa,"callee>expression, arguments@args"),h(ca,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(da,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Fa,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ia,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ja,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(La,function(a){return{type:"VariableDeclaration",kind:a instanceof Na?"const":"var",declarations:a.definitions.map(i)}}),h(Ra,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Sa,function(a){var b=a instanceof Ua;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Va,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Wa,argument:i(a.expression)}}),h(Ya,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(ab,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(bb,function(a){var b,c=F(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof cb?b="init":a instanceof eb?b="get":a instanceof db&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(fb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(vb,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(sb,function(a){var b=a.value;return"number"==typeof b&&(0>b||0===b&&0>1/b)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(wb,function(a){return{type:"Identifier",name:String(a.value)}}),Cb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),xb.DEFMETHOD("to_mozilla_ast",sb.prototype.to_mozilla_ast),Ab.DEFMETHOD("to_mozilla_ast",function(){return null}),ea.DEFMETHOD("to_mozilla_ast",fa.prototype.to_mozilla_ast),sa.DEFMETHOD("to_mozilla_ast",ua.prototype.to_mozilla_ast);var l=null;_.from_mozilla_ast=function(a){var b=l;l=[];var c=f(a);return l=b,c}}(),c.Compressor=S,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=K,c.MAP=Z,c.OutputStream=R,c.SourceMap=T,c.TreeTransformer=P,c.TreeWalker=y,c.base54=Zb,c.defaults=k,c.mangle_properties=V,c.merge=l,c.parse=O,c.push_uniq=n,c.string_template=o,c.is_identifier=F,c.SymbolDef=Q,c.sys=W,c.MOZ_SourceMap=X,c.UglifyJS=Y,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=Z,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.DEFNODE=w,c.AST_Token=$,c.AST_Node=_,c.AST_Statement=aa,c.AST_Debugger=ba,c.AST_Directive=ca,c.AST_SimpleStatement=da,c.walk_body=x,c.AST_Block=ea,c.AST_BlockStatement=fa,c.AST_EmptyStatement=ga,c.AST_StatementWithBody=ha,c.AST_LabeledStatement=ia,c.AST_IterationStatement=ja,c.AST_DWLoop=ka,c.AST_Do=la,c.AST_While=ma,c.AST_For=na,c.AST_ForIn=oa,c.AST_With=pa,c.AST_Scope=qa,c.AST_Toplevel=ra,c.AST_Lambda=sa,c.AST_Accessor=ta,c.AST_Function=ua,c.AST_Defun=va,c.AST_Jump=wa,c.AST_Exit=xa,c.AST_Return=ya,c.AST_Throw=za,c.AST_LoopControl=Aa,c.AST_Break=Ba,c.AST_Continue=Ca,c.AST_If=Da,c.AST_Switch=Ea,c.AST_SwitchBranch=Fa,c.AST_Default=Ga,c.AST_Case=Ha,c.AST_Try=Ia,c.AST_Catch=Ja,c.AST_Finally=Ka,c.AST_Definitions=La,c.AST_Var=Ma,c.AST_Const=Na,c.AST_VarDef=Oa,c.AST_Call=Pa,c.AST_New=Qa,c.AST_Seq=Ra,c.AST_PropAccess=Sa,c.AST_Dot=Ta,c.AST_Sub=Ua,c.AST_Unary=Va,c.AST_UnaryPrefix=Wa,c.AST_UnaryPostfix=Xa,c.AST_Binary=Ya,c.AST_Conditional=Za,c.AST_Assign=$a,c.AST_Array=_a,c.AST_Object=ab,c.AST_ObjectProperty=bb,c.AST_ObjectKeyVal=cb,c.AST_ObjectSetter=db,c.AST_ObjectGetter=eb,c.AST_Symbol=fb,c.AST_SymbolAccessor=gb,c.AST_SymbolDeclaration=hb,c.AST_SymbolVar=ib,c.AST_SymbolConst=jb,c.AST_SymbolFunarg=kb,c.AST_SymbolDefun=lb,c.AST_SymbolLambda=mb,c.AST_SymbolCatch=nb,c.AST_Label=ob,c.AST_SymbolRef=pb,c.AST_LabelRef=qb,c.AST_This=rb,c.AST_Constant=sb,c.AST_String=tb,c.AST_Number=ub,c.AST_RegExp=vb,c.AST_Atom=wb,c.AST_Null=xb,c.AST_NaN=yb,c.AST_Undefined=zb,c.AST_Hole=Ab,c.AST_Infinity=Bb,c.AST_Boolean=Cb,c.AST_False=Db,c.AST_True=Eb,c.TreeWalker=y,c.KEYWORDS=Fb,c.KEYWORDS_ATOM=Gb,c.RESERVED_WORDS=Hb,c.KEYWORDS_BEFORE_EXPRESSION=Ib,c.OPERATOR_CHARS=Jb,c.RE_HEX_NUMBER=Kb,c.RE_OCT_NUMBER=Lb,c.OPERATORS=Mb,c.WHITESPACE_CHARS=Nb,c.PUNC_BEFORE_EXPRESSION=Ob,c.PUNC_CHARS=Pb,c.REGEXP_MODIFIERS=Qb,c.UNICODE=Rb,c.is_letter=z,c.is_digit=A,c.is_alphanumeric_char=B,c.is_unicode_digit=C,c.is_unicode_combining_mark=D,c.is_unicode_connector_punctuation=E,c.is_identifier=F,c.is_identifier_start=G,c.is_identifier_char=H,c.is_identifier_string=I,c.parse_js_number=J,c.JS_Parse_Error=K,c.js_error=L,c.is_token=M,c.EX_EOF=Sb,c.tokenizer=N,c.UNARY_PREFIX=Tb,c.UNARY_POSTFIX=Ub,c.ASSIGNMENT=Vb,c.PRECEDENCE=Wb,c.STATEMENTS_WITH_LABELS=Xb,c.ATOMIC_START_TOKEN=Yb,c.parse=O,c.TreeTransformer=P,c.SymbolDef=Q,c.base54=Zb,c.OutputStream=R,c.Compressor=S,c.SourceMap=T,c.find_builtins=U,c.mangle_properties=V,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){b=Y.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),Y.base54.reset();var c=null,d={};if(b.spidermonkey?c=Y.AST_Node.from_mozilla_ast(a):("string"==typeof a&&(a=[a]),a.forEach(function(a,e){var f=b.fromString?a:fs.readFileSync(a,"utf8");d[a]=f,c=Y.parse(f,{filename:b.fromString?e:a,toplevel:c,bare_returns:b.parse?b.parse.bare_returns:void 0})})),b.wrap&&(c=c.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var e={warnings:b.warnings};Y.merge(e,b.compress),c.figure_out_scope();var f=Y.Compressor(e);c=c.transform(f)}(b.mangleProperties||b.nameCache)&&(b.mangleProperties.cache=Y.readNameCache(b.nameCache,"props"),c=Y.mangle_properties(c,b.mangleProperties),Y.writeNameCache(b.nameCache,"props",b.mangleProperties.cache)),b.mangle&&(c.figure_out_scope(b.mangle),c.compute_char_frequency(b.mangle),c.mangle_names(b.mangle));var g=b.inSourceMap,h={};if("string"==typeof b.inSourceMap&&(g=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(h.source_map=Y.SourceMap({file:b.outSourceMap,orig:g,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var i in d)d.hasOwnProperty(i)&&h.source_map.get().setSourceContent(i,d[i]);b.output&&Y.merge(h,b.output);var j=Y.OutputStream(h);c.print(j),b.outSourceMap&&"string"==typeof b.outSourceMap&&(j+="\n//# sourceMappingURL="+b.outSourceMap);var k=h.source_map;return k&&(k+=""),{code:j+"",map:k}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Y.OutputStream({beautify:!0});return a(Y.AST_Node),b+""}},{"source-map":138,util:144}],140:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n"," "],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=-1!==d&&dC)&&(A=C)}var D,E;E=-1===A?h.lastIndexOf("@"):h.lastIndexOf("@",A),-1!==E&&(D=h.slice(0,E),h=h.slice(E+1),this.auth=decodeURIComponent(D)),A=-1;for(var B=0;BC)&&(A=C)}-1===A&&(A=h.length),this.host=h.slice(0,A),h=h.slice(A),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var G=this.hostname.split(/\./),B=0,H=G.length;H>B;B++){var I=G[B];if(I&&!I.match(t)){for(var J="",K=0,L=I.length;L>K;K++)J+=I.charCodeAt(K)>127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;H>B;B++){var R=p[B];if(-1!==h.indexOf(R)){var S=encodeURIComponent(R);S===R&&(S=escape(R)),h=h.split(R).join(S)}}var T=h.indexOf("#");-1!==T&&(this.hash=h.substr(T),h=h.slice(0,T));var U=h.indexOf("?");if(-1!==U?(this.search=h.substr(U),this.query=h.substr(U+1),b&&(this.query=y.parse(this.query)),h=h.slice(0,U)):b&&(this.search="",this.query={}),h&&(this.pathname=h),x[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var P=this.pathname||"",V=this.search||"";this.path=P+V}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j.isObject(this.query)&&Object.keys(this.query).length&&(f=y.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||x[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(j.isString(a)){var b=new d;b.parse(a,!1,!0),a=b}for(var c=new d,e=Object.keys(this),f=0;f0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":141,punycode:79,querystring:82}],141:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],142:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null==d?!1:"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],143:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],144:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":143,_process:78,inherits:71}],145:[function(a,b,c){c.baseChar=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/,c.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,c.letter=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3]/,c.combiningChar=/[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A]/,c.digit=/[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/,c.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],146:[function(a,b,c){function d(){for(var a={},b=0;bdeprecated <'+a+"> element"):d(a)?this.log.push('Found presentational <'+a+"> element"):this.checkRepeatingElement(a)},j.prototype.checkRepeatingElement=function(a){"br"===a&&"br"===this._lastElement?this._isElementRepeated=!0:this._isElementRepeated&&(this._reportRepeatingElement(),this._isElementRepeated=!1),this._lastElement=a},j.prototype._reportRepeatingElement=function(){this.log.push("Found <br> sequence. Try replacing it with styling.")},j.prototype.testAttribute=function(a,b,c){f(b)?this.log.push('Found event attribute ('+b+") on <"+a+"> element."):h(a,b)?this.log.push('Found deprecated '+b+" attribute on <"+a+"> element."):g(b)?this.log.push('Found style attribute on <'+a+"> element."):i(b,c)&&this.log.push('Found inaccessible attribute (on <'+a+"> element)."); -},j.prototype.testChars=function(a){this._lastElement="",/( \s*){2,}/.test(a)&&this.log.push("Found repeating &nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},c.HTMLLint=j},{}],"html-minifier/src/htmlparser":[function(a,b,c){"use strict";function d(a){return h(a,!0)}function e(a){var b=i.source+"(?:\\s*("+f(a)+")\\s*(?:"+l.join("|")+"))?";if(a.customAttrSurround){for(var c=[],d=a.customAttrSurround.length-1;d>=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){var c,d,e,f,g,h,i,j=7;r&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;m>l;l++,k+=j)if(c=a[k+1],h=a[k+2],c){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!c&&(c=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=v(c)?c:e),{name:c,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(k.push({tag:c,attrs:h}),g=c,d=""),b.start&&b.start(c,h,e,d)}function f(a,c){var d;if(c){var e=c.toLowerCase();for(d=k.length-1;d>=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":147,ncname:74}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!$(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!Y(b.slice(1)):!Z(b));var g=c&&!$(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!Z(c.slice(1)):!Y(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?W(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&_(W(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=W(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||_(f)}}return!0}function p(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===W(c.toLowerCase())}function q(a,b){return aa(a)||"draggable"===a&&!ba(b)}function r(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function s(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function t(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function u(a,b,c,d,f){if(c&&j(b,d)){if(c=W(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=L(ca+c+da,d.minifyJS);return g.slice(ca.length,-da.length)}return c}return"class"===b?e(W(c)):r(b,a)?(c=W(c),d.minifyURLs&&!t(a,f)?K(c,d.minifyURLs):c):s(b,a)?W(c):"style"===b?(c=W(c),c&&(c=c.replace(/\s*;\s*$/,"")),d.minifyCSS?M(c,d.minifyCSS,!0):c):(v(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=W(c.replace(/\s*;\s*/g,";"))),c)}function v(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function w(a){return"*{"+a+"}"}function x(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function y(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return O(a,b);return a}function A(a,b){switch(a){case"html":case"head":return!0;case"body":return!ga(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function B(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return oa(a)}return!1}function C(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ha(b);case"p":return ia(b);case"rb":case"rt":case"rp":return ka(b);case"rtc":return la(b);case"option":return ma(b);case"thead":case"tbody":return na(b);case"tfoot":return"tbody"===b;case"td":case"th":return pa(b)}return!1}function D(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||va.test(b):!1}function E(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function F(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(E("src",b))return!1;break;case"iframe":if(E("src",b)||E("srcdoc",b))return!1;break;case"object":if(E("data",b))return!1;break;case"applet":if(E("code",b))return!1}return!0}function G(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function H(a){return!/^(?:pre|textarea)$/.test(a)}function I(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&p(c,j,l))return"";if(l=u(c,j,l,f,b),f.removeEmptyAttributes&&D(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var r=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>r?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&q(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function J(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function K(a,b){try{return T.relate(a,b)}catch(c){return Q(c),a}}function L(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return U.minify(d,b).code}catch(e){return Q(e),a}}function M(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new R(b);return c?x(f.minify(w(e)).styles):f.minify(e).styles}catch(g){return Q(g),a}}function N(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function O(a,b,c){function d(a,c){return G(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return H(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=t.length-1;a>0&&!/^<[^\/!]/.test(t[a]);)a--;t.length=Math.max(0,a)}function l(){for(var a=t.length-1;a>0&&!/^<\//.test(t[a]);)a--;t.length=Math.max(0,a)}function m(a){var c;t.length>1&&/^(?:0&&/\s$/.test(t[t.length-1])&&(c=t.length-1),c>0&&(t[c]=t[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];J(b),a=b.collapseWhitespace?W(a):a;var p,q,r,s,t=[],u="",v="",w=[],x=[],D=[],E="",K="",O=b.lint,R=Date.now(),T=[],U=[];a=a.replace(/([\s\S]*?)/g,function(b,c){r||(r=N(a));var d="";return T.push(c),d});var V=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(V.length){var X=new RegExp("\\s*(?:"+V.join("|")+")+\\s*","g");a=a.replace(X,function(b){s||(s=N(a));var c=s+U.length;return U.push(b)," "+c+" "})}new S(a,{partialMarkup:c,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,v=a,p=a,Z(a)||(u=""),q=!1,w=c;var r=b.removeOptionalTags;if(r){var s=ua(a);s&&A(E,a)&&k(),E="",s&&C(K,a)&&(l(),r=!B(K,a)),K=""}b.collapseWhitespace&&(x.length||m(a),j(a,c)||x.push(a),d(a,c)||D.push(a));var y="<"+a,z=f&&b.keepClosingSlash;t.push(y),O&&O.testElement(a);for(var F,G=[],H=!0,J=c.length;--J>=0;)O&&O.testAttribute(a,c[J].name.toLowerCase(),c[J].value),F=I(c[J],c,a,z,J,b,H),F&&(H=!1,G.unshift(F));G.length>0?(t.push(" "),t.push.apply(t,G)):r&&ea(a)&&(E=a),t.push(t.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(x.length?a===x[x.length-1]&&x.pop():m("/"+a),D.length&&a===D[D.length-1]&&D.pop());var f=!1;a===v&&(v="",f=!q),b.removeOptionalTags&&(f&&qa(E)&&k(),E="",!ua(a)||!K||ta(K)||"p"===K&&ja(a)||l(),K=fa(a)?a:""),b.removeEmptyElements&&f&&F(a,c)?(k(),E="",K=""):(!b.includeAutoGeneratedTags&&d||t.push(""),p="/"+a,Y(a)?f&&(u+="|"):u="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.collapseWhitespace){if(!x.length){if("comment"===c){var h=""===t[t.length-1];if(h&&(c=p),t.length>1&&(h||/ $/.test(u))){var i=t.length-2;t[i]=t[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&Z("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(u))),a=c||d?g(a,c,d,b):W(a),!a&&/\s$/.test(u)&&c&&"/"===c.charAt(0))for(var m=t.length-2,n=c.slice(1);m>=0&&j(n);m--){var r=t[m],s=r.match(/^<\/([\w:-]+)>$/);if(s)n=s[1];else if(/>$/.test(r)||(t[m]=g(r,null,d,b)))break}}D.length||(a=c&&d||"html"===d?a:e(a))}!b.processScripts||"script"!==v&&"style"!==v||(a=z(a,b,w)),b.minifyJS&&o(v,w)&&(a=L(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),"style"===v&&b.minifyCSS&&(a=M(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===E||"body"===E&&!/^\s/.test(a))&&k(),E="",(ra(K)||sa(K)&&!/^\s/.test(a))&&l(),K=""),p=/^\s*$/.test(a)?c:"comment",u+=a,a&&(q=!0),O&&O.testChars(a),t.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+y(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(E="",K=""),t.push(a)},doctype:function(a){t.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(qa(E)&&k(),K&&!ta(K)&&l());var $=P(t,b);return s&&($=$.replace(new RegExp("(\\s*)"+s+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=U[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),r&&($=$.replace(new RegExp("","g"),function(a,b){return T[+b]})),Q("minified in: "+(Date.now()-R)+"ms"),$}function P(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length&nbsp; sequence. Try replacing it with styling.")},j.prototype.test=function(a,b,c){this.testElement(a),this.testAttribute(a,b,c)},j.prototype.populate=function(a){if(this._isElementRepeated&&this._reportRepeatingElement(),this.log.length)if(a)a.innerHTML="
  1. "+this.log.join("
  2. ")+"
";else{var b=" - "+this.log.join("\n - ").replace(/(<([^>]+)>)/gi,"").replace(/</g,"<").replace(/>/g,">");console.log(b)}},c.HTMLLint=j},{}],"html-minifier/src/htmlparser":[function(a,b,c){"use strict";function d(a){return h(a,!0)}function e(a){var b=i.source+"(?:\\s*("+f(a)+")\\s*(?:"+l.join("|")+"))?";if(a.customAttrSurround){for(var c=[],d=a.customAttrSurround.length-1;d>=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){var c,d,e,f,g,h,i,j=7;r&&-1===a[0].indexOf('""')&&(""===a[3]&&(a[3]=void 0),""===a[4]&&(a[4]=void 0),""===a[5]&&(a[5]=void 0));var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;m>l;l++,k+=j)if(c=a[k+1],h=a[k+2],c){e=a[k+3],d=e||a[k+4]||a[k+5],i=e?'"':d?"'":"",f=a[k],g=a[k+6];break}return!c&&(c=a[k])&&(h=a[k+1],e=a[k+2],d=e||a[k+3]||a[k+4],i=e?'"':d?"'":""),void 0===d&&(d=v(c)?c:e),{name:c,value:d,customAssign:h||"=",customOpen:f||"",customClose:g||"",quote:i||""}});e||(k.push({tag:c,attrs:h}),g=c,d=""),b.start&&b.start(c,h,e,d)}function f(a,c){var d;if(c){var e=c.toLowerCase();for(d=k.length-1;d>=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":147,ncname:74}],"html-minifier":[function(a,b,c){"use strict";function d(a){return" "===a?a:" "}function e(a){return a?a.replace(/[\t\n\r ]+/g,d):a}function f(a,b,c,f,g){var h="",i="";return b.preserveLineBreaks&&(a=a.replace(/^[\t ]*[\n\r][\t\n\r ]*/,function(){return h="\n",""}).replace(/[\t\n\r ]*[\n\r][\t ]*$/,function(){return i="\n",""})),c&&(a=a.replace(/^\s+/,!h&&b.conservativeCollapse?d:"")),f&&(a=a.replace(/\s+$/,!i&&b.conservativeCollapse?d:"")),g&&(a=e(a)),h+a+i}function g(a,b,c,d){var e=b&&!_(b);e&&!d.collapseInlineTagWhitespace&&(e="/"===b.charAt(0)?!Z(b.slice(1)):!$(b));var g=c&&!_(c);return g&&!d.collapseInlineTagWhitespace&&(g="/"===c.charAt(0)?!$(c.slice(1)):!Z(c)),f(a,d,e,g,b&&c)}function h(a){return/^\[if\s[^\]]+\]|\[endif\]$/.test(a)}function i(a,b){if(/^!/.test(a))return!0;if(b.ignoreCustomComments)for(var c=0,d=b.ignoreCustomComments.length;d>c;c++)if(b.ignoreCustomComments[c].test(a))return!0;return!1}function j(a,b){var c=b.customEventAttributes;if(c){for(var d=c.length;d--;)if(c[d].test(a))return!0;return!1}return/^on[a-z]{3,}$/.test(a)}function k(a){return/^[^\x20\t\n\f\r"'`=<>]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?X(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a,b,c){return"script"===a&&"type"===b&&aa(X(c.toLowerCase()))}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value.split(/;/,2)[0]).toLowerCase();return""===f||aa(f)}}return!0}function p(a,b){if("style"!==a)return!1;for(var c=0,d=b.length;d>c;c++){var e=b[c].name.toLowerCase();if("type"===e){var f=X(b[c].value).toLowerCase();return""===f||"text/css"===f}}return!0}function q(a,b,c){return("style"===a||"link"===a)&&"type"===b&&"text/css"===X(c.toLowerCase())}function r(a,b){return ba(a)||"draggable"===a&&!ca(b)}function s(a,b){return/^(?:a|area|link|base)$/.test(b)&&"href"===a||"img"===b&&/^(?:src|longdesc|usemap)$/.test(a)||"object"===b&&/^(?:classid|codebase|data|usemap)$/.test(a)||"q"===b&&"cite"===a||"blockquote"===b&&"cite"===a||("ins"===b||"del"===b)&&"cite"===a||"form"===b&&"action"===a||"input"===b&&("src"===a||"usemap"===a)||"head"===b&&"profile"===a||"script"===b&&("src"===a||"for"===a)}function t(a,b){return/^(?:a|area|object|button)$/.test(b)&&"tabindex"===a||"input"===b&&("maxlength"===a||"tabindex"===a)||"select"===b&&("size"===a||"tabindex"===a)||"textarea"===b&&/^(?:rows|cols|tabindex)$/.test(a)||"colgroup"===b&&"span"===a||"col"===b&&"span"===a||("th"===b||"td"===b)&&("rowspan"===a||"colspan"===a)}function u(a,b){if("link"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("rel"===b[c].name&&"canonical"===b[c].value)return!0}function v(a,b,c,d,f){if(c&&j(b,d)){if(c=X(c).replace(/^javascript:\s*/i,"").replace(/\s*;$/,""),d.minifyJS){var g=M(da+c+ea,d.minifyJS);return g.slice(da.length,-ea.length)}return c}return"class"===b?e(X(c)):s(b,a)?(c=X(c),d.minifyURLs&&!u(a,f)?L(c,d.minifyURLs):c):t(b,a)?X(c):"style"===b?(c=X(c),c&&(c=c.replace(/\s*;\s*$/,"")),d.minifyCSS?N(c,d.minifyCSS,!0):c):(w(a,f)&&"content"===b?c=c.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(a){return(+a).toString()}):c&&d.customAttrCollapse&&d.customAttrCollapse.test(b)?c=c.replace(/\n+|\r+|\s{2,}/g,""):"script"===a&&"type"===b&&(c=X(c.replace(/\s*;\s*/g,";"))),c)}function w(a,b){if("meta"!==a)return!1;for(var c=0,d=b.length;d>c;c++)if("name"===b[c].name&&"viewport"===b[c].value)return!0}function x(a){return"*{"+a+"}"}function y(a){var b=a.match(/^\*\{([\s\S]*)\}$/m);return b&&b[1]?b[1]:a}function z(a,b){return b.processConditionalComments?a.replace(/^(\[if\s[^\]]+\]>)([\s\S]*?)(d;d++)if("type"===c[d].name.toLowerCase()&&b.processScripts.indexOf(c[d].value)>-1)return P(a,b);return a}function B(a,b){switch(a){case"html":case"head":return!0;case"body":return!ha(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function C(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return pa(a)}return!1}function D(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ia(b);case"p":return ja(b);case"rb":case"rt":case"rp":return la(b);case"rtc":return ma(b);case"option":return na(b);case"thead":case"tbody":return oa(b);case"tfoot":return"tbody"===b;case"td":case"th":return qa(b)}return!1}function E(a,b,c){var d=!c||/^\s*$/.test(c);return d?"input"===a&&"value"===b||wa.test(b):!1}function F(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function G(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(F("src",b))return!1;break;case"iframe":if(F("src",b)||F("srcdoc",b))return!1;break;case"object":if(F("data",b))return!1;break;case"applet":if(F("code",b))return!1}return!0}function H(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function I(a){return!/^(?:pre|textarea)$/.test(a)}function J(a,b,c,d,e,f,g){var h,i,j=f.caseSensitive?a.name:a.name.toLowerCase(),l=a.value,o=a.quote;if(f.removeRedundantAttributes&&m(c,j,l,b)||f.removeScriptTypeAttributes&&n(c,j,l)||f.removeStyleLinkTypeAttributes&&q(c,j,l))return"";if(l=v(c,j,l,f,b),f.removeEmptyAttributes&&E(c,j,l))return"";if(void 0!==l&&!f.removeAttributeQuotes||!k(l)){if(!f.preventAttributesEscaping){if(void 0!==f.quoteCharacter)o="'"===f.quoteCharacter?"'":'"';else{var p=(l.match(/'/g)||[]).length,s=(l.match(/"/g)||[]).length;o=s>p?"'":'"'}l='"'===o?l.replace(/"/g,"""):l.replace(/'/g,"'")}i=o+l+o,g||f.removeTagWhitespace||(i+=" ")}else i=!g||d||/\/$/.test(l)?l+" ":l;return void 0===l||f.collapseBooleanAttributes&&r(j.toLowerCase(),l.toLowerCase())?(h=j,g||(h+=" ")):h=j+a.customAssign+i,a.customOpen+h+a.customClose}function K(a){"includeAutoGeneratedTags"in a||(a.includeAutoGeneratedTags=!0);for(var b=["canCollapseWhitespace","canTrimWhitespace"],c=0,d=b.length;d>c;c++)a[b[c]]||(a[b[c]]=function(){return!1});a.minifyURLs&&"object"!=typeof a.minifyURLs&&(a.minifyURLs={}),a.minifyJS&&("object"!=typeof a.minifyJS&&(a.minifyJS={}),a.minifyJS.fromString=!0,(a.minifyJS.output||(a.minifyJS.output={})).inline_script=!0),a.minifyCSS&&("object"!=typeof a.minifyCSS&&(a.minifyCSS={}),"undefined"==typeof a.minifyCSS.advanced&&(a.minifyCSS.advanced=!1))}function L(a,b){try{return U.relate(a,b)}catch(c){return R(c),a}}function M(a,b){var c=a.match(/^\s*\s*$/,""):a;try{return V.minify(d,b).code}catch(e){return R(e),a}}function N(a,b,c){var d=a.match(/^\s*\s*$/,""):a;try{var f=new S(b);return c?y(f.minify(x(e)).styles):f.minify(e).styles}catch(g){return R(g),a}}function O(a){var b;do b=Math.random().toString(36).slice(2);while(~a.indexOf(b));return b}function P(a,b,c){function d(a,c){return H(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return I(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=u.length-1;a>0&&!/^<[^\/!]/.test(u[a]);)a--;u.length=Math.max(0,a)}function l(){for(var a=u.length-1;a>0&&!/^<\//.test(u[a]);)a--;u.length=Math.max(0,a)}function m(a){var c;u.length>1&&/^(?:0&&/\s$/.test(u[u.length-1])&&(c=u.length-1),c>0&&(u[c]=u[c].replace(/\s+$/,function(c){return g(c,"comment",a,b)}))}b=b||{};var n=[];K(b),a=b.collapseWhitespace?X(a):a;var q,r,s,t,u=[],v="",w="",x=[],y=[],E=[],F="",L="",P=b.lint,S=Date.now(),U=[],V=[];a=a.replace(/([\s\S]*?)/g,function(b,c){s||(s=O(a));var d="";return U.push(c),d});var W=(b.ignoreCustomFragments||[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]).map(function(a){return a.source});if(W.length){var Y=new RegExp("\\s*(?:"+W.join("|")+")+\\s*","g");a=a.replace(Y,function(b){t||(t=O(a));var c=t+V.length;return V.push(b)," "+c+" "})}new T(a,{partialMarkup:c,html5:"undefined"!=typeof b.html5?b.html5:!0,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){n.push(b);var i={};for(var o in b)i[o]=b[o];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,w=a,q=a,$(a)||(v=""),r=!1,x=c;var p=b.removeOptionalTags;if(p){var s=va(a);s&&B(F,a)&&k(),F="",s&&D(L,a)&&(l(),p=!C(L,a)),L=""}b.collapseWhitespace&&(y.length||m(a),j(a,c)||y.push(a),d(a,c)||E.push(a));var t="<"+a,z=f&&b.keepClosingSlash;u.push(t),P&&P.testElement(a);for(var A,G=[],H=!0,I=c.length;--I>=0;)P&&P.testAttribute(a,c[I].name.toLowerCase(),c[I].value),A=J(c[I],c,a,z,I,b,H),A&&(H=!1,G.unshift(A));G.length>0?(u.push(" "),u.push.apply(u,G)):p&&fa(a)&&(F=a),u.push(u.pop()+(z?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&k()},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=n.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(y.length?a===y[y.length-1]&&y.pop():m("/"+a),E.length&&a===E[E.length-1]&&E.pop());var f=!1;a===w&&(w="",f=!r),b.removeOptionalTags&&(f&&ra(F)&&k(),F="",!va(a)||!L||ua(L)||"p"===L&&ka(a)||l(),L=ga(a)?a:""),b.removeEmptyElements&&f&&G(a,c)?(k(),F="",L=""):(!b.includeAutoGeneratedTags&&d||u.push(""),q="/"+a,Z(a)?f&&(v+="|"):v="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.collapseWhitespace){if(!y.length){if("comment"===c){var h=""===u[u.length-1];if(h&&(c=q),u.length>1&&(h||/ $/.test(v))){var i=u.length-2;u[i]=u[i].replace(/\s+$/,function(b){return a=b+a,""})}}if(c&&$("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(v))),a=c||d?g(a,c,d,b):X(a),!a&&/\s$/.test(v)&&c&&"/"===c.charAt(0))for(var m=u.length-2,n=c.slice(1);m>=0&&j(n);m--){var s=u[m],t=s.match(/^<\/([\w:-]+)>$/);if(t)n=t[1];else if(/>$/.test(s)||(u[m]=g(s,null,d,b)))break}}E.length||(a=c&&d||"html"===d?a:e(a))}!b.processScripts||"script"!==w&&"style"!==w||(a=A(a,b,x)),b.minifyJS&&o(w,x)&&(a=M(a,b.minifyJS),";"===a.charAt(a.length-1)&&(a=a.slice(0,-1))),b.minifyCSS&&p(w,x)&&(a=N(a,b.minifyCSS)),b.removeOptionalTags&&a&&(("html"===F||"body"===F&&!/^\s/.test(a))&&k(),F="",(sa(L)||ta(L)&&!/^\s/.test(a))&&l(),L=""),q=/^\s*$/.test(a)?c:"comment",v+=a,a&&(r=!0),P&&P.testChars(a),u.push(a)},comment:function(a,c){var d=c?"":"-->";a=h(a)?d+z(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(F="",L=""),u.push(a)},doctype:function(a){u.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(ra(F)&&k(),L&&!ua(L)&&l());var _=Q(u,b);return t&&(_=_.replace(new RegExp("(\\s*)"+t+"([0-9]+)(\\s*)","g"),function(a,c,d,e){var g=V[+d];return b.collapseWhitespace?(" "!==c&&(g=c+g)," "!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),s&&(_=_.replace(new RegExp("","g"),function(a,b){return U[+b]})),R("minified in: "+(Date.now()-S)+"ms"),_}function Q(a,b){var c,d=b.maxLineLength;if(d){for(var e,f=[],g="",h=0,i=a.length;i>h;h++)e=a[h],g.length+e.length