mirror of
https://github.com/chinchang/web-maker.git
synced 2025-05-10 20:35:27 +02:00
9 lines
260 KiB
JavaScript
9 lines
260 KiB
JavaScript
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.jade=t()}}(function(){var define,module,exports;return function t(e,i,s){function n(o,a){if(!i[o]){if(!e[o]){var h="function"==typeof require&&require;if(!a&&h)return h(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var p=i[o]={exports:{}};e[o][0].call(p.exports,function(t){var i=e[o][1][t];return n(i?i:t)},p,p.exports,t,e,i,s)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<s.length;o++)n(s[o]);return n}({1:[function(t,e,i){(function(e){"use strict";function s(t,e){e.lexer&&console.warn("Using `lexer` as a local in render() is deprecated and will be interpreted as an option in Jade 2.0.0");var i,s=new(e.parser||r)(t,e.filename,e);try{i=s.parse()}catch(n){s=s.context(),h.rethrow(n,s.filename,s.lexer.lineno,s.input)}var o,p=new(e.compiler||a)(i,e);try{o=p.compile()}catch(n){if(!n.line||!n.filename&&e.filename)throw n instanceof Error&&(n.message+="\n\nPlease report this entire error and stack trace to https://github.com/jadejs/jade/issues"),n;h.rethrow(n,n.filename,n.line,s.input)}e.debug&&console.error("\nCompiled Function:\n\n[90m%s[0m",o.replace(/^/gm," "));var u=[];e.globals&&(u=e.globals.slice()),u.push("jade"),u.push("jade_mixins"),u.push("jade_interp"),u.push("jade_debug"),u.push("buf");var l="var buf = [];\nvar jade_mixins = {};\nvar jade_interp;\n"+(e.self?"var self = locals || {};\n"+o:c("locals || {}","\n"+o,u))+';return buf.join("");';return{body:l,dependencies:s.dependencies}}function n(t,e){var s=t.filename;if(t.cache&&i.cache[s])return i.cache[s];void 0===e&&(e=p.readFileSync(t.filename,"utf8"));var n=i.compile(e,t);return t.cache&&(i.cache[s]=n),n}var r=t("./parser"),o=t("./lexer"),a=t("./compiler"),h=t("./runtime"),c=t("with"),p=t("fs"),u=t("./utils");i.selfClosing=Object.keys(t("void-elements")),i.doctypes=t("./doctypes"),i.filters=t("./filters"),i.utils=u,i.Compiler=a,i.Parser=r,i.Lexer=o,i.nodes=t("./nodes"),i.runtime=h,i.cache={},i.compile=function(t,e){var n,e=e||{},r=e.filename?u.stringify(e.filename):"undefined";t=String(t);var o=s(t,e);n=e.compileDebug!==!1?["var jade_debug = [ new jade.DebugItem( 1, "+r+" ) ];","try {",o.body,"} catch (err) {"," jade.rethrow(err, jade_debug[0].filename, jade_debug[0].lineno"+(e.compileDebug===!0?","+u.stringify(t):"")+");","}"].join("\n"):o.body,n=new Function("locals, jade",n);var a=function(t){return n(t,Object.create(h))};return e.client&&(a.toString=function(){var s=new Error("The `client` option is deprecated, use the `jade.compileClient` method instead");return s.name="Warning",console.error(s.stack||s.message),i.compileClient(t,e)}),a.dependencies=o.dependencies,a},i.compileClientWithDependenciesTracked=function(t,e){var i,e=e||{},n=e.name||"template",r=e.filename?u.stringify(e.filename):"undefined";t=String(t),e.compileDebug=e.compileDebug?!0:!1;var o=s(t,e);return i=e.compileDebug?["var jade_debug = [ new jade.DebugItem( 1, "+r+" ) ];","try {",o.body,"} catch (err) {"," jade.rethrow(err, jade_debug[0].filename, jade_debug[0].lineno, "+u.stringify(t)+");","}"].join("\n"):o.body,{body:"function "+n+"(locals) {\n"+i+"\n}",dependencies:o.dependencies}},i.compileClient=function(t,e){return i.compileClientWithDependenciesTracked(t,e).body},i.compileFile=function(t,e){return e=e||{},e.filename=t,n(e)},i.render=function(t,e,s){if("function"==typeof e&&(s=e,e=void 0),"function"==typeof s){var r;try{r=i.render(t,e)}catch(o){return s(o)}return s(null,r)}if(e=e||{},e.cache&&!e.filename)throw new Error('the "filename" option is required for caching');return n(e,t)(e)},i.renderFile=function(t,e,s){if("function"==typeof e&&(s=e,e=void 0),"function"==typeof s){var r;try{r=i.renderFile(t,e)}catch(o){return s(o)}return s(null,r)}return e=e||{},e.filename=t,n(e)(e)},i.compileFileClient=function(t,e){var s=t+":client";if(e=e||{},e.filename=t,e.cache&&i.cache[s])return i.cache[s];var n=p.readFileSync(e.filename,"utf8"),r=i.compileClient(n,e);return e.cache&&(i.cache[s]=r),r},i.__express=function(t,s,n){void 0==s.compileDebug&&"production"===e.env.NODE_ENV&&(s.compileDebug=!1),i.renderFile(t,s,n)}}).call(this,t("_process"))},{"./compiler":2,"./doctypes":3,"./filters":4,"./lexer":6,"./nodes":16,"./parser":23,"./runtime":24,"./utils":25,_process:28,fs:26,"void-elements":34,"with":35}],2:[function(t,e,i){"use strict";function s(t){return l(t,{jade:h,jade_interp:void 0})}function n(t){return l.toConstant(t,{jade:h,jade_interp:void 0})}function r(t,e){return e.line=t.line,e.filename=t.filename,e}var o=(t("./nodes"),t("./filters")),a=t("./doctypes"),h=t("./runtime"),c=t("./utils"),p=t("void-elements"),u=t("character-parser").parseMax,l=t("constantinople"),f=e.exports=function(t,e){this.options=e=e||{},this.node=t,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=e.pretty||!1,this.pp&&"string"!=typeof this.pp&&(this.pp=" "),this.debug=!1!==e.compileDebug,this.indents=0,this.parentIndents=0,this.terse=!1,this.mixins={},this.dynamicMixins=!1,e.doctype&&this.setDoctype(e.doctype)};f.prototype={compile:function(){if(this.buf=[],this.pp&&this.buf.push("var jade_indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),!this.dynamicMixins)for(var t=Object.keys(this.mixins),e=0;e<t.length;e++){var i=this.mixins[t[e]];if(!i.used)for(var s=0;s<i.instances.length;s++)for(var n=i.instances[s].start;n<i.instances[s].end;n++)this.buf[n]=""}return this.buf.join("\n")},setDoctype:function(t){this.doctype=a[t.toLowerCase()]||"<!DOCTYPE "+t+">",this.terse="<!doctype html>"==this.doctype.toLowerCase(),this.xml=0==this.doctype.indexOf("<?xml")},buffer:function(t,e){if(e){var i=/(\\)?([#!]){((?:.|\n)*)$/.exec(t);if(i){if(this.buffer(t.substr(0,i.index),!1),i[1])return this.buffer(i[2]+"{",!1),void this.buffer(i[3],!0);var s=i[3],n=u(s),r=("!"==i[2]?"":"jade.escape")+"((jade_interp = "+n.src+") == null ? '' : jade_interp)";return this.bufferExpression(r),void this.buffer(s.substr(n.end+1),!0)}}t=c.stringify(t),t=t.substr(1,t.length-2),this.lastBufferedIdx==this.buf.length?("code"===this.lastBufferedType&&(this.lastBuffered+=' + "'),this.lastBufferedType="text",this.lastBuffered+=t,this.buf[this.lastBufferedIdx-1]="buf.push("+this.bufferStartChar+this.lastBuffered+'");'):(this.buf.push('buf.push("'+t+'");'),this.lastBufferedType="text",this.bufferStartChar='"',this.lastBuffered=t,this.lastBufferedIdx=this.buf.length)},bufferExpression:function(t){return s(t)?this.buffer(n(t)+"",!1):void(this.lastBufferedIdx==this.buf.length?("text"===this.lastBufferedType&&(this.lastBuffered+='"'),this.lastBufferedType="code",this.lastBuffered+=" + ("+t+")",this.buf[this.lastBufferedIdx-1]="buf.push("+this.bufferStartChar+this.lastBuffered+");"):(this.buf.push("buf.push("+t+");"),this.lastBufferedType="code",this.bufferStartChar="",this.lastBuffered="("+t+")",this.lastBufferedIdx=this.buf.length))},prettyIndent:function(t,e){t=t||0,e=e?"\n":"",this.buffer(e+Array(this.indents+t).join(this.pp)),this.parentIndents&&this.buf.push("buf.push.apply(buf, jade_indent);")},visit:function(t){var e=this.debug;e&&this.buf.push("jade_debug.unshift(new jade.DebugItem( "+t.line+", "+(t.filename?c.stringify(t.filename):"jade_debug[0].filename")+" ));"),!1===t.debug&&this.debug&&(this.buf.pop(),this.buf.pop()),this.visitNode(t),e&&this.buf.push("jade_debug.shift();")},visitNode:function(t){return this["visit"+t.type](t)},visitCase:function(t){var e=this.withinCase;this.withinCase=!0,this.buf.push("switch ("+t.expr+"){"),this.visit(t.block),this.buf.push("}"),this.withinCase=e},visitWhen:function(t){"default"==t.expr?this.buf.push("default:"):this.buf.push("case "+t.expr+":"),t.block&&(this.visit(t.block),this.buf.push(" break;"))},visitLiteral:function(t){this.buffer(t.str)},visitBlock:function(t){var e=t.nodes.length,i=this.escape,s=this.pp;s&&e>1&&!i&&t.nodes[0].isText&&t.nodes[1].isText&&this.prettyIndent(1,!0);for(var n=0;e>n;++n)s&&n>0&&!i&&t.nodes[n].isText&&t.nodes[n-1].isText&&this.prettyIndent(1,!1),this.visit(t.nodes[n]),t.nodes[n+1]&&t.nodes[n].isText&&t.nodes[n+1].isText&&this.buffer("\n")},visitMixinBlock:function(t){this.pp&&this.buf.push("jade_indent.push('"+Array(this.indents+1).join(this.pp)+"');"),this.buf.push("block && block();"),this.pp&&this.buf.push("jade_indent.pop();")},visitDoctype:function(t){!t||!t.val&&this.doctype||this.setDoctype(t.val||"default"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(t){var e="jade_mixins[",i=t.args||"",s=t.block,n=t.attrs,r=t.attributeBlocks.slice(),o=this.pp,a="#"===t.name[0],h=t.name;if(a&&(this.dynamicMixins=!0),e+=(a?t.name.substr(2,t.name.length-3):'"'+t.name+'"')+"]",this.mixins[h]=this.mixins[h]||{used:!1,instances:[]},t.call){if(this.mixins[h].used=!0,o&&this.buf.push("jade_indent.push('"+Array(this.indents+1).join(o)+"');"),s||n.length||r.length){if(this.buf.push(e+".call({"),s){this.buf.push("block: function(){"),this.parentIndents++;var c=this.indents;this.indents=0,this.visit(t.block),this.indents=c,this.parentIndents--,n.length||r.length?this.buf.push("},"):this.buf.push("}")}if(r.length){if(n.length){var p=this.attrs(n);r.unshift(p)}this.buf.push("attributes: jade.merge(["+r.join(",")+"])")}else if(n.length){var p=this.attrs(n);this.buf.push("attributes: "+p)}i?this.buf.push("}, "+i+");"):this.buf.push("});")}else this.buf.push(e+"("+i+");");o&&this.buf.push("jade_indent.pop();")}else{var u=this.buf.length;i=i?i.split(","):[];var l;i.length&&/^\.\.\./.test(i[i.length-1].trim())&&(l=i.pop().trim().replace(/^\.\.\./,"")),this.buf.push(e+" = jade_interp = function("+i.join(",")+"){"),this.buf.push("var block = (this && this.block), attributes = (this && this.attributes) || {};"),l&&(this.buf.push("var "+l+" = [];"),this.buf.push("for (jade_interp = "+i.length+"; jade_interp < arguments.length; jade_interp++) {"),this.buf.push(" "+l+".push(arguments[jade_interp]);"),this.buf.push("}")),this.parentIndents++,this.visit(s),this.parentIndents--,this.buf.push("};");var f=this.buf.length;this.mixins[h].instances.push({start:u,end:f})}},visitTag:function(t){function e(){t.buffer?n.bufferExpression(i):n.buffer(i)}this.indents++;var i=t.name,s=this.pp,n=this;if("pre"==t.name&&(this.escape=!0),this.hasCompiledTag||(this.hasCompiledDoctype||"html"!=i||this.visitDoctype(),this.hasCompiledTag=!0),s&&!t.isInline()&&this.prettyIndent(0,!0),t.selfClosing||!this.xml&&p[t.name]){if(this.buffer("<"),e(),this.visitAttributes(t.attrs,t.attributeBlocks.slice()),this.terse?this.buffer(">"):this.buffer("/>"),t.block&&("Block"!==t.block.type||0!==t.block.nodes.length)&&t.block.nodes.some(function(t){return"Text"!==t.type||!/^\s*$/.test(t.val)}))throw r(t,new Error(i+" is self closing and should not have content."))}else this.buffer("<"),e(),this.visitAttributes(t.attrs,t.attributeBlocks.slice()),this.buffer(">"),t.code&&this.visitCode(t.code),this.visit(t.block),!s||t.isInline()||"pre"==t.name||t.canInline()||this.prettyIndent(0,!0),this.buffer("</"),e(),this.buffer(">");"pre"==t.name&&(this.escape=!1),this.indents--},visitFilter:function(t){var e=t.block.nodes.map(function(t){return t.val}).join("\n");t.attrs.filename=this.options.filename;try{this.buffer(o(t.name,e,t.attrs),!0)}catch(i){throw r(t,i)}},visitText:function(t){this.buffer(t.val,!0)},visitComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+t.val+"-->"))},visitBlockComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+t.val),this.visit(t.block),this.pp&&this.prettyIndent(1,!0),this.buffer("-->"))},visitCode:function(t){if(t.buffer){var e=t.val.trim();e="null == (jade_interp = "+e+') ? "" : jade_interp',t.escape&&(e="jade.escape("+e+")"),this.bufferExpression(e)}else this.buf.push(t.val);t.block&&(t.buffer||this.buf.push("{"),this.visit(t.block),t.buffer||this.buf.push("}"))},visitEach:function(t){this.buf.push("// iterate "+t.obj+"\n;(function(){\n var $$obj = "+t.obj+";\n if ('number' == typeof $$obj.length) {\n"),t.alternative&&this.buf.push(" if ($$obj.length) {"),this.buf.push(" for (var "+t.key+" = 0, $$l = $$obj.length; "+t.key+" < $$l; "+t.key+"++) {\n var "+t.val+" = $$obj["+t.key+"];\n"),this.visit(t.block),this.buf.push(" }\n"),t.alternative&&(this.buf.push(" } else {"),this.visit(t.alternative),this.buf.push(" }")),this.buf.push(" } else {\n var $$l = 0;\n for (var "+t.key+" in $$obj) {\n $$l++; var "+t.val+" = $$obj["+t.key+"];\n"),this.visit(t.block),this.buf.push(" }\n"),t.alternative&&(this.buf.push(" if ($$l === 0) {"),this.visit(t.alternative),this.buf.push(" }")),this.buf.push(" }\n}).call(this);\n")},visitAttributes:function(t,e){if(e.length){if(t.length){var i=this.attrs(t);e.unshift(i)}this.bufferExpression("jade.attrs(jade.merge(["+e.join(",")+"]), "+c.stringify(this.terse)+")")}else t.length&&this.attrs(t,!0)},attrs:function(t,e){var i=[],r=[],o=[];return t.forEach(function(t){var a=t.name,p=t.escaped;if("class"===a)r.push(t.val),o.push(t.escaped);else if(s(t.val))if(e)this.buffer(h.attr(a,n(t.val),p,this.terse));else{var u=n(t.val);"style"===a&&(u=h.style(u)),!p||0===a.indexOf("data")&&"string"!=typeof u||(u=h.escape(u)),i.push(c.stringify(a)+": "+c.stringify(u))}else if(e)this.bufferExpression('jade.attr("'+a+'", '+t.val+", "+c.stringify(p)+", "+c.stringify(this.terse)+")");else{var u=t.val;"style"===a&&(u="jade.style("+u+")"),p&&0!==a.indexOf("data")?u="jade.escape("+u+")":p&&(u="(typeof (jade_interp = "+u+') == "string" ? jade.escape(jade_interp) : jade_interp)'),i.push(c.stringify(a)+": "+u)}}.bind(this)),e?r.every(s)?this.buffer(h.cls(r.map(n),o)):this.bufferExpression("jade.cls(["+r.join(",")+"], "+c.stringify(o)+")"):r.length&&(r=r.every(s)?c.stringify(h.joinClasses(r.map(n).map(h.joinClasses).map(function(t,e){return o[e]?h.escape(t):t}))):"(jade_interp = "+c.stringify(o)+", jade.joinClasses(["+r.join(",")+"].map(jade.joinClasses).map(function (cls, i) { return jade_interp[i] ? jade.escape(cls) : cls })))",r.length&&i.push('"class": '+r)),"{"+i.join(",")+"}"}}},{"./doctypes":3,"./filters":4,"./nodes":16,"./runtime":24,"./utils":25,"character-parser":29,constantinople:30,"void-elements":34}],3:[function(t,e,i){"use strict";e.exports={"default":"<!DOCTYPE html>",xml:'<?xml version="1.0" encoding="utf-8" ?>',transitional:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',strict:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',frameset:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',1.1:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',basic:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',mobile:'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'}},{}],4:[function(t,e,i){"use strict";function s(t,e,i){if("function"==typeof s[t])return s[t](e,i);throw new Error('unknown filter ":'+t+'"')}e.exports=s},{}],5:[function(t,e,i){"use strict";e.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]},{}],6:[function(t,e,i){"use strict";function s(t){Function("","return ("+t+")")}function n(t){var e=o(t);if(e.isNesting())throw new Error("Nesting must match on expression `"+t+"`")}var r=t("./utils"),o=t("character-parser"),a=e.exports=function(t,e){this.input=t.replace(/\r\n|\r/g,"\n"),this.filename=e,this.deferredTokens=[],this.lastIndents=0,this.lineno=1,this.stash=[],this.indentStack=[],this.indentRe=null,this.pipeless=!1};a.prototype={tok:function(t,e){return{type:t,line:this.lineno,val:e}},consume:function(t){this.input=this.input.substr(t)},scan:function(t,e){var i;return(i=t.exec(this.input))?(this.consume(i[0].length),this.tok(e,i[1])):void 0},defer:function(t){this.deferredTokens.push(t)},lookahead:function(t){for(var e=t-this.stash.length;e-- >0;)this.stash.push(this.next());return this.stash[--t]},bracketExpression:function(t){t=t||0;var e=this.input[t];if("("!=e&&"{"!=e&&"["!=e)throw new Error("unrecognized start character");var i={"(":")","{":"}","[":"]"}[e],s=o.parseMax(this.input,{start:t+1});if(this.input[s.end]!==i)throw new Error("start character "+e+" does not match end character "+this.input[s.end]);return s},stashed:function(){return this.stash.length&&this.stash.shift()},deferred:function(){return this.deferredTokens.length&&this.deferredTokens.shift()},eos:function(){return this.input.length?void 0:this.indentStack.length?(this.indentStack.shift(),this.tok("outdent")):this.tok("eos")},blank:function(){var t;return(t=/^\n *\n/.exec(this.input))?(this.consume(t[0].length-1),++this.lineno,this.pipeless?this.tok("text",""):this.next()):void 0},comment:function(){var t;if(t=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("comment",t[2]);return e.buffer="-"!=t[1],this.pipeless=!0,e}},interpolation:function(){if(/^#\{/.test(this.input)){var t=this.bracketExpression(1);return this.consume(t.end+1),this.tok("interpolation",t.src)}},tag:function(){var t;if(t=/^(\w[-:\w]*)(\/?)/.exec(this.input)){this.consume(t[0].length);var e,i=t[1];if(":"==i[i.length-1])for(i=i.slice(0,-1),e=this.tok("tag",i),this.defer(this.tok(":"))," "!==this.input[0]&&console.warn("Warning: space required after `:` on line "+this.lineno+' of jade file "'+this.filename+'"');" "==this.input[0];)this.input=this.input.substr(1);else e=this.tok("tag",i);return e.selfClosing=!!t[2],e}},filter:function(){var t=this.scan(/^:([\w\-]+)/,"filter");return t?(this.pipeless=!0,t):void 0},doctype:function(){if(this.scan(/^!!! *([^\n]+)?/,"doctype"))throw new Error("`!!!` is deprecated, you must now use `doctype`");var t=this.scan(/^(?:doctype) *([^\n]+)?/,"doctype");if(t&&t.val&&"5"===t.val.trim())throw new Error("`doctype 5` is deprecated, you must now use `doctype html`");return t},id:function(){return this.scan(/^#([\w-]+)/,"id")},className:function(){return this.scan(/^\.([\w-]+)/,"class")},text:function(){return this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^\|?( )/,"text")||this.scan(/^(<[^\n]*)/,"text")},textFail:function(){var t;return(t=this.scan(/^([^\.\n][^\n]+)/,"text"))?(console.warn("Warning: missing space before text for line "+this.lineno+' of jade file "'+this.filename+'"'),t):void 0},dot:function(){var t;return(t=this.scan(/^\./,"dot"))?(this.pipeless=!0,t):void 0},"extends":function(){return this.scan(/^extends? +([^\n]+)/,"extends")},prepend:function(){var t;if(t=/^prepend +([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e="prepend",i=t[1],s=this.tok("block",i);return s.mode=e,s}},append:function(){var t;if(t=/^append +([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e="append",i=t[1],s=this.tok("block",i);return s.mode=e,s}},block:function(){var t;if(t=/^block\b *(?:(prepend|append) +)?([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=t[1]||"replace",i=t[2],s=this.tok("block",i);return s.mode=e,s}},mixinBlock:function(){var t;return(t=/^block[ \t]*(\n|$)/.exec(this.input))?(this.consume(t[0].length-t[1].length),this.tok("mixin-block")):void 0},"yield":function(){return this.scan(/^yield */,"yield")},include:function(){return this.scan(/^include +([^\n]+)/,"include")},includeFiltered:function(){var t;if(t=/^include:([\w\-]+)([\( ])/.exec(this.input)){this.consume(t[0].length-1);var e=t[1],i="("===t[2]?this.attrs():null;if(" "!==t[2]&&" "!==this.input[0])throw new Error("expected space after include:filter but got "+r.stringify(this.input[0]));if(t=/^ *([^\n]+)/.exec(this.input),!t||""===t[1].trim())throw new Error("missing path for include:filter");this.consume(t[0].length);var s=t[1],n=this.tok("include",s);return n.filter=e,n.attrs=i,n}},"case":function(){return this.scan(/^case +([^\n]+)/,"case")},when:function(){return this.scan(/^when +([^:\n]+)/,"when")},"default":function(){return this.scan(/^default */,"default")},call:function(){var t,e;if(e=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(e[3])this.consume(e[0].length),t=this.tok("call",e[3]);else{var i=this.bracketExpression(2+e[1].length);this.consume(i.end+1),s(i.src),t=this.tok("call","#{"+i.src+"}")}if(e=/^ *\(/.exec(this.input)){var n=this.bracketExpression(e[0].length-1);/^\s*[-\w]+ *=/.test(n.src)||(this.consume(n.end+1),t.args=n.src),t.args&&s("["+t.args+"]")}return t}},mixin:function(){var t;if(t=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(t[0].length);var e=this.tok("mixin",t[1]);return e.args=t[2],e}},conditional:function(){var t;if(t=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=t[1],i=t[2],n=!1,r=!1;switch(e){case"if":s(i),i="if ("+i+")",n=!0;break;case"unless":s(i),i="if (!("+i+"))",n=!0;break;case"else if":s(i),i="else if ("+i+")",n=!0,r=!0;break;case"else":if(i&&i.trim())throw new Error("`else` cannot have a condition, perhaps you meant `else if`");i="else",r=!0}var o=this.tok("code",i);return o.isElse=r,o.isIf=n,o.requiresBlock=!0,o}},"while":function(){var t;if(t=/^while +([^\n]+)/.exec(this.input)){this.consume(t[0].length),s(t[1]);var e=this.tok("code","while ("+t[1]+")");return e.requiresBlock=!0,e}},each:function(){var t;if(t=/^(?:- *)?(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("each",t[1]);return e.key=t[2]||"$index",s(t[3]),e.code=t[3],e}},code:function(){var t;if(t=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=t[1];t[1]=t[2];var i=this.tok("code",t[1]);return i.escape="="===e.charAt(0),i.buffer="="===e.charAt(0)||"="===e.charAt(1),i.buffer&&s(t[1]),i}},blockCode:function(){var t;if(t=/^-\n/.exec(this.input)){this.consume(t[0].length-1);var e=this.tok("blockCode");return this.pipeless=!0,e}},attrs:function(){if("("==this.input.charAt(0)){var t=this.bracketExpression().end,e=this.input.substr(1,t-1),i=this.tok("attrs");n(e);var r="",a=function(t){return t.replace(/(\\)?#\{(.+)/g,function(t,e,i){if(e)return t;try{var n=o.parseMax(i);return"}"!==i[n.end]?t.substr(0,2)+a(t.substr(2)):(s(n.src),r+" + ("+n.src+") + "+r+a(i.substr(n.end+1)))}catch(h){return t.substr(0,2)+a(t.substr(2))}})};this.consume(t+1),i.attrs=[];var h=!0,c="",p="",u="",l=o.defaultState(),f="key",d=function(t){if(""===c.trim())return!1;if(t===e.length)return!0;if("key"===f){if(" "===e[t]||"\n"===e[t])for(var i=t;i<e.length;i++)if(" "!=e[i]&&"\n"!=e[i])return"="===e[i]||"!"===e[i]||","===e[i]?!1:!0;return","===e[t]}if("value"===f&&!l.isNesting())try{if(s(p)," "===e[t]||"\n"===e[t])for(var i=t;i<e.length;i++)if(" "!=e[i]&&"\n"!=e[i])return o.isPunctuator(e[i])&&'"'!=e[i]&&"'"!=e[i]?!1:!0;return","===e[t]}catch(n){return!1}};this.lineno+=e.split("\n").length-1;for(var m=0;m<=e.length;m++)if(d(m))p=p.trim(),p&&s(p),c=c.trim(),c=c.replace(/^['"]|['"]$/g,""),i.attrs.push({name:c,val:""==p?!0:p,escaped:h}),c=p="",f="key",h=!1;else switch(f){case"key-char":if(e[m]===r){if(f="key",m+1<e.length&&-1===[" ",",","!","=","\n"].indexOf(e[m+1]))throw new Error("Unexpected character "+e[m+1]+" expected ` `, `\\n`, `,`, `!` or `=`")}else c+=e[m];break;case"key":if(""!==c||'"'!==e[m]&&"'"!==e[m])if("!"===e[m]||"="===e[m]){if(h="!"!==e[m],"!"===e[m]&&m++,"="!==e[m])throw new Error("Unexpected character "+e[m]+" expected `=`");f="value",l=o.defaultState()}else c+=e[m];else f="key-char",r=e[m];break;case"value":l=o.parseChar(e[m],l),l.isString()?(f="string",r=e[m],u=e[m]):p+=e[m];break;case"string":l=o.parseChar(e[m],l),u+=e[m],l.isString()||(f="value",p+=a(u))}return"/"==this.input.charAt(0)&&(this.consume(1),i.selfClosing=!0),i}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){this.consume(11);var t=this.bracketExpression();return this.consume(t.end+1),this.tok("&attributes",t.src)}},indent:function(){var t,e;if(this.indentRe?t=this.indentRe.exec(this.input):(e=/^\n(\t*) */,t=e.exec(this.input),t&&!t[1].length&&(e=/^\n( *)/,t=e.exec(this.input)),t&&t[1].length&&(this.indentRe=e)),t){var i,s=t[1].length;if(++this.lineno,this.consume(s+1)," "==this.input[0]||" "==this.input[0])throw new Error("Invalid indentation, you can use tabs or spaces but not both");if("\n"==this.input[0])return this.pipeless=!1,this.tok("newline");if(this.indentStack.length&&s<this.indentStack[0]){for(;this.indentStack.length&&this.indentStack[0]>s;)this.stash.push(this.tok("outdent")),this.indentStack.shift();i=this.stash.pop()}else s&&s!=this.indentStack[0]?(this.indentStack.unshift(s),i=this.tok("indent",s)):i=this.tok("newline");return this.pipeless=!1,i}},pipelessText:function(){if(this.pipeless){var t,e;this.indentRe?t=this.indentRe.exec(this.input):(e=/^\n(\t*) */,t=e.exec(this.input),t&&!t[1].length&&(e=/^\n( *)/,t=e.exec(this.input)),t&&t[1].length&&(this.indentRe=e));var i=t&&t[1].length;if(i&&(0===this.indentStack.length||i>this.indentStack[0])){var s,n=t[1],r=[];do{var o=this.input.substr(1).indexOf("\n");-1==o&&(o=this.input.length-1);var a=this.input.substr(1,o);s=a.substr(0,n.length)===n||!a.trim(),s&&(this.consume(a.length+1),++this.lineno,r.push(a.substr(n.length)))}while(this.input.length&&s);for(;0===this.input.length&&""===r[r.length-1];)r.pop();return this.tok("pipeless-text",r)}}},colon:function(){var t=/^: +/.test(this.input),e=this.scan(/^: */,":");return e&&!t&&console.warn("Warning: space required after `:` on line "+this.lineno+' of jade file "'+this.filename+'"'),e},fail:function(){throw new Error("unexpected text "+this.input.substr(0,5))},advance:function(){return this.stashed()||this.next()},next:function(){return this.deferred()||this.blank()||this.eos()||this.pipelessText()||this["yield"]()||this.doctype()||this.interpolation()||this["case"]()||this.when()||this["default"]()||this["extends"]()||this.append()||this.prepend()||this.block()||this.mixinBlock()||this.include()||this.includeFiltered()||this.mixin()||this.call()||this.conditional()||this.each()||this["while"]()||this.tag()||this.filter()||this.blockCode()||this.code()||this.id()||this.className()||this.attrs()||this.attributesBlock()||this.indent()||this.text()||this.comment()||this.colon()||this.dot()||this.textFail()||this.fail()}}},{"./utils":25,"character-parser":29}],7:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(){this.attributeNames=[],this.attrs=[],this.attributeBlocks=[]};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Attrs",n.prototype.setAttribute=function(t,e,i){if("class"!==t&&-1!==this.attributeNames.indexOf(t))throw new Error('Duplicate attribute "'+t+'" is not allowed.');return this.attributeNames.push(t),this.attrs.push({name:t,val:e,escaped:i}),this},n.prototype.removeAttribute=function(t){var e=new Error("attrs.removeAttribute is deprecated and will be removed in v2.0.0");console.warn(e.stack);for(var i=0,s=this.attrs.length;s>i;++i)this.attrs[i]&&this.attrs[i].name==t&&delete this.attrs[i]},n.prototype.getAttribute=function(t){var e=new Error("attrs.getAttribute is deprecated and will be removed in v2.0.0");console.warn(e.stack);for(var i=0,s=this.attrs.length;s>i;++i)if(this.attrs[i]&&this.attrs[i].name==t)return this.attrs[i].val},n.prototype.addAttributes=function(t){this.attributeBlocks.push(t)}},{"./node":20}],8:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.block=e,this.val=t,this.buffer=i};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="BlockComment"},{"./node":20}],9:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.nodes=[],t&&this.push(t)};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Block",n.prototype.isBlock=!0,n.prototype.replace=function(t){var e=new Error("block.replace is deprecated and will be removed in v2.0.0");console.warn(e.stack),t.nodes=this.nodes},n.prototype.push=function(t){return this.nodes.push(t)},n.prototype.isEmpty=function(){return 0==this.nodes.length},n.prototype.unshift=function(t){return this.nodes.unshift(t)},n.prototype.includeBlock=function(){for(var t,e=this,i=0,s=this.nodes.length;s>i;++i){if(t=this.nodes[i],t["yield"])return t;if(!t.textOnly&&(t.includeBlock?e=t.includeBlock():t.block&&!t.block.isEmpty()&&(e=t.block.includeBlock()),e["yield"]))return e}return e},n.prototype.clone=function(){var t=new Error("block.clone is deprecated and will be removed in v2.0.0");console.warn(t.stack);for(var e=new n,i=0,s=this.nodes.length;s>i;++i)e.push(this.nodes[i].clone());return e}},{"./node":20}],10:[function(t,e,i){"use strict";var s=t("./node"),n=i=e.exports=function(t,e){this.expr=t,this.block=e};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Case";var r=i.When=function(t,e){this.expr=t,this.block=e,this.debug=!1};r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.prototype.type="When"},{"./node":20}],11:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.val=t,this.buffer=e,this.escape=i,t.match(/^ *else/)&&(this.debug=!1)};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Code"},{"./node":20}],12:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e){this.val=t,this.buffer=e};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Comment"},{"./node":20}],13:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.val=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Doctype"},{"./node":20}],14:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i,s){this.obj=t,this.val=e,this.key=i,this.block=s};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Each"},{"./node":20}],15:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.name=t,this.block=e,this.attrs=i};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Filter"},{"./node":20}],16:[function(t,e,i){"use strict";i.Node=t("./node"),i.Tag=t("./tag"),i.Code=t("./code"),i.Each=t("./each"),i.Case=t("./case"),i.Text=t("./text"),i.Block=t("./block"),i.MixinBlock=t("./mixin-block"),i.Mixin=t("./mixin"),i.Filter=t("./filter"),i.Comment=t("./comment"),i.Literal=t("./literal"),i.BlockComment=t("./block-comment"),i.Doctype=t("./doctype")},{"./block":9,"./block-comment":8,"./case":10,"./code":11,"./comment":12,"./doctype":13,"./each":14,"./filter":15,"./literal":17,"./mixin":19,"./mixin-block":18,"./node":20,"./tag":21,"./text":22}],17:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.str=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Literal"},{"./node":20}],18:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(){};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="MixinBlock"},{"./node":20}],19:[function(t,e,i){"use strict";var s=t("./attrs"),n=e.exports=function(t,e,i,n){s.call(this),this.name=t,this.args=e,this.block=i,this.call=n};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Mixin"},{"./attrs":7}],20:[function(t,e,i){"use strict";var s=e.exports=function(){};s.prototype.clone=function(){var t=new Error("node.clone is deprecated and will be removed in v2.0.0");return console.warn(t.stack),this},s.prototype.type=""},{}],21:[function(t,e,i){"use strict";var s=t("./attrs"),n=t("./block"),r=t("../inline-tags"),o=e.exports=function(t,e){s.call(this),this.name=t,this.block=e||new n};o.prototype=Object.create(s.prototype),
|
||
o.prototype.constructor=o,o.prototype.type="Tag",o.prototype.clone=function(){var t=new Error("tag.clone is deprecated and will be removed in v2.0.0");console.warn(t.stack);var e=new o(this.name,this.block.clone());return e.line=this.line,e.attrs=this.attrs,e.textOnly=this.textOnly,e},o.prototype.isInline=function(){return~r.indexOf(this.name)},o.prototype.canInline=function(){function t(e){return e.isBlock?e.nodes.every(t):e.isText||e.isInline&&e.isInline()}var e=this.block.nodes;if(!e.length)return!0;if(1==e.length)return t(e[0]);if(this.block.nodes.every(t)){for(var i=1,s=e.length;s>i;++i)if(e[i-1].isText&&e[i].isText)return!1;return!0}return!1}},{"../inline-tags":5,"./attrs":7,"./block":9}],22:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.val=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Text",n.prototype.isText=!0},{"./node":20}],23:[function(t,e,i){"use strict";var s=t("./lexer"),n=t("./nodes"),r=t("./utils"),o=t("./filters"),a=t("path"),h=t("constantinople"),c=t("character-parser").parseMax,p=(a.extname,i=e.exports=function(t,e,i){this.input=t.replace(/^\uFEFF/,""),this.lexer=new s(this.input,e),this.filename=e,this.blocks={},this.mixins={},this.options=i,this.contexts=[this],this.inMixin=0,this.dependencies=[],this.inBlock=0});p.prototype={constructor:p,context:function(t){return t?void this.contexts.push(t):this.contexts.pop()},advance:function(){return this.lexer.advance()},peek:function(){return this.lookahead(1)},line:function(){return this.lexer.lineno},lookahead:function(t){return this.lexer.lookahead(t)},parse:function(){var t,e=new n.Block;for(e.line=0,e.filename=this.filename;"eos"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else{var i=this.peek(),s=this.parseExpr();s.filename=s.filename||this.filename,s.line=i.line,e.push(s)}if(t=this.extending){this.context(t);var o=t.parse();this.context();for(var a in this.mixins)o.unshift(this.mixins[a]);return o}if(!this.extending&&!this.included&&Object.keys(this.blocks).length){var h=[];r.walkAST(e,function(t){"Block"===t.type&&t.name&&h.push(t.name)}),Object.keys(this.blocks).forEach(function(t){-1!==h.indexOf(t)||this.blocks[t].isSubBlock||console.warn('Warning: Unexpected block "'+t+'" on line '+this.blocks[t].line+" of "+this.blocks[t].filename+". This block is never used. This warning will be an error in v2.0.0")}.bind(this))}return e},expect:function(t){if(this.peek().type===t)return this.advance();throw new Error('expected "'+t+'", but got "'+this.peek().type+'"')},accept:function(t){return this.peek().type===t?this.advance():void 0},parseExpr:function(){switch(this.peek().type){case"tag":return this.parseTag();case"mixin":return this.parseMixin();case"block":return this.parseBlock();case"mixin-block":return this.parseMixinBlock();case"case":return this.parseCase();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"doctype":return this.parseDoctype();case"filter":return this.parseFilter();case"comment":return this.parseComment();case"text":return this.parseText();case"each":return this.parseEach();case"code":return this.parseCode();case"blockCode":return this.parseBlockCode();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":this.advance();var t=new n.Block;return t["yield"]=!0,t;case"id":case"class":var e=this.advance();return this.lexer.defer(this.lexer.tok("tag","div")),this.lexer.defer(e),this.parseExpr();default:throw new Error('unexpected token "'+this.peek().type+'"')}},parseText:function(){var t=this.expect("text"),e=this.parseInlineTagsInText(t.val);if(1===e.length)return e[0];for(var i=new n.Block,s=0;s<e.length;s++)i.push(e[s]);return i},parseBlockExpansion:function(){return":"==this.peek().type?(this.advance(),new n.Block(this.parseExpr())):this.block()},parseCase:function(){var t=this.expect("case").val,e=new n.Case(t);e.line=this.line();var i=new n.Block;for(i.line=this.line(),i.filename=this.filename,this.expect("indent");"outdent"!=this.peek().type;)switch(this.peek().type){case"comment":case"newline":this.advance();break;case"when":i.push(this.parseWhen());break;case"default":i.push(this.parseDefault());break;default:throw new Error('Unexpected token "'+this.peek().type+'", expected "when", "default" or "newline"')}return this.expect("outdent"),e.block=i,e},parseWhen:function(){var t=this.expect("when").val;return"newline"!==this.peek().type?new n.Case.When(t,this.parseBlockExpansion()):new n.Case.When(t)},parseDefault:function(){return this.expect("default"),new n.Case.When("default",this.parseBlockExpansion())},parseCode:function(t){var e,i=this.expect("code"),s=new n.Code(i.val,i.buffer,i.escape);if(s.line=this.line(),i.isElse&&!i.hasIf)throw new Error("Unexpected else without if");return e="indent"==this.peek().type,e&&(s.block=this.block()),i.requiresBlock&&!e&&(s.block=new n.Block),i.isIf&&this.peek().isElse?this.peek().hasIf=!0:i.isIf&&"newline"===this.peek().type&&this.lookahead(2).isElse&&(this.lookahead(2).hasIf=!0),s},parseBlockCode:function(){var t,e,i=(this.expect("blockCode"),this.peek());return"pipeless-text"===i.type?(this.advance(),e=i.val.join("\n")):e="",t=new n.Code(e,!1,!1)},parseComment:function(){var t,e,i=this.expect("comment");return t=(e=this.parseTextBlock())?new n.BlockComment(i.val,e,i.buffer):new n.Comment(i.val,i.buffer),t.line=this.line(),t},parseDoctype:function(){var t=this.expect("doctype"),e=new n.Doctype(t.val);return e.line=this.line(),e},parseFilter:function(){var t,e=this.expect("filter"),i=this.accept("attrs");t=this.parseTextBlock()||new n.Block;var s={};i&&i.attrs.forEach(function(t){s[t.name]=h.toConstant(t.val)});var r=new n.Filter(e.val,t,s);return r.line=this.line(),r},parseEach:function(){var t=this.expect("each"),e=new n.Each(t.code,t.val,t.key);return e.line=this.line(),e.block=this.block(),"code"==this.peek().type&&"else"==this.peek().val&&(this.advance(),e.alternative=this.block()),e},resolvePath:function(e,i){var s=t("path"),n=s.dirname,r=s.basename,o=s.join;if("/"!==e[0]&&!this.filename)throw new Error('the "filename" option is required to use "'+i+'" with "relative" paths');if("/"===e[0]&&!this.options.basedir)throw new Error('the "basedir" option is required to use "'+i+'" with "absolute" paths');return e=o("/"===e[0]?this.options.basedir:n(this.filename),e),-1===r(e).indexOf(".")&&(e+=".jade"),e},parseExtends:function(){var e=t("fs"),i=this.resolvePath(this.expect("extends").val.trim(),"extends");".jade"!=i.substr(-5)&&(i+=".jade"),this.dependencies.push(i);var s=e.readFileSync(i,"utf8"),r=new this.constructor(s,i,this.options);return r.dependencies=this.dependencies,r.blocks=this.blocks,r.included=this.included,r.contexts=this.contexts,this.extending=r,new n.Literal("")},parseBlock:function(){var t=this.expect("block"),e=t.mode,i=t.val.trim(),s=t.line;this.inBlock++,t="indent"==this.peek().type?this.block():new n.Block(new n.Literal("")),this.inBlock--,t.name=i,t.line=s;var r=this.blocks[i]||{prepended:[],appended:[]};if("replace"===r.mode)return this.blocks[i]=r;var o=r.prepended.concat(t.nodes).concat(r.appended);switch(e){case"append":r.appended=r.parser===this?r.appended.concat(t.nodes):t.nodes.concat(r.appended);break;case"prepend":r.prepended=r.parser===this?t.nodes.concat(r.prepended):r.prepended.concat(t.nodes)}return t.nodes=o,t.appended=r.appended,t.prepended=r.prepended,t.mode=e,t.parser=this,t.isSubBlock=this.inBlock>0,this.blocks[i]=t},parseMixinBlock:function(){this.expect("mixin-block");if(!this.inMixin)throw new Error("Anonymous blocks are not allowed unless they are part of a mixin.");return new n.MixinBlock},parseInclude:function(){var e=t("fs"),i=this.expect("include"),s=this.resolvePath(i.val.trim(),"include");if(this.dependencies.push(s),i.filter){var a=e.readFileSync(s,"utf8").replace(/\r/g,""),c={filename:s};return i.attrs&&i.attrs.attrs.forEach(function(t){c[t.name]=h.toConstant(t.val)}),a=o(i.filter,a,c),new n.Literal(a)}if(".jade"!=s.substr(-5)){var a=e.readFileSync(s,"utf8").replace(/\r/g,"");return new n.Literal(a)}var a=e.readFileSync(s,"utf8"),p=new this.constructor(a,s,this.options);p.dependencies=this.dependencies,p.blocks=r.merge({},this.blocks),p.included=!0,p.mixins=this.mixins,this.context(p);var u=p.parse();return this.context(),u.filename=s,"indent"==this.peek().type&&u.includeBlock().push(this.block()),u},parseCall:function(){var t=this.expect("call"),e=t.val,i=t.args,s=new n.Mixin(e,i,new n.Block,!0);return this.tag(s),s.code&&(s.block.push(s.code),s.code=null),s.block.isEmpty()&&(s.block=null),s},parseMixin:function(){var t,e=this.expect("mixin"),i=e.val,s=e.args;return"indent"==this.peek().type?(this.inMixin++,t=new n.Mixin(i,s,this.block(),!1),this.mixins[i]=t,this.inMixin--,t):new n.Mixin(i,s,null,!0)},parseInlineTagsInText:function(t){var e=this.line(),i=/(\\)?#\[((?:.|\n)*)$/.exec(t);if(i){if(i[1]){var s=new n.Text(t.substr(0,i.index)+"#[");s.line=e;var r=this.parseInlineTagsInText(i[2]);return"Text"===r[0].type&&(s.val+=r[0].val,r.shift()),[s].concat(r)}var s=new n.Text(t.substr(0,i.index));s.line=e;var o=[s],r=i[2],a=c(r),h=new p(a.src,this.filename,this.options);return o.push(h.parse()),o.concat(this.parseInlineTagsInText(r.substr(a.end+1)))}var s=new n.Text(t);return s.line=e,[s]},parseTextBlock:function(){var t=new n.Block;t.line=this.line();var e=this.peek();if("pipeless-text"===e.type)return this.advance(),t.nodes=e.val.reduce(function(t,e){return t.concat(this.parseInlineTagsInText(e))}.bind(this),[]),t},block:function(){var t=new n.Block;for(t.line=this.line(),t.filename=this.filename,this.expect("indent");"outdent"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else{var e=this.parseExpr();e.filename=this.filename,t.push(e)}return this.expect("outdent"),t},parseInterpolation:function(){var t=this.advance(),e=new n.Tag(t.val);return e.buffer=!0,this.tag(e)},parseTag:function(){var t=this.advance(),e=new n.Tag(t.val);return e.selfClosing=t.selfClosing,this.tag(e)},tag:function(t){t.line=this.line();var e=!1;t:for(;;)switch(this.peek().type){case"id":case"class":var i=this.advance();t.setAttribute(i.type,"'"+i.val+"'");continue;case"attrs":e&&console.warn(this.filename+", line "+this.peek().line+":\nYou should not have jade tags with multiple attributes."),e=!0;var i=this.advance(),s=i.attrs;i.selfClosing&&(t.selfClosing=!0);for(var r=0;r<s.length;r++)t.setAttribute(s[r].name,s[r].val,s[r].escaped);continue;case"&attributes":var i=this.advance();t.addAttributes(i.val);break;default:break t}switch("dot"==this.peek().type&&(t.textOnly=!0,this.advance()),this.peek().type){case"text":t.block.push(this.parseText());break;case"code":t.code=this.parseCode();break;case":":this.advance(),t.block=new n.Block,t.block.push(this.parseExpr());break;case"newline":case"indent":case"outdent":case"eos":case"pipeless-text":break;default:throw new Error("Unexpected token `"+this.peek().type+"` expected `text`, `code`, `:`, `newline` or `eos`")}for(;"newline"==this.peek().type;)this.advance();if(t.textOnly)t.block=this.parseTextBlock()||new n.Block;else if("indent"==this.peek().type)for(var o=this.block(),r=0,a=o.nodes.length;a>r;++r)t.block.push(o.nodes[r]);return t}}},{"./filters":4,"./lexer":6,"./nodes":16,"./utils":25,"character-parser":29,constantinople:30,fs:26,path:27}],24:[function(t,e,i){"use strict";function s(t){return null!=t&&""!==t}function n(t){return(Array.isArray(t)?t.map(n):t&&"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}):[t]).filter(s).join(" ")}function r(t){return a[t]||t}function o(t){var e=String(t).replace(h,r);return e===""+t?t:e}i.merge=function c(t,e){if(1===arguments.length){for(var i=t[0],n=1;n<t.length;n++)i=c(i,t[n]);return i}var r=t["class"],o=e["class"];(r||o)&&(r=r||[],o=o||[],Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]),t["class"]=r.concat(o).filter(s));for(var a in e)"class"!=a&&(t[a]=e[a]);return t},i.joinClasses=n,i.cls=function(t,e){for(var s=[],r=0;r<t.length;r++)e&&e[r]?s.push(i.escape(n([t[r]]))):s.push(n(t[r]));var o=n(s);return o.length?' class="'+o+'"':""},i.style=function(t){return t&&"object"==typeof t?Object.keys(t).map(function(e){return e+":"+t[e]}).join(";"):t},i.attr=function(t,e,s,n){return"style"===t&&(e=i.style(e)),"boolean"==typeof e||null==e?e?" "+(n?t:t+'="'+t+'"'):"":0==t.indexOf("data")&&"string"!=typeof e?(-1!==JSON.stringify(e).indexOf("&")&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&`"),e&&"function"==typeof e.toISOString&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+t+"='"+JSON.stringify(e).replace(/'/g,"'")+"'"):s?(e&&"function"==typeof e.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+t+'="'+i.escape(e)+'"'):(e&&"function"==typeof e.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+t+'="'+e+'"')},i.attrs=function(t,e){var s=[],r=Object.keys(t);if(r.length)for(var o=0;o<r.length;++o){var a=r[o],h=t[a];"class"==a?(h=n(h))&&s.push(" "+a+'="'+h+'"'):s.push(i.attr(a,h,!1,e))}return s.join("")};var a={"&":"&","<":"<",">":">",'"':"""},h=/[&<>"]/g;i.escape=o,i.rethrow=function p(e,i,s,n){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&i||n))throw e.message+=" on line "+s,e;try{n=n||t("fs").readFileSync(i,"utf8")}catch(r){p(e,null,s)}var o=3,a=n.split("\n"),h=Math.max(s-o,0),c=Math.min(a.length,s+o),o=a.slice(h,c).map(function(t,e){var i=e+h+1;return(i==s?" > ":" ")+i+"| "+t}).join("\n");throw e.path=i,e.message=(i||"Jade")+":"+s+"\n"+o+"\n\n"+e.message,e},i.DebugItem=function(t,e){this.lineno=t,this.filename=e}},{fs:26}],25:[function(t,e,i){"use strict";i.merge=function(t,e){for(var i in e)t[i]=e[i];return t},i.stringify=function(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},i.walkAST=function s(t,e,i){switch(e&&e(t),t.type){case"Block":t.nodes.forEach(function(t){s(t,e,i)});break;case"Case":case"Each":case"Mixin":case"Tag":case"When":case"Code":t.block&&s(t.block,e,i);break;case"Attrs":case"BlockComment":case"Comment":case"Doctype":case"Filter":case"Literal":case"MixinBlock":case"Text":break;default:throw new Error("Unexpected node type "+t.type)}i&&i(t)}},{}],26:[function(t,e,i){},{}],27:[function(t,e,i){(function(t){function e(t,e){for(var i=0,s=t.length-1;s>=0;s--){var n=t[s];"."===n?t.splice(s,1):".."===n?(t.splice(s,1),i++):i&&(t.splice(s,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}function s(t,e){if(t.filter)return t.filter(e);for(var i=[],s=0;s<t.length;s++)e(t[s],s,t)&&i.push(t[s]);return i}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,r=function(t){return n.exec(t).slice(1)};i.resolve=function(){for(var i="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var o=r>=0?arguments[r]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(i=o+"/"+i,n="/"===o.charAt(0))}return i=e(s(i.split("/"),function(t){return!!t}),!n).join("/"),(n?"/":"")+i||"."},i.normalize=function(t){var n=i.isAbsolute(t),r="/"===o(t,-1);return t=e(s(t.split("/"),function(t){return!!t}),!n).join("/"),t||n||(t="."),t&&r&&(t+="/"),(n?"/":"")+t},i.isAbsolute=function(t){return"/"===t.charAt(0)},i.join=function(){var t=Array.prototype.slice.call(arguments,0);return i.normalize(s(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},i.relative=function(t,e){function s(t){for(var e=0;e<t.length&&""===t[e];e++);for(var i=t.length-1;i>=0&&""===t[i];i--);return e>i?[]:t.slice(e,i-e+1)}t=i.resolve(t).substr(1),e=i.resolve(e).substr(1);for(var n=s(t.split("/")),r=s(e.split("/")),o=Math.min(n.length,r.length),a=o,h=0;o>h;h++)if(n[h]!==r[h]){a=h;break}for(var c=[],h=a;h<n.length;h++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(t){var e=r(t),i=e[0],s=e[1];return i||s?(s&&(s=s.substr(0,s.length-1)),i+s):"."},i.basename=function(t,e){var i=r(t)[2];return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},i.extname=function(t){return r(t)[3]};var o="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return 0>e&&(e=t.length+e),t.substr(e,i)}}).call(this,t("_process"))},{_process:28}],28:[function(t,e,i){function s(){p=!1,a.length?c=a.concat(c):u=-1,c.length&&n()}function n(){if(!p){var t=setTimeout(s);p=!0;for(var e=c.length;e;){for(a=c,c=[];++u<e;)a[u].run();u=-1,e=c.length}a=null,p=!1,clearTimeout(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var a,h=e.exports={},c=[],p=!1,u=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new r(t,e)),1!==c.length||p||setTimeout(n,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=o,h.addListener=o,h.once=o,h.off=o,h.removeListener=o,h.removeAllListeners=o,h.emit=o,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],29:[function(t,e,i){function s(t,e,s){s=s||{},e=e||i.defaultState();for(var n=s.start||0,r=s.end||t.length,o=n;r>o;){if(e.roundDepth<0||e.curlyDepth<0||e.squareDepth<0)throw new SyntaxError("Mismatched Bracket: "+t[o-1]);i.parseChar(t[o++],e)}return e}function n(t,e){e=e||{};for(var s=e.start||0,n=s,r=i.defaultState();r.roundDepth>=0&&r.curlyDepth>=0&&r.squareDepth>=0;){if(n>=t.length)throw new Error("The end of the string was reached with no closing bracket found.");i.parseChar(t[n++],r)}var o=n-1;return{start:s,end:o,src:t.substring(s,o)}}function r(t,e,s){s=s||{};for(var n=s.includeLineComment||!1,r=s.start||0,o=r,a=i.defaultState();a.isString()||a.regexp||a.blockComment||!n&&a.lineComment||!h(t,e,o);)i.parseChar(t[o++],a);var c=o;return{start:r,end:c,src:t.substring(r,c)}}function o(t,e){if(1!==t.length)throw new Error("Character must be a string of length 1");e=e||i.defaultState(),e.src=e.src||"",e.src+=t;var s=e.blockComment||e.lineComment,n=e.history?e.history[0]:"";return e.regexpStart&&(("/"===t||"*"==t)&&(e.regexp=!1),e.regexpStart=!1),e.lineComment?"\n"===t&&(e.lineComment=!1):e.blockComment?"*"===e.lastChar&&"/"===t&&(e.blockComment=!1):e.singleQuote?"'"!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.singleQuote=!1:e.doubleQuote?'"'!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.doubleQuote=!1:e.regexp?"/"!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.regexp=!1:"/"===n&&"/"===t?(e.history=e.history.substr(1),e.lineComment=!0):"/"===n&&"*"===t?(e.history=e.history.substr(1),e.blockComment=!0):"/"===t&&u(e.history)?(e.regexp=!0,e.regexpStart=!0):"'"===t?e.singleQuote=!0:'"'===t?e.doubleQuote=!0:"("===t?e.roundDepth++:")"===t?e.roundDepth--:"{"===t?e.curlyDepth++:"}"===t?e.curlyDepth--:"["===t?e.squareDepth++:"]"===t&&e.squareDepth--,e.blockComment||e.lineComment||s||(e.history=t+e.history),e.lastChar=t,e}function a(){this.lineComment=!1,this.blockComment=!1,this.singleQuote=!1,this.doubleQuote=!1,this.regexp=!1,this.escaped=!1,this.roundDepth=0,this.curlyDepth=0,this.squareDepth=0,this.history="",this.lastChar=""}function h(t,e,i){return t.substr(i||0,e.length)===e}function c(t){if(!t)return!0;var e=t.charCodeAt(0);switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 33:case 61:return!0;default:return!1}}function p(t){return"if"===t||"in"===t||"do"===t||"var"===t||"for"===t||"new"===t||"try"===t||"let"===t||"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t||"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t||"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t||"default"===t||"finally"===t||"extends"===t||"function"===t||"continue"===t||"debugger"===t||"package"===t||"private"===t||"interface"===t||"instanceof"===t||"implements"===t||"protected"===t||"public"===t||"static"===t||"yield"===t||"let"===t}function u(t){return t=t.replace(/^\s*/,""),")"===t[0]?!1:"}"===t[0]?!0:c(t[0])?!0:/^\w+\b/.test(t)&&p(/^\w+\b/.exec(t)[0].split("").reverse().join(""))?!0:!1}i=e.exports=s,i.parse=s,i.parseMax=n,i.parseUntil=r,i.parseChar=o,i.defaultState=function(){return new a},a.prototype.isString=function(){return this.singleQuote||this.doubleQuote},a.prototype.isComment=function(){return this.lineComment||this.blockComment},a.prototype.isNesting=function(){return this.isString()||this.isComment()||this.regexp||this.roundDepth>0||this.curlyDepth>0||this.squareDepth>0},i.isPunctuator=c,i.isKeyword=p},{}],30:[function(require,module,exports){"use strict";function isConstant(t,e){if(t="("+t+")",lastSRC===t&&lastConstants===e)return lastRes;lastSRC=t,lastConstants=e;try{return isExpression(t),lastRes=0===detect(t).filter(function(t){return!(e&&t.name in e)}).length}catch(i){return lastRes=!1}}function toConstant(t,e){if(!isConstant(t,e))throw new Error(JSON.stringify(t)+" is not constant.");return Function(Object.keys(e||{}).join(","),"return ("+t+")").apply(null,Object.keys(e||{}).map(function(t){return e[t]}))}function isExpression(src){try{return eval('throw "STOP"; (function () { return ('+src+"); })()"),!1}catch(err){return"STOP"===err}}var detect=require("acorn-globals"),lastSRC="(null)",lastRes=!0,lastConstants=void 0;module.exports=isConstant,isConstant.isConstant=isConstant,isConstant.toConstant=toConstant},{"acorn-globals":31}],31:[function(t,e,i){"use strict";function s(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"Program"===t.type}function n(t){return"BlockStatement"===t.type||s(t)}function r(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ArrowFunction"===t.type}function o(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type}function a(t){try{return c.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0,sourceType:"module"})}catch(e){if("SyntaxError"!==e.name)throw e;try{return c.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0})}catch(e){if("SyntaxError"!==e.name)throw e;return c.parse(t,{ecmaVersion:5,allowReturnOutsideFunction:!0})}}}function h(t){var e=[],i="string"==typeof t?i=a(t):t;if(!i||"object"!=typeof i||"Program"!==i.type)throw new TypeError("Source must be either a string of JavaScript or an acorn AST");var h=function(t){var e=t;e.locals=e.locals||{},t.params.forEach(function(t){e.locals[t.name]=!0}),t.id&&(e.locals[t.id.name]=!0)};p.ancestor(i,{VariableDeclaration:function(t,e){for(var i=null,r=e.length-1;r>=0&&null===i;r--)("var"===t.kind?s(e[r]):n(e[r]))&&(i=e[r]);i.locals=i.locals||{},t.declarations.forEach(function(t){i.locals[t.id.name]=!0})},FunctionDeclaration:function(t,e){for(var i=null,n=e.length-2;n>=0&&null===i;n--)s(e[n])&&(i=e[n]);i.locals=i.locals||{},i.locals[t.id.name]=!0,h(t)},Function:h,TryStatement:function(t){t.handler.body.locals=t.handler.body.locals||{},t.handler.body.locals[t.handler.param.name]=!0},ImportDefaultSpecifier:function(t){"Identifier"===t.local.type&&(i.locals=i.locals||{},i.locals[t.local.name]=!0)},ImportSpecifier:function(t){var e=t.local?t.local:t.imported;"Identifier"===e.type&&(i.locals=i.locals||{},i.locals[e.name]=!0)},ImportNamespaceSpecifier:function(t){"Identifier"===t.local.type&&(i.locals=i.locals||{},i.locals[t.local.name]=!0)}}),p.ancestor(i,{Identifier:function(t,i){var s=t.name;if("undefined"!==s){for(var n=0;n<i.length;n++){if("arguments"===s&&r(i[n]))return;if(i[n].locals&&s in i[n].locals)return}t.parents=i,e.push(t)}},ThisExpression:function(t,i){for(var s=0;s<i.length;s++)if(o(i[s]))return;t.parents=i,e.push(t)}});var c={};return e.forEach(function(t){c[t.name]=c[t.name]||[],c[t.name].push(t)}),Object.keys(c).sort().map(function(t){return{name:t,nodes:c[t]}})}var c=t("acorn"),p=t("acorn/dist/walk");p.base.ExportNamedDeclaration=p.base.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},p.base.ImportDefaultSpecifier=p.base.ImportNamespaceSpecifier=function(){},e.exports=h,e.exports.parse=a},{acorn:32,"acorn/dist/walk":33}],32:[function(t,e,i){(function(s){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof s?s:"undefined"!=typeof self?self:this,n.acorn=t()}}(function(){return function e(i,s,n){function r(a,h){if(!s[a]){if(!i[a]){var c="function"==typeof t&&t;if(!h&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=s[a]={exports:{}};i[a][0].call(u.exports,function(t){var e=i[a][1][t];return r(e?e:t)},u,u.exports,e,i,s,n)}return s[a].exports}for(var o="function"==typeof t&&t,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";function s(t,e){var i=o(e,t),s=i.pos,n=i.options.locations&&i.curPosition();return i.nextToken(),i.parseTopLevel(i.options.program||i.startNodeAt(s,n))}function n(t,e,i){var s=o(i,t,e);return s.nextToken(),s.parseExpression()}function r(t,e){return o(e,t)}function o(t,e){return new h(p(t),String(e))}i.parse=s,i.parseExpressionAt=n,i.tokenizer=r,i.__esModule=!0;var a=t("./state"),h=a.Parser,c=t("./options"),p=c.getOptions;t("./parseutil"),t("./statement"),t("./lval"),t("./expression"),i.Parser=a.Parser,i.plugins=a.plugins,i.defaultOptions=c.defaultOptions;var u=t("./location");i.SourceLocation=u.SourceLocation,i.getLineInfo=u.getLineInfo,i.Node=t("./node").Node;var l=t("./tokentype");i.TokenType=l.TokenType,i.tokTypes=l.types;var f=t("./tokencontext");i.TokContext=f.TokContext,i.tokContexts=f.types;var d=t("./identifier");i.isIdentifierChar=d.isIdentifierChar,i.isIdentifierStart=d.isIdentifierStart,i.Token=t("./tokenize").Token;var m=t("./whitespace");i.isNewLine=m.isNewLine,i.lineBreak=m.lineBreak,i.lineBreakG=m.lineBreakG;var y="1.2.2";i.version=y},{"./expression":6,"./identifier":7,"./location":8,"./lval":9,"./node":10,"./options":11,"./parseutil":12,"./state":13,"./statement":14,"./tokencontext":15,"./tokenize":16,"./tokentype":17,"./whitespace":19}],2:[function(t,e,i){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},{}],3:[function(t,e,i){function s(){if(!a){a=!0;for(var t,e=o.length;e;){t=o,o=[];for(var i=-1;++i<e;)t[i]();e=o.length}a=!1}}function n(){}var r=e.exports={},o=[],a=!1;r.nextTick=function(t){o.push(t),a||setTimeout(s,0)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],4:[function(t,e,i){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],5:[function(t,e,i){(function(e,s){function n(t,e){var s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),m(e)?s.showHidden=e:e&&i._extend(s,e),k(s.showHidden)&&(s.showHidden=!1),k(s.depth)&&(s.depth=2),k(s.colors)&&(s.colors=!1),k(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=r),h(s,t,s.depth)}function r(t,e){var i=n.styles[e];return i?"["+n.colors[i][0]+"m"+t+"["+n.colors[i][1]+"m":t}function o(t,e){return t}function a(t){var e={};return t.forEach(function(t,i){e[t]=!0}),e}function h(t,e,s){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==i.inspect&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(s,t);return b(n)||(n=h(t,n,s)),n}var r=c(t,e);if(r)return r;var o=Object.keys(e),m=a(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),S(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(e);if(0===o.length){if(T(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(w(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(C(e))return t.stylize(Date.prototype.toString.call(e),"date");if(S(e))return p(e)}var x="",v=!1,g=["{","}"];if(d(e)&&(v=!0,g=["[","]"]),T(e)){var k=e.name?": "+e.name:"";x=" [Function"+k+"]"}if(w(e)&&(x=" "+RegExp.prototype.toString.call(e)),C(e)&&(x=" "+Date.prototype.toUTCString.call(e)),S(e)&&(x=" "+p(e)),0===o.length&&(!v||0==e.length))return g[0]+x+g[1];if(0>s)return w(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var E;return E=v?u(t,e,s,m,o):o.map(function(i){return l(t,e,s,m,i,v)}),t.seen.pop(),f(E,x,g)}function c(t,e){if(k(e))return t.stylize("undefined","undefined");if(b(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function u(t,e,i,s,n){for(var r=[],o=0,a=e.length;a>o;++o)I(e,String(o))?r.push(l(t,e,i,s,String(o),!0)):r.push("");return n.forEach(function(n){n.match(/^\d+$/)||r.push(l(t,e,i,s,n,!0))}),r}function l(t,e,i,s,n,r){var o,a,c;if(c=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]},c.get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),I(s,n)||(o="["+n+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(i)?h(t,c.value,null):h(t,c.value,i-1),a.indexOf("\n")>-1&&(a=r?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),k(o)){if(r&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t,e,i){var s=0,n=t.reduce(function(t,e){return s++,e.indexOf("\n")>=0&&s++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?i[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+i[1]:i[0]+e+" "+t.join(", ")+" "+i[1]}function d(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function x(t){return null==t}function v(t){return"number"==typeof t}function b(t){return"string"==typeof t}function g(t){return"symbol"==typeof t}function k(t){return void 0===t}function w(t){return E(t)&&"[object RegExp]"===_(t)}function E(t){return"object"==typeof t&&null!==t}function C(t){return E(t)&&"[object Date]"===_(t)}function S(t){return E(t)&&("[object Error]"===_(t)||t instanceof Error)}function T(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function _(t){return Object.prototype.toString.call(t)}function N(t){return 10>t?"0"+t.toString(10):t.toString(10)}function j(){var t=new Date,e=[N(t.getHours()),N(t.getMinutes()),N(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var L=/%[sdj%]/g;i.format=function(t){if(!b(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(n(arguments[i]));return e.join(" ")}for(var i=1,s=arguments,r=s.length,o=String(t).replace(L,function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":
|
||
return String(s[i++]);case"%d":return Number(s[i++]);case"%j":try{return JSON.stringify(s[i++])}catch(e){return"[Circular]"}default:return t}}),a=s[i];r>i;a=s[++i])o+=y(a)||!E(a)?" "+a:" "+n(a);return o},i.deprecate=function(t,n){function r(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return t.apply(this,arguments)}if(k(s.process))return function(){return i.deprecate(t,n).apply(this,arguments)};if(e.noDeprecation===!0)return t;var o=!1;return r};var B,O={};i.debuglog=function(t){if(k(B)&&(B=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!O[t])if(new RegExp("\\b"+t+"\\b","i").test(B)){var s=e.pid;O[t]=function(){var e=i.format.apply(i,arguments);console.error("%s %d: %s",t,s,e)}}else O[t]=function(){};return O[t]},i.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=d,i.isBoolean=m,i.isNull=y,i.isNullOrUndefined=x,i.isNumber=v,i.isString=b,i.isSymbol=g,i.isUndefined=k,i.isRegExp=w,i.isObject=E,i.isDate=C,i.isError=S,i.isFunction=T,i.isPrimitive=A,i.isBuffer=t("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i.log=function(){console.log("%s - %s",j(),i.format.apply(i,arguments))},i.inherits=t("inherits"),i._extend=function(t,e){if(!e||!E(e))return t;for(var i=Object.keys(e),s=i.length;s--;)t[i[s]]=e[i[s]];return t}}).call(this,t("_process"),"undefined"!=typeof s?s:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":4,_process:3,inherits:2}],6:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./identifier").reservedWords,o=t("./util").has,a=n.prototype;a.checkPropClash=function(t,e){if(!(this.options.ecmaVersion>=6)){var i=t.key,s=void 0;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var n=t.kind||"init",r=void 0;if(o(e,s)){r=e[s];var a="init"!==n;((this.strict||a)&&r[n]||!(a^r.init))&&this.raise(i.start,"Redefinition of property")}else r=e[s]={init:!1,get:!1,set:!1};r[n]=!0}},a.parseExpression=function(t,e){var i=this.start,n=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===s.comma){var o=this.startNodeAt(i,n);for(o.expressions=[r];this.eat(s.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return r},a.parseMaybeAssign=function(t,e,i){if(this.type==s._yield&&this.inGenerator)return this.parseYield();var n=void 0;e?n=!1:(e={start:0},n=!0);var r=this.start,o=this.startLoc;(this.type==s.parenL||this.type==s.name)&&(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(t,e);if(i&&(a=i.call(this,a,r,o)),this.type.isAssign){var h=this.startNodeAt(r,o);return h.operator=this.value,h.left=this.type===s.eq?this.toAssignable(a):a,e.start=0,this.checkLVal(a),this.next(),h.right=this.parseMaybeAssign(t),this.finishNode(h,"AssignmentExpression")}return n&&e.start&&this.unexpected(e.start),a},a.parseMaybeConditional=function(t,e){var i=this.start,n=this.startLoc,r=this.parseExprOps(t,e);if(e&&e.start)return r;if(this.eat(s.question)){var o=this.startNodeAt(i,n);return o.test=r,o.consequent=this.parseMaybeAssign(),this.expect(s.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return r},a.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,n=this.parseMaybeUnary(e);return e&&e.start?n:this.parseExprOp(n,i,s,-1,t)},a.parseExprOp=function(t,e,i,n,r){var o=this.type.binop;if(Array.isArray(e)&&this.options.locations&&void 0===r&&(r=n,n=i,i=e[1],e=e[0]),null!=o&&(!r||this.type!==s._in)&&o>n){var a=this.startNodeAt(e,i);a.left=t,a.operator=this.value;var h=this.type;this.next();var c=this.start,p=this.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),c,p,o,r),this.finishNode(a,h===s.logicalOR||h===s.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,e,i,n,r)}return t},a.parseMaybeUnary=function(t){if(this.type.prefix){var e=this.startNode(),i=this.type===s.incDec;return e.operator=this.value,e.prefix=!0,this.next(),e.argument=this.parseMaybeUnary(),t&&t.start&&this.unexpected(t.start),i?this.checkLVal(e.argument):this.strict&&"delete"===e.operator&&"Identifier"===e.argument.type&&this.raise(e.start,"Deleting local variable in strict mode"),this.finishNode(e,i?"UpdateExpression":"UnaryExpression")}var n=this.start,r=this.startLoc,o=this.parseExprSubscripts(t);if(t&&t.start)return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var e=this.startNodeAt(n,r);e.operator=this.value,e.prefix=!1,e.argument=o,this.checkLVal(o),this.next(),o=this.finishNode(e,"UpdateExpression")}return o},a.parseExprSubscripts=function(t){var e=this.start,i=this.startLoc,s=this.parseExprAtom(t);return t&&t.start?s:this.parseSubscripts(s,e,i)},a.parseSubscripts=function(t,e,i,n){for(Array.isArray(e)&&this.options.locations&&void 0===n&&(n=i,i=e[1],e=e[0]);;)if(this.eat(s.dot)){var r=this.startNodeAt(e,i);r.object=t,r.property=this.parseIdent(!0),r.computed=!1,t=this.finishNode(r,"MemberExpression")}else if(this.eat(s.bracketL)){var r=this.startNodeAt(e,i);r.object=t,r.property=this.parseExpression(),r.computed=!0,this.expect(s.bracketR),t=this.finishNode(r,"MemberExpression")}else if(!n&&this.eat(s.parenL)){var r=this.startNodeAt(e,i);r.callee=t,r.arguments=this.parseExprList(s.parenR,!1),t=this.finishNode(r,"CallExpression")}else{if(this.type!==s.backQuote)return t;var r=this.startNodeAt(e,i);r.tag=t,r.quasi=this.parseTemplate(),t=this.finishNode(r,"TaggedTemplateExpression")}},a.parseExprAtom=function(t){var e=void 0,i=this.potentialArrowAt==this.start;switch(this.type){case s._this:case s._super:var n=this.type===s._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,n);case s._yield:this.inGenerator&&this.unexpected();case s.name:var r=this.start,o=this.startLoc,a=this.parseIdent(this.type!==s.name);return i&&!this.canInsertSemicolon()&&this.eat(s.arrow)?this.parseArrowExpression(this.startNodeAt(r,o),[a]):a;case s.regexp:var h=this.value;return e=this.parseLiteral(h.value),e.regex={pattern:h.pattern,flags:h.flags},e;case s.num:case s.string:return this.parseLiteral(this.value);case s._null:case s._true:case s._false:return e=this.startNode(),e.value=this.type===s._null?null:this.type===s._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case s.parenL:return this.parseParenAndDistinguishExpression(i);case s.bracketL:return e=this.startNode(),this.next(),this.options.ecmaVersion>=7&&this.type===s._for?this.parseComprehension(e,!1):(e.elements=this.parseExprList(s.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression"));case s.braceL:return this.parseObj(!1,t);case s._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case s._class:return this.parseClass(this.startNode(),!1);case s._new:return this.parseNew();case s.backQuote:return this.parseTemplate();default:this.unexpected()}},a.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},a.parseParenExpression=function(){this.expect(s.parenL);var t=this.parseExpression();return this.expect(s.parenR),t},a.parseParenAndDistinguishExpression=function(t){var e=this.start,i=this.startLoc,n=void 0;if(this.options.ecmaVersion>=6){if(this.next(),this.options.ecmaVersion>=7&&this.type===s._for)return this.parseComprehension(this.startNodeAt(e,i),!0);for(var r=this.start,o=this.startLoc,a=[],h=!0,c={start:0},p=void 0,u=void 0;this.type!==s.parenR;){if(h?h=!1:this.expect(s.comma),this.type===s.ellipsis){p=this.start,a.push(this.parseParenItem(this.parseRest()));break}this.type!==s.parenL||u||(u=this.start),a.push(this.parseMaybeAssign(!1,c,this.parseParenItem))}var l=this.start,f=this.startLoc;if(this.expect(s.parenR),t&&!this.canInsertSemicolon()&&this.eat(s.arrow))return u&&this.unexpected(u),this.parseParenArrowList(e,i,a);a.length||this.unexpected(this.lastTokStart),p&&this.unexpected(p),c.start&&this.unexpected(c.start),a.length>1?(n=this.startNodeAt(r,o),n.expressions=a,this.finishNodeAt(n,"SequenceExpression",l,f)):n=a[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(e,i);return d.expression=n,this.finishNode(d,"ParenthesizedExpression")}return n},a.parseParenItem=function(t){return t},a.parseParenArrowList=function(t,e,i){return this.parseArrowExpression(this.startNodeAt(t,e),i)};var h=[];a.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(s.dot))return t.meta=e,t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raise(t.property.start,"The only valid meta property for new is new.target"),this.finishNode(t,"MetaProperty");var i=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0),this.eat(s.parenL)?t.arguments=this.parseExprList(s.parenR,!1):t.arguments=h,this.finishNode(t,"NewExpression")},a.parseTemplateElement=function(){var t=this.startNode();return t.value={raw:this.input.slice(this.start,this.end),cooked:this.value},this.next(),t.tail=this.type===s.backQuote,this.finishNode(t,"TemplateElement")},a.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.expect(s.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(s.braceR),t.quasis.push(e=this.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},a.parseObj=function(t,e){var i=this.startNode(),n=!0,r={};for(i.properties=[],this.next();!this.eat(s.braceR);){if(n)n=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var o=this.startNode(),a=void 0,h=void 0,c=void 0;this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(h=this.start,c=this.startLoc),t||(a=this.eat(s.star))),this.parsePropertyName(o),this.parsePropertyValue(o,t,a,h,c,e),this.checkPropClash(o,r),i.properties.push(this.finishNode(o,"Property"))}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},a.parsePropertyValue=function(t,e,i,n,o,a){this.eat(s.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===s.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i)):this.options.ecmaVersion>=5&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&this.type!=s.comma&&this.type!=s.braceR?((i||e)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1)):this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(t.kind="init",e?((this.isKeyword(t.key.name)||this.strict&&(r.strictBind(t.key.name)||r.strict(t.key.name))||!this.options.allowReserved&&this.isReservedWord(t.key.name))&&this.raise(t.key.start,"Binding "+t.key.name),t.value=this.parseMaybeDefault(n,o,t.key)):this.type===s.eq&&a?(a.start||(a.start=this.start),t.value=this.parseMaybeDefault(n,o,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()},a.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(s.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(s.bracketR),t.key;t.computed=!1}return t.key=this.type===s.num||this.type===s.string?this.parseExprAtom():this.parseIdent(!0)},a.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1)},a.parseMethod=function(t){var e=this.startNode();this.initFunction(e),this.expect(s.parenL),e.params=this.parseBindingList(s.parenR,!1,!1);var i=void 0;return this.options.ecmaVersion>=6?(e.generator=t,i=!0):i=!1,this.parseFunctionBody(e,i),this.finishNode(e,"FunctionExpression")},a.parseArrowExpression=function(t,e){return this.initFunction(t),t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.finishNode(t,"ArrowFunctionExpression")},a.parseFunctionBody=function(t,e){var i=e&&this.type!==s.braceL;if(i)t.body=this.parseMaybeAssign(),t.expression=!0;else{var n=this.inFunction,r=this.inGenerator,o=this.labels;this.inFunction=!0,this.inGenerator=t.generator,this.labels=[],t.body=this.parseBlock(!0),t.expression=!1,this.inFunction=n,this.inGenerator=r,this.labels=o}if(this.strict||!i&&t.body.body.length&&this.isUseStrict(t.body.body[0])){var a={},h=this.strict;this.strict=!0,t.id&&this.checkLVal(t.id,!0);for(var c=0;c<t.params.length;c++)this.checkLVal(t.params[c],!0,a);this.strict=h}},a.parseExprList=function(t,e,i,n){for(var r=[],o=!0;!this.eat(t);){if(o)o=!1;else if(this.expect(s.comma),e&&this.afterTrailingComma(t))break;i&&this.type===s.comma?r.push(null):this.type===s.ellipsis?r.push(this.parseSpread(n)):r.push(this.parseMaybeAssign(!1,n))}return r},a.parseIdent=function(t){var e=this.startNode();return t&&"never"==this.options.allowReserved&&(t=!1),this.type===s.name?(!t&&(!this.options.allowReserved&&this.isReservedWord(this.value)||this.strict&&r.strict(this.value)&&(this.options.ecmaVersion>=6||-1==this.input.slice(this.start,this.end).indexOf("\\")))&&this.raise(this.start,"The keyword '"+this.value+"' is reserved"),e.name=this.value):t&&this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"Identifier")},a.parseYield=function(){var t=this.startNode();return this.next(),this.type==s.semi||this.canInsertSemicolon()||this.type!=s.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(s.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},a.parseComprehension=function(t,e){for(t.blocks=[];this.type===s._for;){var i=this.startNode();this.next(),this.expect(s.parenL),i.left=this.parseBindingAtom(),this.checkLVal(i.left,!0),this.expectContextual("of"),i.right=this.parseExpression(),this.expect(s.parenR),t.blocks.push(this.finishNode(i,"ComprehensionBlock"))}return t.filter=this.eat(s._if)?this.parseParenExpression():null,t.body=this.parseExpression(),this.expect(e?s.parenR:s.bracketR),t.generator=e,this.finishNode(t,"ComprehensionExpression")}},{"./identifier":7,"./state":13,"./tokentype":17,"./util":18}],7:[function(t,e,i){"use strict";function s(t){function e(t){if(1==t.length)return i+="return str === "+JSON.stringify(t[0])+";";i+="switch(str){";for(var e=0;e<t.length;++e)i+="case "+JSON.stringify(t[e])+":";i+="return true}return false;"}t=t.split(" ");var i="",s=[];t:for(var n=0;n<t.length;++n){for(var r=0;r<s.length;++r)if(s[r][0].length==t[n].length){s[r].push(t[n]);continue t}s.push([t[n]])}if(s.length>3){s.sort(function(t,e){return e.length-t.length}),i+="switch(str.length){";for(var n=0;n<s.length;++n){var o=s[n];i+="case "+o[0].length+":",e(o)}i+="}"}else e(t);return new Function("str",i)}function n(t,e){for(var i=65536,s=0;s<e.length;s+=2){if(i+=e[s],i>t)return!1;if(i+=e[s+1],i>=t)return!0}}function r(t,e){return 65>t?36===t:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&l.test(String.fromCharCode(t)):e===!1?!1:n(t,d)}function o(t,e){return 48>t?36===t:58>t?!0:65>t?!1:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&f.test(String.fromCharCode(t)):e===!1?!1:n(t,d)||n(t,m)}i.isIdentifierStart=r,i.isIdentifierChar=o,i.__esModule=!0;var a={3:s("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),5:s("class enum extends super const export import"),6:s("enum await"),strict:s("implements interface let package private protected public static yield"),strictBind:s("eval arguments")};i.reservedWords=a;var h="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:s(h),6:s(h+" let const class extends export import yield super")};i.keywords=c;var p="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",l=new RegExp("["+p+"]"),f=new RegExp("["+p+u+"]");p=u=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],m=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239]},{}],8:[function(t,e,i){"use strict";function s(t,e){for(var i=1,s=0;;){o.lastIndex=s;var n=o.exec(t);if(!(n&&n.index<e))return new a(i,e-s);++i,s=n.index+n[0].length}}var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.getLineInfo=s,i.__esModule=!0;var r=t("./state").Parser,o=t("./whitespace").lineBreakG,a=(t("util").deprecate,i.Position=function(){function t(e,i){n(this,t),this.line=e,this.column=i}return t.prototype.offset=function(e){return new t(this.line,this.column+e)},t}()),h=(i.SourceLocation=function c(t,e,i){n(this,c),this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)},r.prototype);h.raise=function(t,e){var i=s(this.input,t);e+=" ("+i.line+":"+i.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=i,n.raisedAt=this.pos,n},h.curPosition=function(){return new a(this.curLine,this.pos-this.lineStart)},h.markPosition=function(){return this.options.locations?[this.start,this.startLoc]:this.start}},{"./state":13,"./whitespace":19,util:5}],9:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./identifier").reservedWords,o=t("./util").has,a=n.prototype;a.toAssignable=function(t,e){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var i=0;i<t.properties.length;i++){var s=t.properties[i];"init"!==s.kind&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,e)}break;case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,e);break;case"AssignmentExpression":"="===t.operator?t.type="AssignmentPattern":this.raise(t.left.end,"Only '=' operator can be used for specifying default value.");break;case"ParenthesizedExpression":t.expression=this.toAssignable(t.expression,e);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}return t},a.toAssignableList=function(t,e){var i=t.length;if(i){var s=t[i-1];if(s&&"RestElement"==s.type)--i;else if(s&&"SpreadElement"==s.type){s.type="RestElement";var n=s.argument;this.toAssignable(n,e),"Identifier"!==n.type&&"MemberExpression"!==n.type&&"ArrayPattern"!==n.type&&this.unexpected(n.start),--i}}for(var r=0;i>r;r++){var o=t[r];o&&this.toAssignable(o,e)}return t},a.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(t),this.finishNode(e,"SpreadElement")},a.parseRest=function(){var t=this.startNode();return this.next(),t.argument=this.type===s.name||this.type===s.bracketL?this.parseBindingAtom():this.unexpected(),this.finishNode(t,"RestElement")},a.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case s.name:return this.parseIdent();case s.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(s.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case s.braceL:return this.parseObj(!0);default:this.unexpected()}},a.parseBindingList=function(t,e,i){for(var n=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(s.comma),e&&this.type===s.comma)n.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===s.ellipsis){var o=this.parseRest();this.parseBindingListItem(o),n.push(o),this.expect(t);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}return n},a.parseBindingListItem=function(t){return t},a.parseMaybeDefault=function(t,e,i){if(Array.isArray(t)&&this.options.locations&&void 0===noCalls&&(i=e,e=t[1],t=t[0]),i=i||this.parseBindingAtom(),!this.eat(s.eq))return i;var n=this.startNodeAt(t,e);return n.operator="=",n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},a.checkLVal=function(t,e,i){switch(t.type){case"Identifier":this.strict&&(r.strictBind(t.name)||r.strict(t.name))&&this.raise(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),i&&(o(i,t.name)&&this.raise(t.start,"Argument name clash in strict mode"),i[t.name]=!0);break;case"MemberExpression":e&&this.raise(t.start,(e?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var s=0;s<t.properties.length;s++)this.checkLVal(t.properties[s].value,e,i);break;case"ArrayPattern":for(var s=0;s<t.elements.length;s++){var n=t.elements[s];n&&this.checkLVal(n,e,i)}break;case"AssignmentPattern":this.checkLVal(t.left,e,i);break;case"RestElement":this.checkLVal(t.argument,e,i);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,i);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}}},{"./identifier":7,"./state":13,"./tokentype":17,"./util":18}],10:[function(t,e,i){"use strict";var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var n=t("./state").Parser,r=t("./location").SourceLocation,o=n.prototype,a=i.Node=function h(){s(this,h)};o.startNode=function(){var t=new a;return t.start=this.start,this.options.locations&&(t.loc=new r(this,this.startLoc)),this.options.directSourceFile&&(t.sourceFile=this.options.directSourceFile),this.options.ranges&&(t.range=[this.start,0]),t},o.startNodeAt=function(t,e){var i=new a;return Array.isArray(t)&&this.options.locations&&void 0===e&&(e=t[1],t=t[0]),i.start=t,this.options.locations&&(i.loc=new r(this,e)),this.options.directSourceFile&&(i.sourceFile=this.options.directSourceFile),this.options.ranges&&(i.range=[t,0]),i},o.finishNode=function(t,e){return t.type=e,t.end=this.lastTokEnd,this.options.locations&&(t.loc.end=this.lastTokEndLoc),this.options.ranges&&(t.range[1]=this.lastTokEnd),t},o.finishNodeAt=function(t,e,i,s){return t.type=e,Array.isArray(i)&&this.options.locations&&void 0===s&&(s=i[1],i=i[0]),t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}},{"./location":8,"./state":13}],11:[function(t,e,i){"use strict";function s(t){var e={};for(var i in c)e[i]=t&&o(t,i)?t[i]:c[i];return a(e.onToken)&&!function(){var t=e.onToken;e.onToken=function(e){return t.push(e)}}(),a(e.onComment)&&(e.onComment=n(e,e.onComment)),e}function n(t,e){return function(i,s,n,r,o,a){var c={type:i?"Block":"Line",value:s,start:n,end:r};t.locations&&(c.loc=new h(this,o,a)),t.ranges&&(c.range=[n,r]),e.push(c)}}i.getOptions=s,i.__esModule=!0;var r=t("./util"),o=r.has,a=r.isArray,h=t("./location").SourceLocation,c={ecmaVersion:5,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:!0,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}};i.defaultOptions=c},{"./location":8,"./util":18}],12:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./whitespace").lineBreak,o=n.prototype;o.isUseStrict=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value},o.eat=function(t){return this.type===t?(this.next(),!0):!1},o.isContextual=function(t){return this.type===s.name&&this.value===t},o.eatContextual=function(t){return this.value===t&&this.eat(s.name)},o.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},o.canInsertSemicolon=function(){return this.type===s.eof||this.type===s.braceR||r.test(this.input.slice(this.lastTokEnd,this.start))},o.insertSemicolon=function(){return this.canInsertSemicolon()?(this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0):void 0},o.semicolon=function(){this.eat(s.semi)||this.insertSemicolon()||this.unexpected()},o.afterTrailingComma=function(t){return this.type==t?(this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),this.next(),!0):void 0},o.expect=function(t){this.eat(t)||this.unexpected()},o.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")}},{"./state":13,"./tokentype":17,"./whitespace":19}],13:[function(t,e,i){"use strict";function s(t,e,i){this.options=t,this.sourceFile=this.options.sourceFile||null,this.isKeyword=o[this.options.ecmaVersion>=6?6:5],this.isReservedWord=r[this.options.ecmaVersion],this.input=e,this.loadPlugins(this.options.plugins),i?(this.pos=i,this.lineStart=Math.max(0,this.input.lastIndexOf("\n",i)),this.curLine=this.input.slice(0,this.lineStart).split(h).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=null,this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.strict=this.inModule="module"===this.options.sourceType,this.potentialArrowAt=-1,this.inFunction=this.inGenerator=!1,this.labels=[],0===this.pos&&this.options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)}i.Parser=s,i.__esModule=!0;var n=t("./identifier"),r=n.reservedWords,o=n.keywords,a=t("./tokentype").types,h=t("./whitespace").lineBreak;s.prototype.extend=function(t,e){this[t]=e(this[t])};var c={};i.plugins=c,s.prototype.loadPlugins=function(t){for(var e in t){var s=i.plugins[e];if(!s)throw new Error("Plugin '"+e+"' not found");s(this,t[e])}}},{"./identifier":7,"./tokentype":17,"./whitespace":19}],14:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./whitespace").lineBreak,o=n.prototype;o.parseTopLevel=function(t){var e=!0;for(t.body||(t.body=[]);this.type!==s.eof;){var i=this.parseStatement(!0,!0);t.body.push(i),e&&this.isUseStrict(i)&&this.setStrict(!0),e=!1}return this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var a={kind:"loop"},h={kind:"switch"};o.parseStatement=function(t,e){var i=this.type,n=this.startNode();switch(i){case s._break:case s._continue:return this.parseBreakContinueStatement(n,i.keyword);case s._debugger:return this.parseDebuggerStatement(n);case s._do:return this.parseDoStatement(n);case s._for:return this.parseForStatement(n);case s._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n);case s._class:return t||this.unexpected(),this.parseClass(n,!0);case s._if:return this.parseIfStatement(n);case s._return:return this.parseReturnStatement(n);case s._switch:return this.parseSwitchStatement(n);case s._throw:return this.parseThrowStatement(n);case s._try:return this.parseTryStatement(n);case s._let:case s._const:t||this.unexpected();case s._var:return this.parseVarStatement(n,i);case s._while:return this.parseWhileStatement(n);case s._with:return this.parseWithStatement(n);case s.braceL:return this.parseBlock();case s.semi:return this.parseEmptyStatement(n);case s._export:case s._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===s._import?this.parseImport(n):this.parseExport(n);default:var r=this.value,o=this.parseExpression();return i===s.name&&"Identifier"===o.type&&this.eat(s.colon)?this.parseLabeledStatement(n,r,o):this.parseExpressionStatement(n,o)}},o.parseBreakContinueStatement=function(t,e){var i="break"==e;this.next(),this.eat(s.semi)||this.insertSemicolon()?t.label=null:this.type!==s.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(t.label&&i)break}}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},o.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},o.parseDoStatement=function(t){return this.next(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.expect(s._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(s.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},o.parseForStatement=function(t){if(this.next(),this.labels.push(a),this.expect(s.parenL),this.type===s.semi)return this.parseFor(t,null);if(this.type===s._var||this.type===s._let||this.type===s._const){var e=this.startNode(),i=this.type;return this.next(),this.parseVar(e,!0,i),this.finishNode(e,"VariableDeclaration"),!(this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==e.declarations.length||i!==s._var&&e.declarations[0].init?this.parseFor(t,e):this.parseForIn(t,e)}var n={start:0},r=this.parseExpression(!0,n);return this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.toAssignable(r),this.checkLVal(r),this.parseForIn(t,r)):(n.start&&this.unexpected(n.start),this.parseFor(t,r))},o.parseFunctionStatement=function(t){return this.next(),this.parseFunction(t,!0)},o.parseIfStatement=function(t){
|
||
return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!1),t.alternate=this.eat(s._else)?this.parseStatement(!1):null,this.finishNode(t,"IfStatement")},o.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(s.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},o.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(s.braceL),this.labels.push(h);for(var e,i;this.type!=s.braceR;)if(this.type===s._case||this.type===s._default){var n=this.type===s._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raise(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(s.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},o.parseThrowStatement=function(t){return this.next(),r.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var c=[];o.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===s._catch){var e=this.startNode();this.next(),this.expect(s.parenL),e.param=this.parseBindingAtom(),this.checkLVal(e.param,!0),this.expect(s.parenR),e.guard=null,e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.guardedHandlers=c,t.finalizer=this.eat(s._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},o.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},o.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},o.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},o.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},o.parseLabeledStatement=function(t,e,i){for(var n=0;n<this.labels.length;++n)this.labels[n].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");var r=this.type.isLoop?"loop":this.type===s._switch?"switch":null;return this.labels.push({name:e,kind:r}),t.body=this.parseStatement(!0),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},o.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},o.parseBlock=function(t){var e=this.startNode(),i=!0,n=void 0;for(e.body=[],this.expect(s.braceL);!this.eat(s.braceR);){var r=this.parseStatement(!0);e.body.push(r),i&&t&&this.isUseStrict(r)&&(n=this.strict,this.setStrict(this.strict=!0)),i=!1}return n===!1&&this.setStrict(!1),this.finishNode(e,"BlockStatement")},o.parseFor=function(t,e){return t.init=e,this.expect(s.semi),t.test=this.type===s.semi?null:this.parseExpression(),this.expect(s.semi),t.update=this.type===s.parenR?null:this.parseExpression(),this.expect(s.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},o.parseForIn=function(t,e){var i=this.type===s._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.expect(s.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,i)},o.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i.keyword;;){var n=this.startNode();if(this.parseVarId(n),this.eat(s.eq)?n.init=this.parseMaybeAssign(e):i!==s._const||this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==n.id.type||e&&(this.type===s._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(s.comma))break}return t},o.parseVarId=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0)},o.parseFunction=function(t,e,i){return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(s.star)),(e||this.type===s.name)&&(t.id=this.parseIdent()),this.parseFunctionParams(t),this.parseFunctionBody(t,i),this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},o.parseFunctionParams=function(t){this.expect(s.parenL),t.params=this.parseBindingList(s.parenR,!1,!1)},o.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var i=this.startNode(),n=!1;for(i.body=[],this.expect(s.braceL);!this.eat(s.braceR);)if(!this.eat(s.semi)){var r=this.startNode(),o=this.eat(s.star),a=this.type===s.name&&"static"===this.value;if(this.parsePropertyName(r),r["static"]=a&&this.type!==s.parenL,r["static"]&&(o&&this.unexpected(),o=this.eat(s.star),this.parsePropertyName(r)),r.kind="method",!r.computed){var h=r.key,c=!1;o||"Identifier"!==h.type||this.type===s.parenL||"get"!==h.name&&"set"!==h.name||(c=!0,r.kind=h.name,h=this.parsePropertyName(r)),!r["static"]&&("Identifier"===h.type&&"constructor"===h.name||"Literal"===h.type&&"constructor"===h.value)&&(n&&this.raise(h.start,"Duplicate constructor in the same class"),c&&this.raise(h.start,"Constructor can't have get/set modifier"),o&&this.raise(h.start,"Constructor can't be a generator"),r.kind="constructor",n=!0)}this.parseClassMethod(i,r,o)}return t.body=this.finishNode(i,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},o.parseClassMethod=function(t,e,i){e.value=this.parseMethod(i),t.body.push(this.finishNode(e,"MethodDefinition"))},o.parseClassId=function(t,e){t.id=this.type===s.name?this.parseIdent():e?this.unexpected():null},o.parseClassSuper=function(t){t.superClass=this.eat(s._extends)?this.parseExprSubscripts():null},o.parseExport=function(t){if(this.next(),this.eat(s.star))return this.expectContextual("from"),t.source=this.type===s.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(s._default)){var e=this.parseMaybeAssign(),i=!0;return("FunctionExpression"==e.type||"ClassExpression"==e.type)&&(i=!1,e.id&&(e.type="FunctionExpression"==e.type?"FunctionDeclaration":"ClassDeclaration")),t.declaration=e,i&&this.semicolon(),this.finishNode(t,"ExportDefaultDeclaration")}return this.shouldParseExportStatement()?(t.declaration=this.parseStatement(!0),t.specifiers=[],t.source=null):(t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.eatContextual("from")?t.source=this.type===s.string?this.parseExprAtom():this.unexpected():t.source=null,this.semicolon()),this.finishNode(t,"ExportNamedDeclaration")},o.shouldParseExportStatement=function(){return this.type.keyword},o.parseExportSpecifiers=function(){var t=[],e=!0;for(this.expect(s.braceL);!this.eat(s.braceR);){if(e)e=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var i=this.startNode();i.local=this.parseIdent(this.type===s._default),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,t.push(this.finishNode(i,"ExportSpecifier"))}return t},o.parseImport=function(t){return this.next(),this.type===s.string?(t.specifiers=c,t.source=this.parseExprAtom(),t.kind=""):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===s.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},o.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===s.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(s.comma))return t}if(this.type===s.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportNamespaceSpecifier")),t}for(this.expect(s.braceL);!this.eat(s.braceR);){if(e)e=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),i.local=this.eatContextual("as")?this.parseIdent():i.imported,this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportSpecifier"))}return t}},{"./state":13,"./tokentype":17,"./whitespace":19}],15:[function(t,e,i){"use strict";var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var n=t("./state").Parser,r=t("./tokentype").types,o=t("./whitespace").lineBreak,a=i.TokContext=function p(t,e,i,n){s(this,p),this.token=t,this.isExpr=e,this.preserveSpace=i,this.override=n},h={b_stat:new a("{",!1),b_expr:new a("{",!0),b_tmpl:new a("${",!0),p_stat:new a("(",!1),p_expr:new a("(",!0),q_tmpl:new a("`",!0,!0,function(t){return t.readTmplToken()}),f_expr:new a("function",!0)};i.types=h;var c=n.prototype;c.initialContext=function(){return[h.b_stat]},c.braceIsBlock=function(t){var e=void 0;return t===r.colon&&"{"==(e=this.curContext()).token?!e.isExpr:t===r._return?o.test(this.input.slice(this.lastTokEnd,this.start)):t===r._else||t===r.semi||t===r.eof?!0:t==r.braceL?this.curContext()===h.b_stat:!this.exprAllowed},c.updateContext=function(t){var e=void 0,i=this.type;i.keyword&&t==r.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},r.parenR.updateContext=r.braceR.updateContext=function(){if(1==this.context.length)return void(this.exprAllowed=!0);var t=this.context.pop();t===h.b_stat&&this.curContext()===h.f_expr?(this.context.pop(),this.exprAllowed=!1):t===h.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!t.isExpr},r.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?h.b_stat:h.b_expr),this.exprAllowed=!0},r.dollarBraceL.updateContext=function(){this.context.push(h.b_tmpl),this.exprAllowed=!0},r.parenL.updateContext=function(t){var e=t===r._if||t===r._for||t===r._with||t===r._while;this.context.push(e?h.p_stat:h.p_expr),this.exprAllowed=!0},r.incDec.updateContext=function(){},r._function.updateContext=function(){this.curContext()!==h.b_stat&&this.context.push(h.f_expr),this.exprAllowed=!1},r.backQuote.updateContext=function(){this.curContext()===h.q_tmpl?this.context.pop():this.context.push(h.q_tmpl),this.exprAllowed=!1}},{"./state":13,"./tokentype":17,"./whitespace":19}],16:[function(t,e,i){"use strict";function s(t){return 65535>=t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var r=t("./identifier"),o=r.isIdentifierStart,a=r.isIdentifierChar,h=t("./tokentype"),c=h.types,p=h.keywords,u=t("./state").Parser,l=t("./location").SourceLocation,f=t("./whitespace"),d=f.lineBreak,m=f.lineBreakG,y=f.isNewLine,x=f.nonASCIIwhitespace,v=i.Token=function C(t){n(this,C),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new l(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},b=u.prototype,g="undefined"!=typeof Packages;b.next=function(){this.options.onToken&&this.options.onToken(new v(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},b.getToken=function(){return this.next(),new v(this)},"undefined"!=typeof Symbol&&(b[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===c.eof,value:e}}}}),b.setStrict=function(t){if(this.strict=t,this.type===c.num||this.type===c.string){if(this.pos=this.start,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}},b.curContext=function(){return this.context[this.context.length-1]},b.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(c.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},b.readToken=function(t){return o(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},b.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(55295>=t||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888},b.skipBlockComment=function(){var t=this.options.onComment&&this.options.locations&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations){m.lastIndex=e;for(var s=void 0;(s=m.exec(this.input))&&s.index<this.pos;)++this.curLine,this.lineStart=s.index+s[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.options.locations&&this.curPosition())},b.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.options.locations&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&10!==s&&13!==s&&8232!==s&&8233!==s;)++this.pos,s=this.input.charCodeAt(this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.options.locations&&this.curPosition())},b.skipSpace=function(){for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);if(32===t)++this.pos;else if(13===t){++this.pos;var e=this.input.charCodeAt(this.pos);10===e&&++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos)}else if(10===t||8232===t||8233===t)++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);else if(t>8&&14>t)++this.pos;else if(47===t){var e=this.input.charCodeAt(this.pos+1);if(42===e)this.skipBlockComment();else{if(47!==e)break;this.skipLineComment(2)}}else if(160===t)++this.pos;else{if(!(t>=5760&&x.test(String.fromCharCode(t))))break;++this.pos}}},b.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},b.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(c.ellipsis)):(++this.pos,this.finishToken(c.dot))},b.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(c.assign,2):this.finishOp(c.slash,1)},b.readToken_mult_modulo=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(c.assign,2):this.finishOp(42===t?c.star:c.modulo,1)},b.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?c.logicalOR:c.logicalAND,2):61===e?this.finishOp(c.assign,2):this.finishOp(124===t?c.bitwiseOR:c.bitwiseAND,1)},b.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(c.assign,2):this.finishOp(c.bitwiseXOR,1)},b.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45==e&&62==this.input.charCodeAt(this.pos+2)&&d.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(c.incDec,2):61===e?this.finishOp(c.assign,2):this.finishOp(c.plusMin,1)},b.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(c.assign,i+1):this.finishOp(c.bitShift,i)):33==e&&60==t&&45==this.input.charCodeAt(this.pos+2)&&45==this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===e&&(i=61===this.input.charCodeAt(this.pos+2)?3:2),this.finishOp(c.relational,i))},b.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(c.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(c.arrow)):this.finishOp(61===t?c.eq:c.prefix,1)},b.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(c.parenL);case 41:return++this.pos,this.finishToken(c.parenR);case 59:return++this.pos,this.finishToken(c.semi);case 44:return++this.pos,this.finishToken(c.comma);case 91:return++this.pos,this.finishToken(c.bracketL);case 93:return++this.pos,this.finishToken(c.bracketR);case 123:return++this.pos,this.finishToken(c.braceL);case 125:return++this.pos,this.finishToken(c.braceR);case 58:return++this.pos,this.finishToken(c.colon);case 63:return++this.pos,this.finishToken(c.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(c.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(c.prefix,1)}this.raise(this.pos,"Unexpected character '"+s(t)+"'")},b.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)};var k=!1;try{new RegExp("","u"),k=!0}catch(w){}b.readRegexp=function(){for(var t=void 0,e=void 0,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(d.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var r=this.readWord1(),o=n;if(r){var a=/^[gmsiy]*$/;this.options.ecmaVersion>=6&&(a=/^[gmsiyu]*$/),a.test(r)||this.raise(i,"Invalid regular expression flag"),r.indexOf("u")>=0&&!k&&(o=o.replace(/\\u([a-fA-F0-9]{4})|\\u\{([0-9a-fA-F]+)\}|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}var h=null;if(!g){try{new RegExp(o)}catch(p){p instanceof SyntaxError&&this.raise(i,"Error parsing regular expression: "+p.message),this.raise(p)}try{h=new RegExp(n,r)}catch(u){}}return this.finishToken(c.regexp,{pattern:n,flags:r,value:h})},b.readInt=function(t,e){for(var i=this.pos,s=0,n=0,r=null==e?1/0:e;r>n;++n){var o=this.input.charCodeAt(this.pos),a=void 0;if(a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&57>=o?o-48:1/0,a>=t)break;++this.pos,s=s*t+a}return this.pos===i||null!=e&&this.pos-i!==e?null:s},b.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),o(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(c.num,e)},b.readNumber=function(t){var e=this.pos,i=!1,s=48===this.input.charCodeAt(this.pos);t||null!==this.readInt(10)||this.raise(e,"Invalid number"),46===this.input.charCodeAt(this.pos)&&(++this.pos,this.readInt(10),i=!0);var n=this.input.charCodeAt(this.pos);(69===n||101===n)&&(n=this.input.charCodeAt(++this.pos),(43===n||45===n)&&++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),i=!0),o(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r=this.input.slice(e,this.pos),a=void 0;return i?a=parseFloat(r):s&&1!==r.length?/[89]/.test(r)||this.strict?this.raise(e,"Invalid number"):a=parseInt(r,8):a=parseInt(r,10),this.finishToken(c.num,a)},b.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e=void 0;return 123===t?(this.options.ecmaVersion<6&&this.unexpected(),++this.pos,e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.unexpected()):e=this.readHexChar(4),e},b.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(),i=this.pos):(y(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(c.string,e)},b.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===c.template?36===i?(this.pos+=2,this.finishToken(c.dollarBraceL)):(++this.pos,this.finishToken(c.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(c.template,t));92===i?(t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(),e=this.pos):y(i)?(t+=this.input.slice(e,this.pos),++this.pos,13===i&&10===this.input.charCodeAt(this.pos)?(++this.pos,t+="\n"):t+=String.fromCharCode(i),this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos):++this.pos}},b.readEscapedChar=function(){var t=this.input.charCodeAt(++this.pos),e=/^[0-7]+/.exec(this.input.slice(this.pos,this.pos+3));for(e&&(e=e[0]);e&&parseInt(e,8)>255;)e=e.slice(0,-1);if("0"===e&&(e=null),++this.pos,e)return this.strict&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=e.length-1,String.fromCharCode(parseInt(e,8));switch(t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:return String.fromCharCode(t)}},b.readHexChar=function(t){var e=this.readInt(16,t);return null===e&&this.raise(this.start,"Bad character escape sequence"),e};var E;b.readWord1=function(){E=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(a(r,n))this.pos+=65535>=r?1:2;else{if(92!==r)break;E=!0,t+=this.input.slice(i,this.pos);var h=this.pos;117!=this.input.charCodeAt(++this.pos)&&this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(e?o:a)(c,n)||this.raise(h,"Invalid Unicode escape"),t+=s(c),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},b.readWord=function(){var t=this.readWord1(),e=c.name;return(this.options.ecmaVersion>=6||!E)&&this.isKeyword(t)&&(e=p[t]),this.finishToken(e,t)}},{"./identifier":7,"./location":8,"./state":13,"./tokentype":17,"./whitespace":19}],17:[function(t,e,i){"use strict";function s(t,e){return new o(t,{beforeExpr:!0,binop:e})}function n(t){var e=void 0===arguments[1]?{}:arguments[1];e.keyword=t,p[t]=c["_"+t]=new o(t,e)}var r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var o=i.TokenType=function u(t){var e=void 0===arguments[1]?{}:arguments[1];r(this,u),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null},a={beforeExpr:!0},h={startsExpr:!0},c={num:new o("num",h),regexp:new o("regexp",h),string:new o("string",h),name:new o("name",h),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",a),semi:new o(";",a),colon:new o(":",a),dot:new o("."),question:new o("?",a),arrow:new o("=>",a),template:new o("template"),ellipsis:new o("...",a),backQuote:new o("`",h),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:s("||",1),logicalAND:s("&&",2),bitwiseOR:s("|",3),bitwiseXOR:s("^",4),bitwiseAND:s("&",5),equality:s("==/!=",6),relational:s("</>",7),bitShift:s("<</>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:s("%",10),star:s("*",10),slash:s("/",10)};i.types=c;var p={};i.keywords=p,n("break"),n("case",a),n("catch"),n("continue"),n("debugger"),n("default"),n("do",{isLoop:!0}),n("else",a),n("finally"),n("for",{isLoop:!0}),n("function",h),n("if"),n("return",a),n("switch"),n("throw",a),n("try"),n("var"),n("let"),n("const"),n("while",{isLoop:!0}),n("with"),n("new",{beforeExpr:!0,startsExpr:!0}),n("this",h),n("super",h),n("class"),n("extends",a),n("export"),n("import"),n("yield",{beforeExpr:!0,startsExpr:!0}),n("null",h),n("true",h),n("false",h),n("in",{beforeExpr:!0,binop:7}),n("instanceof",{beforeExpr:!0,binop:7}),n("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),n("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),n("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{}],18:[function(t,e,i){"use strict";function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i.isArray=s,i.has=n,i.__esModule=!0},{}],19:[function(t,e,i){"use strict";function s(t){return 10===t||13===t||8232===t||8233==t}i.isNewLine=s,i.__esModule=!0;var n=/\r\n?|\n|\u2028|\u2029/;i.lineBreak=n;var r=new RegExp(n.source,"g");i.lineBreakG=r;var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;i.nonASCIIwhitespace=o},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],33:[function(t,e,i){(function(s){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof s?s:"undefined"!=typeof self?self:this,(n.acorn||(n.acorn={})).walk=t()}}(function(){return function e(i,s,n){function r(a,h){if(!s[a]){if(!i[a]){var c="function"==typeof t&&t;if(!h&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=s[a]={exports:{}};i[a][0].call(u.exports,function(t){var e=i[a][1][t];return r(e?e:t)},u,u.exports,e,i,s,n)}return s[a].exports}for(var o="function"==typeof t&&t,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";function s(t,e,s,n){s||(s=i.base),function r(t,i,n){var o=n||t.type,a=e[o];s[o](t,i,r),a&&a(t,i)}(t,n)}function n(t,e,s,n){s||(s=i.base),n||(n=[]),function r(t,i,n){var o=n||t.type,a=e[o];t!=i[i.length-1]&&(i=i.slice(),i.push(t)),s[o](t,i,r),a&&a(t,i)}(t,n)}function r(t,e,s,n){var r=s?i.make(s,n):n;!function o(t,e,i){r[i||t.type](t,e,o)}(t,e)}function o(t){return"string"==typeof t?function(e){return e==t}:t?t:function(){return!0}}function a(t,e,s,n,r,a){n=o(n),r||(r=i.base);try{!function c(t,i,o){var a=o||t.type;if((null==e||t.start<=e)&&(null==s||t.end>=s)&&r[a](t,i,c),n(a,t)&&(null==e||t.start==e)&&(null==s||t.end==s))throw new m(t,i)}(t,a)}catch(h){if(h instanceof m)return h;throw h}}function h(t,e,s,n,r){s=o(s),n||(n=i.base);try{!function h(t,i,r){var o=r||t.type;if(!(t.start>e||t.end<e)&&(n[o](t,i,h),s(o,t)))throw new m(t,i)}(t,r)}catch(a){if(a instanceof m)return a;throw a}}function c(t,e,s,n,r){s=o(s),n||(n=i.base);try{!function h(t,i,r){if(!(t.end<e)){var o=r||t.type;if(t.start>=e&&s(o,t))throw new m(t,i);n[o](t,i,h)}}(t,r)}catch(a){if(a instanceof m)return a;throw a}}function p(t,e,s,n,r){s=o(s),n||(n=i.base);var a=void 0;return function h(t,i,r){if(!(t.start>e)){var o=r||t.type;t.end<=e&&(!a||a.node.end<t.end)&&s(o,t)&&(a=new m(t,i)),n[o](t,i,h)}}(t,r),a}function u(t,e){e||(e=i.base);var s={};for(var n in e)s[n]=e[n];for(var n in t)s[n]=t[n];return s}function l(t,e,i){i(t,e)}function f(t,e,i){}var d=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.simple=s,i.ancestor=n,i.recursive=r,i.findNodeAt=a,i.findNodeAround=h,i.findNodeAfter=c,i.findNodeBefore=p,i.make=u,i.__esModule=!0;var m=function x(t,e){d(this,x),this.node=t,this.state=e},y={};i.base=y,y.Program=y.BlockStatement=function(t,e,i){for(var s=0;s<t.body.length;++s)i(t.body[s],e,"Statement")},y.Statement=l,y.EmptyStatement=f,y.ExpressionStatement=y.ParenthesizedExpression=function(t,e,i){return i(t.expression,e,"Expression")},y.IfStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Statement"),t.alternate&&i(t.alternate,e,"Statement")},y.LabeledStatement=function(t,e,i){return i(t.body,e,"Statement")},y.BreakStatement=y.ContinueStatement=f,y.WithStatement=function(t,e,i){i(t.object,e,"Expression"),i(t.body,e,"Statement")},y.SwitchStatement=function(t,e,i){i(t.discriminant,e,"Expression");for(var s=0;s<t.cases.length;++s){var n=t.cases[s];n.test&&i(n.test,e,"Expression");for(var r=0;r<n.consequent.length;++r)i(n.consequent[r],e,"Statement")}},y.ReturnStatement=y.YieldExpression=function(t,e,i){t.argument&&i(t.argument,e,"Expression")},y.ThrowStatement=y.SpreadElement=y.RestElement=function(t,e,i){return i(t.argument,e,"Expression")},y.TryStatement=function(t,e,i){i(t.block,e,"Statement"),t.handler&&i(t.handler.body,e,"ScopeBody"),t.finalizer&&i(t.finalizer,e,"Statement")},y.WhileStatement=y.DoWhileStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.body,e,"Statement")},y.ForStatement=function(t,e,i){t.init&&i(t.init,e,"ForInit"),t.test&&i(t.test,e,"Expression"),t.update&&i(t.update,e,"Expression"),i(t.body,e,"Statement")},y.ForInStatement=y.ForOfStatement=function(t,e,i){i(t.left,e,"ForInit"),i(t.right,e,"Expression"),i(t.body,e,"Statement")},y.ForInit=function(t,e,i){"VariableDeclaration"==t.type?i(t,e):i(t,e,"Expression")},y.DebuggerStatement=f,y.FunctionDeclaration=function(t,e,i){return i(t,e,"Function")},y.VariableDeclaration=function(t,e,i){for(var s=0;s<t.declarations.length;++s){var n=t.declarations[s];n.init&&i(n.init,e,"Expression")}},y.Function=function(t,e,i){return i(t.body,e,"ScopeBody")},y.ScopeBody=function(t,e,i){return i(t,e,"Statement")},y.Expression=l,y.ThisExpression=y.Super=y.MetaProperty=f,y.ArrayExpression=y.ArrayPattern=function(t,e,i){for(var s=0;s<t.elements.length;++s){var n=t.elements[s];n&&i(n,e,"Expression")}},y.ObjectExpression=y.ObjectPattern=function(t,e,i){for(var s=0;s<t.properties.length;++s)i(t.properties[s],e)},y.FunctionExpression=y.ArrowFunctionExpression=y.FunctionDeclaration,y.SequenceExpression=y.TemplateLiteral=function(t,e,i){for(var s=0;s<t.expressions.length;++s)i(t.expressions[s],e,"Expression")},y.UnaryExpression=y.UpdateExpression=function(t,e,i){i(t.argument,e,"Expression")},y.BinaryExpression=y.AssignmentExpression=y.AssignmentPattern=y.LogicalExpression=function(t,e,i){i(t.left,e,"Expression"),i(t.right,e,"Expression")},y.ConditionalExpression=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Expression"),i(t.alternate,e,"Expression")},y.NewExpression=y.CallExpression=function(t,e,i){if(i(t.callee,e,"Expression"),t.arguments)for(var s=0;s<t.arguments.length;++s)i(t.arguments[s],e,"Expression")},y.MemberExpression=function(t,e,i){
|
||
i(t.object,e,"Expression"),t.computed&&i(t.property,e,"Expression")},y.ExportNamedDeclaration=y.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},y.ImportDeclaration=function(t,e,i){for(var s=0;s<t.specifiers.length;s++)i(t.specifiers[s],e)},y.ImportSpecifier=y.ImportDefaultSpecifier=y.ImportNamespaceSpecifier=y.Identifier=y.Literal=f,y.TaggedTemplateExpression=function(t,e,i){i(t.tag,e,"Expression"),i(t.quasi,e)},y.ClassDeclaration=y.ClassExpression=function(t,e,i){t.superClass&&i(t.superClass,e,"Expression");for(var s=0;s<t.body.body.length;s++)i(t.body.body[s],e)},y.MethodDefinition=y.Property=function(t,e,i){t.computed&&i(t.key,e,"Expression"),i(t.value,e,"Expression")},y.ComprehensionExpression=function(t,e,i){for(var s=0;s<t.blocks.length;s++)i(t.blocks[s].right,e,"Expression");i(t.body,e,"Expression")}},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],34:[function(t,e,i){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}],35:[function(t,e,i){"use strict";function s(t){try{return a.parse(t,{ecmaVersion:5,allowReturnOutsideFunction:!0})}catch(e){if("SyntaxError"!==e.name)throw e;return a.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0})}}function n(t,e,i){t+="",e+="",i=i||[],i=i.concat(o(t).map(function(t){return t.name}));var s=o(e).map(function(t){return t.name}).filter(function(t){return-1===i.indexOf(t)});if(0===s.length)return e;var n="",a="locals_for_with",h="result_of_with";if(/^[a-zA-Z0-9$_]+$/.test(t))a=t;else{for(;-1!=s.indexOf(a)||-1!=i.indexOf(a);)a+="_";n="var "+a+" = ("+t+")"}for(;-1!=s.indexOf(h)||-1!=i.indexOf(h);)h+="_";var c=s.map(function(t){return JSON.stringify(t)+" in "+a+"?"+a+"."+t+":typeof "+t+'!=="undefined"?'+t+":undefined"});return e="(function ("+s.join(", ")+") {"+e+"}.call(this"+c.map(function(t){return","+t}).join("")+"))",";"+n+";"+r(e,h)+";"}function r(t,e){function i(e){return t.slice(e.start,e.end).join("")}function n(e,i){for(var s=e.start;s<e.end;s++)t[s]="";t[e.start]=i}var r,o=t,a=!1,c=s(t);if(t=t.split(""),1!==(r=c.body).length||"ExpressionStatement"!==(r=r[0]).type||"CallExpression"!==(r=r.expression).type||"MemberExpression"!==(r=r.callee).type||r.computed!==!1||"call"!==r.property.name||"FunctionExpression"!==(r=r.object).type)throw new Error("AST does not seem to represent a self-calling function");var p=r;return h.recursive(c,null,{Function:function(t,e,i){t===p&&i(t.body,e,"ScopeBody")},ReturnStatement:function(t){a=!0,n(t,"return {value: "+i(t.argument)+"};")}}),a?"var "+e+"="+t.join("")+";if ("+e+") return "+e+".value":o}var o=t("acorn-globals"),a=t("acorn"),h=t("acorn/dist/walk");h.base.ExportNamedDeclaration=h.base.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},h.base.ImportDefaultSpecifier=h.base.ImportNamespaceSpecifier=function(){},e.exports=n},{acorn:37,"acorn-globals":36,"acorn/dist/walk":38}],36:[function(t,e,i){arguments[4][31][0].apply(i,arguments)},{acorn:37,"acorn/dist/walk":38,dup:31}],37:[function(t,e,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],38:[function(t,e,i){arguments[4][33][0].apply(i,arguments)},{dup:33}]},{},[1])(1)}),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.jade=t()}}(function(){var define,module,exports;return function t(e,i,s){function n(o,a){if(!i[o]){if(!e[o]){var h="function"==typeof require&&require;if(!a&&h)return h(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var p=i[o]={exports:{}};e[o][0].call(p.exports,function(t){var i=e[o][1][t];return n(i?i:t)},p,p.exports,t,e,i,s)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<s.length;o++)n(s[o]);return n}({1:[function(t,e,i){(function(e){"use strict";function s(t,e){e.lexer&&console.warn("Using `lexer` as a local in render() is deprecated and will be interpreted as an option in Jade 2.0.0");var i,s=new(e.parser||r)(t,e.filename,e);try{i=s.parse()}catch(n){s=s.context(),h.rethrow(n,s.filename,s.lexer.lineno,s.input)}var o,p=new(e.compiler||a)(i,e);try{o=p.compile()}catch(n){if(!n.line||!n.filename&&e.filename)throw n instanceof Error&&(n.message+="\n\nPlease report this entire error and stack trace to https://github.com/jadejs/jade/issues"),n;h.rethrow(n,n.filename,n.line,s.input)}e.debug&&console.error("\nCompiled Function:\n\n[90m%s[0m",o.replace(/^/gm," "));var u=[];e.globals&&(u=e.globals.slice()),u.push("jade"),u.push("jade_mixins"),u.push("jade_interp"),u.push("jade_debug"),u.push("buf");var l="var buf = [];\nvar jade_mixins = {};\nvar jade_interp;\n"+(e.self?"var self = locals || {};\n"+o:c("locals || {}","\n"+o,u))+';return buf.join("");';return{body:l,dependencies:s.dependencies}}function n(t,e){var s=t.filename;if(t.cache&&i.cache[s])return i.cache[s];void 0===e&&(e=p.readFileSync(t.filename,"utf8"));var n=i.compile(e,t);return t.cache&&(i.cache[s]=n),n}var r=t("./parser"),o=t("./lexer"),a=t("./compiler"),h=t("./runtime"),c=t("with"),p=t("fs"),u=t("./utils");i.selfClosing=Object.keys(t("void-elements")),i.doctypes=t("./doctypes"),i.filters=t("./filters"),i.utils=u,i.Compiler=a,i.Parser=r,i.Lexer=o,i.nodes=t("./nodes"),i.runtime=h,i.cache={},i.compile=function(t,e){var n,e=e||{},r=e.filename?u.stringify(e.filename):"undefined";t=String(t);var o=s(t,e);n=e.compileDebug!==!1?["var jade_debug = [ new jade.DebugItem( 1, "+r+" ) ];","try {",o.body,"} catch (err) {"," jade.rethrow(err, jade_debug[0].filename, jade_debug[0].lineno"+(e.compileDebug===!0?","+u.stringify(t):"")+");","}"].join("\n"):o.body,n=new Function("locals, jade",n);var a=function(t){return n(t,Object.create(h))};return e.client&&(a.toString=function(){var s=new Error("The `client` option is deprecated, use the `jade.compileClient` method instead");return s.name="Warning",console.error(s.stack||s.message),i.compileClient(t,e)}),a.dependencies=o.dependencies,a},i.compileClientWithDependenciesTracked=function(t,e){var i,e=e||{},n=e.name||"template",r=e.filename?u.stringify(e.filename):"undefined";t=String(t),e.compileDebug=e.compileDebug?!0:!1;var o=s(t,e);return i=e.compileDebug?["var jade_debug = [ new jade.DebugItem( 1, "+r+" ) ];","try {",o.body,"} catch (err) {"," jade.rethrow(err, jade_debug[0].filename, jade_debug[0].lineno, "+u.stringify(t)+");","}"].join("\n"):o.body,{body:"function "+n+"(locals) {\n"+i+"\n}",dependencies:o.dependencies}},i.compileClient=function(t,e){return i.compileClientWithDependenciesTracked(t,e).body},i.compileFile=function(t,e){return e=e||{},e.filename=t,n(e)},i.render=function(t,e,s){if("function"==typeof e&&(s=e,e=void 0),"function"==typeof s){var r;try{r=i.render(t,e)}catch(o){return s(o)}return s(null,r)}if(e=e||{},e.cache&&!e.filename)throw new Error('the "filename" option is required for caching');return n(e,t)(e)},i.renderFile=function(t,e,s){if("function"==typeof e&&(s=e,e=void 0),"function"==typeof s){var r;try{r=i.renderFile(t,e)}catch(o){return s(o)}return s(null,r)}return e=e||{},e.filename=t,n(e)(e)},i.compileFileClient=function(t,e){var s=t+":client";if(e=e||{},e.filename=t,e.cache&&i.cache[s])return i.cache[s];var n=p.readFileSync(e.filename,"utf8"),r=i.compileClient(n,e);return e.cache&&(i.cache[s]=r),r},i.__express=function(t,s,n){void 0==s.compileDebug&&"production"===e.env.NODE_ENV&&(s.compileDebug=!1),i.renderFile(t,s,n)}}).call(this,t("_process"))},{"./compiler":2,"./doctypes":3,"./filters":4,"./lexer":6,"./nodes":16,"./parser":23,"./runtime":24,"./utils":25,_process:28,fs:26,"void-elements":34,"with":35}],2:[function(t,e,i){"use strict";function s(t){return l(t,{jade:h,jade_interp:void 0})}function n(t){return l.toConstant(t,{jade:h,jade_interp:void 0})}function r(t,e){return e.line=t.line,e.filename=t.filename,e}var o=(t("./nodes"),t("./filters")),a=t("./doctypes"),h=t("./runtime"),c=t("./utils"),p=t("void-elements"),u=t("character-parser").parseMax,l=t("constantinople"),f=e.exports=function(t,e){this.options=e=e||{},this.node=t,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=e.pretty||!1,this.pp&&"string"!=typeof this.pp&&(this.pp=" "),this.debug=!1!==e.compileDebug,this.indents=0,this.parentIndents=0,this.terse=!1,this.mixins={},this.dynamicMixins=!1,e.doctype&&this.setDoctype(e.doctype)};f.prototype={compile:function(){if(this.buf=[],this.pp&&this.buf.push("var jade_indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),!this.dynamicMixins)for(var t=Object.keys(this.mixins),e=0;e<t.length;e++){var i=this.mixins[t[e]];if(!i.used)for(var s=0;s<i.instances.length;s++)for(var n=i.instances[s].start;n<i.instances[s].end;n++)this.buf[n]=""}return this.buf.join("\n")},setDoctype:function(t){this.doctype=a[t.toLowerCase()]||"<!DOCTYPE "+t+">",this.terse="<!doctype html>"==this.doctype.toLowerCase(),this.xml=0==this.doctype.indexOf("<?xml")},buffer:function(t,e){if(e){var i=/(\\)?([#!]){((?:.|\n)*)$/.exec(t);if(i){if(this.buffer(t.substr(0,i.index),!1),i[1])return this.buffer(i[2]+"{",!1),void this.buffer(i[3],!0);var s=i[3],n=u(s),r=("!"==i[2]?"":"jade.escape")+"((jade_interp = "+n.src+") == null ? '' : jade_interp)";return this.bufferExpression(r),void this.buffer(s.substr(n.end+1),!0)}}t=c.stringify(t),t=t.substr(1,t.length-2),this.lastBufferedIdx==this.buf.length?("code"===this.lastBufferedType&&(this.lastBuffered+=' + "'),this.lastBufferedType="text",this.lastBuffered+=t,this.buf[this.lastBufferedIdx-1]="buf.push("+this.bufferStartChar+this.lastBuffered+'");'):(this.buf.push('buf.push("'+t+'");'),this.lastBufferedType="text",this.bufferStartChar='"',this.lastBuffered=t,this.lastBufferedIdx=this.buf.length)},bufferExpression:function(t){return s(t)?this.buffer(n(t)+"",!1):void(this.lastBufferedIdx==this.buf.length?("text"===this.lastBufferedType&&(this.lastBuffered+='"'),this.lastBufferedType="code",this.lastBuffered+=" + ("+t+")",this.buf[this.lastBufferedIdx-1]="buf.push("+this.bufferStartChar+this.lastBuffered+");"):(this.buf.push("buf.push("+t+");"),this.lastBufferedType="code",this.bufferStartChar="",this.lastBuffered="("+t+")",this.lastBufferedIdx=this.buf.length))},prettyIndent:function(t,e){t=t||0,e=e?"\n":"",this.buffer(e+Array(this.indents+t).join(this.pp)),this.parentIndents&&this.buf.push("buf.push.apply(buf, jade_indent);")},visit:function(t){var e=this.debug;e&&this.buf.push("jade_debug.unshift(new jade.DebugItem( "+t.line+", "+(t.filename?c.stringify(t.filename):"jade_debug[0].filename")+" ));"),!1===t.debug&&this.debug&&(this.buf.pop(),this.buf.pop()),this.visitNode(t),e&&this.buf.push("jade_debug.shift();")},visitNode:function(t){return this["visit"+t.type](t)},visitCase:function(t){var e=this.withinCase;this.withinCase=!0,this.buf.push("switch ("+t.expr+"){"),this.visit(t.block),this.buf.push("}"),this.withinCase=e},visitWhen:function(t){"default"==t.expr?this.buf.push("default:"):this.buf.push("case "+t.expr+":"),t.block&&(this.visit(t.block),this.buf.push(" break;"))},visitLiteral:function(t){this.buffer(t.str)},visitBlock:function(t){var e=t.nodes.length,i=this.escape,s=this.pp;s&&e>1&&!i&&t.nodes[0].isText&&t.nodes[1].isText&&this.prettyIndent(1,!0);for(var n=0;e>n;++n)s&&n>0&&!i&&t.nodes[n].isText&&t.nodes[n-1].isText&&this.prettyIndent(1,!1),this.visit(t.nodes[n]),t.nodes[n+1]&&t.nodes[n].isText&&t.nodes[n+1].isText&&this.buffer("\n")},visitMixinBlock:function(t){this.pp&&this.buf.push("jade_indent.push('"+Array(this.indents+1).join(this.pp)+"');"),this.buf.push("block && block();"),this.pp&&this.buf.push("jade_indent.pop();")},visitDoctype:function(t){!t||!t.val&&this.doctype||this.setDoctype(t.val||"default"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(t){var e="jade_mixins[",i=t.args||"",s=t.block,n=t.attrs,r=t.attributeBlocks.slice(),o=this.pp,a="#"===t.name[0],h=t.name;if(a&&(this.dynamicMixins=!0),e+=(a?t.name.substr(2,t.name.length-3):'"'+t.name+'"')+"]",this.mixins[h]=this.mixins[h]||{used:!1,instances:[]},t.call){if(this.mixins[h].used=!0,o&&this.buf.push("jade_indent.push('"+Array(this.indents+1).join(o)+"');"),s||n.length||r.length){if(this.buf.push(e+".call({"),s){this.buf.push("block: function(){"),this.parentIndents++;var c=this.indents;this.indents=0,this.visit(t.block),this.indents=c,this.parentIndents--,n.length||r.length?this.buf.push("},"):this.buf.push("}")}if(r.length){if(n.length){var p=this.attrs(n);r.unshift(p)}this.buf.push("attributes: jade.merge(["+r.join(",")+"])")}else if(n.length){var p=this.attrs(n);this.buf.push("attributes: "+p)}i?this.buf.push("}, "+i+");"):this.buf.push("});")}else this.buf.push(e+"("+i+");");o&&this.buf.push("jade_indent.pop();")}else{var u=this.buf.length;i=i?i.split(","):[];var l;i.length&&/^\.\.\./.test(i[i.length-1].trim())&&(l=i.pop().trim().replace(/^\.\.\./,"")),this.buf.push(e+" = jade_interp = function("+i.join(",")+"){"),this.buf.push("var block = (this && this.block), attributes = (this && this.attributes) || {};"),l&&(this.buf.push("var "+l+" = [];"),this.buf.push("for (jade_interp = "+i.length+"; jade_interp < arguments.length; jade_interp++) {"),this.buf.push(" "+l+".push(arguments[jade_interp]);"),this.buf.push("}")),this.parentIndents++,this.visit(s),this.parentIndents--,this.buf.push("};");var f=this.buf.length;this.mixins[h].instances.push({start:u,end:f})}},visitTag:function(t){function e(){t.buffer?n.bufferExpression(i):n.buffer(i)}this.indents++;var i=t.name,s=this.pp,n=this;if("pre"==t.name&&(this.escape=!0),this.hasCompiledTag||(this.hasCompiledDoctype||"html"!=i||this.visitDoctype(),this.hasCompiledTag=!0),s&&!t.isInline()&&this.prettyIndent(0,!0),t.selfClosing||!this.xml&&p[t.name]){if(this.buffer("<"),e(),this.visitAttributes(t.attrs,t.attributeBlocks.slice()),this.terse?this.buffer(">"):this.buffer("/>"),t.block&&("Block"!==t.block.type||0!==t.block.nodes.length)&&t.block.nodes.some(function(t){return"Text"!==t.type||!/^\s*$/.test(t.val)}))throw r(t,new Error(i+" is self closing and should not have content."))}else this.buffer("<"),e(),this.visitAttributes(t.attrs,t.attributeBlocks.slice()),this.buffer(">"),t.code&&this.visitCode(t.code),this.visit(t.block),!s||t.isInline()||"pre"==t.name||t.canInline()||this.prettyIndent(0,!0),this.buffer("</"),e(),this.buffer(">");"pre"==t.name&&(this.escape=!1),this.indents--},visitFilter:function(t){var e=t.block.nodes.map(function(t){return t.val}).join("\n");t.attrs.filename=this.options.filename;try{this.buffer(o(t.name,e,t.attrs),!0)}catch(i){throw r(t,i)}},visitText:function(t){this.buffer(t.val,!0)},visitComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+t.val+"-->"))},visitBlockComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+t.val),this.visit(t.block),this.pp&&this.prettyIndent(1,!0),this.buffer("-->"))},visitCode:function(t){if(t.buffer){var e=t.val.trim();e="null == (jade_interp = "+e+') ? "" : jade_interp',t.escape&&(e="jade.escape("+e+")"),this.bufferExpression(e)}else this.buf.push(t.val);t.block&&(t.buffer||this.buf.push("{"),this.visit(t.block),t.buffer||this.buf.push("}"))},visitEach:function(t){this.buf.push("// iterate "+t.obj+"\n;(function(){\n var $$obj = "+t.obj+";\n if ('number' == typeof $$obj.length) {\n"),t.alternative&&this.buf.push(" if ($$obj.length) {"),this.buf.push(" for (var "+t.key+" = 0, $$l = $$obj.length; "+t.key+" < $$l; "+t.key+"++) {\n var "+t.val+" = $$obj["+t.key+"];\n"),this.visit(t.block),this.buf.push(" }\n"),t.alternative&&(this.buf.push(" } else {"),this.visit(t.alternative),this.buf.push(" }")),this.buf.push(" } else {\n var $$l = 0;\n for (var "+t.key+" in $$obj) {\n $$l++; var "+t.val+" = $$obj["+t.key+"];\n"),this.visit(t.block),this.buf.push(" }\n"),t.alternative&&(this.buf.push(" if ($$l === 0) {"),this.visit(t.alternative),this.buf.push(" }")),this.buf.push(" }\n}).call(this);\n")},visitAttributes:function(t,e){if(e.length){if(t.length){var i=this.attrs(t);e.unshift(i)}this.bufferExpression("jade.attrs(jade.merge(["+e.join(",")+"]), "+c.stringify(this.terse)+")")}else t.length&&this.attrs(t,!0)},attrs:function(t,e){var i=[],r=[],o=[];return t.forEach(function(t){var a=t.name,p=t.escaped;if("class"===a)r.push(t.val),o.push(t.escaped);else if(s(t.val))if(e)this.buffer(h.attr(a,n(t.val),p,this.terse));else{var u=n(t.val);"style"===a&&(u=h.style(u)),!p||0===a.indexOf("data")&&"string"!=typeof u||(u=h.escape(u)),i.push(c.stringify(a)+": "+c.stringify(u))}else if(e)this.bufferExpression('jade.attr("'+a+'", '+t.val+", "+c.stringify(p)+", "+c.stringify(this.terse)+")");else{var u=t.val;"style"===a&&(u="jade.style("+u+")"),p&&0!==a.indexOf("data")?u="jade.escape("+u+")":p&&(u="(typeof (jade_interp = "+u+') == "string" ? jade.escape(jade_interp) : jade_interp)'),i.push(c.stringify(a)+": "+u)}}.bind(this)),e?r.every(s)?this.buffer(h.cls(r.map(n),o)):this.bufferExpression("jade.cls(["+r.join(",")+"], "+c.stringify(o)+")"):r.length&&(r=r.every(s)?c.stringify(h.joinClasses(r.map(n).map(h.joinClasses).map(function(t,e){return o[e]?h.escape(t):t}))):"(jade_interp = "+c.stringify(o)+", jade.joinClasses(["+r.join(",")+"].map(jade.joinClasses).map(function (cls, i) { return jade_interp[i] ? jade.escape(cls) : cls })))",r.length&&i.push('"class": '+r)),"{"+i.join(",")+"}"}}},{"./doctypes":3,"./filters":4,"./nodes":16,"./runtime":24,"./utils":25,"character-parser":29,constantinople:30,"void-elements":34}],3:[function(t,e,i){"use strict";e.exports={"default":"<!DOCTYPE html>",xml:'<?xml version="1.0" encoding="utf-8" ?>',transitional:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',strict:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',frameset:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',1.1:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',basic:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',mobile:'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'}},{}],4:[function(t,e,i){"use strict";function s(t,e,i){if("function"==typeof s[t])return s[t](e,i);throw new Error('unknown filter ":'+t+'"')}e.exports=s},{}],5:[function(t,e,i){"use strict";e.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]},{}],6:[function(t,e,i){"use strict";function s(t){Function("","return ("+t+")")}function n(t){var e=o(t);if(e.isNesting())throw new Error("Nesting must match on expression `"+t+"`")}var r=t("./utils"),o=t("character-parser"),a=e.exports=function(t,e){this.input=t.replace(/\r\n|\r/g,"\n"),this.filename=e,this.deferredTokens=[],this.lastIndents=0,this.lineno=1,this.stash=[],this.indentStack=[],this.indentRe=null,this.pipeless=!1};a.prototype={tok:function(t,e){return{type:t,line:this.lineno,val:e}},consume:function(t){this.input=this.input.substr(t)},scan:function(t,e){var i;return(i=t.exec(this.input))?(this.consume(i[0].length),this.tok(e,i[1])):void 0},defer:function(t){this.deferredTokens.push(t)},lookahead:function(t){for(var e=t-this.stash.length;e-- >0;)this.stash.push(this.next());return this.stash[--t]},bracketExpression:function(t){t=t||0;var e=this.input[t];if("("!=e&&"{"!=e&&"["!=e)throw new Error("unrecognized start character");var i={"(":")","{":"}","[":"]"}[e],s=o.parseMax(this.input,{start:t+1});if(this.input[s.end]!==i)throw new Error("start character "+e+" does not match end character "+this.input[s.end]);return s},stashed:function(){return this.stash.length&&this.stash.shift()},deferred:function(){return this.deferredTokens.length&&this.deferredTokens.shift()},eos:function(){return this.input.length?void 0:this.indentStack.length?(this.indentStack.shift(),this.tok("outdent")):this.tok("eos")},blank:function(){var t;return(t=/^\n *\n/.exec(this.input))?(this.consume(t[0].length-1),++this.lineno,this.pipeless?this.tok("text",""):this.next()):void 0},comment:function(){var t;if(t=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("comment",t[2]);return e.buffer="-"!=t[1],this.pipeless=!0,e}},interpolation:function(){if(/^#\{/.test(this.input)){var t=this.bracketExpression(1);return this.consume(t.end+1),this.tok("interpolation",t.src)}},tag:function(){var t;if(t=/^(\w[-:\w]*)(\/?)/.exec(this.input)){this.consume(t[0].length);var e,i=t[1];if(":"==i[i.length-1])for(i=i.slice(0,-1),e=this.tok("tag",i),this.defer(this.tok(":"))," "!==this.input[0]&&console.warn("Warning: space required after `:` on line "+this.lineno+' of jade file "'+this.filename+'"');" "==this.input[0];)this.input=this.input.substr(1);else e=this.tok("tag",i);return e.selfClosing=!!t[2],e}},filter:function(){var t=this.scan(/^:([\w\-]+)/,"filter");return t?(this.pipeless=!0,t):void 0},doctype:function(){if(this.scan(/^!!! *([^\n]+)?/,"doctype"))throw new Error("`!!!` is deprecated, you must now use `doctype`");var t=this.scan(/^(?:doctype) *([^\n]+)?/,"doctype");if(t&&t.val&&"5"===t.val.trim())throw new Error("`doctype 5` is deprecated, you must now use `doctype html`");return t},id:function(){return this.scan(/^#([\w-]+)/,"id")},className:function(){return this.scan(/^\.([\w-]+)/,"class")},text:function(){return this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^\|?( )/,"text")||this.scan(/^(<[^\n]*)/,"text")},textFail:function(){var t;return(t=this.scan(/^([^\.\n][^\n]+)/,"text"))?(console.warn("Warning: missing space before text for line "+this.lineno+' of jade file "'+this.filename+'"'),t):void 0},dot:function(){var t;return(t=this.scan(/^\./,"dot"))?(this.pipeless=!0,t):void 0},"extends":function(){return this.scan(/^extends? +([^\n]+)/,"extends")},prepend:function(){var t;if(t=/^prepend +([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e="prepend",i=t[1],s=this.tok("block",i);return s.mode=e,s}},append:function(){var t;if(t=/^append +([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e="append",i=t[1],s=this.tok("block",i);return s.mode=e,s}},block:function(){var t;if(t=/^block\b *(?:(prepend|append) +)?([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=t[1]||"replace",i=t[2],s=this.tok("block",i);return s.mode=e,s}},mixinBlock:function(){var t;return(t=/^block[ \t]*(\n|$)/.exec(this.input))?(this.consume(t[0].length-t[1].length),this.tok("mixin-block")):void 0},"yield":function(){return this.scan(/^yield */,"yield")},include:function(){return this.scan(/^include +([^\n]+)/,"include")},includeFiltered:function(){var t;if(t=/^include:([\w\-]+)([\( ])/.exec(this.input)){this.consume(t[0].length-1);var e=t[1],i="("===t[2]?this.attrs():null;if(" "!==t[2]&&" "!==this.input[0])throw new Error("expected space after include:filter but got "+r.stringify(this.input[0]));if(t=/^ *([^\n]+)/.exec(this.input),!t||""===t[1].trim())throw new Error("missing path for include:filter");this.consume(t[0].length);var s=t[1],n=this.tok("include",s);return n.filter=e,n.attrs=i,n}},"case":function(){return this.scan(/^case +([^\n]+)/,"case")},when:function(){return this.scan(/^when +([^:\n]+)/,"when")},"default":function(){return this.scan(/^default */,"default")},call:function(){var t,e;if(e=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(e[3])this.consume(e[0].length),t=this.tok("call",e[3]);else{var i=this.bracketExpression(2+e[1].length);this.consume(i.end+1),s(i.src),t=this.tok("call","#{"+i.src+"}")}if(e=/^ *\(/.exec(this.input)){var n=this.bracketExpression(e[0].length-1);/^\s*[-\w]+ *=/.test(n.src)||(this.consume(n.end+1),t.args=n.src),t.args&&s("["+t.args+"]")}return t}},mixin:function(){var t;if(t=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(t[0].length);var e=this.tok("mixin",t[1]);return e.args=t[2],e}},conditional:function(){var t;if(t=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=t[1],i=t[2],n=!1,r=!1;switch(e){case"if":s(i),i="if ("+i+")",n=!0;break;case"unless":s(i),i="if (!("+i+"))",n=!0;break;case"else if":s(i),i="else if ("+i+")",n=!0,r=!0;break;case"else":if(i&&i.trim())throw new Error("`else` cannot have a condition, perhaps you meant `else if`");i="else",r=!0}var o=this.tok("code",i);return o.isElse=r,o.isIf=n,o.requiresBlock=!0,o}},"while":function(){var t;if(t=/^while +([^\n]+)/.exec(this.input)){this.consume(t[0].length),s(t[1]);var e=this.tok("code","while ("+t[1]+")");return e.requiresBlock=!0,e}},each:function(){var t;if(t=/^(?:- *)?(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("each",t[1]);return e.key=t[2]||"$index",s(t[3]),e.code=t[3],e}},code:function(){var t;if(t=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=t[1];t[1]=t[2];var i=this.tok("code",t[1]);return i.escape="="===e.charAt(0),i.buffer="="===e.charAt(0)||"="===e.charAt(1),i.buffer&&s(t[1]),i}},blockCode:function(){var t;if(t=/^-\n/.exec(this.input)){this.consume(t[0].length-1);var e=this.tok("blockCode");return this.pipeless=!0,e}},attrs:function(){if("("==this.input.charAt(0)){var t=this.bracketExpression().end,e=this.input.substr(1,t-1),i=this.tok("attrs");n(e);var r="",a=function(t){return t.replace(/(\\)?#\{(.+)/g,function(t,e,i){if(e)return t;try{var n=o.parseMax(i);return"}"!==i[n.end]?t.substr(0,2)+a(t.substr(2)):(s(n.src),r+" + ("+n.src+") + "+r+a(i.substr(n.end+1)))}catch(h){return t.substr(0,2)+a(t.substr(2))}})};this.consume(t+1),i.attrs=[];var h=!0,c="",p="",u="",l=o.defaultState(),f="key",d=function(t){if(""===c.trim())return!1;if(t===e.length)return!0;if("key"===f){if(" "===e[t]||"\n"===e[t])for(var i=t;i<e.length;i++)if(" "!=e[i]&&"\n"!=e[i])return"="===e[i]||"!"===e[i]||","===e[i]?!1:!0;return","===e[t]}if("value"===f&&!l.isNesting())try{if(s(p)," "===e[t]||"\n"===e[t])for(var i=t;i<e.length;i++)if(" "!=e[i]&&"\n"!=e[i])return o.isPunctuator(e[i])&&'"'!=e[i]&&"'"!=e[i]?!1:!0;return","===e[t]}catch(n){return!1}};this.lineno+=e.split("\n").length-1;for(var m=0;m<=e.length;m++)if(d(m))p=p.trim(),p&&s(p),c=c.trim(),c=c.replace(/^['"]|['"]$/g,""),i.attrs.push({name:c,val:""==p?!0:p,escaped:h}),c=p="",f="key",h=!1;else switch(f){case"key-char":if(e[m]===r){if(f="key",m+1<e.length&&-1===[" ",",","!","=","\n"].indexOf(e[m+1]))throw new Error("Unexpected character "+e[m+1]+" expected ` `, `\\n`, `,`, `!` or `=`")}else c+=e[m];break;case"key":if(""!==c||'"'!==e[m]&&"'"!==e[m])if("!"===e[m]||"="===e[m]){if(h="!"!==e[m],"!"===e[m]&&m++,"="!==e[m])throw new Error("Unexpected character "+e[m]+" expected `=`");f="value",l=o.defaultState()}else c+=e[m];else f="key-char",r=e[m];break;case"value":l=o.parseChar(e[m],l),l.isString()?(f="string",r=e[m],u=e[m]):p+=e[m];break;case"string":l=o.parseChar(e[m],l),u+=e[m],l.isString()||(f="value",p+=a(u))}return"/"==this.input.charAt(0)&&(this.consume(1),i.selfClosing=!0),i}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){this.consume(11);var t=this.bracketExpression();return this.consume(t.end+1),this.tok("&attributes",t.src)}},indent:function(){var t,e;if(this.indentRe?t=this.indentRe.exec(this.input):(e=/^\n(\t*) */,t=e.exec(this.input),t&&!t[1].length&&(e=/^\n( *)/,t=e.exec(this.input)),t&&t[1].length&&(this.indentRe=e)),t){var i,s=t[1].length;if(++this.lineno,this.consume(s+1)," "==this.input[0]||" "==this.input[0])throw new Error("Invalid indentation, you can use tabs or spaces but not both");if("\n"==this.input[0])return this.pipeless=!1,this.tok("newline");if(this.indentStack.length&&s<this.indentStack[0]){for(;this.indentStack.length&&this.indentStack[0]>s;)this.stash.push(this.tok("outdent")),this.indentStack.shift();i=this.stash.pop()}else s&&s!=this.indentStack[0]?(this.indentStack.unshift(s),i=this.tok("indent",s)):i=this.tok("newline");return this.pipeless=!1,i}},pipelessText:function(){if(this.pipeless){var t,e;this.indentRe?t=this.indentRe.exec(this.input):(e=/^\n(\t*) */,t=e.exec(this.input),t&&!t[1].length&&(e=/^\n( *)/,t=e.exec(this.input)),t&&t[1].length&&(this.indentRe=e));var i=t&&t[1].length;if(i&&(0===this.indentStack.length||i>this.indentStack[0])){var s,n=t[1],r=[];do{var o=this.input.substr(1).indexOf("\n");-1==o&&(o=this.input.length-1);var a=this.input.substr(1,o);s=a.substr(0,n.length)===n||!a.trim(),s&&(this.consume(a.length+1),++this.lineno,r.push(a.substr(n.length)))}while(this.input.length&&s);for(;0===this.input.length&&""===r[r.length-1];)r.pop();return this.tok("pipeless-text",r)}}},colon:function(){var t=/^: +/.test(this.input),e=this.scan(/^: */,":");return e&&!t&&console.warn("Warning: space required after `:` on line "+this.lineno+' of jade file "'+this.filename+'"'),e},fail:function(){throw new Error("unexpected text "+this.input.substr(0,5))},advance:function(){return this.stashed()||this.next()},next:function(){return this.deferred()||this.blank()||this.eos()||this.pipelessText()||this["yield"]()||this.doctype()||this.interpolation()||this["case"]()||this.when()||this["default"]()||this["extends"]()||this.append()||this.prepend()||this.block()||this.mixinBlock()||this.include()||this.includeFiltered()||this.mixin()||this.call()||this.conditional()||this.each()||this["while"]()||this.tag()||this.filter()||this.blockCode()||this.code()||this.id()||this.className()||this.attrs()||this.attributesBlock()||this.indent()||this.text()||this.comment()||this.colon()||this.dot()||this.textFail()||this.fail()}}},{"./utils":25,"character-parser":29}],7:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(){this.attributeNames=[],this.attrs=[],this.attributeBlocks=[]};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Attrs",n.prototype.setAttribute=function(t,e,i){if("class"!==t&&-1!==this.attributeNames.indexOf(t))throw new Error('Duplicate attribute "'+t+'" is not allowed.');return this.attributeNames.push(t),this.attrs.push({name:t,val:e,escaped:i}),this},n.prototype.removeAttribute=function(t){var e=new Error("attrs.removeAttribute is deprecated and will be removed in v2.0.0");console.warn(e.stack);for(var i=0,s=this.attrs.length;s>i;++i)this.attrs[i]&&this.attrs[i].name==t&&delete this.attrs[i]},n.prototype.getAttribute=function(t){var e=new Error("attrs.getAttribute is deprecated and will be removed in v2.0.0");console.warn(e.stack);for(var i=0,s=this.attrs.length;s>i;++i)if(this.attrs[i]&&this.attrs[i].name==t)return this.attrs[i].val},n.prototype.addAttributes=function(t){this.attributeBlocks.push(t)}},{"./node":20}],8:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.block=e,this.val=t,this.buffer=i};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="BlockComment"},{"./node":20}],9:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.nodes=[],t&&this.push(t)};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Block",n.prototype.isBlock=!0,n.prototype.replace=function(t){var e=new Error("block.replace is deprecated and will be removed in v2.0.0");console.warn(e.stack),t.nodes=this.nodes},n.prototype.push=function(t){return this.nodes.push(t)},n.prototype.isEmpty=function(){return 0==this.nodes.length},n.prototype.unshift=function(t){return this.nodes.unshift(t)},n.prototype.includeBlock=function(){for(var t,e=this,i=0,s=this.nodes.length;s>i;++i){if(t=this.nodes[i],t["yield"])return t;if(!t.textOnly&&(t.includeBlock?e=t.includeBlock():t.block&&!t.block.isEmpty()&&(e=t.block.includeBlock()),e["yield"]))return e}return e},n.prototype.clone=function(){
|
||
var t=new Error("block.clone is deprecated and will be removed in v2.0.0");console.warn(t.stack);for(var e=new n,i=0,s=this.nodes.length;s>i;++i)e.push(this.nodes[i].clone());return e}},{"./node":20}],10:[function(t,e,i){"use strict";var s=t("./node"),n=i=e.exports=function(t,e){this.expr=t,this.block=e};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Case";var r=i.When=function(t,e){this.expr=t,this.block=e,this.debug=!1};r.prototype=Object.create(s.prototype),r.prototype.constructor=r,r.prototype.type="When"},{"./node":20}],11:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.val=t,this.buffer=e,this.escape=i,t.match(/^ *else/)&&(this.debug=!1)};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Code"},{"./node":20}],12:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e){this.val=t,this.buffer=e};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Comment"},{"./node":20}],13:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.val=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Doctype"},{"./node":20}],14:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i,s){this.obj=t,this.val=e,this.key=i,this.block=s};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Each"},{"./node":20}],15:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t,e,i){this.name=t,this.block=e,this.attrs=i};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Filter"},{"./node":20}],16:[function(t,e,i){"use strict";i.Node=t("./node"),i.Tag=t("./tag"),i.Code=t("./code"),i.Each=t("./each"),i.Case=t("./case"),i.Text=t("./text"),i.Block=t("./block"),i.MixinBlock=t("./mixin-block"),i.Mixin=t("./mixin"),i.Filter=t("./filter"),i.Comment=t("./comment"),i.Literal=t("./literal"),i.BlockComment=t("./block-comment"),i.Doctype=t("./doctype")},{"./block":9,"./block-comment":8,"./case":10,"./code":11,"./comment":12,"./doctype":13,"./each":14,"./filter":15,"./literal":17,"./mixin":19,"./mixin-block":18,"./node":20,"./tag":21,"./text":22}],17:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.str=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Literal"},{"./node":20}],18:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(){};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="MixinBlock"},{"./node":20}],19:[function(t,e,i){"use strict";var s=t("./attrs"),n=e.exports=function(t,e,i,n){s.call(this),this.name=t,this.args=e,this.block=i,this.call=n};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Mixin"},{"./attrs":7}],20:[function(t,e,i){"use strict";var s=e.exports=function(){};s.prototype.clone=function(){var t=new Error("node.clone is deprecated and will be removed in v2.0.0");return console.warn(t.stack),this},s.prototype.type=""},{}],21:[function(t,e,i){"use strict";var s=t("./attrs"),n=t("./block"),r=t("../inline-tags"),o=e.exports=function(t,e){s.call(this),this.name=t,this.block=e||new n};o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.type="Tag",o.prototype.clone=function(){var t=new Error("tag.clone is deprecated and will be removed in v2.0.0");console.warn(t.stack);var e=new o(this.name,this.block.clone());return e.line=this.line,e.attrs=this.attrs,e.textOnly=this.textOnly,e},o.prototype.isInline=function(){return~r.indexOf(this.name)},o.prototype.canInline=function(){function t(e){return e.isBlock?e.nodes.every(t):e.isText||e.isInline&&e.isInline()}var e=this.block.nodes;if(!e.length)return!0;if(1==e.length)return t(e[0]);if(this.block.nodes.every(t)){for(var i=1,s=e.length;s>i;++i)if(e[i-1].isText&&e[i].isText)return!1;return!0}return!1}},{"../inline-tags":5,"./attrs":7,"./block":9}],22:[function(t,e,i){"use strict";var s=t("./node"),n=e.exports=function(t){this.val=t};n.prototype=Object.create(s.prototype),n.prototype.constructor=n,n.prototype.type="Text",n.prototype.isText=!0},{"./node":20}],23:[function(t,e,i){"use strict";var s=t("./lexer"),n=t("./nodes"),r=t("./utils"),o=t("./filters"),a=t("path"),h=t("constantinople"),c=t("character-parser").parseMax,p=(a.extname,i=e.exports=function(t,e,i){this.input=t.replace(/^\uFEFF/,""),this.lexer=new s(this.input,e),this.filename=e,this.blocks={},this.mixins={},this.options=i,this.contexts=[this],this.inMixin=0,this.dependencies=[],this.inBlock=0});p.prototype={constructor:p,context:function(t){return t?void this.contexts.push(t):this.contexts.pop()},advance:function(){return this.lexer.advance()},peek:function(){return this.lookahead(1)},line:function(){return this.lexer.lineno},lookahead:function(t){return this.lexer.lookahead(t)},parse:function(){var t,e=new n.Block;for(e.line=0,e.filename=this.filename;"eos"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else{var i=this.peek(),s=this.parseExpr();s.filename=s.filename||this.filename,s.line=i.line,e.push(s)}if(t=this.extending){this.context(t);var o=t.parse();this.context();for(var a in this.mixins)o.unshift(this.mixins[a]);return o}if(!this.extending&&!this.included&&Object.keys(this.blocks).length){var h=[];r.walkAST(e,function(t){"Block"===t.type&&t.name&&h.push(t.name)}),Object.keys(this.blocks).forEach(function(t){-1!==h.indexOf(t)||this.blocks[t].isSubBlock||console.warn('Warning: Unexpected block "'+t+'" on line '+this.blocks[t].line+" of "+this.blocks[t].filename+". This block is never used. This warning will be an error in v2.0.0")}.bind(this))}return e},expect:function(t){if(this.peek().type===t)return this.advance();throw new Error('expected "'+t+'", but got "'+this.peek().type+'"')},accept:function(t){return this.peek().type===t?this.advance():void 0},parseExpr:function(){switch(this.peek().type){case"tag":return this.parseTag();case"mixin":return this.parseMixin();case"block":return this.parseBlock();case"mixin-block":return this.parseMixinBlock();case"case":return this.parseCase();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"doctype":return this.parseDoctype();case"filter":return this.parseFilter();case"comment":return this.parseComment();case"text":return this.parseText();case"each":return this.parseEach();case"code":return this.parseCode();case"blockCode":return this.parseBlockCode();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":this.advance();var t=new n.Block;return t["yield"]=!0,t;case"id":case"class":var e=this.advance();return this.lexer.defer(this.lexer.tok("tag","div")),this.lexer.defer(e),this.parseExpr();default:throw new Error('unexpected token "'+this.peek().type+'"')}},parseText:function(){var t=this.expect("text"),e=this.parseInlineTagsInText(t.val);if(1===e.length)return e[0];for(var i=new n.Block,s=0;s<e.length;s++)i.push(e[s]);return i},parseBlockExpansion:function(){return":"==this.peek().type?(this.advance(),new n.Block(this.parseExpr())):this.block()},parseCase:function(){var t=this.expect("case").val,e=new n.Case(t);e.line=this.line();var i=new n.Block;for(i.line=this.line(),i.filename=this.filename,this.expect("indent");"outdent"!=this.peek().type;)switch(this.peek().type){case"comment":case"newline":this.advance();break;case"when":i.push(this.parseWhen());break;case"default":i.push(this.parseDefault());break;default:throw new Error('Unexpected token "'+this.peek().type+'", expected "when", "default" or "newline"')}return this.expect("outdent"),e.block=i,e},parseWhen:function(){var t=this.expect("when").val;return"newline"!==this.peek().type?new n.Case.When(t,this.parseBlockExpansion()):new n.Case.When(t)},parseDefault:function(){return this.expect("default"),new n.Case.When("default",this.parseBlockExpansion())},parseCode:function(t){var e,i=this.expect("code"),s=new n.Code(i.val,i.buffer,i.escape);if(s.line=this.line(),i.isElse&&!i.hasIf)throw new Error("Unexpected else without if");return e="indent"==this.peek().type,e&&(s.block=this.block()),i.requiresBlock&&!e&&(s.block=new n.Block),i.isIf&&this.peek().isElse?this.peek().hasIf=!0:i.isIf&&"newline"===this.peek().type&&this.lookahead(2).isElse&&(this.lookahead(2).hasIf=!0),s},parseBlockCode:function(){var t,e,i=(this.expect("blockCode"),this.peek());return"pipeless-text"===i.type?(this.advance(),e=i.val.join("\n")):e="",t=new n.Code(e,!1,!1)},parseComment:function(){var t,e,i=this.expect("comment");return t=(e=this.parseTextBlock())?new n.BlockComment(i.val,e,i.buffer):new n.Comment(i.val,i.buffer),t.line=this.line(),t},parseDoctype:function(){var t=this.expect("doctype"),e=new n.Doctype(t.val);return e.line=this.line(),e},parseFilter:function(){var t,e=this.expect("filter"),i=this.accept("attrs");t=this.parseTextBlock()||new n.Block;var s={};i&&i.attrs.forEach(function(t){s[t.name]=h.toConstant(t.val)});var r=new n.Filter(e.val,t,s);return r.line=this.line(),r},parseEach:function(){var t=this.expect("each"),e=new n.Each(t.code,t.val,t.key);return e.line=this.line(),e.block=this.block(),"code"==this.peek().type&&"else"==this.peek().val&&(this.advance(),e.alternative=this.block()),e},resolvePath:function(e,i){var s=t("path"),n=s.dirname,r=s.basename,o=s.join;if("/"!==e[0]&&!this.filename)throw new Error('the "filename" option is required to use "'+i+'" with "relative" paths');if("/"===e[0]&&!this.options.basedir)throw new Error('the "basedir" option is required to use "'+i+'" with "absolute" paths');return e=o("/"===e[0]?this.options.basedir:n(this.filename),e),-1===r(e).indexOf(".")&&(e+=".jade"),e},parseExtends:function(){var e=t("fs"),i=this.resolvePath(this.expect("extends").val.trim(),"extends");".jade"!=i.substr(-5)&&(i+=".jade"),this.dependencies.push(i);var s=e.readFileSync(i,"utf8"),r=new this.constructor(s,i,this.options);return r.dependencies=this.dependencies,r.blocks=this.blocks,r.included=this.included,r.contexts=this.contexts,this.extending=r,new n.Literal("")},parseBlock:function(){var t=this.expect("block"),e=t.mode,i=t.val.trim(),s=t.line;this.inBlock++,t="indent"==this.peek().type?this.block():new n.Block(new n.Literal("")),this.inBlock--,t.name=i,t.line=s;var r=this.blocks[i]||{prepended:[],appended:[]};if("replace"===r.mode)return this.blocks[i]=r;var o=r.prepended.concat(t.nodes).concat(r.appended);switch(e){case"append":r.appended=r.parser===this?r.appended.concat(t.nodes):t.nodes.concat(r.appended);break;case"prepend":r.prepended=r.parser===this?t.nodes.concat(r.prepended):r.prepended.concat(t.nodes)}return t.nodes=o,t.appended=r.appended,t.prepended=r.prepended,t.mode=e,t.parser=this,t.isSubBlock=this.inBlock>0,this.blocks[i]=t},parseMixinBlock:function(){this.expect("mixin-block");if(!this.inMixin)throw new Error("Anonymous blocks are not allowed unless they are part of a mixin.");return new n.MixinBlock},parseInclude:function(){var e=t("fs"),i=this.expect("include"),s=this.resolvePath(i.val.trim(),"include");if(this.dependencies.push(s),i.filter){var a=e.readFileSync(s,"utf8").replace(/\r/g,""),c={filename:s};return i.attrs&&i.attrs.attrs.forEach(function(t){c[t.name]=h.toConstant(t.val)}),a=o(i.filter,a,c),new n.Literal(a)}if(".jade"!=s.substr(-5)){var a=e.readFileSync(s,"utf8").replace(/\r/g,"");return new n.Literal(a)}var a=e.readFileSync(s,"utf8"),p=new this.constructor(a,s,this.options);p.dependencies=this.dependencies,p.blocks=r.merge({},this.blocks),p.included=!0,p.mixins=this.mixins,this.context(p);var u=p.parse();return this.context(),u.filename=s,"indent"==this.peek().type&&u.includeBlock().push(this.block()),u},parseCall:function(){var t=this.expect("call"),e=t.val,i=t.args,s=new n.Mixin(e,i,new n.Block,!0);return this.tag(s),s.code&&(s.block.push(s.code),s.code=null),s.block.isEmpty()&&(s.block=null),s},parseMixin:function(){var t,e=this.expect("mixin"),i=e.val,s=e.args;return"indent"==this.peek().type?(this.inMixin++,t=new n.Mixin(i,s,this.block(),!1),this.mixins[i]=t,this.inMixin--,t):new n.Mixin(i,s,null,!0)},parseInlineTagsInText:function(t){var e=this.line(),i=/(\\)?#\[((?:.|\n)*)$/.exec(t);if(i){if(i[1]){var s=new n.Text(t.substr(0,i.index)+"#[");s.line=e;var r=this.parseInlineTagsInText(i[2]);return"Text"===r[0].type&&(s.val+=r[0].val,r.shift()),[s].concat(r)}var s=new n.Text(t.substr(0,i.index));s.line=e;var o=[s],r=i[2],a=c(r),h=new p(a.src,this.filename,this.options);return o.push(h.parse()),o.concat(this.parseInlineTagsInText(r.substr(a.end+1)))}var s=new n.Text(t);return s.line=e,[s]},parseTextBlock:function(){var t=new n.Block;t.line=this.line();var e=this.peek();if("pipeless-text"===e.type)return this.advance(),t.nodes=e.val.reduce(function(t,e){return t.concat(this.parseInlineTagsInText(e))}.bind(this),[]),t},block:function(){var t=new n.Block;for(t.line=this.line(),t.filename=this.filename,this.expect("indent");"outdent"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else{var e=this.parseExpr();e.filename=this.filename,t.push(e)}return this.expect("outdent"),t},parseInterpolation:function(){var t=this.advance(),e=new n.Tag(t.val);return e.buffer=!0,this.tag(e)},parseTag:function(){var t=this.advance(),e=new n.Tag(t.val);return e.selfClosing=t.selfClosing,this.tag(e)},tag:function(t){t.line=this.line();var e=!1;t:for(;;)switch(this.peek().type){case"id":case"class":var i=this.advance();t.setAttribute(i.type,"'"+i.val+"'");continue;case"attrs":e&&console.warn(this.filename+", line "+this.peek().line+":\nYou should not have jade tags with multiple attributes."),e=!0;var i=this.advance(),s=i.attrs;i.selfClosing&&(t.selfClosing=!0);for(var r=0;r<s.length;r++)t.setAttribute(s[r].name,s[r].val,s[r].escaped);continue;case"&attributes":var i=this.advance();t.addAttributes(i.val);break;default:break t}switch("dot"==this.peek().type&&(t.textOnly=!0,this.advance()),this.peek().type){case"text":t.block.push(this.parseText());break;case"code":t.code=this.parseCode();break;case":":this.advance(),t.block=new n.Block,t.block.push(this.parseExpr());break;case"newline":case"indent":case"outdent":case"eos":case"pipeless-text":break;default:throw new Error("Unexpected token `"+this.peek().type+"` expected `text`, `code`, `:`, `newline` or `eos`")}for(;"newline"==this.peek().type;)this.advance();if(t.textOnly)t.block=this.parseTextBlock()||new n.Block;else if("indent"==this.peek().type)for(var o=this.block(),r=0,a=o.nodes.length;a>r;++r)t.block.push(o.nodes[r]);return t}}},{"./filters":4,"./lexer":6,"./nodes":16,"./utils":25,"character-parser":29,constantinople:30,fs:26,path:27}],24:[function(t,e,i){"use strict";function s(t){return null!=t&&""!==t}function n(t){return(Array.isArray(t)?t.map(n):t&&"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}):[t]).filter(s).join(" ")}function r(t){return a[t]||t}function o(t){var e=String(t).replace(h,r);return e===""+t?t:e}i.merge=function c(t,e){if(1===arguments.length){for(var i=t[0],n=1;n<t.length;n++)i=c(i,t[n]);return i}var r=t["class"],o=e["class"];(r||o)&&(r=r||[],o=o||[],Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]),t["class"]=r.concat(o).filter(s));for(var a in e)"class"!=a&&(t[a]=e[a]);return t},i.joinClasses=n,i.cls=function(t,e){for(var s=[],r=0;r<t.length;r++)e&&e[r]?s.push(i.escape(n([t[r]]))):s.push(n(t[r]));var o=n(s);return o.length?' class="'+o+'"':""},i.style=function(t){return t&&"object"==typeof t?Object.keys(t).map(function(e){return e+":"+t[e]}).join(";"):t},i.attr=function(t,e,s,n){return"style"===t&&(e=i.style(e)),"boolean"==typeof e||null==e?e?" "+(n?t:t+'="'+t+'"'):"":0==t.indexOf("data")&&"string"!=typeof e?(-1!==JSON.stringify(e).indexOf("&")&&console.warn("Since Jade 2.0.0, ampersands (`&`) in data attributes will be escaped to `&`"),e&&"function"==typeof e.toISOString&&console.warn("Jade will eliminate the double quotes around dates in ISO form after 2.0.0")," "+t+"='"+JSON.stringify(e).replace(/'/g,"'")+"'"):s?(e&&"function"==typeof e.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+t+'="'+i.escape(e)+'"'):(e&&"function"==typeof e.toISOString&&console.warn("Jade will stringify dates in ISO form after 2.0.0")," "+t+'="'+e+'"')},i.attrs=function(t,e){var s=[],r=Object.keys(t);if(r.length)for(var o=0;o<r.length;++o){var a=r[o],h=t[a];"class"==a?(h=n(h))&&s.push(" "+a+'="'+h+'"'):s.push(i.attr(a,h,!1,e))}return s.join("")};var a={"&":"&","<":"<",">":">",'"':"""},h=/[&<>"]/g;i.escape=o,i.rethrow=function p(e,i,s,n){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&i||n))throw e.message+=" on line "+s,e;try{n=n||t("fs").readFileSync(i,"utf8")}catch(r){p(e,null,s)}var o=3,a=n.split("\n"),h=Math.max(s-o,0),c=Math.min(a.length,s+o),o=a.slice(h,c).map(function(t,e){var i=e+h+1;return(i==s?" > ":" ")+i+"| "+t}).join("\n");throw e.path=i,e.message=(i||"Jade")+":"+s+"\n"+o+"\n\n"+e.message,e},i.DebugItem=function(t,e){this.lineno=t,this.filename=e}},{fs:26}],25:[function(t,e,i){"use strict";i.merge=function(t,e){for(var i in e)t[i]=e[i];return t},i.stringify=function(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},i.walkAST=function s(t,e,i){switch(e&&e(t),t.type){case"Block":t.nodes.forEach(function(t){s(t,e,i)});break;case"Case":case"Each":case"Mixin":case"Tag":case"When":case"Code":t.block&&s(t.block,e,i);break;case"Attrs":case"BlockComment":case"Comment":case"Doctype":case"Filter":case"Literal":case"MixinBlock":case"Text":break;default:throw new Error("Unexpected node type "+t.type)}i&&i(t)}},{}],26:[function(t,e,i){},{}],27:[function(t,e,i){(function(t){function e(t,e){for(var i=0,s=t.length-1;s>=0;s--){var n=t[s];"."===n?t.splice(s,1):".."===n?(t.splice(s,1),i++):i&&(t.splice(s,1),i--)}if(e)for(;i--;i)t.unshift("..");return t}function s(t,e){if(t.filter)return t.filter(e);for(var i=[],s=0;s<t.length;s++)e(t[s],s,t)&&i.push(t[s]);return i}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,r=function(t){return n.exec(t).slice(1)};i.resolve=function(){for(var i="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var o=r>=0?arguments[r]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(i=o+"/"+i,n="/"===o.charAt(0))}return i=e(s(i.split("/"),function(t){return!!t}),!n).join("/"),(n?"/":"")+i||"."},i.normalize=function(t){var n=i.isAbsolute(t),r="/"===o(t,-1);return t=e(s(t.split("/"),function(t){return!!t}),!n).join("/"),t||n||(t="."),t&&r&&(t+="/"),(n?"/":"")+t},i.isAbsolute=function(t){return"/"===t.charAt(0)},i.join=function(){var t=Array.prototype.slice.call(arguments,0);return i.normalize(s(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},i.relative=function(t,e){function s(t){for(var e=0;e<t.length&&""===t[e];e++);for(var i=t.length-1;i>=0&&""===t[i];i--);return e>i?[]:t.slice(e,i-e+1)}t=i.resolve(t).substr(1),e=i.resolve(e).substr(1);for(var n=s(t.split("/")),r=s(e.split("/")),o=Math.min(n.length,r.length),a=o,h=0;o>h;h++)if(n[h]!==r[h]){a=h;break}for(var c=[],h=a;h<n.length;h++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(t){var e=r(t),i=e[0],s=e[1];return i||s?(s&&(s=s.substr(0,s.length-1)),i+s):"."},i.basename=function(t,e){var i=r(t)[2];return e&&i.substr(-1*e.length)===e&&(i=i.substr(0,i.length-e.length)),i},i.extname=function(t){return r(t)[3]};var o="b"==="ab".substr(-1)?function(t,e,i){return t.substr(e,i)}:function(t,e,i){return 0>e&&(e=t.length+e),t.substr(e,i)}}).call(this,t("_process"))},{_process:28}],28:[function(t,e,i){function s(){p=!1,a.length?c=a.concat(c):u=-1,c.length&&n()}function n(){if(!p){var t=setTimeout(s);p=!0;for(var e=c.length;e;){for(a=c,c=[];++u<e;)a[u].run();u=-1,e=c.length}a=null,p=!1,clearTimeout(t)}}function r(t,e){this.fun=t,this.array=e}function o(){}var a,h=e.exports={},c=[],p=!1,u=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new r(t,e)),1!==c.length||p||setTimeout(n,0)},r.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=o,h.addListener=o,h.once=o,h.off=o,h.removeListener=o,h.removeAllListeners=o,h.emit=o,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],29:[function(t,e,i){function s(t,e,s){s=s||{},e=e||i.defaultState();for(var n=s.start||0,r=s.end||t.length,o=n;r>o;){if(e.roundDepth<0||e.curlyDepth<0||e.squareDepth<0)throw new SyntaxError("Mismatched Bracket: "+t[o-1]);i.parseChar(t[o++],e)}return e}function n(t,e){e=e||{};for(var s=e.start||0,n=s,r=i.defaultState();r.roundDepth>=0&&r.curlyDepth>=0&&r.squareDepth>=0;){if(n>=t.length)throw new Error("The end of the string was reached with no closing bracket found.");i.parseChar(t[n++],r)}var o=n-1;return{start:s,end:o,src:t.substring(s,o)}}function r(t,e,s){s=s||{};for(var n=s.includeLineComment||!1,r=s.start||0,o=r,a=i.defaultState();a.isString()||a.regexp||a.blockComment||!n&&a.lineComment||!h(t,e,o);)i.parseChar(t[o++],a);var c=o;return{start:r,end:c,src:t.substring(r,c)}}function o(t,e){if(1!==t.length)throw new Error("Character must be a string of length 1");e=e||i.defaultState(),e.src=e.src||"",e.src+=t;var s=e.blockComment||e.lineComment,n=e.history?e.history[0]:"";return e.regexpStart&&(("/"===t||"*"==t)&&(e.regexp=!1),e.regexpStart=!1),e.lineComment?"\n"===t&&(e.lineComment=!1):e.blockComment?"*"===e.lastChar&&"/"===t&&(e.blockComment=!1):e.singleQuote?"'"!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.singleQuote=!1:e.doubleQuote?'"'!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.doubleQuote=!1:e.regexp?"/"!==t||e.escaped?"\\"!==t||e.escaped?e.escaped=!1:e.escaped=!0:e.regexp=!1:"/"===n&&"/"===t?(e.history=e.history.substr(1),e.lineComment=!0):"/"===n&&"*"===t?(e.history=e.history.substr(1),e.blockComment=!0):"/"===t&&u(e.history)?(e.regexp=!0,e.regexpStart=!0):"'"===t?e.singleQuote=!0:'"'===t?e.doubleQuote=!0:"("===t?e.roundDepth++:")"===t?e.roundDepth--:"{"===t?e.curlyDepth++:"}"===t?e.curlyDepth--:"["===t?e.squareDepth++:"]"===t&&e.squareDepth--,e.blockComment||e.lineComment||s||(e.history=t+e.history),e.lastChar=t,e}function a(){this.lineComment=!1,this.blockComment=!1,this.singleQuote=!1,this.doubleQuote=!1,this.regexp=!1,this.escaped=!1,this.roundDepth=0,this.curlyDepth=0,this.squareDepth=0,this.history="",this.lastChar=""}function h(t,e,i){return t.substr(i||0,e.length)===e}function c(t){if(!t)return!0;var e=t.charCodeAt(0);switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 33:case 61:return!0;default:return!1}}function p(t){return"if"===t||"in"===t||"do"===t||"var"===t||"for"===t||"new"===t||"try"===t||"let"===t||"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t||"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t||"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t||"default"===t||"finally"===t||"extends"===t||"function"===t||"continue"===t||"debugger"===t||"package"===t||"private"===t||"interface"===t||"instanceof"===t||"implements"===t||"protected"===t||"public"===t||"static"===t||"yield"===t||"let"===t}function u(t){return t=t.replace(/^\s*/,""),")"===t[0]?!1:"}"===t[0]?!0:c(t[0])?!0:/^\w+\b/.test(t)&&p(/^\w+\b/.exec(t)[0].split("").reverse().join(""))?!0:!1}i=e.exports=s,i.parse=s,i.parseMax=n,i.parseUntil=r,i.parseChar=o,i.defaultState=function(){return new a},a.prototype.isString=function(){return this.singleQuote||this.doubleQuote},a.prototype.isComment=function(){return this.lineComment||this.blockComment},a.prototype.isNesting=function(){return this.isString()||this.isComment()||this.regexp||this.roundDepth>0||this.curlyDepth>0||this.squareDepth>0},i.isPunctuator=c,i.isKeyword=p},{}],30:[function(require,module,exports){"use strict";function isConstant(t,e){if(t="("+t+")",lastSRC===t&&lastConstants===e)return lastRes;lastSRC=t,lastConstants=e;try{return isExpression(t),lastRes=0===detect(t).filter(function(t){return!(e&&t.name in e)}).length}catch(i){return lastRes=!1}}function toConstant(t,e){if(!isConstant(t,e))throw new Error(JSON.stringify(t)+" is not constant.");return Function(Object.keys(e||{}).join(","),"return ("+t+")").apply(null,Object.keys(e||{}).map(function(t){return e[t]}))}function isExpression(src){try{return eval('throw "STOP"; (function () { return ('+src+"); })()"),!1}catch(err){return"STOP"===err}}var detect=require("acorn-globals"),lastSRC="(null)",lastRes=!0,lastConstants=void 0;module.exports=isConstant,isConstant.isConstant=isConstant,isConstant.toConstant=toConstant},{"acorn-globals":31}],31:[function(t,e,i){"use strict";function s(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"Program"===t.type}function n(t){return"BlockStatement"===t.type||s(t)}function r(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type||"ArrowFunction"===t.type}function o(t){return"FunctionExpression"===t.type||"FunctionDeclaration"===t.type}function a(t){try{return c.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0,sourceType:"module"})}catch(e){if("SyntaxError"!==e.name)throw e;try{return c.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0})}catch(e){if("SyntaxError"!==e.name)throw e;return c.parse(t,{ecmaVersion:5,allowReturnOutsideFunction:!0})}}}function h(t){var e=[],i="string"==typeof t?i=a(t):t;if(!i||"object"!=typeof i||"Program"!==i.type)throw new TypeError("Source must be either a string of JavaScript or an acorn AST");var h=function(t){var e=t;e.locals=e.locals||{},t.params.forEach(function(t){e.locals[t.name]=!0}),t.id&&(e.locals[t.id.name]=!0)};p.ancestor(i,{VariableDeclaration:function(t,e){for(var i=null,r=e.length-1;r>=0&&null===i;r--)("var"===t.kind?s(e[r]):n(e[r]))&&(i=e[r]);i.locals=i.locals||{},t.declarations.forEach(function(t){i.locals[t.id.name]=!0})},FunctionDeclaration:function(t,e){for(var i=null,n=e.length-2;n>=0&&null===i;n--)s(e[n])&&(i=e[n]);i.locals=i.locals||{},i.locals[t.id.name]=!0,h(t)},Function:h,TryStatement:function(t){t.handler.body.locals=t.handler.body.locals||{},t.handler.body.locals[t.handler.param.name]=!0},ImportDefaultSpecifier:function(t){"Identifier"===t.local.type&&(i.locals=i.locals||{},i.locals[t.local.name]=!0)},ImportSpecifier:function(t){var e=t.local?t.local:t.imported;"Identifier"===e.type&&(i.locals=i.locals||{},i.locals[e.name]=!0)},ImportNamespaceSpecifier:function(t){"Identifier"===t.local.type&&(i.locals=i.locals||{},i.locals[t.local.name]=!0)}}),p.ancestor(i,{Identifier:function(t,i){var s=t.name;if("undefined"!==s){for(var n=0;n<i.length;n++){if("arguments"===s&&r(i[n]))return;if(i[n].locals&&s in i[n].locals)return}t.parents=i,e.push(t)}},ThisExpression:function(t,i){for(var s=0;s<i.length;s++)if(o(i[s]))return;t.parents=i,e.push(t)}});var c={};return e.forEach(function(t){c[t.name]=c[t.name]||[],c[t.name].push(t)}),Object.keys(c).sort().map(function(t){return{name:t,nodes:c[t]}})}var c=t("acorn"),p=t("acorn/dist/walk");p.base.ExportNamedDeclaration=p.base.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},p.base.ImportDefaultSpecifier=p.base.ImportNamespaceSpecifier=function(){},e.exports=h,e.exports.parse=a},{acorn:32,"acorn/dist/walk":33}],32:[function(t,e,i){(function(s){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof s?s:"undefined"!=typeof self?self:this,n.acorn=t()}}(function(){return function e(i,s,n){function r(a,h){if(!s[a]){if(!i[a]){var c="function"==typeof t&&t;if(!h&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=s[a]={exports:{}};i[a][0].call(u.exports,function(t){var e=i[a][1][t];return r(e?e:t)},u,u.exports,e,i,s,n)}return s[a].exports}for(var o="function"==typeof t&&t,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";function s(t,e){var i=o(e,t),s=i.pos,n=i.options.locations&&i.curPosition();return i.nextToken(),i.parseTopLevel(i.options.program||i.startNodeAt(s,n))}function n(t,e,i){var s=o(i,t,e);return s.nextToken(),s.parseExpression()}function r(t,e){return o(e,t)}function o(t,e){return new h(p(t),String(e))}i.parse=s,i.parseExpressionAt=n,i.tokenizer=r,i.__esModule=!0;var a=t("./state"),h=a.Parser,c=t("./options"),p=c.getOptions;t("./parseutil"),t("./statement"),t("./lval"),t("./expression"),i.Parser=a.Parser,i.plugins=a.plugins,i.defaultOptions=c.defaultOptions;var u=t("./location");i.SourceLocation=u.SourceLocation,i.getLineInfo=u.getLineInfo,i.Node=t("./node").Node;var l=t("./tokentype");i.TokenType=l.TokenType,i.tokTypes=l.types;var f=t("./tokencontext");i.TokContext=f.TokContext,i.tokContexts=f.types;var d=t("./identifier");i.isIdentifierChar=d.isIdentifierChar,i.isIdentifierStart=d.isIdentifierStart,i.Token=t("./tokenize").Token;var m=t("./whitespace");i.isNewLine=m.isNewLine,i.lineBreak=m.lineBreak,i.lineBreakG=m.lineBreakG;var y="1.2.2";i.version=y},{"./expression":6,"./identifier":7,"./location":8,"./lval":9,"./node":10,"./options":11,"./parseutil":12,"./state":13,"./statement":14,"./tokencontext":15,"./tokenize":16,"./tokentype":17,"./whitespace":19}],2:[function(t,e,i){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}},{}],3:[function(t,e,i){function s(){if(!a){a=!0;for(var t,e=o.length;e;){t=o,o=[];for(var i=-1;++i<e;)t[i]();e=o.length}a=!1}}function n(){}var r=e.exports={},o=[],a=!1;r.nextTick=function(t){o.push(t),a||setTimeout(s,0)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],4:[function(t,e,i){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],5:[function(t,e,i){(function(e,s){function n(t,e){var s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),m(e)?s.showHidden=e:e&&i._extend(s,e),k(s.showHidden)&&(s.showHidden=!1),k(s.depth)&&(s.depth=2),k(s.colors)&&(s.colors=!1),k(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=r),h(s,t,s.depth)}function r(t,e){var i=n.styles[e];return i?"["+n.colors[i][0]+"m"+t+"["+n.colors[i][1]+"m":t}function o(t,e){return t}function a(t){var e={};return t.forEach(function(t,i){e[t]=!0}),e}function h(t,e,s){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==i.inspect&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(s,t);return b(n)||(n=h(t,n,s)),n}var r=c(t,e);if(r)return r;var o=Object.keys(e),m=a(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),S(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return p(e);if(0===o.length){if(T(e)){var y=e.name?": "+e.name:"";return t.stylize("[Function"+y+"]","special")}if(w(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(C(e))return t.stylize(Date.prototype.toString.call(e),"date");if(S(e))return p(e)}var x="",v=!1,g=["{","}"];
|
||
if(d(e)&&(v=!0,g=["[","]"]),T(e)){var k=e.name?": "+e.name:"";x=" [Function"+k+"]"}if(w(e)&&(x=" "+RegExp.prototype.toString.call(e)),C(e)&&(x=" "+Date.prototype.toUTCString.call(e)),S(e)&&(x=" "+p(e)),0===o.length&&(!v||0==e.length))return g[0]+x+g[1];if(0>s)return w(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var E;return E=v?u(t,e,s,m,o):o.map(function(i){return l(t,e,s,m,i,v)}),t.seen.pop(),f(E,x,g)}function c(t,e){if(k(e))return t.stylize("undefined","undefined");if(b(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return v(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function u(t,e,i,s,n){for(var r=[],o=0,a=e.length;a>o;++o)I(e,String(o))?r.push(l(t,e,i,s,String(o),!0)):r.push("");return n.forEach(function(n){n.match(/^\d+$/)||r.push(l(t,e,i,s,n,!0))}),r}function l(t,e,i,s,n,r){var o,a,c;if(c=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]},c.get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),I(s,n)||(o="["+n+"]"),a||(t.seen.indexOf(c.value)<0?(a=y(i)?h(t,c.value,null):h(t,c.value,i-1),a.indexOf("\n")>-1&&(a=r?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),k(o)){if(r&&n.match(/^\d+$/))return a;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t,e,i){var s=0,n=t.reduce(function(t,e){return s++,e.indexOf("\n")>=0&&s++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?i[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+i[1]:i[0]+e+" "+t.join(", ")+" "+i[1]}function d(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function x(t){return null==t}function v(t){return"number"==typeof t}function b(t){return"string"==typeof t}function g(t){return"symbol"==typeof t}function k(t){return void 0===t}function w(t){return E(t)&&"[object RegExp]"===_(t)}function E(t){return"object"==typeof t&&null!==t}function C(t){return E(t)&&"[object Date]"===_(t)}function S(t){return E(t)&&("[object Error]"===_(t)||t instanceof Error)}function T(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function _(t){return Object.prototype.toString.call(t)}function N(t){return 10>t?"0"+t.toString(10):t.toString(10)}function j(){var t=new Date,e=[N(t.getHours()),N(t.getMinutes()),N(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var L=/%[sdj%]/g;i.format=function(t){if(!b(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(n(arguments[i]));return e.join(" ")}for(var i=1,s=arguments,r=s.length,o=String(t).replace(L,function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":return String(s[i++]);case"%d":return Number(s[i++]);case"%j":try{return JSON.stringify(s[i++])}catch(e){return"[Circular]"}default:return t}}),a=s[i];r>i;a=s[++i])o+=y(a)||!E(a)?" "+a:" "+n(a);return o},i.deprecate=function(t,n){function r(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return t.apply(this,arguments)}if(k(s.process))return function(){return i.deprecate(t,n).apply(this,arguments)};if(e.noDeprecation===!0)return t;var o=!1;return r};var B,O={};i.debuglog=function(t){if(k(B)&&(B=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!O[t])if(new RegExp("\\b"+t+"\\b","i").test(B)){var s=e.pid;O[t]=function(){var e=i.format.apply(i,arguments);console.error("%s %d: %s",t,s,e)}}else O[t]=function(){};return O[t]},i.inspect=n,n.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]},n.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},i.isArray=d,i.isBoolean=m,i.isNull=y,i.isNullOrUndefined=x,i.isNumber=v,i.isString=b,i.isSymbol=g,i.isUndefined=k,i.isRegExp=w,i.isObject=E,i.isDate=C,i.isError=S,i.isFunction=T,i.isPrimitive=A,i.isBuffer=t("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i.log=function(){console.log("%s - %s",j(),i.format.apply(i,arguments))},i.inherits=t("inherits"),i._extend=function(t,e){if(!e||!E(e))return t;for(var i=Object.keys(e),s=i.length;s--;)t[i[s]]=e[i[s]];return t}}).call(this,t("_process"),"undefined"!=typeof s?s:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":4,_process:3,inherits:2}],6:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./identifier").reservedWords,o=t("./util").has,a=n.prototype;a.checkPropClash=function(t,e){if(!(this.options.ecmaVersion>=6)){var i=t.key,s=void 0;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var n=t.kind||"init",r=void 0;if(o(e,s)){r=e[s];var a="init"!==n;((this.strict||a)&&r[n]||!(a^r.init))&&this.raise(i.start,"Redefinition of property")}else r=e[s]={init:!1,get:!1,set:!1};r[n]=!0}},a.parseExpression=function(t,e){var i=this.start,n=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===s.comma){var o=this.startNodeAt(i,n);for(o.expressions=[r];this.eat(s.comma);)o.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(o,"SequenceExpression")}return r},a.parseMaybeAssign=function(t,e,i){if(this.type==s._yield&&this.inGenerator)return this.parseYield();var n=void 0;e?n=!1:(e={start:0},n=!0);var r=this.start,o=this.startLoc;(this.type==s.parenL||this.type==s.name)&&(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(t,e);if(i&&(a=i.call(this,a,r,o)),this.type.isAssign){var h=this.startNodeAt(r,o);return h.operator=this.value,h.left=this.type===s.eq?this.toAssignable(a):a,e.start=0,this.checkLVal(a),this.next(),h.right=this.parseMaybeAssign(t),this.finishNode(h,"AssignmentExpression")}return n&&e.start&&this.unexpected(e.start),a},a.parseMaybeConditional=function(t,e){var i=this.start,n=this.startLoc,r=this.parseExprOps(t,e);if(e&&e.start)return r;if(this.eat(s.question)){var o=this.startNodeAt(i,n);return o.test=r,o.consequent=this.parseMaybeAssign(),this.expect(s.colon),o.alternate=this.parseMaybeAssign(t),this.finishNode(o,"ConditionalExpression")}return r},a.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,n=this.parseMaybeUnary(e);return e&&e.start?n:this.parseExprOp(n,i,s,-1,t)},a.parseExprOp=function(t,e,i,n,r){var o=this.type.binop;if(Array.isArray(e)&&this.options.locations&&void 0===r&&(r=n,n=i,i=e[1],e=e[0]),null!=o&&(!r||this.type!==s._in)&&o>n){var a=this.startNodeAt(e,i);a.left=t,a.operator=this.value;var h=this.type;this.next();var c=this.start,p=this.startLoc;return a.right=this.parseExprOp(this.parseMaybeUnary(),c,p,o,r),this.finishNode(a,h===s.logicalOR||h===s.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,e,i,n,r)}return t},a.parseMaybeUnary=function(t){if(this.type.prefix){var e=this.startNode(),i=this.type===s.incDec;return e.operator=this.value,e.prefix=!0,this.next(),e.argument=this.parseMaybeUnary(),t&&t.start&&this.unexpected(t.start),i?this.checkLVal(e.argument):this.strict&&"delete"===e.operator&&"Identifier"===e.argument.type&&this.raise(e.start,"Deleting local variable in strict mode"),this.finishNode(e,i?"UpdateExpression":"UnaryExpression")}var n=this.start,r=this.startLoc,o=this.parseExprSubscripts(t);if(t&&t.start)return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var e=this.startNodeAt(n,r);e.operator=this.value,e.prefix=!1,e.argument=o,this.checkLVal(o),this.next(),o=this.finishNode(e,"UpdateExpression")}return o},a.parseExprSubscripts=function(t){var e=this.start,i=this.startLoc,s=this.parseExprAtom(t);return t&&t.start?s:this.parseSubscripts(s,e,i)},a.parseSubscripts=function(t,e,i,n){for(Array.isArray(e)&&this.options.locations&&void 0===n&&(n=i,i=e[1],e=e[0]);;)if(this.eat(s.dot)){var r=this.startNodeAt(e,i);r.object=t,r.property=this.parseIdent(!0),r.computed=!1,t=this.finishNode(r,"MemberExpression")}else if(this.eat(s.bracketL)){var r=this.startNodeAt(e,i);r.object=t,r.property=this.parseExpression(),r.computed=!0,this.expect(s.bracketR),t=this.finishNode(r,"MemberExpression")}else if(!n&&this.eat(s.parenL)){var r=this.startNodeAt(e,i);r.callee=t,r.arguments=this.parseExprList(s.parenR,!1),t=this.finishNode(r,"CallExpression")}else{if(this.type!==s.backQuote)return t;var r=this.startNodeAt(e,i);r.tag=t,r.quasi=this.parseTemplate(),t=this.finishNode(r,"TaggedTemplateExpression")}},a.parseExprAtom=function(t){var e=void 0,i=this.potentialArrowAt==this.start;switch(this.type){case s._this:case s._super:var n=this.type===s._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,n);case s._yield:this.inGenerator&&this.unexpected();case s.name:var r=this.start,o=this.startLoc,a=this.parseIdent(this.type!==s.name);return i&&!this.canInsertSemicolon()&&this.eat(s.arrow)?this.parseArrowExpression(this.startNodeAt(r,o),[a]):a;case s.regexp:var h=this.value;return e=this.parseLiteral(h.value),e.regex={pattern:h.pattern,flags:h.flags},e;case s.num:case s.string:return this.parseLiteral(this.value);case s._null:case s._true:case s._false:return e=this.startNode(),e.value=this.type===s._null?null:this.type===s._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case s.parenL:return this.parseParenAndDistinguishExpression(i);case s.bracketL:return e=this.startNode(),this.next(),this.options.ecmaVersion>=7&&this.type===s._for?this.parseComprehension(e,!1):(e.elements=this.parseExprList(s.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression"));case s.braceL:return this.parseObj(!1,t);case s._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case s._class:return this.parseClass(this.startNode(),!1);case s._new:return this.parseNew();case s.backQuote:return this.parseTemplate();default:this.unexpected()}},a.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},a.parseParenExpression=function(){this.expect(s.parenL);var t=this.parseExpression();return this.expect(s.parenR),t},a.parseParenAndDistinguishExpression=function(t){var e=this.start,i=this.startLoc,n=void 0;if(this.options.ecmaVersion>=6){if(this.next(),this.options.ecmaVersion>=7&&this.type===s._for)return this.parseComprehension(this.startNodeAt(e,i),!0);for(var r=this.start,o=this.startLoc,a=[],h=!0,c={start:0},p=void 0,u=void 0;this.type!==s.parenR;){if(h?h=!1:this.expect(s.comma),this.type===s.ellipsis){p=this.start,a.push(this.parseParenItem(this.parseRest()));break}this.type!==s.parenL||u||(u=this.start),a.push(this.parseMaybeAssign(!1,c,this.parseParenItem))}var l=this.start,f=this.startLoc;if(this.expect(s.parenR),t&&!this.canInsertSemicolon()&&this.eat(s.arrow))return u&&this.unexpected(u),this.parseParenArrowList(e,i,a);a.length||this.unexpected(this.lastTokStart),p&&this.unexpected(p),c.start&&this.unexpected(c.start),a.length>1?(n=this.startNodeAt(r,o),n.expressions=a,this.finishNodeAt(n,"SequenceExpression",l,f)):n=a[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(e,i);return d.expression=n,this.finishNode(d,"ParenthesizedExpression")}return n},a.parseParenItem=function(t){return t},a.parseParenArrowList=function(t,e,i){return this.parseArrowExpression(this.startNodeAt(t,e),i)};var h=[];a.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(s.dot))return t.meta=e,t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raise(t.property.start,"The only valid meta property for new is new.target"),this.finishNode(t,"MetaProperty");var i=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0),this.eat(s.parenL)?t.arguments=this.parseExprList(s.parenR,!1):t.arguments=h,this.finishNode(t,"NewExpression")},a.parseTemplateElement=function(){var t=this.startNode();return t.value={raw:this.input.slice(this.start,this.end),cooked:this.value},this.next(),t.tail=this.type===s.backQuote,this.finishNode(t,"TemplateElement")},a.parseTemplate=function(){var t=this.startNode();this.next(),t.expressions=[];var e=this.parseTemplateElement();for(t.quasis=[e];!e.tail;)this.expect(s.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(s.braceR),t.quasis.push(e=this.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},a.parseObj=function(t,e){var i=this.startNode(),n=!0,r={};for(i.properties=[],this.next();!this.eat(s.braceR);){if(n)n=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var o=this.startNode(),a=void 0,h=void 0,c=void 0;this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(h=this.start,c=this.startLoc),t||(a=this.eat(s.star))),this.parsePropertyName(o),this.parsePropertyValue(o,t,a,h,c,e),this.checkPropClash(o,r),i.properties.push(this.finishNode(o,"Property"))}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},a.parsePropertyValue=function(t,e,i,n,o,a){this.eat(s.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===s.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i)):this.options.ecmaVersion>=5&&!t.computed&&"Identifier"===t.key.type&&("get"===t.key.name||"set"===t.key.name)&&this.type!=s.comma&&this.type!=s.braceR?((i||e)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1)):this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?(t.kind="init",e?((this.isKeyword(t.key.name)||this.strict&&(r.strictBind(t.key.name)||r.strict(t.key.name))||!this.options.allowReserved&&this.isReservedWord(t.key.name))&&this.raise(t.key.start,"Binding "+t.key.name),t.value=this.parseMaybeDefault(n,o,t.key)):this.type===s.eq&&a?(a.start||(a.start=this.start),t.value=this.parseMaybeDefault(n,o,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected()},a.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(s.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(s.bracketR),t.key;t.computed=!1}return t.key=this.type===s.num||this.type===s.string?this.parseExprAtom():this.parseIdent(!0)},a.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=!1,t.expression=!1)},a.parseMethod=function(t){var e=this.startNode();this.initFunction(e),this.expect(s.parenL),e.params=this.parseBindingList(s.parenR,!1,!1);var i=void 0;return this.options.ecmaVersion>=6?(e.generator=t,i=!0):i=!1,this.parseFunctionBody(e,i),this.finishNode(e,"FunctionExpression")},a.parseArrowExpression=function(t,e){return this.initFunction(t),t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0),this.finishNode(t,"ArrowFunctionExpression")},a.parseFunctionBody=function(t,e){var i=e&&this.type!==s.braceL;if(i)t.body=this.parseMaybeAssign(),t.expression=!0;else{var n=this.inFunction,r=this.inGenerator,o=this.labels;this.inFunction=!0,this.inGenerator=t.generator,this.labels=[],t.body=this.parseBlock(!0),t.expression=!1,this.inFunction=n,this.inGenerator=r,this.labels=o}if(this.strict||!i&&t.body.body.length&&this.isUseStrict(t.body.body[0])){var a={},h=this.strict;this.strict=!0,t.id&&this.checkLVal(t.id,!0);for(var c=0;c<t.params.length;c++)this.checkLVal(t.params[c],!0,a);this.strict=h}},a.parseExprList=function(t,e,i,n){for(var r=[],o=!0;!this.eat(t);){if(o)o=!1;else if(this.expect(s.comma),e&&this.afterTrailingComma(t))break;i&&this.type===s.comma?r.push(null):this.type===s.ellipsis?r.push(this.parseSpread(n)):r.push(this.parseMaybeAssign(!1,n))}return r},a.parseIdent=function(t){var e=this.startNode();return t&&"never"==this.options.allowReserved&&(t=!1),this.type===s.name?(!t&&(!this.options.allowReserved&&this.isReservedWord(this.value)||this.strict&&r.strict(this.value)&&(this.options.ecmaVersion>=6||-1==this.input.slice(this.start,this.end).indexOf("\\")))&&this.raise(this.start,"The keyword '"+this.value+"' is reserved"),e.name=this.value):t&&this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"Identifier")},a.parseYield=function(){var t=this.startNode();return this.next(),this.type==s.semi||this.canInsertSemicolon()||this.type!=s.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(s.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")},a.parseComprehension=function(t,e){for(t.blocks=[];this.type===s._for;){var i=this.startNode();this.next(),this.expect(s.parenL),i.left=this.parseBindingAtom(),this.checkLVal(i.left,!0),this.expectContextual("of"),i.right=this.parseExpression(),this.expect(s.parenR),t.blocks.push(this.finishNode(i,"ComprehensionBlock"))}return t.filter=this.eat(s._if)?this.parseParenExpression():null,t.body=this.parseExpression(),this.expect(e?s.parenR:s.bracketR),t.generator=e,this.finishNode(t,"ComprehensionExpression")}},{"./identifier":7,"./state":13,"./tokentype":17,"./util":18}],7:[function(t,e,i){"use strict";function s(t){function e(t){if(1==t.length)return i+="return str === "+JSON.stringify(t[0])+";";i+="switch(str){";for(var e=0;e<t.length;++e)i+="case "+JSON.stringify(t[e])+":";i+="return true}return false;"}t=t.split(" ");var i="",s=[];t:for(var n=0;n<t.length;++n){for(var r=0;r<s.length;++r)if(s[r][0].length==t[n].length){s[r].push(t[n]);continue t}s.push([t[n]])}if(s.length>3){s.sort(function(t,e){return e.length-t.length}),i+="switch(str.length){";for(var n=0;n<s.length;++n){var o=s[n];i+="case "+o[0].length+":",e(o)}i+="}"}else e(t);return new Function("str",i)}function n(t,e){for(var i=65536,s=0;s<e.length;s+=2){if(i+=e[s],i>t)return!1;if(i+=e[s+1],i>=t)return!0}}function r(t,e){return 65>t?36===t:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&l.test(String.fromCharCode(t)):e===!1?!1:n(t,d)}function o(t,e){return 48>t?36===t:58>t?!0:65>t?!1:91>t?!0:97>t?95===t:123>t?!0:65535>=t?t>=170&&f.test(String.fromCharCode(t)):e===!1?!1:n(t,d)||n(t,m)}i.isIdentifierStart=r,i.isIdentifierChar=o,i.__esModule=!0;var a={3:s("abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile"),5:s("class enum extends super const export import"),6:s("enum await"),strict:s("implements interface let package private protected public static yield"),strictBind:s("eval arguments")};i.reservedWords=a;var h="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",c={5:s(h),6:s(h+" let const class extends export import yield super")};i.keywords=c;var p="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",l=new RegExp("["+p+"]"),f=new RegExp("["+p+u+"]");p=u=null;var d=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],m=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239]},{}],8:[function(t,e,i){"use strict";function s(t,e){for(var i=1,s=0;;){o.lastIndex=s;var n=o.exec(t);if(!(n&&n.index<e))return new a(i,e-s);++i,s=n.index+n[0].length}}var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.getLineInfo=s,i.__esModule=!0;var r=t("./state").Parser,o=t("./whitespace").lineBreakG,a=(t("util").deprecate,i.Position=function(){function t(e,i){n(this,t),this.line=e,this.column=i}return t.prototype.offset=function(e){return new t(this.line,this.column+e)},t}()),h=(i.SourceLocation=function c(t,e,i){n(this,c),this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)},r.prototype);h.raise=function(t,e){var i=s(this.input,t);e+=" ("+i.line+":"+i.column+")";var n=new SyntaxError(e);throw n.pos=t,n.loc=i,n.raisedAt=this.pos,n},h.curPosition=function(){return new a(this.curLine,this.pos-this.lineStart)},h.markPosition=function(){return this.options.locations?[this.start,this.startLoc]:this.start}},{"./state":13,"./whitespace":19,util:5}],9:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./identifier").reservedWords,o=t("./util").has,a=n.prototype;a.toAssignable=function(t,e){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(var i=0;i<t.properties.length;i++){var s=t.properties[i];"init"!==s.kind&&this.raise(s.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(s.value,e)}break;case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,e);break;case"AssignmentExpression":"="===t.operator?t.type="AssignmentPattern":this.raise(t.left.end,"Only '=' operator can be used for specifying default value.");break;case"ParenthesizedExpression":t.expression=this.toAssignable(t.expression,e);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}return t},a.toAssignableList=function(t,e){var i=t.length;if(i){var s=t[i-1];if(s&&"RestElement"==s.type)--i;else if(s&&"SpreadElement"==s.type){s.type="RestElement";var n=s.argument;this.toAssignable(n,e),"Identifier"!==n.type&&"MemberExpression"!==n.type&&"ArrayPattern"!==n.type&&this.unexpected(n.start),--i}}for(var r=0;i>r;r++){var o=t[r];o&&this.toAssignable(o,e)}return t},a.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(t),this.finishNode(e,"SpreadElement")},a.parseRest=function(){var t=this.startNode();return this.next(),t.argument=this.type===s.name||this.type===s.bracketL?this.parseBindingAtom():this.unexpected(),this.finishNode(t,"RestElement")},a.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case s.name:return this.parseIdent();case s.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(s.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case s.braceL:return this.parseObj(!0);default:this.unexpected()}},a.parseBindingList=function(t,e,i){for(var n=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(s.comma),e&&this.type===s.comma)n.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===s.ellipsis){var o=this.parseRest();this.parseBindingListItem(o),n.push(o),this.expect(t);break}var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}return n},a.parseBindingListItem=function(t){return t},a.parseMaybeDefault=function(t,e,i){if(Array.isArray(t)&&this.options.locations&&void 0===noCalls&&(i=e,e=t[1],t=t[0]),i=i||this.parseBindingAtom(),!this.eat(s.eq))return i;var n=this.startNodeAt(t,e);return n.operator="=",n.left=i,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},a.checkLVal=function(t,e,i){switch(t.type){case"Identifier":this.strict&&(r.strictBind(t.name)||r.strict(t.name))&&this.raise(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),i&&(o(i,t.name)&&this.raise(t.start,"Argument name clash in strict mode"),i[t.name]=!0);break;case"MemberExpression":e&&this.raise(t.start,(e?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var s=0;s<t.properties.length;s++)this.checkLVal(t.properties[s].value,e,i);break;case"ArrayPattern":for(var s=0;s<t.elements.length;s++){var n=t.elements[s];n&&this.checkLVal(n,e,i)}break;case"AssignmentPattern":this.checkLVal(t.left,e,i);break;case"RestElement":this.checkLVal(t.argument,e,i);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,i);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}}},{"./identifier":7,"./state":13,"./tokentype":17,"./util":18}],10:[function(t,e,i){"use strict";var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var n=t("./state").Parser,r=t("./location").SourceLocation,o=n.prototype,a=i.Node=function h(){s(this,h)};o.startNode=function(){var t=new a;return t.start=this.start,this.options.locations&&(t.loc=new r(this,this.startLoc)),this.options.directSourceFile&&(t.sourceFile=this.options.directSourceFile),this.options.ranges&&(t.range=[this.start,0]),t},o.startNodeAt=function(t,e){var i=new a;return Array.isArray(t)&&this.options.locations&&void 0===e&&(e=t[1],t=t[0]),i.start=t,this.options.locations&&(i.loc=new r(this,e)),this.options.directSourceFile&&(i.sourceFile=this.options.directSourceFile),this.options.ranges&&(i.range=[t,0]),i},o.finishNode=function(t,e){return t.type=e,t.end=this.lastTokEnd,this.options.locations&&(t.loc.end=this.lastTokEndLoc),this.options.ranges&&(t.range[1]=this.lastTokEnd),t},o.finishNodeAt=function(t,e,i,s){return t.type=e,Array.isArray(i)&&this.options.locations&&void 0===s&&(s=i[1],i=i[0]),t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}},{"./location":8,"./state":13}],11:[function(t,e,i){"use strict";function s(t){var e={};for(var i in c)e[i]=t&&o(t,i)?t[i]:c[i];return a(e.onToken)&&!function(){var t=e.onToken;e.onToken=function(e){return t.push(e)}}(),a(e.onComment)&&(e.onComment=n(e,e.onComment)),e}function n(t,e){return function(i,s,n,r,o,a){var c={type:i?"Block":"Line",value:s,start:n,end:r};t.locations&&(c.loc=new h(this,o,a)),t.ranges&&(c.range=[n,r]),e.push(c)}}i.getOptions=s,i.__esModule=!0;var r=t("./util"),o=r.has,a=r.isArray,h=t("./location").SourceLocation,c={ecmaVersion:5,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:!0,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}};i.defaultOptions=c},{"./location":8,"./util":18}],12:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./whitespace").lineBreak,o=n.prototype;o.isUseStrict=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value},o.eat=function(t){return this.type===t?(this.next(),!0):!1},o.isContextual=function(t){return this.type===s.name&&this.value===t},o.eatContextual=function(t){return this.value===t&&this.eat(s.name)},o.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},o.canInsertSemicolon=function(){return this.type===s.eof||this.type===s.braceR||r.test(this.input.slice(this.lastTokEnd,this.start))},o.insertSemicolon=function(){return this.canInsertSemicolon()?(this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0):void 0},o.semicolon=function(){this.eat(s.semi)||this.insertSemicolon()||this.unexpected()},o.afterTrailingComma=function(t){return this.type==t?(this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),this.next(),!0):void 0},o.expect=function(t){this.eat(t)||this.unexpected()},o.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")}},{"./state":13,"./tokentype":17,"./whitespace":19}],13:[function(t,e,i){"use strict";function s(t,e,i){this.options=t,this.sourceFile=this.options.sourceFile||null,this.isKeyword=o[this.options.ecmaVersion>=6?6:5],this.isReservedWord=r[this.options.ecmaVersion],this.input=e,this.loadPlugins(this.options.plugins),i?(this.pos=i,this.lineStart=Math.max(0,this.input.lastIndexOf("\n",i)),this.curLine=this.input.slice(0,this.lineStart).split(h).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=null,this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.strict=this.inModule="module"===this.options.sourceType,this.potentialArrowAt=-1,this.inFunction=this.inGenerator=!1,this.labels=[],0===this.pos&&this.options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)}i.Parser=s,i.__esModule=!0;var n=t("./identifier"),r=n.reservedWords,o=n.keywords,a=t("./tokentype").types,h=t("./whitespace").lineBreak;s.prototype.extend=function(t,e){this[t]=e(this[t])};var c={};i.plugins=c,s.prototype.loadPlugins=function(t){for(var e in t){var s=i.plugins[e];if(!s)throw new Error("Plugin '"+e+"' not found");s(this,t[e])}}},{"./identifier":7,"./tokentype":17,"./whitespace":19}],14:[function(t,e,i){"use strict";var s=t("./tokentype").types,n=t("./state").Parser,r=t("./whitespace").lineBreak,o=n.prototype;o.parseTopLevel=function(t){var e=!0;for(t.body||(t.body=[]);this.type!==s.eof;){var i=this.parseStatement(!0,!0);t.body.push(i),e&&this.isUseStrict(i)&&this.setStrict(!0),e=!1}return this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),
|
||
this.finishNode(t,"Program")};var a={kind:"loop"},h={kind:"switch"};o.parseStatement=function(t,e){var i=this.type,n=this.startNode();switch(i){case s._break:case s._continue:return this.parseBreakContinueStatement(n,i.keyword);case s._debugger:return this.parseDebuggerStatement(n);case s._do:return this.parseDoStatement(n);case s._for:return this.parseForStatement(n);case s._function:return!t&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n);case s._class:return t||this.unexpected(),this.parseClass(n,!0);case s._if:return this.parseIfStatement(n);case s._return:return this.parseReturnStatement(n);case s._switch:return this.parseSwitchStatement(n);case s._throw:return this.parseThrowStatement(n);case s._try:return this.parseTryStatement(n);case s._let:case s._const:t||this.unexpected();case s._var:return this.parseVarStatement(n,i);case s._while:return this.parseWhileStatement(n);case s._with:return this.parseWithStatement(n);case s.braceL:return this.parseBlock();case s.semi:return this.parseEmptyStatement(n);case s._export:case s._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===s._import?this.parseImport(n):this.parseExport(n);default:var r=this.value,o=this.parseExpression();return i===s.name&&"Identifier"===o.type&&this.eat(s.colon)?this.parseLabeledStatement(n,r,o):this.parseExpressionStatement(n,o)}},o.parseBreakContinueStatement=function(t,e){var i="break"==e;this.next(),this.eat(s.semi)||this.insertSemicolon()?t.label=null:this.type!==s.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(t.label&&i)break}}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},o.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},o.parseDoStatement=function(t){return this.next(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.expect(s._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(s.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},o.parseForStatement=function(t){if(this.next(),this.labels.push(a),this.expect(s.parenL),this.type===s.semi)return this.parseFor(t,null);if(this.type===s._var||this.type===s._let||this.type===s._const){var e=this.startNode(),i=this.type;return this.next(),this.parseVar(e,!0,i),this.finishNode(e,"VariableDeclaration"),!(this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==e.declarations.length||i!==s._var&&e.declarations[0].init?this.parseFor(t,e):this.parseForIn(t,e)}var n={start:0},r=this.parseExpression(!0,n);return this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.toAssignable(r),this.checkLVal(r),this.parseForIn(t,r)):(n.start&&this.unexpected(n.start),this.parseFor(t,r))},o.parseFunctionStatement=function(t){return this.next(),this.parseFunction(t,!0)},o.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement(!1),t.alternate=this.eat(s._else)?this.parseStatement(!1):null,this.finishNode(t,"IfStatement")},o.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(s.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},o.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(s.braceL),this.labels.push(h);for(var e,i;this.type!=s.braceR;)if(this.type===s._case||this.type===s._default){var n=this.type===s._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raise(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(s.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(!0));return e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},o.parseThrowStatement=function(t){return this.next(),r.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var c=[];o.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===s._catch){var e=this.startNode();this.next(),this.expect(s.parenL),e.param=this.parseBindingAtom(),this.checkLVal(e.param,!0),this.expect(s.parenR),e.guard=null,e.body=this.parseBlock(),t.handler=this.finishNode(e,"CatchClause")}return t.guardedHandlers=c,t.finalizer=this.eat(s._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},o.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},o.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(a),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"WhileStatement")},o.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement(!1),this.finishNode(t,"WithStatement")},o.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},o.parseLabeledStatement=function(t,e,i){for(var n=0;n<this.labels.length;++n)this.labels[n].name===e&&this.raise(i.start,"Label '"+e+"' is already declared");var r=this.type.isLoop?"loop":this.type===s._switch?"switch":null;return this.labels.push({name:e,kind:r}),t.body=this.parseStatement(!0),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},o.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},o.parseBlock=function(t){var e=this.startNode(),i=!0,n=void 0;for(e.body=[],this.expect(s.braceL);!this.eat(s.braceR);){var r=this.parseStatement(!0);e.body.push(r),i&&t&&this.isUseStrict(r)&&(n=this.strict,this.setStrict(this.strict=!0)),i=!1}return n===!1&&this.setStrict(!1),this.finishNode(e,"BlockStatement")},o.parseFor=function(t,e){return t.init=e,this.expect(s.semi),t.test=this.type===s.semi?null:this.parseExpression(),this.expect(s.semi),t.update=this.type===s.parenR?null:this.parseExpression(),this.expect(s.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,"ForStatement")},o.parseForIn=function(t,e){var i=this.type===s._in?"ForInStatement":"ForOfStatement";return this.next(),t.left=e,t.right=this.parseExpression(),this.expect(s.parenR),t.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(t,i)},o.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i.keyword;;){var n=this.startNode();if(this.parseVarId(n),this.eat(s.eq)?n.init=this.parseMaybeAssign(e):i!==s._const||this.type===s._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"==n.id.type||e&&(this.type===s._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(s.comma))break}return t},o.parseVarId=function(t){t.id=this.parseBindingAtom(),this.checkLVal(t.id,!0)},o.parseFunction=function(t,e,i){return this.initFunction(t),this.options.ecmaVersion>=6&&(t.generator=this.eat(s.star)),(e||this.type===s.name)&&(t.id=this.parseIdent()),this.parseFunctionParams(t),this.parseFunctionBody(t,i),this.finishNode(t,e?"FunctionDeclaration":"FunctionExpression")},o.parseFunctionParams=function(t){this.expect(s.parenL),t.params=this.parseBindingList(s.parenR,!1,!1)},o.parseClass=function(t,e){this.next(),this.parseClassId(t,e),this.parseClassSuper(t);var i=this.startNode(),n=!1;for(i.body=[],this.expect(s.braceL);!this.eat(s.braceR);)if(!this.eat(s.semi)){var r=this.startNode(),o=this.eat(s.star),a=this.type===s.name&&"static"===this.value;if(this.parsePropertyName(r),r["static"]=a&&this.type!==s.parenL,r["static"]&&(o&&this.unexpected(),o=this.eat(s.star),this.parsePropertyName(r)),r.kind="method",!r.computed){var h=r.key,c=!1;o||"Identifier"!==h.type||this.type===s.parenL||"get"!==h.name&&"set"!==h.name||(c=!0,r.kind=h.name,h=this.parsePropertyName(r)),!r["static"]&&("Identifier"===h.type&&"constructor"===h.name||"Literal"===h.type&&"constructor"===h.value)&&(n&&this.raise(h.start,"Duplicate constructor in the same class"),c&&this.raise(h.start,"Constructor can't have get/set modifier"),o&&this.raise(h.start,"Constructor can't be a generator"),r.kind="constructor",n=!0)}this.parseClassMethod(i,r,o)}return t.body=this.finishNode(i,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},o.parseClassMethod=function(t,e,i){e.value=this.parseMethod(i),t.body.push(this.finishNode(e,"MethodDefinition"))},o.parseClassId=function(t,e){t.id=this.type===s.name?this.parseIdent():e?this.unexpected():null},o.parseClassSuper=function(t){t.superClass=this.eat(s._extends)?this.parseExprSubscripts():null},o.parseExport=function(t){if(this.next(),this.eat(s.star))return this.expectContextual("from"),t.source=this.type===s.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(s._default)){var e=this.parseMaybeAssign(),i=!0;return("FunctionExpression"==e.type||"ClassExpression"==e.type)&&(i=!1,e.id&&(e.type="FunctionExpression"==e.type?"FunctionDeclaration":"ClassDeclaration")),t.declaration=e,i&&this.semicolon(),this.finishNode(t,"ExportDefaultDeclaration")}return this.shouldParseExportStatement()?(t.declaration=this.parseStatement(!0),t.specifiers=[],t.source=null):(t.declaration=null,t.specifiers=this.parseExportSpecifiers(),this.eatContextual("from")?t.source=this.type===s.string?this.parseExprAtom():this.unexpected():t.source=null,this.semicolon()),this.finishNode(t,"ExportNamedDeclaration")},o.shouldParseExportStatement=function(){return this.type.keyword},o.parseExportSpecifiers=function(){var t=[],e=!0;for(this.expect(s.braceL);!this.eat(s.braceR);){if(e)e=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var i=this.startNode();i.local=this.parseIdent(this.type===s._default),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,t.push(this.finishNode(i,"ExportSpecifier"))}return t},o.parseImport=function(t){return this.next(),this.type===s.string?(t.specifiers=c,t.source=this.parseExprAtom(),t.kind=""):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===s.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},o.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===s.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(s.comma))return t}if(this.type===s.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportNamespaceSpecifier")),t}for(this.expect(s.braceL);!this.eat(s.braceR);){if(e)e=!1;else if(this.expect(s.comma),this.afterTrailingComma(s.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),i.local=this.eatContextual("as")?this.parseIdent():i.imported,this.checkLVal(i.local,!0),t.push(this.finishNode(i,"ImportSpecifier"))}return t}},{"./state":13,"./tokentype":17,"./whitespace":19}],15:[function(t,e,i){"use strict";var s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var n=t("./state").Parser,r=t("./tokentype").types,o=t("./whitespace").lineBreak,a=i.TokContext=function p(t,e,i,n){s(this,p),this.token=t,this.isExpr=e,this.preserveSpace=i,this.override=n},h={b_stat:new a("{",!1),b_expr:new a("{",!0),b_tmpl:new a("${",!0),p_stat:new a("(",!1),p_expr:new a("(",!0),q_tmpl:new a("`",!0,!0,function(t){return t.readTmplToken()}),f_expr:new a("function",!0)};i.types=h;var c=n.prototype;c.initialContext=function(){return[h.b_stat]},c.braceIsBlock=function(t){var e=void 0;return t===r.colon&&"{"==(e=this.curContext()).token?!e.isExpr:t===r._return?o.test(this.input.slice(this.lastTokEnd,this.start)):t===r._else||t===r.semi||t===r.eof?!0:t==r.braceL?this.curContext()===h.b_stat:!this.exprAllowed},c.updateContext=function(t){var e=void 0,i=this.type;i.keyword&&t==r.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},r.parenR.updateContext=r.braceR.updateContext=function(){if(1==this.context.length)return void(this.exprAllowed=!0);var t=this.context.pop();t===h.b_stat&&this.curContext()===h.f_expr?(this.context.pop(),this.exprAllowed=!1):t===h.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!t.isExpr},r.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?h.b_stat:h.b_expr),this.exprAllowed=!0},r.dollarBraceL.updateContext=function(){this.context.push(h.b_tmpl),this.exprAllowed=!0},r.parenL.updateContext=function(t){var e=t===r._if||t===r._for||t===r._with||t===r._while;this.context.push(e?h.p_stat:h.p_expr),this.exprAllowed=!0},r.incDec.updateContext=function(){},r._function.updateContext=function(){this.curContext()!==h.b_stat&&this.context.push(h.f_expr),this.exprAllowed=!1},r.backQuote.updateContext=function(){this.curContext()===h.q_tmpl?this.context.pop():this.context.push(h.q_tmpl),this.exprAllowed=!1}},{"./state":13,"./tokentype":17,"./whitespace":19}],16:[function(t,e,i){"use strict";function s(t){return 65535>=t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var r=t("./identifier"),o=r.isIdentifierStart,a=r.isIdentifierChar,h=t("./tokentype"),c=h.types,p=h.keywords,u=t("./state").Parser,l=t("./location").SourceLocation,f=t("./whitespace"),d=f.lineBreak,m=f.lineBreakG,y=f.isNewLine,x=f.nonASCIIwhitespace,v=i.Token=function C(t){n(this,C),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new l(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},b=u.prototype,g="undefined"!=typeof Packages;b.next=function(){this.options.onToken&&this.options.onToken(new v(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},b.getToken=function(){return this.next(),new v(this)},"undefined"!=typeof Symbol&&(b[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===c.eof,value:e}}}}),b.setStrict=function(t){if(this.strict=t,this.type===c.num||this.type===c.string){if(this.pos=this.start,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}},b.curContext=function(){return this.context[this.context.length-1]},b.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(c.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},b.readToken=function(t){return o(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},b.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(55295>=t||t>=57344)return t;var e=this.input.charCodeAt(this.pos+1);return(t<<10)+e-56613888},b.skipBlockComment=function(){var t=this.options.onComment&&this.options.locations&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations){m.lastIndex=e;for(var s=void 0;(s=m.exec(this.input))&&s.index<this.pos;)++this.curLine,this.lineStart=s.index+s[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.options.locations&&this.curPosition())},b.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.options.locations&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&10!==s&&13!==s&&8232!==s&&8233!==s;)++this.pos,s=this.input.charCodeAt(this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.options.locations&&this.curPosition())},b.skipSpace=function(){for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);if(32===t)++this.pos;else if(13===t){++this.pos;var e=this.input.charCodeAt(this.pos);10===e&&++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos)}else if(10===t||8232===t||8233===t)++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);else if(t>8&&14>t)++this.pos;else if(47===t){var e=this.input.charCodeAt(this.pos+1);if(42===e)this.skipBlockComment();else{if(47!==e)break;this.skipLineComment(2)}}else if(160===t)++this.pos;else{if(!(t>=5760&&x.test(String.fromCharCode(t))))break;++this.pos}}},b.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},b.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&57>=t)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(c.ellipsis)):(++this.pos,this.finishToken(c.dot))},b.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(c.assign,2):this.finishOp(c.slash,1)},b.readToken_mult_modulo=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(c.assign,2):this.finishOp(42===t?c.star:c.modulo,1)},b.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?c.logicalOR:c.logicalAND,2):61===e?this.finishOp(c.assign,2):this.finishOp(124===t?c.bitwiseOR:c.bitwiseAND,1)},b.readToken_caret=function(){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(c.assign,2):this.finishOp(c.bitwiseXOR,1)},b.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45==e&&62==this.input.charCodeAt(this.pos+2)&&d.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(c.incDec,2):61===e?this.finishOp(c.assign,2):this.finishOp(c.plusMin,1)},b.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(c.assign,i+1):this.finishOp(c.bitShift,i)):33==e&&60==t&&45==this.input.charCodeAt(this.pos+2)&&45==this.input.charCodeAt(this.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===e&&(i=61===this.input.charCodeAt(this.pos+2)?3:2),this.finishOp(c.relational,i))},b.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(c.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(c.arrow)):this.finishOp(61===t?c.eq:c.prefix,1)},b.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(c.parenL);case 41:return++this.pos,this.finishToken(c.parenR);case 59:return++this.pos,this.finishToken(c.semi);case 44:return++this.pos,this.finishToken(c.comma);case 91:return++this.pos,this.finishToken(c.bracketL);case 93:return++this.pos,this.finishToken(c.bracketR);case 123:return++this.pos,this.finishToken(c.braceL);case 125:return++this.pos,this.finishToken(c.braceR);case 58:return++this.pos,this.finishToken(c.colon);case 63:return++this.pos,this.finishToken(c.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(c.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(c.prefix,1)}this.raise(this.pos,"Unexpected character '"+s(t)+"'")},b.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)};var k=!1;try{new RegExp("","u"),k=!0}catch(w){}b.readRegexp=function(){for(var t=void 0,e=void 0,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(d.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var r=this.readWord1(),o=n;if(r){var a=/^[gmsiy]*$/;this.options.ecmaVersion>=6&&(a=/^[gmsiyu]*$/),a.test(r)||this.raise(i,"Invalid regular expression flag"),r.indexOf("u")>=0&&!k&&(o=o.replace(/\\u([a-fA-F0-9]{4})|\\u\{([0-9a-fA-F]+)\}|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}var h=null;if(!g){try{new RegExp(o)}catch(p){p instanceof SyntaxError&&this.raise(i,"Error parsing regular expression: "+p.message),this.raise(p)}try{h=new RegExp(n,r)}catch(u){}}return this.finishToken(c.regexp,{pattern:n,flags:r,value:h})},b.readInt=function(t,e){for(var i=this.pos,s=0,n=0,r=null==e?1/0:e;r>n;++n){var o=this.input.charCodeAt(this.pos),a=void 0;if(a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&57>=o?o-48:1/0,a>=t)break;++this.pos,s=s*t+a}return this.pos===i||null!=e&&this.pos-i!==e?null:s},b.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),o(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(c.num,e)},b.readNumber=function(t){var e=this.pos,i=!1,s=48===this.input.charCodeAt(this.pos);t||null!==this.readInt(10)||this.raise(e,"Invalid number"),46===this.input.charCodeAt(this.pos)&&(++this.pos,this.readInt(10),i=!0);var n=this.input.charCodeAt(this.pos);(69===n||101===n)&&(n=this.input.charCodeAt(++this.pos),(43===n||45===n)&&++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number"),i=!0),o(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r=this.input.slice(e,this.pos),a=void 0;return i?a=parseFloat(r):s&&1!==r.length?/[89]/.test(r)||this.strict?this.raise(e,"Invalid number"):a=parseInt(r,8):a=parseInt(r,10),this.finishToken(c.num,a)},b.readCodePoint=function(){var t=this.input.charCodeAt(this.pos),e=void 0;return 123===t?(this.options.ecmaVersion<6&&this.unexpected(),++this.pos,e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.unexpected()):e=this.readHexChar(4),e},b.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(),i=this.pos):(y(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(c.string,e)},b.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos===this.start&&this.type===c.template?36===i?(this.pos+=2,this.finishToken(c.dollarBraceL)):(++this.pos,this.finishToken(c.backQuote)):(t+=this.input.slice(e,this.pos),this.finishToken(c.template,t));92===i?(t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(),e=this.pos):y(i)?(t+=this.input.slice(e,this.pos),++this.pos,13===i&&10===this.input.charCodeAt(this.pos)?(++this.pos,t+="\n"):t+=String.fromCharCode(i),this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos):++this.pos}},b.readEscapedChar=function(){var t=this.input.charCodeAt(++this.pos),e=/^[0-7]+/.exec(this.input.slice(this.pos,this.pos+3));for(e&&(e=e[0]);e&&parseInt(e,8)>255;)e=e.slice(0,-1);if("0"===e&&(e=null),++this.pos,e)return this.strict&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=e.length-1,String.fromCharCode(parseInt(e,8));switch(t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\x0B";case 102:return"\f";case 48:return"\x00";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:return String.fromCharCode(t)}},b.readHexChar=function(t){var e=this.readInt(16,t);return null===e&&this.raise(this.start,"Bad character escape sequence"),e};var E;b.readWord1=function(){E=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(a(r,n))this.pos+=65535>=r?1:2;else{if(92!==r)break;E=!0,t+=this.input.slice(i,this.pos);var h=this.pos;117!=this.input.charCodeAt(++this.pos)&&this.raise(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(e?o:a)(c,n)||this.raise(h,"Invalid Unicode escape"),t+=s(c),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},b.readWord=function(){var t=this.readWord1(),e=c.name;return(this.options.ecmaVersion>=6||!E)&&this.isKeyword(t)&&(e=p[t]),this.finishToken(e,t)}},{"./identifier":7,"./location":8,"./state":13,"./tokentype":17,"./whitespace":19}],17:[function(t,e,i){"use strict";function s(t,e){return new o(t,{beforeExpr:!0,binop:e})}function n(t){var e=void 0===arguments[1]?{}:arguments[1];e.keyword=t,p[t]=c["_"+t]=new o(t,e)}var r=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.__esModule=!0;var o=i.TokenType=function u(t){var e=void 0===arguments[1]?{}:arguments[1];r(this,u),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null},a={beforeExpr:!0},h={startsExpr:!0},c={num:new o("num",h),regexp:new o("regexp",h),string:new o("string",h),name:new o("name",h),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",a),semi:new o(";",a),colon:new o(":",a),dot:new o("."),question:new o("?",a),arrow:new o("=>",a),template:new o("template"),ellipsis:new o("...",a),backQuote:new o("`",h),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:s("||",1),logicalAND:s("&&",2),bitwiseOR:s("|",3),bitwiseXOR:s("^",4),bitwiseAND:s("&",5),equality:s("==/!=",6),relational:s("</>",7),bitShift:s("<</>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:s("%",10),star:s("*",10),slash:s("/",10)};i.types=c;var p={};i.keywords=p,n("break"),n("case",a),n("catch"),n("continue"),n("debugger"),n("default"),n("do",{isLoop:!0}),n("else",a),n("finally"),n("for",{isLoop:!0}),n("function",h),n("if"),n("return",a),n("switch"),n("throw",a),n("try"),n("var"),n("let"),n("const"),n("while",{isLoop:!0}),n("with"),n("new",{beforeExpr:!0,startsExpr:!0}),n("this",h),n("super",h),n("class"),n("extends",a),n("export"),n("import"),n("yield",{beforeExpr:!0,startsExpr:!0}),n("null",h),n("true",h),n("false",h),n("in",{beforeExpr:!0,binop:7}),n("instanceof",{beforeExpr:!0,binop:7}),n("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),n("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),n("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{}],18:[function(t,e,i){"use strict";function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}i.isArray=s,i.has=n,i.__esModule=!0},{}],19:[function(t,e,i){"use strict";function s(t){return 10===t||13===t||8232===t||8233==t}i.isNewLine=s,i.__esModule=!0;var n=/\r\n?|\n|\u2028|\u2029/;i.lineBreak=n;var r=new RegExp(n.source,"g");i.lineBreakG=r;var o=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;i.nonASCIIwhitespace=o},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],33:[function(t,e,i){(function(s){!function(t){if("object"==typeof i&&"undefined"!=typeof e)e.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof s?s:"undefined"!=typeof self?self:this,(n.acorn||(n.acorn={})).walk=t()}}(function(){return function e(i,s,n){function r(a,h){if(!s[a]){if(!i[a]){var c="function"==typeof t&&t;if(!h&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=s[a]={exports:{}};i[a][0].call(u.exports,function(t){var e=i[a][1][t];return r(e?e:t)},u,u.exports,e,i,s,n)}return s[a].exports}for(var o="function"==typeof t&&t,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";function s(t,e,s,n){s||(s=i.base),function r(t,i,n){var o=n||t.type,a=e[o];s[o](t,i,r),a&&a(t,i)}(t,n)}function n(t,e,s,n){s||(s=i.base),n||(n=[]),function r(t,i,n){var o=n||t.type,a=e[o];t!=i[i.length-1]&&(i=i.slice(),i.push(t)),s[o](t,i,r),a&&a(t,i)}(t,n)}function r(t,e,s,n){var r=s?i.make(s,n):n;!function o(t,e,i){r[i||t.type](t,e,o)}(t,e)}function o(t){return"string"==typeof t?function(e){return e==t}:t?t:function(){return!0}}function a(t,e,s,n,r,a){n=o(n),r||(r=i.base);try{!function c(t,i,o){var a=o||t.type;if((null==e||t.start<=e)&&(null==s||t.end>=s)&&r[a](t,i,c),n(a,t)&&(null==e||t.start==e)&&(null==s||t.end==s))throw new m(t,i)}(t,a)}catch(h){if(h instanceof m)return h;throw h}}function h(t,e,s,n,r){s=o(s),n||(n=i.base);try{!function h(t,i,r){var o=r||t.type;if(!(t.start>e||t.end<e)&&(n[o](t,i,h),s(o,t)))throw new m(t,i)}(t,r)}catch(a){if(a instanceof m)return a;throw a}}function c(t,e,s,n,r){s=o(s),n||(n=i.base);try{!function h(t,i,r){if(!(t.end<e)){var o=r||t.type;if(t.start>=e&&s(o,t))throw new m(t,i);n[o](t,i,h)}}(t,r)}catch(a){if(a instanceof m)return a;throw a}}function p(t,e,s,n,r){s=o(s),n||(n=i.base);var a=void 0;return function h(t,i,r){if(!(t.start>e)){var o=r||t.type;t.end<=e&&(!a||a.node.end<t.end)&&s(o,t)&&(a=new m(t,i)),n[o](t,i,h)}}(t,r),a}function u(t,e){e||(e=i.base);var s={};for(var n in e)s[n]=e[n];for(var n in t)s[n]=t[n];return s;
|
||
}function l(t,e,i){i(t,e)}function f(t,e,i){}var d=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};i.simple=s,i.ancestor=n,i.recursive=r,i.findNodeAt=a,i.findNodeAround=h,i.findNodeAfter=c,i.findNodeBefore=p,i.make=u,i.__esModule=!0;var m=function x(t,e){d(this,x),this.node=t,this.state=e},y={};i.base=y,y.Program=y.BlockStatement=function(t,e,i){for(var s=0;s<t.body.length;++s)i(t.body[s],e,"Statement")},y.Statement=l,y.EmptyStatement=f,y.ExpressionStatement=y.ParenthesizedExpression=function(t,e,i){return i(t.expression,e,"Expression")},y.IfStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Statement"),t.alternate&&i(t.alternate,e,"Statement")},y.LabeledStatement=function(t,e,i){return i(t.body,e,"Statement")},y.BreakStatement=y.ContinueStatement=f,y.WithStatement=function(t,e,i){i(t.object,e,"Expression"),i(t.body,e,"Statement")},y.SwitchStatement=function(t,e,i){i(t.discriminant,e,"Expression");for(var s=0;s<t.cases.length;++s){var n=t.cases[s];n.test&&i(n.test,e,"Expression");for(var r=0;r<n.consequent.length;++r)i(n.consequent[r],e,"Statement")}},y.ReturnStatement=y.YieldExpression=function(t,e,i){t.argument&&i(t.argument,e,"Expression")},y.ThrowStatement=y.SpreadElement=y.RestElement=function(t,e,i){return i(t.argument,e,"Expression")},y.TryStatement=function(t,e,i){i(t.block,e,"Statement"),t.handler&&i(t.handler.body,e,"ScopeBody"),t.finalizer&&i(t.finalizer,e,"Statement")},y.WhileStatement=y.DoWhileStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.body,e,"Statement")},y.ForStatement=function(t,e,i){t.init&&i(t.init,e,"ForInit"),t.test&&i(t.test,e,"Expression"),t.update&&i(t.update,e,"Expression"),i(t.body,e,"Statement")},y.ForInStatement=y.ForOfStatement=function(t,e,i){i(t.left,e,"ForInit"),i(t.right,e,"Expression"),i(t.body,e,"Statement")},y.ForInit=function(t,e,i){"VariableDeclaration"==t.type?i(t,e):i(t,e,"Expression")},y.DebuggerStatement=f,y.FunctionDeclaration=function(t,e,i){return i(t,e,"Function")},y.VariableDeclaration=function(t,e,i){for(var s=0;s<t.declarations.length;++s){var n=t.declarations[s];n.init&&i(n.init,e,"Expression")}},y.Function=function(t,e,i){return i(t.body,e,"ScopeBody")},y.ScopeBody=function(t,e,i){return i(t,e,"Statement")},y.Expression=l,y.ThisExpression=y.Super=y.MetaProperty=f,y.ArrayExpression=y.ArrayPattern=function(t,e,i){for(var s=0;s<t.elements.length;++s){var n=t.elements[s];n&&i(n,e,"Expression")}},y.ObjectExpression=y.ObjectPattern=function(t,e,i){for(var s=0;s<t.properties.length;++s)i(t.properties[s],e)},y.FunctionExpression=y.ArrowFunctionExpression=y.FunctionDeclaration,y.SequenceExpression=y.TemplateLiteral=function(t,e,i){for(var s=0;s<t.expressions.length;++s)i(t.expressions[s],e,"Expression")},y.UnaryExpression=y.UpdateExpression=function(t,e,i){i(t.argument,e,"Expression")},y.BinaryExpression=y.AssignmentExpression=y.AssignmentPattern=y.LogicalExpression=function(t,e,i){i(t.left,e,"Expression"),i(t.right,e,"Expression")},y.ConditionalExpression=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Expression"),i(t.alternate,e,"Expression")},y.NewExpression=y.CallExpression=function(t,e,i){if(i(t.callee,e,"Expression"),t.arguments)for(var s=0;s<t.arguments.length;++s)i(t.arguments[s],e,"Expression")},y.MemberExpression=function(t,e,i){i(t.object,e,"Expression"),t.computed&&i(t.property,e,"Expression")},y.ExportNamedDeclaration=y.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},y.ImportDeclaration=function(t,e,i){for(var s=0;s<t.specifiers.length;s++)i(t.specifiers[s],e)},y.ImportSpecifier=y.ImportDefaultSpecifier=y.ImportNamespaceSpecifier=y.Identifier=y.Literal=f,y.TaggedTemplateExpression=function(t,e,i){i(t.tag,e,"Expression"),i(t.quasi,e)},y.ClassDeclaration=y.ClassExpression=function(t,e,i){t.superClass&&i(t.superClass,e,"Expression");for(var s=0;s<t.body.body.length;s++)i(t.body.body[s],e)},y.MethodDefinition=y.Property=function(t,e,i){t.computed&&i(t.key,e,"Expression"),i(t.value,e,"Expression")},y.ComprehensionExpression=function(t,e,i){for(var s=0;s<t.blocks.length;s++)i(t.blocks[s].right,e,"Expression");i(t.body,e,"Expression")}},{}]},{},[1])(1)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],34:[function(t,e,i){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},{}],35:[function(t,e,i){"use strict";function s(t){try{return a.parse(t,{ecmaVersion:5,allowReturnOutsideFunction:!0})}catch(e){if("SyntaxError"!==e.name)throw e;return a.parse(t,{ecmaVersion:6,allowReturnOutsideFunction:!0})}}function n(t,e,i){t+="",e+="",i=i||[],i=i.concat(o(t).map(function(t){return t.name}));var s=o(e).map(function(t){return t.name}).filter(function(t){return-1===i.indexOf(t)});if(0===s.length)return e;var n="",a="locals_for_with",h="result_of_with";if(/^[a-zA-Z0-9$_]+$/.test(t))a=t;else{for(;-1!=s.indexOf(a)||-1!=i.indexOf(a);)a+="_";n="var "+a+" = ("+t+")"}for(;-1!=s.indexOf(h)||-1!=i.indexOf(h);)h+="_";var c=s.map(function(t){return JSON.stringify(t)+" in "+a+"?"+a+"."+t+":typeof "+t+'!=="undefined"?'+t+":undefined"});return e="(function ("+s.join(", ")+") {"+e+"}.call(this"+c.map(function(t){return","+t}).join("")+"))",";"+n+";"+r(e,h)+";"}function r(t,e){function i(e){return t.slice(e.start,e.end).join("")}function n(e,i){for(var s=e.start;s<e.end;s++)t[s]="";t[e.start]=i}var r,o=t,a=!1,c=s(t);if(t=t.split(""),1!==(r=c.body).length||"ExpressionStatement"!==(r=r[0]).type||"CallExpression"!==(r=r.expression).type||"MemberExpression"!==(r=r.callee).type||r.computed!==!1||"call"!==r.property.name||"FunctionExpression"!==(r=r.object).type)throw new Error("AST does not seem to represent a self-calling function");var p=r;return h.recursive(c,null,{Function:function(t,e,i){t===p&&i(t.body,e,"ScopeBody")},ReturnStatement:function(t){a=!0,n(t,"return {value: "+i(t.argument)+"};")}}),a?"var "+e+"="+t.join("")+";if ("+e+") return "+e+".value":o}var o=t("acorn-globals"),a=t("acorn"),h=t("acorn/dist/walk");h.base.ExportNamedDeclaration=h.base.ExportDefaultDeclaration=function(t,e,i){return i(t.declaration,e)},h.base.ImportDefaultSpecifier=h.base.ImportNamespaceSpecifier=function(){},e.exports=n},{acorn:37,"acorn-globals":36,"acorn/dist/walk":38}],36:[function(t,e,i){arguments[4][31][0].apply(i,arguments)},{acorn:37,"acorn/dist/walk":38,dup:31}],37:[function(t,e,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],38:[function(t,e,i){arguments[4][33][0].apply(i,arguments)},{dup:33}]},{},[1])(1)}); |