20 lines
627 KiB
JavaScript
20 lines
627 KiB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.pug=e()}}(function(){var e;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";function r(e){return"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ArrowFunctionExpression"===e.type||"Program"===e.type}function i(e){return"BlockStatement"===e.type||r(e)}function o(e){return"FunctionExpression"===e.type||"FunctionDeclaration"===e.type}function s(e){return"FunctionExpression"===e.type||"FunctionDeclaration"===e.type}function a(e){return c.parse(e,{allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,allowHashBang:!0})}function u(e){function t(e,t){var n=e.name;if("undefined"!==n){for(var r=0;r<t.length;r++){if("arguments"===n&&o(t[r]))return;if(t[r].locals&&n in t[r].locals)return}e.parents=t,u.push(e)}}var n,u=[];if(!(n="string"==typeof e?a(e):e)||"object"!=typeof n||"Program"!==n.type)throw new TypeError("Source must be either a string of JavaScript or an acorn AST");var c=function(e){var t=e;t.locals=t.locals||{},e.params.forEach(function(e){p(e,t)}),e.id&&(t.locals[e.id.name]=!0)},p=function(e,t){switch(e.type){case"Identifier":t.locals[e.name]=!0;break;case"ObjectPattern":e.properties.forEach(function(e){p(e.value,t)});break;case"ArrayPattern":e.elements.forEach(function(e){e&&p(e,t)});break;case"RestElement":p(e.argument,t);break;case"AssignmentPattern":p(e.left,t);break;default:throw new Error("Unrecognized pattern type: "+e.type)}},f=function(e,t){n.locals=n.locals||{},n.locals[e.local.name]=!0};l.ancestor(n,{VariableDeclaration:function(e,t){for(var n=null,o=t.length-1;o>=0&&null===n;o--)("var"===e.kind?r(t[o]):i(t[o]))&&(n=t[o]);n.locals=n.locals||{},e.declarations.forEach(function(e){p(e.id,n)})},FunctionDeclaration:function(e,t){for(var n=null,i=t.length-2;i>=0&&null===n;i--)r(t[i])&&(n=t[i]);n.locals=n.locals||{},n.locals[e.id.name]=!0,c(e)},Function:c,ClassDeclaration:function(e,t){for(var n=null,i=t.length-2;i>=0&&null===n;i--)r(t[i])&&(n=t[i]);n.locals=n.locals||{},n.locals[e.id.name]=!0},TryStatement:function(e){null!==e.handler&&(e.handler.locals=e.handler.locals||{},e.handler.locals[e.handler.param.name]=!0)},ImportDefaultSpecifier:f,ImportSpecifier:f,ImportNamespaceSpecifier:f}),l.ancestor(n,{VariablePattern:t,Identifier:t,ThisExpression:function(e,t){for(var n=0;n<t.length;n++)if(s(t[n]))return;e.parents=t,u.push(e)}});var h={};return u.forEach(function(e){var t="ThisExpression"===e.type?"this":e.name;h[t]=h[t]||[],h[t].push(e)}),Object.keys(h).sort().map(function(e){return{name:e,nodes:h[e]}})}var c=e("acorn"),l=e("acorn/dist/walk");t.exports=u,t.exports.parse=a},{acorn:2,"acorn/dist/walk":3}],2:[function(t,n,r){!function(t,i){"object"==typeof r&&void 0!==n?i(r):"function"==typeof e&&e.amd?e(["exports"],i):i(t.acorn=t.acorn||{})}(this,function(e){"use strict";function t(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function n(e,n){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&A.test(String.fromCharCode(e)):n!==!1&&t(e,S)))}function r(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&C.test(String.fromCharCode(e)):n!==!1&&(t(e,S)||t(e,T)))))}function i(e,t){return new O(e,{beforeExpr:!0,binop:t})}function o(e,t){return void 0===t&&(t={}),t.keyword=e,B[e]=new O(e,t)}function s(e){return 10===e||13===e||8232===e||8233===e}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n=1,r=0;;){M.lastIndex=r;var i=M.exec(e);if(!(i&&i.index<t))return new I(n,t-r);++n,r=i.index+i[0].length}}function l(e){var t={};for(var n in V)t[n]=e&&u(e,n)?e[n]:V[n];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),a(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return a(t.onComment)&&(t.onComment=p(t,t.onComment)),t}function p(e,t){return function(n,r,i,o,s,a){var u={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(u.loc=new j(this,s,a)),e.ranges&&(u.range=[i,o]),t.push(u)}}function f(e){return new RegExp("^("+e.replace(/ /g,"|")+")$")}function h(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}function d(e,t,n,r){try{return new RegExp(e,t)}catch(e){if(void 0!==n)throw e instanceof SyntaxError&&r.raise(n,"Error parsing regular expression: "+e.message),e}}function m(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function g(e,t){return new z(t,e).parse()}function v(e,t,n){var r=new z(n,e,t);return r.nextToken(),r.parseExpression()}function y(e,t){return new z(t,e)}function b(t,n,r){e.parse_dammit=t,e.LooseParser=n,e.pluginsLoose=r}var _={3:"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:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},x="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",w={5:x,6:x+" const class extends export import super"},k="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",A=new RegExp("["+k+"]"),C=new RegExp("["+k+E+"]");k=E=null;var S=[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,19,35,5,35,5,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,66,18,2,1,11,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,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,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,60,67,1213,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,3,5761,10591,541],T=[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,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,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,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239],O=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null},F={beforeExpr:!0},L={startsExpr:!0},B={},D={num:new O("num",L),regexp:new O("regexp",L),string:new O("string",L),name:new O("name",L),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(",",F),semi:new O(";",F),colon:new O(":",F),dot:new O("."),question:new O("?",F),arrow:new O("=>",F),template:new O("template"),ellipsis:new O("...",F),backQuote:new O("`",L),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:i("||",1),logicalAND:i("&&",2),bitwiseOR:i("|",3),bitwiseXOR:i("^",4),bitwiseAND:i("&",5),equality:i("==/!=",6),relational:i("</>",7),bitShift:i("<</>>",8),plusMin:new O("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:i("%",10),star:i("*",10),slash:i("/",10),starstar:new O("**",{beforeExpr:!0}),_break:o("break"),_case:o("case",F),_catch:o("catch"),_continue:o("continue"),_debugger:o("debugger"),_default:o("default",F),_do:o("do",{isLoop:!0,beforeExpr:!0}),_else:o("else",F),_finally:o("finally"),_for:o("for",{isLoop:!0}),_function:o("function",L),_if:o("if"),_return:o("return",F),_switch:o("switch"),_throw:o("throw",F),_try:o("try"),_var:o("var"),_const:o("const"),_while:o("while",{isLoop:!0}),_with:o("with"),_new:o("new",{beforeExpr:!0,startsExpr:!0}),_this:o("this",L),_super:o("super",L),_class:o("class"),_extends:o("extends",F),_export:o("export"),_import:o("import"),_null:o("null",L),_true:o("true",L),_false:o("false",L),_in:o("in",{beforeExpr:!0,binop:7}),_instanceof:o("instanceof",{beforeExpr:!0,binop:7}),_typeof:o("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:o("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:o("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,M=new RegExp(R.source,"g"),N=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,P=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,I=function(e,t){this.line=e,this.column=t};I.prototype.offset=function(e){return new I(this.line,this.column+e)};var j=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)},V={ecmaVersion:7,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}},U={},z=function(e,t,n){this.options=e=l(e),this.sourceFile=e.sourceFile,this.keywords=f(w[e.ecmaVersion>=6?6:5]);var r="";if(!e.allowReserved){for(var i=e.ecmaVersion;!(r=_[i]);i--);"module"==e.sourceType&&(r+=" await")}this.reservedWords=f(r);var o=(r?r+" ":"")+_.strict;this.reservedWordsStrict=f(o),this.reservedWordsStrictBind=f(o+" "+_.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=D.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.inFunction=this.inGenerator=this.inAsync=!1,this.yieldPos=this.awaitPos=0,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)};z.prototype.isKeyword=function(e){return this.keywords.test(e)},z.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},z.prototype.extend=function(e,t){this[e]=t(this[e])},z.prototype.loadPlugins=function(e){var t=this;for(var n in e){var r=U[n];if(!r)throw new Error("Plugin '"+n+"' not found");r(t,e[n])}},z.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var q=z.prototype,$=/^(?:'((?:[^\']|\.)*)'|"((?:[^\"]|\.)*)"|;)/;q.strictDirective=function(e){for(var t=this;;){P.lastIndex=e,e+=P.exec(t.input)[0].length;var n=$.exec(t.input.slice(e));if(!n)return!1;if("use strict"==(n[1]||n[2]))return!0;e+=n[0].length}},q.eat=function(e){return this.type===e&&(this.next(),!0)},q.isContextual=function(e){return this.type===D.name&&this.value===e},q.eatContextual=function(e){return this.value===e&&this.eat(D.name)},q.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},q.canInsertSemicolon=function(){return this.type===D.eof||this.type===D.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},q.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},q.semicolon=function(){this.eat(D.semi)||this.insertSemicolon()||this.unexpected()},q.afterTrailingComma=function(e,t){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},q.expect=function(e){this.eat(e)||this.unexpected()},q.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var H=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=-1};q.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},q.checkExpressionErrors=function(e,t){var n=e?e.shorthandAssign:-1;if(!t)return n>=0;n>-1&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")},q.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},q.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var W=z.prototype;W.parseTopLevel=function(e){var t=this,n={};for(e.body||(e.body=[]);this.type!==D.eof;){var r=t.parseStatement(!0,!0,n);e.body.push(r)}return this.next(),this.options.ecmaVersion>=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var G={kind:"loop"},X={kind:"switch"};W.isLet=function(){if(this.type!==D.name||this.options.ecmaVersion<6||"let"!=this.value)return!1;P.lastIndex=this.pos;var e=P.exec(this.input),t=this.pos+e[0].length,i=this.input.charCodeAt(t);if(91===i||123==i)return!0;if(n(i,!0)){for(var o=t+1;r(this.input.charCodeAt(o),!0);++o);var s=this.input.slice(t,o);if(!this.isKeyword(s))return!0}return!1},W.isAsyncFunction=function(){if(this.type!==D.name||this.options.ecmaVersion<8||"async"!=this.value)return!1;P.lastIndex=this.pos;var e=P.exec(this.input),t=this.pos+e[0].length;return!(R.test(this.input.slice(this.pos,t))||"function"!==this.input.slice(t,t+8)||t+8!=this.input.length&&r(this.input.charAt(t+8)))},W.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet()&&(i=D._var,r="let"),i){case D._break:case D._continue:return this.parseBreakContinueStatement(o,i.keyword);case D._debugger:return this.parseDebuggerStatement(o);case D._do:return this.parseDoStatement(o);case D._for:return this.parseForStatement(o);case D._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1);case D._class:return e||this.unexpected(),this.parseClass(o,!0);case D._if:return this.parseIfStatement(o);case D._return:return this.parseReturnStatement(o);case D._switch:return this.parseSwitchStatement(o);case D._throw:return this.parseThrowStatement(o);case D._try:return this.parseTryStatement(o);case D._const:case D._var:return r=r||this.value,e||"var"==r||this.unexpected(),this.parseVarStatement(o,r);case D._while:return this.parseWhileStatement(o);case D._with:return this.parseWithStatement(o);case D.braceL:return this.parseBlock();case D.semi:return this.parseEmptyStatement(o);case D._export:case D._import:return this.options.allowImportExportEverywhere||(t||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===D._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction()&&e)return this.next(),this.parseFunctionStatement(o,!0);var s=this.value,a=this.parseExpression();return i===D.name&&"Identifier"===a.type&&this.eat(D.colon)?this.parseLabeledStatement(o,s,a):this.parseExpressionStatement(o,a)}},W.parseBreakContinueStatement=function(e,t){var n=this,r="break"==t;this.next(),this.eat(D.semi)||this.insertSemicolon()?e.label=null:this.type!==D.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var o=n.labels[i];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(r||"loop"===o.kind))break;if(e.label&&r)break}}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},W.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},W.parseDoStatement=function(e){return this.next(),this.labels.push(G),e.body=this.parseStatement(!1),this.labels.pop(),this.expect(D._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(D.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},W.parseForStatement=function(e){if(this.next(),this.labels.push(G),this.expect(D.parenL),this.type===D.semi)return this.parseFor(e,null);var t=this.isLet();if(this.type===D._var||this.type===D._const||t){var n=this.startNode(),r=t?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),!(this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==n.declarations.length||"var"!==r&&n.declarations[0].init?this.parseFor(e,n):this.parseForIn(e,n)}var i=new H,o=this.parseExpression(!0,i);return this.type===D._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.toAssignable(o),this.checkLVal(o),this.checkPatternErrors(i,!0),this.parseForIn(e,o)):(this.checkExpressionErrors(i,!0),this.parseFor(e,o))},W.parseFunctionStatement=function(e,t){return this.next(),this.parseFunction(e,!0,!1,t)},W.isFunction=function(){return this.type===D._function||this.isAsyncFunction()},W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!this.strict&&this.isFunction()),e.alternate=this.eat(D._else)?this.parseStatement(!this.strict&&this.isFunction()):null,this.finishNode(e,"IfStatement")},W.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(D.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},W.parseSwitchStatement=function(e){var t=this;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(D.braceL),this.labels.push(X);for(var n,r=!1;this.type!=D.braceR;)if(t.type===D._case||t.type===D._default){var i=t.type===D._case;n&&t.finishNode(n,"SwitchCase"),e.cases.push(n=t.startNode()),n.consequent=[],t.next(),i?n.test=t.parseExpression():(r&&t.raiseRecoverable(t.lastTokStart,"Multiple default clauses"),r=!0,n.test=null),t.expect(D.colon)}else n||t.unexpected(),n.consequent.push(t.parseStatement(!0));return n&&this.finishNode(n,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},W.parseThrowStatement=function(e){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Y=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===D._catch){var t=this.startNode();this.next(),this.expect(D.parenL),t.param=this.parseBindingAtom(),this.checkLVal(t.param,!0),this.expect(D.parenR),t.body=this.parseBlock(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(D._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},W.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(G),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},W.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},W.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},W.parseLabeledStatement=function(e,t,n){for(var r=this,i=0;i<this.labels.length;++i)r.labels[i].name===t&&r.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===D._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var a=r.labels[s];if(a.statementStart!=e.start)break;a.statementStart=r.start,a.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&(this.strict||"var"!=e.body.kind)||"FunctionDeclaration"==e.body.type&&(this.strict||e.body.generator))&&this.raiseRecoverable(e.body.start,"Invalid labeled declaration"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},W.parseBlock=function(){var e=this,t=this.startNode();for(t.body=[],this.expect(D.braceL);!this.eat(D.braceR);){var n=e.parseStatement(!0);t.body.push(n)}return this.finishNode(t,"BlockStatement")},W.parseFor=function(e,t){return e.init=t,this.expect(D.semi),e.test=this.type===D.semi?null:this.parseExpression(),this.expect(D.semi),e.update=this.type===D.parenR?null:this.parseExpression(),this.expect(D.parenR),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},W.parseForIn=function(e,t){var n=this.type===D._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.expect(D.parenR),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},W.parseVar=function(e,t,n){var r=this;for(e.declarations=[],e.kind=n;;){var i=r.startNode();if(r.parseVarId(i),r.eat(D.eq)?i.init=r.parseMaybeAssign(t):"const"!==n||r.type===D._in||r.options.ecmaVersion>=6&&r.isContextual("of")?"Identifier"==i.id.type||t&&(r.type===D._in||r.isContextual("of"))?i.init=null:r.raise(r.lastTokEnd,"Complex binding patterns require an initialization value"):r.unexpected(),e.declarations.push(r.finishNode(i,"VariableDeclarator")),!r.eat(D.comma))break}return e},W.parseVarId=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0)},W.parseFunction=function(e,t,n,r){this.initFunction(e),this.options.ecmaVersion>=6&&!r&&(e.generator=this.eat(D.star)),this.options.ecmaVersion>=8&&(e.async=!!r),null==t&&(t=this.type==D.name),t&&(e.id=this.parseIdent());var i=this.inGenerator,o=this.inAsync,s=this.yieldPos,a=this.awaitPos,u=this.inFunction;return this.inGenerator=e.generator,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,t||this.type!==D.name||(e.id=this.parseIdent()),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=i,this.inAsync=o,this.yieldPos=s,this.awaitPos=a,this.inFunction=u,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(e){this.expect(D.parenL),e.params=this.parseBindingList(D.parenR,!1,this.options.ecmaVersion>=8,!0),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(e,t){var n=this;this.next(),null==t&&(t=this.type===D.name),this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(D.braceL);!this.eat(D.braceR);)if(!n.eat(D.semi)){var o=n.startNode(),s=n.eat(D.star),a=!1,u=n.type===D.name&&"static"===n.value;n.parsePropertyName(o),o.static=u&&n.type!==D.parenL,o.static&&(s&&n.unexpected(),s=n.eat(D.star),n.parsePropertyName(o)),n.options.ecmaVersion>=8&&!s&&!o.computed&&"Identifier"===o.key.type&&"async"===o.key.name&&n.type!==D.parenL&&!n.canInsertSemicolon()&&(a=!0,n.parsePropertyName(o)),o.kind="method";var c=!1;if(!o.computed){var l=o.key;s||a||"Identifier"!==l.type||n.type===D.parenL||"get"!==l.name&&"set"!==l.name||(c=!0,o.kind=l.name,l=n.parsePropertyName(o)),!o.static&&("Identifier"===l.type&&"constructor"===l.name||"Literal"===l.type&&"constructor"===l.value)&&(i&&n.raise(l.start,"Duplicate constructor in the same class"),c&&n.raise(l.start,"Constructor can't have get/set modifier"),s&&n.raise(l.start,"Constructor can't be a generator"),a&&n.raise(l.start,"Constructor can't be an async method"),o.kind="constructor",i=!0)}if(n.parseClassMethod(r,o,s,a),c){var p="get"===o.kind?0:1;if(o.value.params.length!==p){var f=o.value.start;"get"===o.kind?n.raiseRecoverable(f,"getter should have no params"):n.raiseRecoverable(f,"setter should have exactly one param")}else"set"===o.kind&&"RestElement"===o.value.params[0].type&&n.raiseRecoverable(o.value.params[0].start,"Setter cannot use rest params")}}return e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},W.parseClassMethod=function(e,t,n,r){t.value=this.parseMethod(n,r),e.body.push(this.finishNode(t,"MethodDefinition"))},W.parseClassId=function(e,t){e.id=this.type===D.name?this.parseIdent():t?this.unexpected():null},W.parseClassSuper=function(e){e.superClass=this.eat(D._extends)?this.parseExprSubscripts():null},W.parseExport=function(e,t){var n=this;if(this.next(),this.eat(D.star))return this.expectContextual("from"),e.source=this.type===D.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(D._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===D._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,null,!1,r)}else if(this.type===D._class){var o=this.startNode();e.declaration=this.parseClass(o,null)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))e.source=this.type===D.string?this.parseExprAtom():this.unexpected();else{for(var s=0;s<e.specifiers.length;s++)(n.keywords.test(e.specifiers[s].local.name)||n.reservedWords.test(e.specifiers[s].local.name))&&n.unexpected(e.specifiers[s].local.start);e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},W.checkExport=function(e,t,n){e&&(Object.prototype.hasOwnProperty.call(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},W.checkPatternExport=function(e,t){var n=this,r=t.type;if("Identifier"==r)this.checkExport(e,t.name,t.start);else if("ObjectPattern"==r)for(var i=0;i<t.properties.length;++i)n.checkPatternExport(e,t.properties[i].value);else if("ArrayPattern"==r)for(var o=0;o<t.elements.length;++o){var s=t.elements[o];s&&n.checkPatternExport(e,s)}else"AssignmentPattern"==r?this.checkPatternExport(e,t.left):"ParenthesizedExpression"==r&&this.checkPatternExport(e,t.expression)},W.checkVariableExport=function(e,t){var n=this;if(e)for(var r=0;r<t.length;r++)n.checkPatternExport(e,t[r].id)},W.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},W.parseExportSpecifiers=function(e){var t=this,n=[],r=!0;for(this.expect(D.braceL);!this.eat(D.braceR);){if(r)r=!1;else if(t.expect(D.comma),t.afterTrailingComma(D.braceR))break;var i=t.startNode();i.local=t.parseIdent(!0),i.exported=t.eatContextual("as")?t.parseIdent(!0):i.local,t.checkExport(e,i.exported.name,i.exported.start),n.push(t.finishNode(i,"ExportSpecifier"))}return n},W.parseImport=function(e){return this.next(),this.type===D.string?(e.specifiers=Y,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===D.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},W.parseImportSpecifiers=function(){var e=this,t=[],n=!0;if(this.type===D.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,!0),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(D.comma))return t}if(this.type===D.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(D.braceL);!this.eat(D.braceR);){if(n)n=!1;else if(e.expect(D.comma),e.afterTrailingComma(D.braceR))break;var o=e.startNode();o.imported=e.parseIdent(!0),e.eatContextual("as")?o.local=e.parseIdent():(o.local=o.imported,e.isKeyword(o.local.name)&&e.unexpected(o.local.start),e.reservedWordsStrict.test(o.local.name)&&e.raiseRecoverable(o.local.start,"The keyword '"+o.local.name+"' is reserved")),e.checkLVal(o.local,!0),t.push(e.finishNode(o,"ImportSpecifier"))}return t};var K=z.prototype;K.toAssignable=function(e,t){var n=this;if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":
|
||
this.inAsync&&"await"===e.name&&this.raise(e.start,"Can not use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r<e.properties.length;r++){var i=e.properties[r];"init"!==i.kind&&n.raise(i.key.start,"Object pattern can't contain getter or setter"),n.toAssignable(i.value,t)}break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t);break;case"AssignmentExpression":if("="!==e.operator){this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break}e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);case"AssignmentPattern":break;case"ParenthesizedExpression":e.expression=this.toAssignable(e.expression,t);break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}return e},K.toAssignableList=function(e,t){var n=this,r=e.length;if(r){var i=e[r-1];if(i&&"RestElement"==i.type)--r;else if(i&&"SpreadElement"==i.type){i.type="RestElement";var o=i.argument;this.toAssignable(o,t),"Identifier"!==o.type&&"MemberExpression"!==o.type&&"ArrayPattern"!==o.type&&this.unexpected(o.start),--r}t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}for(var s=0;s<r;s++){var a=e[s];a&&n.toAssignable(a,t)}return e},K.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},K.parseRest=function(e){var t=this.startNode();return this.next(),t.argument=e?this.type===D.name?this.parseIdent():this.unexpected():this.type===D.name||this.type===D.bracketL?this.parseBindingAtom():this.unexpected(),this.finishNode(t,"RestElement")},K.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case D.name:return this.parseIdent();case D.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(D.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case D.braceL:return this.parseObj(!0);default:this.unexpected()}},K.parseBindingList=function(e,t,n,r){for(var i=this,o=[],s=!0;!this.eat(e);)if(s?s=!1:i.expect(D.comma),t&&i.type===D.comma)o.push(null);else{if(n&&i.afterTrailingComma(e))break;if(i.type===D.ellipsis){var a=i.parseRest(r);i.parseBindingListItem(a),o.push(a),i.type===D.comma&&i.raise(i.start,"Comma is not permitted after the rest element"),i.expect(e);break}var u=i.parseMaybeDefault(i.start,i.startLoc);i.parseBindingListItem(u),o.push(u)}return o},K.parseBindingListItem=function(e){return e},K.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(D.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},K.checkLVal=function(e,t,n){var r=this;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(u(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0);break;case"MemberExpression":t&&this.raiseRecoverable(e.start,(t?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var i=0;i<e.properties.length;i++)r.checkLVal(e.properties[i].value,t,n);break;case"ArrayPattern":for(var o=0;o<e.elements.length;o++){var s=e.elements[o];s&&r.checkLVal(s,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var J=z.prototype;J.checkPropClash=function(e,t){if(!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,r=e.key;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(t.proto&&this.raiseRecoverable(r.start,"Redefinition of __proto__ property"),t.proto=!0));n="$"+n;var o=t[n];if(o){var s="init"!==i;(!this.strict&&!s||!o[i])&&s^o.init||this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[n]={init:!1,get:!1,set:!1};o[i]=!0}},J.parseExpression=function(e,t){var n=this,r=this.start,i=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===D.comma){var s=this.startNodeAt(r,i);for(s.expressions=[o];this.eat(D.comma);)s.expressions.push(n.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return o},J.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1,i=-1;t?(i=t.parenthesizedAssign,t.parenthesizedAssign=-1):(t=new H,r=!0);var o=this.start,s=this.startLoc;this.type!=D.parenL&&this.type!=D.name||(this.potentialArrowAt=this.start);var a=this.parseMaybeConditional(e,t);if(n&&(a=n.call(this,a,o,s)),this.type.isAssign){this.checkPatternErrors(t,!0),r||H.call(t);var u=this.startNodeAt(o,s);return u.operator=this.value,u.left=this.type===D.eq?this.toAssignable(a):a,t.shorthandAssign=-1,this.checkLVal(a),this.next(),u.right=this.parseMaybeAssign(e),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a},J.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(D.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(D.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},J.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:this.parseExprOp(i,n,r,-1,e)},J.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==D._in)&&o>r){var s=this.type===D.logicalOR||this.type===D.logicalAND,a=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,o,i),p=this.buildBinary(t,n,e,l,a,s);return this.parseExprOp(p,t,n,r,i)}return e},J.buildBinary=function(e,t,n,r,i,o){var s=this.startNodeAt(e,t);return s.left=n,s.operator=i,s.right=r,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},J.parseMaybeUnary=function(e,t){var n,r=this,i=this.start,o=this.startLoc;if(this.inAsync&&this.isContextual("await"))n=this.parseAwait(e),t=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===D.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=r.startNodeAt(i,o);u.operator=r.value,u.prefix=!1,u.argument=n,r.checkLVal(n),r.next(),n=r.finishNode(u,"UpdateExpression")}}return!t&&this.eat(D.starstar)?this.buildBinary(i,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},J.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(e)||i)return r;var o=this.parseSubscripts(r,t,n);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1)),o},J.parseSubscripts=function(e,t,n,r){for(var i,o=this,s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd==e.end&&!this.canInsertSemicolon();;)if((i=o.eat(D.bracketL))||o.eat(D.dot)){var a=o.startNodeAt(t,n);a.object=e,a.property=i?o.parseExpression():o.parseIdent(!0),a.computed=!!i,i&&o.expect(D.bracketR),e=o.finishNode(a,"MemberExpression")}else if(!r&&o.eat(D.parenL)){var u=new H,c=o.yieldPos,l=o.awaitPos;o.yieldPos=0,o.awaitPos=0;var p=o.parseExprList(D.parenR,o.options.ecmaVersion>=8,!1,u);if(s&&!o.canInsertSemicolon()&&o.eat(D.arrow))return o.checkPatternErrors(u,!1),o.checkYieldAwaitInDefaultParams(),o.yieldPos=c,o.awaitPos=l,o.parseArrowExpression(o.startNodeAt(t,n),p,!0);o.checkExpressionErrors(u,!0),o.yieldPos=c||o.yieldPos,o.awaitPos=l||o.awaitPos;var f=o.startNodeAt(t,n);f.callee=e,f.arguments=p,e=o.finishNode(f,"CallExpression")}else{if(o.type!==D.backQuote)return e;var h=o.startNodeAt(t,n);h.tag=e,h.quasi=o.parseTemplate(),e=o.finishNode(h,"TaggedTemplateExpression")}},J.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case D._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case D._this:var r=this.type===D._this?"ThisExpression":"Super";return t=this.startNode(),this.next(),this.finishNode(t,r);case D.name:var i=this.start,o=this.startLoc,s=this.parseIdent(this.type!==D.name);if(this.options.ecmaVersion>=8&&"async"===s.name&&!this.canInsertSemicolon()&&this.eat(D._function))return this.parseFunction(this.startNodeAt(i,o),!1,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(D.arrow))return this.parseArrowExpression(this.startNodeAt(i,o),[s],!1);if(this.options.ecmaVersion>=8&&"async"===s.name&&this.type===D.name)return s=this.parseIdent(),!this.canInsertSemicolon()&&this.eat(D.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,o),[s],!0)}return s;case D.regexp:var a=this.value;return t=this.parseLiteral(a.value),t.regex={pattern:a.pattern,flags:a.flags},t;case D.num:case D.string:return this.parseLiteral(this.value);case D._null:case D._true:case D._false:return t=this.startNode(),t.value=this.type===D._null?null:this.type===D._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case D.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(n);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case D.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(D.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case D.braceL:return this.parseObj(!1,e);case D._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case D._class:return this.parseClass(this.startNode(),!1);case D._new:return this.parseNew();case D.backQuote:return this.parseTemplate();default:this.unexpected()}},J.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},J.parseParenExpression=function(){this.expect(D.parenL);var e=this.parseExpression();return this.expect(D.parenR),e},J.parseParenAndDistinguishExpression=function(e){var t,n=this,r=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a,u=this.start,c=this.startLoc,l=[],p=!0,f=!1,h=new H,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==D.parenR;){if(p?p=!1:n.expect(D.comma),o&&n.afterTrailingComma(D.parenR,!0)){f=!0;break}if(n.type===D.ellipsis){s=n.start,l.push(n.parseParenItem(n.parseRest())),n.type===D.comma&&n.raise(n.start,"Comma is not permitted after the rest element");break}n.type!==D.parenL||a||(a=n.start),l.push(n.parseMaybeAssign(!1,h,n.parseParenItem))}var g=this.start,v=this.startLoc;if(this.expect(D.parenR),e&&!this.canInsertSemicolon()&&this.eat(D.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),a&&this.unexpected(a),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,l);l.length&&!f||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,l.length>1?(t=this.startNodeAt(u,c),t.expressions=l,this.finishNodeAt(t,"SequenceExpression",g,v)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var y=this.startNodeAt(r,i);return y.expression=t,this.finishNode(y,"ParenthesizedExpression")}return t},J.parseParenItem=function(e){return e},J.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var Q=[];J.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(D.dot))return e.meta=t,e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty");var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,r,!0),this.eat(D.parenL)?e.arguments=this.parseExprList(D.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Q,this.finishNode(e,"NewExpression")},J.parseTemplateElement=function(){var e=this.startNode();return e.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),e.tail=this.type===D.backQuote,this.finishNode(e,"TemplateElement")},J.parseTemplate=function(){var e=this,t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement();for(t.quasis=[n];!n.tail;)e.expect(D.dollarBraceL),t.expressions.push(e.parseExpression()),e.expect(D.braceR),t.quasis.push(n=e.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},J.parseObj=function(e,t){var n=this,r=this.startNode(),i=!0,o={};for(r.properties=[],this.next();!this.eat(D.braceR);){if(i)i=!1;else if(n.expect(D.comma),n.afterTrailingComma(D.braceR))break;var s,a,u,c,l=n.startNode();n.options.ecmaVersion>=6&&(l.method=!1,l.shorthand=!1,(e||t)&&(u=n.start,c=n.startLoc),e||(s=n.eat(D.star))),n.parsePropertyName(l),e||!(n.options.ecmaVersion>=8)||s||l.computed||"Identifier"!==l.key.type||"async"!==l.key.name||n.type===D.parenL||n.type===D.colon||n.canInsertSemicolon()?a=!1:(a=!0,n.parsePropertyName(l,t)),n.parsePropertyValue(l,e,s,a,u,c,t),n.checkPropClash(l,o),r.properties.push(n.finishNode(l,"Property"))}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},J.parsePropertyValue=function(e,t,n,r,i,o,s){if((n||r)&&this.type===D.colon&&this.unexpected(),this.eat(D.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===D.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(this.options.ecmaVersion>=5&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.type!=D.comma&&this.type!=D.braceR){(n||r||t)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var a="get"===e.kind?0:1;if(e.value.params.length!==a){var u=e.value.start;"get"===e.kind?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((this.keywords.test(e.key.name)||(this.strict?this.reservedWordsStrict:this.reservedWords).test(e.key.name)||this.inGenerator&&"yield"==e.key.name||this.inAsync&&"await"==e.key.name)&&this.raiseRecoverable(e.key.start,"'"+e.key.name+"' can not be used as shorthand property"),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,e.key):this.type===D.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},J.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(D.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(D.bracketR),e.key;e.computed=!1}return e.key=this.type===D.num||this.type===D.string?this.parseExprAtom():this.parseIdent(!0)},J.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},J.parseMethod=function(e,t){var n=this.startNode(),r=this.inGenerator,i=this.inAsync,o=this.yieldPos,s=this.awaitPos,a=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inGenerator=n.generator,this.inAsync=n.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,this.expect(D.parenL),n.params=this.parseBindingList(D.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=s,this.inFunction=a,this.finishNode(n,"FunctionExpression")},J.parseArrowExpression=function(e,t,n){var r=this.inGenerator,i=this.inAsync,o=this.yieldPos,s=this.awaitPos,a=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inGenerator=!1,this.inAsync=e.async,this.yieldPos=0,this.awaitPos=0,this.inFunction=!0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=r,this.inAsync=i,this.yieldPos=o,this.awaitPos=s,this.inFunction=a,this.finishNode(e,"ArrowFunctionExpression")},J.parseFunctionBody=function(e,t){var n=t&&this.type!==D.braceL,r=this.strict,i=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0;else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);r&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var s=this.labels;this.labels=[],i&&(this.strict=!0),e.body=this.parseBlock(!0),e.expression=!1,this.labels=s}r||i?(this.strict=!0,e.id&&this.checkLVal(e.id,!0),this.checkParams(e),this.strict=r):!t&&this.isSimpleParamList(e.params)||this.checkParams(e)},J.isSimpleParamList=function(e){for(var t=0;t<e.length;t++)if("Identifier"!==e[t].type)return!1;return!0},J.checkParams=function(e){for(var t=this,n={},r=0;r<e.params.length;r++)t.checkLVal(e.params[r],!0,n)},J.parseExprList=function(e,t,n,r){for(var i=this,o=[],s=!0;!this.eat(e);){if(s)s=!1;else if(i.expect(D.comma),t&&i.afterTrailingComma(e))break;var a;n&&i.type===D.comma?a=null:i.type===D.ellipsis?(a=i.parseSpread(r),r&&i.type===D.comma&&r.trailingComma<0&&(r.trailingComma=i.start)):a=i.parseMaybeAssign(!1,r),o.push(a)}return o},J.parseIdent=function(e){var t=this.startNode();return e&&"never"==this.options.allowReserved&&(e=!1),this.type===D.name?(!e&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(this.value)&&(this.options.ecmaVersion>=6||this.input.slice(this.start,this.end).indexOf("\\")==-1)&&this.raiseRecoverable(this.start,"The keyword '"+this.value+"' is reserved"),this.inGenerator&&"yield"===this.value&&this.raiseRecoverable(this.start,"Can not use 'yield' as identifier inside a generator"),this.inAsync&&"await"===this.value&&this.raiseRecoverable(this.start,"Can not use 'await' as identifier inside an async function"),t.name=this.value):e&&this.type.keyword?t.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"Identifier")},J.parseYield=function(){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type==D.semi||this.canInsertSemicolon()||this.type!=D.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(D.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")},J.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0),this.finishNode(e,"AwaitExpression")};var Z=z.prototype;Z.raise=function(e,t){var n=c(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Z.raiseRecoverable=Z.raise,Z.curPosition=function(){if(this.options.locations)return new I(this.curLine,this.pos-this.lineStart)};var ee=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new j(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},te=z.prototype;te.startNode=function(){return new ee(this,this.start,this.startLoc)},te.startNodeAt=function(e,t){return new ee(this,e,t)},te.finishNode=function(e,t){return h.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},te.finishNodeAt=function(e,t,n,r){return h.call(this,e,t,n,r)};var ne=function(e,t,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r},re={b_stat:new ne("{",!1),b_expr:new ne("{",!0),b_tmpl:new ne("${",!0),p_stat:new ne("(",!1),p_expr:new ne("(",!0),q_tmpl:new ne("`",!0,!0,function(e){return e.readTmplToken()}),f_expr:new ne("function",!0)},ie=z.prototype;ie.initialContext=function(){return[re.b_stat]},ie.braceIsBlock=function(e){if(e===D.colon){var t=this.curContext();if(t===re.b_stat||t===re.b_expr)return!t.isExpr}return e===D._return?R.test(this.input.slice(this.lastTokEnd,this.start)):e===D._else||e===D.semi||e===D.eof||e===D.parenR||(e==D.braceL?this.curContext()===re.b_stat:!this.exprAllowed)},ie.updateContext=function(e){var t,n=this.type;n.keyword&&e==D.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},D.parenR.updateContext=D.braceR.updateContext=function(){if(1==this.context.length)return void(this.exprAllowed=!0);var e=this.context.pop();e===re.b_stat&&this.curContext()===re.f_expr?(this.context.pop(),this.exprAllowed=!1):e===re.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!e.isExpr},D.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?re.b_stat:re.b_expr),this.exprAllowed=!0},D.dollarBraceL.updateContext=function(){this.context.push(re.b_tmpl),this.exprAllowed=!0},D.parenL.updateContext=function(e){var t=e===D._if||e===D._for||e===D._with||e===D._while;this.context.push(t?re.p_stat:re.p_expr),this.exprAllowed=!0},D.incDec.updateContext=function(){},D._function.updateContext=function(e){e.beforeExpr&&e!==D.semi&&e!==D._else&&(e!==D.colon&&e!==D.braceL||this.curContext()!==re.b_stat)&&this.context.push(re.f_expr),this.exprAllowed=!1},D.backQuote.updateContext=function(){this.curContext()===re.q_tmpl?this.context.pop():this.context.push(re.q_tmpl),this.exprAllowed=!1};var oe=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new j(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},se=z.prototype,ae="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);se.next=function(){this.options.onToken&&this.options.onToken(new oe(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},se.getToken=function(){return this.next(),new oe(this)},"undefined"!=typeof Symbol&&(se[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===D.eof,value:t}}}}),se.curContext=function(){return this.context[this.context.length-1]},se.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(D.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},se.readToken=function(e){return n(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},se.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},se.skipBlockComment=function(){var e=this,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){M.lastIndex=n;for(var i;(i=M.exec(this.input))&&i.index<this.pos;)++e.curLine,e.lineStart=i.index+i[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},se.skipLineComment=function(e){for(var t=this,n=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&10!==i&&13!==i&&8232!==i&&8233!==i;)++t.pos,i=t.input.charCodeAt(t.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(n+e,this.pos),n,this.pos,r,this.curPosition())},se.skipSpace=function(){var e=this;e:for(;this.pos<this.input.length;){var t=e.input.charCodeAt(e.pos);switch(t){case 32:case 160:++e.pos;break;case 13:10===e.input.charCodeAt(e.pos+1)&&++e.pos;case 10:case 8232:case 8233:++e.pos,e.options.locations&&(++e.curLine,e.lineStart=e.pos);break;case 47:switch(e.input.charCodeAt(e.pos+1)){case 42:e.skipBlockComment();break;case 47:e.skipLineComment(2);break;default:break e}break;default:if(!(t>8&&t<14||t>=5760&&N.test(String.fromCharCode(t))))break e;++e.pos}}},se.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},se.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(D.ellipsis)):(++this.pos,this.finishToken(D.dot))},se.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(D.assign,2):this.finishOp(D.slash,1)},se.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?D.star:D.modulo;return this.options.ecmaVersion>=7&&42===t&&(++n,r=D.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(D.assign,n+1):this.finishOp(r,n)},se.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?D.logicalOR:D.logicalAND,2):61===t?this.finishOp(D.assign,2):this.finishOp(124===e?D.bitwiseOR:D.bitwiseAND,1)},se.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(D.assign,2):this.finishOp(D.bitwiseXOR,1)},se.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45==t&&62==this.input.charCodeAt(this.pos+2)&&R.test(this.input.slice(this.lastTokEnd,this.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(D.incDec,2):61===t?this.finishOp(D.assign,2):this.finishOp(D.plusMin,1)},se.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(D.assign,n+1):this.finishOp(D.bitShift,n)):33==t&&60==e&&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===t&&(n=2),this.finishOp(D.relational,n))},se.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(D.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(D.arrow)):this.finishOp(61===e?D.eq:D.prefix,1)},se.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(D.parenL);case 41:return++this.pos,this.finishToken(D.parenR);case 59:return++this.pos,this.finishToken(D.semi);case 44:return++this.pos,this.finishToken(D.comma);case 91:return++this.pos,this.finishToken(D.bracketL);case 93:return++this.pos,this.finishToken(D.bracketR);case 123:return++this.pos,this.finishToken(D.braceL);case 125:return++this.pos,this.finishToken(D.braceR);case 58:return++this.pos,this.finishToken(D.colon);case 63:return++this.pos,this.finishToken(D.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(D.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(D.prefix,1)}this.raise(this.pos,"Unexpected character '"+m(e)+"'")},se.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};var ue=!!d("","u");se.readRegexp=function(){for(var e,t,n=this,r=this.pos;;){n.pos>=n.input.length&&n.raise(r,"Unterminated regular expression");var i=n.input.charAt(n.pos);if(R.test(i)&&n.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++n.pos}var o=this.input.slice(r,this.pos);++this.pos;var s=this.readWord1(),a=o,u="";if(s){var c=/^[gim]*$/;this.options.ecmaVersion>=6&&(c=/^[gimuy]*$/),c.test(s)||this.raise(r,"Invalid regular expression flag"),s.indexOf("u")>=0&&(ue?u="u":(a=a.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t,i){return t=Number("0x"+t),t>1114111&&n.raise(r+i+3,"Code point out of bounds"),"x"}),a=a.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"),u=u.replace("u","")))}var l=null;return ae||(d(a,u,r,this),l=d(o,s)),this.finishToken(D.regexp,{pattern:o,flags:s,value:l})},se.readInt=function(e,t){for(var n=this,r=this.pos,i=0,o=0,s=null==t?1/0:t;o<s;++o){var a,u=n.input.charCodeAt(n.pos);if((a=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;++n.pos,i=i*e+a}return this.pos===r||null!=t&&this.pos-r!==t?null:i},se.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),n(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(D.num,t)},se.readNumber=function(e){var t=this.pos,r=!1,i=48===this.input.charCodeAt(this.pos);e||null!==this.readInt(10)||this.raise(t,"Invalid number"),i&&this.pos==t+1&&(i=!1);var o=this.input.charCodeAt(this.pos);46!==o||i||(++this.pos,this.readInt(10),r=!0,o=this.input.charCodeAt(this.pos)),69!==o&&101!==o||i||(o=this.input.charCodeAt(++this.pos),43!==o&&45!==o||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0),n(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=this.input.slice(t,this.pos);return r?s=parseFloat(a):i&&1!==a.length?/[89]/.test(a)||this.strict?this.raise(t,"Invalid number"):s=parseInt(a,8):s=parseInt(a,10),this.finishToken(D.num,s)},se.readCodePoint=function(){var e,t=this.input.charCodeAt(this.pos);if(123===t){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.raise(n,"Code point out of bounds")}else e=this.readHexChar(4);return e},se.readString=function(e){for(var t=this,n="",r=++this.pos;;){t.pos>=t.input.length&&t.raise(t.start,"Unterminated string constant");var i=t.input.charCodeAt(t.pos);if(i===e)break;92===i?(n+=t.input.slice(r,t.pos),n+=t.readEscapedChar(!1),r=t.pos):(s(i)&&t.raise(t.start,"Unterminated string constant"),++t.pos)}return n+=this.input.slice(r,this.pos++),this.finishToken(D.string,n)},se.readTmplToken=function(){for(var e=this,t="",n=this.pos;;){
|
||
e.pos>=e.input.length&&e.raise(e.start,"Unterminated template");var r=e.input.charCodeAt(e.pos);if(96===r||36===r&&123===e.input.charCodeAt(e.pos+1))return e.pos===e.start&&e.type===D.template?36===r?(e.pos+=2,e.finishToken(D.dollarBraceL)):(++e.pos,e.finishToken(D.backQuote)):(t+=e.input.slice(n,e.pos),e.finishToken(D.template,t));if(92===r)t+=e.input.slice(n,e.pos),t+=e.readEscapedChar(!0),n=e.pos;else if(s(r)){switch(t+=e.input.slice(n,e.pos),++e.pos,r){case 13:10===e.input.charCodeAt(e.pos)&&++e.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}e.options.locations&&(++e.curLine,e.lineStart=e.pos),n=e.pos}else++e.pos}},se.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return m(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),"0"!==n&&(this.strict||e)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=n.length-1,String.fromCharCode(r)}return String.fromCharCode(t)}},se.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.raise(t,"Bad character escape sequence"),n},se.readWord1=function(){var e=this;this.containsEsc=!1;for(var t="",i=!0,o=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=e.fullCharCodeAtPos();if(r(a,s))e.pos+=a<=65535?1:2;else{if(92!==a)break;e.containsEsc=!0,t+=e.input.slice(o,e.pos);var u=e.pos;117!=e.input.charCodeAt(++e.pos)&&e.raise(e.pos,"Expecting Unicode escape sequence \\uXXXX"),++e.pos;var c=e.readCodePoint();(i?n:r)(c,s)||e.raise(u,"Invalid Unicode escape"),t+=m(c),o=e.pos}i=!1}return t+this.input.slice(o,this.pos)},se.readWord=function(){var e=this.readWord1(),t=D.name;return this.keywords.test(e)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+e),t=B[e]),this.finishToken(t,e)};e.version="4.0.11",e.parse=g,e.parseExpressionAt=v,e.tokenizer=y,e.addLooseExports=b,e.Parser=z,e.plugins=U,e.defaultOptions=V,e.Position=I,e.SourceLocation=j,e.getLineInfo=c,e.Node=ee,e.TokenType=O,e.tokTypes=D,e.keywordTypes=B,e.TokContext=ne,e.tokContexts=re,e.isIdentifierChar=r,e.isIdentifierStart=n,e.Token=oe,e.isNewLine=s,e.lineBreak=R,e.lineBreakG=M,Object.defineProperty(e,"__esModule",{value:!0})})},{}],3:[function(t,n,r){!function(t,i){"object"==typeof r&&void 0!==n?i(r):"function"==typeof e&&e.amd?e(["exports"],i):i((t.acorn=t.acorn||{},t.acorn.walk=t.acorn.walk||{}))}(this,function(e){"use strict";function t(t,n,r,i,o){r||(r=e.base),function e(t,i,o){var s=o||t.type,a=n[s];r[s](t,i,e),a&&a(t,i)}(t,i,o)}function n(t,n,r,i){r||(r=e.base);var o=[];!function e(t,i,s){var a=s||t.type,u=n[a],c=t!=o[o.length-1];c&&o.push(t),r[a](t,i,e),u&&u(t,i||o,o),c&&o.pop()}(t,i)}function r(t,n,r,i,o){var s=r?e.make(r,i):i;!function e(t,n,r){s[r||t.type](t,n,e)}(t,n,o)}function i(e){return"string"==typeof e?function(t){return t==e}:e||function(){return!0}}function o(t,n,r,o,s,a){o=i(o),s||(s=e.base);try{!function e(t,i,a){var u=a||t.type;if((null==n||t.start<=n)&&(null==r||t.end>=r)&&s[u](t,i,e),(null==n||t.start==n)&&(null==r||t.end==r)&&o(u,t))throw new f(t,i)}(t,a)}catch(e){if(e instanceof f)return e;throw e}}function s(t,n,r,o,s){r=i(r),o||(o=e.base);try{!function e(t,i,s){var a=s||t.type;if(!(t.start>n||t.end<n)&&(o[a](t,i,e),r(a,t)))throw new f(t,i)}(t,s)}catch(e){if(e instanceof f)return e;throw e}}function a(t,n,r,o,s){r=i(r),o||(o=e.base);try{!function e(t,i,s){if(!(t.end<n)){var a=s||t.type;if(t.start>=n&&r(a,t))throw new f(t,i);o[a](t,i,e)}}(t,s)}catch(e){if(e instanceof f)return e;throw e}}function u(t,n,r,o,s){r=i(r),o||(o=e.base);var a;return function e(t,i,s){if(!(t.start>n)){var u=s||t.type;t.end<=n&&(!a||a.node.end<t.end)&&r(u,t)&&(a=new f(t,i)),o[u](t,i,e)}}(t,s),a}function c(t,n){n||(n=e.base);var r=h(n);for(var i in t)r[i]=t[i];return r}function l(e,t,n){n(e,t)}function p(e,t,n){}var f=function(e,t){this.node=e,this.state=t},h=Object.create||function(e){function t(){}return t.prototype=e,new t},d={};d.Program=d.BlockStatement=function(e,t,n){for(var r=0;r<e.body.length;++r)n(e.body[r],t,"Statement")},d.Statement=l,d.EmptyStatement=p,d.ExpressionStatement=d.ParenthesizedExpression=function(e,t,n){return n(e.expression,t,"Expression")},d.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},d.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},d.BreakStatement=d.ContinueStatement=p,d.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},d.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0;r<e.cases.length;++r){var i=e.cases[r];i.test&&n(i.test,t,"Expression");for(var o=0;o<i.consequent.length;++o)n(i.consequent[o],t,"Statement")}},d.ReturnStatement=d.YieldExpression=d.AwaitExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},d.ThrowStatement=d.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},d.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,"Statement")},d.CatchClause=function(e,t,n){n(e.param,t,"Pattern"),n(e.body,t,"ScopeBody")},d.WhileStatement=d.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},d.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},d.ForInStatement=d.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},d.ForInit=function(e,t,n){"VariableDeclaration"==e.type?n(e,t):n(e,t,"Expression")},d.DebuggerStatement=p,d.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},d.VariableDeclaration=function(e,t,n){for(var r=0;r<e.declarations.length;++r)n(e.declarations[r],t)},d.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},d.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0;r<e.params.length;r++)n(e.params[r],t,"Pattern");n(e.body,t,e.expression?"ScopeExpression":"ScopeBody")},d.ScopeBody=function(e,t,n){return n(e,t,"Statement")},d.ScopeExpression=function(e,t,n){return n(e,t,"Expression")},d.Pattern=function(e,t,n){"Identifier"==e.type?n(e,t,"VariablePattern"):"MemberExpression"==e.type?n(e,t,"MemberPattern"):n(e,t)},d.VariablePattern=p,d.MemberPattern=l,d.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},d.ArrayPattern=function(e,t,n){for(var r=0;r<e.elements.length;++r){var i=e.elements[r];i&&n(i,t,"Pattern")}},d.ObjectPattern=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r].value,t,"Pattern")},d.Expression=l,d.ThisExpression=d.Super=d.MetaProperty=p,d.ArrayExpression=function(e,t,n){for(var r=0;r<e.elements.length;++r){var i=e.elements[r];i&&n(i,t,"Expression")}},d.ObjectExpression=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r],t)},d.FunctionExpression=d.ArrowFunctionExpression=d.FunctionDeclaration,d.SequenceExpression=d.TemplateLiteral=function(e,t,n){for(var r=0;r<e.expressions.length;++r)n(e.expressions[r],t,"Expression")},d.UnaryExpression=d.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},d.BinaryExpression=d.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},d.AssignmentExpression=d.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},d.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},d.NewExpression=d.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0;r<e.arguments.length;++r)n(e.arguments[r],t,"Expression")},d.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},d.ExportNamedDeclaration=d.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"==e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},d.ExportAllDeclaration=function(e,t,n){n(e.source,t,"Expression")},d.ImportDeclaration=function(e,t,n){for(var r=0;r<e.specifiers.length;r++)n(e.specifiers[r],t);n(e.source,t,"Expression")},d.ImportSpecifier=d.ImportDefaultSpecifier=d.ImportNamespaceSpecifier=d.Identifier=d.Literal=p,d.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t)},d.ClassDeclaration=d.ClassExpression=function(e,t,n){return n(e,t,"Class")},d.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression");for(var r=0;r<e.body.body.length;r++)n(e.body.body[r],t)},d.MethodDefinition=d.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")},e.simple=t,e.ancestor=n,e.recursive=r,e.findNodeAt=o,e.findNodeAround=s,e.findNodeAfter=a,e.findNodeBefore=u,e.make=c,e.base=d,Object.defineProperty(e,"__esModule",{value:!0})})},{}],4:[function(e,t,n){(function(n,r){"use strict";function i(t,i){function o(e){var t,n;for(t=0;e[t];t+=1)if("."===(n=e[t]))e.splice(t,1),t-=1;else if(".."===n){if(1===t&&(".."===e[2]||".."===e[0]))break;t>0&&(e.splice(t-1,2),t-=2)}}function s(e,t){var n;return e&&"."===e.charAt(0)&&t&&(n=t.split("/"),n=n.slice(0,n.length-1),n=n.concat(e.split("/")),o(n),e=n.join("/")),e}function a(e){return function(t){return s(t,e)}}function u(e){function t(t){d[e]=t}return t.fromText=function(e,t){throw new Error("amdefine does not implement load.fromText")},t}function c(e,n,o){var s,a,u,c;if(e)a=d[e]={},u={id:e,uri:r,exports:a},s=p(i,a,u,e);else{if(m)throw new Error("amdefine with no module ID cannot be called more than once per file.");m=!0,a=t.exports,u=t,s=p(i,a,u,t.id)}n&&(n=n.map(function(e){return s(e)})),void 0!==(c="function"==typeof o?o.apply(u.exports,n):o)&&(u.exports=c,e&&(d[e]=u.exports))}function l(e,t,n){Array.isArray(e)?(n=t,t=e,e=void 0):"string"!=typeof e&&(n=e,e=t=void 0),t&&!Array.isArray(t)&&(n=t,t=void 0),t||(t=["require","exports","module"]),e?h[e]=[e,t,n]:c(e,t,n)}var p,f,h={},d={},m=!1,g=e("path");return p=function(e,t,r,i){function o(o,s){if("string"==typeof o)return f(e,t,r,o,i);o=o.map(function(n){return f(e,t,r,n,i)}),s&&n.nextTick(function(){s.apply(null,o)})}return o.toUrl=function(e){return 0===e.indexOf(".")?s(e,g.dirname(r.filename)):e},o},i=i||function(){return t.require.apply(t,arguments)},f=function(e,t,n,r,i){var o,l,m=r.indexOf("!"),g=r;if(m===-1){if("require"===(r=s(r,i)))return p(e,t,n,i);if("exports"===r)return t;if("module"===r)return n;if(d.hasOwnProperty(r))return d[r];if(h[r])return c.apply(null,h[r]),d[r];if(e)return e(g);throw new Error("No module with ID: "+r)}return o=r.substring(0,m),r=r.substring(m+1,r.length),l=f(e,t,n,o,i),r=l.normalize?l.normalize(r,a(i)):s(r,i),d[r]?d[r]:(l.load(r,p(e,t,n,i),u(r),{}),d[r])},l.require=function(e){return d[e]?d[e]:h[e]?(c.apply(null,h[e]),d[e]):void 0},l.amd={},l}t.exports=i}).call(this,e("_process"),"/node_modules/amdefine/amdefine.js")},{_process:112,path:109}],5:[function(e,t,n){"use strict";function r(){if(u.length)throw u.shift()}function i(e){var t;t=a.length?a.pop():new o,t.task=e,s(t)}function o(){this.task=null}var s=e("./raw"),a=[],u=[],c=s.makeRequestCallFromTimer(r);t.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(u.push(e),c())}finally{this.task=null,a[a.length]=this}}},{"./raw":6}],6:[function(e,t,n){(function(e){"use strict";function n(e){s.length||(o(),a=!0),s[s.length]=e}function r(){for(;u<s.length;){var e=u;if(u+=1,s[e].call(),u>c){for(var t=0,n=s.length-u;t<n;t++)s[t]=s[t+u];s.length-=u,u=0}}s.length=0,u=0,a=!1}function i(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}t.exports=n;var o,s=[],a=!1,u=0,c=1024,l=void 0!==e?e:self,p=l.MutationObserver||l.WebKitMutationObserver;o="function"==typeof p?function(e){var t=1,n=new p(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(r):i(r),n.requestFlush=o,n.makeRequestCallFromTimer=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,n){(function(n){"use strict";function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}function o(e){return Object.prototype.toString.call(e)}function s(e){return!i(e)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function a(e){if(_.isFunction(e)){if(k)return e.name;var t=e.toString(),n=t.match(A);return n&&n[1]}}function u(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function c(e){if(k||!_.isFunction(e))return _.inspect(e);var t=a(e);return"[Function"+(t?": "+t:"")+"]"}function l(e){return u(c(e.actual),128)+" "+e.operator+" "+u(c(e.expected),128)}function p(e,t,n,r,i){throw new E.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function f(e,t){e||p(e,!0,t,"==",E.ok)}function h(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(_.isDate(e)&&_.isDate(t))return e.getTime()===t.getTime();if(_.isRegExp(e)&&_.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(s(e)&&s(t)&&o(e)===o(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;a=a||{actual:[],expected:[]};var u=a.actual.indexOf(e);return u!==-1&&u===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),m(e,t,n,a))}return n?e===t:e==t}function d(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function m(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(_.isPrimitive(e)||_.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=d(e),o=d(t);if(i&&!o||!i&&o)return!1;if(i)return e=w.call(e),t=w.call(t),h(e,t,n);var s,a,u=C(e),c=C(t);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),a=u.length-1;a>=0;a--)if(u[a]!==c[a])return!1;for(a=u.length-1;a>=0;a--)if(s=u[a],!h(e[s],t[s],n,r))return!1;return!0}function g(e,t,n){h(e,t,!0)&&p(e,t,n,"notDeepStrictEqual",g)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&t.call({},e)===!0}function y(e){var t;try{e()}catch(e){t=e}return t}function b(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=y(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&p(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&_.isError(i),a=!e&&i&&!n;if((s&&o&&v(i,n)||a)&&p(i,n,"Got unwanted exception"+r),e&&i&&n&&!v(i,n)||!e&&i)throw i}var _=e("util/"),x=Object.prototype.hasOwnProperty,w=Array.prototype.slice,k=function(){return"foo"===function(){}.name}(),E=t.exports=f,A=/\s*function\s+([^\(\s]*)\s*/;E.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=l(this),this.generatedMessage=!0);var t=e.stackStartFunction||p;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=a(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},_.inherits(E.AssertionError,Error),E.fail=p,E.ok=f,E.equal=function(e,t,n){e!=t&&p(e,t,n,"==",E.equal)},E.notEqual=function(e,t,n){e==t&&p(e,t,n,"!=",E.notEqual)},E.deepEqual=function(e,t,n){h(e,t,!1)||p(e,t,n,"deepEqual",E.deepEqual)},E.deepStrictEqual=function(e,t,n){h(e,t,!0)||p(e,t,n,"deepStrictEqual",E.deepStrictEqual)},E.notDeepEqual=function(e,t,n){h(e,t,!1)&&p(e,t,n,"notDeepEqual",E.notDeepEqual)},E.notDeepStrictEqual=g,E.strictEqual=function(e,t,n){e!==t&&p(e,t,n,"===",E.strictEqual)},E.notStrictEqual=function(e,t,n){e===t&&p(e,t,n,"!==",E.notStrictEqual)},E.throws=function(e,t,n){b(!0,e,t,n)},E.doesNotThrow=function(e,t,n){b(!1,e,t,n)},E.ifError=function(e){if(e)throw e};var C=Object.keys||function(e){var t=[];for(var n in e)x.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":183}],8:[function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-r(e)}function o(e){var t,n,i,o,s,a,u=e.length;s=r(e),a=new p(3*u/4-s),i=s>0?u-4:u;var c=0;for(t=0,n=0;t<i;t+=4,n+=3)o=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],a[c++]=o>>16&255,a[c++]=o>>8&255,a[c++]=255&o;return 2===s?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,a[c++]=255&o):1===s&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,a[c++]=o>>8&255,a[c++]=255&o),a}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function a(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(s(r));return i.join("")}function u(e){for(var t,n=e.length,r=n%3,i="",o=[],s=0,u=n-r;s<u;s+=16383)o.push(a(e,s,s+16383>u?u:s+16383));return 1===r?(t=e[n-1],i+=c[t>>2],i+=c[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=c[t>>10],i+=c[t>>4&63],i+=c[t<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=i,n.toByteArray=o,n.fromByteArray=u;for(var c=[],l=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=f.length;h<d;++h)c[h]=f[h],l[f.charCodeAt(h)]=h;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],9:[function(e,t,n){},{}],10:[function(e,t,n){arguments[4][9][0].apply(n,arguments)},{dup:9}],11:[function(e,t,n){(function(t){"use strict";var r=e("buffer"),i=r.Buffer,o=r.SlowBuffer,s=r.kMaxLength||2147483647;n.alloc=function(e,t,n){if("function"==typeof i.alloc)return i.alloc(e,t,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof e)throw new TypeError("size must be a number");if(e>s)throw new RangeError("size is too large");var r=n,o=t;void 0===o&&(r=void 0,o=0);var a=new i(e);if("string"==typeof o)for(var u=new i(o,r),c=u.length,l=-1;++l<e;)a[l]=u[l%c];else a.fill(o);return a},n.allocUnsafe=function(e){if("function"==typeof i.allocUnsafe)return i.allocUnsafe(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>s)throw new RangeError("size is too large");return new i(e)},n.from=function(e,n,r){if("function"==typeof i.from&&(!t.Uint8Array||Uint8Array.from!==i.from))return i.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new i(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var o=n;if(1===arguments.length)return new i(e);void 0===o&&(o=0);var s=r;if(void 0===s&&(s=e.byteLength-o),o>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(s>e.byteLength-o)throw new RangeError("'length' is out of bounds");return new i(e.slice(o,o+s))}if(i.isBuffer(e)){var a=new i(e.length);return e.copy(a,0,0,e.length),a}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new i(e);if("Buffer"===e.type&&Array.isArray(e.data))return new i(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeof i.allocUnsafeSlow)return i.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(e>=s)throw new RangeError("size is too large");return new o(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:12}],12:[function(e,t,n){"use strict";function r(e){if(e>Y)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=i.prototype,t}function i(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(e)}return o(e,t,n)}function o(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return e instanceof ArrayBuffer?p(e,t,n):"string"==typeof e?c(e,t):f(e)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function a(e,t,n){return s(e),e<=0?r(e):void 0!==t?"string"==typeof n?r(e).fill(t,n):r(e).fill(t):r(e)}function u(e){return s(e),r(e<0?0:0|h(e))}function c(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(e,t),o=r(n),s=o.write(e,t);return s!==n&&(o=o.slice(0,s)),o}function l(e){for(var t=e.length<0?0:0|h(e.length),n=r(t),i=0;i<t;i+=1)n[i]=255&e[i];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds");var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),r.__proto__=i.prototype,r}function f(e){if(i.isBuffer(e)){var t=0|h(e.length),n=r(t);return 0===n.length?n:(e.copy(n,0,0,t),n)}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||W(e.length)?r(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(e){if(e>=Y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y.toString(16)+" bytes");return 0|e}function d(e){return+e!=e&&(e=0),i.alloc(+e)}function m(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=i.from(t,r)),i.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<a;c++)if(o(e,c)===o(t,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===u)return l*s}else l!==-1&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var p=!0,f=0;f<u;f++)if(o(e,c+f)!==o(t,f)){p=!1;break}if(p)return c}return-1}function _(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function x(e,t,n,r){return H(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(z(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function E(e,t,n,r){return H($(t),e,n,r)}function A(e,t,n,r){return H(q(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?G.fromByteArray(e):G.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,p;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],128==(192&u)&&(p=(31&o)<<6|63&u)>127&&(s=p);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(p=(15&o)<<12|(63&u)<<6|63&c)>2047&&(p<55296||p>57343)&&(s=p);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(p=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&p<1114112&&(s=p)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return T(r)}function T(e){var t=e.length;if(t<=K)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=K));return n}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=V(e[o]);return i}function B(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function I(e){if(e=j(e).replace(J,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function q(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function $(e){return G.toByteArray(I(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function W(e){return e!==e}var G=e("base64-js"),X=e("ieee754");n.Buffer=i,n.SlowBuffer=d,n.INSPECT_MAX_BYTES=50;var Y=2147483647;n.kMaxLength=Y,i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),i.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(e,t,n){return o(e,t,n)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(e,t,n){return a(e,t,n)},i.allocUnsafe=function(e){return u(e)},i.allocUnsafeSlow=function(e){return u(e)},i.isBuffer=function(e){return null!=e&&e._isBuffer===!0},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,s=Math.min(n,r);o<s;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return i.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=i.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var s=e[n];if(!i.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,o),o+=s.length}return r},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},i.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},i.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},i.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):g.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===i.compare(this,e)},i.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e,t,n,r,o){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0
|
||
;for(var s=o-r,a=n-t,u=Math.min(s,a),c=this.slice(r,o),l=e.slice(t,n),p=0;p<u;++p)if(c[p]!==l[p]){s=c[p],a=l[p];break}return s<a?-1:a<s?1:0},i.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},i.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},i.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},i.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;i.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=i.prototype,r},i.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},i.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},i.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},i.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},i.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},i.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),X.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),X.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),X.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),X.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},i.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},i.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},i.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},i.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},i.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},i.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},i.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},i.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},i.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},i.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},i.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!i.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var a=i.isBuffer(e)?e:new i(e,r),u=a.length;for(s=0;s<n-t;++s)this[s+t]=a[s%u]}return this};var J=/[^+\/0-9A-Za-z-_]/g},{"base64-js":8,ieee754:98}],13:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],14:[function(e,t,n){"use strict";function r(e,t,r){r=r||{},t=t||n.defaultState();for(var i=r.start||0,s=r.end||e.length,a=i;a<s;){try{o(e[a],t)}catch(e){throw e.index=a,e}a++}return t}function i(e,t,r){r=r||{};for(var i=r.start||0,s=i,u=n.defaultState();s<e.length;){if((r.ignoreNesting||!u.isNesting(r))&&a(e,t,s)){var c=s;return{start:i,end:c,src:e.substring(i,c)}}try{o(e[s],u)}catch(e){throw e.index=s,e}s++}var l=new Error("The end of the string was reached with no closing bracket found.");throw l.code="CHARACTER_PARSER:END_OF_STRING_REACHED",l.index=s,l}function o(e,t){if(1!==e.length){var r=new Error("Character must be a string of length 1");throw r.name="InvalidArgumentError",r.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",r}t=t||n.defaultState(),t.src+=e;var i=t.isComment(),o=t.history?t.history[0]:"";switch(t.regexpStart&&("/"!==e&&"*"!=e||t.stack.pop(),t.regexpStart=!1),t.current()){case f.LINE_COMMENT:"\n"===e&&t.stack.pop();break;case f.BLOCK_COMMENT:"*"===t.lastChar&&"/"===e&&t.stack.pop();break;case f.SINGLE_QUOTE:"'"!==e||t.escaped?"\\"!==e||t.escaped?t.escaped=!1:t.escaped=!0:t.stack.pop();break;case f.DOUBLE_QUOTE:'"'!==e||t.escaped?"\\"!==e||t.escaped?t.escaped=!1:t.escaped=!0:t.stack.pop();break;case f.TEMPLATE_QUOTE:"`"!==e||t.escaped?"\\"!==e||t.escaped?"$"!==e||t.escaped?"{"===e&&t.hasDollar?t.stack.push(h[e]):(t.escaped=!1,t.hasDollar=!1):t.hasDollar=!0:(t.escaped=!0,t.hasDollar=!1):(t.stack.pop(),t.hasDollar=!1);break;case f.REGEXP:"/"!==e||t.escaped?"\\"!==e||t.escaped?t.escaped=!1:t.escaped=!0:t.stack.pop();break;default:if(e in h)t.stack.push(h[e]);else if(e in d){if(t.current()!==e){var r=new SyntaxError("Mismatched Bracket: "+e);throw r.code="CHARACTER_PARSER:MISMATCHED_BRACKET",r}t.stack.pop()}else"/"===o&&"/"===e?(t.history=t.history.substr(1),t.stack.push(f.LINE_COMMENT)):"/"===o&&"*"===e?(t.history=t.history.substr(1),t.stack.push(f.BLOCK_COMMENT)):"/"===e&&l(t.history)?(t.stack.push(f.REGEXP),t.regexpStart=!0):"'"===e?t.stack.push(f.SINGLE_QUOTE):'"'===e?t.stack.push(f.DOUBLE_QUOTE):"`"===e&&t.stack.push(f.TEMPLATE_QUOTE)}return t.isComment()||i||(t.history=e+t.history),t.lastChar=e,t}function s(){this.stack=[],this.regexpStart=!1,this.escaped=!1,this.hasDollar=!1,this.src="",this.history="",this.lastChar=""}function a(e,t,n){return p(t)?t.test(e.substr(n||0)):e.substr(n||0,t.length)===t}function u(e){if(!e)return!0;switch(e.charCodeAt(0)){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 c(e){return"if"===e||"in"===e||"do"===e||"var"===e||"for"===e||"new"===e||"try"===e||"let"===e||"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e||"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e||"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e||"default"===e||"finally"===e||"extends"===e||"function"===e||"continue"===e||"debugger"===e||"package"===e||"private"===e||"interface"===e||"instanceof"===e||"implements"===e||"protected"===e||"public"===e||"static"===e}function l(e){return e=e.replace(/^\s*/,""),")"!==e[0]&&("}"===e[0]||(!!u(e[0])||!(!/^\w+\b/.test(e)||!c(/^\w+\b/.exec(e)[0].split("").reverse().join("")))))}var p=e("is-regex");n=t.exports=r;var f=n.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},h=n.BRACKETS={"(":")","{":"}","[":"]"},d={")":"(","}":"{","]":"["};n.parse=r,n.parseUntil=i,n.parseChar=o,n.defaultState=function(){return new s},s.prototype.current=function(){return this.stack[this.stack.length-1]},s.prototype.isString=function(){return this.current()===f.SINGLE_QUOTE||this.current()===f.DOUBLE_QUOTE||this.current()===f.TEMPLATE_QUOTE},s.prototype.isComment=function(){return this.current()===f.LINE_COMMENT||this.current()===f.BLOCK_COMMENT},s.prototype.isNesting=function(e){return(!e||!e.ignoreLineComment||1!==this.stack.length||this.stack[0]!==f.LINE_COMMENT)&&!!this.stack.length},n.isPunctuator=u,n.isKeyword=c},{"is-regex":103}],15:[function(e,t,n){t.exports=e("./lib/clean")},{"./lib/clean":16}],16:[function(e,t,n){(function(n){function r(e){return void 0===e?["all"]:e}function i(e){return!T.existsSync(e)&&!/\.css$/.test(e)}function o(e){return T.existsSync(e)&&T.statSync(e).isDirectory()}function s(e){return e?{hostname:F.parse(e).hostname,port:parseInt(F.parse(e).port)}:{}}function a(e,t){function n(n){return n=t.options.debug?c(t,n):p(t,n),n=u(t,n),e?e.call(null,t.errors.length>0?t.errors:null,n):n}return function(e){return t.options.sourceMap?t.inputSourceMapTracker.track(e,function(){return t.options.sourceMapInlineSources?t.inputSourceMapTracker.resolveSources(function(){return n(e)}):n(e)}):n(e)}}function u(e,t){return t.stats=e.stats,t.errors=e.errors,t.warnings=e.warnings,t}function c(e,t){var r=n.hrtime();e.stats.originalSize=e.sourceTracker.removeAll(t).length,t=p(e,t);var i=n.hrtime(r);return e.stats.timeSpent=~~(1e3*i[0]+i[1]/1e6),e.stats.efficiency=1-t.styles.length/e.stats.originalSize,e.stats.minifiedSize=t.styles.length,t}function l(e){return function(t,r){var i=t.constructor.name+"#"+r,o=n.hrtime();e(t,r);var s=n.hrtime(o);console.log("%d ms: "+i,1e3*s[0]+s[1]/1e6)}}function p(e,t){function n(t,n){return t=s.restore(t,n),t=a.restore(t),t=r.rebase?h(t,e):t,t=o.restore(t),i.restore(t)}var r=e.options,i=new b(e,r.keepSpecialComments,r.keepBreaks,r.sourceMap),o=new _(r.sourceMap),s=new x(r.sourceMap),a=new w(e,r.sourceMap,r.compatibility.properties.urlQuotes),u=r.sourceMap?y:v,c=function(e,n){t="function"==typeof e?e(t):e[n](t)};r.benchmark&&(c=l(c)),c(i,"escape"),c(o,"escape"),c(a,"escape"),c(s,"escape");var p=d(t,e);return m(p,r,e),r.advanced&&g(p,r,e,!0),u(p,r,n,e.inputSourceMapTracker)}var f=e("./imports/inliner"),h=e("./urls/rebase"),d=e("./tokenizer/tokenize"),m=e("./selectors/simple"),g=e("./selectors/advanced"),v=e("./stringifier/simple"),y=e("./stringifier/source-maps"),b=e("./text/comments-processor"),_=e("./text/expressions-processor"),x=e("./text/free-text-processor"),w=e("./text/urls-processor"),k=e("./utils/compatibility"),E=e("./utils/input-source-map-tracker"),A=e("./utils/source-tracker"),C=e("./utils/source-reader"),S=e("./properties/validator"),T=e("fs"),O=e("path"),F=e("url"),L=e("./utils/object").override;(t.exports=function(e){e=e||{},this.options={advanced:void 0===e.advanced||!!e.advanced,aggressiveMerging:void 0===e.aggressiveMerging||!!e.aggressiveMerging,benchmark:e.benchmark,compatibility:new k(e.compatibility).toOptions(),debug:e.debug,explicitRoot:!!e.root,explicitTarget:!!e.target,inliner:e.inliner||{},keepBreaks:e.keepBreaks||!1,keepSpecialComments:"keepSpecialComments"in e?e.keepSpecialComments:"*",mediaMerging:void 0===e.mediaMerging||!!e.mediaMerging,processImport:void 0===e.processImport||!!e.processImport,processImportFrom:r(e.processImportFrom),rebase:void 0===e.rebase||!!e.rebase,relativeTo:e.relativeTo,restructuring:void 0===e.restructuring||!!e.restructuring,root:e.root||n.cwd(),roundingPrecision:e.roundingPrecision,semanticMerging:void 0!==e.semanticMerging&&!!e.semanticMerging,shorthandCompacting:void 0===e.shorthandCompacting||!!e.shorthandCompacting,sourceMap:e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources,target:!e.target||i(e.target)||o(e.target)?e.target:O.dirname(e.target)},this.options.inliner.timeout=this.options.inliner.timeout||5e3,this.options.inliner.request=L(s(n.env.HTTP_PROXY||n.env.http_proxy),this.options.inliner.request||{})}).prototype.minify=function(e,t){var r={stats:{},errors:[],warnings:[],options:this.options,debug:this.options.debug,localOnly:!t,sourceTracker:new A,validator:new S(this.options.compatibility)};return r.options.sourceMap&&(r.inputSourceMapTracker=new E(r)),r.sourceReader=new C(r,e),e=r.sourceReader.toString(),r.options.processImport||e.indexOf("@shallow")>0?(t?n.nextTick:function(e){return e()})(function(){return new f(r).process(e,{localOnly:r.localOnly,imports:r.options.processImportFrom,whenDone:a(t,r)})}):a(t,r)(e)}}).call(this,e("_process"))},{"./imports/inliner":20,"./properties/validator":35,"./selectors/advanced":38,"./selectors/simple":51,"./stringifier/simple":55,"./stringifier/source-maps":56,"./text/comments-processor":57,"./text/expressions-processor":59,"./text/free-text-processor":60,"./text/urls-processor":61,"./tokenizer/tokenize":64,"./urls/rebase":65,"./utils/compatibility":69,"./utils/input-source-map-tracker":70,"./utils/object":71,"./utils/source-reader":73,"./utils/source-tracker":74,_process:112,fs:10,path:109,url:178}],17:[function(e,t,n){function r(e,t,n,r){return t+a[n.toLowerCase()]+r}function i(e,t,n){return u[t.toLowerCase()]+n}var o={},s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},a={},u={};for(var c in s){var l=s[c];c.length<l.length?u[l]=c:a[c]=l}var p=new RegExp("(^| |,|\\))("+Object.keys(a).join("|")+")( |,|\\)|$)","ig"),f=new RegExp("("+Object.keys(u).join("|")+")([^a-f0-9]|$)","ig");o.shorten=function(e){var t=e.indexOf("#")>-1,n=e.replace(p,r);return n!=e&&(n=n.replace(p,r)),t?n.replace(f,i):n},t.exports=o},{}],18:[function(e,t,n){function r(e,t,n){this.hue=e,this.saturation=t,this.lightness=n}function i(e,t,n){var r,i,s;if(e%=360,e<0&&(e+=360),e=~~e/360,t<0?t=0:t>100&&(t=100),t=~~t/100,n<0?n=0:n>100&&(n=100),n=~~n/100,0===t)r=i=s=n;else{var a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;r=o(u,a,e+1/3),i=o(u,a,e),s=o(u,a,e-1/3)}return[~~(255*r),~~(255*i),~~(255*s)]}function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}r.prototype.toHex=function(){var e=i(this.hue,this.saturation,this.lightness),t=e[0].toString(16),n=e[1].toString(16),r=e[2].toString(16);return"#"+(1==t.length?"0":"")+t+(1==n.length?"0":"")+n+(1==r.length?"0":"")+r},t.exports=r},{}],19:[function(e,t,n){function r(e,t,n){this.red=e,this.green=t,this.blue=n}r.prototype.toHex=function(){return"#"+("00000"+(Math.max(0,Math.min(~~this.red,255))<<16|Math.max(0,Math.min(~~this.green,255))<<8|Math.max(0,Math.min(~~this.blue,255))).toString(16)).slice(-6)},t.exports=r},{}],20:[function(e,t,n){(function(n){function r(e){this.outerContext=e}function i(e,t){if(t.shallow)return t.shallow=!1,t.done.push(e),a(t);for(var n=0,r=0,i=0,o=u(e);r<e.length&&(n=s(e,i))!=-1;){if(!o(n)){if((r=e.indexOf(";",n))==-1){i=e.length,e="";break}var p=e.substring(0,n);return t.done.push(p),t.left.unshift([e.substring(r+1),w(t,{shallow:!1})]),t.afterContent=c(p),l(e,n,r,t)}i=n+1}return t.done.push(e),a(t)}function o(e,t){return e.replace(k,function(e,n){return E.test(n)?e:e.replace(n,b.resolve(t,n))})}function s(e,t){var n=e.indexOf("@import",t),r=e.indexOf("@IMPORT",t);return n>-1&&r==-1?n:n==-1&&r>-1?r:Math.min(n,r)}function a(e){return e.left.length>0?i.apply(null,e.left.shift()):e.whenDone(e.done.join(""))}function u(e){var t=0,n=0,r=!1;return function(i){var o,s=0,a=0,u=0,c=0;if(r)return!1;do{if(i>t&&i<n)return!0;if(!(o=e.match(/(\/\*(?!\*\/)[\s\S]*?\*\/)/)))return r=!0,!1;t=s=o.index,a=s+o[0].length,c=a+n,u=c-o[0].length,e=e.substring(a),n=c}while(c<i);return c>i&&i>u}}function c(e){for(var t=u(e),n=-1;;)if((n=e.indexOf("{",n+1))==-1||!t(n))break;return n>-1}function l(e,t,n,r){r.shallow=e.indexOf("@shallow")>0;var i=e.substring(s(e,t)+"@import".length+1,n).replace(/@shallow\)$/,")").trim(),o=0===i.indexOf("url("),u=o?4:0,l=/^['"]/.exec(i.substring(u,u+2)),m=l?i.indexOf(l[0],u+1):x(i," ")[0].length-(o?1:0),g=i.substring(u,m).replace(/['"]/g,"").replace(/\)$/,"").trim(),v=i.substring(m+1).replace(/^\)/,"").trim(),y=r.isRemote||E.test(g);return!y||!r.localOnly&&p(g,!0,r.imports)?y||p(g,!1,r.imports)?!y&&r.afterContent?(r.warnings.push('Ignoring local @import of "'+g+'" as after other CSS content.'),a(r)):(y?f:h)(g,v,r):(r.afterImport?r.warnings.push('Ignoring local @import of "'+g+'" as after other inlined content.'):d(g,v,r),a(r)):(r.afterContent||c(r.done.join(""))?r.warnings.push('Ignoring remote @import of "'+g+'" as no callback given.'):d(g,v,r),a(r))}function p(e,t,n){if(0===n.length)return!1;t&&A.test(e)&&(e="http:"+e);for(var r=t?b.parse(e).host:e,i=!0,o=0;o<n.length;o++){var s=n[o];"all"==s?i=!0:t&&"local"==s?i=!1:t&&"remote"==s?i=!0:t||"remote"!=s?t||"local"!=s?"!"==s[0]&&s.substring(1)===r&&(i=!1):i=!0:i=!1}return i}function f(e,t,r){function s(e){h||(h=!0,r.errors.push('Broken @import declaration of "'+u+'" - '+e),d(u,t,r),n.nextTick(function(){a(r)}))}var u=E.test(e)?e:b.resolve(r.relativeTo,e),c=u;if(A.test(u)&&(u="http:"+u),r.visited.indexOf(u)>-1)return a(r);r.debug&&console.error("Inlining remote stylesheet: "+u),r.visited.push(u);var l=r.inliner.request.protocol||r.inliner.request.hostname,p=l&&0!==l.indexOf("https://")||0===u.indexOf("http://")?v.get:y.get,h=!1,m=w(b.parse(u),r.inliner.request);void 0!==r.inliner.request.hostname&&(m.protocol=r.inliner.request.protocol||"http:",m.path=m.href),p(m,function(e){if(e.statusCode<200||e.statusCode>399)return s("error "+e.statusCode);if(e.statusCode>299){return f(b.resolve(u,e.headers.location),t,r)}var a=[],l=b.parse(u);e.on("data",function(e){a.push(e.toString())}),e.on("end",function(){var e=a.join("");r.rebase&&(e=_(e,{toBase:c},r)),r.sourceReader.trackSource(u,e),e=r.sourceTracker.store(u,e),e=o(e,u),t.length>0&&(e="@media "+t+"{"+e+"}"),r.afterImport=!0;var s=w(r,{isRemote:!0,relativeTo:l.protocol+"//"+l.host+l.pathname});n.nextTick(function(){i(e,s)})})}).on("error",function(e){s(e.message)}).on("timeout",function(){s("timeout")}).setTimeout(r.inliner.timeout)}function h(e,t,n){var r="/"==e[0]?n.root:n.relativeTo,o=g.resolve(g.join(r,e));if(!m.existsSync(o)||!m.statSync(o).isFile())return n.errors.push('Broken @import declaration of "'+e+'"'),a(n);if(n.visited.indexOf(o)>-1)return a(n);n.debug&&console.error("Inlining local stylesheet: "+o),n.visited.push(o);var s=g.dirname(o),u=m.readFileSync(o,"utf8");if(n.rebase){var c={relative:!0,fromBase:s,toBase:n.baseRelativeTo};u=_(u,c,n)}var l=g.relative(n.root,o);return n.sourceReader.trackSource(l,u),u=n.sourceTracker.store(l,u),t.length>0&&(u="@media "+t+"{"+u+"}"),n.afterImport=!0,i(u,w(n,{relativeTo:s}))}function d(e,t,n){var r="@import url("+e+")"+(t.length>0?" "+t:"")+";";n.done.push(r)}var m=e("fs"),g=e("path"),v=e("http"),y=e("https"),b=e("url"),_=e("../urls/rewrite"),x=e("../utils/split"),w=e("../utils/object.js").override,k=/\/\*# sourceMappingURL=(\S+) \*\//,E=/^(https?:)?\/\//,A=/^\/\//;r.prototype.process=function(e,t){var n=this.outerContext.options.root;return t=w(t,{baseRelativeTo:this.outerContext.options.relativeTo||n,debug:this.outerContext.options.debug,done:[],errors:this.outerContext.errors,left:[],inliner:this.outerContext.options.inliner,rebase:this.outerContext.options.rebase,relativeTo:this.outerContext.options.relativeTo||n,root:n,sourceReader:this.outerContext.sourceReader,sourceTracker:this.outerContext.sourceTracker,warnings:this.outerContext.warnings,visited:[]}),i(e,t)},t.exports=r}).call(this,e("_process"))},{"../urls/rewrite":67,"../utils/object.js":71,"../utils/split":75,_process:112,fs:10,http:170,https:97,path:109,url:178}],21:[function(e,t,n){function r(e){return function(t){return"invert"==t[0]||e.isValidColor(t[0])}}function i(e){return function(t){return"inherit"!=t[0]&&e.isValidStyle(t[0])&&!e.isValidColorValue(t[0])}}function o(e,t,n){var r=n[e];return h(r.doubleValues&&2==r.defaultValue.length?[[e,t.important],[r.defaultValue[0]],[r.defaultValue[1]]]:r.doubleValues&&1==r.defaultValue.length?[[e,t.important],[r.defaultValue[0]]]:[[e,t.important],[r.defaultValue]])}function s(e){return function(t){return"inherit"!=t[0]&&e.isValidWidth(t[0])&&!e.isValidStyleKeyword(t[0])&&!e.isValidColorValue(t[0])}}function a(e,t,n){var r=o("background-image",e,t),i=o("background-position",e,t),s=o("background-size",e,t),a=o("background-repeat",e,t),u=o("background-attachment",e,t),c=o("background-origin",e,t),l=o("background-clip",e,t),p=o("background-color",e,t),f=[r,i,s,a,u,c,l,p],h=e.value,d=!1,g=!1,v=!1,y=!1;if(1==e.value.length&&"inherit"==e.value[0][0])return p.value=r.value=a.value=i.value=s.value=c.value=l.value=e.value,f;for(var b=h.length-1;b>=0;b--){var _=h[b];if(n.isValidBackgroundAttachment(_[0]))u.value=[_];else if(n.isValidBackgroundBox(_[0]))g?(c.value=[_],v=!0):(l.value=[_],g=!0);else if(n.isValidBackgroundRepeat(_[0]))y?a.value.unshift(_):(a.value=[_],y=!0);else if(n.isValidBackgroundPositionPart(_[0])||n.isValidBackgroundSizePart(_[0]))if(b>0){var x=h[b-1];if(x[0].indexOf("/")>0){var w=m(x[0],"/");s.value=[[w.pop()].concat(x.slice(1)),_],h[b-1]=[w.pop()].concat(x.slice(1))}else b>1&&"/"==h[b-2][0]?(s.value=[x,_],b-=2):"/"==x[0]?s.value=[_]:(d||(i.value=[]),i.value.unshift(_),d=!0)}else d||(i.value=[]),i.value.unshift(_),d=!0;else if(n.isValidBackgroundPositionAndSize(_[0])){var k=m(_[0],"/");s.value=[[k.pop()].concat(_.slice(1))],i.value=[[k.pop()].concat(_.slice(1))]}else p.value[0][0]!=t[p.name].defaultValue&&"none"!=p.value[0][0]||!n.isValidColor(_[0])?(n.isValidUrl(_[0])||n.isValidFunction(_[0]))&&(r.value=[_]):p.value=[_]}return g&&!v&&(c.value=l.value.slice(0)),f}function u(e,t){for(var n=e.value,r=-1,i=0,s=n.length;i<s;i++)if("/"==n[i][0]){r=i;break}if(0===r||r===n.length-1)throw new d("Invalid border-radius value.");var a=o(e.name,e,t);a.value=r>-1?n.slice(0,r):n.slice(0),a.components=c(a,t);var u=o(e.name,e,t);u.value=r>-1?n.slice(r+1):n.slice(0),u.components=c(u,t);for(var l=0;l<4;l++)a.components[l].multiplex=!0,a.components[l].value=a.components[l].value.concat(u.components[l].value);return a.components}function c(e,t){var n=t[e.name].components,r=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));for(var o=n.length-1;o>=0;o--){var s=h([[n[o],e.important]]);s.value=[i[o]],r.unshift(s)}return r}function l(e){return function(t,n,r){var i,s,a,u,c=[],l=t.value;for(i=0,a=l.length;i<a;i++)","==l[i][0]&&c.push(i);if(0===c.length)return e(t,n,r);var p=[];for(i=0,a=c.length;i<=a;i++){var f=0===i?0:c[i-1]+1,h=i<a?c[i]:l.length,d=o(t.name,t,n);d.value=l.slice(f,h),p.push(e(d,n,r))}var m=p[0];for(i=0,a=m.length;i<a;i++)for(m[i].multiplex=!0,s=1,u=p.length;s<u;s++)m[i].value.push([g]),Array.prototype.push.apply(m[i].value,p[s][i].value);return m}}function p(e,t,n){var r=o("list-style-type",e,t),i=o("list-style-position",e,t),s=o("list-style-image",e,t),a=[r,i,s];if(1==e.value.length&&"inherit"==e.value[0][0])return r.value=i.value=s.value=[e.value[0]],a;var u=e.value.slice(0),c=u.length,l=0;for(l=0,c=u.length;l<c;l++)if(n.isValidUrl(u[l][0])||"0"==u[l][0]){s.value=[u[l]],u.splice(l,1);break}for(l=0,c=u.length;l<c;l++)if(n.isValidListStyleType(u[l][0])){r.value=[u[l]],u.splice(l,1);break}return u.length>0&&n.isValidListStylePosition(u[0][0])&&(i.value=[u[0]]),a}function f(e,t,n){for(var a,u,c,l=t[e.name],p=[o(l.components[0],e,t),o(l.components[1],e,t),o(l.components[2],e,t)],f=0;f<3;f++){var h=p[f];h.name.indexOf("color")>0?a=h:h.name.indexOf("style")>0?u=h:c=h}if(1==e.value.length&&"inherit"==e.value[0][0]||3==e.value.length&&"inherit"==e.value[0][0]&&"inherit"==e.value[1][0]&&"inherit"==e.value[2][0])return a.value=u.value=c.value=[e.value[0]],p;var d,m,g=e.value.slice(0);return g.length>0&&(m=g.filter(s(n)),(d=m.length>1&&("none"==m[0][0]||"auto"==m[0][0])?m[1]:m[0])&&(c.value=[d],g.splice(g.indexOf(d),1))),g.length>0&&(d=g.filter(i(n))[0])&&(u.value=[d],g.splice(g.indexOf(d),1)),g.length>0&&(d=g.filter(r(n))[0])&&(a.value=[d],g.splice(g.indexOf(d),1)),p}var h=e("./wrap-for-optimizing").single,d=e("./invalid-property-error"),m=e("../utils/split"),g=",";t.exports={background:a,border:f,borderRadius:u,fourValues:c,listStyle:p,multiplex:l,outline:f}},{"../utils/split":75,"./invalid-property-error":27,"./wrap-for-optimizing":37}],22:[function(e,t,n){function r(){return!0}function i(e,t,n){var r=e.value[0][0],i=t.value[0][0],o=n.isValidFunction(r),s=n.isValidFunction(i);return o&&s?n.areSameFunction(r,i):!(!o&&s)}function o(e,t,n){var r=e.value[0][0],i=t.value[0][0]
|
||
;return!("none"!=i&&"inherit"!=i&&!n.isValidUrl(i))||"none"!=r&&"inherit"!=r&&!n.isValidUrl(r)&&l(e,t,n)}function s(e,t,n){return a(e.components[2],t.components[2],n)}function a(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(!n.colorOpacity&&(n.isValidRgbaColor(r)||n.isValidHslaColor(r)))&&(!(!n.colorOpacity&&(n.isValidRgbaColor(i)||n.isValidHslaColor(i)))&&(!(!n.isValidNamedColor(i)&&!n.isValidHexColor(i))||!n.isValidNamedColor(r)&&!n.isValidHexColor(r)&&(!(!n.isValidRgbaColor(i)&&!n.isValidHslaColor(i))||!n.isValidRgbaColor(r)&&!n.isValidHslaColor(r)&&l(e,t,n))))}function u(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(n.isValidFunction(r)^n.isValidFunction(i))}function c(e,t){return e.value[0][0]===t.value[0][0]}function l(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!!n.areSameFunction(r,i)||r===i}function p(e,t,n){var r=e.value[0][0],i=t.value[0][0];return!(n.isValidAndCompatibleUnitWithoutFunction(r)&&!n.isValidAndCompatibleUnitWithoutFunction(i))&&(!!n.isValidUnitWithoutFunction(i)||!n.isValidUnitWithoutFunction(r)&&(!(!n.isValidFunctionWithoutVendorPrefix(i)||!n.isValidFunctionWithoutVendorPrefix(r))||l(e,t,n)))}t.exports={always:r,alwaysButIntoFunction:i,backgroundImage:o,border:s,color:a,sameValue:c,sameFunctionOrValue:l,twoOptionalFunctions:u,unit:p}},{}],23:[function(e,t,n){function r(e){for(var t=i(e),n=e.components.length-1;n>=0;n--){var r=i(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t}function i(e){var t=o([[e.name,e.important,e.hack]]);return t.unused=!1,t}var o=e("./wrap-for-optimizing").single;t.exports={deep:r,shallow:i}},{"./wrap-for-optimizing":37}],24:[function(e,t,n){var r=e("./break-up"),i=e("./can-override"),o=e("./restore"),s={color:{canOverride:i.color,defaultValue:"transparent",shortestValue:"red"},background:{components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:r.multiplex(r.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-clip":{canOverride:i.always,defaultValue:"border-box",shortestValue:"border-box"},"background-color":{canOverride:i.color,defaultValue:"transparent",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.backgroundImage,defaultValue:"none"},"background-origin":{canOverride:i.always,defaultValue:"padding-box",shortestValue:"border-box"},"background-repeat":{canOverride:i.always,defaultValue:["repeat"],doubleValues:!0},"background-position":{canOverride:i.alwaysButIntoFunction,defaultValue:["0","0"],doubleValues:!0,shortestValue:"0"},"background-size":{canOverride:i.alwaysButIntoFunction,defaultValue:["auto"],doubleValues:!0,shortestValue:"0 0"},"background-attachment":{canOverride:i.always,defaultValue:"scroll"},border:{breakUp:r.border,canOverride:i.border,components:["border-width","border-style","border-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-color":{canOverride:i.color,defaultValue:"none",shorthand:!0},"border-style":{canOverride:i.always,defaultValue:"none",shorthand:!0},"border-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0",shorthand:!0},"list-style":{components:["list-style-type","list-style-position","list-style-image"],canOverride:i.always,breakUp:r.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-type":{canOverride:i.always,defaultValue:"__hack",shortestValue:"none"},"list-style-position":{canOverride:i.always,defaultValue:"outside",shortestValue:"inside"},"list-style-image":{canOverride:i.always,defaultValue:"none"},outline:{components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.color,defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.always,defaultValue:"none"},"outline-width":{canOverride:i.unit,defaultValue:"medium",shortestValue:"0"},"-moz-transform":{canOverride:i.sameFunctionOrValue},"-ms-transform":{canOverride:i.sameFunctionOrValue},"-webkit-transform":{canOverride:i.sameFunctionOrValue},transform:{canOverride:i.sameFunctionOrValue}},a=function(e,t,n){n=n||{},s[e]={canOverride:n.canOverride,components:t,breakUp:n.breakUp||r.fourValues,defaultValue:n.defaultValue||"0",restore:n.restore||o.fourValues,shortestValue:n.shortestValue,shorthand:!0};for(var a=0;a<t.length;a++)s[t[a]]={breakUp:n.breakUp||r.fourValues,canOverride:n.canOverride||i.unit,defaultValue:n.defaultValue||"0",shortestValue:n.shortestValue}};["","-moz-","-o-"].forEach(function(e){a(e+"border-radius",[e+"border-top-left-radius",e+"border-top-right-radius",e+"border-bottom-right-radius",e+"border-bottom-left-radius"],{breakUp:r.borderRadius,restore:o.borderRadius})}),a("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"],{breakUp:r.fourValues,canOverride:i.color,defaultValue:"none",shortestValue:"red"}),a("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"],{breakUp:r.fourValues,canOverride:i.always,defaultValue:"none"}),a("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"],{defaultValue:"medium",shortestValue:"0"}),a("padding",["padding-top","padding-right","padding-bottom","padding-left"]),a("margin",["margin-top","margin-right","margin-bottom","margin-left"]);for(var u in s)if(s[u].shorthand)for(var c=0,l=s[u].components.length;c<l;c++)s[s[u].components[c]].componentOf=u;t.exports=s},{"./break-up":21,"./can-override":22,"./restore":33}],25:[function(e,t,n){function r(e,t,n,r){for(var s=!(t.shorthand||n.shorthand||t.multiplex||n.multiplex),a=i(t),u=i(n),c=0,l=t.value.length;c<l;c++)for(var p=0,f=n.value.length;p<f;p++)if(t.value[c][0]!=o&&n.value[p][0]!=o&&!(s&&c!=p||(a.value=[t.value[c]],u.value=[n.value[p]],e(a,u,r))))return!1;return!0}var i=e("./clone").shallow,o=",";t.exports=r},{"./clone":23}],26:[function(e,t,n){function r(e){for(var t=e.value.length-1;t>=0;t--)if("inherit"==e.value[t][0])return!0;return!1}t.exports=r},{}],27:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.exports=r},{}],28:[function(e,t,n){function r(e,t,n,r){var i,s,a={},u=null;e:for(var c=0,l=e.length;c<l;c++){var p=e[c],d=!("-ms-filter"!=p.name&&"filter"!=p.name||"background"!=u&&"background-image"!=u)?u:p.name,m=p.important,g=p.hack;if(!p.unused)if(c>0&&i&&d==u&&m==i.important&&g==i.hack&&function(t){var n=e[t-1],r=e[t];return f(n.all,n.position)==f(r.all,r.position)}(c)&&!i.unused)p.unused=!0;else{if(d in a&&(n&&d!=u||function(e){return t===!1||t===!0?t:t.indexOf(e)>-1}(c))){var v=a[d],y=o[d]&&o[d].canOverride,b=!1;for(s=v.length-1;s>=0;s--){var _=e[v[s]],x=_.name!=d,w=_.important,k=_.hack;if(!_.unused&&((!x||!w)&&(w||!(k&&!g||!k&&g))&&(!w||"star"!=g&&"underscore"!=g)&&(k||g||x||!y||y(_,p,r)))){if(w&&!m||w&&g){p.unused=!0,i=p;continue e}b=!0,_.unused=!0}}if(b){c=-1,i=null,u=null,a={};continue}}else{a[d]=a[d]||[],a[d].push(c);var E=h[d];if(E)for(s=E.length-1;s>=0;s--){var A=E[s];a[A]=a[A]||[],a[A].push(c)}}u=d,i=p}}}function i(e,t,n,o,f,h){var d=h.validator,m=h.warnings,g=s(t);a(g,d,m),r(g,n,f.aggressiveMerging,d);for(var v=0,y=g.length;v<y;v++){var b=g[v];b.variable&&b.block&&i(e,b.value[0],n,o,f,h)}o&&f.shorthandCompacting&&(u(g,f.compatibility,d),c(g,f.sourceMap,d)),p(g),l(g)}var o=e("./compactable"),s=e("./wrap-for-optimizing").all,a=e("./populate-components"),u=e("./override-compactor"),c=e("./shorthand-compactor"),l=e("./remove-unused"),p=e("./restore-from-optimizing"),f=e("../stringifier/one-time").property,h={"animation-delay":["animation"],"animation-direction":["animation"],"animation-duration":["animation"],"animation-fill-mode":["animation"],"animation-iteration-count":["animation"],"animation-name":["animation"],"animation-play-state":["animation"],"animation-timing-function":["animation"],"-moz-animation-delay":["-moz-animation"],"-moz-animation-direction":["-moz-animation"],"-moz-animation-duration":["-moz-animation"],"-moz-animation-fill-mode":["-moz-animation"],"-moz-animation-iteration-count":["-moz-animation"],"-moz-animation-name":["-moz-animation"],"-moz-animation-play-state":["-moz-animation"],"-moz-animation-timing-function":["-moz-animation"],"-o-animation-delay":["-o-animation"],"-o-animation-direction":["-o-animation"],"-o-animation-duration":["-o-animation"],"-o-animation-fill-mode":["-o-animation"],"-o-animation-iteration-count":["-o-animation"],"-o-animation-name":["-o-animation"],"-o-animation-play-state":["-o-animation"],"-o-animation-timing-function":["-o-animation"],"-webkit-animation-delay":["-webkit-animation"],"-webkit-animation-direction":["-webkit-animation"],"-webkit-animation-duration":["-webkit-animation"],"-webkit-animation-fill-mode":["-webkit-animation"],"-webkit-animation-iteration-count":["-webkit-animation"],"-webkit-animation-name":["-webkit-animation"],"-webkit-animation-play-state":["-webkit-animation"],"-webkit-animation-timing-function":["-webkit-animation"],"border-color":["border"],"border-style":["border"],"border-width":["border"],"border-bottom":["border"],"border-bottom-color":["border-bottom","border-color","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left":["border"],"border-left-color":["border-left","border-color","border"],"border-left-style":["border-left","border-style","border"],"border-left-width":["border-left","border-width","border"],"border-right":["border"],"border-right-color":["border-right","border-color","border"],"border-right-style":["border-right","border-style","border"],"border-right-width":["border-right","border-width","border"],"border-top":["border"],"border-top-color":["border-top","border-color","border"],"border-top-style":["border-top","border-style","border"],"border-top-width":["border-top","border-width","border"],"font-family":["font"],"font-size":["font"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"transition-delay":["transition"],"transition-duration":["transition"],"transition-property":["transition"],"transition-timing-function":["transition"],"-moz-transition-delay":["-moz-transition"],"-moz-transition-duration":["-moz-transition"],"-moz-transition-property":["-moz-transition"],"-moz-transition-timing-function":["-moz-transition"],"-o-transition-delay":["-o-transition"],"-o-transition-duration":["-o-transition"],"-o-transition-property":["-o-transition"],"-o-transition-timing-function":["-o-transition"],"-webkit-transition-delay":["-webkit-transition"],"-webkit-transition-duration":["-webkit-transition"],"-webkit-transition-property":["-webkit-transition"],"-webkit-transition-timing-function":["-webkit-transition"]};t.exports=i},{"../stringifier/one-time":54,"./compactable":24,"./override-compactor":29,"./populate-components":30,"./remove-unused":31,"./restore-from-optimizing":32,"./shorthand-compactor":34,"./wrap-for-optimizing":37}],29:[function(e,t,n){function r(e){return function(t){return e.name===t.name}}function i(e,t){for(var n=0;n<e.components.length;n++){var r=e.components[n],i=E[r.name],o=i&&i.canOverride||o.sameValue,s=C(r);if(s.value=[[i.defaultValue]],!o(s,r,t))return!0}return!1}function o(e,t){return E[e.name].components.indexOf(t.name)>-1}function s(e,t){t.unused=!0,p(t,f(e)),e.value=t.value}function a(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function u(e,t){t.unused=!0,e.value=t.value}function c(e,t){t.multiplex?a(e,t):e.multiplex?s(e,t):u(e,t)}function l(e,t){t.unused=!0;for(var n=0,r=e.components.length;n<r;n++)c(e.components[n],t.components[n],e.multiplex)}function p(e,t){e.multiplex=!0;for(var n=0,r=e.components.length;n<r;n++){var i=e.components[n];if(!i.multiplex)for(var o=i.value.slice(0),s=1;s<t;s++)i.value.push([B]),Array.prototype.push.apply(i.value,o)}}function f(e){for(var t=0,n=0,r=e.value.length;n<r;n++)e.value[n][0]==B&&t++;return t+1}function h(e){var t=[[e.name]].concat(e.value);return L([t],0).length}function d(e,t,n){for(var r=0,i=t;i>=0&&(e[i].name!=n||e[i].unused||r++,!(r>1));i--);return r>1}function m(e,t){for(var n=0,r=e.components.length;n<r;n++)if(g(t.isValidFunction,e.components[n]))return!0;return!1}function g(e,t){for(var n=0,r=t.value.length;n<r;n++)if(t.value[n][0]!=B&&e(t.value[n][0]))return!0;return!1}function v(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var n,i=e.multiplex?e:t,o=e.multiplex?t:e,u=A(i);T([u]);var c=A(o);T([c]);var l=h(u)+1+h(c);return e.multiplex?(n=u.components.filter(r(c))[0],s(n,c)):(n=c.components.filter(r(u))[0],p(c,f(u)),a(n,u)),T([c]),l<h(c)}function y(e){return e.name in E}function b(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&_(t.value)}function _(e){for(var t=x(e),n=0,r=t.length;n<r;n++)if(1==t[n].length&&"none"==t[n][0][0])return!0;return!1}function x(e){for(var t=[],n=0,r=[],i=e.length;n<i;n++){var o=e[n];o[0]==B?(t.push(r),r=[]):r.push(o)}return t.push(r),t}function w(e,t,n){var s,a,u,h,_,x,w;e:for(_=e.length-1;_>=0;_--)if(a=e[_],y(a)&&!a.variable)for(s=E[a.name].canOverride||k.sameValue,x=_-1;x>=0;x--)if(u=e[x],y(u)&&!(u.variable||u.unused||a.unused||u.hack&&!a.hack||!u.hack&&a.hack||S(a)||b(u,a)))if(!u.shorthand&&a.shorthand&&o(a,u)){if(!a.important&&u.important)continue;if(!F([u],a.components))continue;if(!g(n.isValidFunction,u)&&m(a,n))continue;h=a.components.filter(r(u))[0],s=E[u.name]&&E[u.name].canOverride||k.sameValue,O(s,u,h,n)&&(u.unused=!0)}else if(u.shorthand&&!a.shorthand&&o(u,a)){if(a.important&&!u.important)continue;if(!a.important&&u.important){a.unused=!0;continue}if(d(e,_-1,u.name))continue;if(m(u,n))continue;if(h=u.components.filter(r(a))[0],O(s,h,a,n)){var A=!t.properties.backgroundClipMerging&&h.name.indexOf("background-clip")>-1||!t.properties.backgroundOriginMerging&&h.name.indexOf("background-origin")>-1||!t.properties.backgroundSizeMerging&&h.name.indexOf("background-size")>-1,C=E[a.name].nonMergeableValue===a.value[0][0];if(A||C)continue;if(!t.properties.merging&&i(u,n))continue;if(h.value[0][0]!=a.value[0][0]&&(S(u)||S(a)))continue;if(v(u,a))continue;!u.multiplex&&a.multiplex&&p(u,f(a)),c(h,a),u.dirty=!0}}else if(u.shorthand&&a.shorthand&&u.name==a.name){if(!u.multiplex&&a.multiplex)continue;if(!a.important&&u.important){a.unused=!0;continue e}if(a.important&&!u.important){u.unused=!0;continue}for(w=u.components.length-1;w>=0;w--){var T=u.components[w],L=a.components[w];if(s=E[T.name].canOverride||k.sameValue,!O(s,T,L,n))continue e;if(!O(k.twoOptionalFunctions,T,L,n)&&n.isValidFunction(L))continue e}l(u,a),u.dirty=!0}else if(u.shorthand&&a.shorthand&&o(u,a)){if(!u.important&&a.important)continue;if(h=u.components.filter(r(a))[0],s=E[a.name].canOverride||k.sameValue,!O(s,h,a,n))continue;if(u.important&&!a.important){a.unused=!0;continue}var B=E[a.name].restore(a,E);if(B.length>1)continue;h=u.components.filter(r(a))[0],c(h,a),a.dirty=!0}else if(u.name==a.name){if(u.important&&!a.important){a.unused=!0;continue}if(s=E[a.name].canOverride||k.sameValue,!O(s,u,a,n))continue;u.unused=!0}}var k=e("./can-override"),E=e("./compactable"),A=e("./clone").deep,C=e("./clone").shallow,S=e("./has-inherit"),T=e("./restore-from-optimizing"),O=e("./every-combination"),F=e("./vendor-prefixes").same,L=e("../stringifier/one-time").property,B=",";t.exports=w},{"../stringifier/one-time":54,"./can-override":22,"./clone":23,"./compactable":24,"./every-combination":25,"./has-inherit":26,"./restore-from-optimizing":32,"./vendor-prefixes":36}],30:[function(e,t,n){function r(e,t,n){for(var r=e.length-1;r>=0;r--){var s=e[r],a=i[s.name];if(a&&a.shorthand){s.shorthand=!0,s.dirty=!0;try{s.components=a.breakUp(s,i,t)}catch(e){if(!(e instanceof o))throw e;s.components=[],n.push(e.message)}s.components.length>0?s.multiplex=s.components[0].multiplex:s.unused=!0}}}var i=e("./compactable"),o=e("./invalid-property-error");t.exports=r},{"./compactable":24,"./invalid-property-error":27}],31:[function(e,t,n){function r(e){for(var t=e.length-1;t>=0;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}t.exports=r},{}],32:[function(e,t,n){function r(e){e.value[e.value.length-1][0]+=u}function i(e){"underscore"==e.hack?e.name=l+e.name:"star"==e.hack?e.name=c+e.name:"backslash"==e.hack?e.value[e.value.length-1][0]+=a:"bang"==e.hack&&(e.value[e.value.length-1][0]+=" "+p)}function o(e,t){for(var n=e.length-1;n>=0;n--){var o,a=e[n],u=s[a.name];if(!a.unused&&((a.dirty||a.important||a.hack)&&(!t&&u&&u.shorthand?(o=u.restore(a,s),a.value=o):o=a.value,a.important&&r(a),a.hack&&i(a),"all"in a))){var c=a.all[a.position];c[0][0]=a.name,c.splice(1,c.length-1),Array.prototype.push.apply(c,o)}}}var s=e("./compactable"),a="\\9",u="!important",c="*",l="_",p="!ie";t.exports=o},{"./compactable":24}],33:[function(e,t,n){function r(e){for(var t=0,n=e.length;t<n;t++){var r=e[t][0];if("inherit"!=r&&r!=l&&r!=p)return!1}return!0}function i(e,t,n){function i(e){Array.prototype.unshift.apply(c,e.value)}function o(e){var n=t[e.name];return n.doubleValues?1==n.defaultValue.length?e.value[0][0]==n.defaultValue[0]&&(!e.value[1]||e.value[1][0]==n.defaultValue[0]):e.value[0][0]==n.defaultValue[0]&&(e.value[1]?e.value[1][0]:e.value[0][0])==n.defaultValue[1]:e.value[0][0]==n.defaultValue}for(var s,a,u=e.components,c=[],l=u.length-1;l>=0;l--){var f=u[l],h=o(f);if("background-clip"==f.name){var d=u[l-1],m=o(d);s=f.value[0][0]==d.value[0][0],a=!s&&(m&&!h||!m&&!h||!m&&h&&f.value[0][0]!=d.value[0][0]),s?i(d):a&&(i(f),i(d)),l--}else if("background-size"==f.name){var g=u[l-1],v=o(g);s=!v&&h,a=!s&&(v&&!h||!v&&!h),s?i(g):a?(i(f),c.unshift([p]),i(g)):1==g.value.length&&i(g),l--}else{if(h||t[f.name].multiplexLastOnly&&!n)continue;i(f)}}return 0===c.length&&1==e.value.length&&"0"==e.value[0][0]&&c.push(e.value[0]),0===c.length&&c.push([t[e.name].defaultValue]),r(c)?[c[0]]:c}function o(e,t){if(e.multiplex){for(var n=c(e),r=c(e),i=0;i<4;i++){var o=e.components[i],a=c(e);a.value=[o.value[0]],n.components.push(a);var u=c(e);u.value=[o.value[1]||o.value[0]],r.components.push(u)}var l=s(n),p=s(r);return l.length!=p.length||l[0][0]!=p[0][0]||l.length>1&&l[1][0]!=p[1][0]||l.length>2&&l[2][0]!=p[2][0]||l.length>3&&l[3][0]!=p[3][0]?l.concat([["/"]]).concat(p):l}return s(e)}function s(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return n[0]==r[0]&&n[0]==i[0]&&n[0]==o[0]?[n]:n[0]==i[0]&&r[0]==o[0]?[n,r]:r[0]==o[0]?[n,r,i]:[n,r,i,o]}function a(e){return function(t,n){if(!t.multiplex)return e(t,n,!0);var r,i,o=0,s=[],a={};for(r=0,i=t.components[0].value.length;r<i;r++)t.components[0].value[r][0]==l&&o++;for(r=0;r<=o;r++){for(var u=c(t),p=0,f=t.components.length;p<f;p++){var h=t.components[p],d=c(h);u.components.push(d);for(var m=a[d.name]||0,g=h.value.length;m<g;m++){if(h.value[m][0]==l){a[d.name]=m+1;break}d.value.push(h.value[m])}}var v=r==o,y=e(u,n,v);Array.prototype.push.apply(s,y),r<o&&s.push([","])}return s}}function u(e,t){for(var n=e.components,i=[],o=n.length-1;o>=0;o--){var s=n[o],a=t[s.name];s.value[0][0]!=a.defaultValue&&i.unshift(s.value[0])}return 0===i.length&&i.push([t[e.name].defaultValue]),r(i)?[i[0]]:i}var c=e("./clone").shallow,l=",",p="/";t.exports={background:i,borderRadius:o,fourValues:s,multiplex:a,withoutDefaults:u}},{"./clone":23}],34:[function(e,t,n){function r(e){var t;for(var n in e){if(void 0!==t&&e[n].important!=t)return!0;t=e[n].important}return!1}function i(e){var t=[];for(var n in e){var r=e[n],i=r.all[r.position],o=i[0][i[0].length-1];Array.isArray(o)&&Array.prototype.push.apply(t,o)}return t}function o(e,t,n,r,o){var s,a=u[n],d=[[n],[a.defaultValue]],m=f(d);m.shorthand=!0,m.dirty=!0,p([m],o,[]);for(var g=0,v=a.components.length;g<v;g++){var y=t[a.components[g]],b=u[y.name].canOverride;if(l(y))return;if(!h(b,m.components[g],y,o))return;m.components[g]=c(y),m.important=y.important,s=y.all}for(var _ in t)t[_].unused=!0;if(r){var x=i(t);x.length>0&&d[0].push(x)}m.position=s.length,m.all=s,m.all.push(d),e.push(m)}function s(e,t,n,i,s){var a=e[t];for(var c in n)if(void 0===a||c!=a.name){var l=u[c],p=n[c];l.components.length>Object.keys(p).length?delete n[c]:r(p)||o(e,p,c,i,s)}}function a(e,t,n){var r={};if(!(e.length<3)){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(!a.unused&&(!a.hack&&!a.variable)){var c=u[a.name];if(c&&c.componentOf)if(a.shorthand)s(e,i,r,t,n);else{var l=c.componentOf;r[l]=r[l]||{},r[l][a.name]=a}}}s(e,i,r,t,n)}}var u=e("./compactable"),c=e("./clone").deep,l=e("./has-inherit"),p=e("./populate-components"),f=e("./wrap-for-optimizing").single,h=e("./every-combination");t.exports=a},{"./clone":23,"./compactable":24,"./every-combination":25,"./has-inherit":26,"./populate-components":30,"./wrap-for-optimizing":37}],35:[function(e,t,n){function r(e){var t=s.slice(0).filter(function(t){return!(t in e.units)||e.units[t]===!0}),n="(\\-?\\.?\\d+\\.?\\d*("+t.join("|")+"|)|auto|inherit)";this.compatibleCssUnitRegex=new RegExp("^"+n+"$","i"),this.compatibleCssUnitAnyRegex=new RegExp("^(none|"+o.join("|")+"|"+n+"|"+l+"|"+u+"|"+c+")$","i"),this.colorOpacity=e.colors.opacity}var i=e("../utils/split"),o=["thin","thick","medium","inherit","initial"],s=["px","%","em","in","cm","mm","ex","pt","pc","ch","rem","vh","vm","vmin","vmax","vw"],a="(\\-?\\.?\\d+\\.?\\d*("+s.join("|")+"|)|auto|inherit)",u="[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)",c="\\-(\\-|[A-Z]|[0-9])+\\(.*?\\)",l="var\\(\\-\\-[^\\)]+\\)",p="("+l+"|"+u+"|"+c+")",f="("+a+"|(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\))",h="(none|"+o.join("|")+"|"+a+"|"+l+"|"+u+"|"+c+")",d=new RegExp("^"+u+"$","i"),m=new RegExp("^"+c+"$","i"),g=new RegExp("^"+l+"$","i"),v=new RegExp("^"+p+"$","i"),y=new RegExp("^"+a+"$","i"),b=new RegExp("^"+f+"$","i"),_=new RegExp("^"+h+"$","i"),x=["repeat","no-repeat","repeat-x","repeat-y","inherit"],w=["inherit","scroll","fixed","local"],k=["center","top","bottom","left","right"],E=["contain","cover"],A=["border-box","content-box","padding-box"],C=["auto","inherit","hidden","none","dotted","dashed","solid","double","groove","ridge","inset","outset"],S=["armenian","circle","cjk-ideographic","decimal","decimal-leading-zero","disc","georgian","hebrew","hiragana","hiragana-iroha","inherit","katakana","katakana-iroha","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],T=["inside","outside","inherit"];r.prototype.isValidHexColor=function(e){return(4===e.length||7===e.length)&&"#"===e[0]},r.prototype.isValidRgbaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("rgba(")&&e.indexOf(")")===e.length-1},r.prototype.isValidHslaColor=function(e){return e=e.split(" ").join(""),e.length>0&&0===e.indexOf("hsla(")&&e.indexOf(")")===e.length-1},r.prototype.isValidNamedColor=function(e){return"auto"!==e&&("transparent"===e||"inherit"===e||/^[a-zA-Z]+$/.test(e))},r.prototype.isValidVariable=function(e){return g.test(e)},r.prototype.isValidColor=function(e){return this.isValidNamedColor(e)||this.isValidColorValue(e)||this.isValidVariable(e)||this.isValidVendorPrefixedValue(e)},r.prototype.isValidColorValue=function(e){return this.isValidHexColor(e)||this.isValidRgbaColor(e)||this.isValidHslaColor(e)},r.prototype.isValidUrl=function(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS")},r.prototype.isValidUnit=function(e){return _.test(e)},r.prototype.isValidUnitWithoutFunction=function(e){return y.test(e)},r.prototype.isValidAndCompatibleUnit=function(e){return this.compatibleCssUnitAnyRegex.test(e)},r.prototype.isValidAndCompatibleUnitWithoutFunction=function(e){return this.compatibleCssUnitRegex.test(e)},r.prototype.isValidFunctionWithoutVendorPrefix=function(e){return d.test(e)},r.prototype.isValidFunctionWithVendorPrefix=function(e){return m.test(e)},r.prototype.isValidFunction=function(e){return v.test(e)},r.prototype.isValidBackgroundRepeat=function(e){return x.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundAttachment=function(e){return w.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundBox=function(e){return A.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidBackgroundPositionPart=function(e){return k.indexOf(e)>=0||b.test(e)||this.isValidVariable(e)},r.prototype.isValidBackgroundPosition=function(e){if("inherit"===e)return!0;for(var t=e.split(" "),n=0,r=t.length;n<r;n++)if(""!==t[n]&&!this.isValidBackgroundPositionPart(t[n])&&!this.isValidVariable(t[n]))return!1;return!0},r.prototype.isValidBackgroundSizePart=function(e){return E.indexOf(e)>=0||y.test(e)||this.isValidVariable(e)},r.prototype.isValidBackgroundPositionAndSize=function(e){if(e.indexOf("/")<0)return!1;var t=i(e,"/");return this.isValidBackgroundSizePart(t.pop())&&this.isValidBackgroundPositionPart(t.pop())},r.prototype.isValidListStyleType=function(e){return S.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidListStylePosition=function(e){return T.indexOf(e)>=0||this.isValidVariable(e)},r.prototype.isValidStyle=function(e){return this.isValidStyleKeyword(e)||this.isValidVariable(e)},r.prototype.isValidStyleKeyword=function(e){return C.indexOf(e)>=0},r.prototype.isValidWidth=function(e){return this.isValidUnit(e)||this.isValidWidthKeyword(e)||this.isValidVariable(e)},r.prototype.isValidWidthKeyword=function(e){return o.indexOf(e)>=0},r.prototype.isValidVendorPrefixedValue=function(e){return/^-([A-Za-z0-9]|-)*$/gi.test(e)},r.prototype.areSameFunction=function(e,t){return!(!this.isValidFunction(e)||!this.isValidFunction(t))&&e.substring(0,e.indexOf("("))===t.substring(0,t.indexOf("("))},t.exports=r},{"../utils/split":75}],36:[function(e,t,n){function r(e){for(var t=[],n=0,r=e.length;n<r;n++)for(var i=e[n],s=0,a=i.value.length;s<a;s++){var u=o.exec(i.value[s][0]);u&&t.indexOf(u[0])==-1&&t.push(u[0])}return t}function i(e,t){return r(e).sort().join(",")==r(t).sort().join(",")}var o=/$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;t.exports={same:i}},{}],37:[function(e,t,n){function r(e){for(var t=[],n=e.length-1;n>=0;n--)if("string"!=typeof e[n][0]){var r=l(e[n]);r.all=e,r.position=n,t.unshift(r)}return t}function i(e){for(var t=1,n=e.length;t<n;t++)if(","==e[t][0]||"/"==e[t][0])return!0;return!1}function o(e){var t=!1,n=e[0][0],r=e[e.length-1];return n[0]==m?t="underscore":n[0]==d?t="star":r[0][0]!=g||r[0].match(f)?r[0].indexOf(g)>0&&!r[0].match(f)?t="bang":r[0].indexOf(p)>0&&r[0].indexOf(p)==r[0].length-p.length-1?t="backslash":0===r[0].indexOf(p)&&2==r[0].length&&(t="backslash"):t="bang",t}function s(e){if(e.length>1){var t=e[e.length-1][0];if("string"==typeof t)return h.test(t)}return!1}function a(e){e.length>0&&(e[e.length-1][0]=e[e.length-1][0].replace(h,""))}function u(e){e[0][0]=e[0][0].substring(1)}function c(e,t){var n=e[e.length-1];n[0]=n[0].substring(0,n[0].indexOf("backslash"==t?p:g)).trim(),0===n[0].length&&e.pop()}function l(e){var t=s(e);t&&a(e);var n=o(e);"star"==n||"underscore"==n?u(e):"backslash"!=n&&"bang"!=n||c(e,n);var r=0===e[0][0].indexOf("--");return{block:r&&e[1]&&Array.isArray(e[1][0][0]),components:[],dirty:!1,hack:n,important:t,name:e[0][0],multiplex:e.length>2&&i(e),position:0,shorthand:!1,unused:e.length<2,value:e.slice(1),variable:r}}var p="\\",f=new RegExp("important$","i"),h=new RegExp("!important$","i"),d="*",m="_",g="!";t.exports={all:r,single:l}},{}],38:[function(e,t,n){function r(e){for(var t=0,n=e.length;t<n;t++){var i=e[t],o=!1;switch(i[0]){case"selector":o=0===i[1].length||0===i[2].length;break;case"block":r(i[2]),o=0===i[2].length}o&&(e.splice(t,1),t--,n--)}}function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if("block"==o[0]){var a=/@(-moz-|-o-|-webkit-)?keyframes/.test(o[1][0]);s(o[2],t,n,!a)}}}function o(e,t,n){for(var r=0,i=e.length;r<i;r++){var s=e[r];switch(s[0]){case"selector":a(s[1],s[2],!1,!0,t,n);break;case"block":o(s[2],t,n)}}}function s(e,t,n,a){if(i(e,t,n),o(e,t,n),u(e),c(e,t,n),l(e,t,n),p(e,t,n),f(e,t),t.restructuring&&a&&(h(e,t),c(e,t,n)),t.mediaMerging){d(e);for(var g=m(e),v=g.length-1;v>=0;v--)s(g[v][2],t,n,!1)}r(e)}var a=e("../properties/optimizer"),u=e("./remove-duplicates"),c=e("./merge-adjacent"),l=e("./reduce-non-adjacent"),p=e("./merge-non-adjacent-by-selector"),f=e("./merge-non-adjacent-by-body"),h=e("./restructure"),d=e("./remove-duplicate-media-queries"),m=e("./merge-media-queries");t.exports=s},{"../properties/optimizer":28,"./merge-adjacent":42,"./merge-media-queries":43,"./merge-non-adjacent-by-body":44,"./merge-non-adjacent-by-selector":45,"./reduce-non-adjacent":46,"./remove-duplicate-media-queries":47,"./remove-duplicates":48,"./restructure":50}],39:[function(e,t,n){function r(e,t){return"["+t.replace(/ /g,"")+"]"}function i(e,t){return e[0]>t[0]?1:-1}function o(e,t,n,r){return t&&n&&r.length?t+n+" ":t&&n?t+n:n}var s={selectors:function(e,t,n){for(var s=[],a=[],u=0,c=e.length;u<c;u++){var l=e[u],p=l[0].replace(/\s+/g," ").replace(/ ?, ?/g,",").replace(/\s*(\\)?([>+~])(\s*)/g,o).trim();n&&p.indexOf("nav")>0&&(p=p.replace(/\+nav(\S|$)/,"+ nav$1")),(!t||p.indexOf("*+html ")==-1&&p.indexOf("*:first-child+html ")==-1)&&(p.indexOf("*")>-1&&(p=p.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),p.indexOf("[")>-1&&(p=p.replace(/\[([^\]]+)\]/g,r)),a.indexOf(p)==-1&&(l[0]=p,a.push(p),s.push(l)))}return s.sort(i)},selectorDuplicates:function(e){for(var t=[],n=[],r=0,o=e.length;r<o;r++){var s=e[r];n.indexOf(s[0])==-1&&(n.push(s[0]),t.push(s))}return t.sort(i)},block:function(e,t){e[0]=e[0].replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")"),t||(e[0]=e[0].replace(/\) /g,")"))},atRule:function(e){e[0]=e[0].replace(/\s+/g," ").trim()}};t.exports=s},{}],40:[function(e,t,n){function r(e){var t=[];if("selector"==e[0])for(var n=!/[\.\+>~]/.test(o(e[1])),u=0,c=e[2].length;u<c;u++){var l=e[2][u];if(0!==l.indexOf("__ESCAPED")&&l[0]!=a){var p=e[2][u][0][0];if(0!==p.length&&0!==p.indexOf("--")){var f=s(e[2],u);t.push([p,f,i(p),e[2][u],p+":"+f,e[1],n])}}}else if("block"==e[0])for(var h=0,d=e[2].length;h<d;h++)t=t.concat(r(e[2][h]));return t}function i(e){return"list-style"==e?e:e.indexOf("-radius")>0?"border-radius":"border-collapse"==e||"border-spacing"==e||"border-image"==e?e:0===e.indexOf("border-")&&/^border\-\w+\-\w+$/.test(e)?e.match(/border\-\w+/)[0]:0===e.indexOf("border-")&&/^border\-\w+$/.test(e)?"border":0===e.indexOf("text-")?e:e.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}var o=e("../stringifier/one-time").selectors,s=e("../stringifier/one-time").value,a="at-rule";t.exports=r},{"../stringifier/one-time":54}],41:[function(e,t,n){function r(e,t){return e.compatibility.selectors.special.test(t)}t.exports=r},{}],42:[function(e,t,n){function r(e,t,n){for(var r=[null,[],[]],c=t.compatibility.selectors.adjacentSpace,l=0,p=e.length;l<p;l++){var f=e[l];if("selector"==f[0])if("selector"==r[0]&&s(f[1])==s(r[1])){var h=[r[2].length];Array.prototype.push.apply(r[2],f[2]),i(f[1],r[2],h,!0,t,n),f[2]=[]}else"selector"!=r[0]||o(f[2])!=o(r[2])||u(t,s(f[1]))||u(t,s(r[1]))?r=f:(r[1]=a(r[1].concat(f[1]),!1,c),f[2]=[]);else r=[null,[],[]]}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").body,s=e("../stringifier/one-time").selectors,a=e("./clean-up").selectors,u=e("./is-special");t.exports=r},{"../properties/optimizer":28,"../stringifier/one-time":54,"./clean-up":39,"./is-special":41}],43:[function(e,t,n){function r(e){for(var t={},n=[],r=e.length-1;r>=0;r--){var s=e[r];if("block"==s[0]){var a=t[s[1][0]];a||(a=[],t[s[1][0]]=a),a.push(r)}}for(var u in t){var c=t[u];e:for(var l=c.length-1;l>0;l--){var p=c[l],f=e[p],h=c[l-1],d=e[h];t:for(var m=1;m>=-1;m-=2){for(var g=1==m,v=g?p+1:h-1,y=g?h:p,b=g?1:-1,_=g?f:d,x=g?d:f,w=o(_);v!=y;){var k=o(e[v]);if(v+=b,
|
||
!i(w,k))continue t}x[2]=g?_[2].concat(x[2]):x[2].concat(_[2]),_[2]=[],n.push(x);continue e}}}return n}var i=e("./reorderable").canReorder,o=e("./extractor");t.exports=r},{"./extractor":40,"./reorderable":49}],44:[function(e,t,n){function r(e){return/\.|\*| :/.test(e)}function i(e){var t=c(e[1]);return t.indexOf("__")>-1||t.indexOf("--")>-1}function o(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function s(e,t){var n=o(c(e[1]));for(var r in t){var i=t[r],s=o(c(i[1]));(s.indexOf(n)>-1||n.indexOf(s)>-1)&&delete t[r]}}function a(e,t){for(var n={},o=t.compatibility.selectors.adjacentSpace,a=e.length-1;a>=0;a--){var f=e[a];if("selector"==f[0]){f[2].length>0&&!t.semanticMerging&&r(c(f[1]))&&(n={}),f[2].length>0&&t.semanticMerging&&i(f)&&s(f,n);var h=u(f[2]),d=n[h];!d||p(t,c(f[1]))||p(t,c(d[1]))||(f[1]=f[2].length>0?l(d[1].concat(f[1]),!1,o):d[1].concat(f[1]),d[2]=[],n[h]=null),n[u(f[2])]=f}}}var u=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,l=e("./clean-up").selectors,p=e("./is-special");t.exports=a},{"../stringifier/one-time":54,"./clean-up":39,"./is-special":41}],45:[function(e,t,n){function r(e,t,n){var r,u={},c=[];for(r=e.length-1;r>=0;r--)if("selector"==e[r][0]&&0!==e[r][2].length){var l=o(e[r][1]);u[l]=[r].concat(u[l]||[]),2==u[l].length&&c.push(l)}for(r=c.length-1;r>=0;r--){var p=u[c[r]];e:for(var f=p.length-1;f>0;f--){var h=p[f-1],d=e[h],m=p[f],g=e[m];t:for(var v=1;v>=-1;v-=2){for(var y,b=1==v,_=b?h+1:m-1,x=b?m:h,w=b?1:-1,k=b?d:g,E=b?g:d,A=s(k);_!=x;){var C=s(e[_]);_+=w;var S=b?a(A,C):a(C,A);if(!S&&!b)continue e;if(!S&&b)continue t}b?(y=[k[2].length],Array.prototype.push.apply(k[2],E[2]),E[2]=k[2]):(y=[E[2].length],Array.prototype.push.apply(E[2],k[2])),i(E[1],E[2],y,!0,t,n),k[2]=[]}}}}var i=e("../properties/optimizer"),o=e("../stringifier/one-time").selectors,s=e("./extractor"),a=e("./reorderable").canReorder;t.exports=r},{"../properties/optimizer":28,"../stringifier/one-time":54,"./extractor":40,"./reorderable":49}],46:[function(e,t,n){function r(e,t,n){for(var r={},a=[],u=e.length-1;u>=0;u--){var c=e[u];if("selector"==c[0]&&0!==c[2].length)for(var f=l(c[1]),h=c[1].length>1&&!p(t,f),d=t.sourceMap?i(c[1]):c[1],m=h?[f].concat(d):[f],g=0,v=m.length;g<v;g++){var y=m[g];r[y]?a.push(y):r[y]=[],r[y].push({where:u,list:d,isPartial:h&&g>0,isComplex:h&&0===g})}}o(e,a,r,t,n),s(e,r,t,n)}function i(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][0]]);return t}function o(e,t,n,r,i){function o(e,t){return p[e].isPartial&&0===t.length}function s(e,t,n,r){p[n-r-1].isPartial||(e[2]=t)}for(var u=0,c=t.length;u<c;u++){var l=t[u],p=n[l];a(e,l,p,{filterOut:o,callback:s},r,i)}}function s(e,t,n,r){function i(e){return s.data[e].where<s.intoPosition}function o(e,t,n,r){0===r&&s.reducedBodies.push(t)}var s={};e:for(var u in t){var l=t[u];if(l[0].isComplex){var f=l[l.length-1].where,h=e[f],d=[],m=p(n,u)?[u]:l[0].list;s.intoPosition=f,s.reducedBodies=d;for(var g=0,v=m.length;g<v;g++){var y=m[g],b=t[y];if(b.length<2)continue e;if(s.data=b,a(e,y,b,{filterOut:i,callback:o},n,r),c(d[d.length-1])!=c(d[0]))continue e}h[2]=d[0]}}}function a(e,t,n,r,i,o){for(var s=[],a=[],c=[],l=[],p=n.length-1,h=0;p>=0;p--)if(!r.filterOut(p,s)){var d=n[p].where,m=e[d],g=f(m[2]);s=s.concat(g),a.push(g),l.push(d)}for(p=0,h=a.length;p<h;p++)a[p].length>0&&c.push((c.length>0?c[c.length-1]:0)+a[p].length);u(t,s,c,!1,i,o);for(var v=l.length,y=s.length-1,b=v-1;b>=0;)if((0===b||s[y]&&a[b].indexOf(s[y])>-1)&&y>-1)y--;else{var _=s.splice(y+1);r.callback(e[l[b]],_,v,b),b--}}var u=e("../properties/optimizer"),c=e("../stringifier/one-time").body,l=e("../stringifier/one-time").selectors,p=e("./is-special"),f=e("../utils/clone-array");t.exports=r},{"../properties/optimizer":28,"../stringifier/one-time":54,"../utils/clone-array":68,"./is-special":41}],47:[function(e,t,n){function r(e){for(var t={},n=0,r=e.length;n<r;n++){var o=e[n];if("block"==o[0]){var s=o[1][0]+"%"+i(o[2]),a=t[s];a&&(a[2]=[]),t[s]=o}}}var i=e("../stringifier/one-time").all;t.exports=r},{"../stringifier/one-time":54}],48:[function(e,t,n){function r(e){for(var t,n,r,s,a={},u=[],c=0,l=e.length;c<l;c++)n=e[c],"selector"==n[0]&&(t=o(n[1]),a[t]&&1==a[t].length?u.push(t):a[t]=a[t]||[],a[t].push(c));for(c=0,l=u.length;c<l;c++){t=u[c],s=[];for(var p=a[t].length-1;p>=0;p--)n=e[a[t][p]],r=i(n[2]),s.indexOf(r)>-1?n[2]=[]:s.push(r)}}var i=e("../stringifier/one-time").body,o=e("../stringifier/one-time").selectors;t.exports=r},{"../stringifier/one-time":54}],49:[function(e,t,n){function r(e,t){for(var n=t.length-1;n>=0;n--)for(var r=e.length-1;r>=0;r--)if(!i(e[r],t[n]))return!1;return!0}function i(e,t){var n=e[0],r=e[1],i=e[2],m=e[5],g=e[6],v=t[0],y=t[1],b=t[2],_=t[5],x=t[6];return!("font"==n&&"line-height"==v||"font"==v&&"line-height"==n)&&((!h.test(n)||!h.test(v))&&(!(i==b&&s(n)==s(v)&&o(n)^o(v))&&(("border"!=i||!d.test(b)||!("border"==n||n==b||r!=y&&a(n,v)))&&(("border"!=b||!d.test(i)||!("border"==v||v==i||r!=y&&a(n,v)))&&(("border"!=i||"border"!=b||n==v||!(u(n)&&c(v)||c(n)&&u(v)))&&(i!=b||(!(n!=v||i!=b||r!=y&&!l(r,y))||(n!=v&&i==b&&n!=i&&v!=b||(n!=v&&i==b&&r==y||!(!x||!g||f(i)||f(b)||!p(_,m)))))))))))}function o(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function s(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function a(e,t){return e.split("-").pop()==t.split("-").pop()}function u(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function c(e){return"border-color"==e||"border-style"==e||"border-width"==e}function l(e,t){return o(e)&&o(t)&&e.split("-")[1]!=t.split("-")[2]}function p(e,t){for(var n=0,r=e.length;n<r;n++)for(var i=0,o=t.length;i<o;i++)if(e[n][0]==t[i][0])return!1;return!0}function f(e){return"font"==e||"line-height"==e||"list-style"==e}var h=/align\-items|box\-align|box\-pack|flex|justify/,d=/^border\-(top|right|bottom|left|color|style|width|radius)/;t.exports={canReorder:r,canReorderSingle:i}},{}],50:[function(e,t,n){function r(e,t){return e>t}function i(e,t){var n=f(e);return n[5]=n[5].concat(t[5]),n}function o(e,t){function n(e,t,n){for(var r=n.length-1;r>=0;r--){var i=n[r][0],s=o(t,i);if(C[s].length>1&&k(e,C[s])){f(s);break}}}function o(e,t){var n=h(t);return C[n]=C[n]||[],C[n].push([e,t]),n}function f(e){var t,n=e.split(O),r=[];for(var i in C){var o=i.split(O);for(t=o.length-1;t>=0;t--)if(n.indexOf(o[t])>-1){r.push(i);break}}for(t=r.length-1;t>=0;t--)delete C[r[t]]}function h(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(c(e[n][1]));return t.join(O)}function d(e){for(var n=[],r=[],i=e.length-1;i>=0;i--)p(t,c(e[i][1]))||(r.unshift(e[i]),e[i][2].length>0&&n.indexOf(e[i])==-1&&n.push(e[i]));return n.length>1?r:[]}function m(e,t){var r=t[0],i=t[1],o=t[4],s=r.length+i.length+1,a=[],u=[],c=d(E[o]);if(!(c.length<2)){var p=v(c,s,1),f=p[0];if(f[1]>0)return n(e,t,p);for(var h=f[0].length-1;h>=0;h--)a=f[0][h][1].concat(a),u.unshift(f[0][h]);a=l(a),_(e,[t],a,u)}}function g(e,t){return e[1]>t[1]}function v(e,t,n){return y(e,t,n,T-1).sort(g)}function y(e,t,n,r){var i=[[e,b(e,t,n)]];if(e.length>2&&r>0)for(var o=e.length-1;o>=0;o--){var s=Array.prototype.slice.call(e,0);s.splice(o,1),i=i.concat(y(s,t,n,r-1))}return i}function b(e,t,n){for(var r=0,i=e.length-1;i>=0;i--)r+=e[i][2].length>n?c(e[i][1]).length:-1;return r-(e.length-1)*t+1}function _(t,n,r,i){var o,s,a,c,l=[];for(o=i.length-1;o>=0;o--){var p=i[o];for(s=p[2].length-1;s>=0;s--){var f=p[2][s];for(a=0,c=n.length;a<c;a++){var h=n[a],d=f[0][0],m=h[0],g=h[4];if(d==m&&u([f])==g){p[2].splice(s,1);break}}}}for(o=n.length-1;o>=0;o--)l.unshift(n[o][3]);var v=["selector",r,l];e.splice(t,0,v)}function x(e,t){var n=t[4],r=E[n];r&&r.length>1&&(w(e,t)||m(e,t))}function w(e,t){var n,r,i=[],o=[],s=t[4],a=d(E[s]);if(!(a.length<2)){e:for(var u in E){var c=E[u];for(n=a.length-1;n>=0;n--)if(c.indexOf(a[n])==-1)continue e;i.push(u)}if(i.length<2)return!1;for(n=i.length-1;n>=0;n--)for(r=A.length-1;r>=0;r--)if(A[r][4]==i[n]){o.unshift([A[r],a]);break}return k(e,o)}}function k(e,t){for(var n,r=0,i=[],o=t.length-1;o>=0;o--){n=t[o][0];r+=n[4].length+(o>0?1:0),i.push(n)}var s=t[0][1],a=v(s,r,i.length)[0];if(a[1]>0)return!1;var u=[],c=[];for(o=a[0].length-1;o>=0;o--)u=a[0][o][1].concat(u),c.unshift(a[0][o]);for(u=l(u),_(e,i,u,c),o=i.length-1;o>=0;o--){n=i[o];var p=A.indexOf(n);delete E[n[4]],p>-1&&S.indexOf(p)==-1&&S.push(p)}return!0}for(var E={},A=[],C={},S=[],T=2,O="%",F=e.length-1;F>=0;F--){var L,B,D,R,M,N=e[F];if("selector"==N[0])L=!0;else{if("block"!=N[0])continue;L=!1}var P=A.length,I=s(N);S=[];var j=[];for(B=I.length-1;B>=0;B--)for(D=B-1;D>=0;D--)if(!a(I[B],I[D])){j.push(B);break}for(B=I.length-1;B>=0;B--){var V=I[B],U=!1;for(D=0;D<P;D++){var z=A[D];S.indexOf(D)!=-1||a(V,z)||function(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],i=E[r];return i&&i.indexOf(n)>-1}(V,z,N)||(x(F+1,z),S.indexOf(D)==-1&&(S.push(D),delete E[z[4]])),U||(U=V[0]==z[0]&&V[1]==z[1])&&(M=D)}if(L&&!(j.indexOf(B)>-1)){var q=V[4];E[q]=E[q]||[],E[q].push(N),U?A[M]=i(A[M],V):A.push(V)}}for(S=S.sort(r),B=0,R=S.length;B<R;B++){var $=S[B]-B;A.splice($,1)}}for(var H=e[0]&&"at-rule"==e[0][0]&&0===e[0][1][0].indexOf("@charset")?1:0;H<e.length-1;H++){var W="at-rule"===e[H][0]&&0===e[H][1][0].indexOf("@import"),G="text"===e[H][0]&&0===e[H][1][0].indexOf("__ESCAPED_COMMENT_SPECIAL");if(!W&&!G)break}for(F=0;F<A.length;F++)x(H,A[F])}var s=e("./extractor"),a=e("./reorderable").canReorderSingle,u=e("../stringifier/one-time").body,c=e("../stringifier/one-time").selectors,l=e("./clean-up").selectorDuplicates,p=e("./is-special"),f=e("../utils/clone-array");t.exports=o},{"../stringifier/one-time":54,"../utils/clone-array":68,"./clean-up":39,"./extractor":40,"./is-special":41,"./reorderable":49}],51:[function(e,t,n){function r(e,t){return e.value[t]&&"-"==e.value[t][0][0]&&parseFloat(e.value[t][0])<0}function i(e,t){return t.indexOf("0")==-1?t:(t.indexOf("-")>-1&&(t=t.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),t.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,n){return(t.length>0?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2"))}function o(e,t){return t.indexOf("0deg")==-1?t:t.replace(/\(0deg\)/g,"(0)")}function s(e,t){return e.indexOf("filter")>-1||t.indexOf(" ")==-1?t:(t=t.replace(/\s+/g," "),t.indexOf("calc")>-1&&(t=t.replace(/\) ?\/ ?/g,")/ ")),t.replace(/\( /g,"(").replace(/ \)/g,")").replace(/, /g,","))}function a(e,t,n){return n.value===-1||t.indexOf(".")===-1?t:t.replace(n.regexp,function(e,t){return Math.round(parseFloat(t)*n.multiplier)/n.multiplier+"px"}).replace(/(\d)\.($|\D)/g,"$1$2")}function u(e,t,n){return/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(t)?t:"flex"==e||"-ms-flex"==e||"-webkit-flex"==e||"flex-basis"==e||"-webkit-flex-basis"==e?t:t.indexOf("%")>0&&("height"==e||"max-height"==e)?t:t.replace(n,"$10$2").replace(n,"$10$2")}function c(e){var t,n=e.value;4==n.length&&"0"===n[0][0]&&"0"===n[1][0]&&"0"===n[2][0]&&"0"===n[3][0]&&(t=e.name.indexOf("box-shadow")>-1?2:1),t&&(e.value.splice(t),e.dirty=!0)}function l(e,t,n){return t.indexOf("#")===-1&&t.indexOf("rgb")==-1&&t.indexOf("hsl")==-1?S.shorten(t):(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return new A(t,n,r).toHex()}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return new C(t,n,r).toHex()}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n){return n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?t+"#"+n[0]+n[2]+n[4]:t+"#"+n}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,n){var r=n.split(",");return"hsl"==t&&3==r.length||"hsla"==t&&4==r.length||"rgb"==t&&3==r.length&&n.indexOf("%")>0||"rgba"==t&&4==r.length&&n.indexOf("%")>0?(r[1].indexOf("%")==-1&&(r[1]+="%"),r[2].indexOf("%")==-1&&(r[2]+="%"),t+"("+r.join(",")+")"):e}),n.colors.opacity&&e.indexOf("background")==-1&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return E(t,",").pop().indexOf("gradient(")>-1?e:"transparent"})),S.shorten(t))}function p(e,t,n){return I.test(t)?t.replace(I,function(e,t){var r,i=parseInt(t);return 0===i?e:(n.properties.shorterLengthUnits&&n.units.pt&&3*i%4==0&&(r=3*i/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&i%16==0&&(r=i/16+"pc"),n.properties.shorterLengthUnits&&n.units.in&&i%96==0&&(r=i/96+"in"),r&&(r=e.substring(0,e.indexOf(t))+r),r&&r.length<e.length?r:e)}):t}function f(e,t){return j.test(t)?t.replace(j,function(e,t,n){var r;return"ms"==n?r=parseInt(t)/1e3+"s":"s"==n&&(r=1e3*parseFloat(t)+"ms"),r.length<e.length?r:e}):t}function h(e){var t,n=e.value;3==n.length&&"/"==n[1][0]&&n[0][0]==n[2][0]?t=1:5==n.length&&"/"==n[2][0]&&n[0][0]==n[3][0]&&n[1][0]==n[4][0]?t=2:7==n.length&&"/"==n[3][0]&&n[0][0]==n[4][0]&&n[1][0]==n[5][0]&&n[2][0]==n[6][0]?t=3:9==n.length&&"/"==n[4][0]&&n[0][0]==n[5][0]&&n[1][0]==n[6][0]&&n[2][0]==n[7][0]&&n[3][0]==n[8][0]&&(t=4),t&&(e.value.splice(t),e.dirty=!0)}function d(e){1==e.value.length&&(e.value[0][0]=e.value[0][0].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),e.value[0][0]=e.value[0][0].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}function m(e){var t=e.value;if(!(M.indexOf(t[0][0])>-1||t[1]&&M.indexOf(t[1][0])>-1||t[2]&&M.indexOf(t[2][0])>-1)&&"/"!=t[1]){var n=0;if("normal"==t[0][0]&&n++,t[1]&&"normal"==t[1][0]&&n++,t[2]&&"normal"==t[2][0]&&n++,!(n>1)){var r;P.indexOf(t[0][0])>-1?r=0:t[1]&&P.indexOf(t[1][0])>-1?r=1:t[2]&&P.indexOf(t[2][0])>-1?r=2:N.indexOf(t[0][0])>-1?r=0:t[1]&&N.indexOf(t[1][0])>-1?r=1:t[2]&&N.indexOf(t[2][0])>-1&&(r=2),void 0!==r&&(e.value[r][0]=V["font-weight"](t[r][0]),e.dirty=!0)}}}function g(e,t){for(var n,v,y,b=T(e),_=0,x=b.length;_<x;_++)if(n=b[_],v=n.name,n.hack&&(("star"==n.hack||"underscore"==n.hack)&&!t.compatibility.properties.iePrefixHack||"backslash"==n.hack&&!t.compatibility.properties.ieSuffixHack||"bang"==n.hack&&!t.compatibility.properties.ieBangHack)&&(n.unused=!0),0===v.indexOf("padding")&&(r(n,0)||r(n,1)||r(n,2)||r(n,3))&&(n.unused=!0),!n.unused)if(n.variable)n.block&&g(n.value[0],t);else{for(var w=0,k=n.value.length;w<k;w++)y=n.value[w][0],V[v]&&(y=V[v](y,w,k)),y=s(v,y),y=a(v,y,t.precision),y=p(v,y,t.compatibility),y=f(v,y),y=i(v,y),t.compatibility.properties.zeroUnits&&(y=o(v,y),y=u(v,y,t.unitsRegexp)),t.compatibility.properties.colors&&(y=l(v,y,t.compatibility)),n.value[w][0]=y;c(n),0===v.indexOf("border")&&v.indexOf("radius")>0?h(n):"filter"==v?d(n):"font"==v&&m(n)}O(b,!0),F(b)}function v(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];"at-rule"==i[0]&&(D.test(i[1][0])&&(t||i[1][0].indexOf(B)==-1?(e.splice(n,1),n--,r--):(t=!0,e.splice(n,1),e.unshift(["at-rule",[i[1][0].replace(D,B)]]))))}}function y(e){var t=["px","em","ex","cm","mm","in","pt","pc","%"];return["ch","rem","vh","vm","vmax","vmin","vw"].forEach(function(n){e.compatibility.units[n]&&t.push(n)}),new RegExp("(^|\\s|\\(|,)0(?:"+t.join("|")+")(\\W|$)","g")}function b(e){var t={};return t.value=void 0===e.roundingPrecision?L:e.roundingPrecision,t.multiplier=Math.pow(10,t.value),t.regexp=new RegExp("(\\d*\\.\\d{"+(t.value+1)+",})px","g"),t}function _(e,t,n){var r=t.compatibility.selectors.ie7Hack,i=t.compatibility.selectors.adjacentSpace,o=t.compatibility.properties.spaceAfterClosingBrace,s=!1,a=!1;t.unitsRegexp=y(t),t.precision=b(t);for(var u=0,c=e.length;u<c;u++){var l=e[u];switch(l[0]){case"selector":l[1]=x(l[1],!r,i),g(l[2],t),a=!0;break;case"block":w(l[1],o),_(l[2],t,n),a=!0;break;case"flat-block":w(l[1],o),g(l[2],t),a=!0;break;case"at-rule":k(l[1]),s=!0}"at-rule"==l[0]&&R.test(l[1])&&a&&(n.warnings.push('Ignoring @import rule "'+l[1]+'" as it appears after rules thus browsers will ignore them.'),l[1]=""),(0===l[1].length||l[2]&&0===l[2].length)&&(e.splice(u,1),u--,c--)}s&&v(e)}var x=e("./clean-up").selectors,w=e("./clean-up").block,k=e("./clean-up").atRule,E=e("../utils/split"),A=e("../colors/rgb"),C=e("../colors/hsl"),S=e("../colors/hex-name-shortener"),T=e("../properties/wrap-for-optimizing").all,O=e("../properties/restore-from-optimizing"),F=e("../properties/remove-unused"),L=2,B="@charset",D=new RegExp("^"+B,"i"),R=/^@import["'\s]/i,M=["100","200","300","400","500","600","700","800","900"],N=["normal","bold","bolder","lighter"],P=["bold","bolder","lighter"],I=/(?:^|\s|\()(-?\d+)px/,j=/^(\-?[\d\.]+)(m?s)$/,V={background:function(e,t,n){return 0!==t||1!=n||"none"!=e&&"transparent"!=e?e:"0 0"},"font-weight":function(e){return"normal"==e?"400":"bold"==e?"700":e},outline:function(e,t,n){return 0===t&&1==n&&"none"==e?"0":e}};t.exports=_},{"../colors/hex-name-shortener":17,"../colors/hsl":18,"../colors/rgb":19,"../properties/remove-unused":31,"../properties/restore-from-optimizing":32,"../properties/wrap-for-optimizing":37,"../utils/split":75,"./clean-up":39}],52:[function(e,t,n){function r(e,t,n){if(!n&&e.indexOf("\n")==-1)return 0===e.indexOf(u)?e:void(t.column+=e.length);for(var r=0,i=e.split("\n"),o=i.length,s=0;;){if(r==o-1)break;var a=i[r];if(/\S/.test(a))break;s+=a.length+1,r++}return t.line+=r,t.column=r>0?0:t.column,t.column+=/^(\s)*/.exec(i[r])[0].length,e.substring(s).trimLeft()}function i(e,t,n){var r=e.source||t.source;return r&&n.resolvePath?n.resolvePath(t.source,r):r}function o(e,t,n){var r={line:t.line,column:t.column,source:t.source},o=null,s=t.sourceMapTracker.isTracking(r.source)?t.sourceMapTracker.originalPositionFor(r,e,n||0):{};if(r.line=s.line||r.line,r.column=s.column||r.column,r.source=s.sourceResolved?s.source:i(s,r,t),t.sourceMapInlineSources){var a=t.sourceMapTracker.sourcesContentFor(t.source);o=a&&a[r.source]?a:t.sourceReader.sourceAt(t.source)}return o?[r.line,r.column,r.source,o]:[r.line,r.column,r.source]}function s(e,t){for(var n=e.split("\n"),r=0,i=n.length;r<i;r++){var o=n[r],s=0;for(r>0&&(t.line++,t.column=0);;){var a=o.indexOf(u,s);if(a==-1){t.column+=o.substring(s).length;break}t.column+=a-s,s+=a-s;var c=o.substring(a,o.indexOf("__",a+1)+2),l=c.substring(c.indexOf("(")+1,c.indexOf(")")).split(",");t.line+=~~l[0],t.column=(0==~~l[0]?t.column:0)+~~l[1],s+=c.length}}}function a(e,t,n,i){var a=r(e,t,n),u=n?o(a,t,i):[];return a&&s(a,t),u}var u="__ESCAPED_";t.exports=a},{}],53:[function(e,t,n){function r(e,t){for(var n=t,r=e.length;n<r;n++)if("string"!=typeof e[n])return!0;return!1}function i(e){return"background"==e[0][0]||"transform"==e[0][0]||"src"==e[0][0]}function o(e,t){return")"==e[t][0][e[t][0].length-1]||0===e[t][0].indexOf("__ESCAPED_URL_CLEAN_CSS")}function s(e,t){return","==e[t][0]}function a(e,t){return"/"==e[t][0]}function u(e,t){return e[t+1]&&","==e[t+1][0]}function c(e,t){return e[t+1]&&"/"==e[t+1][0]}function l(e){return"filter"==e[0][0]||"-ms-filter"==e[0][0]}function p(e,t,n){return!n.spaceAfterClosingBrace&&i(e)&&o(e,t)||c(e,t)||a(e,t)||u(e,t)||s(e,t)}function f(e,t){for(var n=t.store,r=0,i=e.length;r<i;r++)n(e[r],t),r<i-1&&n(",",t)}function h(e,t){for(var n=0,r=e.length;n<r;n++)d(e,n,n==r-1,t)}function d(e,t,n,r){var i=r.store,o=e[t];"string"==typeof o?i(o,r):o[0]==_?m(o[1],n,r):(i(o[0],r),i(":",r),g(e,t,n,r))}function m(e,t,n){var r=n.store;r(e,n),t||r(x,n)}function g(e,t,n,i){var o=i.store,s=e[t],a=0===s[0][0].indexOf("--"),u=a&&Array.isArray(s[1][0]);if(a&&u&&v(s[1]))return o("{",i),h(s[1],i),void o("};",i);for(var c=1,f=s.length;c<f;c++)o(s[c],i),c<f-1&&(l(s)||!p(s,c,i))?o(" ",i):c==f-1&&!n&&r(e,t+1)&&o(x,i)}function v(e){for(var t=0,n=e.length;t<n;t++)if(e[t][0]==_||Array.isArray(e[t][0]))return!0;return!1}function y(e,t){for(var n=t.keepBreaks?b:"",r=t.store,i=0,o=e.length;i<o;i++){var s=e[i];switch(s[0]){case"at-rule":case"text":r(s[1][0],t),r(n,t);break;case"block":f([s[1]],t),r("{",t),y(s[2],t),r("}",t),r(n,t);break;case"flat-block":f([s[1]],t),r("{",t),h(s[2],t),r("}",t),r(n,t);break;default:f(s[1],t),r("{",t),h(s[2],t),r("}",t),r(n,t)}}}var b=e("os").EOL,_="at-rule",x=";";t.exports={all:y,body:h,property:d,selectors:f,value:g}},{os:108}],54:[function(e,t,n){function r(e,t){t.output.push("string"==typeof e?e:e[0])}function i(){return{output:[],store:r}}function o(e){var t=i();return l.all(e,t),t.output.join("")}function s(e){var t=i();return l.body(e,t),t.output.join("")}function a(e,t){var n=i();return l.property(e,t,!0,n),n.output.join("")}function u(e){var t=i();return l.selectors(e,t),t.output.join("")}function c(e,t){var n=i();return l.value(e,t,!0,n),n.output.join("")}var l=e("./helpers");t.exports={all:o,body:s,property:a,selectors:u,value:c}},{"./helpers":53}],55:[function(e,t,n){function r(e,t){t.output.push("string"==typeof e?e:e[0])}function i(e,t,n){var i={keepBreaks:t.keepBreaks,output:[],spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:r};return o(e,i,!1),{styles:n(i.output.join("")).trim()}}var o=e("./helpers").all;t.exports=i},{"./helpers":53}],56:[function(e,t,n){(function(n){function r(e,t){var n="string"==typeof e,r=n?e:e[0];r.indexOf("_")>-1&&(r=t.restore(r,i(t.output))),o(r,n?null:e,t),t.output.push(r)}function i(e){for(var t=[],n=e.length-1;n>=0;n--){var r=e[n];if(t.unshift(r),"{"==r||";"==r)break}return t.join("")}function o(e,t,n){t&&s(t,n);var r=e.split("\n");n.line+=r.length-1,n.column=r.length>1?0:n.column+r.pop().length}function s(e,t){var n=e[e.length-1];if(Array.isArray(n))for(var r=0,i=n.length;r<i;r++)a(n[r],t)}function a(e,t){var n=e[2]||f;p&&(n=n.replace(/\\/g,"/")),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:n,original:{line:e[0],column:e[1]}}),e[3]&&t.outputMap.setSourceContent(n,e[3][e[2]])}function u(e,t,n,i){var o={column:0,inputMapTracker:i,keepBreaks:t.keepBreaks,line:1,output:[],outputMap:new c,restore:n,sourceMapInlineSources:t.sourceMapInlineSources,spaceAfterClosingBrace:t.compatibility.properties.spaceAfterClosingBrace,store:r};return l(e,o,!1),{sourceMap:o.outputMap,styles:o.output.join("").trim()}}var c=e("source-map").SourceMapGenerator,l=e("./helpers").all,p="win32"==n.platform,f="$stdin";t.exports=u}).call(this,e("_process"))},{"./helpers":53,_process:112,"source-map":76}],57:[function(e,t,n){function r(e,t,n,r){this.comments=new s("COMMENT"),this.specialComments=new s("COMMENT_SPECIAL"),this.context=e,this.restored=0,this.keepAll="*"==t,this.keepOne="1"==t||1===t,this.keepBreaks=n,this.saveWaypoints=r}function i(e){var t=[];return new a(e).each(function(e,n,r){t.push([r,r+e.length])}),function(e){for(var n=0,r=t.length;n<r;n++)if(t[n][0]<e&&t[n][1]>e)return!0;return!1}}function o(e,t,n,r){for(var i=[],o=0;o<t.length;){var s=n.nextMatch(t,o);if(s.start<0)break;i.push(t.substring(o,s.start));var a=n.restore(s.match);r&&(e.keepAll||e.keepOne&&0===e.restored)?(e.restored++,i.push(a),o=s.end):o=s.end+(e.keepBreaks&&t.substring(s.end,s.end+u.length)==u?u.length:0)}return i.length>0?i.join("")+t.substring(o,t.length):t}var s=e("./escape-store"),a=e("../utils/quote-scanner"),u=e("os").EOL;r.prototype.escape=function(e){for(var t,n,r,o=[],s=0,a=0,c=0,l=0,p=i(e),f=this.saveWaypoints;a<e.length&&(s=e.indexOf("/*",c))!=-1;)if(p(s))o.push(e.substring(c,s+"/*".length)),c=s+"/*".length;else{a=e.indexOf("*/",s+"/*".length),a==-1&&(this.context.warnings.push("Broken comment: '"+e.substring(s)+"'."),a=e.length-2),o.push(e.substring(c,s));var h=e.substring(s,a+"*/".length),d=0===h.indexOf("/*!");if(f&&(t=h.split(u).length-1,n=h.lastIndexOf(u),r=n>0?h.substring(n+u.length).length:l+h.length),f||d){var m=f?[t,r]:null,g=d?this.specialComments.store(h,m):this.comments.store(h,m);o.push(g)}f&&(l=r+1),c=a+"*/".length}return o.length>0?o.join("")+e.substring(c,e.length):e},r.prototype.restore=function(e){return e=o(this,e,this.comments,!1),e=o(this,e,this.specialComments,!0)},t.exports=r},{"../utils/quote-scanner":72,"./escape-store":58,os:108}],58:[function(e,t,n){function r(e){this.placeholderRoot="ESCAPED_"+e+"_CLEAN_CSS",this.placeholderToData={},this.dataToPlaceholder={},this.count=0,this.restoreMatcher=new RegExp(this.placeholderRoot+"(\\d+)")}r.prototype._nextPlaceholder=function(e){return{index:this.count,value:"__"+this.placeholderRoot+this.count+++e+"__"}},r.prototype.store=function(e,t){var n=t?"("+t.join(",")+")":"",r=this.dataToPlaceholder[e];if(!r){var i=this._nextPlaceholder(n);r=i.value,this.placeholderToData[i.index]=e,this.dataToPlaceholder[e]=i.value}return t&&(r=r.replace(/\([^\)]+\)/,n)),r},r.prototype.nextMatch=function(e,t){var n={};return n.start=e.indexOf(this.placeholderRoot,t)-"__".length,n.end=e.indexOf("__",n.start+"__".length)+"__".length,n.start>-1&&n.end>-1&&(n.match=e.substring(n.start,n.end)),n},r.prototype.restore=function(e){var t=this.restoreMatcher.exec(e)[1];return this.placeholderToData[t]},t.exports=r},{}],59:[function(e,t,n){function r(e,t){for(var n=t+s.length,r=0,i=!1,o=!1;;){var c=e[n++];if(i?i="'"!=c&&'"'!=c:(i="'"==c||'"'==c,c==a&&r++,c==u&&r--,c==l&&(o=!0),c!=p||o||1!=r||(n--,r--)),0===r&&c==u)break;if(!c){n=e.substring(0,n).lastIndexOf(p);break}}return n}function i(e){this.expressions=new o("EXPRESSION"),this.saveWaypoints=e}var o=e("./escape-store"),s="expression",a="(",u=")",c=s+a,l="{",p="}",f=e("os").EOL;i.prototype.escape=function(e){for(var t,n,i,o=0,s=0,a=0,u=[],l=0,p=this.saveWaypoints;s<e.length&&(o=e.indexOf(c,s))!=-1;){s=r(e,o);var h=e.substring(o,s);p&&(t=h.split(f).length-1,n=h.lastIndexOf(f),i=n>0?h.substring(n+f.length).length:l+h.length);var d=p?[t,i]:null,m=this.expressions.store(h,d);u.push(e.substring(a,o)),u.push(m),p&&(l=i+1),a=s}return u.length>0?u.join("")+e.substring(a,e.length):e},i.prototype.restore=function(e){for(var t=[],n=0;n<e.length;){var r=this.expressions.nextMatch(e,n);if(r.start<0)break;t.push(e.substring(n,r.start));var i=this.expressions.restore(r.match);t.push(i),n=r.end}return t.length>0?t.join("")+e.substring(n,e.length):e},t.exports=i},{"./escape-store":58,os:108}],60:[function(e,t,n){function r(e){this.matches=new o("FREE_TEXT"),this.saveWaypoints=e}function i(e,t,n,r){var i=t;n&&(i=n+t.substring(0,t.indexOf("__ESCAPED_FREE_TEXT_CLEAN_CSS")),r=i.length);var o=i.lastIndexOf(";",r),s=i.lastIndexOf("{",r),a=0;a=o>-1&&s>-1?Math.max(o,s):o==-1?s:o;var u=i.substring(a+1,r);if(/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u)&&(e=e.replace(/\\\n|\\\r\n/g,"").replace(/\n|\r\n/g,"")),/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/.test(e)&&!/format\($/.test(u)){var c=/^(font|font\-family):/.test(u),l=/\[[\w\d\-]+[\*\|\~\^\$]?=$/.test(u),p=/@(-moz-|-o-|-webkit-)?keyframes /.test(u),f=/^(-moz-|-o-|-webkit-)?animation(-name)?:/.test(u);(c||l||p||f)&&(e=e.substring(1,e.length-1))}return e}var o=e("./escape-store"),s=e("../utils/quote-scanner"),a=e("os").EOL;r.prototype.escape=function(e){var t,n,r,i,o=this,u=this.saveWaypoints;return new s(e).each(function(e,s){u&&(t=e.split(a).length-1,n=e.lastIndexOf(a),r=n>0?e.substring(n+a.length).length:e.length,i=[t,r]);var c=o.matches.store(e,i);s.push(c)})},r.prototype.restore=function(e,t){for(var n=[],r=0;r<e.length;){var o=this.matches.nextMatch(e,r);if(o.start<0)break;n.push(e.substring(r,o.start));var s=i(this.matches.restore(o.match),e,t,o.start);n.push(s),r=o.end}return n.length>0?n.join("")+e.substring(r,e.length):e},t.exports=r},{"../utils/quote-scanner":72,"./escape-store":58,os:108}],61:[function(e,t,n){function r(e,t,n){this.urls=new o("URL"),this.context=e,this.saveWaypoints=t,this.keepUrlQuotes=n}function i(e,t){return e=e.replace(/^url/gi,"url").replace(/\\?\n|\\?\r\n/g,"").replace(/(\s{2,}|\s)/g," ").replace(/^url\((['"])? /,"url($1").replace(/ (['"])?\)$/,"$1)"),/url\(".*'.*"\)/.test(e)||/url\('.*".*'\)/.test(e)?e:(t||/^['"].+['"]$/.test(e)||/url\(.*[\s\(\)].*\)/.test(e)||/url\(['"]data:[^;]+;charset/.test(e)||(e=e.replace(/["']/g,"")),e)}var o=e("./escape-store"),s=e("../urls/reduce"),a=e("os").EOL;r.prototype.escape=function(e){var t,n,r,i=this.saveWaypoints,o=this;return s(e,this.context,function(e,s){i&&(t=e.split(a).length-1,n=e.lastIndexOf(a),r=n>0?e.substring(n+a.length).length:e.length);var u=o.urls.store(e,i?[t,r]:null);s.push(u)})},r.prototype.restore=function(e){for(var t=[],n=0;n<e.length;){var r=this.urls.nextMatch(e,n);if(r.start<0)break;t.push(e.substring(n,r.start));var o=i(this.urls.restore(r.match),this.keepUrlQuotes);t.push(o),n=r.end}return t.length>0?t.join("")+e.substring(n,e.length):e},t.exports=r},{"../urls/reduce":66,"./escape-store":58,os:108}],62:[function(e,t,n){function r(e){return e[0]}function i(){}function o(e,t,n,r){for(var o=n?/^__ESCAPED_COMMENT_/:/__ESCAPED_COMMENT_/,s=n?r.track:i;o.test(e);){var a=e.indexOf("__"),u=e.indexOf("__",a+1)+2,c=e.substring(a,u);e=e.substring(0,a)+e.substring(u),s(c),t.push(c)}return e}function s(e,t,n){return o(e,t,!0,n)}function a(e,t,n){return o(e,t,!1,n)}function u(e,t,n){for(var r=0,i=e.length;r<i;r++)n.track(e[r]),t.push(e[r])}function c(e,t,n){var i=[],o=[];if("string"!=typeof e)return[];e.indexOf(")")>-1&&(e=e.replace(/\)([^\s_;:,\)])/g,n.sourceMap?") __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ $1":") $1")),e.indexOf("ESCAPED_URL_CLEAN_CSS")>-1&&(e=e.replace(/(ESCAPED_URL_CLEAN_CSS[^_]+?__)/g,n.sourceMap?"$1 __ESCAPED_COMMENT_CLEAN_CSS(0,-1)__ ":"$1 "));for(var v=l(e,";",!1,"{","}"),y=0,b=v.length;y<b;y++){var _=v[y],x=_.indexOf(":");if("@"==_.trim()[0])n.track(_),i.push([h,_.trim()]);else if(x!=-1)if(_.indexOf("{")>0&&_.indexOf("{")<x)n.track(_);else{var w=[],k=_.substring(0,x);o=[],k.indexOf("__ESCAPED_COMMENT")>-1&&(k=s(k,i,n)),k.indexOf("__ESCAPED_COMMENT")>-1&&(k=a(k,o,n)),w.push([k.trim()].concat(n.track(k,!0))),n.track(":"),u(o,i,n);var E=_.indexOf("{"),A=0===k.trim().indexOf("--");if(A&&E>0){var C=_.substring(x+1,E+1),S=_.substring(_.indexOf("}")),T=_.substring(E+1,_.length-S.length);n.track(C),w.push(c(T,t,n)),i.push(w),n.track(S),n.track(y<b-1?";":"")}else{var O=l(_.substring(x+1),/[\s,\/]/,!0);if(1!=O.length||""!==O[0]){for(var F=0,L=O.length;F<L;F++){var B=O[F],D=B.trim();if(0!==D.length){var R=D[D.length-1],M=D.length>1&&(R==p||R==f);if(M&&(D=D.substring(0,D.length-1)),D.indexOf("__ESCAPED_COMMENT_CLEAN_CSS(0,-")>-1)n.track(D);else if(o=[],D.indexOf("__ESCAPED_COMMENT")>-1&&(D=s(D,i,n)),D.indexOf("__ESCAPED_COMMENT")>-1&&(D=a(D,o,n)),0!==D.length){var N=w.length-1;m.test(D)&&"!"==w[N][0]?(n.track(D),w[N-1][0]+=d,w.pop()):g.test(D)||m.test(D)&&"!"==w[N][0][w[N][0].length-1]?(n.track(D),w[N][0]+=D):(w.push([D].concat(n.track(B,!0))),u(o,i,n),M&&(w.push([R]),n.track(R)))}else u(o,i,n)}}y<b-1&&n.track(";"),i.push(w)}else n.warnings.push("Empty property '"+k+"' inside '"+t.filter(r).join(",")+"' selector. Ignoring.")}}else n.track(_),_.indexOf("__ESCAPED_COMMENT_SPECIAL")>-1&&i.push(_.trim())}return i}var l=e("../utils/split"),p=",",f="/",h="at-rule",d="!important",m=new RegExp("^important$","i"),g=new RegExp("^"+d+"$","i");t.exports=c},{"../utils/split":75}],63:[function(e,t,n){function r(e,t){for(var n,r=[],o=i(e,","),s=0,a=o.length;s<a;s++)n=t.track(o[s],!0,s),t.track(","),r.push([o[s].trim()].concat(n));return r}var i=e("../utils/split");t.exports=r},{"../utils/split":75}],64:[function(e,t,n){function r(e,t){var n=h(i(e),"}",!0,"{","}");if(0===n.length)return[];var r={chunk:n.shift(),chunks:n,column:0,cursor:0,line:1,mode:"top",resolvePath:t.options.explicitTarget?o(t.options.root,t.options.target):null,source:void 0,sourceMap:t.options.sourceMap,sourceMapInlineSources:t.options.sourceMapInlineSources,sourceMapTracker:t.inputSourceMapTracker,sourceReader:t.sourceReader,sourceTracker:t.sourceTracker,state:[],track:t.options.sourceMap?function(e,t,n){return[[f(e,r,t,n)]]}:function(){return[]},warnings:t.warnings};return c(r)}function i(e){return e.replace(/\r\n/g,"\n")}function o(e,t){var n=d.relative(e,t);return function(e,t){return e!=t?d.normalize(d.join(d.relative(n,d.dirname(e)),t)):t}}function s(e){var t,n=e.mode,r=e.chunk;if(r.length==e.cursor){if(0===e.chunks.length)return null;e.chunk=r=e.chunks.shift(),e.cursor=0}if("body"==n)return"}"==r[e.cursor]?[e.cursor,"bodyEnd"]:r.indexOf("}",e.cursor)==-1?null:(t=e.cursor+h(r.substring(e.cursor-1),"}",!0,"{","}")[0].length-2,[t,"bodyEnd"]);var i=a(e,"@"),o=r.indexOf("__ESCAPED_",e.cursor),s=a(e,"{"),u=a(e,"}");return i>-1&&e.cursor>0&&!/\s|\{|\}|\/|_|,|;/.test(r.substring(i-1,i))&&(i=-1),o>-1&&/\S/.test(r.substring(e.cursor,o))&&(o=-1),t=i,(t==-1||o>-1&&o<t)&&(t=o),(t==-1||s>-1&&s<t)&&(t=s),
|
||
(t==-1||u>-1&&u<t)&&(t=u),t!=-1?o===t?[t,"escape"]:s===t?[t,"bodyStart"]:u===t?[t,"bodyEnd"]:i===t?[t,"special"]:void 0:void 0}function a(e,t){for(var n,r=e.cursor,i=e.chunk;(n=i.indexOf(t,r))>-1;){if(!u(i,n))return n;r=n+1}return-1}function u(e,t){for(var n=t,r=0;n>0&&e[n-1]==g;)r++,n--;return r%2!=0}function c(e){for(var t,n,r=e.chunk,i=[];;){var o=s(e);if(!o){var a=e.chunk.substring(e.cursor);a.trim().length>0&&("body"==e.mode?e.warnings.push("Missing '}' after '"+a+"'. Ignoring."):i.push(["text",[a]]),e.cursor+=a.length);break}var u,f,h=o[0],d=o[1];if(r=e.chunk,e.cursor!=h&&"bodyEnd"!=d){var g=r.substring(e.cursor,h),v=/^\s+/.exec(g);v&&(e.cursor+=v[0].length,e.track(v[0]))}if("special"==d){var y=r.indexOf("{",h),b=r.indexOf(";",h),_=b>-1&&(y==-1||b<y);if(y==-1&&b==-1)e.warnings.push("Broken declaration: '"+r.substring(e.cursor)+"'."),e.cursor=r.length;else if(_)u=r.indexOf(";",h+1),n=r.substring(e.cursor,u+1),i.push(["at-rule",[n].concat(e.track(n,!0))]),e.track(";"),e.cursor=u+1;else{u=r.indexOf("{",h+1),n=r.substring(e.cursor,u);var x=n.trim(),w=m.test(x);f=e.mode,e.cursor=u+1,e.mode=w?"body":"block",t=[w?"flat-block":"block"],t.push([x].concat(e.track(n,!0))),e.track("{"),t.push(c(e)),"string"==typeof t[2]&&(t[2]=l(t[2],[[x]],e)),e.mode=f,e.track("}"),i.push(t)}}else if("escape"==d){u=r.indexOf("__",h+1);var k=r.substring(e.cursor,u+2),E=!!e.sourceTracker.nextStart(k),A=!!e.sourceTracker.nextEnd(k);if(E)e.track(k),e.state.push({source:e.source,line:e.line,column:e.column}),e.source=e.sourceTracker.nextStart(k).filename,e.line=1,e.column=0;else if(A){var C=e.state.pop();e.source=C.source,e.line=C.line,e.column=C.column,e.track(k)}else 0===k.indexOf("__ESCAPED_COMMENT_SPECIAL")&&i.push(["text",[k]]),e.track(k);e.cursor=u+2}else if("bodyStart"==d){var S=p(r.substring(e.cursor,h),e);f=e.mode,e.cursor=h+1,e.mode="body";var T=l(c(e),S,e);e.track("{"),e.mode=f,i.push(["selector",S,T])}else if("bodyEnd"==d){if("top"==e.mode){var O=e.cursor,F="}"==r[e.cursor]?"Unexpected '}' in '"+r.substring(O-20,O+20)+"'. Ignoring.":"Unexpected content: '"+r.substring(O,h+1)+"'. Ignoring.";e.warnings.push(F),e.cursor=h+1;continue}"block"==e.mode&&e.track(r.substring(e.cursor,h)),"block"!=e.mode&&(i=r.substring(e.cursor,h)),e.cursor=h+1;break}}return i}var l=e("./extract-properties"),p=e("./extract-selectors"),f=e("../source-maps/track"),h=e("../utils/split"),d=e("path"),m=/(@(font\-face|page|\-ms\-viewport|\-o\-viewport|viewport|counter\-style)|\\@.+?)/,g="\\";t.exports=r},{"../source-maps/track":52,"../utils/split":75,"./extract-properties":62,"./extract-selectors":63,path:109}],65:[function(e,t,n){function r(e,t){var n={absolute:t.options.explicitRoot,relative:!t.options.explicitRoot&&t.options.explicitTarget,fromBase:t.options.relativeTo};return n.absolute||n.relative?(n.absolute&&t.options.explicitTarget&&t.warnings.push("Both 'root' and output file given so rebasing URLs as absolute paths"),n.absolute&&(n.toBase=i.resolve(t.options.root)),n.relative&&(n.toBase=i.resolve(t.options.target)),n.fromBase&&n.toBase?o(e,n,t):e):e}var i=e("path"),o=e("./rewrite");t.exports=r},{"./rewrite":67,path:109}],66:[function(e,t,n){function r(e,t,n){for(var r,i=0,o=0,d=0,m=!1,g=0,v=[],y=e.indexOf(u)>-1;d<e.length&&(i=e.indexOf(a,d),o=y?e.indexOf(u,d):-1,i!=-1||o!=-1);){i==-1&&o>-1&&(i=o),'"'==e[i+a.length]?d=e.indexOf(p,i):"'"==e[i+a.length]?d=e.indexOf(l,i):(m=f.test(e.substring(i+a.length)),m?(r=s(e.substring(i),h,!1,"(",")",!0).pop(),d=r&&r[r.length-1]==c?i+r.length-c.length:-1):d=e.indexOf(c,i)),d==-1?(d=e.indexOf("}",i),d==-1?d=e.length:d--,t.warnings.push("Broken URL declaration: '"+e.substring(i,d+1)+"'.")):e[d]!=c&&(d=e.indexOf(c,d)),v.push(e.substring(g,i));n(e.substring(i,d+1),v),g=d+1}return v.length>0?v.join("")+e.substring(g,e.length):e}function i(e,t,n){for(var r,i,o=0,s=0,a=0,u=0,c=0,l=[],p=0,f=0;u<e.length&&(o=e.indexOf(d,u),s=e.indexOf(m,u),o!=-1||s!=-1);){if(o>-1&&s>-1&&s<o&&(o=s),p=e.indexOf("'",o),f=e.indexOf('"',o),p>-1&&f>-1&&p<f)a=p,i="'";else if(p>-1&&f>-1&&p>f)a=f,i='"';else if(p>-1)a=p,i="'";else{if(!(f>-1))break;a=f,i='"'}if(l.push(e.substring(c,a)),u=e.indexOf(i,a+1),r=e.substring(o,u),u==-1||/^@import\s+(url\(|__ESCAPED)/i.test(r)||g.test(r)){c=a;break}n(e.substring(a,u+1),l),c=u+1}return l.length>0?l.join("")+e.substring(c,e.length):e}function o(e,t,n){return e=r(e,t,n),e=i(e,t,n)}var s=e("../utils/split"),a="url(",u="URL(",c=")",l="')",p='")',f=/^\s*['"]?\s*data:/,h=/[\s\};,\/!]/,d="@import",m="@IMPORT",g=/\*\//;t.exports=o},{"../utils/split":75}],67:[function(e,t,n){(function(n){function r(e){return"/"==e[0]}function i(e){return"#"==e[0]}function o(e){return 0===e.indexOf("__ESCAPED_URL_CLEAN_CSS__")}function s(e){return/^\w+:\w+/.test(e)}function a(e){return/^[^:]+?:\/\//.test(e)||0===e.indexOf("//")}function u(e,t){return y.parse(e).protocol==y.parse(t).protocol&&y.parse(e).host==y.parse(t).host}function c(e){return e.lastIndexOf(".css")===e.length-4}function l(e){return 0===e.indexOf("data:")}function p(e,t){return v.resolve(v.join(t.fromBase||"",e)).replace(t.toBase,"")}function f(e,t){return v.relative(t.toBase,v.join(t.fromBase||"",e))}function h(e){return _?e.replace(/\\/g,"/"):e}function d(e,t){return r(e)||i(e)||o(e)||s(e)?e:t.rebase!==!1||c(e)?!t.imports&&c(e)?e:l(e)?"'"+e+"'":a(e)&&!a(t.toBase)?e:a(e)&&!u(e,t.toBase)?e:!a(e)&&a(t.toBase)?y.resolve(t.toBase,e):h(t.absolute?p(e,t):f(e,t)):e}function m(e){return e.indexOf("'")>-1?'"':e.indexOf('"')>-1?"'":/\s/.test(e)||/[\(\)]/.test(e)?"'":""}function g(e,t,n){return b(e,n,function(e,n){var r,i=e.replace(/^(url\()?\s*['"]?|['"]?\s*\)?$/g,""),o=e.match(/^(url\()?\s*(['"]).*?(['"])\s*\)?$/);r=t.urlQuotes&&o&&o[2]===o[3]?o[2]:m(i),n.push("url("+r+d(i,t)+r+")")})}var v=e("path"),y=e("url"),b=e("./reduce"),_="win32"==n.platform;t.exports=g}).call(this,e("_process"))},{"./reduce":66,_process:112,path:109,url:178}],68:[function(e,t,n){function r(e){for(var t=e.slice(0),n=0,i=t.length;n<i;n++)Array.isArray(t[n])&&(t[n]=r(t[n]));return t}t.exports=r},{}],69:[function(e,t,n){function r(e){this.source=e||{}}function i(e,t){for(var n in e){var r=e[n];"object"!=typeof r||s.isRegExp(r)?t[n]=n in t?t[n]:r:t[n]=i(r,t[n]||{})}return t}function o(e){if("object"==typeof e)return e;if(!/[,\+\-]/.test(e))return a[e]||a["*"];var t=e.split(","),n=t[0]in a?a[t.shift()]:a["*"];return e={},t.forEach(function(t){var n="+"==t[0],r=t.substring(1).split("."),i=r[0],o=r[1];e[i]=e[i]||{},e[i][o]=n}),i(n,e)}var s=e("util"),a={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!1,ieSuffixHack:!0,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|:content|\/deep\/|:shadow|:selection|^,)/},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}},ie8:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!1,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow|^,)/},units:{ch:!1,in:!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}},ie7:{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,colors:!0,ieBangHack:!0,iePrefixHack:!0,ieSuffixHack:!0,merging:!1,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!0,special:/(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow|^,)/},units:{ch:!1,in:!0,pc:!0,pt:!0,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}};r.prototype.toOptions=function(){return i(a["*"],o(this.source))},t.exports=r},{util:183}],70:[function(e,t,n){(function(n,r,i){function o(e){this.options=e.options,this.errors=e.errors,this.warnings=e.warnings,this.sourceTracker=e.sourceTracker,this.timeout=this.options.inliner.timeout,this.requestOptions=this.options.inliner.request,this.localOnly=e.localOnly,this.relativeTo=e.options.target||n.cwd(),this.maps={},this.sourcesContent={}}function s(e,t,n){return e.trackLoaded(void 0,void 0,e.options.sourceMap),n()}function a(e,t,n,r){function i(){r.cursor+=o+1,a(e,t,n,r)}for(var o=0;r.cursor<t.length;){var s=t.substring(r.cursor),l=e.sourceTracker.nextStart(s)||{index:-1},p=e.sourceTracker.nextEnd(s)||{index:-1},f=x.exec(s)||{index:-1},h=f[1];if(o=t.length,l.index>-1&&(o=l.index),p.index>-1&&p.index<o&&(o=p.index),f.index>-1&&f.index<o&&(o=f.index),o==t.length)break;if(o==l.index)r.files.push(l.filename);else if(o==p.index)r.files.pop();else if(o==f.index){var d=/^https?:\/\//.test(h)||/^\/\//.test(h),v=k.test(h);if(d)return c(e,h,r,i);var y,b,_=r.files[r.files.length-1],w=_?g.dirname(_):e.options.relativeTo;v?(y=g.resolve(e.options.root,_||""),b=u(h)):(y=g.resolve(e.options.root,g.join(w||"",h)),b=m.readFileSync(y,"utf-8")),e.trackLoaded(_||void 0,y,b)}r.cursor+=o+1}return n()}function u(e){var t=k.exec(e),n=t[2]?t[2].split(/[=;]/)[2]:"us-ascii",r=t[3]?t[3].split(";")[1]:"utf8",o="utf8"==r?E(t[4]):t[4],s=new i(o,r);return s.charset=n,s.toString()}function c(e,t,n,r){l(e,t,function(i){e.trackLoaded(n.files[n.files.length-1]||void 0,t,i),r()},function(e){return n.errors.push('Broken source map at "'+t+'" - '+e),r()})}function l(e,t,n,r){var i=0===t.indexOf("https")?y:v,o=_(b.parse(t),e.requestOptions),s=!1;i.get(o,function(e){if(e.statusCode<200||e.statusCode>299)return r(e.statusCode);var t=[];e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){n(t.join(""))})}).on("error",function(e){s||(r(e.message),s=!0)}).on("timeout",function(){s||(r("timeout"),s=!0)}).setTimeout(e.timeout)}function p(e,t,n,r,i){for(var o,s=r.length,a={line:t,column:n+s};s-- >0&&(a.column--,!(o=e.data.originalPositionFor(a))););return null===o.line&&t>1&&i>0?p(e,t-1,n,r,i-1):(e.path&&o.source&&(o.source=w.test(e.path)?b.resolve(e.path,o.source):g.join(e.path,o.source),o.sourceResolved=!0),o)}function f(e,t){var n=e.maps[t].data,r=w.test(t),i={};n.sources.forEach(function(o,s){var a=r?b.resolve(g.dirname(t),o):g.relative(e.relativeTo,g.resolve(g.dirname(t||"."),o));i[a]=n.sourcesContent&&n.sourcesContent[s]}),e.sourcesContent[t]=i}function h(e,t,n){function r(){return h(e,t,n)}if(0===t.length)return n();var i=t.shift(),o=i[0],s=i[1],a=w.test(o);if(a&&e.localOnly)return e.warnings.push('No callback given to `#minify` method, cannot fetch a remote file from "'+s+'"'),r();if(!a){var u=g.join(e.options.root,s);return m.existsSync(u)?e.sourcesContent[o][s]=m.readFileSync(u,"utf-8"):e.warnings.push('Missing original source file at "'+u+'".'),r()}l(e,s,function(t){e.sourcesContent[o][s]=t,r()},function(t){e.warnings.push('Broken original source file at "'+s+'" - '+t),r()})}var d=e("source-map").SourceMapConsumer,m=e("fs"),g=e("path"),v=e("http"),y=e("https"),b=e("url"),_=e("../utils/object.js").override,x=/\/\*# sourceMappingURL=(\S+) \*\//,w=/^(https?:)?\/\//,k=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/,E=r.unescape;o.prototype.track=function(e,t){return"string"==typeof this.options.sourceMap?s(this,e,t):a(this,e,t,{files:[],cursor:0,errors:this.errors})},o.prototype.trackLoaded=function(e,t,n){var r=this.options.explicitTarget?this.options.target:this.options.root,i=w.test(e);t&&(t=i?g.dirname(t):g.dirname(g.relative(r,t))),this.maps[e]={path:t,data:new d(n)},f(this,e)},o.prototype.isTracking=function(e){return!!this.maps[e]},o.prototype.originalPositionFor=function(e,t,n){return p(this.maps[e.source],e.line,e.column,t,n)},o.prototype.sourcesContentFor=function(e){return this.sourcesContent[e]},o.prototype.resolveSources=function(e){var t=[];for(var n in this.sourcesContent){var r=this.sourcesContent[n];for(var i in r)r[i]||t.push([n,i])}return h(this,t,e)},t.exports=o}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"../utils/object.js":71,_process:112,buffer:12,fs:10,http:170,https:97,path:109,"source-map":76,url:178}],71:[function(e,t,n){t.exports={override:function(e,t){var n={};for(var r in e)n[r]=e[r];for(var i in t)n[i]=t[i];return n}}},{}],72:[function(e,t,n){function r(e){this.data=e}function i(e,t){for(var n=t;n>-1&&!((n=e.lastIndexOf(s,n))>-1&&"*"!=e[n-1]);)n--;return n}function o(e,t,n){for(var r=n;;){if((r=e.indexOf(t,r+1))==-1)return-1;if("\\"!=e[r-1])return r}}var s="/*",a=function(e,t,n,r){var o=e.substring(r,n),s=o.lastIndexOf("*/",n),a=i(o,n),u=!1;if(s>=n&&a>-1&&(u=!0),a<n&&a>s&&(u=!0),u){var c=e.indexOf("*/",n);return c>-1?c:(c=e.indexOf("}",n),c>-1?c-1:e.length)}for(;;){if(void 0===e[n])break;if(e[n]==t&&("\\"!=e[n-1]||"\\"==e[n-2]))break;n++}return n};r.prototype.each=function(e){for(var t=this.data,n=[],r=0,i=0,s=0,u=null,c=t.length;i<t.length;){var l=o(t,"'",i),p=o(t,'"',i);if(l==-1&&(l=c),p==-1&&(p=c),l<p?(r=l,u="'"):(r=p,u='"'),r==-1)break;if((i=a(t,u,r+1,s))==-1)break;var f=t.substring(r,i+1);n.push(t.substring(s,r)),f.length>0&&e(f,n,r),s=i+1}return n.length>0?n.join("")+t.substring(s,t.length):t},t.exports=r},{}],73:[function(e,t,n){(function(n){function r(e,t){this.outerContext=e,this.data=t,this.sources={}}function i(e){var t=e.data;return e.trackSource(void 0,t),t}function o(e){var t=e.data.toString();return e.trackSource(void 0,t),t}function s(e){return e.data.map(function(t){return e.outerContext.options.processImport===!1?t+"@shallow":t}).map(function(t){return!e.outerContext.options.relativeTo||/^https?:\/\//.test(t)?t:u.relative(e.outerContext.options.relativeTo,t)}).map(function(e){return"@import url("+e+");"}).join("")}function a(e){var t=[],n=u.resolve(e.outerContext.options.target||e.outerContext.options.root);for(var r in e.data){var i=e.data[r].styles,o=e.data[r].sourceMap,s=l.test(r),a=s?r:u.resolve(r),p=u.dirname(a),f={absolute:e.outerContext.options.explicitRoot,relative:!e.outerContext.options.explicitRoot,imports:!0,rebase:e.outerContext.options.rebase,fromBase:p,toBase:s?p:n,urlQuotes:e.outerContext.options.compatibility.properties.urlQuotes};i=c(i,f,e.outerContext),e.trackSource(r,i),i=e.outerContext.sourceTracker.store(r,i),e.outerContext.options.sourceMap&&o&&e.outerContext.inputSourceMapTracker.trackLoaded(r,r,o),t.push(i)}return t.join("")}var u=e("path"),c=e("../urls/rewrite"),l=/^(https?:)?\/\//;r.prototype.sourceAt=function(e){return this.sources[e]},r.prototype.trackSource=function(e,t){this.sources[e]={},this.sources[e][e]=t},r.prototype.toString=function(){return"string"==typeof this.data?i(this):n.isBuffer(this.data)?o(this):Array.isArray(this.data)?s(this):a(this)},t.exports=r}).call(this,{isBuffer:e("../../../is-buffer/index.js")})},{"../../../is-buffer/index.js":100,"../urls/rewrite":67,path:109}],74:[function(e,t,n){function r(){this.sources=[]}r.prototype.store=function(e,t){return this.sources.push(e),"__ESCAPED_SOURCE_CLEAN_CSS"+(this.sources.length-1)+"__"+t+"__ESCAPED_SOURCE_END_CLEAN_CSS__"},r.prototype.nextStart=function(e){var t=/__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(e);return t?{index:t.index,filename:this.sources[~~t[1]]}:null},r.prototype.nextEnd=function(e){return/__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(e)},r.prototype.removeAll=function(e){return e.replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g,"").replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g,"")},t.exports=r},{}],75:[function(e,t,n){function r(e,t,n,r,i,o){var s="string"!=typeof t;if(!(s?t.test(e):e.indexOf(t)))return[e];if(r=r||"(",i=i||")",e.indexOf(r)==-1&&!n&&!o)return e.split(t);for(var a=!1,u=!1,c=0,l=0,p=0,f=e.length,h=[];l<f&&(a="\\"==e[l],u||(e[l]==r?c++:e[l]==i&&c--),!(!u&&0===c&&l>0&&l+1<f&&(s?t.test(e[l]):e[l]==t)&&(h.push(e.substring(p,l+(n?1:0))),p=l+1,o&&1==h.length)));)u=a,l++;if(p<l+1){var d=e.substring(p),m=d[d.length-1];!n&&(s?t.test(m):m==t)&&(d=d.substring(0,d.length-1)),h.push(d)}return h}t.exports=r},{}],76:[function(e,t,n){n.SourceMapGenerator=e("./source-map/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./source-map/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":83,"./source-map/source-map-generator":84,"./source-map/source-node":85}],77:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(){this._array=[],this._set={}}var i=e("./util");r.fromArray=function(e,t){for(var n=new r,i=0,o=e.length;i<o;i++)n.add(e[i],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,t){var n=this.has(e),r=this._array.length;n&&!t||this._array.push(e),n||(this._set[i.toSetString(e)]=r)},r.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,i.toSetString(e))},r.prototype.indexOf=function(e){if(this.has(e))return this._set[i.toSetString(e)];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},t.ArraySet=r})},{"./util":86,amdefine:4}],78:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e){return e<0?1+(-e<<1):0+(e<<1)}function i(e){var t=1==(1&e),n=e>>1;return t?-n:n}var o=e("./base64");t.encode=function(e){var t,n="",i=r(e);do{t=31&i,i>>>=5,i>0&&(t|=32),n+=o.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var r,s,a=e.length,u=0,c=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if((s=o.decode(e.charCodeAt(t++)))===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&s),s&=31,u+=s<<c,c+=5}while(r);n.value=i(u),n.rest=t}})},{"./base64":79,amdefine:4}],79:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+aNumber)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}})},{amdefine:4}],80:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e,n,i,o,s,a){var u=Math.floor((n-e)/2)+e,c=s(i,o[u],!0);return 0===c?u:c>0?n-u>1?r(u,n,i,o,s,a):a==t.LEAST_UPPER_BOUND?n<o.length?n:-1:u:u-e>1?r(e,u,i,o,s,a):a==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,o){if(0===n.length)return-1;var s=r(-1,n.length,e,n,i,o||t.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(n[s],n[s-1],!0);)--s;return s}})},{amdefine:4}],81:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||o.compareByGeneratedPositionsInflated(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i})},{"./util":86,amdefine:4}],82:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function i(e,t){return Math.round(e+Math.random()*(t-e))}function o(e,t,n,s){if(n<s){var a=i(n,s),u=n-1;r(e,a,s);for(var c=e[s],l=n;l<s;l++)t(e[l],c)<=0&&(u+=1,r(e,u,l));r(e,u+1,l);var p=u+1;o(e,t,n,p-1),o(e,t,p+1,s)}}t.quickSort=function(e,t){o(e,t,0,e.length-1)}})},{amdefine:4}],83:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new s(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=a.getArg(t,"version"),r=a.getArg(t,"sources"),i=a.getArg(t,"names",[]),o=a.getArg(t,"sourceRoot",null),s=a.getArg(t,"sourcesContent",null),u=a.getArg(t,"mappings"),l=a.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(a.normalize),this._names=c.fromArray(i,!0),this._sources=c.fromArray(r,!0),this.sourceRoot=o,this.sourcesContent=s,this._mappings=u,this.file=l}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function s(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=a.getArg(t,"version"),i=a.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new c,this._names=new c;var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=a.getArg(e,"offset"),n=a.getArg(t,"line"),i=a.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new r(a.getArg(e,"map"))}})}var a=e("./util"),u=e("./binary-search"),c=e("./array-set").ArraySet,l=e("./base64-vlq"),p=e("./quick-sort").quickSort;r.fromSourceMap=function(e){return i.fromSourceMap(e)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},r.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(e,t,n){var i,o=t||null,s=n||r.GENERATED_ORDER;switch(s){case r.GENERATED_ORDER:i=this._generatedMappings;break;case r.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=u&&(t=a.join(u,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,o)},r.prototype.allGeneratedPositionsFor=function(e){var t=a.getArg(e,"line"),n={source:a.getArg(e,"source"),originalLine:t,originalColumn:a.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=a.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(i>=0){var o=this._originalMappings[i];if(void 0===e.column)for(var s=o.originalLine;o&&o.originalLine===s;)r.push({line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var c=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==c;)r.push({line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return r},t.SourceMapConsumer=r,i.prototype=Object.create(r.prototype),i.prototype.consumer=r,i.fromSourceMap=function(e){var t=Object.create(i.prototype),n=t._names=c.fromArray(e._names.toArray(),!0),r=t._sources=c.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),u=t.__generatedMappings=[],l=t.__originalMappings=[],f=0,h=s.length;f<h;f++){var d=s[f],m=new o;m.generatedLine=d.generatedLine,m.generatedColumn=d.generatedColumn,d.source&&(m.source=r.indexOf(d.source),m.originalLine=d.originalLine,m.originalColumn=d.originalColumn,d.name&&(m.name=n.indexOf(d.name)),l.push(m)),u.push(m)}return p(t.__originalMappings,a.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?a.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var n,r,i,s,u,c=1,f=0,h=0,d=0,m=0,g=0,v=e.length,y=0,b={},_={},x=[],w=[];y<v;)if(";"===e.charAt(y))c++,y++,f=0;else if(","===e.charAt(y))y++;else{for(n=new o,n.generatedLine=c,s=y;s<v&&!this._charIsMappingSeparator(e,s);s++);if(r=e.slice(y,s),i=b[r])y+=r.length;else{for(i=[];y<s;)l.decode(e,y,_),u=_.value,y=_.rest,i.push(u);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");b[r]=i}n.generatedColumn=f+i[0],f=n.generatedColumn,i.length>1&&(n.source=m+i[1],m+=i[1],n.originalLine=h+i[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=d+i[3],d=n.originalColumn,i.length>4&&(n.name=g+i[4],g+=i[4])),w.push(n),"number"==typeof n.originalLine&&x.push(n)}p(w,a.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,p(x,a.compareByOriginalPositions),this.__originalMappings=x},i.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return u.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(e){var t={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",a.compareByGeneratedPositionsDeflated,a.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=a.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=a.join(this.sourceRoot,o)));var s=a.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:a.getArg(i,"originalLine",null),column:a.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=a.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t=a.getArg(e,"source");if(null!=this.sourceRoot&&(t=a.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var n={source:t,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=i,s.prototype=Object.create(r.prototype),s.prototype.constructor=r,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),s.prototype.originalPositionFor=function(e){var t={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},n=u.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n],i=r.consumer.sourceContentFor(e,!0);if(i)return i}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer.sources.indexOf(a.getArg(e,"source"))!==-1){var r=n.consumer.generatedPositionFor(e);if(r){return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}}return{line:null,column:null}},s.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,o=0;o<i.length;o++){var s=i[n],u=r.consumer._sources.at(s.source);null!==r.consumer.sourceRoot&&(u=a.join(r.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var c=r.consumer._names.at(s.name);this._names.add(c),c=this._names.indexOf(c);var l={source:u,generatedLine:s.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:s.column+(r.generatedOffset.generatedLine===s.generatedLine)?r.generatedOffset.generatedColumn-1:0,originalLine:s.originalLine,originalColumn:s.originalColumn,name:c};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}p(this.__generatedMappings,a.compareByGeneratedPositionsDeflated),p(this.__originalMappings,a.compareByOriginalPositions)},t.IndexedSourceMapConsumer=s})},{"./array-set":77,"./base64-vlq":78,"./binary-search":80,"./quick-sort":82,"./util":86,amdefine:4}],84:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,
|
||
this._mappings=new a,this._sourcesContents=null}var i=e("./base64-vlq"),o=e("./util"),s=e("./array-set").ArraySet,a=e("./mapping-list").MappingList;r.prototype._version=3,r.fromSourceMap=function(e){var t=e.sourceRoot,n=new r({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},r.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null==r||this._sources.has(r)||this._sources.add(r),null==i||this._names.has(i)||this._names.add(i),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},r.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=o.relative(i,r));var a=new s,u=new s;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=o.join(n,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)},this),this._sources=a,this._names=u,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,r))},this)},r.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t=0,n=1,r=0,s=0,a=0,u=0,c="",l=this._mappings.toArray(),p=0,f=l.length;p<f;p++){if(e=l[p],e.generatedLine!==n)for(t=0;e.generatedLine!==n;)c+=";",n++;else if(p>0){if(!o.compareByGeneratedPositionsInflated(e,l[p-1]))continue;c+=","}c+=i.encode(e.generatedColumn-t),t=e.generatedColumn,null!=e.source&&(c+=i.encode(this._sources.indexOf(e.source)-u),u=this._sources.indexOf(e.source),c+=i.encode(e.originalLine-1-s),s=e.originalLine-1,c+=i.encode(e.originalColumn-r),r=e.originalColumn,null!=e.name&&(c+=i.encode(this._names.indexOf(e.name)-a),a=this._names.indexOf(e.name)))}return c},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=r})},{"./array-set":77,"./base64-vlq":78,"./mapping-list":81,"./util":86,amdefine:4}],85:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[s]=!0,null!=r&&this.add(r)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),s="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,t,n){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=n?o.join(n,e.source):e.source;s.add(new r(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new r,a=e.split(/(\r?\n)/),u=function(){return a.shift()+(a.shift()||"")},c=1,l=0,p=null;return t.eachMapping(function(e){if(null!==p){if(!(c<e.generatedLine)){var t=a[0],n=t.substr(0,e.generatedColumn-l);return a[0]=t.substr(e.generatedColumn-l),l=e.generatedColumn,i(p,n),void(p=e)}var n="";i(p,u()),c++,l=0}for(;c<e.generatedLine;)s.add(u()),c++;if(l<e.generatedColumn){var t=a[0];s.add(t.substr(0,e.generatedColumn)),a[0]=t.substr(e.generatedColumn),l=e.generatedColumn}p=e},this),a.length>0&&(p&&i(p,u()),s.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=o.join(n,e)),s.setSourceContent(e,r))}),s},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},r.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},r.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},r.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},r.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},r.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new i(e),r=!1,o=null,s=null,a=null,u=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?(o===i.source&&s===i.line&&a===i.column&&u===i.name||n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,s=i.line,a=i.column,u=i.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,r=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(o=null,r=!1):r&&n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=r})},{"./source-map-generator":84,"./util":86,amdefine:4}],86:[function(e,t,n){if("function"!=typeof r)var r=e("amdefine")(t,e);r(function(e,t,n){function r(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(m);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(e){var t=e,n=i(e);if(n){if(!n.path)return e;t=n.path}for(var r,s="/"===t.charAt(0),a=t.split(/\/+/),u=0,c=a.length-1;c>=0;c--)r=a[c],"."===r?a.splice(c,1):".."===r?u++:u>0&&(""===r?(a.splice(c+1,u),u=0):(a.splice(c,2),u--));return t=a.join("/"),""===t&&(t=s?"/":"."),n?(n.path=t,o(n)):t}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),r=i(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),o(n);if(n||t.match(g))return t;if(r&&!r.host&&!r.path)return r.host=t,o(r);var a="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=a,o(r)):a}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return"$"+e}function l(e){return e.substr(1)}function p(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function f(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function h(e,t){return e===t?0:e>t?1:-1}function d(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=h(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:h(e.name,t.name))}t.getArg=r;var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,g=/^data:.+\,.+$/;t.urlParse=i,t.urlGenerate=o,t.normalize=s,t.join=a,t.relative=u,t.toSetString=c,t.fromSetString=l,t.compareByOriginalPositions=p,t.compareByGeneratedPositionsDeflated=f,t.compareByGeneratedPositionsInflated=d})},{amdefine:4}],87:[function(e,t,n){"use strict";function r(e,t){if(e="("+e+")",u===e&&l===t)return c;if(u=e,l=t,!a(e))return c=!1;var n;try{n=o.parse(e,{ecmaVersion:6,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,allowHashBang:!0})}catch(e){return c=!1}var r=!0;return s.simple(n,{Statement:function(e){r&&p[e.type]!==!0&&(r=!1)},Expression:function(e){r&&f[e.type]!==!0&&(r=!1)},MemberExpression:function(e){r&&(e.computed?r=!1:"_"===e.property.name[0]&&(r=!1))},Identifier:function(e){r&&(t&&e.name in t||(r=!1))}}),c=r}function i(e,t){if(!r(e,t))throw new Error(JSON.stringify(e)+" is not constant.");return Function(Object.keys(t||{}).join(","),"return ("+e+")").apply(null,Object.keys(t||{}).map(function(e){return t[e]}))}var o=e("acorn"),s=e("acorn/dist/walk"),a=e("is-expression"),u="(null)",c=!0,l=void 0,p={EmptyStatement:!0,ExpressionStatement:!0},f={ParenthesizedExpression:!0,ArrayExpression:!0,ObjectExpression:!0,SequenceExpression:!0,TemplateLiteral:!0,UnaryExpression:!0,BinaryExpression:!0,LogicalExpression:!0,ConditionalExpression:!0,Identifier:!0,Literal:!0,ComprehensionExpression:!0,TaggedTemplateExpression:!0,MemberExpression:!0,CallExpression:!0,NewExpression:!0};t.exports=r,r.isConstant=r,r.toConstant=i},{acorn:88,"acorn/dist/walk":89,"is-expression":90}],88:[function(t,n,r){!function(t,i){"object"==typeof r&&void 0!==n?i(r):"function"==typeof e&&e.amd?e(["exports"],i):i(t.acorn=t.acorn||{})}(this,function(e){"use strict";function t(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function n(e,n){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&E.test(String.fromCharCode(e)):n!==!1&&t(e,C)))}function r(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&A.test(String.fromCharCode(e)):n!==!1&&(t(e,C)||t(e,S)))))}function i(e,t){return new T(e,{beforeExpr:!0,binop:t})}function o(e,t){return void 0===t&&(t={}),t.keyword=e,L[e]=new T(e,t)}function s(e){return 10===e||13===e||8232===e||8233==e}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n=1,r=0;;){R.lastIndex=r;var i=R.exec(e);if(!(i&&i.index<t))return new P(n,t-r);++n,r=i.index+i[0].length}}function l(e){var t={};for(var n in j)t[n]=e&&u(e,n)?e[n]:j[n];if(null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),a(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return a(t.onComment)&&(t.onComment=p(t,t.onComment)),t}function p(e,t){return function(n,r,i,o,s,a){var u={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(u.loc=new I(this,s,a)),e.ranges&&(u.range=[i,o]),t.push(u)}}function f(e){return new RegExp("^("+e.replace(/ /g,"|")+")$")}function h(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}function d(e,t,n,r){try{return new RegExp(e,t)}catch(e){if(void 0!==n)throw e instanceof SyntaxError&&r.raise(n,"Error parsing regular expression: "+e.message),e}}function m(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function g(e,t){return new U(t,e).parse()}function v(e,t,n){var r=new U(n,e,t);return r.nextToken(),r.parseExpression()}function y(e,t){return new U(t,e)}var b={3:"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:"class enum extends super const export import",6:"enum",7:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},_="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",x={5:_,6:_+" const class extends export import super"},w="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",k="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",E=new RegExp("["+w+"]"),A=new RegExp("["+w+k+"]");w=k=null;var C=[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,19,35,5,35,5,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,66,18,2,1,11,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,56,50,14,50,785,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,25,391,63,32,0,449,56,264,8,2,36,18,0,50,29,881,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,65,0,32,6124,20,754,9486,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,60,67,1213,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,3,5761,10591,541],S=[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,10,2,4,9,83,11,7,0,161,11,6,9,7,3,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,87,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,423,9,838,7,2,7,17,9,57,21,2,13,19882,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,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239],T=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null},O={beforeExpr:!0},F={startsExpr:!0},L={},B={num:new T("num",F),regexp:new T("regexp",F),string:new T("string",F),name:new T("name",F),eof:new T("eof"),bracketL:new T("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new T("]"),braceL:new T("{",{beforeExpr:!0,startsExpr:!0}),braceR:new T("}"),parenL:new T("(",{beforeExpr:!0,startsExpr:!0}),parenR:new T(")"),comma:new T(",",O),semi:new T(";",O),colon:new T(":",O),dot:new T("."),question:new T("?",O),arrow:new T("=>",O),template:new T("template"),ellipsis:new T("...",O),backQuote:new T("`",F),dollarBraceL:new T("${",{beforeExpr:!0,startsExpr:!0}),eq:new T("=",{beforeExpr:!0,isAssign:!0}),assign:new T("_=",{beforeExpr:!0,isAssign:!0}),incDec:new T("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new T("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:i("||",1),logicalAND:i("&&",2),bitwiseOR:i("|",3),bitwiseXOR:i("^",4),bitwiseAND:i("&",5),equality:i("==/!=",6),relational:i("</>",7),bitShift:i("<</>>",8),plusMin:new T("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:i("%",10),star:i("*",10),slash:i("/",10),starstar:new T("**",{beforeExpr:!0}),_break:o("break"),_case:o("case",O),_catch:o("catch"),_continue:o("continue"),_debugger:o("debugger"),_default:o("default",O),_do:o("do",{isLoop:!0,beforeExpr:!0}),_else:o("else",O),_finally:o("finally"),_for:o("for",{isLoop:!0}),_function:o("function",F),_if:o("if"),_return:o("return",O),_switch:o("switch"),_throw:o("throw",O),_try:o("try"),_var:o("var"),_const:o("const"),_while:o("while",{isLoop:!0}),_with:o("with"),_new:o("new",{beforeExpr:!0,startsExpr:!0}),_this:o("this",F),_super:o("super",F),_class:o("class"),_extends:o("extends",O),_export:o("export"),_import:o("import"),_null:o("null",F),_true:o("true",F),_false:o("false",F),_in:o("in",{beforeExpr:!0,binop:7}),_instanceof:o("instanceof",{beforeExpr:!0,binop:7}),_typeof:o("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:o("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:o("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},D=/\r\n?|\n|\u2028|\u2029/,R=new RegExp(D.source,"g"),M=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,N=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P=function(e,t){this.line=e,this.column=t};P.prototype.offset=function(e){return new P(this.line,this.column+e)};var I=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)},j={ecmaVersion:6,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1,plugins:{}},V={},U=function(e,t,n){this.options=e=l(e),this.sourceFile=e.sourceFile,this.keywords=f(x[e.ecmaVersion>=6?6:5]);var r=e.allowReserved?"":b[e.ecmaVersion]+("module"==e.sourceType?" await":"");this.reservedWords=f(r);var i=(r?r+" ":"")+b.strict;this.reservedWordsStrict=f(i),this.reservedWordsStrictBind=f(i+" "+b.strictBind),this.input=String(t),this.containsEsc=!1,this.loadPlugins(e.plugins),n?(this.pos=n,this.lineStart=Math.max(0,this.input.lastIndexOf("\n",n)),this.curLine=this.input.slice(0,this.lineStart).split(D).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=B.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.strict=this.inModule="module"===e.sourceType,this.potentialArrowAt=-1,this.inFunction=this.inGenerator=!1,this.labels=[],0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2)};U.prototype.isKeyword=function(e){return this.keywords.test(e)},U.prototype.isReservedWord=function(e){return this.reservedWords.test(e)},U.prototype.extend=function(e,t){this[e]=t(this[e])},U.prototype.loadPlugins=function(e){var t=this;for(var n in e){var r=V[n];if(!r)throw new Error("Plugin '"+n+"' not found");r(t,e[n])}},U.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)};var z=U.prototype;z.isUseStrict=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.raw.slice(1,-1)},z.eat=function(e){return this.type===e&&(this.next(),!0)},z.isContextual=function(e){return this.type===B.name&&this.value===e},z.eatContextual=function(e){return this.value===e&&this.eat(B.name)},z.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},z.canInsertSemicolon=function(){return this.type===B.eof||this.type===B.braceR||D.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){this.eat(B.semi)||this.insertSemicolon()||this.unexpected()},z.afterTrailingComma=function(e){if(this.type==e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),this.next(),!0},z.expect=function(e){this.eat(e)||this.unexpected()},z.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var q=function(){this.shorthandAssign=0,this.trailingComma=0};z.checkPatternErrors=function(e,t){var n=e&&e.trailingComma;if(!t)return!!n;n&&this.raise(n,"Comma is not permitted after the rest element")},z.checkExpressionErrors=function(e,t){var n=e&&e.shorthandAssign;if(!t)return!!n;n&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns")};var $=U.prototype;$.parseTopLevel=function(e){var t=this,n=!0;for(e.body||(e.body=[]);this.type!==B.eof;){var r=t.parseStatement(!0,!0);e.body.push(r),n&&(t.isUseStrict(r)&&t.setStrict(!0),n=!1)}return this.next(),this.options.ecmaVersion>=6&&(e.sourceType=this.options.sourceType),this.finishNode(e,"Program")};var H={kind:"loop"},W={kind:"switch"};$.isLet=function(){if(this.type!==B.name||this.options.ecmaVersion<6||"let"!=this.value)return!1;N.lastIndex=this.pos;var e=N.exec(this.input),t=this.pos+e[0].length,i=this.input.charCodeAt(t);if(91===i||123==i)return!0;if(n(i,!0)){for(var o=t+1;r(this.input.charCodeAt(o),!0);++o);var s=this.input.slice(t,o);if(!this.isKeyword(s))return!0}return!1},$.parseStatement=function(e,t){var n,r=this.type,i=this.startNode();switch(this.isLet()&&(r=B._var,n="let"),r){case B._break:case B._continue:return this.parseBreakContinueStatement(i,r.keyword);case B._debugger:return this.parseDebuggerStatement(i);case B._do:return this.parseDoStatement(i);case B._for:return this.parseForStatement(i);case B._function:return!e&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i);case B._class:return e||this.unexpected(),this.parseClass(i,!0);case B._if:return this.parseIfStatement(i);case B._return:return this.parseReturnStatement(i);case B._switch:return this.parseSwitchStatement(i);case B._throw:return this.parseThrowStatement(i);case B._try:return this.parseTryStatement(i);case B._const:case B._var:return n=n||this.value,e||"var"==n||this.unexpected(),this.parseVarStatement(i,n);case B._while:return this.parseWhileStatement(i);case B._with:return this.parseWithStatement(i);case B.braceL:return this.parseBlock();case B.semi:return this.parseEmptyStatement(i);case B._export:case B._import:return this.options.allowImportExportEverywhere||(t||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'")),r===B._import?this.parseImport(i):this.parseExport(i);default:var o=this.value,s=this.parseExpression();return r===B.name&&"Identifier"===s.type&&this.eat(B.colon)?this.parseLabeledStatement(i,o,s):this.parseExpressionStatement(i,s)}},$.parseBreakContinueStatement=function(e,t){var n=this,r="break"==t;this.next(),this.eat(B.semi)||this.insertSemicolon()?e.label=null:this.type!==B.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var o=n.labels[i];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(r||"loop"===o.kind))break;if(e.label&&r)break}}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},$.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},$.parseDoStatement=function(e){return this.next(),this.labels.push(H),e.body=this.parseStatement(!1),this.labels.pop(),this.expect(B._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(B.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},$.parseForStatement=function(e){if(this.next(),this.labels.push(H),this.expect(B.parenL),this.type===B.semi)return this.parseFor(e,null);var t=this.isLet();if(this.type===B._var||this.type===B._const||t){var n=this.startNode(),r=t?"let":this.value;return this.next(),this.parseVar(n,!0,r),this.finishNode(n,"VariableDeclaration"),!(this.type===B._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==n.declarations.length||"var"!==r&&n.declarations[0].init?this.parseFor(e,n):this.parseForIn(e,n)}var i=new q,o=this.parseExpression(!0,i);return this.type===B._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.checkPatternErrors(i,!0),this.toAssignable(o),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(i,!0),this.parseFor(e,o))},$.parseFunctionStatement=function(e){return this.next(),this.parseFunction(e,!0)},$.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(!1),e.alternate=this.eat(B._else)?this.parseStatement(!1):null,this.finishNode(e,"IfStatement")},$.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(B.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},$.parseSwitchStatement=function(e){var t=this;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(B.braceL),this.labels.push(W);for(var n,r=!1;this.type!=B.braceR;)if(t.type===B._case||t.type===B._default){var i=t.type===B._case;n&&t.finishNode(n,"SwitchCase"),e.cases.push(n=t.startNode()),n.consequent=[],t.next(),i?n.test=t.parseExpression():(r&&t.raiseRecoverable(t.lastTokStart,"Multiple default clauses"),r=!0,n.test=null),t.expect(B.colon)}else n||t.unexpected(),n.consequent.push(t.parseStatement(!0));return n&&this.finishNode(n,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},$.parseThrowStatement=function(e){return this.next(),D.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var G=[];$.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===B._catch){var t=this.startNode();this.next(),this.expect(B.parenL),t.param=this.parseBindingAtom(),this.checkLVal(t.param,!0),this.expect(B.parenR),t.body=this.parseBlock(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(B._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},$.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},$.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(H),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"WhileStatement")},$.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(!1),this.finishNode(e,"WithStatement")},$.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},$.parseLabeledStatement=function(e,t,n){for(var r=this,i=0;i<this.labels.length;++i)r.labels[i].name===t&&r.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===B._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var a=r.labels[s];if(a.statementStart!=e.start)break;a.statementStart=r.start,a.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(!0),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},$.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},$.parseBlock=function(e){var t,n=this,r=this.startNode(),i=!0;for(r.body=[],this.expect(B.braceL);!this.eat(B.braceR);){var o=n.parseStatement(!0);r.body.push(o),i&&e&&n.isUseStrict(o)&&(t=n.strict,n.setStrict(n.strict=!0)),i=!1}return t===!1&&this.setStrict(!1),this.finishNode(r,"BlockStatement")},$.parseFor=function(e,t){return e.init=t,this.expect(B.semi),e.test=this.type===B.semi?null:this.parseExpression(),this.expect(B.semi),e.update=this.type===B.parenR?null:this.parseExpression(),this.expect(B.parenR),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,"ForStatement")},$.parseForIn=function(e,t){var n=this.type===B._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.expect(B.parenR),e.body=this.parseStatement(!1),this.labels.pop(),this.finishNode(e,n)},$.parseVar=function(e,t,n){var r=this;for(e.declarations=[],e.kind=n;;){var i=r.startNode();if(r.parseVarId(i),r.eat(B.eq)?i.init=r.parseMaybeAssign(t):"const"!==n||r.type===B._in||r.options.ecmaVersion>=6&&r.isContextual("of")?"Identifier"==i.id.type||t&&(r.type===B._in||r.isContextual("of"))?i.init=null:r.raise(r.lastTokEnd,"Complex binding patterns require an initialization value"):r.unexpected(),e.declarations.push(r.finishNode(i,"VariableDeclarator")),!r.eat(B.comma))break}return e},$.parseVarId=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0)},$.parseFunction=function(e,t,n){this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(B.star))
|
||
;var r=this.inGenerator;return this.inGenerator=e.generator,(t||this.type===B.name)&&(e.id=this.parseIdent()),this.parseFunctionParams(e),this.parseFunctionBody(e,n),this.inGenerator=r,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},$.parseFunctionParams=function(e){this.expect(B.parenL),e.params=this.parseBindingList(B.parenR,!1,!1,!0)},$.parseClass=function(e,t){var n=this;this.next(),this.parseClassId(e,t),this.parseClassSuper(e);var r=this.startNode(),i=!1;for(r.body=[],this.expect(B.braceL);!this.eat(B.braceR);)if(!n.eat(B.semi)){var o=n.startNode(),s=n.eat(B.star),a=n.type===B.name&&"static"===n.value;n.parsePropertyName(o),o.static=a&&n.type!==B.parenL,o.static&&(s&&n.unexpected(),s=n.eat(B.star),n.parsePropertyName(o)),o.kind="method";var u=!1;if(!o.computed){var c=o.key;s||"Identifier"!==c.type||n.type===B.parenL||"get"!==c.name&&"set"!==c.name||(u=!0,o.kind=c.name,c=n.parsePropertyName(o)),!o.static&&("Identifier"===c.type&&"constructor"===c.name||"Literal"===c.type&&"constructor"===c.value)&&(i&&n.raise(c.start,"Duplicate constructor in the same class"),u&&n.raise(c.start,"Constructor can't have get/set modifier"),s&&n.raise(c.start,"Constructor can't be a generator"),o.kind="constructor",i=!0)}if(n.parseClassMethod(r,o,s),u){var l="get"===o.kind?0:1;if(o.value.params.length!==l){var p=o.value.start;"get"===o.kind?n.raiseRecoverable(p,"getter should have no params"):n.raiseRecoverable(p,"setter should have exactly one param")}"set"===o.kind&&"RestElement"===o.value.params[0].type&&n.raise(o.value.params[0].start,"Setter cannot use rest params")}}return e.body=this.finishNode(r,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},$.parseClassMethod=function(e,t,n){t.value=this.parseMethod(n),e.body.push(this.finishNode(t,"MethodDefinition"))},$.parseClassId=function(e,t){e.id=this.type===B.name?this.parseIdent():t?this.unexpected():null},$.parseClassSuper=function(e){e.superClass=this.eat(B._extends)?this.parseExprSubscripts():null},$.parseExport=function(e){var t=this;if(this.next(),this.eat(B.star))return this.expectContextual("from"),e.source=this.type===B.string?this.parseExprAtom():this.unexpected(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(B._default)){var n=this.type==B.parenL,r=this.parseMaybeAssign(),i=!0;return n||"FunctionExpression"!=r.type&&"ClassExpression"!=r.type||(i=!1,r.id&&(r.type="FunctionExpression"==r.type?"FunctionDeclaration":"ClassDeclaration")),e.declaration=r,i&&this.semicolon(),this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(!0),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.eatContextual("from"))e.source=this.type===B.string?this.parseExprAtom():this.unexpected();else{for(var o=0;o<e.specifiers.length;o++)(t.keywords.test(e.specifiers[o].local.name)||t.reservedWords.test(e.specifiers[o].local.name))&&t.unexpected(e.specifiers[o].local.start);e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},$.shouldParseExportStatement=function(){return this.type.keyword||this.isLet()},$.parseExportSpecifiers=function(){var e=this,t=[],n=!0;for(this.expect(B.braceL);!this.eat(B.braceR);){if(n)n=!1;else if(e.expect(B.comma),e.afterTrailingComma(B.braceR))break;var r=e.startNode();r.local=e.parseIdent(e.type===B._default),r.exported=e.eatContextual("as")?e.parseIdent(!0):r.local,t.push(e.finishNode(r,"ExportSpecifier"))}return t},$.parseImport=function(e){return this.next(),this.type===B.string?(e.specifiers=G,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===B.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},$.parseImportSpecifiers=function(){var e=this,t=[],n=!0;if(this.type===B.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,!0),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(B.comma))return t}if(this.type===B.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(B.braceL);!this.eat(B.braceR);){if(n)n=!1;else if(e.expect(B.comma),e.afterTrailingComma(B.braceR))break;var o=e.startNode();o.imported=e.parseIdent(!0),e.eatContextual("as")?o.local=e.parseIdent():(o.local=o.imported,e.isKeyword(o.local.name)&&e.unexpected(o.local.start),e.reservedWordsStrict.test(o.local.name)&&e.raise(o.local.start,"The keyword '"+o.local.name+"' is reserved")),e.checkLVal(o.local,!0),t.push(e.finishNode(o,"ImportSpecifier"))}return t};var X=U.prototype;X.toAssignable=function(e,t){var n=this;if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r<e.properties.length;r++){var i=e.properties[r];"init"!==i.kind&&n.raise(i.key.start,"Object pattern can't contain getter or setter"),n.toAssignable(i.value,t)}break;case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,t);break;case"AssignmentExpression":if("="!==e.operator){this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");break}e.type="AssignmentPattern",delete e.operator;case"AssignmentPattern":"YieldExpression"===e.right.type&&this.raise(e.right.start,"Yield expression cannot be a default value");break;case"ParenthesizedExpression":e.expression=this.toAssignable(e.expression,t);break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}return e},X.toAssignableList=function(e,t){var n=this,r=e.length;if(r){var i=e[r-1];if(i&&"RestElement"==i.type)--r;else if(i&&"SpreadElement"==i.type){i.type="RestElement";var o=i.argument;this.toAssignable(o,t),"Identifier"!==o.type&&"MemberExpression"!==o.type&&"ArrayPattern"!==o.type&&this.unexpected(o.start),--r}t&&i&&"RestElement"===i.type&&"Identifier"!==i.argument.type&&this.unexpected(i.argument.start)}for(var s=0;s<r;s++){var a=e[s];a&&n.toAssignable(a,t)}return e},X.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},X.parseRest=function(e){var t=this.startNode();return this.next(),t.argument=e?this.type===B.name?this.parseIdent():this.unexpected():this.type===B.name||this.type===B.bracketL?this.parseBindingAtom():this.unexpected(),this.finishNode(t,"RestElement")},X.parseBindingAtom=function(){if(this.options.ecmaVersion<6)return this.parseIdent();switch(this.type){case B.name:return this.parseIdent();case B.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(B.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case B.braceL:return this.parseObj(!0);default:this.unexpected()}},X.parseBindingList=function(e,t,n,r){for(var i=this,o=[],s=!0;!this.eat(e);)if(s?s=!1:i.expect(B.comma),t&&i.type===B.comma)o.push(null);else{if(n&&i.afterTrailingComma(e))break;if(i.type===B.ellipsis){var a=i.parseRest(r);i.parseBindingListItem(a),o.push(a),i.type===B.comma&&i.raise(i.start,"Comma is not permitted after the rest element"),i.expect(e);break}var u=i.parseMaybeDefault(i.start,i.startLoc);i.parseBindingListItem(u),o.push(u)}return o},X.parseBindingListItem=function(e){return e},X.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(B.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},X.checkLVal=function(e,t,n){var r=this;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(t?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(u(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0);break;case"MemberExpression":t&&this.raiseRecoverable(e.start,(t?"Binding":"Assigning to")+" member expression");break;case"ObjectPattern":for(var i=0;i<e.properties.length;i++)r.checkLVal(e.properties[i].value,t,n);break;case"ArrayPattern":for(var o=0;o<e.elements.length;o++){var s=e.elements[o];s&&r.checkLVal(s,t,n)}break;case"AssignmentPattern":this.checkLVal(e.left,t,n);break;case"RestElement":this.checkLVal(e.argument,t,n);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,n);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}};var Y=U.prototype;Y.checkPropClash=function(e,t){if(!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n,r=e.key;switch(r.type){case"Identifier":n=r.name;break;case"Literal":n=String(r.value);break;default:return}var i=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===n&&"init"===i&&(t.proto&&this.raiseRecoverable(r.start,"Redefinition of __proto__ property"),t.proto=!0));n="$"+n;var o=t[n];if(o){var s="init"!==i;(!this.strict&&!s||!o[i])&&s^o.init||this.raiseRecoverable(r.start,"Redefinition of property")}else o=t[n]={init:!1,get:!1,set:!1};o[i]=!0}},Y.parseExpression=function(e,t){var n=this,r=this.start,i=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===B.comma){var s=this.startNodeAt(r,i);for(s.expressions=[o];this.eat(B.comma);)s.expressions.push(n.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return o},Y.parseMaybeAssign=function(e,t,n){if(this.inGenerator&&this.isContextual("yield"))return this.parseYield();var r=!1;t||(t=new q,r=!0);var i=this.start,o=this.startLoc;this.type!=B.parenL&&this.type!=B.name||(this.potentialArrowAt=this.start);var s=this.parseMaybeConditional(e,t);if(n&&(s=n.call(this,s,i,o)),this.type.isAssign){this.checkPatternErrors(t,!0),r||q.call(t);var a=this.startNodeAt(i,o);return a.operator=this.value,a.left=this.type===B.eq?this.toAssignable(s):s,t.shorthandAssign=0,this.checkLVal(s),this.next(),a.right=this.parseMaybeAssign(e),this.finishNode(a,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s},Y.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(B.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(B.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},Y.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)?i:this.parseExprOp(i,n,r,-1,e)},Y.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==B._in)&&o>r){var s=this.type===B.logicalOR||this.type===B.logicalAND,a=this.value;this.next();var u=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),u,c,o,i),p=this.buildBinary(t,n,e,l,a,s);return this.parseExprOp(p,t,n,r,i)}return e},Y.buildBinary=function(e,t,n,r,i,o){var s=this.startNodeAt(e,t);return s.left=n,s.operator=i,s.right=r,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},Y.parseMaybeUnary=function(e,t){var n,r=this,i=this.start,o=this.startLoc;if(this.type.prefix){var s=this.startNode(),a=this.type===B.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),a?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):t=!0,n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=r.startNodeAt(i,o);u.operator=r.value,u.prefix=!1,u.argument=n,r.checkLVal(n),r.next(),n=r.finishNode(u,"UpdateExpression")}}return!t&&this.eat(B.starstar)?this.buildBinary(i,o,n,this.parseMaybeUnary(null,!1),"**",!1):n},Y.parseExprSubscripts=function(e){var t=this.start,n=this.startLoc,r=this.parseExprAtom(e),i="ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);return this.checkExpressionErrors(e)||i?r:this.parseSubscripts(r,t,n)},Y.parseSubscripts=function(e,t,n,r){for(var i=this;;)if(i.eat(B.dot)){var o=i.startNodeAt(t,n);o.object=e,o.property=i.parseIdent(!0),o.computed=!1,e=i.finishNode(o,"MemberExpression")}else if(i.eat(B.bracketL)){var s=i.startNodeAt(t,n);s.object=e,s.property=i.parseExpression(),s.computed=!0,i.expect(B.bracketR),e=i.finishNode(s,"MemberExpression")}else if(!r&&i.eat(B.parenL)){var a=i.startNodeAt(t,n);a.callee=e,a.arguments=i.parseExprList(B.parenR,!1),e=i.finishNode(a,"CallExpression")}else{if(i.type!==B.backQuote)return e;var u=i.startNodeAt(t,n);u.tag=e,u.quasi=i.parseTemplate(),e=i.finishNode(u,"TaggedTemplateExpression")}},Y.parseExprAtom=function(e){var t,n=this.potentialArrowAt==this.start;switch(this.type){case B._super:this.inFunction||this.raise(this.start,"'super' outside of function or class");case B._this:var r=this.type===B._this?"ThisExpression":"Super";return t=this.startNode(),this.next(),this.finishNode(t,r);case B.name:var i=this.start,o=this.startLoc,s=this.parseIdent(this.type!==B.name);return n&&!this.canInsertSemicolon()&&this.eat(B.arrow)?this.parseArrowExpression(this.startNodeAt(i,o),[s]):s;case B.regexp:var a=this.value;return t=this.parseLiteral(a.value),t.regex={pattern:a.pattern,flags:a.flags},t;case B.num:case B.string:return this.parseLiteral(this.value);case B._null:case B._true:case B._false:return t=this.startNode(),t.value=this.type===B._null?null:this.type===B._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case B.parenL:return this.parseParenAndDistinguishExpression(n);case B.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(B.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case B.braceL:return this.parseObj(!1,e);case B._function:return t=this.startNode(),this.next(),this.parseFunction(t,!1);case B._class:return this.parseClass(this.startNode(),!1);case B._new:return this.parseNew();case B.backQuote:return this.parseTemplate();default:this.unexpected()}},Y.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(t,"Literal")},Y.parseParenExpression=function(){this.expect(B.parenL);var e=this.parseExpression();return this.expect(B.parenR),e},Y.parseParenAndDistinguishExpression=function(e){var t,n=this,r=this.start,i=this.startLoc;if(this.options.ecmaVersion>=6){this.next();for(var o,s,a=this.start,u=this.startLoc,c=[],l=!0,p=new q;this.type!==B.parenR;){if(l?l=!1:n.expect(B.comma),n.type===B.ellipsis){o=n.start,c.push(n.parseParenItem(n.parseRest()));break}n.type!==B.parenL||s||(s=n.start),c.push(n.parseMaybeAssign(!1,p,n.parseParenItem))}var f=this.start,h=this.startLoc;if(this.expect(B.parenR),e&&!this.canInsertSemicolon()&&this.eat(B.arrow))return this.checkPatternErrors(p,!0),s&&this.unexpected(s),this.parseParenArrowList(r,i,c);c.length||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),c.length>1?(t=this.startNodeAt(a,u),t.expressions=c,this.finishNodeAt(t,"SequenceExpression",f,h)):t=c[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(r,i);return d.expression=t,this.finishNode(d,"ParenthesizedExpression")}return t},Y.parseParenItem=function(e){return e},Y.parseParenArrowList=function(e,t,n){return this.parseArrowExpression(this.startNodeAt(e,t),n)};var K=[];Y.parseNew=function(){var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(B.dot))return e.meta=t,e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is new.target"),this.inFunction||this.raiseRecoverable(e.start,"new.target can only be used in functions"),this.finishNode(e,"MetaProperty");var n=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,r,!0),this.eat(B.parenL)?e.arguments=this.parseExprList(B.parenR,!1):e.arguments=K,this.finishNode(e,"NewExpression")},Y.parseTemplateElement=function(){var e=this.startNode();return e.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),e.tail=this.type===B.backQuote,this.finishNode(e,"TemplateElement")},Y.parseTemplate=function(){var e=this,t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement();for(t.quasis=[n];!n.tail;)e.expect(B.dollarBraceL),t.expressions.push(e.parseExpression()),e.expect(B.braceR),t.quasis.push(n=e.parseTemplateElement());return this.next(),this.finishNode(t,"TemplateLiteral")},Y.parseObj=function(e,t){var n=this,r=this.startNode(),i=!0,o={};for(r.properties=[],this.next();!this.eat(B.braceR);){if(i)i=!1;else if(n.expect(B.comma),n.afterTrailingComma(B.braceR))break;var s,a,u,c=n.startNode();n.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(e||t)&&(a=n.start,u=n.startLoc),e||(s=n.eat(B.star))),n.parsePropertyName(c),n.parsePropertyValue(c,e,s,a,u,t),n.checkPropClash(c,o),r.properties.push(n.finishNode(c,"Property"))}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Y.parsePropertyValue=function(e,t,n,r,i,o){if(this.eat(B.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===B.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n);else if(this.options.ecmaVersion>=5&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.type!=B.comma&&this.type!=B.braceR){(n||t)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var s="get"===e.kind?0:1;if(e.value.params.length!==s){var a=e.value.start;"get"===e.kind?this.raiseRecoverable(a,"getter should have no params"):this.raiseRecoverable(a,"setter should have exactly one param")}"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((this.keywords.test(e.key.name)||(this.strict?this.reservedWordsStrictBind:this.reservedWords).test(e.key.name)||this.inGenerator&&"yield"==e.key.name)&&this.raiseRecoverable(e.key.start,"'"+e.key.name+"' can not be used as shorthand property"),e.kind="init",t?e.value=this.parseMaybeDefault(r,i,e.key):this.type===B.eq&&o?(o.shorthandAssign||(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,i,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},Y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(B.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(B.bracketR),e.key;e.computed=!1}return e.key=this.type===B.num||this.type===B.string?this.parseExprAtom():this.parseIdent(!0)},Y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1)},Y.parseMethod=function(e){var t=this.startNode(),n=this.inGenerator;return this.inGenerator=e,this.initFunction(t),this.expect(B.parenL),t.params=this.parseBindingList(B.parenR,!1,!1),this.options.ecmaVersion>=6&&(t.generator=e),this.parseFunctionBody(t,!1),this.inGenerator=n,this.finishNode(t,"FunctionExpression")},Y.parseArrowExpression=function(e,t){var n=this.inGenerator;return this.inGenerator=!1,this.initFunction(e),e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.inGenerator=n,this.finishNode(e,"ArrowFunctionExpression")},Y.parseFunctionBody=function(e,t){var n=t&&this.type!==B.braceL;if(n)e.body=this.parseMaybeAssign(),e.expression=!0;else{var r=this.inFunction,i=this.labels;this.inFunction=!0,this.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.inFunction=r,this.labels=i}var o=!n&&e.body.body.length&&this.isUseStrict(e.body.body[0])?e.body.body[0]:null;if(this.strict||o){var s=this.strict;this.strict=!0,e.id&&this.checkLVal(e.id,!0),this.checkParams(e,o),this.strict=s}else t&&this.checkParams(e,o)},Y.checkParams=function(e,t){for(var n=this,r={},i=0;i<e.params.length;i++)t&&n.options.ecmaVersion>=7&&"Identifier"!==e.params[i].type&&n.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list"),n.checkLVal(e.params[i],!0,r)},Y.parseExprList=function(e,t,n,r){for(var i=this,o=[],s=!0;!this.eat(e);){if(s)s=!1;else if(i.expect(B.comma),t&&i.afterTrailingComma(e))break;var a;n&&i.type===B.comma?a=null:i.type===B.ellipsis?(a=i.parseSpread(r),i.type===B.comma&&r&&!r.trailingComma&&(r.trailingComma=i.lastTokStart)):a=i.parseMaybeAssign(!1,r),o.push(a)}return o},Y.parseIdent=function(e){var t=this.startNode();return e&&"never"==this.options.allowReserved&&(e=!1),this.type===B.name?(!e&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(this.value)&&(this.options.ecmaVersion>=6||this.input.slice(this.start,this.end).indexOf("\\")==-1)&&this.raiseRecoverable(this.start,"The keyword '"+this.value+"' is reserved"),!e&&this.inGenerator&&"yield"===this.value&&this.raiseRecoverable(this.start,"Can not use 'yield' as identifier inside a generator"),t.name=this.value):e&&this.type.keyword?t.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"Identifier")},Y.parseYield=function(){var e=this.startNode();return this.next(),this.type==B.semi||this.canInsertSemicolon()||this.type!=B.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(B.star),e.argument=this.parseMaybeAssign()),this.finishNode(e,"YieldExpression")};var J=U.prototype;J.raise=function(e,t){var n=c(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},J.raiseRecoverable=J.raise,J.curPosition=function(){if(this.options.locations)return new P(this.curLine,this.pos-this.lineStart)};var Q=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new I(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Z=U.prototype;Z.startNode=function(){return new Q(this,this.start,this.startLoc)},Z.startNodeAt=function(e,t){return new Q(this,e,t)},Z.finishNode=function(e,t){return h.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Z.finishNodeAt=function(e,t,n,r){return h.call(this,e,t,n,r)};var ee=function(e,t,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r},te={b_stat:new ee("{",!1),b_expr:new ee("{",!0),b_tmpl:new ee("${",!0),p_stat:new ee("(",!1),p_expr:new ee("(",!0),q_tmpl:new ee("`",!0,!0,function(e){return e.readTmplToken()}),f_expr:new ee("function",!0)},ne=U.prototype;ne.initialContext=function(){return[te.b_stat]},ne.braceIsBlock=function(e){if(e===B.colon){var t=this.curContext();if(t===te.b_stat||t===te.b_expr)return!t.isExpr}return e===B._return?D.test(this.input.slice(this.lastTokEnd,this.start)):e===B._else||e===B.semi||e===B.eof||e===B.parenR||(e==B.braceL?this.curContext()===te.b_stat:!this.exprAllowed)},ne.updateContext=function(e){var t,n=this.type;n.keyword&&e==B.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},B.parenR.updateContext=B.braceR.updateContext=function(){if(1==this.context.length)return void(this.exprAllowed=!0);var e=this.context.pop();e===te.b_stat&&this.curContext()===te.f_expr?(this.context.pop(),this.exprAllowed=!1):e===te.b_tmpl?this.exprAllowed=!0:this.exprAllowed=!e.isExpr},B.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?te.b_stat:te.b_expr),this.exprAllowed=!0},B.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0},B.parenL.updateContext=function(e){var t=e===B._if||e===B._for||e===B._with||e===B._while;this.context.push(t?te.p_stat:te.p_expr),this.exprAllowed=!0},B.incDec.updateContext=function(){},B._function.updateContext=function(e){e.beforeExpr&&e!==B.semi&&e!==B._else&&(e!==B.colon&&e!==B.braceL||this.curContext()!==te.b_stat)&&this.context.push(te.f_expr),this.exprAllowed=!1},B.backQuote.updateContext=function(){this.curContext()===te.q_tmpl?this.context.pop():this.context.push(te.q_tmpl),this.exprAllowed=!1};var re=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new I(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ie=U.prototype,oe="object"==typeof Packages&&"[object JavaPackage]"==Object.prototype.toString.call(Packages);ie.next=function(){this.options.onToken&&this.options.onToken(new re(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ie.getToken=function(){return this.next(),new re(this)},"undefined"!=typeof Symbol&&(ie[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===B.eof,value:t}}}}),ie.setStrict=function(e){var t=this;if(this.strict=e,this.type===B.num||this.type===B.string){if(this.pos=this.start,this.options.locations)for(;this.pos<this.lineStart;)t.lineStart=t.input.lastIndexOf("\n",t.lineStart-2)+1,--t.curLine;this.nextToken()}},ie.curContext=function(){return this.context[this.context.length-1]},ie.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(B.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ie.readToken=function(e){return n(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ie.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},ie.skipBlockComment=function(){var e=this,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){R.lastIndex=n;for(var i;(i=R.exec(this.input))&&i.index<this.pos;)++e.curLine,e.lineStart=i.index+i[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},ie.skipLineComment=function(e){for(var t=this,n=this.pos,r=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&10!==i&&13!==i&&8232!==i&&8233!==i;)++t.pos,i=t.input.charCodeAt(t.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(n+e,this.pos),n,this.pos,r,this.curPosition())},ie.skipSpace=function(){var e=this;e:for(;this.pos<this.input.length;){var t=e.input.charCodeAt(e.pos);switch(t){case 32:case 160:++e.pos;break;case 13:10===e.input.charCodeAt(e.pos+1)&&++e.pos;case 10:case 8232:case 8233:++e.pos,e.options.locations&&(++e.curLine,e.lineStart=e.pos);break;case 47:switch(e.input.charCodeAt(e.pos+1)){case 42:e.skipBlockComment();break;case 47:e.skipLineComment(2);break;default:break e}break;default:if(!(t>8&&t<14||t>=5760&&M.test(String.fromCharCode(t))))break e;++e.pos}}},ie.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},ie.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(B.ellipsis)):(++this.pos,this.finishToken(B.dot))},ie.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(B.assign,2):this.finishOp(B.slash,1)},ie.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?B.star:B.modulo;return this.options.ecmaVersion>=7&&42===t&&(++n,r=B.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(B.assign,n+1):this.finishOp(r,n)},ie.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.finishOp(124===e?B.logicalOR:B.logicalAND,2):61===t?this.finishOp(B.assign,2):this.finishOp(124===e?B.bitwiseOR:B.bitwiseAND,1)},ie.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(B.assign,2):this.finishOp(B.bitwiseXOR,1)},ie.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45==t&&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(B.incDec,2):61===t?this.finishOp(B.assign,2):this.finishOp(B.plusMin,1)},ie.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(B.assign,n+1):this.finishOp(B.bitShift,n)):33==t&&60==e&&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===t&&(n=2),this.finishOp(B.relational,n))},ie.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(B.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(B.arrow)):this.finishOp(61===e?B.eq:B.prefix,1)},ie.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(B.parenL);case 41:return++this.pos,this.finishToken(B.parenR);case 59:return++this.pos,this.finishToken(B.semi);case 44:return++this.pos,this.finishToken(B.comma);case 91:return++this.pos,this.finishToken(B.bracketL);case 93:return++this.pos,this.finishToken(B.bracketR);case 123:return++this.pos,this.finishToken(B.braceL);case 125:return++this.pos,this.finishToken(B.braceR);case 58:return++this.pos,this.finishToken(B.colon);case 63:return++this.pos,this.finishToken(B.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(B.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(B.prefix,1)}this.raise(this.pos,"Unexpected character '"+m(e)+"'")},ie.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};var se=!!d("","u");ie.readRegexp=function(){for(var e,t,n=this,r=this.pos;;){n.pos>=n.input.length&&n.raise(r,"Unterminated regular expression");var i=n.input.charAt(n.pos);if(D.test(i)&&n.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===i)t=!0;else if("]"===i&&t)t=!1;else if("/"===i&&!t)break;e="\\"===i}++n.pos}var o=this.input.slice(r,this.pos);++this.pos;var s=this.readWord1(),a=o,u="";if(s){var c=/^[gim]*$/;this.options.ecmaVersion>=6&&(c=/^[gimuy]*$/),c.test(s)||this.raise(r,"Invalid regular expression flag"),s.indexOf("u")>=0&&(se?u="u":(a=a.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t,i){return t=Number("0x"+t),t>1114111&&n.raise(r+i+3,"Code point out of bounds"),"x"}),a=a.replace(/\\u([a-fA-F0-9]{4})|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"),u=u.replace("u","")))}
|
||
var l=null;return oe||(d(a,u,r,this),l=d(o,s)),this.finishToken(B.regexp,{pattern:o,flags:s,value:l})},ie.readInt=function(e,t){for(var n=this,r=this.pos,i=0,o=0,s=null==t?1/0:t;o<s;++o){var a,u=n.input.charCodeAt(n.pos);if((a=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;++n.pos,i=i*e+a}return this.pos===r||null!=t&&this.pos-r!==t?null:i},ie.readRadixNumber=function(e){this.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.start+2,"Expected number in radix "+e),n(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(B.num,t)},ie.readNumber=function(e){var t=this.pos,r=!1,i=48===this.input.charCodeAt(this.pos);e||null!==this.readInt(10)||this.raise(t,"Invalid number");var o=this.input.charCodeAt(this.pos);46===o&&(++this.pos,this.readInt(10),r=!0,o=this.input.charCodeAt(this.pos)),69!==o&&101!==o||(o=this.input.charCodeAt(++this.pos),43!==o&&45!==o||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0),n(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,a=this.input.slice(t,this.pos);return r?s=parseFloat(a):i&&1!==a.length?/[89]/.test(a)||this.strict?this.raise(t,"Invalid number"):s=parseInt(a,8):s=parseInt(a,10),this.finishToken(B.num,s)},ie.readCodePoint=function(){var e,t=this.input.charCodeAt(this.pos);if(123===t){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.raise(n,"Code point out of bounds")}else e=this.readHexChar(4);return e},ie.readString=function(e){for(var t=this,n="",r=++this.pos;;){t.pos>=t.input.length&&t.raise(t.start,"Unterminated string constant");var i=t.input.charCodeAt(t.pos);if(i===e)break;92===i?(n+=t.input.slice(r,t.pos),n+=t.readEscapedChar(!1),r=t.pos):(s(i)&&t.raise(t.start,"Unterminated string constant"),++t.pos)}return n+=this.input.slice(r,this.pos++),this.finishToken(B.string,n)},ie.readTmplToken=function(){for(var e=this,t="",n=this.pos;;){e.pos>=e.input.length&&e.raise(e.start,"Unterminated template");var r=e.input.charCodeAt(e.pos);if(96===r||36===r&&123===e.input.charCodeAt(e.pos+1))return e.pos===e.start&&e.type===B.template?36===r?(e.pos+=2,e.finishToken(B.dollarBraceL)):(++e.pos,e.finishToken(B.backQuote)):(t+=e.input.slice(n,e.pos),e.finishToken(B.template,t));if(92===r)t+=e.input.slice(n,e.pos),t+=e.readEscapedChar(!0),n=e.pos;else if(s(r)){switch(t+=e.input.slice(n,e.pos),++e.pos,r){case 13:10===e.input.charCodeAt(e.pos)&&++e.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}e.options.locations&&(++e.curLine,e.lineStart=e.pos),n=e.pos}else++e.pos}},ie.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return m(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(n,8);return r>255&&(n=n.slice(0,-1),r=parseInt(n,8)),"0"!==n&&(this.strict||e)&&this.raise(this.pos-2,"Octal literal in strict mode"),this.pos+=n.length-1,String.fromCharCode(r)}return String.fromCharCode(t)}},ie.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.raise(t,"Bad character escape sequence"),n},ie.readWord1=function(){var e=this;this.containsEsc=!1;for(var t="",i=!0,o=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=e.fullCharCodeAtPos();if(r(a,s))e.pos+=a<=65535?1:2;else{if(92!==a)break;e.containsEsc=!0,t+=e.input.slice(o,e.pos);var u=e.pos;117!=e.input.charCodeAt(++e.pos)&&e.raise(e.pos,"Expecting Unicode escape sequence \\uXXXX"),++e.pos;var c=e.readCodePoint();(i?n:r)(c,s)||e.raise(u,"Invalid Unicode escape"),t+=m(c),o=e.pos}i=!1}return t+this.input.slice(o,this.pos)},ie.readWord=function(){var e=this.readWord1(),t=B.name;return(this.options.ecmaVersion>=6||!this.containsEsc)&&this.keywords.test(e)&&(t=L[e]),this.finishToken(t,e)};e.version="3.3.0",e.parse=g,e.parseExpressionAt=v,e.tokenizer=y,e.Parser=U,e.plugins=V,e.defaultOptions=j,e.Position=P,e.SourceLocation=I,e.getLineInfo=c,e.Node=Q,e.TokenType=T,e.tokTypes=B,e.TokContext=ee,e.tokContexts=te,e.isIdentifierChar=r,e.isIdentifierStart=n,e.Token=re,e.isNewLine=s,e.lineBreak=D,e.lineBreakG=R,Object.defineProperty(e,"__esModule",{value:!0})})},{}],89:[function(t,n,r){!function(t,i){"object"==typeof r&&void 0!==n?i(r):"function"==typeof e&&e.amd?e(["exports"],i):i((t.acorn=t.acorn||{},t.acorn.walk=t.acorn.walk||{}))}(this,function(e){"use strict";function t(t,n,r,i,o){r||(r=e.base),function e(t,i,o){var s=o||t.type,a=n[s];r[s](t,i,e),a&&a(t,i)}(t,i,o)}function n(t,n,r,i){r||(r=e.base);var o=[];!function e(t,i,s){var a=s||t.type,u=n[a],c=t!=o[o.length-1];c&&o.push(t),r[a](t,i,e),u&&u(t,i||o,o),c&&o.pop()}(t,i)}function r(t,n,r,i,o){var s=r?e.make(r,i):i;!function e(t,n,r){s[r||t.type](t,n,e)}(t,n,o)}function i(e){return"string"==typeof e?function(t){return t==e}:e||function(){return!0}}function o(t,n,r,o,s,a){o=i(o),s||(s=e.base);try{!function e(t,i,a){var u=a||t.type;if((null==n||t.start<=n)&&(null==r||t.end>=r)&&s[u](t,i,e),(null==n||t.start==n)&&(null==r||t.end==r)&&o(u,t))throw new f(t,i)}(t,a)}catch(e){if(e instanceof f)return e;throw e}}function s(t,n,r,o,s){r=i(r),o||(o=e.base);try{!function e(t,i,s){var a=s||t.type;if(!(t.start>n||t.end<n)&&(o[a](t,i,e),r(a,t)))throw new f(t,i)}(t,s)}catch(e){if(e instanceof f)return e;throw e}}function a(t,n,r,o,s){r=i(r),o||(o=e.base);try{!function e(t,i,s){if(!(t.end<n)){var a=s||t.type;if(t.start>=n&&r(a,t))throw new f(t,i);o[a](t,i,e)}}(t,s)}catch(e){if(e instanceof f)return e;throw e}}function u(t,n,r,o,s){r=i(r),o||(o=e.base);var a;return function e(t,i,s){if(!(t.start>n)){var u=s||t.type;t.end<=n&&(!a||a.node.end<t.end)&&r(u,t)&&(a=new f(t,i)),o[u](t,i,e)}}(t,s),a}function c(t,n){n||(n=e.base);var r=h(n);for(var i in t)r[i]=t[i];return r}function l(e,t,n){n(e,t)}function p(e,t,n){}var f=function(e,t){this.node=e,this.state=t},h=Object.create||function(e){function t(){}return t.prototype=e,new t},d={};d.Program=d.BlockStatement=function(e,t,n){for(var r=0;r<e.body.length;++r)n(e.body[r],t,"Statement")},d.Statement=l,d.EmptyStatement=p,d.ExpressionStatement=d.ParenthesizedExpression=function(e,t,n){return n(e.expression,t,"Expression")},d.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},d.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},d.BreakStatement=d.ContinueStatement=p,d.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},d.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0;r<e.cases.length;++r){var i=e.cases[r];i.test&&n(i.test,t,"Expression");for(var o=0;o<i.consequent.length;++o)n(i.consequent[o],t,"Statement")}},d.ReturnStatement=d.YieldExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},d.ThrowStatement=d.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},d.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&n(e.handler,t),e.finalizer&&n(e.finalizer,t,"Statement")},d.CatchClause=function(e,t,n){n(e.param,t,"Pattern"),n(e.body,t,"ScopeBody")},d.WhileStatement=d.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},d.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},d.ForInStatement=d.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},d.ForInit=function(e,t,n){"VariableDeclaration"==e.type?n(e,t):n(e,t,"Expression")},d.DebuggerStatement=p,d.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},d.VariableDeclaration=function(e,t,n){for(var r=0;r<e.declarations.length;++r)n(e.declarations[r],t)},d.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},d.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0;r<e.params.length;r++)n(e.params[r],t,"Pattern");n(e.body,t,e.expression?"ScopeExpression":"ScopeBody")},d.ScopeBody=function(e,t,n){return n(e,t,"Statement")},d.ScopeExpression=function(e,t,n){return n(e,t,"Expression")},d.Pattern=function(e,t,n){"Identifier"==e.type?n(e,t,"VariablePattern"):"MemberExpression"==e.type?n(e,t,"MemberPattern"):n(e,t)},d.VariablePattern=p,d.MemberPattern=l,d.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},d.ArrayPattern=function(e,t,n){for(var r=0;r<e.elements.length;++r){var i=e.elements[r];i&&n(i,t,"Pattern")}},d.ObjectPattern=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r].value,t,"Pattern")},d.Expression=l,d.ThisExpression=d.Super=d.MetaProperty=p,d.ArrayExpression=function(e,t,n){for(var r=0;r<e.elements.length;++r){var i=e.elements[r];i&&n(i,t,"Expression")}},d.ObjectExpression=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r],t)},d.FunctionExpression=d.ArrowFunctionExpression=d.FunctionDeclaration,d.SequenceExpression=d.TemplateLiteral=function(e,t,n){for(var r=0;r<e.expressions.length;++r)n(e.expressions[r],t,"Expression")},d.UnaryExpression=d.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},d.BinaryExpression=d.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},d.AssignmentExpression=d.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},d.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},d.NewExpression=d.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0;r<e.arguments.length;++r)n(e.arguments[r],t,"Expression")},d.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},d.ExportNamedDeclaration=d.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"==e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},d.ExportAllDeclaration=function(e,t,n){n(e.source,t,"Expression")},d.ImportDeclaration=function(e,t,n){for(var r=0;r<e.specifiers.length;r++)n(e.specifiers[r],t);n(e.source,t,"Expression")},d.ImportSpecifier=d.ImportDefaultSpecifier=d.ImportNamespaceSpecifier=d.Identifier=d.Literal=p,d.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t)},d.ClassDeclaration=d.ClassExpression=function(e,t,n){return n(e,t,"Class")},d.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression");for(var r=0;r<e.body.body.length;r++)n(e.body.body[r],t)},d.MethodDefinition=d.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")},e.simple=t,e.ancestor=n,e.recursive=r,e.findNodeAt=o,e.findNodeAround=s,e.findNodeAfter=a,e.findNodeBefore=u,e.make=c,e.base=d,Object.defineProperty(e,"__esModule",{value:!0})})},{}],90:[function(e,t,n){"use strict";function r(e,t){t=o({},s,t);try{var n=new i.Parser(t,e,0);t.strict&&(n.strict=!0),t.lineComment||(n.skipLineComment=function(e){this.raise(this.pos,"Line comments not allowed in an expression")}),n.nextToken(),n.parseExpression(),n.type!==i.tokTypes.eof&&n.unexpected()}catch(e){if(!t.throw)return!1;throw e}return!0}var i=e("acorn"),o=e("object-assign");t.exports=r;var s={throw:!1,strict:!1,lineComment:!1}},{acorn:88,"object-assign":107}],91:[function(e,t,n){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function c(e){return void 0===e}function l(e){return"[object RegExp]"===g(e)}function p(e){return"object"==typeof e&&null!==e}function f(e){return"[object Date]"===g(e)}function h(e){return"[object Error]"===g(e)||e instanceof Error}function d(e){return"function"==typeof e}function m(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function g(e){return Object.prototype.toString.call(e)}n.isArray=t,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=o,n.isNumber=s,n.isString=a,n.isSymbol=u,n.isUndefined=c,n.isRegExp=l,n.isObject=p,n.isDate=f,n.isError=h,n.isFunction=d,n.isPrimitive=m,n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":100}],92:[function(e,t,n){"use strict";t.exports={html:"<!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">',plist:'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'}},{}],93:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),c=n.slice(),r=c.length,u=0;u<r;u++)c[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],94:[function(e,t,n){var r=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),s=function(){if(this instanceof n){var i=t.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,o.concat(r.call(arguments)))},a=Math.max(0,t.length-o.length),u=[],c=0;c<a;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var l=function(){};l.prototype=t.prototype,n.prototype=new l,l.prototype=null}return n}},{}],95:[function(e,t,n){var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":94}],96:[function(e,t,n){var r=e("function-bind");t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":95}],97:[function(e,t,n){var r=e("http"),i=t.exports;for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",r.request.call(this,e,t)}},{http:170}],98:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+p],p+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=c}return(h?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+p>=1?f/u:f*Math.pow(2,1-p),t*u>=2&&(s++,u/=2),s+p>=l?(a=0,s=l):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+h]=255&s,h+=d,s/=256,c-=8);e[n+h-d]|=128*m}},{}],99:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],100:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||i(e)||!!e._isBuffer)}},{}],101:[function(e,t,n){arguments[4][90][0].apply(n,arguments)},{acorn:2,dup:90,"object-assign":107}],102:[function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}t.exports=r},{}],103:[function(e,t,n){"use strict";var r=e("has"),i=RegExp.prototype.exec,o=Object.getOwnPropertyDescriptor,s=function(e){try{var t=e.lastIndex;return e.lastIndex=0,i.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u)return"[object RegExp]"===a.call(e);var t=o(e,"lastIndex");return!(!t||!r(t,"value"))&&s(e)}},{has:96}],104:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],105:[function(e,t,n){"use strict";function r(e){return e instanceof Date?"new Date("+r(e.toISOString())+")":void 0===e?"undefined":JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/\//g,"\\u002F")}t.exports=r},{}],106:[function(e,t,n){"use strict";function r(e){if("function"==typeof e)return{fn:e,dependencies:[]};if(e&&"object"==typeof e&&"function"==typeof e.fn){if("dependencies"in e){if(!Array.isArray(e.dependencies))throw new Error("Result should have a dependencies property that is an array")}else e.dependencies=[];return e}throw new Error("Invalid result object from transform.")}function i(e,t){return l.resolve(e).then(function(e){return e&&p(e.fn)?e.fn.then(function(t){return e.fn=t,e}):e}).then(f.normalizeFn).nodeify(t)}function o(e){if("string"==typeof e)return{body:e,dependencies:[]};if(e&&"object"==typeof e&&"string"==typeof e.body){if("dependencies"in e){if(!Array.isArray(e.dependencies))throw new Error("Result should have a dependencies property that is an array")}else e.dependencies=[];return e}throw new Error("Invalid result object from transform.")}function s(e,t){return l.resolve(e).then(function(e){return e&&p(e.body)?e.body.then(function(t){return e.body=t,e}):e}).then(f.normalize).nodeify(t)}function a(e){c(e,"Transformer must be an object"),c("string"==typeof e.name,"Transformer must have a name"),c("string"==typeof e.outputFormat,"Transformer must have an output format"),c(["compile","compileAsync","compileFile","compileFileAsync","compileClient","compileClientAsync","compileFileClient","compileFileClientAsync","render","renderAsync","renderFile","renderFileAsync"].some(function(t){return"function"==typeof e[t]}),"Transformer must implement at least one of the potential methods."),this._tr=e,this.name=this._tr.name,this.outputFormat=this._tr.outputFormat,this.inputFormats=this._tr.inputFormats||[this.name]}var u=e("fs"),c=e("assert"),l=e("promise"),p=e("is-promise"),f=t.exports=function(e){return new a(e)};f.Transformer=a,f.normalizeFn=r,f.normalizeFnAsync=i,f.normalize=o,f.normalizeAsync=s,u.readFile?(f.readFile=l.denodeify(u.readFile),f.readFileSync=u.readFileSync):(f.readFile=function(){throw new Error("fs.readFile unsupported")},f.readFileSync=function(){throw new Error("fs.readFileSync unsupported")});var h={compile:["compile","render"],compileAsync:["compileAsync","compile","render"],compileFile:["compileFile","compile","renderFile","render"],compileFileAsync:["compileFileAsync","compileFile","compileAsync","compile","renderFile","render"],compileClient:["compileClient"],compileClientAsync:["compileClientAsync","compileClient"],compileFileClient:["compileFileClient","compileClient"],compileFileClientAsync:["compileFileClientAsync","compileFileClient","compileClientAsync","compileClient"],render:["render","compile"],renderAsync:["renderAsync","render","compileAsync","compile"],renderFile:["renderFile","render","compileFile","compile"],renderFileAsync:["renderFileAsync","renderFile","renderAsync","render","compileFileAsync","compileFile","compileAsync","compile"]};a.prototype._hasMethod=function(e){return"function"==typeof this._tr[e]},a.prototype.can=function(e){return h[e].some(function(e){return this._hasMethod(e)}.bind(this))},a.prototype.compile=function(e,t){if(!this._hasMethod("compile")){if(this.can("render")){var n=this;return{fn:function(r){return f.normalize(n._tr.render(e,t,r)).body},dependencies:[]}}throw this.can("compileAsync")?new Error('The Transform "'+this.name+'" does not support synchronous compilation'):this.can("compileFileAsync")?new Error('The Transform "'+this.name+'" does not support compiling plain strings'):new Error('The Transform "'+this.name+'" does not support compilation')}return f.normalizeFn(this._tr.compile(e,t))},a.prototype.compileAsync=function(e,t,n){return this.can("compileAsync")?this._hasMethod("compileAsync")?f.normalizeFnAsync(this._tr.compileAsync(e,t),n):f.normalizeFnAsync(this.compile(e,t),n):l.reject(new Error('The Transform "'+this.name+'" does not support compiling plain strings')).nodeify(n)},a.prototype.compileFile=function(e,t){if(!this.can("compileFile"))throw new Error('The Transform "'+this.name+'" does not support synchronous compilation');return this._hasMethod("compileFile")?f.normalizeFn(this._tr.compileFile(e,t)):this._hasMethod("renderFile")?f.normalizeFn(function(n){return f.normalize(this._tr.renderFile(e,t,n)).body}.bind(this)):(t||(t={}),void 0===t.filename&&(t.filename=e),this.compile(f.readFileSync(e,"utf8"),t))},a.prototype.compileFileAsync=function(e,t,n){return this.can("compileFileAsync")?this._hasMethod("compileFileAsync")?f.normalizeFnAsync(this._tr.compileFileAsync(e,t),n):this._hasMethod("compileFile")||this._hasMethod("renderFile")?f.normalizeFnAsync(this.compileFile(e,t),n):(t||(t={}),void 0===t.filename&&(t.filename=e),f.normalizeFnAsync(f.readFile(e,"utf8").then(function(e){return this._hasMethod("compileAsync")?this._tr.compileAsync(e,t):this.compile(e,t)}.bind(this)),n)):l.reject(new Error('The Transform "'+this.name+'" does not support compilation'))},a.prototype.compileClient=function(e,t){if(!this.can("compileClient"))throw this.can("compileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client synchronously.'):this.can("compileFileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client from a string.'):new Error('The Transform "'+this.name+'" does not support compiling for the client');return f.normalize(this._tr.compileClient(e,t))},a.prototype.compileClientAsync=function(e,t,n){return this.can("compileClientAsync")?this._hasMethod("compileClientAsync")?f.normalizeAsync(this._tr.compileClientAsync(e,t),n):f.normalizeAsync(this._tr.compileClient(e,t),n):this.can("compileFileClientAsync")?l.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client from a string.')).nodeify(n):l.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client')).nodeify(n)},a.prototype.compileFileClient=function(e,t){if(!this.can("compileFileClient"))throw this.can("compileFileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client synchronously.'):new Error('The Transform "'+this.name+'" does not support compiling for the client');return this._hasMethod("compileFileClient")?f.normalize(this._tr.compileFileClient(e,t)):(t||(t={}),void 0===t.filename&&(t.filename=e),f.normalize(this._tr.compileClient(f.readFileSync(e,"utf8"),t)))},a.prototype.compileFileClientAsync=function(e,t,n){return this.can("compileFileClientAsync")?this._hasMethod("compileFileClientAsync")?f.normalizeAsync(this._tr.compileFileClientAsync(e,t),n):this._hasMethod("compileFileClient")?f.normalizeAsync(this._tr.compileFileClient(e,t),n):(t||(t={}),void 0===t.filename&&(t.filename=e),f.normalizeAsync(f.readFile(e,"utf8").then(function(e){return this._hasMethod("compileClientAsync")?this._tr.compileClientAsync(e,t):this._tr.compileClient(e,t)}.bind(this)),n)):l.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client')).nodeify(n)},a.prototype.render=function(e,t,n){if(!this.can("render"))throw this.can("renderAsync")?new Error('The Transform "'+this.name+'" does not support rendering synchronously.'):this.can("renderFileAsync")?new Error('The Transform "'+this.name+'" does not support rendering from a string.'):new Error('The Transform "'+this.name+'" does not support rendering');if(this._hasMethod("render"))return f.normalize(this._tr.render(e,t,n));var r=f.normalizeFn(this._tr.compile(e,t)),i=r.fn(n||t);if("string"!=typeof i)throw new Error('The Transform "'+this.name+'" does not support rendering synchronously.');return f.normalize({body:i,dependencies:r.dependencies})},a.prototype.renderAsync=function(e,t,n,r){return"function"==typeof n&&(r=n,n=t),this.can("renderAsync")?this._hasMethod("renderAsync")?f.normalizeAsync(this._tr.renderAsync(e,t,n),r):this._hasMethod("render")?f.normalizeAsync(this._tr.render(e,t,n),r):f.normalizeAsync(this.compileAsync(e,t).then(function(e){return{body:e.fn(n||t),dependencies:e.dependencies}}),r):this.can("renderFileAsync")?l.reject(new Error('The Transform "'+this.name+'" does not support rendering from a string.')).nodeify(r):l.reject(new Error('The Transform "'+this.name+'" does not support rendering')).nodeify(r)},a.prototype.renderFile=function(e,t,n){if(!this.can("renderFile"))throw new Error('The Transform "'+this.name+'" does not support rendering synchronously.');if(this._hasMethod("renderFile"))return f.normalize(this._tr.renderFile(e,t,n));if(this._hasMethod("render"))return t||(t={}),void 0===t.filename&&(t.filename=e),f.normalize(this._tr.render(f.readFileSync(e,"utf8"),t,n));var r=this.compileFile(e,t);return f.normalize({body:r.fn(n||t),dependencies:r.dependencies})},a.prototype.renderFileAsync=function(e,t,n,r){if(!this.can("renderFileAsync"))throw new Error('The Transform "'+this.name+'" does not support rendering.');return"function"==typeof n&&(r=n,n=t),this._hasMethod("renderFileAsync")?f.normalizeAsync(this._tr.renderFileAsync(e,t,n),r):this._hasMethod("renderFile")?f.normalizeAsync(this._tr.renderFile(e,t,n),r):this._hasMethod("compile")||this._hasMethod("compileAsync")||this._hasMethod("compileFile")||this._hasMethod("compileFileAsync")?f.normalizeAsync(this.compileFileAsync(e,t).then(function(e){return{body:e.fn(n||t),dependencies:e.dependencies}}),r):(t||(t={}),void 0===t.filename&&(t.filename=e),f.normalizeAsync(f.readFile(e,"utf8").then(function(e){return this.renderAsync(e,t,n)}.bind(this)),r))}},{assert:7,fs:10,"is-promise":102,promise:113}],107:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)o.call(n,l)&&(u[l]=n[l]);if(i){a=i(n);for(var p=0;p<a.length;p++)s.call(n,a[p])&&(u[a[p]]=n[a[p]])}}return u}},{}],108:[function(e,t,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},
|
||
n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n"},{}],109:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}for(var c=[],u=a;u<i.length;u++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:112}],110:[function(e,t,n){(function(e){"use strict";function n(e){var t=o.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=s.exec(r);return[n,i[1],i[2],i[3]]}function r(e){return u.exec(e).slice(1)}var i="win32"===e.platform,o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,s=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,a={};a.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=n(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}};var u=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c={};c.parse=function(e){if("string"!=typeof e)throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=r(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},t.exports=i?a.parse:c.parse,t.exports.posix=c.parse,t.exports.win32=a.parse}).call(this,e("_process"))},{_process:112}],111:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(this,e("_process"))},{_process:112}],112:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(p===setTimeout)return setTimeout(e,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(e,0);try{return p(e,0)}catch(t){try{return p.call(null,e,0)}catch(t){return p.call(this,e,0)}}}function s(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?m=d.concat(m):v=-1,m.length&&u())}function u(){if(!g){var e=o(a);g=!0;for(var t=m.length;t;){for(d=m,m=[];++v<t;)d&&d[v].run();v=-1,t=m.length}d=null,g=!1,s(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var p,f,h=t.exports={};!function(){try{p="function"==typeof setTimeout?setTimeout:r}catch(e){p=r}try{f="function"==typeof clearTimeout?clearTimeout:i}catch(e){f=i}}();var d,m=[],g=!1,v=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new c(e,t)),1!==m.length||g||o(u)},c.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=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],113:[function(e,t,n){"use strict";t.exports=e("./lib")},{"./lib":118}],114:[function(e,t,n){"use strict";function r(){}function i(e){try{return e.then}catch(e){return v=e,y}}function o(e,t){try{return e(t)}catch(e){return v=e,y}}function s(e,t,n){try{e(t,n)}catch(e){return v=e,y}}function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==r&&m(e,this)}function u(e,t,n){return new e.constructor(function(i,o){var s=new a(r);s.then(i,o),c(e,new d(t,n,s))})}function c(e,t){for(;3===e._81;)e=e._65;if(a._10&&a._10(e),0===e._81)return 0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t);l(e,t)}function l(e,t){g(function(){var n=1===e._81?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._81?p(t.promise,e._65):f(t.promise,e._65));var r=o(n,e._65);r===y?f(t.promise,v):p(t.promise,r)})}function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=i(t);if(n===y)return f(e,v);if(n===e.then&&t instanceof a)return e._81=3,e._65=t,void h(e);if("function"==typeof n)return void m(n.bind(t),e)}e._81=1,e._65=t,h(e)}function f(e,t){e._81=2,e._65=t,a._97&&a._97(e,t),h(e)}function h(e){if(1===e._45&&(c(e,e._54),e._54=null),2===e._45){for(var t=0;t<e._54.length;t++)c(e,e._54[t]);e._54=null}}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function m(e,t){var n=!1,r=s(e,function(e){n||(n=!0,p(t,e))},function(e){n||(n=!0,f(t,e))});n||r!==y||(n=!0,f(t,v))}var g=e("asap/raw"),v=null,y={};t.exports=a,a._10=null,a._97=null,a._61=r,a.prototype.then=function(e,t){if(this.constructor!==a)return u(this,e,t);var n=new a(r);return c(this,new d(e,t,n)),n}},{"asap/raw":6}],115:[function(e,t,n){"use strict";var r=e("./core.js");t.exports=r,r.prototype.done=function(e,t){(arguments.length?this.then.apply(this,arguments):this).then(null,function(e){setTimeout(function(){throw e},0)})}},{"./core.js":114}],116:[function(e,t,n){"use strict";function r(e){var t=new i(i._61);return t._81=1,t._65=e,t}var i=e("./core.js");t.exports=i;var o=r(!0),s=r(!1),a=r(null),u=r(void 0),c=r(0),l=r("");i.resolve=function(e){if(e instanceof i)return e;if(null===e)return a;if(void 0===e)return u;if(e===!0)return o;if(e===!1)return s;if(0===e)return c;if(""===e)return l;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new i(t.bind(e))}catch(e){return new i(function(t,n){n(e)})}return r(e)},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){function r(s,a){if(a&&("object"==typeof a||"function"==typeof a)){if(a instanceof i&&a.then===i.prototype.then){for(;3===a._81;)a=a._65;return 1===a._81?r(s,a._65):(2===a._81&&n(a._65),void a.then(function(e){r(s,e)},n))}var u=a.then;if("function"==typeof u){return void new i(u.bind(a)).then(function(e){r(s,e)},n)}}t[s]=a,0==--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,s=0;s<t.length;s++)r(s,t[s])})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){e.forEach(function(e){i.resolve(e).then(t,n)})})},i.prototype.catch=function(e){return this.then(null,e)}},{"./core.js":114}],117:[function(e,t,n){"use strict";var r=e("./core.js");t.exports=r,r.prototype.finally=function(e){return this.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})})}},{"./core.js":114}],118:[function(e,t,n){"use strict";t.exports=e("./core.js"),e("./done.js"),e("./finally.js"),e("./es6-extensions.js"),e("./node-extensions.js"),e("./synchronous.js")},{"./core.js":114,"./done.js":115,"./es6-extensions.js":116,"./finally.js":117,"./node-extensions.js":119,"./synchronous.js":120}],119:[function(e,t,n){"use strict";function r(e,t){for(var n=[],r=0;r<t;r++)n.push("a"+r);var i=["return function ("+n.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(n).concat([a]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],i)(o,e)}function i(e){for(var t=Math.max(e.length-1,3),n=[],r=0;r<t;r++)n.push("a"+r);var i=["return function ("+n.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+t+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+a+";","var res;","switch (argLength) {",n.concat(["extra"]).map(function(e,t){return"case "+t+":res = fn.call("+["self"].concat(n.slice(0,t)).concat("cb").join(",")+");break;"}).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],i)(o,e)}var o=e("./core.js"),s=e("asap");t.exports=o,o.denodeify=function(e,t){return"number"==typeof t&&t!==1/0?r(e,t):i(e)};var a="function (err, res) {if (err) { rj(err); } else { rs(res); }}";o.nodeify=function(e){return function(){var t=Array.prototype.slice.call(arguments),n="function"==typeof t[t.length-1]?t.pop():null,r=this;try{return e.apply(this,arguments).nodeify(n,r)}catch(e){if(null===n||void 0===n)return new o(function(t,n){n(e)});s(function(){n.call(r,e)})}}},o.prototype.nodeify=function(e,t){if("function"!=typeof e)return this;this.then(function(n){s(function(){e.call(t,null,n)})},function(n){s(function(){e.call(t,n)})})}},{"./core.js":114,asap:5}],120:[function(e,t,n){"use strict";var r=e("./core.js");t.exports=r,r.enableSynchronous=function(){r.prototype.isPending=function(){return 0==this.getState()},r.prototype.isFulfilled=function(){return 1==this.getState()},r.prototype.isRejected=function(){return 2==this.getState()},r.prototype.getValue=function(){if(3===this._81)return this._65.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._65},r.prototype.getReason=function(){if(3===this._81)return this._65.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._65},r.prototype.getState=function(){return 3===this._81?this._65.getState():this._81===-1||this._81===-2?0:this._81}},r.disableSynchronous=function(){r.prototype.isPending=void 0,r.prototype.isFulfilled=void 0,r.prototype.isRejected=void 0,r.prototype.getValue=void 0,r.prototype.getReason=void 0,r.prototype.getState=void 0}},{"./core.js":114}],121:[function(e,t,n){"use strict";function r(e){return a(e,{pug:u,pug_interp:void 0})}function i(e){return a.toConstant(e,{pug:u,pug_interp:void 0})}function o(e,t){function n(e,n,o,s){if(r(n))if("html"===t.format){var a=c(u.attr(e,i(n),o,t.terse)),l=s[s.length-1];l&&l[l.length-1]===a[0]?s[s.length-1]=l.substr(0,l.length-1)+a.substr(1):s.push(a)}else n=i(n),o&&(n=u.escape(n)),s.push(c(e)+": "+c(n));else"html"===t.format?s.push(t.runtime("attr")+'("'+e+'", '+n+", "+c(o)+", "+c(t.terse)+")"):(o&&(n=t.runtime("escape")+"("+n+")"),s.push(c(e)+": "+n))}s(Array.isArray(e),"Attrs should be an array"),s(e.every(function(e){return e&&"object"==typeof e&&"string"==typeof e.name&&("string"==typeof e.val||"boolean"==typeof e.val)&&"boolean"==typeof e.mustEscape}),"All attributes should be supplied as an object of the form {name, val, mustEscape}"),s(t&&"object"==typeof t,"Options should be an object"),s("boolean"==typeof t.terse,"Options.terse should be a boolean"),s("function"==typeof t.runtime,"Options.runtime should be a function that takes a runtime function name and returns the source code that will evaluate to that function at runtime"),s("html"===t.format||"object"===t.format,'Options.format should be "html" or "object"');var o=[],a=[],l=[];e.forEach(function(e){var s=e.name,p=e.val,f=e.mustEscape;"class"===s?(a.push(p),l.push(f)):("style"===s&&(p=r(p)?c(u.style(i(p))):t.runtime("style")+"("+p+")"),n(s,p,f,o))});var p=[];return a.length&&(a.every(r)?n("class",c(u.classes(a.map(i),l)),!1,p):(a=a.map(function(e,t){return r(e)&&(e=c(l[t]?u.escape(i(e)):i(e)),l[t]=!1),e}),n("class",t.runtime("classes")+"(["+a.join(",")+"], "+c(l)+")",!1,p))),o=p.concat(o),"html"===t.format?o.length?o.join("+"):'""':"{"+o.join(",")+"}"}var s=e("assert"),a=e("constantinople"),u=e("pug-runtime"),c=e("js-stringify");t.exports=o},{assert:7,constantinople:87,"js-stringify":105,"pug-runtime":133}],122:[function(e,t,n){"use strict";function r(e,t){return new s(e,t).compile()}function i(e){return d(e,{pug:p,pug_interp:void 0})}function o(e){return d.toConstant(e,{pug:p,pug_interp:void 0})}function s(e,t){this.options=t=t||{},this.node=e,this.bufferedConcatenationCount=0,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=t.pretty||!1,this.pp&&"string"!=typeof this.pp&&(this.pp=" "),this.debug=!1!==t.compileDebug,this.indents=0,this.parentIndents=0,this.terse=!1,this.mixins={},this.dynamicMixins=!1,this.eachCount=0,t.doctype&&this.setDoctype(t.doctype),this.runtimeFunctionsUsed=[],this.inlineRuntimeFunctions=t.inlineRuntimeFunctions||!1,this.debug&&this.inlineRuntimeFunctions&&this.runtimeFunctionsUsed.push("rethrow")}function a(e){function t(e){return"Block"===e.type?e.nodes.every(t):"YieldBlock"===e.type||("Text"===e.type&&!/\n/.test(e.val)||e.isInline)}return e.block.nodes.every(t)}var u=e("doctypes"),c=e("pug-error"),l=e("pug-runtime/build"),p=e("pug-runtime"),f=e("pug-attrs"),h=e("void-elements"),d=e("constantinople"),m=e("js-stringify"),g=e("with"),v={pre:!0,textarea:!0},y=["pug","pug_mixins","pug_interp","pug_debug_filename","pug_debug_line","pug_debug_sources","pug_html"];t.exports=r,t.exports.CodeGenerator=s,s.prototype={runtime:function(e){return this.inlineRuntimeFunctions?(this.runtimeFunctionsUsed.push(e),"pug_"+e):"pug."+e},error:function(e,t,n){throw c(t,e,{line:n.line,filename:n.filename})},compile:function(){if(this.buf=[],this.pp&&this.buf.push("var pug_indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),!this.dynamicMixins)for(var e=Object.keys(this.mixins),t=0;t<e.length;t++){var n=this.mixins[e[t]];if(!n.used)for(var r=0;r<n.instances.length;r++)for(var i=n.instances[r].start;i<n.instances[r].end;i++)this.buf[i]=""}var o=this.buf.join("\n"),s=this.options.globals?this.options.globals.concat(y):y;return o=this.options.self?"var self = locals || {};"+o:g("locals || {}",o,s.concat(this.runtimeFunctionsUsed.map(function(e){return"pug_"+e}))),this.debug&&(this.options.includeSources&&(o="var pug_debug_sources = "+m(this.options.includeSources)+";\n"+o),o="var pug_debug_filename, pug_debug_line;try {"+o+"} catch (err) {"+(this.inlineRuntimeFunctions?"pug_rethrow":"pug.rethrow")+"(err, pug_debug_filename, pug_debug_line"+(this.options.includeSources?", pug_debug_sources[pug_debug_filename]":"")+");}"),l(this.runtimeFunctionsUsed)+"function "+(this.options.templateName||"template")+'(locals) {var pug_html = "", pug_mixins = {}, pug_interp;'+o+";return pug_html;}"},setDoctype:function(e){this.doctype=u[e.toLowerCase()]||"<!DOCTYPE "+e+">",this.terse="<!doctype html>"==this.doctype.toLowerCase(),this.xml=0==this.doctype.indexOf("<?xml")},buffer:function(e){e=m(e),e=e.substr(1,e.length-2),this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?("code"===this.lastBufferedType&&(this.lastBuffered+=' + "',this.bufferedConcatenationCount++),this.lastBufferedType="text",this.lastBuffered+=e,this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + "+this.bufferStartChar+this.lastBuffered+'";'):(this.bufferedConcatenationCount=0,this.buf.push('pug_html = pug_html + "'+e+'";'),this.lastBufferedType="text",this.bufferStartChar='"',this.lastBuffered=e,this.lastBufferedIdx=this.buf.length)},bufferExpression:function(e){if(i(e))return this.buffer(o(e)+"");this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?(this.bufferedConcatenationCount++,"text"===this.lastBufferedType&&(this.lastBuffered+='"'),this.lastBufferedType="code",this.lastBuffered+=" + ("+e+")",this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + ("+this.bufferStartChar+this.lastBuffered+");"):(this.bufferedConcatenationCount=0,this.buf.push("pug_html = pug_html + ("+e+");"),this.lastBufferedType="code",this.bufferStartChar="",this.lastBuffered="("+e+")",this.lastBufferedIdx=this.buf.length)},prettyIndent:function(e,t){e=e||0,t=t?"\n":"",this.buffer(t+Array(this.indents+e).join(this.pp)),this.parentIndents&&this.buf.push('pug_html = pug_html + pug_indent.join("");')},visit:function(e,t){var n=this.debug;if(!e){var r;throw r=t?"A child of "+t.type+" ("+(t.filename||"Pug")+":"+t.line+")":"A top-level node",r+=" is "+e+", expected a Pug AST Node.",new TypeError(r)}if(n&&e.debug!==!1&&"Block"!==e.type&&e.line){var i=";pug_debug_line = "+e.line;e.filename&&(i+=";pug_debug_filename = "+m(e.filename)),this.buf.push(i+";")}if(!this["visit"+e.type]){var r;switch(r=t?"A child of "+t.type:"A top-level node",r+=" ("+(e.filename||"Pug")+":"+e.line+") is of type "+e.type+", which is not supported by pug-code-gen.",e.type){case"Filter":r+=" Please use pug-filters to preprocess this AST.";break;case"Extends":case"Include":case"NamedBlock":case"FileReference":r+=" Please use pug-linker to preprocess this AST."}throw new TypeError(r)}this.visitNode(e)},visitNode:function(e){return this["visit"+e.type](e)},visitCase:function(e){this.buf.push("switch ("+e.expr+"){"),this.visit(e.block,e),this.buf.push("}")},visitWhen:function(e){"default"==e.expr?this.buf.push("default:"):this.buf.push("case "+e.expr+":"),e.block&&(this.visit(e.block,e),this.buf.push(" break;"))},visitLiteral:function(e){this.buffer(e.str)},visitNamedBlock:function(e){return this.visitBlock(e)},visitBlock:function(e){var t=this.escapePrettyMode,n=this.pp;n&&e.nodes.length>1&&!t&&"Text"===e.nodes[0].type&&"Text"===e.nodes[1].type&&this.prettyIndent(1,!0);for(var r=0;r<e.nodes.length;++r)n&&r>0&&!t&&"Text"===e.nodes[r].type&&"Text"===e.nodes[r-1].type&&/\n$/.test(e.nodes[r-1].val)&&this.prettyIndent(1,!1),this.visit(e.nodes[r],e)},visitMixinBlock:function(e){this.pp&&this.buf.push("pug_indent.push('"+Array(this.indents+1).join(this.pp)+"');"),this.buf.push("block && block();"),this.pp&&this.buf.push("pug_indent.pop();")},visitDoctype:function(e){!e||!e.val&&this.doctype||this.setDoctype(e.val||"html"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(e){var t="pug_mixins[",n=e.args||"",r=e.block,i=e.attrs,o=e.attributeBlocks&&e.attributeBlocks.slice(),s=this.pp,a="#"===e.name[0],u=e.name;if(a&&(this.dynamicMixins=!0),t+=(a?e.name.substr(2,e.name.length-3):'"'+e.name+'"')+"]",this.mixins[u]=this.mixins[u]||{used:!1,instances:[]},e.call){if(this.mixins[u].used=!0,s&&this.buf.push("pug_indent.push('"+Array(this.indents+1).join(s)+"');"),r||i.length||o.length){if(this.buf.push(t+".call({"),r){this.buf.push("block: function(){"),this.parentIndents++;var c=this.indents;this.indents=0,this.visit(e.block,e),this.indents=c,this.parentIndents--,i.length||o.length?this.buf.push("},"):this.buf.push("}")}if(o.length){if(i.length){var l=this.attrs(i);o.unshift(l)}o.length>1?this.buf.push("attributes: "+this.runtime("merge")+"(["+o.join(",")+"])"):this.buf.push("attributes: "+o[0])}else if(i.length){var l=this.attrs(i);this.buf.push("attributes: "+l)}n?this.buf.push("}, "+n+");"):this.buf.push("});")}else this.buf.push(t+"("+n+");");s&&this.buf.push("pug_indent.pop();")}else{var p=this.buf.length;n=n?n.split(","):[];var f;n.length&&/^\.\.\./.test(n[n.length-1].trim())&&(f=n.pop().trim().replace(/^\.\.\./,"")),this.buf.push(t+" = pug_interp = function("+n.join(",")+"){"),this.buf.push("var block = (this && this.block), attributes = (this && this.attributes) || {};"),f&&(this.buf.push("var "+f+" = [];"),this.buf.push("for (pug_interp = "+n.length+"; pug_interp < arguments.length; pug_interp++) {"),this.buf.push(" "+f+".push(arguments[pug_interp]);"),this.buf.push("}")),this.parentIndents++,this.visit(r,e),this.parentIndents--,this.buf.push("};");var h=this.buf.length;this.mixins[u].instances.push({start:p,end:h})}},visitTag:function(e,t){function n(){t?o.bufferExpression(e.expr):o.buffer(r)}this.indents++;var r=e.name,i=this.pp,o=this;v[e.name]===!0&&(this.escapePrettyMode=!0),this.hasCompiledTag||(this.hasCompiledDoctype||"html"!=r||this.visitDoctype(),this.hasCompiledTag=!0),i&&!e.isInline&&this.prettyIndent(0,!0),e.selfClosing||!this.xml&&h[e.name]?(this.buffer("<"),n(),this.visitAttributes(e.attrs,e.attributeBlocks.slice()),this.terse&&!e.selfClosing?this.buffer(">"):this.buffer("/>"),(e.code||e.block&&("Block"!==e.block.type||0!==e.block.nodes.length)&&e.block.nodes.some(function(e){return"Text"!==e.type||!/^\s*$/.test(e.val)}))&&this.error(r+" is a self closing element: <"+r+"/> but contains nested content.","SELF_CLOSING_CONTENT",e)):(this.buffer("<"),n(),this.visitAttributes(e.attrs,e.attributeBlocks.slice()),this.buffer(">"),e.code&&this.visitCode(e.code),this.visit(e.block,e),!i||e.isInline||v[e.name]===!0||a(e)||this.prettyIndent(0,!0),this.buffer("</"),n(),this.buffer(">")),v[e.name]===!0&&(this.escapePrettyMode=!1),this.indents--},visitInterpolatedTag:function(e){return this.visitTag(e,!0)},visitText:function(e){this.buffer(e.val)},visitComment:function(e){e.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+e.val+"-->"))},visitYieldBlock:function(e){},visitBlockComment:function(e){e.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+(e.val||"")),this.visit(e.block,e),this.pp&&this.prettyIndent(1,!0),this.buffer("-->"))},visitCode:function(e){if(e.buffer){var t=e.val.trim();t="null == (pug_interp = "+t+') ? "" : pug_interp',e.mustEscape!==!1&&(t=this.runtime("escape")+"("+t+")"),this.bufferExpression(t)}else this.buf.push(e.val);e.block&&(e.buffer||this.buf.push("{"),this.visit(e.block,e),e.buffer||this.buf.push("}"))},visitConditional:function(e){var t=e.test;this.buf.push("if ("+t+") {"),this.visit(e.consequent,e),this.buf.push("}"),e.alternate&&("Conditional"===e.alternate.type?(this.buf.push("else"),this.visitConditional(e.alternate)):(this.buf.push("else {"),this.visit(e.alternate,e),this.buf.push("}")))},visitWhile:function(e){var t=e.test;this.buf.push("while ("+t+") {"),this.visit(e.block,e),this.buf.push("}")},visitEach:function(e){var t=e.key||"pug_index"+this.eachCount;this.eachCount++,this.buf.push("// iterate "+e.obj+"\n;(function(){\n var $$obj = "+e.obj+";\n if ('number' == typeof $$obj.length) {"),e.alternate&&this.buf.push(" if ($$obj.length) {"),this.buf.push(" for (var "+t+" = 0, $$l = $$obj.length; "+t+" < $$l; "+t+"++) {\n var "+e.val+" = $$obj["+t+"];"),this.visit(e.block,e),this.buf.push(" }"),e.alternate&&(this.buf.push(" } else {"),this.visit(e.alternate,e),this.buf.push(" }")),this.buf.push(" } else {\n var $$l = 0;\n for (var "+t+" in $$obj) {\n $$l++;\n var "+e.val+" = $$obj["+t+"];"),this.visit(e.block,e),this.buf.push(" }"),e.alternate&&(this.buf.push(" if ($$l === 0) {"),this.visit(e.alternate,e),this.buf.push(" }")),this.buf.push(" }\n}).call(this);\n")},visitAttributes:function(e,t){if(t.length){if(e.length){var n=this.attrs(e);t.unshift(n)}t.length>1?this.bufferExpression(this.runtime("attrs")+"("+this.runtime("merge")+"(["+t.join(",")+"]), "+m(this.terse)+")"):this.bufferExpression(this.runtime("attrs")+"("+t[0]+", "+m(this.terse)+")")}else e.length&&this.attrs(e,!0)},attrs:function(e,t){var n=f(e,{terse:this.terse,format:t?"html":"object",runtime:this.runtime.bind(this)});return t&&this.bufferExpression(n),n}}},{constantinople:87,doctypes:92,"js-stringify":105,"pug-attrs":121,"pug-error":123,"pug-runtime":133,"pug-runtime/build":132,"void-elements":184,with:185}],123:[function(e,t,n){"use strict";function r(e,t,n){var r,i=n.line,o=n.column,s=n.filename,a=n.src,u=i+(o?":"+o:"");if(a&&i>=1&&i<=a.split("\n").length){var c=a.split("\n"),l=Math.max(i-3,0),p=Math.min(c.length,i+3),f=c.slice(l,p).map(function(e,t){var n=t+l+1,r=(n==i?" > ":" ")+n+"| ",s=r+e;return n===i&&o>0&&(s+="\n",s+=Array(r.length+o).join("-")+"^"),s}).join("\n");r=(s||"Pug")+":"+u+"\n"+f+"\n\n"+t}else r=(s||"Pug")+":"+u+"\n\n"+t;var h=new Error(r);return h.code="PUG:"+e,h.msg=t,h.line=i,h.column=o,h.filename=s,h.src=a,h.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},h}t.exports=r},{}],124:[function(e,t,n){"use strict";n.runFilter=e("./lib/run-filter"),n.handleFilters=e("./lib/handle-filters")},{"./lib/handle-filters":125,"./lib/run-filter":126}],125:[function(e,t,n){"use strict";function r(e,t,n,r){function u(e){var t=e.name;if(r&&r[t]&&(t=r[t],r[t]))throw l("FILTER_ALISE_CHAIN",'The filter "'+e.name+'" is an alias for "'+t+'", which is an alias for "'+r[t]+'". Pug does not support chains of filter aliases.',e);return t}return n=n||{},c(e,function(e){function c(e,n,r,i){try{var o=u(e);return t&&t[o]?t[o](n,r):p(o,n,r,f,i)}catch(t){if("UNKNOWN_FILTER"===t.code)throw l(t.code,t.message,e);throw t}}var f=e.filename?a(e.filename):null;if("Filter"===e.type){i(e,t,n,r);var h=o(e),d=s(e,n);d.filename=e.filename,e.type="Text",e.val=c(e,h,d)}else if("RawInclude"===e.type&&e.filters.length){var m=e.filters.shift(),d=s(m,n),g=d.filename=e.file.fullPath,v=e.file.str;e.type="Text",e.val=function(e,n,r,i){var o=u(e);return t&&t[o]?t[o](r,i):c(e,n,i,"renderFile")}(m,g,v,d),e.filters.forEach(function(t){var r=s(t,n);r.filename=g,e.val=c(t,e.val,r)}),e.filters=void 0,e.file=void 0}},{includeDependencies:!0}),e}function i(e,t,n,i){e.block.nodes[0]&&"Filter"===e.block.nodes[0].type&&(e.block.nodes[0]=r(e.block,t,n,i).nodes[0])}function o(e){return e.block.nodes.map(function(e){return e.val}).join("")}function s(e,t){var n={};e.attrs.forEach(function(t){try{n[t.name]=u.toConstant(t.val)}catch(t){if(/not constant/.test(t.message))throw l("FILTER_OPTION_NOT_CONSTANT",t.message+" All filters are rendered compile-time so filter options must be constants.",e);throw t}});var r=t[e.name]||{};return Object.keys(r).forEach(function(e){n.hasOwnProperty(e)||(n[e]=r[e])}),n}var a=e("path").dirname,u=e("constantinople"),c=e("pug-walk"),l=e("pug-error"),p=e("./run-filter");t.exports=r},{"./run-filter":126,constantinople:87,path:109,"pug-error":123,"pug-walk":139}],126:[function(e,t,n){(function(n){"use strict";function r(t,r,u,c,l){l=l||"render";var p;try{try{p=e(a.sync("jstransformer-"+t,{basedir:c||n.cwd()}))}catch(n){p=e("jstransformer-"+t)}p=i(p)}catch(e){}if(p){var f=p[l](r,u,u).body;if(u&&u.minify)try{switch(p.outputFormat){case"js":f=o.minify(f,{fromString:!0}).code;break;case"css":f=(new s).minify(f).styles}}catch(e){}return f}var h=new Error('unknown filter ":'+t+'"');throw h.code="UNKNOWN_FILTER",h}var i=e("jstransformer"),o=e("uglify-js"),s=e("clean-css"),a=e("resolve");t.exports=r}).call(this,e("_process"))},{_process:112,"clean-css":15,jstransformer:106,resolve:152,"uglify-js":177}],127:[function(e,t,n){"use strict";function r(e,t){var n=new i(e,t);return JSON.parse(JSON.stringify(n.getTokens()))}function i(e,t){if(t=t||{},"string"!=typeof e)throw new Error('Expected source code to be a string but got "'+typeof e+'"');if("object"!=typeof t)throw new Error('Expected "options" to be an object but got "'+typeof t+'"');e=e.replace(/^\uFEFF/,""),this.input=e.replace(/\r\n|\r/g,"\n"),this.originalInput=this.input,this.filename=t.filename,this.interpolated=t.interpolated||!1,this.lineno=t.startingLine||1,this.colno=t.startingColumn||1,this.plugins=t.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.tokens=[],this.ended=!1}var o=e("assert"),s=e("is-expression"),a=e("character-parser"),u=e("pug-error");t.exports=r,t.exports.Lexer=i,i.prototype={constructor:i,error:function(e,t){throw u(e,t,{line:this.lineno,column:this.colno,filename:this.filename,src:this.originalInput})},assert:function(e,t){e||this.error("ASSERT_FAILED",t)},isExpression:function(e){return s(e,{throw:!0})},assertExpression:function(e,t){try{return this.callLexerFunction("isExpression",e),!0}catch(e){if(t)return!1;if(!e.loc)throw e;this.incrementLine(e.loc.line-1),this.incrementColumn(e.loc.column);var n="Syntax Error: "+e.message.replace(/ \([0-9]+:[0-9]+\)$/,"");this.error("SYNTAX_ERROR",n)}},assertNestingCorrect:function(e){a(e).isNesting()&&this.error("INCORRECT_NESTING","Nesting must match on expression `"+e+"`")},tok:function(e,t){var n={type:e,line:this.lineno,col:this.colno};return void 0!==t&&(n.val=t),n},incrementLine:function(e){this.lineno+=e,e&&(this.colno=1)},incrementColumn:function(e){this.colno+=e},consume:function(e){this.input=this.input.substr(e)},scan:function(e,t){var n;if(n=e.exec(this.input)){var r=n[0].length,i=n[1],o=r-(i?i.length:0),s=this.tok(t,i);return this.consume(r),this.incrementColumn(o),s}},scanEndOfLine:function(e,t){var n;if(n=e.exec(this.input)){var r,i,o=0;(r=/^([ ]+)([^ ]*)/.exec(n[0]))&&(o=r[1].length,this.incrementColumn(o));var s=this.input.substr(n[0].length);if(":"===s[0])return this.input=s,i=this.tok(t,n[1]),this.incrementColumn(n[0].length-o),i;if(/^[ \t]*(\n|$)/.test(s))return this.input=s.substr(/^[ \t]*/.exec(s)[0].length),i=this.tok(t,n[1]),this.incrementColumn(n[0].length-o),i}},bracketExpression:function(e){e=e||0;var t=this.input[e];o("("===t||"{"===t||"["===t,'The start character should be "(", "{" or "["');var n,r=a.BRACKETS[t];try{n=a.parseUntil(this.input,r,{start:e+1})}catch(t){if(void 0!==t.index){for(var i=t.index,s=this.input.substr(e).indexOf("\n"),u=s+e,c=0;i>u&&s!==-1;)this.incrementLine(1),i-=u+1,c+=u+1,s=u=this.input.substr(c).indexOf("\n");this.incrementColumn(i)}throw"CHARACTER_PARSER:END_OF_STRING_REACHED"===t.code?this.error("NO_END_BRACKET","The end of the string reached with no closing bracket "+r+" found."):"CHARACTER_PARSER:MISMATCHED_BRACKET"===t.code&&this.error("BRACKET_MISMATCH",t.message),t}return n},scanIndentation:function(){var e,t
|
||
;return this.indentRe?e=this.indentRe.exec(this.input):(t=/^\n(\t*) */,e=t.exec(this.input),e&&!e[1].length&&(t=/^\n( *)/,e=t.exec(this.input)),e&&e[1].length&&(this.indentRe=t)),e},eos:function(){if(!this.input.length){this.interpolated&&this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");for(var e=0;this.indentStack[e];e++)this.tokens.push(this.tok("outdent"));return this.tokens.push(this.tok("eos")),this.ended=!0,!0}},blank:function(){var e;if(e=/^\n[ \t]*\n/.exec(this.input))return this.consume(e[0].length-1),this.incrementLine(1),!0},comment:function(){var e;if(e=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("comment",e[2]);return t.buffer="-"!=e[1],this.interpolationAllowed=t.buffer,this.tokens.push(t),this.incrementColumn(e[0].length),this.callLexerFunction("pipelessText"),!0}},interpolation:function(){if(/^#\{/.test(this.input)){var e=this.bracketExpression(1);this.consume(e.end+1);var t=this.tok("interpolation",e.src);this.tokens.push(t),this.incrementColumn(2),this.assertExpression(e.src);var n=e.src.split("\n"),r=n.length-1;return this.incrementLine(r),this.incrementColumn(n[r].length+1),!0}},tag:function(){var e;if(e=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var t,n=e[1],r=e[0].length;return this.consume(r),t=this.tok("tag",n),this.tokens.push(t),this.incrementColumn(r),!0}},filter:function(e){var t=this.scan(/^:([\w\-]+)/,"filter"),n=e&&e.inInclude;if(t)return this.tokens.push(t),this.incrementColumn(t.val.length),this.callLexerFunction("attrs"),n||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var e=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(e)return this.tokens.push(e),!0},id:function(){var e=this.scan(/^#([\w-]+)/,"id");if(e)return this.tokens.push(e),this.incrementColumn(e.val.length),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var e=this.scan(/^\.(-?-?[_a-z][_a-z0-9\-]*)/i,"class");if(e)return this.tokens.push(e),this.incrementColumn(e.val.length),!0;/^\.\-/i.test(this.input)&&this.error("INVALID_CLASS_NAME",'If a class name begins with a "-" or "--", it must be followed by a letter or underscore.'),/^\.[0-9]/i.test(this.input)&&this.error("INVALID_CLASS_NAME",'Class names must begin with "-", "_" or a letter.'),/^\./.test(this.input)&&this.error("INVALID_CLASS_NAME",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid class name. Class names must begin with "-", "_" or a letter and can only contain "_", "-", a-z and 0-9.')},endInterpolation:function(){if(this.interpolated&&"]"===this.input[0])return this.input=this.input.substr(1),this.ended=!0,!0},addText:function(e,t,n,r){if(t+n!==""){n=n||"";var i=this.interpolated?t.indexOf("]"):-1,o=this.interpolationAllowed?t.indexOf("#["):-1,s=this.interpolationAllowed?t.indexOf("\\#["):-1,u=/(\\)?([#!]){((?:.|\n)*)$/.exec(t),c=this.interpolationAllowed&&u?u.index:1/0;if(i===-1&&(i=1/0),o===-1&&(o=1/0),s===-1&&(s=1/0),s!==1/0&&s<i&&s<o&&s<c)return n=n+t.substring(0,s)+"#[",this.addText(e,t.substring(s+3),n,!0);if(o!==1/0&&o<i&&o<s&&o<c){this.tokens.push(this.tok(e,n+t.substring(0,o))),this.incrementColumn(n.length+o),r&&this.incrementColumn(1),this.tokens.push(this.tok("start-pug-interpolation")),this.incrementColumn(2);var l,p=new this.constructor(t.substr(o+2),{filename:this.filename,interpolated:!0,startingLine:this.lineno,startingColumn:this.colno});try{l=p.getTokens()}catch(e){throw e.code&&/^PUG:/.test(e.code)&&(this.colno=e.column,this.error(e.code.substr(4),e.msg)),e}return this.colno=p.colno,this.tokens=this.tokens.concat(l),this.tokens.push(this.tok("end-pug-interpolation")),this.incrementColumn(1),void this.addText(e,p.input)}if(i!==1/0&&i<o&&i<s&&i<c)return n+t.substring(0,i)&&this.addText(e,t.substring(0,i),n),this.ended=!0,void(this.input=t.substr(t.indexOf("]")+1)+this.input);if(c!==1/0){if(u[1])return n=n+t.substring(0,c)+"#{",this.addText(e,t.substring(c+3),n);var f=t.substr(0,c);(n||f)&&(f=n+f,this.tokens.push(this.tok(e,f)),this.incrementColumn(f.length));var h,d=u[3],m=this.tok("interpolated-code");this.incrementColumn(2);try{h=a.parseUntil(d,"}")}catch(e){if(void 0!==e.index&&this.incrementColumn(e.index),"CHARACTER_PARSER:END_OF_STRING_REACHED"===e.code)this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else{if("CHARACTER_PARSER:MISMATCHED_BRACKET"!==e.code)throw e;this.error("BRACKET_MISMATCH",e.message)}}return m.mustEscape="#"===u[2],m.buffer=!0,m.val=h.src,this.assertExpression(h.src),this.tokens.push(m),void(h.end+1<d.length?(d=d.substr(h.end+1),this.incrementColumn(h.end+1),this.addText(e,d)):this.incrementColumn(d.length))}t=n+t,this.tokens.push(this.tok(e,t)),this.incrementColumn(t.length)}},text:function(){var e=this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^( )/,"text")||this.scan(/^\|( ?)/,"text");if(e)return this.addText("text",e.val),!0},textHtml:function(){var e=this.scan(/^(<[^\n]*)/,"text-html");if(e)return this.addText("text-html",e.val),!0},dot:function(){var e;if(e=this.scanEndOfLine(/^\./,"dot"))return this.tokens.push(e),this.callLexerFunction("pipelessText"),!0},extends:function(){var e=this.scan(/^extends?(?= |$|\n)/,"extends");if(e)return this.tokens.push(e),this.callLexerFunction("path")||this.error("NO_EXTENDS_PATH","missing path for extends"),!0;this.scan(/^extends?\b/)&&this.error("MALFORMED_EXTENDS","malformed extends")},prepend:function(){var e;if(e=/^(?:block +)?prepend +([^\n]+)/.exec(this.input)){var t=e[1].trim(),n="";if(t.indexOf("//")!==-1&&(n="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;this.consume(e[0].length-n.length);var r=this.tok("block",t);return r.mode="prepend",this.tokens.push(r),!0}},append:function(){var e;if(e=/^(?:block +)?append +([^\n]+)/.exec(this.input)){var t=e[1].trim(),n="";if(t.indexOf("//")!==-1&&(n="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;this.consume(e[0].length-n.length);var r=this.tok("block",t);return r.mode="append",this.tokens.push(r),!0}},block:function(){var e;if(e=/^block +([^\n]+)/.exec(this.input)){var t=e[1].trim(),n="";if(t.indexOf("//")!==-1&&(n="//"+t.split("//").slice(1).join("//"),t=t.split("//")[0].trim()),!t)return;this.consume(e[0].length-n.length);var r=this.tok("block",t);return r.mode="replace",this.tokens.push(r),!0}},mixinBlock:function(){var e;if(e=this.scanEndOfLine(/^block/,"mixin-block"))return this.tokens.push(e),!0},yield:function(){var e=this.scanEndOfLine(/^yield/,"yield");if(e)return this.tokens.push(e),!0},include:function(){var e=this.scan(/^include(?=:| |$|\n)/,"include");if(e){for(this.tokens.push(e);this.callLexerFunction("filter",{inInclude:!0}););return this.callLexerFunction("path")||(/^[^ \n]+/.test(this.input)?this.fail():this.error("NO_INCLUDE_PATH","missing path for include")),!0}this.scan(/^include\b/)&&this.error("MALFORMED_INCLUDE","malformed include")},path:function(){var e=this.scanEndOfLine(/^ ([^\n]+)/,"path");if(e&&(e.val=e.val.trim()))return this.tokens.push(e),!0},case:function(){var e=this.scanEndOfLine(/^case +([^\n]+)/,"case");if(e)return this.incrementColumn(-e.val.length),this.assertExpression(e.val),this.incrementColumn(e.val.length),this.tokens.push(e),!0;this.scan(/^case\b/)&&this.error("NO_CASE_EXPRESSION","missing expression for case")},when:function(){var e=this.scanEndOfLine(/^when +([^:\n]+)/,"when");if(e){for(var t=a(e.val);t.isNesting()||t.isString();){var n=/:([^:\n]+)/.exec(this.input);if(!n)break;e.val+=n[0],this.consume(n[0].length),this.incrementColumn(n[0].length),t=a(e.val)}return this.incrementColumn(-e.val.length),this.assertExpression(e.val),this.incrementColumn(e.val.length),this.tokens.push(e),!0}this.scan(/^when\b/)&&this.error("NO_WHEN_EXPRESSION","missing expression for when")},default:function(){var e=this.scanEndOfLine(/^default/,"default");if(e)return this.tokens.push(e),!0;this.scan(/^default\b/)&&this.error("DEFAULT_WITH_EXPRESSION","default should not have an expression")},call:function(){var e,t,n;if(t=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(t[3])n=t[0].length,this.consume(n),e=this.tok("call",t[3]);else{var r=this.bracketExpression(2+t[1].length);n=r.end+1,this.consume(n),this.assertExpression(r.src),e=this.tok("call","#{"+r.src+"}")}if(this.incrementColumn(n),e.args=null,t=/^ *\(/.exec(this.input)){var i=this.bracketExpression(t[0].length-1);if(!/^\s*[-\w]+ *=/.test(i.src)){this.incrementColumn(1),this.consume(i.end+1),e.args=i.src,this.assertExpression("["+e.args+"]");for(var o=0;o<=e.args.length;o++)"\n"===e.args[o]?this.incrementLine(1):this.incrementColumn(1)}}return this.tokens.push(e),!0}},mixin:function(){var e;if(e=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(e[0].length);var t=this.tok("mixin",e[1]);return t.args=e[2]||null,this.tokens.push(t),!0}},conditional:function(){var e;if(e=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(e[0].length);var t=e[1].replace(/ /g,"-"),n=e[2]&&e[2].trim(),r=this.tok(t,n);switch(this.incrementColumn(e[0].length-n.length),t){case"if":case"else-if":this.assertExpression(n);break;case"unless":this.assertExpression(n),r.val="!("+n+")",r.type="if";break;case"else":n&&this.error("ELSE_CONDITION","`else` cannot have a condition, perhaps you meant `else if`")}return this.tokens.push(r),!0}},while:function(){var e;if(e=/^while +([^\n]+)/.exec(this.input))return this.consume(e[0].length),this.assertExpression(e[1]),this.tokens.push(this.tok("while",e[1])),!0;this.scan(/^while\b/)&&this.error("NO_WHILE_EXPRESSION","missing expression for while")},each:function(){var e;if(e=/^(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(e[0].length);var t=this.tok("each",e[1]);return t.key=e[2]||null,this.incrementColumn(e[0].length-e[3].length),this.assertExpression(e[3]),t.code=e[3],this.incrementColumn(e[3].length),this.tokens.push(t),!0}this.scan(/^(?:each|for)\b/)&&this.error("MALFORMED_EACH","malformed each"),(e=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +in +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should no longer be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},code:function(){var e;if(e=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){var t=e[1],n=e[2],r=0;if(this.interpolated){var i;try{i=a.parseUntil(n,"]")}catch(t){if(void 0!==t.index&&this.incrementColumn(e[0].length-n.length+t.index),"CHARACTER_PARSER:END_OF_STRING_REACHED"===t.code)this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else{if("CHARACTER_PARSER:MISMATCHED_BRACKET"!==t.code)throw t;this.error("BRACKET_MISMATCH",t.message)}}r=n.length-i.end,n=i.src}var o=e[0].length-r;this.consume(o);var s=this.tok("code",n);return s.mustEscape="="===t.charAt(0),s.buffer="="===t.charAt(0)||"="===t.charAt(1),this.incrementColumn(e[0].length-e[2].length),s.buffer&&this.assertExpression(n),this.tokens.push(s),this.incrementColumn(n.length),!0}},blockCode:function(){var e;if(e=this.scanEndOfLine(/^-/,"blockcode"))return this.tokens.push(e),this.interpolationAllowed=!1,this.callLexerFunction("pipelessText"),!0},attrs:function(){if("("==this.input.charAt(0)){var e=this.lineno;this.tokens.push(this.tok("start-attributes"));var t=this.bracketExpression().end,n=this.input.substr(1,t-1);this.incrementColumn(1),this.assertNestingCorrect(n);var r="",i=this;this.consume(t+1);for(var o,s=/[ \n\t]/,u=/['"]/,c=!0,l="",p="",f=a.defaultState(),h=e,d=this.colno,m="key",g=function(e){if(""===l.trim())return d=this.colno,!1;if(e===n.length)return!0;if("key"===m){if(s.test(n[e]))for(var t=e;t<n.length;t++)if(!s.test(n[t]))return"="!==n[t]&&"!"!==n[t]&&","!==n[t];return","===n[e]}if("value"===m){if(f.isNesting()||f.isString())return!1;if(!i.assertExpression(p,!0))return!1;if(s.test(n[e]))for(var t=e;t<n.length;t++)if(!s.test(n[t]))return!a.isPunctuator(n[t])||u.test(n[t]);return","===n[e]}},v=0;v<=n.length;v++){if(g.call(this,v)){if(p.trim()){var y=this.colno;this.colno=o,this.assertExpression(p),this.colno=y}p=p.trim(),l=l.trim(),l=l.replace(/^['"]|['"]$/g,"");var b=this.tok("attribute");b.name=l,b.val=""==p||p,b.col=d,b.mustEscape=c,this.tokens.push(b),l=p="",m="key",c=!1,this.lineno=h}else switch(m){case"key-char":n[v]===r?(m="key",v+1<n.length&&!/[ ,!=\n\t]/.test(n[v+1])&&this.error("INVALID_KEY_CHARACTER",'Unexpected character "'+n[v+1]+'" expected ` `, `\\n`, `\t`, `,`, `!` or `=`')):l+=n[v];break;case"key":""===l&&u.test(n[v])?(m="key-char",r=n[v]):"!"===n[v]||"="===n[v]?(c="!"!==n[v],"!"===n[v]&&(this.incrementColumn(1),v++),"="!==n[v]&&this.error("INVALID_KEY_CHARACTER","Unexpected character "+n[v]+" expected `=`"),m="value",o=this.colno+1,f=a.defaultState()):l+=n[v];break;case"value":f=a.parseChar(n[v],f),p+=n[v]}"\n"===n[v]?(h++,this.colno=1,l.trim()||(this.lineno=h)):void 0!==n[v]&&this.incrementColumn(1)}return this.lineno=e+(n.match(/\n/g)||[]).length,this.tokens.push(this.tok("end-attributes")),this.incrementColumn(1),!0}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){var e=11;this.consume(e);var t=this.tok("&attributes");this.incrementColumn(e);var n=this.bracketExpression();return e=n.end+1,this.consume(e),t.val=n.src,this.tokens.push(t),this.incrementColumn(e),!0}},indent:function(){var e=this.scanIndentation();if(e){var t=e[1].length;if(this.incrementLine(1),this.consume(t+1)," "!=this.input[0]&&"\t"!=this.input[0]||this.error("INVALID_INDENTATION","Invalid indentation, you can use tabs or spaces but not both"),"\n"==this.input[0])return this.interpolationAllowed=!0,this.tok("newline");if(t<this.indentStack[0])for(;this.indentStack[0]>t;)this.indentStack[1]<t&&this.error("INCONSISTENT_INDENTATION","Inconsistent indentation. Expecting either "+this.indentStack[1]+" or "+this.indentStack[0]+" spaces/tabs."),this.colno=this.indentStack[1]+1,this.tokens.push(this.tok("outdent")),this.indentStack.shift();else t&&t!=this.indentStack[0]?(this.tokens.push(this.tok("indent",t)),this.colno=1+t,this.indentStack.unshift(t)):(this.tokens.push(this.tok("newline")),this.colno=1+(this.indentStack[0]||0));return this.interpolationAllowed=!0,!0}},pipelessText:function e(t){for(;this.callLexerFunction("blank"););var n=this.scanIndentation();if((t=t||n&&n[1].length)>this.indentStack[0]){this.tokens.push(this.tok("start-pipeless-text"));var r,i=[],o=0;do{var s=this.input.substr(o+1).indexOf("\n");-1==s&&(s=this.input.length-o-1);var a=this.input.substr(o+1,s),u=this.indentRe.exec("\n"+a),c=u&&u[1].length;if(r=c>=t||!a.trim())o+=a.length+1,i.push(a.substr(t));else if(c>this.indentStack[0])return this.tokens.pop(),e.call(this,u[1].length)}while(this.input.length-o&&r);for(this.consume(o);0===this.input.length&&""===i[i.length-1];)i.pop();return i.forEach(function(e,n){this.incrementLine(1),0!==n&&this.tokens.push(this.tok("newline")),this.incrementColumn(t),this.addText("text",e)}.bind(this)),this.tokens.push(this.tok("end-pipeless-text")),!0}},slash:function(){var e=this.scan(/^\//,"slash");if(e)return this.tokens.push(e),!0},colon:function(){var e=this.scan(/^: +/,":");if(e)return this.tokens.push(e),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);for(var r=[this].concat(t),n=0;n<this.plugins.length;n++){var i=this.plugins[n];if(i[e]&&i[e].apply(i,r))return!0}return this[e].apply(this,t)},advance:function(){return this.callLexerFunction("blank")||this.callLexerFunction("eos")||this.callLexerFunction("endInterpolation")||this.callLexerFunction("yield")||this.callLexerFunction("doctype")||this.callLexerFunction("interpolation")||this.callLexerFunction("case")||this.callLexerFunction("when")||this.callLexerFunction("default")||this.callLexerFunction("extends")||this.callLexerFunction("append")||this.callLexerFunction("prepend")||this.callLexerFunction("block")||this.callLexerFunction("mixinBlock")||this.callLexerFunction("include")||this.callLexerFunction("mixin")||this.callLexerFunction("call")||this.callLexerFunction("conditional")||this.callLexerFunction("each")||this.callLexerFunction("while")||this.callLexerFunction("tag")||this.callLexerFunction("filter")||this.callLexerFunction("blockCode")||this.callLexerFunction("code")||this.callLexerFunction("id")||this.callLexerFunction("dot")||this.callLexerFunction("className")||this.callLexerFunction("attrs")||this.callLexerFunction("attributesBlock")||this.callLexerFunction("indent")||this.callLexerFunction("text")||this.callLexerFunction("textHtml")||this.callLexerFunction("comment")||this.callLexerFunction("slash")||this.callLexerFunction("colon")||this.fail()},getTokens:function(){for(;!this.ended;)this.callLexerFunction("advance");return this.tokens}}},{assert:7,"character-parser":14,"is-expression":101,"pug-error":123}],128:[function(e,t,n){"use strict";function r(){throw e("pug-error").apply(null,arguments)}function i(e){p("Block"===e.type,"The top level element should always be a block");var t=null;if(e.nodes.length){var n="Extends"===e.nodes[0].type;n&&(t=e.nodes.shift()),l(e,n)}if(e=u(e),e.declaredBlocks=o(e),t){var s=[],c=[];e.nodes.forEach(function e(t){"NamedBlock"===t.type?c.push(t):"Block"===t.type?t.nodes.forEach(e):"Mixin"===t.type&&t.call===!1?s.push(t):r("UNEXPECTED_NODES_IN_EXTENDING_ROOT","Only named blocks and mixins can appear at the top level of an extending template",t)});var h=i(t.file.ast);a(h.declaredBlocks,e);var d=[];return f(h,function(e){"NamedBlock"===e.type&&d.push(e.name)}),c.forEach(function(e){d.indexOf(e.name)===-1&&r("UNEXPECTED_BLOCK","Unexpected block "+e.name,e)}),Object.keys(e.declaredBlocks).forEach(function(t){h.declaredBlocks[t]=e.declaredBlocks[t]}),h.nodes=s.concat(h.nodes),h}return e}function o(e){var t={};return f(e,function(e){"NamedBlock"===e.type&&"replace"===e.mode&&(t[e.name]=t[e.name]||[],t[e.name].push(e))}),t}function s(e,t){return t=t||[],e.forEach(function(e){e.parents?s(e.parents,t):t.push(e)}),t}function a(e,t){var n={};f(t,function(t){if("NamedBlock"===t.type){if(n[t.name]===t.name)return t.ignore=!0;n[t.name]=t.name;var r=e[t.name]?s(e[t.name]):[];r.length&&(t.parents=r,r.forEach(function(e){switch(t.mode){case"append":e.nodes=e.nodes.concat(t.nodes);break;case"prepend":e.nodes=t.nodes.concat(e.nodes);break;case"replace":e.nodes=t.nodes}}))}},function(e){"NamedBlock"!==e.type||e.ignore||delete n[e.name]})}function u(e,t){return f(e,function(e,t){"RawInclude"===e.type&&t({type:"Text",val:e.file.str.replace(/\r/g,"")})},function(e,t){"Include"===e.type&&t(c(i(e.file.ast),e.block))})}function c(e,t){function n(e){for(var t=e,r=0;r<e.nodes.length;r++)e.nodes[r].textOnly||("Block"===e.nodes[r].type?t=n(e.nodes[r]):e.nodes[r].block&&e.nodes[r].block.nodes.length&&(t=n(e.nodes[r].block)));return t}if(!t||!t.nodes.length)return e;var r=!1;return e=f(e,null,function(e,n){"YieldBlock"===e.type&&(r=!0,e.type="Block",e.nodes=[t])}),r||n(e).nodes.push(t),e}function l(e,t){var n=!1;f(e,function(e){"Extends"===e.type&&(t&&!n?n=!0:r("EXTENDS_NOT_FIRST",'Declaration of template inheritance ("extends") should be the first thing in the file.',e))})}var p=e("assert"),f=e("pug-walk");t.exports=i},{assert:7,"pug-error":123,"pug-walk":139}],129:[function(e,t,n){"use strict";function r(e,t){return t=i(t),e=JSON.parse(JSON.stringify(e)),a(e,function(e){if(void 0===e.str&&("Include"===e.type||"RawInclude"===e.type||"Extends"===e.type)){var n=e.file;if("FileReference"!==n.type)throw new Error('Expected file.type to be "FileReference"');var i,o;try{i=t.resolve(n.path,n.filename,t),n.fullPath=i,o=t.read(i,t)}catch(t){throw t.message+="\n at "+e.filename+" line "+e.line,t}n.str=o,"Extends"!==e.type&&"Include"!==e.type||(n.ast=r.string(o,u({},t,{filename:i})))}})}function i(e){return r.validateOptions(e),u({resolve:r.resolve,read:r.read},e)}var o=e("fs"),s=e("path"),a=e("pug-walk"),u=e("object-assign");t.exports=r,r.string=function(e,t){t=u(i(t),{src:e});var n=t.lex(e,t);return r(t.parse(n,t),t)},r.file=function(e,t){t=u(i(t),{filename:e});var n=t.read(e);return r.string(n,t)},r.resolve=function(e,t,n){if(e=e.trim(),"/"!==e[0]&&!t)throw new Error('the "filename" option is required to use includes and extends with "relative" paths');if("/"===e[0]&&!n.basedir)throw new Error('the "basedir" option is required to use includes and extends with "absolute" paths');return e=s.join("/"===e[0]?n.basedir:s.dirname(t.trim()),e)},r.read=function(e,t){return o.readFileSync(e,"utf8")},r.validateOptions=function(e){if("object"!=typeof e)throw new TypeError("options must be an object");if("function"!=typeof e.lex)throw new TypeError("options.lex must be a function");if("function"!=typeof e.parse)throw new TypeError("options.parse must be a function");if(e.resolve&&"function"!=typeof e.resolve)throw new TypeError("options.resolve must be a function");if(e.read&&"function"!=typeof e.read)throw new TypeError("options.read must be a function")}},{fs:10,"object-assign":107,path:109,"pug-walk":139}],130:[function(e,t,n){"use strict";function r(e,t){var n=new i(e,t),r=n.parse();return JSON.parse(JSON.stringify(r))}function i(e,t){if(t=t||{},!Array.isArray(e))throw new Error('Expected tokens to be an Array but got "'+typeof e+'"');if("object"!=typeof t)throw new Error('Expected "options" to be an object but got "'+typeof t+'"');this.tokens=new s(e),this.filename=t.filename,this.src=t.src,this.inMixin=0,this.plugins=t.plugins||[]}var o=e("assert"),s=e("token-stream"),a=e("pug-error"),u=e("./lib/inline-tags");t.exports=r,t.exports.Parser=i,i.prototype={constructor:i,error:function(e,t,n){throw a(e,t,{line:n.line,column:n.col,filename:this.filename,src:this.src})},advance:function(){return this.tokens.advance()},peek:function(){return this.tokens.peek()},lookahead:function(e){return this.tokens.lookahead(e)},parse:function(){for(var e=this.emptyBlock(0);"eos"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else if("text-html"==this.peek().type)e.nodes=e.nodes.concat(this.parseTextHtml());else{var t=this.parseExpr();t&&e.nodes.push(t)}return e},expect:function(e){if(this.peek().type===e)return this.advance();this.error("INVALID_TOKEN",'expected "'+e+'", but got "'+this.peek().type+'"',this.peek())},accept:function(e){if(this.peek().type===e)return this.advance()},initBlock:function(e,t){if((0|e)!==e)throw new Error("`line` is not an integer");if(!Array.isArray(t))throw new Error("`nodes` is not an array");return{type:"Block",nodes:t,line:e,filename:this.filename}},emptyBlock:function(e){return this.initBlock(e,[])},runPlugin:function(e,t){for(var n=[this],r=2;r<arguments.length;r++)n.push(arguments[r]);for(var i,r=0;r<this.plugins.length;r++){var o=this.plugins[r];if(o[e]&&o[e][t.type]){if(i)throw new Error("Multiple plugin handlers found for context "+JSON.stringify(e)+", token type "+JSON.stringify(t.type));i=o[e]}}if(i)return i[t.type].apply(i,n)},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":case"interpolated-code":case"start-pug-interpolation":return this.parseText({block:!0});case"text-html":return this.initBlock(this.peek().line,this.parseTextHtml());case"dot":return this.parseDot();case"each":return this.parseEach();case"code":return this.parseCode();case"blockcode":return this.parseBlockCode();case"if":return this.parseConditional();case"while":return this.parseWhile();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":return this.parseYield();case"id":case"class":return this.tokens.defer({type:"tag",val:"div",line:this.peek().line,filename:this.filename}),this.parseExpr();default:var e=this.runPlugin("expressionTokens",this.peek());if(e)return e;this.error("INVALID_TOKEN",'unexpected token "'+this.peek().type+'"',this.peek())}},parseDot:function(){return this.advance(),this.parseTextBlock()},parseText:function(e){var t=[],n=this.peek().line,r=this.peek();e:for(;;){switch(r.type){case"text":var i=this.advance();t.push({type:"Text",val:i.val,line:i.line,filename:this.filename});break;case"interpolated-code":var i=this.advance();t.push({type:"Code",val:i.val,buffer:i.buffer,mustEscape:i.mustEscape!==!1,isInline:!0,line:i.line,filename:this.filename});break;case"newline":if(!e||!e.block)break e;var i=this.advance();"text"===this.peek().type&&t.push({type:"Text",val:"\n",line:i.line,filename:this.filename});break;case"start-pug-interpolation":this.advance(),t.push(this.parseExpr()),this.expect("end-pug-interpolation");break;default:var o=this.runPlugin("textTokens",r,t);if(o)break;break e}r=this.peek()}return 1===t.length?t[0]:this.initBlock(n,t)},parseTextHtml:function(){var e=[],t=null;e:for(;;)switch(this.peek().type){case"text-html":var n=this.advance();t?t.val+="\n"+n.val:(t={type:"Text",val:n.val,filename:this.filename,line:n.line,isHtml:!0},e.push(t));break;case"indent":var r=this.block();r.nodes.forEach(function(n){n.isHtml?t?t.val+="\n"+n.val:(t=n,e.push(t)):(t=null,e.push(n))});break;case"code":t=null,e.push(this.parseCode(!0));break;case"newline":this.advance();break;default:break e}return e},parseBlockExpansion:function(){var e=this.accept(":");return e?this.initBlock(e.line,[this.parseExpr()]):this.block()},parseCase:function(){var e=this.expect("case"),t={type:"Case",expr:e.val,line:e.line,filename:this.filename},n=this.emptyBlock(e.line+1);for(this.expect("indent");"outdent"!=this.peek().type;)switch(this.peek().type){case"comment":case"newline":this.advance();break;case"when":n.nodes.push(this.parseWhen());break;case"default":n.nodes.push(this.parseDefault());break;default:if(this.runPlugin("caseTokens",this.peek(),n))break;this.error("INVALID_TOKEN",'Unexpected token "'+this.peek().type+'", expected "when", "default" or "newline"',this.peek())}return this.expect("outdent"),t.block=n,t},parseWhen:function(){var e=this.expect("when");return"newline"!==this.peek().type?{type:"When",expr:e.val,block:this.parseBlockExpansion(),debug:!1,line:e.line,filename:this.filename}:{type:"When",expr:e.val,debug:!1,line:e.line,filename:this.filename}},parseDefault:function(){var e=this.expect("default");return{type:"When",expr:"default",block:this.parseBlockExpansion(),debug:!1,line:e.line,filename:this.filename}},parseCode:function(e){var t=this.expect("code");o("boolean"==typeof t.mustEscape,"Please update to the newest version of pug-lexer.");var n={type:"Code",val:t.val,buffer:t.buffer,mustEscape:t.mustEscape!==!1,isInline:!!e,line:t.line,filename:this.filename};if(n.val.match(/^ *else/)&&(n.debug=!1),e)return n;var r;return r="indent"==this.peek().type,r&&(t.buffer&&this.error("BLOCK_IN_BUFFERED_CODE","Buffered code cannot have a block attached to it",this.peek()),n.block=this.block()),n},parseConditional:function(){var e=this.expect("if"),t={type:"Conditional",test:e.val,consequent:this.emptyBlock(e.line),alternate:null,line:e.line,filename:this.filename};"indent"==this.peek().type&&(t.consequent=this.block());for(var n=t;;)if("newline"===this.peek().type)this.expect("newline");else{if("else-if"!==this.peek().type){if("else"===this.peek().type){this.expect("else"),"indent"===this.peek().type&&(n.alternate=this.block());break}break}e=this.expect("else-if"),n=n.alternate={type:"Conditional",test:e.val,consequent:this.emptyBlock(e.line),alternate:null,line:e.line,filename:this.filename},"indent"==this.peek().type&&(n.consequent=this.block())}return t},parseWhile:function(){var e=this.expect("while"),t={type:"While",test:e.val,line:e.line,filename:this.filename};return"indent"==this.peek().type?t.block=this.block():t.block=this.emptyBlock(e.line),t},parseBlockCode:function(){var e=this.expect("blockcode").line,t=this.peek(),n="";if("start-pipeless-text"===t.type){for(this.advance();"end-pipeless-text"!==this.peek().type;){var r=this.advance();switch(r.type){case"text":n+=r.val;break;case"newline":n+="\n";break;default:var i=this.runPlugin("blockCodeTokens",r,r);if(i){n+=i;break}this.error("INVALID_TOKEN","Unexpected token type: "+r.type,r)}}this.advance()}return{type:"Code",val:n,buffer:!1,mustEscape:!1,isInline:!1,line:e,filename:this.filename}},parseComment:function(){var e,t=this.expect("comment");return(e=this.parseTextBlock())?{type:"BlockComment",val:t.val,block:e,buffer:t.buffer,line:t.line,filename:this.filename}:{type:"Comment",val:t.val,buffer:t.buffer,line:t.line,filename:this.filename}},parseDoctype:function(){var e=this.expect("doctype");return{type:"Doctype",val:e.val,line:e.line,filename:this.filename}},parseIncludeFilter:function(){var e=this.expect("filter"),t=[];return"start-attributes"===this.peek().type&&(t=this.attrs()),{type:"IncludeFilter",name:e.val,attrs:t,line:e.line,filename:this.filename}},parseFilter:function(){var e,t=this.expect("filter"),n=[];if("start-attributes"===this.peek().type&&(n=this.attrs()),"text"===this.peek().type){var r=this.advance();e=this.initBlock(r.line,[{type:"Text",val:r.val,line:r.line,filename:this.filename}])}else e="filter"===this.peek().type?this.initBlock(t.line,[this.parseFilter()]):this.parseTextBlock()||this.emptyBlock(t.line);return{type:"Filter",name:t.val,block:e,attrs:n,line:t.line,filename:this.filename}},parseEach:function(){var e=this.expect("each"),t={type:"Each",obj:e.code,val:e.val,key:e.key,block:this.block(),line:e.line,filename:this.filename};return"else"==this.peek().type&&(this.advance(),t.alternate=this.block()),t},parseExtends:function(){var e=this.expect("extends");return{type:"Extends",file:{type:"FileReference",path:this.expect("path").val.trim(),line:e.line,filename:this.filename},line:e.line,filename:this.filename}},parseBlock:function(){var e=this.expect("block"),t="indent"==this.peek().type?this.block():this.emptyBlock(e.line);return t.type="NamedBlock",t.name=e.val.trim(),t.mode=e.mode,t.line=e.line,t},parseMixinBlock:function(){var e=this.expect("mixin-block");return this.inMixin||this.error("BLOCK_OUTISDE_MIXIN","Anonymous blocks are not allowed unless they are part of a mixin.",e),{type:"MixinBlock",line:e.line,filename:this.filename}},parseYield:function(){return{type:"YieldBlock",line:this.expect("yield").line,filename:this.filename}},parseInclude:function(){for(var e=this.expect("include"),t={type:"Include",file:{type:"FileReference",line:e.line,filename:this.filename},line:e.line,filename:this.filename},n=[];"filter"===this.peek().type;)n.push(this.parseIncludeFilter());var r=this.expect("path");return t.file.path=r.val.trim(),!/\.jade$/.test(t.file.path)&&!/\.pug$/.test(t.file.path)||n.length?(t.type="RawInclude",t.filters=n,"indent"===this.peek().type&&this.error("RAW_INCLUDE_BLOCK","Raw inclusion cannot contain a block",this.peek())):(t.block="indent"==this.peek().type?this.block():this.emptyBlock(e.line),/\.jade$/.test(t.file.path)&&console.warn(this.filename+", line "+e.line+':\nThe .jade extension is deprecated, use .pug for "'+t.file.path+'".')),t},parseCall:function(){var e=this.expect("call"),t=e.val,n=e.args,r={type:"Mixin",name:t,args:n,block:this.emptyBlock(e.line),call:!0,attrs:[],attributeBlocks:[],line:e.line,filename:this.filename};return this.tag(r),r.code&&(r.block.nodes.push(r.code),delete r.code),0===r.block.nodes.length&&(r.block=null),r},parseMixin:function(){var e=this.expect("mixin"),t=e.val,n=e.args;if("indent"==this.peek().type){this.inMixin++;var r={type:"Mixin",name:t,args:n,block:this.block(),call:!1,line:e.line,filename:this.filename};return this.inMixin--,r}
|
||
this.error("MIXIN_WITHOUT_BODY","Mixin "+t+" declared without body",e)},parseTextBlock:function(){var e=this.accept("start-pipeless-text");if(e){for(var t=this.emptyBlock(e.line);"end-pipeless-text"!==this.peek().type;){var e=this.advance();switch(e.type){case"text":t.nodes.push({type:"Text",val:e.val,line:e.line});break;case"newline":t.nodes.push({type:"Text",val:"\n",line:e.line});break;case"start-pug-interpolation":t.nodes.push(this.parseExpr()),this.expect("end-pug-interpolation");break;case"interpolated-code":t.nodes.push({type:"Code",val:e.val,buffer:e.buffer,mustEscape:e.mustEscape!==!1,isInline:!0,line:e.line,filename:this.filename});break;default:if(this.runPlugin("textBlockTokens",e,t,e))break;this.error("INVALID_TOKEN","Unexpected token type: "+e.type,e)}}return this.advance(),t}},block:function(){for(var e=this.expect("indent"),t=this.emptyBlock(e.line);"outdent"!=this.peek().type;)if("newline"==this.peek().type)this.advance();else if("text-html"==this.peek().type)t.nodes=t.nodes.concat(this.parseTextHtml());else{var n=this.parseExpr();t.nodes.push(n)}return this.expect("outdent"),t},parseInterpolation:function(){var e=this.advance(),t={type:"InterpolatedTag",expr:e.val,selfClosing:!1,block:this.emptyBlock(e.line),attrs:[],attributeBlocks:[],isInline:!1,line:e.line,filename:this.filename};return this.tag(t,{selfClosingAllowed:!0})},parseTag:function(){var e=this.advance(),t={type:"Tag",name:e.val,selfClosing:!1,block:this.emptyBlock(e.line),attrs:[],attributeBlocks:[],isInline:u.indexOf(e.val)!==-1,line:e.line,filename:this.filename};return this.tag(t,{selfClosingAllowed:!0})},tag:function(e,t){var n=!1,r=[],i=t&&t.selfClosingAllowed;e:for(;;)switch(this.peek().type){case"id":case"class":var o=this.advance();"id"===o.type&&(r.indexOf("id")!==-1&&this.error("DUPLICATE_ID",'Duplicate attribute "id" is not allowed.',o),r.push("id")),e.attrs.push({name:o.type,val:"'"+o.val+"'",mustEscape:!1});continue;case"start-attributes":n&&console.warn(this.filename+", line "+this.peek().line+":\nYou should not have pug tags with multiple attributes."),n=!0,e.attrs=e.attrs.concat(this.attrs(r));continue;case"&attributes":var o=this.advance();e.attributeBlocks.push(o.val);break;default:var s=this.runPlugin("tagAttributeTokens",this.peek(),e,r);if(s)break;break e}switch("dot"==this.peek().type&&(e.textOnly=!0,this.advance()),this.peek().type){case"text":case"interpolated-code":var a=this.parseText();"Block"===a.type?e.block.nodes.push.apply(e.block.nodes,a.nodes):e.block.nodes.push(a);break;case"code":e.block.nodes.push(this.parseCode(!0));break;case":":this.advance(),e.block=this.initBlock(e.line,[this.parseExpr()]);break;case"newline":case"indent":case"outdent":case"eos":case"start-pipeless-text":case"end-pug-interpolation":break;case"slash":if(i){this.advance(),e.selfClosing=!0;break}default:var s=this.runPlugin("tagTokens",this.peek(),e,t);if(s)break;this.error("INVALID_TOKEN","Unexpected token `"+this.peek().type+"` expected `text`, `interpolated-code`, `code`, `:`"+(i?", `slash`":"")+", `newline` or `eos`",this.peek())}for(;"newline"==this.peek().type;)this.advance();if(e.textOnly)e.block=this.parseTextBlock()||this.emptyBlock(e.line);else if("indent"==this.peek().type)for(var u=this.block(),c=0,l=u.nodes.length;c<l;++c)e.block.nodes.push(u.nodes[c]);return e},attrs:function(e){this.expect("start-attributes");for(var t=[],n=this.advance();"attribute"===n.type;)"class"!==n.name&&e&&(e.indexOf(n.name)!==-1&&this.error("DUPLICATE_ATTRIBUTE",'Duplicate attribute "'+n.name+'" is not allowed.',n),e.push(n.name)),t.push({name:n.name,val:n.val,mustEscape:n.mustEscape!==!1}),n=this.advance();return this.tokens.defer(n),this.expect("end-attributes"),t}}},{"./lib/inline-tags":131,assert:7,"pug-error":123,"token-stream":176}],131:[function(e,t,n){"use strict";t.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]},{}],132:[function(e,t,n){"use strict";function r(e){var t=[];e=e.filter(function(e){return!o[e]});for(var n=0;n<e.length;n++)t.indexOf(e[n])===-1&&(t.push(e[n]),e.push.apply(e,i[e[n]]));return t.sort().map(function(e){return s[e]}).join("\n")}var i=(e("fs"),e("./lib/dependencies.js")),o=e("./lib/internals.js"),s=e("./lib/sources.js");t.exports=r},{"./lib/dependencies.js":134,"./lib/internals.js":135,"./lib/sources.js":136,fs:9}],133:[function(e,t,n){"use strict";function r(e,t){if(1===arguments.length){for(var n=e[0],i=1;i<e.length;i++)n=r(n,e[i]);return n}for(var o in t)if("class"===o){var s=e[o]||[];e[o]=(Array.isArray(s)?s:[s]).concat(t[o]||[])}else if("style"===o){var s=a(e[o]),u=a(t[o]);e[o]=s+u}else e[o]=t[o];return e}function i(e,t){for(var n,r="",i="",o=Array.isArray(t),a=0;a<e.length;a++)(n=s(e[a]))&&(o&&t[a]&&(n=l(n)),r=r+i+n,i=" ");return r}function o(e){var t="",n="";for(var r in e)r&&e[r]&&f.call(e,r)&&(t=t+n+r,n=" ");return t}function s(e,t){return Array.isArray(e)?i(e,t):e&&"object"==typeof e?o(e):e||""}function a(e){if(!e)return"";if("object"==typeof e){var t="";for(var n in e)f.call(e,n)&&(t=t+n+":"+e[n]+";");return t}return e+="",";"!==e[e.length-1]?e+";":e}function u(e,t,n,r){return t!==!1&&null!=t&&(t||"class"!==e&&"style"!==e)?t===!0?" "+(r?e:e+'="'+e+'"'):("function"==typeof t.toJSON&&(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||t.indexOf('"')===-1)?(n&&(t=l(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"'")+"'"):""}function c(e,t){var n="";for(var r in e)if(f.call(e,r)){var i=e[r];if("class"===r){i=s(i),n=u(r,i,!1,t)+n;continue}"style"===r&&(i=a(i)),n+=u(r,i,!1,t)}return n}function l(e){var t=""+e,n=h.exec(t);if(!n)return e;var r,i,o,s="";for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;case 62:o=">";break;default:continue}i!==r&&(s+=t.substring(i,r)),i=r+1,s+=o}return i!==r?s+t.substring(i,r):s}function p(t,n,r,i){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&n||i))throw t.message+=" on line "+r,t;try{i=i||e("fs").readFileSync(n,"utf8")}catch(e){p(t,null,r)}var o=3,s=i.split("\n"),a=Math.max(r-o,0),u=Math.min(s.length,r+o),o=s.slice(a,u).map(function(e,t){var n=t+a+1;return(n==r?" > ":" ")+n+"| "+e}).join("\n");throw t.path=n,t.message=(n||"Pug")+":"+r+"\n"+o+"\n\n"+t.message,t}var f=Object.prototype.hasOwnProperty;n.merge=r,n.classes=s,n.style=a,n.attr=u,n.attrs=c;var h=/["&<>]/;n.escape=l,n.rethrow=p},{fs:9}],134:[function(e,t,n){t.exports={has_own_property:[],merge:["style"],classes_array:["classes","escape"],classes_object:["has_own_property"],classes:["classes_array","classes_object"],style:["has_own_property"],attr:["escape"],attrs:["attr","classes","has_own_property","style"],match_html:[],escape:["match_html"],rethrow:[]}},{}],135:[function(e,t,n){t.exports={dependencies:!0,internals:!0,has_own_property:!0,classes_array:!0,classes_object:!0,match_html:!0}},{}],136:[function(e,t,n){t.exports={has_own_property:"var pug_has_own_property=Object.prototype.hasOwnProperty;",merge:'function pug_merge(r,e){if(1===arguments.length){for(var t=r[0],a=1;a<r.length;a++)t=pug_merge(t,r[a]);return t}for(var g in e)if("class"===g){var l=r[g]||[];r[g]=(Array.isArray(l)?l:[l]).concat(e[g]||[])}else if("style"===g){var l=pug_style(r[g]),n=pug_style(e[g]);r[g]=l+n}else r[g]=e[g];return r}',classes_array:'function pug_classes_array(r,a){for(var s,e="",u="",c=Array.isArray(a),g=0;g<r.length;g++)s=pug_classes(r[g]),s&&(c&&a[g]&&(s=pug_escape(s)),e=e+u+s,u=" ");return e}',classes_object:'function pug_classes_object(r){var a="",n="";for(var o in r)o&&r[o]&&pug_has_own_property.call(r,o)&&(a=a+n+o,n=" ");return a}',classes:'function pug_classes(s,r){return Array.isArray(s)?pug_classes_array(s,r):s&&"object"==typeof s?pug_classes_object(s):s||""}',style:'function pug_style(r){if(!r)return"";if("object"==typeof r){var t="";for(var e in r)pug_has_own_property.call(r,e)&&(t=t+e+":"+r[e]+";");return t}return r+="",";"!==r[r.length-1]?r+";":r}',attr:'function pug_attr(t,e,n,f){return e!==!1&&null!=e&&(e||"class"!==t&&"style"!==t)?e===!0?" "+(f?t:t+\'="\'+t+\'"\'):("function"==typeof e.toJSON&&(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||e.indexOf(\'"\')===-1)?(n&&(e=pug_escape(e))," "+t+\'="\'+e+\'"\'):" "+t+"=\'"+e.replace(/\'/g,"'")+"\'"):""}',attrs:'function pug_attrs(t,r){var a="";for(var s in t)if(pug_has_own_property.call(t,s)){var u=t[s];if("class"===s){u=pug_classes(u),a=pug_attr(s,u,!1,r)+a;continue}"style"===s&&(u=pug_style(u)),a+=pug_attr(s,u,!1,r)}return a}',match_html:'var pug_match_html=/["&<>]/;',escape:'function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}',rethrow:'function pug_rethrow(n,e,r,t){if(!(n instanceof Error))throw n;if(!("undefined"==typeof window&&e||t))throw n.message+=" on line "+r,n;try{t=t||require("fs").readFileSync(e,"utf8")}catch(e){pug_rethrow(n,null,r)}var i=3,a=t.split("\\n"),o=Math.max(r-i,0),h=Math.min(a.length,r+i),i=a.slice(o,h).map(function(n,e){var t=e+o+1;return(t==r?" > ":" ")+t+"| "+n}).join("\\n");throw n.path=e,n.message=(e||"Pug")+":"+r+"\\n"+i+"\\n\\n"+n.message,n}'}},{}],137:[function(e,t,n){function r(e,t){return t=t||"template",Function("pug",e+"\nreturn "+t+";")(i)}var i=e("./");t.exports=r},{"./":133}],138:[function(e,t,n){"use strict";function r(e,t,n,r){throw o("UNEXPECTED_TOKEN","`"+e+"` encountered when "+t,{filename:n,line:r})}function i(e,t){t=t||{};var n=t.stripUnbuffered!==!1,i=t.stripBuffered===!0,o=t.filename,s=!1,a=!1;return e.filter(function(e){switch(e.type){case"comment":if(!s)return!(s=e.buffer?i:n);r("comment","already in a comment",o,e.line);case"start-pipeless-text":return!s||(a&&r("start-pipeless-text","already in pipeless text mode",o,e.line),a=!0,!1);case"end-pipeless-text":return!s||(a||r("end-pipeless-text","not in pipeless text mode",o,e.line),a=!1,s=!1,!1);case"text":return!s;default:return!a&&(s=!1,!0)}})}var o=e("pug-error");t.exports=i},{"pug-error":123}],139:[function(e,t,n){"use strict";function r(e,t,n,i){function o(e){return e.reduce(function(e,o){var s=r(o,t,n,i);return Array.isArray(s)?e.concat(s):e.concat([s])},[])}n&&"object"==typeof n&&void 0===i&&(i=n,n=null),i=i||{includeDependencies:!1};var s=i.parents=i.parents||[],a=function t(n){if(Array.isArray(n)&&!t.arrayAllowed)throw new Error("replace() can only be called with an array if the last parent is a Block or NamedBlock");e=n};if(a.arrayAllowed=s[0]&&(/^(Named)?Block$/.test(s[0].type)||"RawInclude"===s[0].type&&"IncludeFilter"===e.type),t){if(t(e,a)===!1)return e;if(Array.isArray(e))return o(e)}switch(s.unshift(e),e.type){case"NamedBlock":case"Block":e.nodes=o(e.nodes);break;case"Case":case"Filter":case"Mixin":case"Tag":case"InterpolatedTag":case"When":case"Code":case"While":e.block&&(e.block=r(e.block,t,n,i));break;case"Each":e.block&&(e.block=r(e.block,t,n,i)),e.alternate&&(e.alternate=r(e.alternate,t,n,i));break;case"Conditional":e.consequent&&(e.consequent=r(e.consequent,t,n,i)),e.alternate&&(e.alternate=r(e.alternate,t,n,i));break;case"Include":r(e.block,t,n,i),r(e.file,t,n,i);break;case"Extends":r(e.file,t,n,i);break;case"RawInclude":e.filters=o(e.filters),r(e.file,t,n,i);break;case"Attrs":case"BlockComment":case"Comment":case"Doctype":case"IncludeFilter":case"MixinBlock":case"YieldBlock":case"Text":break;case"FileReference":i.includeDependencies&&e.ast&&r(e.ast,t,n,i);break;default:throw new Error("Unexpected node type "+e.type)}return s.shift(),n&&n(e,a),e}t.exports=r},{}],140:[function(e,t,n){(function(t){"use strict";function r(e,t,n,r){return n.reduce(function(e,n){return n[r]?n[r](e,t):e},e)}function i(e,t){var n=e.filter(function(e){return e[t]});if(n.length>1)throw new Error("Two or more plugins all implement "+t+" method.");return n.length?n[0][t].bind(n[0]):null}function o(e,t){var o={};o[t.filename]=e;var s=[],a=t.plugins||[],g=f.string(e,{filename:t.filename,basedir:t.basedir,lex:function(e,t){var n={};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n.plugins=a.filter(function(e){return!!e.lex}).map(function(e){return e.lex}),r(c(e,n),t,a,"postLex")},parse:function(e,t){e=e.map(function(e){return"path"===e.type&&""===u.extname(e.val)?{type:"path",line:e.line,col:e.col,val:e.val+".pug"}:e}),e=l(e,t),e=r(e,t,a,"preParse");var n={};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n.plugins=a.filter(function(e){return!!e.parse}).map(function(e){return e.parse}),r(r(p(e,n),t,a,"postParse"),t,a,"preLoad")},resolve:function(e,n,r){var o=i(a,"resolve");return o?o(e,n,t):f.resolve(e,n,r)},read:function(e,n){s.push(e);var u,c=i(a,"read");u=c?c(e,t):f.read(e,n);var l=r(u,{filename:e},a,"preLex");return o[e]=l,l}});g=r(g,t,a,"postLoad"),g=r(g,t,a,"preFilters");var v={};Object.keys(n.filters).forEach(function(e){v[e]=n.filters[e]}),t.filters&&Object.keys(t.filters).forEach(function(e){v[e]=t.filters[e]}),g=h.handleFilters(g,v,t.filterOptions,t.filterAliases),g=r(g,t,a,"postFilters"),g=r(g,t,a,"preLink"),g=d(g),g=r(g,t,a,"postLink"),g=r(g,t,a,"preCodeGen");var y=m(g,{pretty:t.pretty,compileDebug:t.compileDebug,doctype:t.doctype,inlineRuntimeFunctions:t.inlineRuntimeFunctions,globals:t.globals,self:t.self,includeSources:!!t.includeSources&&o,templateName:t.templateName});return y=r(y,t,a,"postCodeGen"),t.debug&&console.error("\nCompiled Function:\n\n[90m%s[0m",y.replace(/^/gm," ")),{body:y,dependencies:s}}function s(e,t){var r=e.filename;if(e.cache&&n.cache[r])return n.cache[r];void 0===t&&(t=a.readFileSync(e.filename,"utf8"));var i=n.compile(t,e);return e.cache&&(n.cache[r]=i),i}var a=e("fs"),u=e("path"),c=e("pug-lexer"),l=e("pug-strip-comments"),p=e("pug-parser"),f=e("pug-load"),h=e("pug-filters"),d=e("pug-linker"),m=e("pug-code-gen"),g=e("pug-runtime"),v=e("pug-runtime/wrap");n.name="Pug",n.runtime=g,n.cache={},n.filters={},n.compile=function(e,t){var t=t||{};e=String(e);var n=o(e,{compileDebug:t.compileDebug!==!1,filename:t.filename,basedir:t.basedir,pretty:t.pretty,doctype:t.doctype,inlineRuntimeFunctions:t.inlineRuntimeFunctions,globals:t.globals,self:t.self,includeSources:t.compileDebug===!0,debug:t.debug,templateName:"template",filters:t.filters,filterOptions:t.filterOptions,filterAliases:t.filterAliases,plugins:t.plugins}),r=t.inlineRuntimeFunctions?new Function("",n.body+";return template;")():v(n.body);return r.dependencies=n.dependencies,r},n.compileClientWithDependenciesTracked=function(e,t){var t=t||{};e=String(e);var n=o(e,{compileDebug:t.compileDebug,filename:t.filename,basedir:t.basedir,pretty:t.pretty,doctype:t.doctype,inlineRuntimeFunctions:t.inlineRuntimeFunctions!==!1,globals:t.globals,self:t.self,includeSources:t.compileDebug,debug:t.debug,templateName:t.name||"template",filters:t.filters,filterOptions:t.filterOptions,filterAliases:t.filterAliases,plugins:t.plugins});return{body:n.body,dependencies:n.dependencies}},n.compileClient=function(e,t){return n.compileClientWithDependenciesTracked(e,t).body},n.compileFile=function(e,t){return t=t||{},t.filename=e,s(t)},n.render=function(e,t,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof r){var i;try{i=n.render(e,t)}catch(e){return r(e)}return r(null,i)}if(t=t||{},t.cache&&!t.filename)throw new Error('the "filename" option is required for caching');return s(t,e)(t)},n.renderFile=function(e,t,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof r){var i;try{i=n.renderFile(e,t)}catch(e){return r(e)}return r(null,i)}return t=t||{},t.filename=e,s(t)(t)},n.compileFileClient=function(e,t){var r=e+":client";if(t=t||{},t.filename=e,t.cache&&n.cache[r])return n.cache[r];var i=a.readFileSync(t.filename,"utf8"),o=n.compileClient(i,t);return t.cache&&(n.cache[r]=o),o},n.__express=function(e,r,i){void 0==r.compileDebug&&"production"===t.env.NODE_ENV&&(r.compileDebug=!1),n.renderFile(e,r,i)}}).call(this,e("_process"))},{_process:112,fs:9,path:109,"pug-code-gen":122,"pug-filters":124,"pug-lexer":127,"pug-linker":128,"pug-load":129,"pug-parser":130,"pug-runtime":133,"pug-runtime/wrap":137,"pug-strip-comments":138}],141:[function(t,n,r){(function(t){!function(i){function o(e){throw new RangeError(R[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function a(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(D,"."),r+s(e.split("."),t).join(".")}function u(e){for(var t,n,r=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function c(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=P(e>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:k}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?N(e/S):e>>1,e+=N(e/t);e>M*A>>1;r+=k)e=N(e/M);return N(r+(M+1)*e/(e+C))}function h(e){var t,n,r,i,s,a,u,p,h,d,m=[],g=e.length,v=0,y=O,b=T;for(n=e.lastIndexOf(F),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&o("not-basic"),m.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(s=v,a=1,u=k;i>=g&&o("invalid-input"),p=l(e.charCodeAt(i++)),(p>=k||p>N((w-v)/a))&&o("overflow"),v+=p*a,h=u<=b?E:u>=b+A?A:u-b,!(p<h);u+=k)d=k-h,a>N(w/d)&&o("overflow"),a*=d;t=m.length+1,b=f(v-s,t,0==s),N(v/t)>w-y&&o("overflow"),y+=N(v/t),v%=t,m.splice(v++,0,y)}return c(m)}function d(e){var t,n,r,i,s,a,c,l,h,d,m,g,v,y,b,_=[];for(e=u(e),g=e.length,t=O,n=0,s=T,a=0;a<g;++a)(m=e[a])<128&&_.push(P(m));for(r=i=_.length,i&&_.push(F);r<g;){for(c=w,a=0;a<g;++a)(m=e[a])>=t&&m<c&&(c=m);for(v=r+1,c-t>N((w-n)/v)&&o("overflow"),n+=(c-t)*v,t=c,a=0;a<g;++a)if(m=e[a],m<t&&++n>w&&o("overflow"),m==t){for(l=n,h=k;d=h<=s?E:h>=s+A?A:h-s,!(l<d);h+=k)b=l-d,y=k-d,_.push(P(p(d+b%y,0))),l=N(b/y);_.push(P(p(l,0))),s=f(n,v,r==i),n=0,++r}++n,++t}return _.join("")}function m(e){return a(e,function(e){return L.test(e)?h(e.slice(4).toLowerCase()):e})}function g(e){return a(e,function(e){return B.test(e)?"xn--"+d(e):e})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof n&&n&&!n.nodeType&&n,b="object"==typeof t&&t;b.global!==b&&b.window!==b&&b.self!==b||(i=b);var _,x,w=2147483647,k=36,E=1,A=26,C=38,S=700,T=72,O=128,F="-",L=/^xn--/,B=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=k-E,N=Math.floor,P=String.fromCharCode;if(_={version:"1.4.1",ucs2:{decode:u,encode:c},decode:h,encode:d,toASCII:g,toUnicode:m},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return _});else if(v&&y)if(n.exports==v)y.exports=_;else for(x in _)_.hasOwnProperty(x)&&(v[x]=_[x]);else i.punycode=_}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],142:[function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,n,o){t=t||"&",n=n||"=";var s={};if("string"!=typeof e||0===e.length)return s;e=e.split(t);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,p,f,h,d=e[c].replace(/\+/g,"%20"),m=d.indexOf(n);m>=0?(l=d.substr(0,m),p=d.substr(m+1)):(l=d,p=""),f=decodeURIComponent(l),h=decodeURIComponent(p),r(s,f)?i(s[f])?s[f].push(h):s[f]=[s[f],h]:s[f]=h}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],143:[function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(s(e),function(s){var a=encodeURIComponent(i(s))+n;return o(e[s])?r(e[s],function(e){return a+encodeURIComponent(i(e))}).join(t):a+encodeURIComponent(i(e[s]))}).join(t):a?encodeURIComponent(i(a))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],144:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":142,"./encode":143}],145:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);c.call(this,e),l.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(e){e.end()}var s=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=r;var a=e("process-nextick-args"),u=e("core-util-is");u.inherits=e("inherits");var c=e("./_stream_readable"),l=e("./_stream_writable");u.inherits(r,c);for(var p=s(l.prototype),f=0;f<p.length;f++){var h=p[f];r.prototype[h]||(r.prototype[h]=l.prototype[h])}},{"./_stream_readable":147,"./_stream_writable":149,"core-util-is":91,inherits:99,"process-nextick-args":111}],146:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}t.exports=r;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":148,"core-util-is":91,inherits:99}],147:[function(e,t,n){(function(n){"use strict";function r(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?L(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function i(t,n){O=O||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof O&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.buffer=new V,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(j||(j=e("string_decoder/").StringDecoder),this.decoder=new j(t.encoding),this.encoding=t.encoding)}function o(t){if(O=O||e("./_stream_duplex"),!(this instanceof o))return new o(t);this._readableState=new i(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),B.call(this)}function s(e,t,n,r,i){var o=l(t,n);if(o)e.emit("error",o);else if(null===n)t.reading=!1,p(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!i){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&i){var u=new Error("stream.unshift() after end event");e.emit("error",u)}else{var c;!t.decoder||i||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),i||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&f(e))),d(e,t)}else i||(t.reading=!1);return a(t)}function a(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function u(e){return e>=U?e=U:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function c(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=u(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function l(e,t){var n=null;return R.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function p(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,f(e)}}function f(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?F(h,e):h(e))}function h(e){I("emit readable"),e.emit("readable"),_(e)}function d(e,t){t.readingMore||(t.readingMore=!0,F(m,e,t))}function m(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(I("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;I("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&D(e,"data")&&(t.flowing=!0,_(e))}}function v(e){I("readable nexttick read 0"),e.read(0)}function y(e,t){t.resumeScheduled||(t.resumeScheduled=!0,F(b,e,t))}function b(e,t){t.reading||(I("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),_(e),t.flowing&&!t.reading&&e.read(0)}function _(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){if(0===t.length)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=w(e,t.buffer,t.decoder),n}function w(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?k(e,t):E(e,t),r}function k(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}function E(e,t){var n=M.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,F(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function S(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function T(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}t.exports=o;var O,F=e("process-nextick-args"),L=e("isarray");o.ReadableState=i;var B,D=(e("events").EventEmitter,function(e,t){return e.listeners(t).length});!function(){try{B=e("stream")}catch(e){}finally{B||(B=e("events").EventEmitter)}}();var R=e("buffer").Buffer,M=e("buffer-shims"),N=e("core-util-is");N.inherits=e("inherits");var P=e("util"),I=void 0;I=P&&P.debuglog?P.debuglog("stream"):function(){};var j,V=e("./internal/streams/BufferList");N.inherits(o,B),o.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=M.from(e,t),t=""),s(this,n,e,t,!1)},o.prototype.unshift=function(e){return s(this,this._readableState,e,"",!0)},o.prototype.isPaused=function(){return this._readableState.flowing===!1},o.prototype.setEncoding=function(t){return j||(j=e("string_decoder/").StringDecoder),this._readableState.decoder=new j(t),this._readableState.encoding=t,this};var U=8388608;o.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return I("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):f(this),null;if(0===(e=c(e,t))&&t.ended)return 0===t.length&&A(this),null;var r=t.needReadable;I("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,I("length less than watermark",r)),t.ended||t.reading?(r=!1,I("reading or ended",r)):r&&(I("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=c(n,t)));var i;return i=e>0?x(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&A(this)),null!==i&&this.emit("data",i),i},o.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},o.prototype.pipe=function(e,t){function i(e){I("onunpipe"),e===f&&s()}function o(){I("onend"),e.end()}function s(){I("cleanup"),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("drain",v),e.removeListener("error",u),e.removeListener("unpipe",i),f.removeListener("end",o),f.removeListener("end",s),f.removeListener("data",a),y=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||v()}function a(t){I("ondata"),b=!1,!1!==e.write(t)||b||((1===h.pipesCount&&h.pipes===e||h.pipesCount>1&&T(h.pipes,e)!==-1)&&!y&&(I("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,b=!0),f.pause())}function u(t){I("onerror",t),p(),e.removeListener("error",u),0===D(e,"error")&&e.emit("error",t)}function c(){e.removeListener("finish",l),p()}function l(){I("onfinish"),e.removeListener("close",c),p()}function p(){I("unpipe"),f.unpipe(e)}var f=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,I("pipe count=%d opts=%j",h.pipesCount,t);var d=(!t||t.end!==!1)&&e!==n.stdout&&e!==n.stderr,m=d?o:s;h.endEmitted?F(m):f.once("end",m),e.on("unpipe",i);var v=g(f);e.on("drain",v);var y=!1,b=!1;return f.on("data",a),r(e,"error",u),e.once("close",c),e.once("finish",l),e.emit("pipe",f),h.flowing||(I("pipe resume"),f.resume()),e},o.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=T(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},o.prototype.on=function(e,t){var n=B.prototype.on.call(this,e,t);if("data"===e)this._readableState.flowing!==!1&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&f(this):F(v,this))}return n},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!0,y(this,e)),this},o.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(I("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(I("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){r.push(i)||(n=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return S(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){I("wrapped _read",t),n&&(n=!1,e.resume())},r},o._fromList=x}).call(this,e("_process"))},{"./_stream_duplex":145,"./internal/streams/BufferList":150,_process:112,buffer:12,"buffer-shims":11,"core-util-is":91,events:93,inherits:99,isarray:104,"process-nextick-args":111,"string_decoder/":174,util:9}],148:[function(e,t,n){"use strict"
|
||
;function r(e){this.afterTransform=function(t,n){return i(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);a.call(this,e),this._transformState=new r(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=o;var a=e("./_stream_duplex"),u=e("core-util-is");u.inherits=e("inherits"),u.inherits(o,a),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":145,"core-util-is":91,inherits:99}],149:[function(e,t,n){(function(n){"use strict";function r(){}function i(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function o(t,n){k=k||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof k&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){d(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new w(this)}function s(t){if(k=k||e("./_stream_duplex"),!(L.call(s,this)||this instanceof k))return new s(t);this._writableState=new o(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),S.call(this)}function a(e,t){var n=new Error("write after end");e.emit("error",n),E(t,n)}function u(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),E(r,o),i=!1),i}function c(e,t,n){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=F.from(t,n)),t}function l(e,t,n,r,o,s){n||(r=c(t,r,o),O.isBuffer(r)&&(o="buffer"));var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest=new i(r,o,s),l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else p(e,t,!1,a,r,o,s);return u}function p(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function f(e,t,n,r,i){--t.pendingcb,n?E(i,r):i(r),e._writableState.errorEmitted=!0,e.emit("error",r)}function h(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function d(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(h(n),t)f(e,n,r,t,i);else{var o=y(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||v(e,n),r?A(m,e,n,o,i):m(e,n,o,i)}}function m(e,t,n,r){n||g(e,t),t.pendingcb--,r(),_(e,t)}function g(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function v(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0;n;)i[s]=n,n=n.next,s+=1;p(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new w(t)}else{for(;n;){var a=n.chunk,u=n.encoding,c=n.callback;if(p(e,t,!1,t.objectMode?1:a.length,a,u,c),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function y(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function b(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function _(e,t){var n=y(t);return n&&(0===t.pendingcb?(b(e,t),t.finished=!0,e.emit("finish")):b(e,t)),n}function x(e,t,n){t.ending=!0,_(e,t),n&&(t.finished?E(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function w(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}t.exports=s;var k,E=e("process-nextick-args"),A=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:E;s.WritableState=o;var C=e("core-util-is");C.inherits=e("inherits");var S,T={deprecate:e("util-deprecate")};!function(){try{S=e("stream")}catch(e){}finally{S||(S=e("events").EventEmitter)}}();var O=e("buffer").Buffer,F=e("buffer-shims");C.inherits(s,S),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(o.prototype,"buffer",{get:T.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();var L;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(e){return!!L.call(this,e)||e&&e._writableState instanceof o}})):L=function(e){return e instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(e,t,n){var i=this._writableState,o=!1,s=O.isBuffer(e);return"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=r),i.ended?a(this,n):(s||u(this,i,e,n))&&(i.pendingcb++,o=l(this,i,s,e,t,n)),o},s.prototype.cork=function(){this._writableState.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||v(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},s.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||x(this,r,n)}}).call(this,e("_process"))},{"./_stream_duplex":145,_process:112,buffer:12,"buffer-shims":11,"core-util-is":91,events:93,inherits:99,"process-nextick-args":111,"util-deprecate":180}],150:[function(e,t,n){"use strict";function r(){this.head=null,this.tail=null,this.length=0}var i=(e("buffer").Buffer,e("buffer-shims"));t.exports=r,r.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},r.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},r.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},r.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t}},{buffer:12,"buffer-shims":11}],151:[function(e,t,n){(function(r){var i=function(){try{return e("stream")}catch(e){}}();n=t.exports=e("./lib/_stream_readable.js"),n.Stream=i||n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),!r.browser&&"disable"===r.env.READABLE_STREAM&&i&&(t.exports=i)}).call(this,e("_process"))},{"./lib/_stream_duplex.js":145,"./lib/_stream_passthrough.js":146,"./lib/_stream_readable.js":147,"./lib/_stream_transform.js":148,"./lib/_stream_writable.js":149,_process:112}],152:[function(e,t,n){var r=e("./lib/core");n=t.exports=e("./lib/async"),n.core=r,n.isCore=function(e){return r[e]},n.sync=e("./lib/sync")},{"./lib/async":153,"./lib/core":156,"./lib/sync":158}],153:[function(e,t,n){(function(n){var r=e("./core"),i=e("fs"),o=e("path"),s=e("./caller.js"),a=e("./node-modules-paths.js");t.exports=function(e,t,u){function c(t,n,r){t?d(t):n?d(null,n,r):f(x,function(t,n,r){if(t)d(t);else if(n)d(null,n,r);else{var i=new Error("Cannot find module '"+e+"' from '"+_+"'");i.code="MODULE_NOT_FOUND",d(i)}})}function l(e,t,n){function r(e,t,n){function s(s,c,l){if(n=c,s)return i(s);if(l&&n&&m.pathFilter){var p=o.relative(l,u),f=p.slice(0,p.length-e[0].length),h=m.pathFilter(n,t,f);if(h)return r([""].concat(b.slice()),o.resolve(l,h),n)}v(u,a)}function a(o,s){o?i(o):s?i(null,u,n):r(e.slice(1),t,n)}if(0===e.length)return i(null,void 0,n);var u=t+e[0];n?s(null,n):p(o.dirname(u),s)}var i=n;"function"==typeof t&&(i=t,t=void 0),r([""].concat(b),e,t)}function p(e,t){if(""===e||"/"===e)return t(null);if("win32"===n.platform&&/^\w:[\\\/]*$/.test(e))return t(null);if(/[\\\/]node_modules[\\\/]*$/.test(e))return t(null);var r=o.join(e,"package.json");v(r,function(n,i){if(!i)return p(o.dirname(e),t);y(r,function(n,i){n&&t(n);try{var o=JSON.parse(i)}catch(e){}o&&m.packageFilter&&(o=m.packageFilter(o,r)),t(null,o,e)})})}function f(e,t,n){var r=n;"function"==typeof t&&(r=t,t=m.package);var i=o.join(e,"package.json");v(i,function(n,s){return n?r(n):s?void y(i,function(t,n){if(t)return r(t);try{var s=JSON.parse(n)}catch(e){}if(m.packageFilter&&(s=m.packageFilter(s,i)),s.main)return"."!==s.main&&"./"!==s.main||(s.main="index"),void l(o.resolve(e,s.main),s,function(t,n,i){return t?r(t):n?r(null,n,i):i?void f(o.resolve(e,i.main),i,function(t,n,i){return t?r(t):n?r(null,n,i):void l(o.join(e,"index"),i,r)}):l(o.join(e,"index"),i,r)});l(o.join(e,"/index"),s,r)}):l(o.join(e,"index"),t,r)})}function h(t,n){function r(n,r,a){return n?t(n):r?t(null,r,a):void f(o.join(s,e),void 0,i)}function i(e,r,i){return e?t(e):r?t(null,r,i):void h(t,n.slice(1))}if(0===n.length)return t(null,void 0);var s=n[0];l(o.join(s,e),void 0,r)}var d=u,m=t||{};if("function"==typeof m&&(d=m,m={}),"string"!=typeof e){var g=new TypeError("path must be a string");return n.nextTick(function(){d(g)})}var v=m.isFile||function(e,t){i.stat(e,function(e,n){e&&"ENOENT"===e.code?t(null,!1):e?t(e):t(null,n.isFile()||n.isFIFO())})},y=m.readFile||i.readFile,b=m.extensions||[".js"],_=m.basedir||o.dirname(s());if(m.paths=m.paths||[],/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[\\\/])/.test(e)){var x=o.resolve(_,e);".."===e&&(x+="/"),/\/$/.test(e)&&x===_?f(x,m.package,c):l(x,m.package,c)}else!function(e,t,n){h(n,a(t,m))}(0,_,function(t,n,i){if(t)d(t);else if(n)d(null,n,i);else{if(r[e])return d(null,e);var o=new Error("Cannot find module '"+e+"' from '"+_+"'");o.code="MODULE_NOT_FOUND",d(o)}})}}).call(this,e("_process"))},{"./caller.js":154,"./core":156,"./node-modules-paths.js":157,_process:112,fs:10,path:109}],154:[function(e,t,n){t.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var t=(new Error).stack;return Error.prepareStackTrace=e,t[2].getFileName()}},{}],155:[function(e,t,n){t.exports={"*":["assert","buffer_ieee754","buffer","child_process","cluster","console","constants","crypto","_debugger","dgram","dns","domain","events","freelist","fs","http","https","_linklist","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],.11:["_http_server"],"1.0":["process","v8"]}},{}],156:[function(e,t,n){(function(n){var r=n.versions&&n.versions.node&&n.versions.node.split(".")||[],i=e("./core.json"),o={};for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&function(e){if("*"===e)return!0;for(var t=e.split("."),n=0;n<3;++n)if((r[n]||0)>=(t[n]||0))return!0;return!1}(s))for(var a=0;a<i[s].length;++a)o[i[s][a]]=!0;t.exports=o}).call(this,e("_process"))},{"./core.json":155,_process:112}],157:[function(e,t,n){var r=e("path"),i=r.parse||e("path-parse");t.exports=function(e,t){var n=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];e=r.resolve(e);var o="/";/^([A-Za-z]:)/.test(e)?o="":/^\\\\/.test(e)&&(o="\\\\");for(var s=[e],a=i(e);a.dir!==s[s.length-1];)s.push(a.dir),a=i(a.dir);var u=s.reduce(function(e,t){return e.concat(n.map(function(e){return r.join(o,t,e)}))},[]);return t&&t.paths?u.concat(t.paths):u}},{path:109,"path-parse":110}],158:[function(e,t,n){var r=e("./core"),i=e("fs"),o=e("path"),s=e("./caller.js"),a=e("./node-modules-paths.js");t.exports=function(e,t){function n(e){if(l(e))return e;for(var t=0;t<f.length;t++){var n=e+f[t];if(l(n))return n}}function u(e){var t=o.join(e,"/package.json");if(l(t)){var r=p(t,"utf8");try{var i=JSON.parse(r);if(c.packageFilter&&(i=c.packageFilter(i,e)),i.main){var s=n(o.resolve(e,i.main));if(s)return s;var a=u(o.resolve(e,i.main));if(a)return a}}catch(e){}}return n(o.join(e,"/index"))}var c=t||{},l=c.isFile||function(e){try{var t=i.statSync(e)}catch(e){if(e&&"ENOENT"===e.code)return!1;throw e}return t.isFile()||t.isFIFO()},p=c.readFileSync||i.readFileSync,f=c.extensions||[".js"],h=c.basedir||o.dirname(s());if(c.paths=c.paths||[],/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[\\\/])/.test(e)){var d=o.resolve(h,e);".."===e&&(d+="/");var m=n(d)||u(d);if(m)return m}else{var g=function(e,t){for(var r=a(t,c),i=0;i<r.length;i++){var s=r[i],l=n(o.join(s,"/",e));if(l)return l;var p=u(o.join(s,"/",e));if(p)return p}}(e,h);if(g)return g}if(r[e])return e;var v=new Error("Cannot find module '"+e+"' from '"+h+"'");throw v.code="MODULE_NOT_FOUND",v}},{"./caller.js":154,"./core":156,"./node-modules-paths.js":157,fs:10,path:109}],159:[function(e,t,n){function r(){this._array=[],this._set=Object.create(null)}var i=e("./util"),o=Object.prototype.hasOwnProperty;r.fromArray=function(e,t){for(var n=new r,i=0,o=e.length;i<o;i++)n.add(e[i],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,t){var n=i.toSetString(e),r=o.call(this._set,n),s=this._array.length;r&&!t||this._array.push(e),r||(this._set[n]=s)},r.prototype.has=function(e){var t=i.toSetString(e);return o.call(this._set,t)},r.prototype.indexOf=function(e){var t=i.toSetString(e);if(o.call(this._set,t))return this._set[t];throw new Error('"'+e+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},n.ArraySet=r},{"./util":168}],160:[function(e,t,n){function r(e){return e<0?1+(-e<<1):0+(e<<1)}function i(e){var t=1==(1&e),n=e>>1;return t?-n:n}var o=e("./base64");n.encode=function(e){var t,n="",i=r(e);do{t=31&i,i>>>=5,i>0&&(t|=32),n+=o.encode(t)}while(i>0);return n},n.decode=function(e,t,n){var r,s,a=e.length,u=0,c=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if((s=o.decode(e.charCodeAt(t++)))===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&s),s&=31,u+=s<<c,c+=5}while(r);n.value=i(u),n.rest=t}},{"./base64":161}],161:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},{}],162:[function(e,t,n){function r(e,t,i,o,s,a){var u=Math.floor((t-e)/2)+e,c=s(i,o[u],!0);return 0===c?u:c>0?t-u>1?r(u,t,i,o,s,a):a==n.LEAST_UPPER_BOUND?t<o.length?t:-1:u:u-e>1?r(e,u,i,o,s,a):a==n.LEAST_UPPER_BOUND?u:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,t,i,o){if(0===t.length)return-1;var s=r(-1,t.length,e,t,i,o||n.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===i(t[s],t[s-1],!0);)--s;return s}},{}],163:[function(e,t,n){function r(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||o.compareByGeneratedPositionsInflated(e,t)<=0}function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var o=e("./util");i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){r(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=i},{"./util":168}],164:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function i(e,t){return Math.round(e+Math.random()*(t-e))}function o(e,t,n,s){if(n<s){var a=i(n,s),u=n-1;r(e,a,s);for(var c=e[s],l=n;l<s;l++)t(e[l],c)<=0&&(u+=1,r(e,u,l));r(e,u+1,l);var p=u+1;o(e,t,n,p-1),o(e,t,p+1,s)}}n.quickSort=function(e,t){o(e,t,0,e.length-1)}},{}],165:[function(e,t,n){function r(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new s(t):new i(t)}function i(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=a.getArg(t,"version"),r=a.getArg(t,"sources"),i=a.getArg(t,"names",[]),o=a.getArg(t,"sourceRoot",null),s=a.getArg(t,"sourcesContent",null),u=a.getArg(t,"mappings"),l=a.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(String).map(a.normalize).map(function(e){return o&&a.isAbsolute(o)&&a.isAbsolute(e)?a.relative(o,e):e}),this._names=c.fromArray(i.map(String),!0),this._sources=c.fromArray(r,!0),this.sourceRoot=o,this.sourcesContent=s,this._mappings=u,this.file=l}function o(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function s(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=a.getArg(t,"version"),i=a.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new c,this._names=new c;var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=a.getArg(e,"offset"),n=a.getArg(t,"line"),i=a.getArg(t,"column");if(n<o.line||n===o.line&&i<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=t,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new r(a.getArg(e,"map"))}})}var a=e("./util"),u=e("./binary-search"),c=e("./array-set").ArraySet,l=e("./base64-vlq"),p=e("./quick-sort").quickSort;r.fromSourceMap=function(e){return i.fromSourceMap(e)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},r.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(e,t,n){var i,o=t||null,s=n||r.GENERATED_ORDER;switch(s){case r.GENERATED_ORDER:i=this._generatedMappings;break;case r.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=u&&(t=a.join(u,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,o)},r.prototype.allGeneratedPositionsFor=function(e){var t=a.getArg(e,"line"),n={source:a.getArg(e,"source"),originalLine:t,originalColumn:a.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=a.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(i>=0){var o=this._originalMappings[i];if(void 0===e.column)for(var s=o.originalLine;o&&o.originalLine===s;)r.push({line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var c=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==c;)r.push({line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return r},n.SourceMapConsumer=r,i.prototype=Object.create(r.prototype),i.prototype.consumer=r,i.fromSourceMap=function(e){var t=Object.create(i.prototype),n=t._names=c.fromArray(e._names.toArray(),!0),r=t._sources=c.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),u=t.__generatedMappings=[],l=t.__originalMappings=[],f=0,h=s.length;f<h;f++){var d=s[f],m=new o;m.generatedLine=d.generatedLine,m.generatedColumn=d.generatedColumn,d.source&&(m.source=r.indexOf(d.source),m.originalLine=d.originalLine,m.originalColumn=d.originalColumn,d.name&&(m.name=n.indexOf(d.name)),l.push(m)),u.push(m)}return p(t.__originalMappings,a.compareByOriginalPositions),t},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?a.join(this.sourceRoot,e):e},this)}}),i.prototype._parseMappings=function(e,t){for(var n,r,i,s,u,c=1,f=0,h=0,d=0,m=0,g=0,v=e.length,y=0,b={},_={},x=[],w=[];y<v;)if(";"===e.charAt(y))c++,y++,f=0;else if(","===e.charAt(y))y++;else{for(n=new o,n.generatedLine=c,s=y;s<v&&!this._charIsMappingSeparator(e,s);s++);if(r=e.slice(y,s),i=b[r])y+=r.length;else{for(i=[];y<s;)l.decode(e,y,_),u=_.value,y=_.rest,i.push(u);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");b[r]=i}n.generatedColumn=f+i[0],f=n.generatedColumn,i.length>1&&(n.source=m+i[1],m+=i[1],n.originalLine=h+i[2],h=n.originalLine,n.originalLine+=1,n.originalColumn=d+i[3],d=n.originalColumn,i.length>4&&(n.name=g+i[4],g+=i[4])),w.push(n),"number"==typeof n.originalLine&&x.push(n)}p(w,a.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,p(x,a.compareByOriginalPositions),this.__originalMappings=x},i.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return u.search(e,t,i,o)},i.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(e){var t={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",a.compareByGeneratedPositionsDeflated,a.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=a.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=a.join(this.sourceRoot,o)));var s=a.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:a.getArg(i,"originalLine",null),column:a.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},i.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=a.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=a.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(e){var t=a.getArg(e,"source");if(null!=this.sourceRoot&&(t=a.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};t=this._sources.indexOf(t);var n={source:t,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",r.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=i,s.prototype=Object.create(r.prototype),s.prototype.constructor=r,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),s.prototype.originalPositionFor=function(e){var t={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},n=u.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n],i=r.consumer.sourceContentFor(e,!0);if(i)return i}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(n.consumer.sources.indexOf(a.getArg(e,"source"))!==-1){var r=n.consumer.generatedPositionFor(e);if(r){return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}}return{line:null,column:null}},s.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,o=0;o<i.length;o++){var s=i[o],u=r.consumer._sources.at(s.source);null!==r.consumer.sourceRoot&&(u=a.join(r.consumer.sourceRoot,u)),this._sources.add(u),u=this._sources.indexOf(u);var c=r.consumer._names.at(s.name);this._names.add(c),c=this._names.indexOf(c);var l={source:u,generatedLine:s.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(r.generatedOffset.generatedLine===s.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:c};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}p(this.__generatedMappings,a.compareByGeneratedPositionsDeflated),p(this.__originalMappings,a.compareByOriginalPositions)},n.IndexedSourceMapConsumer=s},{"./array-set":159,"./base64-vlq":160,"./binary-search":162,"./quick-sort":164,"./util":168}],166:[function(e,t,n){function r(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new a,this._sourcesContents=null}var i=e("./base64-vlq"),o=e("./util"),s=e("./array-set").ArraySet,a=e("./mapping-list").MappingList;r.prototype._version=3,r.fromSourceMap=function(e){var t=e.sourceRoot,n=new r({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=o.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&n.setSourceContent(t,r)}),n},r.prototype.addMapping=function(e){var t=o.getArg(e,"generated"),n=o.getArg(e,"original",null),r=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},r.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){
|
||
if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=o.relative(i,r));var a=new s,u=new s;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=o.join(n,t.source)),null!=i&&(t.source=o.relative(i,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var c=t.source;null==c||a.has(c)||a.add(c);var l=t.name;null==l||u.has(l)||u.add(l)},this),this._sources=a,this._names=u,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),null!=i&&(t=o.relative(i,t)),this.setSourceContent(t,r))},this)},r.prototype._validateMapping=function(e,t,n,r){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},r.prototype._serializeMappings=function(){for(var e,t,n,r,s=0,a=1,u=0,c=0,l=0,p=0,f="",h=this._mappings.toArray(),d=0,m=h.length;d<m;d++){if(t=h[d],e="",t.generatedLine!==a)for(s=0;t.generatedLine!==a;)e+=";",a++;else if(d>0){if(!o.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=i.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=i.encode(r-p),p=r,e+=i.encode(t.originalLine-1-c),c=t.originalLine-1,e+=i.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=i.encode(n-l),l=n)),f+=e}return f},r.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=o.relative(t,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},r.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=r},{"./array-set":159,"./base64-vlq":160,"./mapping-list":163,"./util":168}],167:[function(e,t,n){function r(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[s]=!0,null!=r&&this.add(r)}var i=e("./source-map-generator").SourceMapGenerator,o=e("./util"),s="$$$isSourceNode$$$";r.fromStringWithSourceMap=function(e,t,n){function i(e,t){if(null===e||void 0===e.source)s.add(t);else{var i=n?o.join(n,e.source):e.source;s.add(new r(e.originalLine,e.originalColumn,i,t,e.name))}}var s=new r,a=e.split(/(\r?\n)/),u=function(){return a.shift()+(a.shift()||"")},c=1,l=0,p=null;return t.eachMapping(function(e){if(null!==p){if(!(c<e.generatedLine)){var t=a[0],n=t.substr(0,e.generatedColumn-l);return a[0]=t.substr(e.generatedColumn-l),l=e.generatedColumn,i(p,n),void(p=e)}i(p,u()),c++,l=0}for(;c<e.generatedLine;)s.add(u()),c++;if(l<e.generatedColumn){var t=a[0];s.add(t.substr(0,e.generatedColumn)),a[0]=t.substr(e.generatedColumn),l=e.generatedColumn}p=e},this),a.length>0&&(p&&i(p,u()),s.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=o.join(n,e)),s.setSourceContent(e,r))}),s},r.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},r.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},r.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[s]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},r.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[s]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},r.prototype.setSourceContent=function(e,t){this.sourceContents[o.toSetString(e)]=t},r.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][s]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,n=r.length;t<n;t++)e(o.fromSetString(r[t]),this.sourceContents[r[t]])},r.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},r.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new i(e),r=!1,o=null,s=null,a=null,u=null;return this.walk(function(e,i){t.code+=e,null!==i.source&&null!==i.line&&null!==i.column?(o===i.source&&s===i.line&&a===i.column&&u===i.name||n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name}),o=i.source,s=i.line,a=i.column,u=i.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,r=!1);for(var c=0,l=e.length;c<l;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===l?(o=null,r=!1):r&&n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},n.SourceNode=r},{"./source-map-generator":166,"./util":168}],168:[function(e,t,n){function r(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')}function i(e){var t=e.match(v);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function s(e){var t=e,r=i(e);if(r){if(!r.path)return e;t=r.path}for(var s,a=n.isAbsolute(t),u=t.split(/\/+/),c=0,l=u.length-1;l>=0;l--)s=u[l],"."===s?u.splice(l,1):".."===s?c++:c>0&&(""===s?(u.splice(l+1,c),c=0):(u.splice(l,2),c--));return t=u.join("/"),""===t&&(t=a?"/":"."),r?(r.path=t,o(r)):t}function a(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),r=i(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),o(n);if(n||t.match(y))return t;if(r&&!r.host&&!r.path)return r.host=t,o(r);var a="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=a,o(r)):a}function u(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function l(e){return f(e)?"$"+e:e}function p(e){return f(e)?e.slice(1):e}function f(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function d(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function m(e,t){return e===t?0:e>t?1:-1}function g(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=m(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:m(e.name,t.name))}n.getArg=r;var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;n.urlParse=i,n.urlGenerate=o,n.normalize=s,n.join=a,n.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(v)},n.relative=u;var b=function(){return!("__proto__"in Object.create(null))}();n.toSetString=b?c:l,n.fromSetString=b?c:p,n.compareByOriginalPositions=h,n.compareByGeneratedPositionsDeflated=d,n.compareByGeneratedPositionsInflated=g},{}],169:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":165,"./lib/source-map-generator":166,"./lib/source-node":167}],170:[function(e,t,n){(function(t){var r=e("./lib/request"),i=e("xtend"),o=e("builtin-status-codes"),s=e("url"),a=n;a.request=function(e,n){e="string"==typeof e?s.parse(e):i(e);var o=t.location.protocol.search(/^https?:$/)===-1?"http:":"",a=e.protocol||o,u=e.hostname||e.host,c=e.port,l=e.path||"/";u&&u.indexOf(":")!==-1&&(u="["+u+"]"),e.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new r(e);return n&&p.on("response",n),p},a.get=function(e,t){var n=a.request(e,t);return n.end(),n},a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":172,"builtin-status-codes":13,url:178,xtend:188}],171:[function(e,t,n){(function(e){function t(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function r(e){var n=t();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}n.fetch=i(e.fetch)&&i(e.ReadableStream),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(e){}var o,s=void 0!==e.ArrayBuffer,a=s&&i(e.ArrayBuffer.prototype.slice);n.arraybuffer=n.fetch||s&&r("arraybuffer"),n.msstream=!n.fetch&&a&&r("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&s&&r("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!t()&&i(t().overrideMimeType),n.vbArray=i(e.VBArray),o=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],172:[function(e,t,n){(function(n,r,i){function o(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":a.vbArray&&e?"text:vbarray":"text"}function s(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var a=e("./capability"),u=e("inherits"),c=e("./response"),l=e("readable-stream"),p=e("to-arraybuffer"),f=c.IncomingMessage,h=c.readyStates,d=t.exports=function(e){var t=this;l.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(n){t.setHeader(n,e.headers[n])});var n,r=!0;if("disable-fetch"===e.mode||"timeout"in e)r=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}t._mode=o(n,r),t.on("finish",function(){t._onFinish()})};u(d,l.Writable),d.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();m.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){return this._headers[e.toLowerCase()].value},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,o=e._headers,s=null;if("POST"!==t.method&&"PUT"!==t.method&&"PATCH"!==t.method&&"MERGE"!==t.method||(s=a.blobConstructor?new r.Blob(e._body.map(function(e){return p(e)}),{type:(o["content-type"]||{}).value||""}):i.concat(e._body).toString()),"fetch"===e._mode){var u=Object.keys(o).map(function(e){return[o[e].name,o[e].value]});r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)})}else{var c=e._xhr=new r.XMLHttpRequest;try{c.open(e._opts.method,e._opts.url,!0)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}"responseType"in c&&(c.responseType=e._mode.split(":")[0]),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in c&&c.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in t&&(c.timeout=t.timeout,c.ontimeout=function(){e.emit("timeout")}),Object.keys(o).forEach(function(e){c.setRequestHeader(o[e].name,o[e].value)}),e._response=null,c.onreadystatechange=function(){switch(c.readyState){case h.LOADING:case h.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(c.onprogress=function(){e._onXHRProgress()}),c.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{c.send(s)}catch(t){return void n.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){var e=this;s(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new f(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},d.prototype.end=function(e,t,n){var r=this;"function"==typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":171,"./response":173,_process:112,buffer:12,inherits:99,"readable-stream":151,"to-arraybuffer":175}],173:[function(e,t,n){(function(t,r,i){var o=e("./capability"),s=e("inherits"),a=e("readable-stream"),u=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=n.IncomingMessage=function(e,n,r){function s(){c.read().then(function(e){if(!u._destroyed){if(e.done)return void u.push(null);u.push(new i(e.value)),s()}}).catch(function(e){u.emit("error",e)})}var u=this;if(a.Readable.call(u),u._mode=r,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){t.nextTick(function(){u.emit("close")})}),"fetch"===r){u._fetchResponse=n,u.url=n.url,u.statusCode=n.status,u.statusMessage=n.statusText,n.headers.forEach(function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)});var c=n.body.getReader();s()}else{u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText;if(e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(t[2])):void 0!==u.headers[n]?u.headers[n]+=", "+t[2]:u.headers[n]=t[2],u.rawHeaders.push(t[1],t[2])}}),u._charset="x-user-defined",!o.overrideMimeType){var l=u.rawHeaders["mime-type"];if(l){var p=l.match(/;\s*charset=([^;])(;|$)/);p&&(u._charset=p[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};s(c,a.Readable),c.prototype._read=function(){},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new i(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new i(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);e.push(s)}else e.push(o,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;n=t.response,e.push(new i(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==u.LOADING||!n)break;e.push(new i(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==u.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":171,_process:112,buffer:12,inherits:99,"readable-stream":151}],174:[function(e,t,n){function r(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var a=e("buffer").Buffer,u=a.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},c=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,r=t.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},c.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},c.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:12}],175:[function(e,t,n){var r=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:12}],176:[function(e,t,n){"use strict";function r(e){if(!Array.isArray(e))throw new TypeError("tokens must be passed to TokenStream as an array.");this._tokens=e}t.exports=r,r.prototype.lookahead=function(e){if(this._tokens.length<=e)throw new Error("Cannot read past the end of a stream");return this._tokens[e]},r.prototype.peek=function(){if(0===this._tokens.length)throw new Error("Cannot read past the end of a stream");return this._tokens[0]},r.prototype.advance=function(){if(0===this._tokens.length)throw new Error("Cannot read past the end of a stream");return this._tokens.shift()},r.prototype.defer=function(e){this._tokens.unshift(e)}},{}],177:[function(e,t,n){(function(t){function r(e){for(var t=Object.create(null),n=0;n<e.length;++n)t[e[n]]=!0;return t}function i(e,t){return Array.prototype.slice.call(e,t||0)}function o(e){return e.split("")}function s(e,t){return t.indexOf(e)>=0}function a(e,t){for(var n=0,r=t.length;n<r;++n)if(e(t[n]))return t[n]}function u(e,t){if(t<=0)return"";if(1==t)return e;var n=u(e,t>>1);return n+=n,1&t&&(n+=e),n}function c(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function l(e,t){this.message=e,this.defs=t}function p(e,t,n){e===!0&&(e={});var r=e||{};if(n)for(var i in r)S(r,i)&&!S(t,i)&&l.croak("`"+i+"` is not a supported option",t);for(var i in t)S(t,i)&&(r[i]=e&&S(e,i)?e[i]:t[i]);return r}function f(e,t){var n=0;for(var r in t)S(t,r)&&(e[r]=t[r],n++);return n}function h(){}function d(){return!1}function m(){return!0}function g(){return this}function v(){return null}function y(e,t){e.indexOf(t)<0&&e.push(t)}function b(e,t){return e.replace(/\{(.+?)\}/g,function(e,n){return t&&t[n]})}function _(e,t){for(var n=e.length;--n>=0;)e[n]===t&&e.splice(n,1)}function x(e,t){function n(e,n){for(var r=[],i=0,o=0,s=0;i<e.length&&o<n.length;)t(e[i],n[o])<=0?r[s++]=e[i++]:r[s++]=n[o++];return i<e.length&&r.push.apply(r,e.slice(i)),o<n.length&&r.push.apply(r,n.slice(o)),r}function r(e){if(e.length<=1)return e;var t=Math.floor(e.length/2),i=e.slice(0,t),o=e.slice(t);return i=r(i),o=r(o),n(i,o)}return e.length<2?e.slice():r(e)}function w(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function k(e,t){return e.filter(function(e){return t.indexOf(e)>=0})}function E(e){function t(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function n(e){if(1==e.length)return r+="return str === "+t(e[0])+";";r+="switch(str){";for(var n=0;n<e.length;++n)r+="case "+t(e[n])+":";r+="return true}return false;"}e instanceof Array||(e=e.split(" "));var r="",i=[];e:for(var o=0;o<e.length;++o){for(var s=0;s<i.length;++s)if(i[s][0].length==e[o].length){i[s].push(e[o]);continue e}i.push([e[o]])}if(i.length>3){i.sort(function(e,t){return t.length-e.length}),r+="switch(str.length){";for(var o=0;o<i.length;++o){var a=i[o];r+="case "+a[0].length+":",n(a)}r+="}"}else n(e);return new Function("str",r)}function A(e,t){for(var n=e.length;--n>=0;)if(!t(e[n]))return!1;return!0}function C(){this._values=Object.create(null),this._size=0}function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof ue&&t.body===n)return!0;if(!(t instanceof Je&&t.car===n||t instanceof Ye&&t.expression===n&&!(t instanceof Ke)||t instanceof Ze&&t.expression===n||t instanceof et&&t.expression===n||t instanceof ot&&t.condition===n||t instanceof it&&t.left===n||t instanceof rt&&t.expression===n))return!1;n=t}}function O(e,t,r,i){arguments.length<4&&(i=ae),t=t?t.split(/\s+/):[];var o=t;i&&i.PROPS&&(t=t.concat(i.PROPS));for(var s="return function AST_"+e+"(props){ if (props) { ",a=t.length;--a>=0;)s+="this."+t[a]+" = props."+t[a]+";";var u=i&&new i;(u&&u.initialize||r&&r.initialize)&&(s+="this.initialize();"),s+="}}";var c=new Function(s)();if(u&&(c.prototype=u,c.BASE=i),i&&i.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=o,c.SUBCLASSES=[],e&&(c.prototype.TYPE=c.TYPE=e),r)for(a in r)S(r,a)&&(/^\$/.test(a)?c[a.substr(1)]=r[a]:c.prototype[a]=r[a]);return c.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==n&&(n["AST_"+e]=c),c}function F(e,t){var n=e.body;if(n instanceof ue)n._walk(t);else for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}function L(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}function B(e){return e>=97&&e<=122||e>=65&&e<=90||e>=170&&Qt.letter.test(String.fromCharCode(e))}function D(e){return e>=48&&e<=57}function R(e){return D(e)||B(e)}function M(e){return Qt.digit.test(String.fromCharCode(e))}function N(e){return Qt.non_spacing_mark.test(e)||Qt.space_combining_mark.test(e)}function P(e){return Qt.connector_punctuation.test(e)}function I(e){return!Ut(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function j(e){return 36==e||95==e||B(e)}function V(e){var t=e.charCodeAt(0);return j(t)||D(t)||8204==t||8205==t||N(e)||P(e)||M(t)}function U(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function z(e){if($t.test(e))return parseInt(e.substr(2),16);if(Ht.test(e))return parseInt(e.substr(1),8);var t=parseFloat(e);return t==e?t:void 0}function q(e,t,n,r,i){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}function $(e,t,n,r,i){throw new q(e,t,n,r,i)}function H(e,t,n){return e.type==t&&(null==n||e.value==n)}function W(e,t,n,r){function i(){return S.text.charAt(S.pos)}function o(e,t){var n=S.text.charAt(S.pos++);if(e&&!n)throw Zt;return Xt(n)?(S.newline_before=S.newline_before||!t,++S.line,S.col=0,t||"\r"!=n||"\n"!=i()||(++S.pos,n="\n")):++S.col,n}function s(e){for(;e-- >0;)o()}function a(e){return S.text.substr(S.pos,e.length)==e}function u(){for(var e=S.text,t=S.pos,n=S.text.length;t<n;++t){var r=e[t];if(Xt(r))return t}return-1}function c(e,t){var n=S.text.indexOf(e,S.pos);if(t&&n==-1)throw Zt;return n}function l(){S.tokline=S.line,S.tokcol=S.col,S.tokpos=S.pos}function p(n,r,i){S.regex_allowed="operator"==n&&!tn(r)||"keyword"==n&&zt(r)||"punc"==n&&Yt(r),T="punc"==n&&"."==r;var o={type:n,value:r,line:S.tokline,col:S.tokcol,pos:S.tokpos,endline:S.line,endcol:S.col,endpos:S.pos,nlb:S.newline_before,file:t};if(/^(?:num|string|regexp)$/i.test(n)&&(o.raw=e.substring(o.pos,o.endpos)),!i){o.comments_before=S.comments_before,S.comments_before=[];for(var s=0,a=o.comments_before.length;s<a;s++)o.nlb=o.nlb||o.comments_before[s].nlb}return S.newline_before=!1,new se(o)}function f(){for(;Gt(i());)o()}function h(e){for(var t,n="",r=0;(t=i())&&e(t,r++);)n+=o();return n}function d(e){$(e,t,S.tokline,S.tokcol,S.tokpos)}function m(e){var t=!1,n=!1,r=!1,i="."==e,o=h(function(o,s){var a=o.charCodeAt(0);switch(a){case 120:case 88:return!r&&(r=!0);case 101:case 69:return!!r||!t&&(t=n=!0);case 45:return n||0==s&&!e;case 43:return n;case n=!1,46:return!(i||r||t)&&(i=!0)}return R(a)});e&&(o=e+o),Ht.test(o)&&C.has_directive("use strict")&&d("Legacy octal literals are not allowed in strict mode");var s=z(o);if(!isNaN(s))return p("num",s);d("Invalid syntax: "+o)}function g(e){var t=o(!0,e);switch(t.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(y(2));case 117:return String.fromCharCode(y(4));case 10:return"";case 13:if("\n"==i())return o(!0,e),""}return t>="0"&&t<="7"?v(t):t}function v(e){var t=i();return t>="0"&&t<="7"&&(e+=o(!0),e[0]<="3"&&(t=i())>="0"&&t<="7"&&(e+=o(!0))),"0"===e?"\0":(e.length>0&&C.has_directive("use strict")&&d("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(e,8)))}function y(e){for(var t=0;e>0;--e){var n=parseInt(o(!0),16);isNaN(n)&&d("Invalid hex-character pattern in string"),t=t<<4|n}return t}function b(e){var t,n=S.regex_allowed,r=u();return r==-1?(t=S.text.substr(S.pos),S.pos=S.text.length):(t=S.text.substring(S.pos,r),S.pos=r),S.col=S.tokcol+(S.pos-S.tokpos),S.comments_before.push(p(e,t,!0)),S.regex_allowed=n,C}function _(){for(var e,t,n=!1,r="",s=!1;null!=(e=i());)if(n)"u"!=e&&d("Expecting UnicodeEscapeSequence -- uXXXX"),e=g(),V(e)||d("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,n=!1;else if("\\"==e)s=n=!0,o();else{if(!V(e))break;r+=o()}return jt(r)&&s&&(t=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(t.length)+t+r.slice(1)),r}function x(e){function t(e){if(!i())return e;var n=e+i();return Wt(n)?(o(),t(n)):e}return p("operator",t(e||o()))}function w(){switch(o(),i()){case"/":return o(),b("comment1");case"*":return o(),F()}return S.regex_allowed?L(""):x("/")}function k(){return o(),D(i().charCodeAt(0))?m("."):p("punc",".")}function E(){var e=_();return T?p("name",e):Vt(e)?p("atom",e):jt(e)?Wt(e)?p("operator",e):p("keyword",e):p("name",e)}function A(e,t){return function(n){try{return t(n)}catch(t){if(t!==Zt)throw t;d(e)}}}function C(e){if(null!=e)return L(e);for(r&&0==S.pos&&a("#!")&&(l(),s(2),b("comment5"));;){if(f(),l(),n){if(a("<!--")){s(4),b("comment3");continue}if(a("-->")&&S.newline_before){s(3),b("comment4");continue}}var t=i();if(!t)return p("eof");var u=t.charCodeAt(0);switch(u){case 34:case 39:return O(t);case 46:return k();case 47:var c=w();if(c===C)continue;return c}if(D(u))return m();if(Kt(t))return p("punc",o());if(qt(t))return x();if(92==u||j(u))return E();break}d("Unexpected character '"+t+"'")}var S={text:e,filename:t,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]},T=!1,O=A("Unterminated string constant",function(e){for(var t=o(),n="";;){var r=o(!0,!0);if("\\"==r)r=g(!0);else if(Xt(r))d("Unterminated string constant");else if(r==t)break;n+=r}var i=p("string",n);return i.quote=e,i}),F=A("Unterminated multiline comment",function(){var e=S.regex_allowed,t=c("*/",!0),n=S.text.substring(S.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return s(n.length+2),S.comments_before.push(p("comment2",n,!0)),S.regex_allowed=e,C}),L=A("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=o(!0);)if(Xt(t))d("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)r=!0,e+=t;else if("]"==t&&r)r=!1,e+=t;else{if("/"==t&&!r)break;"\\"==t?n=!0:e+=t}var i=_();try{return p("regexp",new RegExp(e,i))}catch(e){d(e.message)}});return C.context=function(e){return e&&(S=e),S},C.add_directive=function(e){S.directive_stack[S.directive_stack.length-1].push(e),void 0===S.directives[e]?S.directives[e]=1:S.directives[e]++},C.push_directives_stack=function(){S.directive_stack.push([])},C.pop_directives_stack=function(){for(var e=S.directive_stack[S.directive_stack.length-1],t=0;t<e.length;t++)S.directives[e[t]]--;S.directive_stack.pop()},C.has_directive=function(e){return void 0!==S.directives[e]&&S.directives[e]>0},C}function G(e,t){function n(e,t){return H(j.token,e,t)}function r(){return j.peeked||(j.peeked=j.input())}function i(){return j.prev=j.token,j.peeked?(j.token=j.peeked,j.peeked=null):j.token=j.input(),
|
||
j.in_directives=j.in_directives&&("string"==j.token.type||n("punc",";")),j.token}function o(){return j.prev}function s(e,t,n,r){var i=j.input.context();$(e,i.filename,null!=t?t:i.tokline,null!=n?n:i.tokcol,null!=r?r:i.tokpos)}function u(e,t){s(t,e.line,e.col)}function c(e){null==e&&(e=j.token),u(e,"Unexpected token: "+e.type+" ("+e.value+")")}function l(e,t){if(n(e,t))return i();u(j.token,"Unexpected token "+j.token.type+" «"+j.token.value+"», expected "+e+" «"+t+"»")}function f(e){return l("punc",e)}function h(){return!t.strict&&(j.token.nlb||n("eof")||n("punc","}"))}function d(e){n("punc",";")?i():e||h()||c()}function m(){f("(");var e=ie(!0);return f(")"),e}function g(e){return function(){var t=j.token,n=e(),r=o();return n.start=t,n.end=r,n}}function v(){(n("operator","/")||n("operator","/="))&&(j.peeked=null,j.token=j.input(j.token.value.substr(1)))}function y(){var e=R(wt);a(function(t){return t.name==e.name},j.labels)&&s("Label "+e.name+" defined twice"),f(":"),j.labels.push(e);var t=V();return j.labels.pop(),t instanceof ve||e.references.forEach(function(t){t instanceof Ne&&(t=t.label.start,s("Continue label `"+e.name+"` refers to non-IterationStatement.",t.line,t.col,t.pos))}),new ge({body:t,label:e})}function b(e){return new pe({body:(e=ie(!0),d(),e)})}function _(e){var t,n=null;h()||(n=R(Et,!0)),null!=n?(t=a(function(e){return e.name==n.name},j.labels),t||s("Undefined label "+n.name),n.thedef=t):0==j.in_loop&&s(e.TYPE+" not inside a loop or switch"),d();var r=new e({label:n});return t&&t.references.push(r),r}function x(){f("(");var e=null;return!n("punc",";")&&(e=n("keyword","var")?(i(),q(!0)):ie(!0,!0),n("operator","in"))?(e instanceof We&&e.definitions.length>1&&s("Only one variable declaration allowed in for..in loop"),i(),k(e)):w(e)}function w(e){f(";");var t=n("punc",";")?null:ie(!0);f(";");var r=n("punc",")")?null:ie(!0);return f(")"),new xe({init:e,condition:t,step:r,body:I(V)})}function k(e){var t=e instanceof We?e.definitions[0].name:null,n=ie(!0);return f(")"),new we({init:e,name:t,object:n,body:I(V)})}function E(){var e=m(),t=V(),r=null;return n("keyword","else")&&(i(),r=V()),new Pe({condition:e,body:t,alternative:r})}function A(){f("{");for(var e=[];!n("punc","}");)n("eof")&&c(),e.push(V());return i(),e}function C(){f("{");for(var e,t=[],r=null,s=null;!n("punc","}");)n("eof")&&c(),n("keyword","case")?(s&&(s.end=o()),r=[],s=new Ue({start:(e=j.token,i(),e),expression:ie(!0),body:r}),t.push(s),f(":")):n("keyword","default")?(s&&(s.end=o()),r=[],s=new Ve({start:(e=j.token,i(),f(":"),e),body:r}),t.push(s)):(r||c(),r.push(V()));return s&&(s.end=o()),i(),t}function S(){var e=A(),t=null,r=null;if(n("keyword","catch")){var a=j.token;i(),f("(");var u=R(xt);f(")"),t=new qe({start:a,argname:u,body:A(),end:o()})}if(n("keyword","finally")){var a=j.token;i(),r=new $e({start:a,body:A(),end:o()})}return t||r||s("Missing catch/finally blocks"),new ze({body:e,bcatch:t,bfinally:r})}function T(e,t){for(var r=[];r.push(new Xe({start:j.token,name:R(t?vt:gt),value:n("operator","=")?(i(),ie(!1,e)):null,end:o()})),n("punc",",");)i();return r}function O(){var e,t=j.token;switch(t.type){case"name":case"keyword":e=D(kt);break;case"num":e=new Tt({start:t,end:t,value:t.value});break;case"string":e=new St({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new Ot({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Pt({start:t,end:t});break;case"true":e=new It({start:t,end:t});break;case"null":e=new Lt({start:t,end:t})}break;case"operator":U(t.value)||s("Invalid getter/setter name: "+t.value,t.line,t.col,t.pos),e=D(kt)}return i(),e}function F(e,t,r){for(var o=!0,s=[];!n("punc",e)&&(o?o=!1:f(","),!t||!n("punc",e));)n("punc",",")&&r?s.push(new Rt({start:j.token,end:j.token})):s.push(ie(!1));return i(),s}function L(){var e=j.token;switch(i(),e.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return e.value;default:c()}}function B(){var e=j.token;switch(i(),e.type){case"name":case"operator":case"keyword":case"atom":return e.value;default:c()}}function D(e){var t=j.token.value;return new("this"==t?At:e)({name:String(t),start:j.token,end:j.token})}function R(e,t){if(!n("name"))return t||s("Name expected"),null;var r=D(e);return i(),r}function M(e,t,n){return"++"!=t&&"--"!=t||P(n)||s("Invalid use of "+t+" operator",null,e===nt?n.start.col-1:null),new e({operator:t,expression:n})}function N(e){return te(ee(!0),0,e)}function P(e){return!!t.cli||(e instanceof Qe||e instanceof kt)}function I(e){++j.in_loop;var t=e();return--j.in_loop,t}t=p(t,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0,cli:!1});var j={input:"string"==typeof e?W(e,t.filename,t.html5_comments,t.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};j.token=i();var V=g(function(){var e;switch(v(),j.token.type){case"string":var a=!1;j.in_directives===!0&&((H(r(),"punc",";")||r().nlb)&&j.token.raw.indexOf("\\")===-1?j.input.add_directive(j.token.value):j.in_directives=!1);var a=j.in_directives,u=b();return a?new le({start:u.body.start,end:u.body.end,quote:u.body.quote,value:u.body.value}):u;case"num":case"regexp":case"operator":case"atom":return b();case"name":return H(r(),"punc",":")?y():b();case"punc":switch(j.token.value){case"{":return new he({start:j.token,body:A(),end:o()});case"[":case"(":return b();case";":return j.in_directives=!1,i(),new de;default:c()}case"keyword":switch(e=j.token.value,i(),e){case"break":return _(Me);case"continue":return _(Ne);case"debugger":return d(),new ce;case"do":return new be({body:I(V),condition:(l("keyword","while"),e=m(),d(!0),e)});case"while":return new _e({condition:m(),body:I(V)});case"for":return x();case"function":return z(Oe);case"if":return E();case"return":return 0!=j.in_function||t.bare_returns||s("'return' outside of function"),new Be({value:n("punc",";")?(i(),null):h()?null:(e=ie(!0),d(),e)});case"switch":return new Ie({expression:m(),body:I(C)});case"throw":return j.token.nlb&&s("Illegal newline after 'throw'"),new De({value:(e=ie(!0),d(),e)});case"try":return S();case"var":return e=q(),d(),e;case"const":return e=G(),d(),e;case"with":return j.input.has_directive("use strict")&&s("Strict mode may not include a with statement"),new ke({expression:m(),body:V()})}}c()}),z=function(e){var t=e===Oe,r=n("name")?R(t?bt:_t):null;return t&&!r&&c(),f("("),new e({name:r,argnames:function(e,t){for(;!n("punc",")");)e?e=!1:f(","),t.push(R(yt));return i(),t}(!0,[]),body:function(e,t){++j.in_function,j.in_directives=!0,j.input.push_directives_stack(),j.in_loop=0,j.labels=[];var n=A();return j.input.pop_directives_stack(),--j.in_function,j.in_loop=e,j.labels=t,n}(j.in_loop,j.labels)})},q=function(e){return new We({start:o(),definitions:T(e,!1),end:o()})},G=function(){return new Ge({start:o(),definitions:T(!1,!0),end:o()})},X=function(e){var t=j.token;l("operator","new");var r,s=Y(!1);return n("punc","(")?(i(),r=F(")")):r=[],Z(new Ke({start:t,expression:s,args:r,end:o()}),e)},Y=function(e){if(n("operator","new"))return X(e);var t=j.token;if(n("punc")){switch(t.value){case"(":i();var r=ie(!0);return r.start=t,r.end=j.token,f(")"),Z(r,e);case"[":return Z(K(),e);case"{":return Z(Q(),e)}c()}if(n("keyword","function")){i();var s=z(Te);return s.start=t,s.end=o(),Z(s,e)}if(sn[j.token.type])return Z(O(),e);c()},K=g(function(){return f("["),new at({elements:F("]",!t.strict,!0)})}),J=g(function(){return z(Se)}),Q=g(function(){f("{");for(var e=!0,r=[];!n("punc","}")&&(e?e=!1:f(","),t.strict||!n("punc","}"));){var s=j.token,a=s.type,u=L();if("name"==a&&!n("punc",":")){if("get"==u){r.push(new ft({start:s,key:O(),value:J(),end:o()}));continue}if("set"==u){r.push(new pt({start:s,key:O(),value:J(),end:o()}));continue}}f(":"),r.push(new lt({start:s,quote:s.quote,key:u,value:ie(!1),end:o()}))}return i(),new ut({properties:r})}),Z=function(e,t){var r=e.start;if(n("punc","."))return i(),Z(new Ze({start:r,expression:e,property:B(),end:o()}),t);if(n("punc","[")){i();var s=ie(!0);return f("]"),Z(new et({start:r,expression:e,property:s,end:o()}),t)}return t&&n("punc","(")?(i(),Z(new Ye({start:r,expression:e,args:F(")"),end:o()}),!0)):e},ee=function(e){var t=j.token;if(n("operator")&&en(t.value)){i(),v();var r=M(nt,t.value,ee(e));return r.start=t,r.end=o(),r}for(var s=Y(e);n("operator")&&tn(j.token.value)&&!j.token.nlb;)s=M(rt,j.token.value,s),s.start=t,s.end=j.token,i();return s},te=function(e,t,r){var o=n("operator")?j.token.value:null;"in"==o&&r&&(o=null);var s=null!=o?rn[o]:null;if(null!=s&&s>t){i();var a=te(ee(!0),s,r);return te(new it({start:e.start,left:e,operator:o,right:a,end:a.end}),t,r)}return e},ne=function(e){var t=j.token,r=N(e);if(n("operator","?")){i();var s=ie(!1);return f(":"),new ot({start:t,condition:r,consequent:s,alternative:ie(!1,e),end:o()})}return r},re=function(e){var t=j.token,r=ne(e),a=j.token.value;if(n("operator")&&nn(a)){if(P(r))return i(),new st({start:t,left:r,operator:a,right:re(e),end:o()});s("Invalid assignment")}return r},ie=function(e,t){var o=j.token,s=re(t);return e&&n("punc",",")?(i(),new Je({start:o,car:s,cdr:ie(!0,t),end:r()})):s};return t.expression?ie(!0):function(){var e=j.token,r=[];for(j.input.push_directives_stack();!n("eof");)r.push(V());j.input.pop_directives_stack();var i=o(),s=t.toplevel;return s?(s.body=s.body.concat(r),s.end=i):s=new Ae({start:e,body:r,end:i}),s}()}function X(e,t){L.call(this),this.before=e,this.after=t}function Y(e,t,n){this.name=n.name,this.orig=[n],this.scope=e,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.index=t,this.id=Y.next_id++}function K(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function J(e){function t(e,t){return e.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}function n(n,r){function i(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+n.replace(/\x22/g,'\\"')+'"'}var s=0,a=0;switch(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(t,r){switch(t){case'"':return++s,'"';case"'":return++a,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return e.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-7]/.test(n.charAt(r+1))?"\\x00":"\\0"}return t}),e.ascii_only&&(n=t(n)),e.quote_style){case 1:return i();case 2:return o();case 3:return"'"==r?i():o();default:return s>a?i():o()}}function r(t,r){var i=n(t,r);return e.inline_script&&(i=i.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),i=i.replace(/\x3c!--/g,"\\x3c!--"),i=i.replace(/--\x3e/g,"--\\x3e")),i}function i(n){return n=n.toString(),e.ascii_only&&(n=t(n,!0)),n}function o(t){return u(" ",e.indent_start+A-t*e.indent_level)}function s(){return D.charAt(D.length-1)}function a(t){t=String(t);var n=t.charAt(0);if(L&&(L=!1,n&&!(";}".indexOf(n)<0)||/[;]$/.test(D)||(e.semicolons||M(n)?(O+=";",C++,T++):(R(),O+="\n",T++,S++,C=0,/^\s+$/.test(t)&&(L=!0)),e.beautify||(F=!1))),!e.beautify&&e.preserve_line&&q[q.length-1])for(var r=q[q.length-1].start.line;S<r;)R(),O+="\n",T++,S++,C=0,F=!1;if(F){var i=s();(V(i)&&(V(n)||"\\"==n)||"/"==n&&n==i||("+"==n||"-"==n)&&n==D)&&(O+=" ",C++,T++),F=!1}O+=t,T+=t.length;var o=t.split(/\r?\n/),a=o.length-1;S+=a,C+=o[0].length,a>0&&(R(),C=o[a].length),D=t}function c(){L=!1,a(";")}function l(){return A+e.indent_level}function f(e){var t;return a("{"),j(),I(l(),function(){t=e()}),P(),a("}"),t}function g(e){a("(");var t=e();return a(")"),t}function v(e){a("[");var t=e();return a("]"),t}function y(){a(","),N()}function b(){a(":"),e.space_colon&&N()}function _(){return B&&R(),O}e=p(e,{indent_start:0,indent_level:4,quote_keys:!1,space_colon:!0,ascii_only:!1,unescape_regexps:!1,inline_script:!1,width:80,max_line_len:!1,beautify:!1,source_map:null,bracketize:!1,semicolons:!0,comments:!1,shebang:!0,preserve_line:!1,screw_ie8:!0,preamble:null,quote_style:0,keep_quoted_props:!1,wrap_iife:!1},!0);var x=d;if(e.comments){var w=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var k=e.comments.lastIndexOf("/");w=new RegExp(e.comments.substr(1,k-1),e.comments.substr(k+1))}x=w instanceof RegExp?function(e){return"comment5"!=e.type&&w.test(e.value)}:"function"==typeof w?function(e){return"comment5"!=e.type&&w(this,e)}:"some"===w?K:m}var A=0,C=0,S=1,T=0,O="",F=!1,L=!1,B=0,D=null,R=e.max_line_len?function(){if(C>e.max_line_len){if(B){var t=O.slice(0,B),n=O.slice(B);O=t+"\n"+n,S++,T++,C=n.length}C>e.max_line_len&&ae.warn("Output exceeds {max_line_len} characters",e)}B=0}:h,M=E("( [ + * / - , ."),N=e.beautify?function(){a(" ")}:function(){F=!0},P=e.beautify?function(t){e.beautify&&a(o(t?.5:0))}:h,I=e.beautify?function(e,t){e===!0&&(e=l());var n=A;A=e;var r=t();return A=n,r}:function(e,t){return t()},j=e.beautify?function(){a("\n")}:e.max_line_len?function(){R(),B=O.length}:h,U=e.beautify?function(){a(";")}:function(){L=!0},z=e.source_map?function(t,n){try{t&&e.source_map.add(t.file||"?",S,C,t.line,t.col,n||"name"!=t.type?n:t.value)}catch(e){ae.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.file,line:t.line,col:t.col,cline:S,ccol:C,name:n||""})}}:h,q=[];return{get:_,toString:_,indent:P,indentation:function(){return A},current_width:function(){return C-A},should_break:function(){return e.width&&this.current_width()>=e.width},newline:j,print:a,space:N,comma:y,colon:b,last:function(){return D},semicolon:U,force_semicolon:c,to_ascii:t,print_name:function(e){a(i(e))},print_string:function(e,t,n){var i=r(e,t);n===!0&&i.indexOf("\\")===-1&&(un.test(O)||c(),c()),a(i)},encode_string:r,next_indent:l,with_indent:I,with_block:f,with_parens:g,with_square:v,add_mapping:z,option:function(t){return e[t]},comment_filter:x,line:function(){return S},col:function(){return C},pos:function(){return T},push_node:function(e){q.push(e)},pop_node:function(){return q.pop()},parent:function(e){return q[q.length-2-(e||0)]}}}function Q(e,t){if(!(this instanceof Q))return new Q(e,t);X.call(this,this.before,this.after),this.options=p(e,{sequences:!t,properties:!t,dead_code:!t,drop_debugger:!t,unsafe:!1,unsafe_comps:!1,unsafe_math:!1,unsafe_proto:!1,conditionals:!t,comparisons:!t,evaluate:!t,booleans:!t,loops:!t,unused:!t,toplevel:!(!e||!e.top_retain),top_retain:null,hoist_funs:!t,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!t,join_vars:!t,collapse_vars:!t,reduce_vars:!t,cascade:!t,side_effects:!t,pure_getters:!1,pure_funcs:null,negate_iife:!t,screw_ie8:!0,drop_console:!1,angular:!1,expression:!1,warnings:!0,global_defs:{},passes:1},!0);var n=this.options.pure_funcs;this.pure_funcs="function"==typeof n?n:n?function(e){return n.indexOf(e.expression.print_to_string())<0}:m;var r=this.options.top_retain;r instanceof RegExp?this.top_retain=function(e){return r.test(e.name)}:"function"==typeof r?this.top_retain=r:r&&("string"==typeof r&&(r=r.split(/,/)),this.top_retain=function(e){return r.indexOf(e.name)>=0});var i=this.options.sequences;this.sequences_limit=1==i?200:0|i,this.warnings_produced={}}function Z(e){function t(t,i,o,s,a,u){if(r){var c=r.originalPositionFor({line:s,column:a});if(null===c.source)return;t=c.source,s=c.line,a=c.column,u=c.name||u}n.addMapping({generated:{line:i+e.dest_line_diff,column:o},original:{line:s+e.orig_line_diff,column:a},source:t,name:u})}e=p(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new re.SourceMapGenerator({file:e.file,sourceRoot:e.root}),r=e.orig&&new re.SourceMapConsumer(e.orig);return r&&Array.isArray(e.orig.sources)&&r._sources.toArray().forEach(function(e){var t=r.sourceContentFor(e,!0);t&&n.setSourceContent(e,t)}),{add:t,get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}function ee(){function e(e){y(t,e)}var t=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(t){Object.getOwnPropertyNames(t).map(e),t.prototype&&Object.getOwnPropertyNames(t.prototype).map(e)}),t}function te(e,t){function n(e){return!!I(e)&&(!(g.indexOf(e)>=0)&&(!(u.indexOf(e)>=0)&&(t.only_cache?c.props.has(e):!/^[0-9.]+$/.test(e))))}function r(e){return!(h&&e in v)&&(!(f&&!f.test(e))&&(!(u.indexOf(e)>=0)&&(c.props.has(e)||m.indexOf(e)>=0)))}function i(e,t){if(t)return void(v[e]=!0);n(e)&&y(m,e),r(e)||y(g,e)}function o(e){if(!r(e))return e;var t=c.props.get(e);if(!t){if(d){var i="_$"+e+"$"+l+"_";!n(i)||h&&i in v||(t=i)}if(!t)do{t=an(++c.cname)}while(!n(t)||h&&t in v);c.props.set(e,t)}return t}function s(e,t){var n={};try{!function e(r){r.walk(new L(function(r){if(r instanceof Je)return e(r.cdr),!0;if(r instanceof St)return i(r.value,t),!0;if(r instanceof ot)return e(r.consequent),e(r.alternative),!0;throw n}))}(e)}catch(e){if(e!==n)throw e}}function a(e){return e.transform(new X(function(e){return e instanceof Je?e.cdr=a(e.cdr):e instanceof St?e.value=o(e.value):e instanceof ot&&(e.consequent=a(e.consequent),e.alternative=a(e.alternative)),e}))}t=p(t,{reserved:null,cache:null,only_cache:!1,regex:null,ignore_quoted:!1,debug:!1});var u=t.reserved;null==u&&(u=ee());var c=t.cache;null==c&&(c={cname:-1,props:new C});var l,f=t.regex,h=t.ignore_quoted,d=t.debug!==!1;d&&(l=t.debug===!0?"":t.debug);var m=[],g=[],v={};return e.walk(new L(function(e){e instanceof lt?i(e.key,h&&e.quote):e instanceof ct?i(e.key.name):e instanceof Ze?i(e.property):e instanceof et&&s(e.property,h)})),e.transform(new X(function(e){e instanceof lt?h&&e.quote||(e.key=o(e.key)):e instanceof ct?e.key.name=o(e.key.name):e instanceof Ze?e.property=o(e.property):e instanceof et&&(h||(e.property=a(e.property)))}))}var ne=e("util"),re=e("source-map"),ie=n;l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.name="DefaultsError",c(l),l.croak=function(e,t){throw new l(e,t)};var oe=function(){function e(e,o,s){function a(){var a=o(e[u],u),p=a instanceof r;return p&&(a=a.v),a instanceof t?(a=a.v,a instanceof n?l.push.apply(l,s?a.v.slice().reverse():a.v):l.push(a)):a!==i&&(a instanceof n?c.push.apply(c,s?a.v.slice().reverse():a.v):c.push(a)),p}var u,c=[],l=[];if(e instanceof Array)if(s){for(u=e.length;--u>=0&&!a(););c.reverse(),l.reverse()}else for(u=0;u<e.length&&!a();++u);else for(u in e)if(S(e,u)&&a())break;return l.concat(c)}function t(e){this.v=e}function n(e){this.v=e}function r(e){this.v=e}e.at_top=function(e){return new t(e)},e.splice=function(e){return new n(e)},e.last=function(e){return new r(e)};var i=e.skip={};return e}();C.prototype={set:function(e,t){return this.has(e)||++this._size,this._values["$"+e]=t,this},add:function(e,t){return this.has(e)?this.get(e).push(t):this.set(e,[t]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var t in this._values)e(this._values[t],t.substr(1))},size:function(){return this._size},map:function(e){var t=[];for(var n in this._values)t.push(e(this._values[n],n.substr(1)));return t},toObject:function(){return this._values}},C.fromObject=function(e){var t=new C;return t._size=f(t._values,e),t};var se=O("Token","type value line col pos endline endcol endpos nlb comments_before file raw",{},null),ae=O("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new X(function(e){if(e!==t)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);ae.warn_function=null,ae.warn=function(e,t){ae.warn_function&&ae.warn_function(b(e,t))};var ue=O("Statement",null,{$documentation:"Base class of all statements"}),ce=O("Debugger",null,{$documentation:"Represents a debugger statement"},ue),le=O("Directive","value scope quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",scope:"[AST_Scope/S] The scope that this directive affects",quote:"[string] the original quote character"}},ue),pe=O("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},ue),fe=O("Block","body",{$documentation:"A body of statements (usually bracketed)",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(e){return e._visit(this,function(){F(this,e)})}},ue),he=O("BlockStatement",null,{$documentation:"A block statement"},fe),de=O("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)",_walk:function(e){return e._visit(this)}},ue),me=O("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},ue),ge=O("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var t=this._clone(e);if(e){var n=t.label.references,r=this.label;t.walk(new L(function(e){e instanceof Re&&e.label&&e.label.thedef===r&&n.push(e)}))}return t}},me),ve=O("IterationStatement",null,{$documentation:"Internal class. All loops inherit from it."},me),ye=O("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},ve),be=O("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},ye),_e=O("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},ye),xe=O("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},ve),we=O("ForIn","init name object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",name:"[AST_SymbolRef?] the loop variable, only if `init` is AST_Var",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},ve),ke=O("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},me),Ee=O("Scope","directives variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{directives:"[string*/S] an array of directives declared in this scope",variables:"[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},fe),Ae=O("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(e){var t=this,n=[],r=[];e.forEach(function(e){var t=e.lastIndexOf(":");n.push(e.substr(0,t)),r.push(e.substr(t+1))});var i="(function("+r.join(",")+"){ '$ORIG'; })("+n.join(",")+")";return i=G(i),i=i.transform(new X(function(e){if(e instanceof le&&"$ORIG"==e.value)return oe.splice(t.body)}))},wrap_commonjs:function(e,t){var n=this,r=[];t&&(n.figure_out_scope(),n.walk(new L(function(e){e instanceof mt&&e.definition().global&&(a(function(t){return t.name==e.name},r)||r.push(e))})));var i="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+e+"'] = exports; }({}, (function(){return this}())))";return i=G(i),i=i.transform(new X(function(e){if(e instanceof le)switch(e.value){case"$ORIG":return oe.splice(n.body);case"$EXPORTS":var t=[];return r.forEach(function(e){t.push(new pe({body:new st({left:new et({expression:new kt({name:"exports"}),property:new St({value:e.name})}),operator:"=",right:new kt(e)})}))}),oe.splice(t)}}))}},Ee),Ce=O("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(e){return e._visit(this,function(){this.name&&this.name._walk(e);for(var t=this.argnames,n=0,r=t.length;n<r;n++)t[n]._walk(e);F(this,e)})}},Ee),Se=O("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},Ce),Te=O("Function",null,{$documentation:"A function expression"},Ce),Oe=O("Defun",null,{$documentation:"A function definition"},Ce),Fe=O("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ue),Le=O("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},Fe),Be=O("Return",null,{$documentation:"A `return` statement"},Le),De=O("Throw",null,{$documentation:"A `throw` statement"},Le),Re=O("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},Fe),Me=O("Break",null,{$documentation:"A `break` statement"},Re),Ne=O("Continue",null,{$documentation:"A `continue` statement"},Re),Pe=O("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},me),Ie=O("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),F(this,e)})}},fe),je=O("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},fe),Ve=O("Default",null,{$documentation:"A `default` switch branch"},je),Ue=O("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),F(this,e)})}},je),ze=O("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(e){return e._visit(this,function(){F(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},fe),qe=O("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname._walk(e),F(this,e)})}},fe),$e=O("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},fe),He=O("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var t=this.definitions,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}},ue),We=O("Var",null,{$documentation:"A `var` statement"},He),Ge=O("Const",null,{$documentation:"A `const` statement"},He),Xe=O("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),Ye=O("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e);for(var t=this.args,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}}),Ke=O("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Ye),Je=O("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(e,t){var n=new Je(e);return n.car=e,n.cdr=t,n},$from_array:function(e){if(0==e.length)return null;if(1==e.length)return e[0].clone();for(var t=null,n=e.length;--n>=0;)t=Je.cons(e[n],t);for(var r=t;r;){if(r.cdr&&!r.cdr.cdr){r.cdr=r.cdr.car;break}r=r.cdr}return t},to_array:function(){for(var e=this,t=[];e;){if(t.push(e.car),e.cdr&&!(e.cdr instanceof Je)){t.push(e.cdr);break}e=e.cdr}return t},add:function(e){for(var t=this;t;){if(!(t.cdr instanceof Je)){var n=Je.cons(t.cdr,e);return t.cdr=n}t=t.cdr}},len:function(){return this.cdr instanceof Je?this.cdr.len()+1:2},_walk:function(e){return e._visit(this,function(){this.car._walk(e),this.cdr&&this.cdr._walk(e)})}}),Qe=O("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ze=O("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},Qe),et=O("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},Qe),tt=O("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),nt=O("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},tt),rt=O("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"
|
||
},tt),it=O("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),ot=O("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),st=O("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},it),at=O("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var t=this.elements,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}}),ut=O("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(e){return e._visit(this,function(){for(var t=this.properties,n=0,r=t.length;n<r;n++)t[n]._walk(e)})}}),ct=O("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(e){return e._visit(this,function(){this.value._walk(e)})}}),lt=O("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},ct),pt=O("ObjectSetter",null,{$documentation:"An object setter property"},ct),ft=O("ObjectGetter",null,{$documentation:"An object getter property"},ct),ht=O("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),dt=O("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},ht),mt=O("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},ht),gt=O("SymbolVar",null,{$documentation:"Symbol defining a variable"},mt),vt=O("SymbolConst",null,{$documentation:"A constant declaration"},mt),yt=O("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},gt),bt=O("SymbolDefun",null,{$documentation:"Symbol defining a function"},mt),_t=O("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},mt),xt=O("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},mt),wt=O("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},ht),kt=O("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},ht),Et=O("LabelRef",null,{$documentation:"Reference to a label symbol"},ht),At=O("This",null,{$documentation:"The `this` symbol"},ht),Ct=O("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),St=O("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},Ct),Tt=O("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},Ct),Ot=O("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},Ct),Ft=O("Atom",null,{$documentation:"Base class for atoms"},Ct),Lt=O("Null",null,{$documentation:"The `null` atom",value:null},Ft),Bt=O("NaN",null,{$documentation:"The impossible value",value:NaN},Ft),Dt=O("Undefined",null,{$documentation:"The `undefined` value",value:void 0},Ft),Rt=O("Hole",null,{$documentation:"A hole in an array",value:void 0},Ft),Mt=O("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},Ft),Nt=O("Boolean",null,{$documentation:"Base class for booleans"},Ft),Pt=O("False",null,{$documentation:"The `false` atom",value:!1},Nt),It=O("True",null,{$documentation:"The `true` atom",value:!0},Nt);L.prototype={_visit:function(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:h);return!n&&t&&t.call(e),this.pop(e),n},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof Ce?this.directives=Object.create(this.directives):e instanceof le&&!this.directives[e.value]&&(this.directives[e.value]=e),this.stack.push(e)},pop:function(e){this.stack.pop(),e instanceof Ce&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var t=this.stack,n=t.length;--n>=0;){var r=t[n];if(r instanceof e)return r}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Ee)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof le))break;if(i.value==e)return i}},in_boolean_context:function(){for(var e=this.stack,t=e.length,n=e[--t];t>0;){var r=e[--t];if(r instanceof Pe&&r.condition===n||r instanceof ot&&r.condition===n||r instanceof ye&&r.condition===n||r instanceof xe&&r.condition===n||r instanceof nt&&"!"==r.operator&&r.expression===n)return!0;if(!(r instanceof it)||"&&"!=r.operator&&"||"!=r.operator)return!1;n=r}},loopcontrol_target:function(e){var t=this.stack;if(e)for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof ge&&r.label.name==e.name)return r.body}else for(var n=t.length;--n>=0;){var r=t[n];if(r instanceof Ie||r instanceof ve)return r}}};var jt="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Vt="false null true",Ut="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield "+Vt+" "+jt,zt="return new delete throw else case";jt=E(jt),Ut=E(Ut),zt=E(zt),Vt=E(Vt);var qt=E(o("+-*&%=<>!?|~^")),$t=/^0x[0-9a-f]+$/i,Ht=/^0[0-7]+$/,Wt=E(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Gt=E(o(" \n\r\t\f\v \u2028\u2029 \ufeff")),Xt=E(o("\n\r\u2028\u2029")),Yt=E(o("[{(,.;:")),Kt=E(o("[]{}(),;:")),Jt=E(o("gmsiy")),Qt={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q.prototype.name="SyntaxError",c(q);var Zt={},en=E(["typeof","void","delete","--","++","!","~","-","+"]),tn=E(["--","++"]),nn=E(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),rn=function(e,t){for(var n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.length;++i)t[r[i]]=n+1;return t}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),on=r(["for","do","while","switch"]),sn=r(["atom","num","string","regexp","name"]);X.prototype=new L,function(e){function t(t,n){t.DEFMETHOD("transform",function(t,r){var i,o;return t.push(this),t.before&&(i=t.before(this,n,r)),i===e&&(t.after?(t.stack[t.stack.length-1]=i=this,n(i,t),(o=t.after(i,r))!==e&&(i=o)):(i=this,n(i,t))),t.pop(this),i})}function n(e,t){return oe(e,function(e){return e.transform(t,!0)})}t(ae,h),t(ge,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),t(pe,function(e,t){e.body=e.body.transform(t)}),t(fe,function(e,t){e.body=n(e.body,t)}),t(ye,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),t(xe,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),t(we,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),t(ke,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),t(Le,function(e,t){e.value&&(e.value=e.value.transform(t))}),t(Re,function(e,t){e.label&&(e.label=e.label.transform(t))}),t(Pe,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),t(Ie,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(Ue,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),t(ze,function(e,t){e.body=n(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))}),t(qe,function(e,t){e.argname=e.argname.transform(t),e.body=n(e.body,t)}),t(He,function(e,t){e.definitions=n(e.definitions,t)}),t(Xe,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),t(Ce,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body=n(e.body,t)}),t(Ye,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),t(Je,function(e,t){e.car=e.car.transform(t),e.cdr=e.cdr.transform(t)}),t(Ze,function(e,t){e.expression=e.expression.transform(t)}),t(et,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),t(tt,function(e,t){e.expression=e.expression.transform(t)}),t(it,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),t(ot,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),t(at,function(e,t){e.elements=n(e.elements,t)}),t(ut,function(e,t){e.properties=n(e.properties,t)}),t(ct,function(e,t){e.value=e.value.transform(t)})}(),Y.next_id=1,Y.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.undeclared||!e.eval&&(this.scope.uses_eval||this.scope.uses_with)||e.keep_fnames&&(this.orig[0]instanceof _t||this.orig[0]instanceof bt)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n=this.scope,r=this.orig[0];!e.screw_ie8&&r instanceof _t&&(n=n.parent_scope);var i;e.screw_ie8&&r instanceof xt&&(i=n.parent_scope.find_variable(r))?this.mangled_name=i.mangled_name||i.name:this.mangled_name=n.next_mangled(e,this),this.global&&t&&t.set(this.name,this.mangled_name)}}},Ae.DEFMETHOD("figure_out_scope",function(e){e=p(e,{screw_ie8:!0,cache:null});var t=this,n=t.parent_scope=null,r=new C,i=null,o=new L(function(t,o){if(t instanceof qe){var s=n;return n=new Ee(t),n.init_scope_vars(s),o(),n=s,!0}if(t instanceof Ee){t.init_scope_vars(n);var s=n,a=i,u=r;return i=n=t,r=new C,o(),n=s,i=a,r=u,!0}if(t instanceof ge){var c=t.label;if(r.has(c.name))throw new Error(b("Label {name} defined twice",c));return r.set(c.name,c),o(),r.del(c.name),!0}if(t instanceof ke)for(var l=n;l;l=l.parent_scope)l.uses_with=!0;else if(t instanceof ht&&(t.scope=n),t instanceof wt&&(t.thedef=t,t.references=[]),t instanceof _t)i.def_function(t);else if(t instanceof bt)(t.scope=i.parent_scope).def_function(t);else if(t instanceof gt||t instanceof vt){if(i.def_variable(t),i!==n){t.mark_enclosed(e);var p=n.find_variable(t);t.thedef!==p&&(t.thedef=p,t.reference(e))}}else if(t instanceof xt)n.def_variable(t);else if(t instanceof Et){var f=r.get(t.name);if(!f)throw new Error(b("Undefined label {name} [{line},{col}]",{name:t.name,line:t.start.line,col:t.start.col}));t.thedef=f}});t.walk(o);var s=null,o=(t.globals=new C,new L(function(n,r){if(n instanceof Ce){var i=s;return s=n,r(),s=i,!0}if(n instanceof Re&&n.label)return n.label.thedef.references.push(n),!0;if(n instanceof kt){var a=n.name;if("eval"==a&&o.parent()instanceof Ye)for(var u=n.scope;u&&!u.uses_eval;u=u.parent_scope)u.uses_eval=!0;var c=n.scope.find_variable(a);return n.scope instanceof Ce&&"arguments"==a&&(n.scope.uses_arguments=!0),c||(c=t.def_global(n)),n.thedef=c,n.reference(e),!0}}));t.walk(o),e.screw_ie8||t.walk(new L(function(n,r){if(n instanceof xt){var i=n.name,o=n.thedef.references,s=n.thedef.scope.parent_scope,a=s.find_variable(i)||t.globals.get(i)||s.def_variable(n);return o.forEach(function(t){t.thedef=a,t.reference(e)}),n.thedef=a,!0}})),e.cache&&(this.cname=e.cache.cname)}),Ae.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new Y(this,t.size(),e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),Ee.DEFMETHOD("init_scope_vars",function(e){this.variables=new C,this.functions=new C,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),Ce.DEFMETHOD("init_scope_vars",function(){Ee.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new gt({name:"arguments",start:this.start,end:this.end}))}),ht.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(y(n.enclosed,t),e.keep_fnames&&n.functions.each(function(e){y(t.scope.enclosed,e)}),n!==t.scope);)n=n.parent_scope}),ht.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),Ee.DEFMETHOD("find_variable",function(e){return e instanceof ht&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),Ee.DEFMETHOD("def_function",function(e){this.functions.set(e.name,this.def_variable(e))}),Ee.DEFMETHOD("def_variable",function(e){var t;return this.variables.has(e.name)?(t=this.variables.get(e.name),t.orig.push(e)):(t=new Y(this,this.variables.size(),e),this.variables.set(e.name,t),t.global=!this.parent_scope),e.thedef=t}),Ee.DEFMETHOD("next_mangled",function(e){var t=this.enclosed;e:for(;;){var n=an(++this.cname);if(I(n)&&!(e.except.indexOf(n)>=0)){for(var r=t.length;--r>=0;){var i=t[r],o=i.mangled_name||i.unmangleable(e)&&i.name;if(n==o)continue e}return n}}}),Te.DEFMETHOD("next_mangled",function(e,t){for(var n=t.orig[0]instanceof yt&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var i=Ce.prototype.next_mangled.call(this,e,t);if(!r||r!=i)return i}}),ht.DEFMETHOD("unmangleable",function(e){return this.definition().unmangleable(e)}),dt.DEFMETHOD("unmangleable",function(){return!0}),wt.DEFMETHOD("unmangleable",function(){return!1}),ht.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),ht.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),Et.DEFMETHOD("undeclared",function(){return!1}),wt.DEFMETHOD("undeclared",function(){return!1}),ht.DEFMETHOD("definition",function(){return this.thedef}),ht.DEFMETHOD("global",function(){return this.definition().global}),Ae.DEFMETHOD("_default_mangler_options",function(e){return p(e,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!0,keep_fnames:!1})}),Ae.DEFMETHOD("mangle_names",function(e){e=this._default_mangler_options(e),e.except.push("arguments");var t=-1,n=[];e.cache&&this.globals.each(function(t){e.except.indexOf(t.name)<0&&n.push(t)});var r=new L(function(i,o){if(i instanceof ge){var s=t;return o(),t=s,!0}if(i instanceof Ee){var a=(r.parent(),[]);return i.variables.each(function(t){e.except.indexOf(t.name)<0&&a.push(t)}),void n.push.apply(n,a)}if(i instanceof wt){var u;do{u=an(++t)}while(!I(u));return i.mangled_name=u,!0}if(e.screw_ie8&&i instanceof xt)return void n.push(i.definition())});this.walk(r),n.forEach(function(t){t.mangle(e)}),e.cache&&(e.cache.cname=this.cname)}),Ae.DEFMETHOD("compute_char_frequency",function(e){e=this._default_mangler_options(e);var t=new L(function(t){t instanceof Ct?an.consider(t.print_to_string()):t instanceof Be?an.consider("return"):t instanceof De?an.consider("throw"):t instanceof Ne?an.consider("continue"):t instanceof Me?an.consider("break"):t instanceof ce?an.consider("debugger"):t instanceof le?an.consider(t.value):t instanceof _e?an.consider("while"):t instanceof be?an.consider("do while"):t instanceof Pe?(an.consider("if"),t.alternative&&an.consider("else")):t instanceof We?an.consider("var"):t instanceof Ge?an.consider("const"):t instanceof Ce?an.consider("function"):t instanceof xe?an.consider("for"):t instanceof we?an.consider("for in"):t instanceof Ie?an.consider("switch"):t instanceof Ue?an.consider("case"):t instanceof Ve?an.consider("default"):t instanceof ke?an.consider("with"):t instanceof pt?an.consider("set"+t.key):t instanceof ft?an.consider("get"+t.key):t instanceof lt?an.consider(t.key):t instanceof Ke?an.consider("new"):t instanceof At?an.consider("this"):t instanceof ze?an.consider("try"):t instanceof qe?an.consider("catch"):t instanceof $e?an.consider("finally"):t instanceof ht&&t.unmangleable(e)?an.consider(t.name):t instanceof tt||t instanceof it?an.consider(t.operator):t instanceof Ze&&an.consider(t.property)});this.walk(t),an.sort()});var an=function(){function e(){r=Object.create(null),n=i.split("").map(function(e){return e.charCodeAt(0)}),n.forEach(function(e){r[e]=0})}function t(e){var t="",r=54;e++;do{e--,t+=String.fromCharCode(n[e%r]),e=Math.floor(e/r),r=64}while(e>0);return t}var n,r,i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return t.consider=function(e){for(var t=e.length;--t>=0;){var n=e.charCodeAt(t);n in r&&++r[n]}},t.sort=function(){n=x(n,function(e,t){return D(e)&&!D(t)?1:D(t)&&!D(e)?-1:r[t]-r[e]})},t.reset=e,e(),t.get=function(){return n},t.freq=function(){return r},t}();Ae.DEFMETHOD("scope_warnings",function(e){e=p(e,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var t=new L(function(n){if(e.undeclared&&n instanceof kt&&n.undeclared()&&ae.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:n.name,file:n.start.file,line:n.start.line,col:n.start.col}),e.assign_to_global){var r=null;n instanceof st&&n.left instanceof kt?r=n.left:n instanceof we&&n.init instanceof kt&&(r=n.init),r&&(r.undeclared()||r.global()&&r.scope!==r.definition().scope)&&ae.warn("{msg}: {name} [{file}:{line},{col}]",{msg:r.undeclared()?"Accidental global?":"Assignment to global",name:r.name,file:r.start.file,line:r.start.line,col:r.start.col})}e.eval&&n instanceof kt&&n.undeclared()&&"eval"==n.name&&ae.warn("Eval is used [{file}:{line},{col}]",n.start),e.unreferenced&&(n instanceof mt||n instanceof wt)&&!(n instanceof xt)&&n.unreferenced()&&ae.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:n instanceof wt?"Label":"Symbol",name:n.name,file:n.start.file,line:n.start.line,col:n.start.col}),e.func_arguments&&n instanceof Ce&&n.uses_arguments&&ae.warn("arguments used in function {name} [{file}:{line},{col}]",{name:n.name?n.name.name:"anonymous",file:n.start.file,line:n.start.line,col:n.start.col}),e.nested_defuns&&n instanceof Oe&&!(t.parent()instanceof Ee)&&ae.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:n.name.name,type:t.parent().TYPE,file:n.start.file,line:n.start.line,col:n.start.col})});this.walk(t)});var un=/^$|[;{][\s\n]*$/;!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}function t(e,n){Array.isArray(e)?e.forEach(function(e){t(e,n)}):e.DEFMETHOD("needs_parens",n)}function n(e,t,n,r){var i=e.length-1;g=r,e.forEach(function(e,r){g!==!0||e instanceof le||e instanceof de||e instanceof pe&&e.body instanceof St||(g=!1),e instanceof de||(n.indent(),e.print(n),r==i&&t||(n.newline(),t&&n.newline())),g===!0&&e instanceof pe&&e.body instanceof St&&(g=!1)}),g=!1}function r(e,t,r){e.length>0?t.with_block(function(){n(e,!1,t,r)}):t.print("{}")}function i(e,t){var n=e.body;if(t.option("bracketize")||!t.option("screw_ie8")&&n instanceof be)return p(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Pe){if(!n.alternative)return void p(e.body,t);n=n.alternative}else{if(!(n instanceof me))break;n=n.body}a(e.body,t)}function o(e,t,n){if(n)try{e.walk(new L(function(e){if(e instanceof it&&"in"==e.operator)throw t})),e.print(t)}catch(n){if(n!==t)throw n;e.print(t,!0)}else e.print(t)}function s(e){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(e)<0}function a(e,t){t.option("bracketize")?p(e,t):!e||e instanceof de?t.force_semicolon():e.print(t)}function u(e,t){return e.args.length>0||t.option("beautify")}function c(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(t=e[r],n=t.length);return t}function l(e){var t,n=e.toString(10),r=[n.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(e>=0?r.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):r.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(t=/^(.*?)(0+)$/.exec(e))&&r.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&r.push(t[2]+"e-"+(t[1].length+t[2].length),n.substr(n.indexOf("."))),c(r)}function p(e,t){!e||e instanceof de?t.print("{}"):e instanceof he?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function f(e,t){e.DEFMETHOD("add_source_map",function(e){t(this,e)})}function d(e,t){t.add_mapping(e.start)}var m=!1,g=!1;ae.DEFMETHOD("print",function(e,t){function n(){r.add_comments(e),r.add_source_map(e),i(r,e)}var r=this,i=r._codegen,o=m;r instanceof le&&"use asm"==r.value&&e.parent()instanceof Ee&&(m=!0),e.push_node(r),t||r.needs_parens(e)?e.with_parens(n):n(),e.pop_node(),r instanceof Ee&&(m=o)}),ae.DEFMETHOD("print_to_string",function(e){var t=J(e);return e||(t._readonly=!0),this.print(t),t.get()}),ae.DEFMETHOD("add_comments",function(e){if(!e._readonly){var t=this,n=t.start;if(n&&!n._comments_dumped){n._comments_dumped=!0;var r=n.comments_before||[];if(t instanceof Le&&t.value&&t.value.walk(new L(function(e){if(e.start&&e.start.comments_before&&(r=r.concat(e.start.comments_before),e.start.comments_before=[]),e instanceof Te||e instanceof at||e instanceof ut)return!0})),r.length>0&&0==e.pos()){e.option("shebang")&&"comment5"==r[0].type&&(e.print("#!"+r.shift().value+"\n"),e.indent());var i=e.option("preamble");i&&e.print(i.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}r=r.filter(e.comment_filter,t),!e.option("beautify")&&r.length>0&&/comment[134]/.test(r[0].type)&&0!==e.col()&&r[0].nlb&&e.print("\n"),r.forEach(function(t){/comment[134]/.test(t.type)?(e.print("//"+t.value+"\n"),e.indent()):"comment2"==t.type&&(e.print("/*"+t.value+"*/"),n.nlb?(e.print("\n"),e.indent()):e.space())})}}}),t(ae,function(){return!1}),t(Te,function(e){if(T(e))return!0;if(e.option("wrap_iife")){var t=e.parent();return t instanceof Ye&&t.expression===this}return!1}),t(ut,function(e){return T(e)}),t([tt,Dt],function(e){var t=e.parent()
|
||
;return t instanceof Qe&&t.expression===this||t instanceof Ye&&t.expression===this}),t(Je,function(e){var t=e.parent();return t instanceof Ye||t instanceof tt||t instanceof it||t instanceof Xe||t instanceof Qe||t instanceof at||t instanceof ct||t instanceof ot}),t(it,function(e){var t=e.parent();if(t instanceof Ye&&t.expression===this)return!0;if(t instanceof tt)return!0;if(t instanceof Qe&&t.expression===this)return!0;if(t instanceof it){var n=t.operator,r=rn[n],i=this.operator,o=rn[i];if(r>o||r==o&&this===t.right)return!0}}),t(Qe,function(e){var t=e.parent();if(t instanceof Ke&&t.expression===this)try{this.walk(new L(function(e){if(e instanceof Ye)throw t}))}catch(e){if(e!==t)throw e;return!0}}),t(Ye,function(e){var t,n=e.parent();return n instanceof Ke&&n.expression===this||this.expression instanceof Te&&n instanceof Qe&&n.expression===this&&(t=e.parent(1))instanceof st&&t.left===n}),t(Ke,function(e){var t=e.parent();if(!u(this,e)&&(t instanceof Qe||t instanceof Ye&&t.expression===this))return!0}),t(Tt,function(e){var t=e.parent();if(t instanceof Qe&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(l(n)))return!0}}),t([st,ot],function(e){var t=e.parent();return t instanceof tt||(t instanceof it&&!(t instanceof st)||(t instanceof Ye&&t.expression===this||(t instanceof ot&&t.condition===this||(t instanceof Qe&&t.expression===this||void 0))))}),e(le,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(ce,function(e,t){t.print("debugger"),t.semicolon()}),me.DEFMETHOD("_do_print_body",function(e){a(this.body,e)}),e(ue,function(e,t){e.body.print(t),t.semicolon()}),e(Ae,function(e,t){n(e.body,!0,t,!0),t.print("")}),e(ge,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(pe,function(e,t){e.body.print(t),t.semicolon()}),e(he,function(e,t){r(e.body,t)}),e(de,function(e,t){t.semicolon()}),e(be,function(e,t){t.print("do"),t.space(),p(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(_e,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(xe,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof He?e.init.print(t):o(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(we,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print("in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(ke,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),Ce.DEFMETHOD("_do_print",function(e,t){var n=this;t||e.print("function"),n.name&&(e.space(),n.name.print(e)),e.with_parens(function(){n.argnames.forEach(function(t,n){n&&e.comma(),t.print(e)})}),e.space(),r(n.body,e,!0)}),e(Ce,function(e,t){e._do_print(t)}),Le.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Be,function(e,t){e._do_print(t,"return")}),e(De,function(e,t){e._do_print(t,"throw")}),Re.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Me,function(e,t){e._do_print(t,"break")}),e(Ne,function(e,t){e._do_print(t,"continue")}),e(Pe,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(i(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Pe?e.alternative.print(t):a(e.alternative,t)):e._do_print_body(t)}),e(Ie,function(e,t){t.print("switch"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e.body.length>0?t.with_block(function(){e.body.forEach(function(e,n){n&&t.newline(),t.indent(!0),e.print(t)})}):t.print("{}")}),je.DEFMETHOD("_do_print_body",function(e){this.body.length>0&&(e.newline(),this.body.forEach(function(t){e.indent(),t.print(e),e.newline()}))}),e(Ve,function(e,t){t.print("default:"),e._do_print_body(t)}),e(Ue,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(ze,function(e,t){t.print("try"),t.space(),r(e.body,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(qe,function(e,t){t.print("catch"),t.space(),t.with_parens(function(){e.argname.print(t)}),t.space(),r(e.body,t)}),e($e,function(e,t){t.print("finally"),t.space(),r(e.body,t)}),He.DEFMETHOD("_do_print",function(e,t){e.print(t),e.space(),this.definitions.forEach(function(t,n){n&&e.comma(),t.print(e)});var n=e.parent();(n instanceof xe||n instanceof we)&&n.init===this||e.semicolon()}),e(We,function(e,t){e._do_print(t,"var")}),e(Ge,function(e,t){e._do_print(t,"const")}),e(Xe,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof xe||n instanceof we;o(e.value,t,r)}}),e(Ye,function(e,t){e.expression.print(t),e instanceof Ke&&!u(e,t)||t.with_parens(function(){e.args.forEach(function(e,n){n&&t.comma(),e.print(t)})})}),e(Ke,function(e,t){t.print("new"),t.space(),Ye.prototype._codegen(e,t)}),Je.DEFMETHOD("_do_print",function(e){this.car.print(e),this.cdr&&(e.comma(),e.should_break()&&(e.newline(),e.indent()),this.cdr.print(e))}),e(Je,function(e,t){e._do_print(t)}),e(Ze,function(e,t){var n=e.expression;n.print(t),n instanceof Tt&&n.getValue()>=0&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(e.property)}),e(et,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(nt,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof nt&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(rt,function(e,t){e.expression.print(t),t.print(e.operator)}),e(it,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof rt&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof nt&&"!"==e.right.operator&&e.right.expression instanceof nt&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(ot,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(at,function(e,t){t.with_square(function(){var n=e.elements,r=n.length;r>0&&t.space(),n.forEach(function(e,n){n&&t.comma(),e.print(t),n===r-1&&e instanceof Rt&&t.comma()}),r>0&&t.space()})}),e(ut,function(e,t){e.properties.length>0?t.with_block(function(){e.properties.forEach(function(e,n){n&&(t.print(","),t.newline()),t.indent(),e.print(t)}),t.newline()}):t.print("{}")}),e(lt,function(e,t){var n=e.key,r=e.quote;t.option("quote_keys")?t.print_string(n+""):("number"==typeof n||!t.option("beautify")&&+n+""==n)&&parseFloat(n)>=0?t.print(l(n)):(Ut(n)?t.option("screw_ie8"):U(n))?r&&t.option("keep_quoted_props")?t.print_string(n,r):t.print_name(n):t.print_string(n,r),t.colon(),e.value.print(t)}),e(pt,function(e,t){t.print("set"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(ft,function(e,t){t.print("get"),t.space(),e.key.print(t),e.value._do_print(t,!0)}),e(ht,function(e,t){var n=e.definition();t.print_name(n?n.mangled_name||n.name:e.name)}),e(Dt,function(e,t){t.print("void 0")}),e(Rt,h),e(Mt,function(e,t){t.print("Infinity")}),e(Bt,function(e,t){t.print("NaN")}),e(At,function(e,t){t.print("this")}),e(Ct,function(e,t){t.print(e.getValue())}),e(St,function(e,t){t.print_string(e.getValue(),e.quote,g)}),e(Tt,function(e,t){m&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(l(e.getValue()))}),e(Ot,function(e,t){var n=e.getValue().toString();t.option("ascii_only")?n=t.to_ascii(n):t.option("unescape_regexps")&&(n=n.split("\\\\").map(function(e){return e.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(e){var t=parseInt(e.substr(2),16);return s(t)?String.fromCharCode(t):e})}).join("\\\\")),t.print(n);var r=t.parent();r instanceof it&&/^in/.test(r.operator)&&r.left===e&&t.print(" ")}),f(ae,h),f(le,d),f(ce,d),f(ht,d),f(Fe,d),f(me,d),f(ge,h),f(Ce,d),f(Ie,d),f(je,d),f(he,d),f(Ae,h),f(Ke,d),f(ze,d),f(qe,d),f($e,d),f(He,d),f(Ct,d),f(pt,function(e,t){t.add_mapping(e.start,e.key.name)}),f(ft,function(e,t){t.add_mapping(e.start,e.key.name)}),f(ct,function(e,t){t.add_mapping(e.start,e.key)})}(),Q.prototype=new X,f(Q.prototype,{option:function(e){return this.options[e]},compress:function(e){this.option("expression")&&(e=e.process_expression(!0));for(var t=+this.options.passes||1,n=0;n<t&&n<3;++n)(n>0||this.option("reduce_vars"))&&e.reset_opt_flags(this,!0),e=e.transform(this);return this.option("expression")&&(e=e.process_expression(!1)),e},info:function(){"verbose"==this.options.warnings&&ae.warn.apply(ae,arguments)},warn:function(e,t){if(this.options.warnings){var n=b(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,ae.warn.apply(ae,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof Ee&&(e=e.hoist_declarations(this),r=!0),t(e,this),t(e,this);var i=e.optimize(this);return r&&i instanceof Ee&&(i.drop_unused(this),t(i,this)),i===e&&(i._squeezed=!0),i}}),function(){function e(e,t){e.DEFMETHOD("optimize",function(e){var n=this;if(n._optimized)return n;if(e.has_directive("use asm"))return n;var r=t(n,e);return r._optimized=!0,r})}function t(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function n(e,n){switch(typeof e){case"string":return t(St,n,{value:e});case"number":return isNaN(e)?t(Bt,n):1/e<0?t(nt,n,{operator:"-",expression:t(Tt,n,{value:-e})}):t(Tt,n,{value:e});case"boolean":return t(e?It:Pt,n);case"undefined":return t(Dt,n);default:if(null===e)return t(Lt,n,{value:null});if(e instanceof RegExp)return t(Ot,n,{value:e});throw new Error(b("Can't handle constant of type: {type}",{type:typeof e}))}}function r(e,n,r){return e instanceof Ye&&e.expression===n&&(r instanceof Qe||r instanceof kt&&"eval"===r.name)?t(Je,n,{car:t(Tt,n,{value:0}),cdr:r}):r}function i(e){if(null===e)return[];if(e instanceof he)return e.body;if(e instanceof de)return[];if(e instanceof ue)return[e];throw new Error("Can't convert thing to statement array")}function o(e){return null===e||(e instanceof de||e instanceof he&&0==e.body.length)}function u(e){return e instanceof Ie?e:(e instanceof xe||e instanceof we||e instanceof ye)&&e.body instanceof he?e.body:e}function c(e){return e instanceof Ye&&!(e instanceof Ke)&&(e.expression instanceof Te||c(e.expression))}function l(e,n){function o(e,n){function i(e,t){return e instanceof kt&&w(e,t)}function s(o,s,c){if(i(o,s))return o;var p=r(s,o,x.value);return x.value=null,m.splice(_,1),0===m.length&&(e[h]=t(de,a),u=!0),f.reset_opt_flags(n),n.info("Collapsing "+(c?"constant":"variable")+" "+k+" [{file}:{line},{col}]",o.start),l=!0,p}for(var a=n.self(),u=!1,c=n.option("toplevel"),p=e.length;--p>=0;){var f=e[p];if(!(f instanceof He)){if([f,f.body,f.alternative,f.bcatch,f.bfinally].forEach(function(e){e&&e.body&&o(e.body,n)}),p<=0)break;var h=p-1,d=e[h];if(d instanceof He){var m=d.definitions;if(null!=m)for(var g={},v=!1,y=!1,b={},_=m.length;--_>=0;){var x=m[_];if(null==x.value)break;var k=x.name.name;if(!k||!k.length)break;if(k in g)break;g[k]=!0;var E=a.find_variable&&a.find_variable(k);if(E&&E.references&&1===E.references.length&&"arguments"!=k&&(c||!E.global)){var A=E.references[0];if(A.scope.uses_eval||A.scope.uses_with)break;if(x.value.is_constant()){var C=new X(function(e){var t=C.parent();return t instanceof ve&&(t.condition===e||t.init===e)?e:e===A?s(e,t,!0):void 0});f.transform(C)}else if(!(v|=y)){var S=x.value.has_side_effects(n);if(A.scope===a){var T=new L(function(e){e instanceof kt&&i(e,T.parent())&&(b[e.name]=y=!0)});x.value.walk(T);var O=!1,F=new X(function(e){if(O)return e;var t=F.parent();return e instanceof Ce||e instanceof ze||e instanceof ke||e instanceof Ue||e instanceof ve||t instanceof Pe&&e!==t.condition||t instanceof ot&&e!==t.condition||e instanceof kt&&S&&!function(e,t){if(1===e.orig.length&&e.orig[0]instanceof bt)return!0;if(e.scope!==t)return!1;for(var n=e.references,r=0,i=n.length;r<i;r++)if(n[r].scope!==t)return!1;return!0}(e.definition(),a)||t instanceof it&&("&&"==t.operator||"||"==t.operator)&&e===t.right||t instanceof Ie&&e!==t.expression?(v=O=!0,e):void 0},function(e){return O?e:e===A?(O=!0,s(e,F.parent(),!1)):(v|=e.has_side_effects(n))?(O=!0,e):y&&e instanceof kt&&e.name in b?(v=!0,O=!0,e):void 0});f.transform(F)}else v|=S}}else v=!0}}}}if(u)for(var B=e.length;--B>=0;)e.length>1&&e[B]instanceof de&&e.splice(B,1);return e}function s(e){var t=[];return e.reduce(function(e,n){return n instanceof he?(l=!0,e.push.apply(e,s(n.body))):n instanceof de?l=!0:n instanceof le?t.indexOf(n.value)<0?(e.push(n),t.push(n.value)):l=!0:e.push(n),e},[])}function a(e){for(var t=0,n=0;n<e.length;++n){var r=e[n];r instanceof Je?t+=r.len():t++}return t}function c(e,n){function r(e){i.pop();var t=o.body;return t instanceof Je?t.add(e):t=Je.cons(t,e),t.transform(n)}var i=[],o=null;return e.forEach(function(e){if(o)if(e instanceof xe){var s={};try{o.body.walk(new L(function(e){if(e instanceof it&&"in"==e.operator)throw s})),!e.init||e.init instanceof He?e.init||(e.init=o.body.drop_side_effect_free(n),i.pop()):e.init=r(e.init)}catch(e){if(e!==s)throw e}}else e instanceof Pe?e.condition=r(e.condition):e instanceof ke?e.expression=r(e.expression):e instanceof Le&&e.value?e.value=r(e.value):e instanceof Le?e.value=r(t(Dt,e)):e instanceof Ie&&(e.expression=r(e.expression));i.push(e),o=e instanceof pe?e:null}),i}var l,h=10;do{l=!1,n.option("angular")&&(e=function(e){function r(e){return/@ngInject/.test(e.value)}function i(e){return e.argnames.map(function(e){return t(St,e,{value:e.name})})}function o(e,n){return t(at,e,{elements:n})}function s(e,n){return t(pe,e,{body:t(st,e,{operator:"=",left:t(Ze,n,{expression:t(kt,n,n),property:"$inject"}),right:o(e,i(e))})})}function a(e){e&&e.args&&(e.args.forEach(function(e,t,n){var s=e.start.comments_before;e instanceof Ce&&s.length&&r(s[0])&&(n[t]=o(e,i(e).concat(e)))}),e.expression&&e.expression.expression&&a(e.expression.expression))}return e.reduce(function(e,t){if(e.push(t),t.body&&t.body.args)a(t.body);else{var i=t.start,o=i.comments_before;if(o&&o.length>0){r(o.pop())&&(t instanceof Oe?e.push(s(t,t.name)):t instanceof He?t.definitions.forEach(function(t){t.value&&t.value instanceof Ce&&e.push(s(t.value,t.name))}):n.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",i))}}return e},[])}(e)),e=s(e),n.option("dead_code")&&(e=function(e,t){var n=!1,r=e.length,i=t.self();return e=e.reduce(function(e,r){if(n)f(t,r,e);else{if(r instanceof Re){var o=t.loopcontrol_target(r.label);r instanceof Me&&!(o instanceof ve)&&u(o)===i||r instanceof Ne&&u(o)===i?r.label&&_(r.label.thedef.references,r):e.push(r)}else e.push(r);B(r)&&(n=!0)}return e},[]),l=e.length!=r,e}(e,n)),n.option("if_return")&&(e=function(e,n){var r=n.self(),o=function(e){for(var t=0,n=e.length;--n>=0;){var r=e[n];if(r instanceof Pe&&r.body instanceof Be&&++t>1)return!0}return!1}(e),s=r instanceof Ce,a=[];e:for(var c=e.length;--c>=0;){var f=e[c];switch(!0){case s&&f instanceof Be&&!f.value&&0==a.length:l=!0;continue e;case f instanceof Pe:if(f.body instanceof Be){if((s&&0==a.length||a[0]instanceof Be&&!a[0].value)&&!f.body.value&&!f.alternative){l=!0;var h=t(pe,f.condition,{body:f.condition});a.unshift(h);continue e}if(a[0]instanceof Be&&f.body.value&&a[0].value&&!f.alternative){l=!0,f=f.clone(),f.alternative=a[0],a[0]=f.transform(n);continue e}if(o&&(0==a.length||a[0]instanceof Be)&&f.body.value&&!f.alternative&&s){l=!0,f=f.clone(),f.alternative=a[0]||t(Be,f,{value:null}),a[0]=f.transform(n);continue e}if(!f.body.value&&s){l=!0,f=f.clone(),f.condition=f.condition.negate(n);var d=i(f.alternative).concat(a),m=p(d);f.body=t(he,f,{body:d}),f.alternative=null,a=m.concat([f.transform(n)]);continue e}if(n.option("sequences")&&c>0&&e[c-1]instanceof Pe&&e[c-1].body instanceof Be&&1==a.length&&s&&a[0]instanceof pe&&!f.alternative){l=!0,a.push(t(Be,a[0],{value:null}).transform(n)),a.unshift(f);continue e}}var g=B(f.body),v=g instanceof Re?n.loopcontrol_target(g.label):null;if(g&&(g instanceof Be&&!g.value&&s||g instanceof Ne&&r===u(v)||g instanceof Me&&v instanceof he&&r===v)){g.label&&_(g.label.thedef.references,g),l=!0;var d=i(f.body).slice(0,-1);f=f.clone(),f.condition=f.condition.negate(n),f.body=t(he,f,{body:i(f.alternative).concat(a)}),f.alternative=t(he,f,{body:d}),a=[f.transform(n)];continue e}var g=B(f.alternative),v=g instanceof Re?n.loopcontrol_target(g.label):null;if(g&&(g instanceof Be&&!g.value&&s||g instanceof Ne&&r===u(v)||g instanceof Me&&v instanceof he&&r===v)){g.label&&_(g.label.thedef.references,g),l=!0,f=f.clone(),f.body=t(he,f.body,{body:i(f.body).concat(a)}),f.alternative=t(he,f.alternative,{body:i(f.alternative).slice(0,-1)}),a=[f.transform(n)];continue e}a.unshift(f);break;default:a.unshift(f)}}return a}(e,n)),n.sequences_limit>0&&(e=function(e,n){function r(){i=Je.from_array(i),i&&o.push(t(pe,i,{body:i})),i=[]}if(e.length<2)return e;var i=[],o=[];return e.forEach(function(e){if(e instanceof pe){a(i)>=n.sequences_limit&&r();var t=e.body;i.length>0&&(t=t.drop_side_effect_free(n)),t&&i.push(t)}else r(),o.push(e)}),r(),o=c(o,n),l=o.length!=e.length,o}(e,n)),n.option("join_vars")&&(e=function(e,t){var n=null;return e.reduce(function(e,t){return t instanceof He&&n&&n.TYPE==t.TYPE?(n.definitions=n.definitions.concat(t.definitions),l=!0):t instanceof xe&&n instanceof We&&(!t.init||t.init.TYPE==n.TYPE)?(l=!0,e.pop(),t.init?t.init.definitions=n.definitions.concat(t.init.definitions):t.init=n,e.push(t),n=t):(n=t,e.push(t)),e},[])}(e,n)),n.option("collapse_vars")&&(e=o(e,n))}while(l&&h-- >0);return e}function p(e){for(var t=[],n=e.length-1;n>=0;--n){var r=e[n];r instanceof Oe&&(e.splice(n,1),t.unshift(r))}return t}function f(e,t,n){t instanceof Oe||e.warn("Dropping unreachable code [{file}:{line},{col}]",t.start),t.walk(new L(function(t){return t instanceof He?(e.warn("Declarations in unreachable code! [{file}:{line},{col}]",t.start),t.remove_initializers(),n.push(t),!0):t instanceof Oe?(n.push(t),!0):t instanceof Ee||void 0}))}function y(e){return e instanceof Dt||e.is_undefined}function w(e,t){return t instanceof tt&&M(t.operator)||t instanceof st&&t.left===e}function k(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function O(e,n){return k(t(pe,e,{body:e}),t(pe,n,{body:n})).body}function F(e,t,n){return(T(e)?O:k)(t,n)}function B(e){return e&&e.aborts()}function D(e,n){function r(r){r=i(r),e.body instanceof he?(e.body=e.body.clone(),e.body.body=r.concat(e.body.body.slice(1)),e.body=e.body.transform(n)):e.body=t(he,e.body,{body:r}).transform(n),D(e,n)}var o=e.body instanceof he?e.body.body[0]:e.body;o instanceof Pe&&(o.body instanceof Me&&n.loopcontrol_target(o.body.label)===n.self()?(e.condition?e.condition=t(it,e.condition,{left:e.condition,operator:"&&",right:o.condition.negate(n)}):e.condition=o.condition.negate(n),r(o.alternative)):o.alternative instanceof Me&&n.loopcontrol_target(o.alternative.label)===n.self()&&(e.condition?e.condition=t(it,e.condition,{left:e.condition,operator:"&&",right:o.condition}):e.condition=o.condition,r(o.body)))}function R(e,n){return n.option("booleans")&&n.in_boolean_context()?F(n,e,t(Je,e,{car:e,cdr:t(It,e)}).optimize(n)):e}e(ae,function(e,t){return e}),ae.DEFMETHOD("equivalent_to",function(e){return this.print_to_string()==e.print_to_string()}),ae.DEFMETHOD("process_expression",function(e){var n=this,r=new X(function(i){if(e&&i instanceof pe)return t(Be,i,{value:i.body});if(!e&&i instanceof Be)return t(pe,i,{body:i.value||t(Dt,i)});if(i instanceof Ce&&i!==n)return i;if(i instanceof fe){var o=i.body.length-1;o>=0&&(i.body[o]=i.body[o].transform(r))}return i instanceof Pe&&(i.body=i.body.transform(r),i.alternative&&(i.alternative=i.alternative.transform(r))),i instanceof ke&&(i.body=i.body.transform(r)),i});return n.transform(r)}),ae.DEFMETHOD("reset_opt_flags",function(e,n){function r(e){f[f.length-1][e.id]=!0}function i(e){for(var n=f.length,r=e.id;--n>=0;)if(f[n][r]){if(null==e.fixed){var i=e.orig[0];if(i instanceof yt||"arguments"==i.name)return!1;e.fixed=t(Dt,i)}return!0}}function o(){f.push(Object.create(null))}function s(){f.pop()}function a(e){l||!e.global||e.orig[0]instanceof vt?e.fixed=void 0:e.fixed=!1,e.references=[],e.should_replace=void 0}function u(e,t,n){var r=d.parent(t);return!!(w(e,r)||!n&&r instanceof Ye&&r.expression===e)||(r instanceof Qe&&r.expression===e?!n&&u(r,t+1):void 0)}var c=n&&e.option("reduce_vars"),l=e.option("toplevel"),p=!e.option("screw_ie8"),f=[];o();var h=new L(function(e){if(e instanceof ht){var t=e.definition();e instanceof kt&&t.references.push(e),t.fixed=!1}}),d=new L(function(e,n){if(e instanceof le||e instanceof Ct||(e._squeezed=!1,e._optimized=!1),c){if(e instanceof Ae&&e.globals.each(a),e instanceof Ee&&e.variables.each(a),e instanceof kt){var m=e.definition();m.references.push(e),void 0!==m.fixed&&i(m)&&!u(e,0,m.fixed instanceof Ce)||(m.fixed=!1)}if(p&&e instanceof xt&&(e.definition().fixed=!1),e instanceof Xe){var m=e.name.definition();null==m.fixed?(m.fixed=e.value,r(m)):e.value&&(m.fixed=!1)}if(e instanceof Oe){var m=e.name.definition();!l&&m.global||i(m)?m.fixed=!1:(m.fixed=e,r(m));var g=f;return f=[],o(),n(),f=g,!0}var v;if(e instanceof Te&&!e.name&&(v=d.parent())instanceof Ye&&v.expression===e&&e.argnames.forEach(function(e,n){var i=e.definition();i.fixed=v.args[n]||t(Dt,v),r(i)}),e instanceof Pe||e instanceof ye)return e.condition.walk(d),o(),e.body.walk(d),s(),e.alternative&&(o(),e.alternative.walk(d),s()),!0;if(e instanceof ge)return o(),e.body.walk(d),s(),!0;if(e instanceof xe)return e.init&&e.init.walk(d),o(),e.condition&&e.condition.walk(d),e.body.walk(d),e.step&&e.step.walk(d),s(),!0;if(e instanceof we)return e.init.walk(h),e.object.walk(d),o(),e.body.walk(d),s(),!0;if(e instanceof qe||e instanceof je)return o(),n(),s(),!0}});this.walk(d)}),function(e){var t=["!","delete"],n=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];e(ae,d),e(nt,function(){return s(this.operator,t)}),e(it,function(){return s(this.operator,n)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),e(ot,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),e(st,function(){return"="==this.operator&&this.right.is_boolean()}),e(Je,function(){return this.cdr.is_boolean()}),e(It,m),e(Pt,m)}(function(e,t){e.DEFMETHOD("is_boolean",t)}),function(e){e(ae,d),e(Tt,m);var t=E("+ - ~ ++ --");e(tt,function(){return t(this.operator)});var n=E("- * / % & | ^ << >> >>>");e(it,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(st,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Je,function(e){return this.cdr.is_number(e)}),e(ot,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),function(e){e(ae,d),e(St,m),e(nt,function(){return"typeof"==this.operator}),e(it,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(st,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Je,function(e){return this.cdr.is_string(e)}),e(ot,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,t){e.DEFMETHOD("is_string",t)});var M=E("delete ++ --");!function(e){function r(e,i){if(e instanceof ae)return t(e.CTOR,i,e);if(Array.isArray(e))return t(at,i,{elements:e.map(function(e){return r(e,i)})});if(e&&"object"==typeof e){var o=[];for(var s in e)o.push(t(lt,i,{key:s,value:r(e[s],i)}));return t(ut,i,{properties:o})}return n(e,i)}ae.DEFMETHOD("resolve_defines",function(e){if(e.option("global_defs")){var t=this._find_defs(e,"");if(t){var n,r=this,i=0;do{n=r,r=e.parent(i++)}while(r instanceof Qe&&r.expression===n);if(!w(n,r))return t;e.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}}}),e(ae,h),e(Ze,function(e,t){return this.expression._find_defs(e,t+"."+this.property)}),e(kt,function(e,t){if(this.global()){var n,i=e.option("global_defs");if(i&&S(i,n=this.name+t)){var o=r(i[n],this),s=e.find_parent(Ae);return o.walk(new L(function(e){e instanceof kt&&(e.scope=s,e.thedef=s.def_global(e))})),o}}})}(function(e,t){e.DEFMETHOD("_find_defs",t)}),function(e){function t(e,t){if(!t)throw new Error("Compressor must be passed");return e._eval(t)}ae.DEFMETHOD("evaluate",function(t){if(!t.option("evaluate"))return this;try{var n=this._eval(t);return!n||n instanceof RegExp||"object"!=typeof n?n:this}catch(t){if(t!==e)throw t;return this}});var n=E("! ~ - +");ae.DEFMETHOD("is_constant",function(){return this instanceof Ct?!(this instanceof Ot):this instanceof nt&&this.expression instanceof Ct&&n(this.operator)}),ae.DEFMETHOD("constant_value",function(e){if(this instanceof Ct&&!(this instanceof Ot))return this.value;if(this instanceof nt&&this.expression instanceof Ct)switch(this.operator){case"!":return!this.expression.value;case"~":return~this.expression.value;case"-":return-this.expression.value;case"+":return+this.expression.value;default:throw new Error(b("Cannot evaluate unary expression {value}",{value:this.print_to_string()}))}var t=this.evaluate(e);if(t!==this)return t;throw new Error(b("Cannot evaluate constant [{file}:{line},{col}]",this.start))}),e(ue,function(){throw new Error(b("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Ce,function(){throw e}),e(ae,function(){throw e}),e(Ct,function(){return this.getValue()}),e(at,function(n){if(n.option("unsafe"))return this.elements.map(function(e){return t(e,n)});throw e}),e(ut,function(n){if(n.option("unsafe")){for(var r={},i=0,o=this.properties.length;i<o;i++){var s=this.properties[i],a=s.key;if(a instanceof ht?a=a.name:a instanceof ae&&(a=t(a,n)),"function"==typeof Object.prototype[a])throw e;r[a]=t(s.value,n)}return r}throw e}),e(nt,function(n){var r=this.expression;switch(this.operator){case"!":return!t(r,n);case"typeof":if(r instanceof Te)return"function";if((r=t(r,n))instanceof RegExp)throw e;return typeof r;case"void":return void t(r,n);case"~":return~t(r,n);case"-":return-t(r,n);case"+":return+t(r,n)}throw e}),e(it,function(n){var r,i=this.left,o=this.right;switch(this.operator){case"&&":r=t(i,n)&&t(o,n);break;case"||":r=t(i,n)||t(o,n);break;case"|":r=t(i,n)|t(o,n);break;case"&":r=t(i,n)&t(o,n);break;case"^":r=t(i,n)^t(o,n);break;case"+":r=t(i,n)+t(o,n);break;case"*":r=t(i,n)*t(o,n);break;case"/":r=t(i,n)/t(o,n);break;case"%":r=t(i,n)%t(o,n);break;case"-":r=t(i,n)-t(o,n);break;case"<<":r=t(i,n)<<t(o,n);break;case">>":r=t(i,n)>>t(o,n);break;case">>>":r=t(i,n)>>>t(o,n);break;case"==":r=t(i,n)==t(o,n);break;case"===":r=t(i,n)===t(o,n);break;case"!=":r=t(i,n)!=t(o,n);break;case"!==":r=t(i,n)!==t(o,n);break;case"<":r=t(i,n)<t(o,n);break;case"<=":r=t(i,n)<=t(o,n);break;case">":r=t(i,n)>t(o,n);break;case">=":r=t(i,n)>=t(o,n);break;default:throw e}if(isNaN(r)&&n.find_parent(ke))throw e;return r}),e(ot,function(e){return t(this.condition,e)?t(this.consequent,e):t(this.alternative,e)}),e(kt,function(n){if(this._evaluating)throw e;this._evaluating=!0;try{var r=this.definition();if(n.option("reduce_vars")&&r.fixed)return n.option("unsafe")?(S(r.fixed,"_evaluated")||(r.fixed._evaluated=t(r.fixed,n)),r.fixed._evaluated):t(r.fixed,n)}finally{this._evaluating=!1}throw e}),e(Qe,function(n){if(n.option("unsafe")){var r=this.property;r instanceof ae&&(r=t(r,n));var i=t(this.expression,n);if(i&&S(i,r))return i[r]}throw e})}(function(e,t){e.DEFMETHOD("_eval",t)}),function(e){function n(e){return t(nt,e,{operator:"!",expression:e})}function r(e,r,i){var o=n(e);if(i){var s=t(pe,r,{body:r});return k(o,s)===s?r:o}return k(o,r)}e(ae,function(){return n(this)}),e(ue,function(){throw new Error("Cannot negate a statement")}),e(Te,function(){return n(this)}),e(nt,function(){return"!"==this.operator?this.expression:n(this)}),e(Je,function(e){var t=this.clone();return t.cdr=t.cdr.negate(e),t}),e(ot,function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),r(this,n,t)}),e(it,function(e,t){var i=this.clone(),o=this.operator;if(e.option("unsafe_comps"))switch(o){case"<=":return i.operator=">",i;case"<":return i.operator=">=",i;case">=":return i.operator="<",i;case">":return i.operator="<=",i}switch(o){case"==":return i.operator="!=",i;case"!=":return i.operator="==",i;case"===":return i.operator="!==",i;case"!==":return i.operator="===",i;case"&&":return i.operator="||",i.left=i.left.negate(e,t),i.right=i.right.negate(e),r(this,i,t);case"||":return i.operator="&&",i.left=i.left.negate(e,t),i.right=i.right.negate(e),r(this,i,t)}return n(this)})}(function(e,t){e.DEFMETHOD("negate",function(e,n){return t.call(this,e,n)})}),Ye.DEFMETHOD("has_pure_annotation",function(e){if(!e.option("side_effects"))return!1;if(void 0!==this.pure)return this.pure;var t,n,r=!1;return this.start&&(t=this.start.comments_before)&&t.length&&/[@#]__PURE__/.test((n=t[t.length-1]).value)&&(r=n),this.pure=r}),function(e){function t(e,t){for(var n=e.length;--n>=0;)if(e[n].has_side_effects(t))return!0;return!1}e(ae,m),e(de,d),e(Ct,d),e(At,d),e(Ye,function(e){if(!this.has_pure_annotation(e)&&e.pure_funcs(this))return!0;for(var t=this.args.length;--t>=0;)if(this.args[t].has_side_effects(e))return!0;return!1}),e(fe,function(e){return t(this.body,e)}),e(Ie,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(Ue,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(ze,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Pe,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(ge,function(e){return this.body.has_side_effects(e)}),e(pe,function(e){return this.body.has_side_effects(e)}),e(Oe,m),e(Te,d),e(it,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(st,m),e(ot,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(tt,function(e){return M(this.operator)||this.expression.has_side_effects(e)}),e(kt,function(e){return this.global()&&this.undeclared()}),e(ut,function(e){return t(this.properties,e)}),e(ct,function(e){return this.value.has_side_effects(e)}),e(at,function(e){return t(this.elements,e)}),e(Ze,function(e){return!e.option("pure_getters")||this.expression.has_side_effects(e)}),e(et,function(e){return!e.option("pure_getters")||(this.expression.has_side_effects(e)||this.property.has_side_effects(e))}),e(Qe,function(e){return!e.option("pure_getters")}),e(Je,function(e){return this.car.has_side_effects(e)||this.cdr.has_side_effects(e)})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(){var e=this.body.length;return e>0&&B(this.body[e-1])}e(ue,v),e(Fe,g),e(he,t),e(je,t),e(Pe,function(){return this.alternative&&B(this.body)&&B(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)}),e(le,function(e,n){return n.has_directive(e.value)!==e?t(de,e):e}),e(ce,function(e,n){return n.option("drop_debugger")?t(de,e):e}),e(ge,function(e,n){return e.body instanceof Me&&n.loopcontrol_target(e.body.label)===e.body?t(de,e):0==e.label.references.length?e.body:e}),e(fe,function(e,t){return e.body=l(e.body,t),e}),e(he,function(e,n){switch(e.body=l(e.body,n),e.body.length){case 1:return e.body[0];case 0:return t(de,e)}return e}),Ee.DEFMETHOD("drop_unused",function(e){var n=this;if(e.has_directive("use asm"))return n;var i=e.option("toplevel");if(e.option("unused")&&(!(n instanceof Ae)||i)&&!n.uses_eval&&!n.uses_with){
|
||
var s=!/keep_assign/.test(e.option("unused")),a=/funcs/.test(i),u=/vars/.test(i);n instanceof Ae&&1!=i||(a=u=!0);var c=[],l=Object.create(null);n instanceof Ae&&e.top_retain&&n.variables.each(function(t){!e.top_retain(t)||t.id in l||(l[t.id]=!0,c.push(t))});var p=new C,f=this,h=new L(function(t,r){if(t!==n){if(t instanceof Oe){if(!a&&f===n){var i=t.name.definition();i.id in l||(l[i.id]=!0,c.push(i))}return p.add(t.name.name,t),!0}if(t instanceof He&&f===n)return t.definitions.forEach(function(t){if(!u){var n=t.name.definition();n.id in l||(l[n.id]=!0,c.push(n))}t.value&&(p.add(t.name.name,t.value),t.value.has_side_effects(e)&&t.value.walk(h))}),!0;if(s&&t instanceof st&&"="==t.operator&&t.left instanceof kt&&f===n)return t.right.walk(h),!0;if(t instanceof kt){var i=t.definition();return i.id in l||(l[i.id]=!0,c.push(i)),!0}if(t instanceof Ee){var o=f;return f=t,r(),f=o,!0}}});n.walk(h);for(var d=0;d<c.length;++d)c[d].orig.forEach(function(e){var t=p.get(e.name);t&&t.forEach(function(e){var t=new L(function(e){if(e instanceof kt){var t=e.definition();t.id in l||(l[t.id]=!0,c.push(t))}});e.walk(t)})});var m=new X(function(i,c,p){if(i instanceof Te&&i.name&&!e.option("keep_fnames")){var f=i.name.definition();f.id in l&&!(f.orig.length>1)||(i.name=null)}if(i instanceof Ce&&!(i instanceof Se))for(var h=!e.option("keep_fargs"),d=i.argnames,g=d.length;--g>=0;){var v=d[g];v.definition().id in l?h=!1:(v.__unused=!0,h&&(d.pop(),e[v.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",{name:v.name,file:v.start.file,line:v.start.line,col:v.start.col})))}if(a&&i instanceof Oe&&i!==n)return i.name.definition().id in l?i:(e[i.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",{name:i.name.name,file:i.name.start.file,line:i.name.start.line,col:i.name.start.col}),t(de,i));if(u&&i instanceof He&&!(m.parent()instanceof we)){var f=i.definitions.filter(function(t){t.value&&(t.value=t.value.transform(m));var n=t.name.definition();if(n.id in l)return!0;if(n.orig[0]instanceof xt)return t.value=t.value&&t.value.drop_side_effect_free(e),!0;var r={name:t.name.name,file:t.name.start.file,line:t.name.start.line,col:t.name.start.col};return t.value&&(t._unused_side_effects=t.value.drop_side_effect_free(e))?(e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",r),!0):(e[t.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",r),!1)});f=x(f,function(e,t){return!e.value&&t.value?-1:!t.value&&e.value?1:0});for(var y=[],g=0;g<f.length;){var b=f[g];b._unused_side_effects?(y.push(b._unused_side_effects),f.splice(g,1)):(y.length>0&&(y.push(b.value),b.value=Je.from_array(y),y=[]),++g)}return y=y.length>0?t(he,i,{body:[t(pe,i,{body:Je.from_array(y)})]}):null,0!=f.length||y?0==f.length?p?oe.splice(y.body):y:(i.definitions=f,y?(y.body.unshift(i),p?oe.splice(y.body):y):i):t(de,i)}if(u&&s&&i instanceof st&&"="==i.operator&&i.left instanceof kt){var f=i.left.definition();if(!(f.id in l)&&n.variables.get(f.name)===f)return r(m.parent(),i,i.right.transform(m))}if(i instanceof xe){if(c(i,this),i.init instanceof he){var _=i.init.body.slice(0,-1);return i.init=i.init.body.slice(-1)[0].body,_.push(i),p?oe.splice(_):t(he,i,{body:_})}if(o(i.init))return i.init=null,i}return i instanceof Ee&&i!==n?i:void 0});n.transform(m)}}),Ee.DEFMETHOD("hoist_declarations",function(e){var n=this;if(e.has_directive("use asm"))return n;var r=e.option("hoist_funs"),i=e.option("hoist_vars");if(r||i){var o=[],s=[],u=new C,c=0,l=0;n.walk(new L(function(e){return e instanceof Ee&&e!==n||(e instanceof We?(++l,!0):void 0)})),i=i&&l>1;var p=new X(function(a){if(a!==n){if(a instanceof le)return o.push(a),t(de,a);if(a instanceof Oe&&r)return s.push(a),t(de,a);if(a instanceof We&&i){a.definitions.forEach(function(e){u.set(e.name.name,e),++c});var l=a.to_assignments(e),f=p.parent();if(f instanceof we&&f.init===a){if(null==l){var h=a.definitions[0].name;return t(kt,h,h)}return l}return f instanceof xe&&f.init===a?l:l?t(pe,a,{body:l}):t(de,a)}if(a instanceof Ee)return a}});if(n=n.transform(p),c>0){var f=[];if(u.each(function(e,t){n instanceof Ce&&a(function(t){return t.name==e.name.name},n.argnames)?u.del(t):(e=e.clone(),e.value=null,f.push(e),u.set(t,e))}),f.length>0){for(;0<n.body.length;){if(n.body[0]instanceof pe){var h,d,m=n.body[0].body;if(m instanceof st&&"="==m.operator&&(h=m.left)instanceof ht&&u.has(h.name)){var g=u.get(h.name);if(g.value)break;g.value=m.right,_(f,g),f.push(g),n.body.splice(0,1);continue}if(m instanceof Je&&(d=m.car)instanceof st&&"="==d.operator&&(h=d.left)instanceof ht&&u.has(h.name)){var g=u.get(h.name);if(g.value)break;g.value=d.right,_(f,g),f.push(g),n.body[0].body=m.cdr;continue}}if(n.body[0]instanceof de)n.body.splice(0,1);else{if(!(n.body[0]instanceof he))break;var v=[0,1].concat(n.body[0].body);n.body.splice.apply(n.body,v)}}f=t(We,n,{definitions:f}),s.push(f)}}n.body=o.concat(s,n.body)}return n}),function(e){function n(e,t,n){for(var r=[],i=!1,o=0,s=e.length;o<s;o++){var a=e[o].drop_side_effect_free(t,n);i|=a!==e[o],a&&(r.push(a),n=!1)}return i?r.length?r:null:e}e(ae,g),e(Ct,v),e(At,v),e(Ye,function(e,t){if(!this.has_pure_annotation(e)&&e.pure_funcs(this)){if(this.expression instanceof Te&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();return r.expression=r.expression.process_expression(!1),r}return this}this.pure&&(e.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start),this.pure.value=this.pure.value.replace(/[@#]__PURE__/g," "));var i=n(this.args,e,t);return i&&Je.from_array(i)}),e(Te,v),e(it,function(e,n){var r=this.right.drop_side_effect_free(e);if(!r)return this.left.drop_side_effect_free(e,n);switch(this.operator){case"&&":case"||":if(r===this.right)return this;var i=this.clone();return i.right=r,i;default:var o=this.left.drop_side_effect_free(e,n);return o?t(Je,this,{car:o,cdr:r}):this.right.drop_side_effect_free(e,n)}}),e(st,g),e(ot,function(e){var n=this.consequent.drop_side_effect_free(e),r=this.alternative.drop_side_effect_free(e);if(n===this.consequent&&r===this.alternative)return this;if(!n)return r?t(it,this,{operator:"||",left:this.condition,right:r}):this.condition.drop_side_effect_free(e);if(!r)return t(it,this,{operator:"&&",left:this.condition,right:n});var i=this.clone();return i.consequent=n,i.alternative=r,i}),e(tt,function(e,n){if(M(this.operator))return this;if("typeof"==this.operator&&this.expression instanceof kt)return null;var r=this.expression.drop_side_effect_free(e,n);return n&&this instanceof nt&&c(r)?r===this.expression&&1===this.operator.length?this:t(nt,this,{operator:1===this.operator.length?this.operator:"!",expression:r}):r}),e(kt,function(){return this.undeclared()?this:null}),e(ut,function(e,t){var r=n(this.properties,e,t);return r&&Je.from_array(r)}),e(ct,function(e,t){return this.value.drop_side_effect_free(e,t)}),e(at,function(e,t){var r=n(this.elements,e,t);return r&&Je.from_array(r)}),e(Ze,function(e,t){return e.option("pure_getters")?this.expression.drop_side_effect_free(e,t):this}),e(et,function(e,n){if(!e.option("pure_getters"))return this;var r=this.expression.drop_side_effect_free(e,n);if(!r)return this.property.drop_side_effect_free(e,n);var i=this.property.drop_side_effect_free(e);return i?t(Je,this,{car:r,cdr:i}):r}),e(Je,function(e){var n=this.cdr.drop_side_effect_free(e);return n===this.cdr?this:n?t(Je,this,{car:this.car,cdr:n}):this.car})}(function(e,t){e.DEFMETHOD("drop_side_effect_free",t)}),e(pe,function(e,n){if(n.option("side_effects")){var r=e.body,i=r.drop_side_effect_free(n,!0);if(!i)return n.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),t(de,e);if(i!==r)return t(pe,e,{body:i})}return e}),e(ye,function(e,r){if(!r.option("loops"))return e;var i=e.condition.evaluate(r);if(i!==e.condition){if(i)return t(xe,e,{body:e.body});if(r.option("dead_code")&&e instanceof _e){var o=[];return f(r,e.body,o),t(he,e,{body:o})}i=n(i,e.condition).transform(r),e.condition=k(i,e.condition)}return e instanceof _e?t(xe,e,e).optimize(r):e}),e(xe,function(e,r){if(!r.option("loops"))return e;if(e.condition){var i=e.condition.evaluate(r);if(r.option("dead_code")&&!i){var o=[];return e.init instanceof ue?o.push(e.init):e.init&&o.push(t(pe,e.init,{body:e.init})),f(r,e.body,o),t(he,e,{body:o})}i!==e.condition&&(i=n(i,e.condition).transform(r),e.condition=k(i,e.condition))}return D(e,r),e}),e(Pe,function(e,r){if(o(e.alternative)&&(e.alternative=null),!r.option("conditionals"))return e;var i=e.condition.evaluate(r);if(i!==e.condition){if(i){if(r.warn("Condition always true [{file}:{line},{col}]",e.condition.start),r.option("dead_code")){var s=[];return e.alternative&&f(r,e.alternative,s),s.push(e.body),t(he,e,{body:s}).optimize(r)}}else if(r.warn("Condition always false [{file}:{line},{col}]",e.condition.start),r.option("dead_code")){var s=[];return f(r,e.body,s),e.alternative&&s.push(e.alternative),t(he,e,{body:s}).optimize(r)}i=n(i,e.condition).transform(r),e.condition=k(i,e.condition)}var a=e.condition.negate(r),u=e.condition.print_to_string().length,c=a.print_to_string().length,l=c<u;if(e.alternative&&l){l=!1,e.condition=a;var p=e.body;e.body=e.alternative||t(de,e),e.alternative=p}if(o(e.body)&&o(e.alternative))return t(pe,e.condition,{body:e.condition.clone()}).optimize(r);if(e.body instanceof pe&&e.alternative instanceof pe)return t(pe,e,{body:t(ot,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(r);if(o(e.alternative)&&e.body instanceof pe)return u===c&&!l&&e.condition instanceof it&&"||"==e.condition.operator&&(l=!0),l?t(pe,e,{body:t(it,e,{operator:"||",left:a,right:e.body.body})}).optimize(r):t(pe,e,{body:t(it,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(r);if(e.body instanceof de&&e.alternative instanceof pe)return t(pe,e,{body:t(it,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(r);if(e.body instanceof Le&&e.alternative instanceof Le&&e.body.TYPE==e.alternative.TYPE)return t(e.body.CTOR,e,{value:t(ot,e,{condition:e.condition,consequent:e.body.value||t(Dt,e.body),alternative:e.alternative.value||t(Dt,e.alternative)}).transform(r)}).optimize(r);if(e.body instanceof Pe&&!e.body.alternative&&!e.alternative&&(e=t(Pe,e,{condition:t(it,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),B(e.body)&&e.alternative){var h=e.alternative;return e.alternative=null,t(he,e,{body:[e,h]}).optimize(r)}if(B(e.alternative)){var d=e.body;return e.body=e.alternative,e.condition=l?a:e.condition.negate(r),e.alternative=null,t(he,e,{body:[e,d]}).optimize(r)}return e}),e(Ie,function(e,r){var i,o=e.expression.evaluate(r);if(o!==e.expression){var s=n(o,e.expression).transform(r);e.expression=k(s,e.expression)}if(!r.option("dead_code"))return e;for(var a,u,c,l,p=[],h=[],d=0,m=e.body.length;d<m&&!c;d++){if((i=e.body[d])instanceof Ve)if(u){if(!l){f(r,i,p);continue}}else u=i;else if(o!==e.expression){var g=i.expression.evaluate(r);if(g===o)c=i,u&&(h.splice(h.indexOf(u),1),f(r,u,p),u=null);else if(g!==i.expression&&!l){f(r,i,p);continue}}if(B(i)){var v=t(he,i,i).print_to_string();l||a!==v||(h[h.length-1].body=[]),h.push(i),a=v,l=!1}else h.push(i),a=null,l=!0}for(;d<m&&l;d++)i=e.body[d],c.body=c.body.concat(i.body),l=!B(c);for(;d<m;)f(r,e.body[d++],p);for(h.length>0&&(h[0].body=p.concat(h[0].body)),e.body=h;i=h[h.length-1];){var y=i.body[i.body.length-1];if(y instanceof Me&&r.loopcontrol_target(y.label)===e&&i.body.pop(),i.body.length||i instanceof Ue&&(u||i.expression.has_side_effects(r)))break;h.pop()===u&&(u=null)}if(0==h.length)return t(he,e,{body:p.concat(t(pe,e.expression,{body:e.expression}))}).optimize(r);if(1==h.length&&(h[0]===c||h[0]===u)){var b=!1,_=new L(function(t){if(b||t instanceof Ce||t instanceof pe)return!0;t instanceof Me&&_.loopcontrol_target(t.label)===e&&(b=!0)});if(e.walk(_),!b)return t(he,e,h[0]).optimize(r)}return e}),e(ze,function(e,t){return e.body=l(e.body,t),e}),He.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),He.DEFMETHOD("to_assignments",function(e){var n=e.option("reduce_vars"),r=this.definitions.reduce(function(e,r){if(r.value){var i=t(kt,r.name,r.name);e.push(t(st,r,{operator:"=",left:i,right:r.value})),n&&(i.definition().fixed=!1)}return e},[]);return 0==r.length?null:Je.from_array(r)}),e(He,function(e,n){return 0==e.definitions.length?t(de,e):e}),e(Ye,function(e,r){var i=e.expression;if(r.option("reduce_vars")&&i instanceof kt){var o=i.definition();o.fixed instanceof Oe&&(o.fixed=t(Te,o.fixed,o.fixed).clone(!0)),o.fixed instanceof Te&&(i=o.fixed,!r.option("unused")||1!=o.references.length||o.scope.uses_arguments&&o.orig[0]instanceof yt||o.scope.uses_eval||r.find_parent(Ee)!==o.scope||(e.expression=i))}if(r.option("unused")&&i instanceof Te&&!i.uses_arguments&&!i.uses_eval){for(var s=0,a=0,u=0,l=e.args.length;u<l;u++){var p=u>=i.argnames.length;if(p||i.argnames[u].__unused){var f=e.args[u].drop_side_effect_free(r);if(f)e.args[s++]=f;else if(!p){e.args[s++]=t(Tt,e.args[u],{value:0});continue}}else e.args[s++]=e.args[u];a=s}e.args.length=a}if(r.option("unsafe"))if(i instanceof kt&&i.undeclared())switch(i.name){case"Array":if(1!=e.args.length)return t(at,e,{elements:e.args}).optimize(r);break;case"Object":if(0==e.args.length)return t(ut,e,{properties:[]});break;case"String":if(0==e.args.length)return t(St,e,{value:""});if(e.args.length<=1)return t(it,e,{left:e.args[0],operator:"+",right:t(St,e,{value:""})}).optimize(r);break;case"Number":if(0==e.args.length)return t(Tt,e,{value:0});if(1==e.args.length)return t(nt,e,{expression:e.args[0],operator:"+"}).optimize(r);case"Boolean":if(0==e.args.length)return t(Pt,e);if(1==e.args.length)return t(nt,e,{expression:t(nt,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(r);break;case"Function":if(0==e.args.length)return t(Te,e,{argnames:[],body:[]});if(A(e.args,function(e){return e instanceof St}))try{var h="(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})()",d=G(h);d.figure_out_scope({screw_ie8:r.option("screw_ie8")});var m=new Q(r.options);d=d.transform(m),d.figure_out_scope({screw_ie8:r.option("screw_ie8")}),d.mangle_names();var g;try{d.walk(new L(function(e){if(e instanceof Ce)throw g=e,d}))}catch(e){if(e!==d)throw e}if(!g)return e;var v=g.argnames.map(function(n,r){return t(St,e.args[r],{value:n.print_to_string()})}),h=J();return he.prototype._codegen.call(g,g,h),h=h.toString().replace(/^\{|\}$/g,""),v.push(t(St,e.args[e.args.length-1],{value:h})),e.args=v,e}catch(t){if(!(t instanceof q))throw console.log(t),t;r.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),r.warn(t.toString())}}else{if(i instanceof Ze&&"toString"==i.property&&0==e.args.length)return t(it,e,{left:t(St,e,{value:""}),operator:"+",right:i.expression}).optimize(r);if(i instanceof Ze&&i.expression instanceof at&&"join"==i.property){var y;if(!(e.args.length>0&&(y=e.args[0].evaluate(r))===e.args[0])){var b=[],_=[];if(i.expression.elements.forEach(function(n){var i=n.evaluate(r);i!==n?_.push(i):(_.length>0&&(b.push(t(St,e,{value:_.join(y)})),_.length=0),b.push(n))}),_.length>0&&b.push(t(St,e,{value:_.join(y)})),0==b.length)return t(St,e,{value:""});if(1==b.length)return b[0].is_string(r)?b[0]:t(it,b[0],{operator:"+",left:t(St,e,{value:""}),right:b[0]});if(""==y){var x;return x=b[0].is_string(r)||b[1].is_string(r)?b.shift():t(St,e,{value:""}),b.reduce(function(e,n){return t(it,n,{operator:"+",left:e,right:n})},x).optimize(r)}var f=e.clone();return f.expression=f.expression.clone(),f.expression.expression=f.expression.expression.clone(),f.expression.expression.elements=b,F(r,e,f)}}else if(i instanceof Ze&&i.expression.is_string(r)&&"charAt"==i.property){var w=e.args[0],k=w?w.evaluate(r):0;if(k!==w)return t(et,i,{expression:i.expression,property:n(0|k,w||i)}).optimize(r)}}if(i instanceof Te){if(i.body[0]instanceof Be){var E=i.body[0].value;if(!E||E.is_constant()){var v=e.args.concat(E||t(Dt,e));return Je.from_array(v).transform(r)}}if(r.option("side_effects")&&!fe.prototype.has_side_effects.call(i,r)){var v=e.args.concat(t(Dt,e));return Je.from_array(v).transform(r)}}if(r.option("drop_console")&&i instanceof Qe){for(var C=i.expression;C.expression;)C=C.expression;if(C instanceof kt&&"console"==C.name&&C.undeclared())return t(Dt,e).transform(r)}return r.option("negate_iife")&&r.parent()instanceof pe&&c(e)?e.negate(r,!0):e}),e(Ke,function(e,n){if(n.option("unsafe")){var r=e.expression;if(r instanceof kt&&r.undeclared())switch(r.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return t(Ye,e,e).transform(n)}}return e}),e(Je,function(e,n){if(!n.option("side_effects"))return e;if(e.car=e.car.drop_side_effect_free(n,T(n)),!e.car)return r(n.parent(),e,e.cdr);if(n.option("cascade")){var i;if(e.car instanceof st&&!e.car.left.has_side_effects(n)?i=e.car.left:e.car instanceof tt&&("++"==e.car.operator||"--"==e.car.operator)&&(i=e.car.expression),i&&!(i instanceof kt&&i.definition().orig[0]instanceof _t))for(var o,s,a=e.cdr;;){if(a.equivalent_to(i)){var u=e.car instanceof rt?t(nt,e.car,{operator:e.car.operator,expression:i}):e.car;return o?(o[s]=u,e.cdr):u}if(a instanceof it&&!(a instanceof st))if(a.left.is_constant()){if("||"==a.operator||"&&"==a.operator)break;s="right"}else s="left";else{if(!(a instanceof Ye||a instanceof tt&&!M(a.operator)))break;s="expression"}o=a,a=a[s]}}return y(e.cdr)?t(nt,e,{operator:"void",expression:e.car}):e}),tt.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Je){var t=this.expression,n=t.to_array();return this.expression=n.pop(),n.push(this),t=Je.from_array(n).transform(e)}return this}),e(rt,function(e,t){return e.lift_sequences(t)}),e(nt,function(e,r){var i=e.lift_sequences(r);if(i!==e)return i;var o=e.expression;if(r.option("side_effects")&&"void"==e.operator)return o=o.drop_side_effect_free(r),o?(e.expression=o,e):t(Dt,e).transform(r);if(r.option("booleans")&&r.in_boolean_context())switch(e.operator){case"!":if(o instanceof nt&&"!"==o.operator)return o.expression;o instanceof it&&(e=F(r,e,o.negate(r,T(r))));break;case"typeof":return r.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(o instanceof kt?t(It,e):t(Je,e,{car:o,cdr:t(It,e)})).optimize(r)}if("-"!=e.operator||!(e.expression instanceof Tt)){var s=e.evaluate(r);if(s!==e)return s=n(s,e).optimize(r),F(r,s,e)}return e}),it.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Je){var t=this.left,n=t.to_array();return this.left=n.pop(),n.push(this),Je.from_array(n).optimize(e)}if(this.right instanceof Je&&!this.left.has_side_effects(e)){for(var r,i="="==this.operator&&this.left instanceof kt,o=this.right,t=o;(i||!t.car.has_side_effects(e))&&(r=t,t.cdr instanceof Je);)t=t.cdr;if(r)return this.right=r.cdr,r.cdr=this,o.optimize(e)}}return this});var N=E("== === != !== * & | ^");e(it,function(e,i){function o(){return e.left instanceof Ct||e.right instanceof Ct||!e.left.has_side_effects(i)&&!e.right.has_side_effects(i)}function s(t){if(o()){t&&(e.operator=t);var n=e.left;e.left=e.right,e.right=n}}if(N(e.operator)&&e.right instanceof Ct&&!(e.left instanceof Ct)&&(e.left instanceof it&&rn[e.left.operator]>=rn[e.operator]||s()),e=e.lift_sequences(i),i.option("comparisons"))switch(e.operator){case"===":case"!==":(e.left.is_string(i)&&e.right.is_string(i)||e.left.is_number(i)&&e.right.is_number(i)||e.left.is_boolean()&&e.right.is_boolean())&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(e.left instanceof St&&"undefined"==e.left.value&&e.right instanceof nt&&"typeof"==e.right.operator){var a=e.right.expression;(a instanceof kt?a.undeclared():a instanceof Qe&&!i.option("screw_ie8"))||(e.right=a,e.left=t(Dt,e.left).optimize(i),2==e.operator.length&&(e.operator+="="))}}if(i.option("booleans")&&i.in_boolean_context())switch(e.operator){case"&&":var u=e.left.evaluate(i),c=e.right.evaluate(i);if(!u||!c)return i.warn("Boolean && always false [{file}:{line},{col}]",e.start),t(Je,e,{car:e.left,cdr:t(Pt,e)}).optimize(i);if(u!==e.left&&u)return e.right.optimize(i);if(c!==e.right&&c)return e.left.optimize(i);break;case"||":var u=e.left.evaluate(i),c=e.right.evaluate(i);if(u!==e.left&&u||c!==e.right&&c)return i.warn("Boolean || always true [{file}:{line},{col}]",e.start),t(Je,e,{car:e.left,cdr:t(It,e)}).optimize(i);if(!u)return e.right.optimize(i);if(!c)return e.left.optimize(i);break;case"+":var u=e.left.evaluate(i),c=e.right.evaluate(i);if(u&&"string"==typeof u)return i.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),t(Je,e,{car:e.right,cdr:t(It,e)}).optimize(i);if(c&&"string"==typeof c)return i.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),t(Je,e,{car:e.left,cdr:t(It,e)}).optimize(i)}if(i.option("comparisons")&&e.is_boolean()){if(!(i.parent()instanceof it)||i.parent()instanceof st){var l=t(nt,e,{operator:"!",expression:e.negate(i,T(i))});e=F(i,e,l)}if(i.option("unsafe_comps"))switch(e.operator){case"<":s(">");break;case"<=":s(">=")}}if("+"==e.operator){if(e.right instanceof St&&""==e.right.getValue()&&e.left.is_string(i))return e.left;if(e.left instanceof St&&""==e.left.getValue()&&e.right.is_string(i))return e.right;if(e.left instanceof it&&"+"==e.left.operator&&e.left.left instanceof St&&""==e.left.left.getValue()&&e.right.is_string(i))return e.left=e.left.right,e.transform(i)}if(i.option("evaluate")){switch(e.operator){case"&&":if(e.left.is_constant())return e.left.constant_value(i)?(i.warn("Condition left of && always true [{file}:{line},{col}]",e.start),r(i.parent(),e,e.right)):(i.warn("Condition left of && always false [{file}:{line},{col}]",e.start),r(i.parent(),e,e.left));break;case"||":if(e.left.is_constant())return e.left.constant_value(i)?(i.warn("Condition left of || always true [{file}:{line},{col}]",e.start),r(i.parent(),e,e.left)):(i.warn("Condition left of || always false [{file}:{line},{col}]",e.start),r(i.parent(),e,e.right))}var p=!0;switch(e.operator){case"+":if(e.left instanceof Ct&&e.right instanceof it&&"+"==e.right.operator&&e.right.left instanceof Ct&&e.right.is_string(i)&&(e=t(it,e,{operator:"+",left:t(St,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof Ct&&e.left instanceof it&&"+"==e.left.operator&&e.left.right instanceof Ct&&e.left.is_string(i)&&(e=t(it,e,{operator:"+",left:e.left.left,right:t(St,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof it&&"+"==e.left.operator&&e.left.is_string(i)&&e.left.right instanceof Ct&&e.right instanceof it&&"+"==e.right.operator&&e.right.left instanceof Ct&&e.right.is_string(i)&&(e=t(it,e,{operator:"+",left:t(it,e.left,{operator:"+",left:e.left.left,right:t(St,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof nt&&"-"==e.right.operator&&e.left.is_number(i)){e=t(it,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof nt&&"-"==e.left.operator&&o()&&e.right.is_number(i)){e=t(it,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":p=i.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(i)&&e.right.is_number(i)&&o()&&!(e.left instanceof it&&e.left.operator!=e.operator&&rn[e.left.operator]>=rn[e.operator])){var f=t(it,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof Ct&&!(e.left instanceof Ct)?F(i,f,e):F(i,e,f)}p&&e.is_number(i)&&(e.right instanceof it&&e.right.operator==e.operator&&(e=t(it,e,{operator:e.operator,left:t(it,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof Ct&&e.left instanceof it&&e.left.operator==e.operator&&(e.left.left instanceof Ct?e=t(it,e,{operator:e.operator,left:t(it,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof Ct&&(e=t(it,e,{operator:e.operator,left:t(it,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof it&&e.left.operator==e.operator&&e.left.right instanceof Ct&&e.right instanceof it&&e.right.operator==e.operator&&e.right.left instanceof Ct&&(e=t(it,e,{operator:e.operator,left:t(it,e.left,{operator:e.operator,left:t(it,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof it&&e.right.operator==e.operator&&("&&"==e.operator||"||"==e.operator||"+"==e.operator&&(e.right.left.is_string(i)||e.left.is_string(i)&&e.right.right.is_string(i))))return e.left=t(it,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(i);var h=e.evaluate(i);return h!==e?(h=n(h,e).optimize(i),F(i,h,e)):e}),e(kt,function(e,r){var i=e.resolve_defines(r);if(i)return i;if(r.option("screw_ie8")&&e.undeclared()&&!w(e,r.parent())&&(!e.scope.uses_with||!r.find_parent(ke)))switch(e.name){case"undefined":return t(Dt,e).optimize(r);case"NaN":return t(Bt,e).optimize(r);case"Infinity":return t(Mt,e).optimize(r)}if(r.option("evaluate")&&r.option("reduce_vars")){var o=e.definition();if(o.fixed){if(void 0===o.should_replace){var s=o.fixed.evaluate(r);if(s!==o.fixed){s=n(s,o.fixed).optimize(r),s=k(s,o.fixed);var a=s.print_to_string().length,u=o.name.length,c=o.references.length,l=o.global||!c?0:(u+2+a)/c;o.should_replace=a<=u+l&&s}else o.should_replace=!1}if(o.should_replace)return o.should_replace.clone(!0)}}return e}),e(Mt,function(e,n){return t(it,e,{operator:"/",left:t(Tt,e,{value:1}),right:t(Tt,e,{value:0})})}),e(Dt,function(e,n){if(n.option("unsafe")){var r=n.find_parent(Ee),i=r.find_variable("undefined");if(i){var o=t(kt,e,{name:"undefined",scope:r,thedef:i});return o.is_undefined=!0,o}}return e});var P=["+","-","/","*","%",">>","<<",">>>","|","^","&"],I=["*","|","^","&"];e(st,function(e,t){return e=e.lift_sequences(t),"="==e.operator&&e.left instanceof kt&&e.right instanceof it&&(e.right.left instanceof kt&&e.right.left.name==e.left.name&&s(e.right.operator,P)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof kt&&e.right.right.name==e.left.name&&s(e.right.operator,I)&&!e.right.left.has_side_effects(t)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e}),e(ot,function(e,n){function i(e){return e.is_boolean()?e:t(nt,e,{operator:"!",expression:e.negate(n)})}function o(e){return e instanceof It||e instanceof nt&&"!"==e.operator&&e.expression instanceof Ct&&!e.expression.value}function s(e){return e instanceof Pt||e instanceof nt&&"!"==e.operator&&e.expression instanceof Ct&&!!e.expression.value}if(!n.option("conditionals"))return e;if(e.condition instanceof Je){var a=e.condition.car;return e.condition=e.condition.cdr,Je.cons(a,e)}var u=e.condition.evaluate(n);if(u!==e.condition)return u?(n.warn("Condition always true [{file}:{line},{col}]",e.start),r(n.parent(),e,e.consequent)):(n.warn("Condition always false [{file}:{line},{col}]",e.start),r(n.parent(),e,e.alternative));var c=u.negate(n,T(n));F(n,u,c)===c&&(e=t(ot,e,{condition:c,consequent:e.alternative,alternative:e.consequent}));var l=e.condition,p=e.consequent,f=e.alternative;return l instanceof kt&&p instanceof kt&&l.definition()===p.definition()?t(it,e,{operator:"||",left:l,right:f}):p instanceof st&&f instanceof st&&p.operator==f.operator&&p.left.equivalent_to(f.left)&&(!e.condition.has_side_effects(n)||"="==p.operator&&!p.left.has_side_effects(n))?t(st,e,{operator:p.operator,left:p.left,right:t(ot,e,{condition:e.condition,consequent:p.right,alternative:f.right})}):p instanceof Ye&&f.TYPE===p.TYPE&&1==p.args.length&&1==f.args.length&&p.expression.equivalent_to(f.expression)&&!p.expression.has_side_effects(n)?(p.args[0]=t(ot,e,{condition:e.condition,consequent:p.args[0],alternative:f.args[0]}),p):p instanceof ot&&p.alternative.equivalent_to(f)?t(ot,e,{condition:t(it,e,{left:e.condition,operator:"&&",right:p.condition}),consequent:p.consequent,alternative:f}):p.equivalent_to(f)?t(Je,e,{car:e.condition,cdr:p}).optimize(n):o(e.consequent)?s(e.alternative)?i(e.condition):t(it,e,{operator:"||",left:i(e.condition),right:e.alternative}):s(e.consequent)?o(e.alternative)?i(e.condition.negate(n)):t(it,e,{operator:"&&",left:i(e.condition.negate(n)),right:e.alternative}):o(e.alternative)?t(it,e,{operator:"||",left:i(e.condition.negate(n)),right:e.consequent}):s(e.alternative)?t(it,e,{operator:"&&",left:i(e.condition),right:e.consequent}):e}),e(Nt,function(e,n){if(n.option("booleans")){var r=n.parent();return r instanceof it&&("=="==r.operator||"!="==r.operator)?(n.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:r.operator,value:e.value,file:r.start.file,line:r.start.line,col:r.start.col}),t(Tt,e,{value:+e.value})):t(nt,e,{operator:"!",expression:t(Tt,e,{value:1-e.value})})}return e}),e(et,function(e,r){var i=e.property;if(i instanceof St&&r.option("properties")){if(i=i.getValue(),Ut(i)?r.option("screw_ie8"):U(i))return t(Ze,e,{expression:e.expression,property:i}).optimize(r);var o=parseFloat(i);isNaN(o)||o.toString()!=i||(e.property=t(Tt,e.property,{value:o}))}var s=e.evaluate(r);return s!==e?(s=n(s,e).optimize(r),F(r,s,e)):e}),e(Ze,function(e,r){var i=e.resolve_defines(r);if(i)return i;var o=e.property;if(Ut(o)&&!r.option("screw_ie8"))return t(et,e,{expression:e.expression,property:t(St,e,{value:o})}).optimize(r);if(r.option("unsafe_proto")&&e.expression instanceof Ze&&"prototype"==e.expression.property){var s=e.expression.expression;if(s instanceof kt&&s.undeclared())switch(s.name){case"Array":e.expression=t(at,e.expression,{elements:[]});break;case"Object":e.expression=t(ut,e.expression,{properties:[]});break;case"String":e.expression=t(St,e.expression,{value:""})}}var a=e.evaluate(r);return a!==e?(a=n(a,e).optimize(r),F(r,a,e)):e}),e(at,R),e(ut,R),e(Ot,R),e(Be,function(e,t){return e.value&&y(e.value)&&(e.value=null),e}),e(Xe,function(e,t){var n=t.option("global_defs");return n&&S(n,e.name.name)&&t.warn("global_defs "+e.name.name+" redefined [{file}:{line},{col}]",e.start),e})}(),function(){function e(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function t(t){var n=t.loc,r=n&&n.start,i=t.range;return new se({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:i?i[0]:t.start,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[0]:t.start,raw:e(t)})}function r(t){var n=t.loc,r=n&&n.end,i=t.range;return new se({file:n&&n.source,line:r&&r.line,col:r&&r.column,pos:i?i[1]:t.end,endline:r&&r.line,endcol:r&&r.column,endpos:i?i[1]:t.end,raw:e(t)})}function i(e,i,s){var l="function From_Moz_"+e+"(M){\n";l+="return new U2."+i.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var f="function To_Moz_"+e+"(M){\n";f+="return {\ntype: "+JSON.stringify(e),s&&s.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],i=t[3];switch(l+=",\n"+i+": ",f+=",\n"+n+": ",r){case"@":l+="M."+n+".map(from_moz)",f+="M."+i+".map(to_moz)";break;case">":l+="from_moz(M."+n+")",f+="to_moz(M."+i+")";break;case"=":l+="M."+n,f+="M."+i;break;case"%":l+="from_moz(M."+n+").body",f+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),l+="\n})\n}",f+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(n,t,r,o),f=new Function("to_moz","to_moz_block","return("+f+")")(u,c),p[e]=l,a(i,f)}function o(e){f.push(e);var t=null!=e?p[e.type](e):null;return f.pop(),t}
|
||
function s(e,t,n){var r=e.start,i=e.end;return null!=r.pos&&null!=i.endpos&&(t.range=[r.pos,i.endpos]),r.line&&(t.loc={start:{line:r.line,column:r.col},end:i.endline?{line:i.endline,column:i.endcol}:null},r.file&&(t.loc.source=r.file)),t}function a(e,t){e.DEFMETHOD("to_mozilla_ast",function(){return s(this,t(this))})}function u(e){return null!=e?e.to_mozilla_ast():null}function c(e){return{type:"BlockStatement",body:e.body.map(u)}}var l=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof ue&&e[n].body instanceof St?e[n]=new le({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof ue&&e[n].body instanceof St||(t=!1);return e},p={Program:function(e){return new Ae({start:t(e),end:r(e),body:l(e.body.map(o))})},FunctionDeclaration:function(e){return new Oe({start:t(e),end:r(e),name:o(e.id),argnames:e.params.map(o),body:l(o(e.body).body)})},FunctionExpression:function(e){return new Te({start:t(e),end:r(e),name:o(e.id),argnames:e.params.map(o),body:l(o(e.body).body)})},ExpressionStatement:function(e){return new pe({start:t(e),end:r(e),body:o(e.expression)})},TryStatement:function(e){var n=e.handlers||[e.handler];if(n.length>1||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new ze({start:t(e),end:r(e),body:o(e.block).body,bcatch:o(n[0]),bfinally:e.finalizer?new $e(o(e.finalizer)):null})},Property:function(e){var n=e.key,i="Identifier"==n.type?n.name:n.value,s={start:t(n),end:r(e.value),key:i,value:o(e.value)};switch(e.kind){case"init":return new lt(s);case"set":return s.value.name=o(n),new pt(s);case"get":return s.value.name=o(n),new ft(s)}},ArrayExpression:function(e){return new at({start:t(e),end:r(e),elements:e.elements.map(function(e){return null===e?new Rt:o(e)})})},ObjectExpression:function(e){return new ut({start:t(e),end:r(e),properties:e.properties.map(function(e){return e.type="Property",o(e)})})},SequenceExpression:function(e){return Je.from_array(e.expressions.map(o))},MemberExpression:function(e){return new(e.computed?et:Ze)({start:t(e),end:r(e),property:e.computed?o(e.property):e.property.name,expression:o(e.object)})},SwitchCase:function(e){return new(e.test?Ue:Ve)({start:t(e),end:r(e),expression:o(e.test),body:e.consequent.map(o)})},VariableDeclaration:function(e){return new("const"===e.kind?Ge:We)({start:t(e),end:r(e),definitions:e.declarations.map(o)})},Literal:function(e){var n=e.value,i={start:t(e),end:r(e)};if(null===n)return new Lt(i);switch(typeof n){case"string":return i.value=n,new St(i);case"number":return i.value=n,new Tt(i);case"boolean":return new(n?It:Pt)(i);default:var o=e.regex;return o&&o.pattern?i.value=new RegExp(o.pattern,o.flags).toString():i.value=e.regex&&e.raw?e.raw:n,new Ot(i)}},Identifier:function(e){var n=f[f.length-2];return new("LabeledStatement"==n.type?wt:"VariableDeclarator"==n.type&&n.id===e?"const"==n.kind?vt:gt:"FunctionExpression"==n.type?n.id===e?_t:yt:"FunctionDeclaration"==n.type?n.id===e?bt:yt:"CatchClause"==n.type?xt:"BreakStatement"==n.type||"ContinueStatement"==n.type?Et:kt)({start:t(e),end:r(e),name:e.name})}};p.UpdateExpression=p.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?nt:rt)({start:t(e),end:r(e),operator:e.operator,expression:o(e.argument)})},i("EmptyStatement",de),i("BlockStatement",he,"body@body"),i("IfStatement",Pe,"test>condition, consequent>body, alternate>alternative"),i("LabeledStatement",ge,"label>label, body>body"),i("BreakStatement",Me,"label>label"),i("ContinueStatement",Ne,"label>label"),i("WithStatement",ke,"object>expression, body>body"),i("SwitchStatement",Ie,"discriminant>expression, cases@body"),i("ReturnStatement",Be,"argument>value"),i("ThrowStatement",De,"argument>value"),i("WhileStatement",_e,"test>condition, body>body"),i("DoWhileStatement",be,"test>condition, body>body"),i("ForStatement",xe,"init>init, test>condition, update>step, body>body"),i("ForInStatement",we,"left>init, right>object, body>body"),i("DebuggerStatement",ce),i("VariableDeclarator",Xe,"id>name, init>value"),i("CatchClause",qe,"param>argname, body%body"),i("ThisExpression",At),i("BinaryExpression",it,"operator=operator, left>left, right>right"),i("LogicalExpression",it,"operator=operator, left>left, right>right"),i("AssignmentExpression",st,"operator=operator, left>left, right>right"),i("ConditionalExpression",ot,"test>condition, consequent>consequent, alternate>alternative"),i("NewExpression",Ke,"callee>expression, arguments@args"),i("CallExpression",Ye,"callee>expression, arguments@args"),a(Ae,function(e){return{type:"Program",body:e.body.map(u)}}),a(Oe,function(e){return{type:"FunctionDeclaration",id:u(e.name),params:e.argnames.map(u),body:c(e)}}),a(Te,function(e){return{type:"FunctionExpression",id:u(e.name),params:e.argnames.map(u),body:c(e)}}),a(le,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),a(pe,function(e){return{type:"ExpressionStatement",expression:u(e.body)}}),a(je,function(e){return{type:"SwitchCase",test:u(e.expression),consequent:e.body.map(u)}}),a(ze,function(e){return{type:"TryStatement",block:c(e),handler:u(e.bcatch),guardedHandlers:[],finalizer:u(e.bfinally)}}),a(qe,function(e){return{type:"CatchClause",param:u(e.argname),guard:null,body:c(e)}}),a(He,function(e){return{type:"VariableDeclaration",kind:e instanceof Ge?"const":"var",declarations:e.definitions.map(u)}}),a(Je,function(e){return{type:"SequenceExpression",expressions:e.to_array().map(u)}}),a(Qe,function(e){var t=e instanceof et;return{type:"MemberExpression",object:u(e.expression),computed:t,property:t?u(e.property):{type:"Identifier",name:e.property}}}),a(tt,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof nt,argument:u(e.expression)}}),a(it,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:u(e.left),operator:e.operator,right:u(e.right)}}),a(at,function(e){return{type:"ArrayExpression",elements:e.elements.map(u)}}),a(ut,function(e){return{type:"ObjectExpression",properties:e.properties.map(u)}}),a(ct,function(e){var t,n=I(e.key)?{type:"Identifier",name:e.key}:{type:"Literal",value:e.key};return e instanceof lt?t="init":e instanceof ft?t="get":e instanceof pt&&(t="set"),{type:"Property",kind:t,key:n,value:u(e.value)}}),a(ht,function(e){var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),a(Ot,function(e){var t=e.value;return{type:"Literal",value:t,raw:t.toString(),regex:{pattern:t.source,flags:t.toString().match(/[gimuy]*$/)[0]}}}),a(Ct,function(e){var t=e.value;return"number"==typeof t&&(t<0||0===t&&1/t<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-t,raw:e.start.raw}}:{type:"Literal",value:t,raw:e.start.raw}}),a(Ft,function(e){return{type:"Identifier",name:String(e.value)}}),Nt.DEFMETHOD("to_mozilla_ast",Ct.prototype.to_mozilla_ast),Lt.DEFMETHOD("to_mozilla_ast",Ct.prototype.to_mozilla_ast),Rt.DEFMETHOD("to_mozilla_ast",function(){return null}),fe.DEFMETHOD("to_mozilla_ast",he.prototype.to_mozilla_ast),Ce.DEFMETHOD("to_mozilla_ast",Te.prototype.to_mozilla_ast);var f=null;ae.from_mozilla_ast=function(e){var t=f;f=[];var n=o(e);return f=t,n}}(),n.Compressor=Q,n.DefaultsError=l,n.Dictionary=C,n.JS_Parse_Error=q,n.MAP=oe,n.OutputStream=J,n.SourceMap=Z,n.TreeTransformer=X,n.TreeWalker=L,n.base54=an,n.defaults=p,n.mangle_properties=te,n.merge=f,n.parse=G,n.push_uniq=y,n.string_template=b,n.tokenizer=W,n.is_identifier=I,n.SymbolDef=Y,n.sys=ne,n.MOZ_SourceMap=re,n.UglifyJS=ie,n.array_to_hash=r,n.slice=i,n.characters=o,n.member=s,n.find_if=a,n.repeat_string=u,n.configure_error_stack=c,n.DefaultsError=l,n.defaults=p,n.merge=f,n.noop=h,n.return_false=d,n.return_true=m,n.return_this=g,n.return_null=v,n.MAP=oe,n.push_uniq=y,n.string_template=b,n.remove=_,n.mergeSort=x,n.set_difference=w,n.set_intersection=k,n.makePredicate=E,n.all=A,n.Dictionary=C,n.HOP=S,n.first_in_statement=T,n.DEFNODE=O,n.AST_Token=se,n.AST_Node=ae,n.AST_Statement=ue,n.AST_Debugger=ce,n.AST_Directive=le,n.AST_SimpleStatement=pe,n.walk_body=F,n.AST_Block=fe,n.AST_BlockStatement=he,n.AST_EmptyStatement=de,n.AST_StatementWithBody=me,n.AST_LabeledStatement=ge,n.AST_IterationStatement=ve,n.AST_DWLoop=ye,n.AST_Do=be,n.AST_While=_e,n.AST_For=xe,n.AST_ForIn=we,n.AST_With=ke,n.AST_Scope=Ee,n.AST_Toplevel=Ae,n.AST_Lambda=Ce,n.AST_Accessor=Se,n.AST_Function=Te,n.AST_Defun=Oe,n.AST_Jump=Fe,n.AST_Exit=Le,n.AST_Return=Be,n.AST_Throw=De,n.AST_LoopControl=Re,n.AST_Break=Me,n.AST_Continue=Ne,n.AST_If=Pe,n.AST_Switch=Ie,n.AST_SwitchBranch=je,n.AST_Default=Ve,n.AST_Case=Ue,n.AST_Try=ze,n.AST_Catch=qe,n.AST_Finally=$e,n.AST_Definitions=He,n.AST_Var=We,n.AST_Const=Ge,n.AST_VarDef=Xe,n.AST_Call=Ye,n.AST_New=Ke,n.AST_Seq=Je,n.AST_PropAccess=Qe,n.AST_Dot=Ze,n.AST_Sub=et,n.AST_Unary=tt,n.AST_UnaryPrefix=nt,n.AST_UnaryPostfix=rt,n.AST_Binary=it,n.AST_Conditional=ot,n.AST_Assign=st,n.AST_Array=at,n.AST_Object=ut,n.AST_ObjectProperty=ct,n.AST_ObjectKeyVal=lt,n.AST_ObjectSetter=pt,n.AST_ObjectGetter=ft,n.AST_Symbol=ht,n.AST_SymbolAccessor=dt,n.AST_SymbolDeclaration=mt,n.AST_SymbolVar=gt,n.AST_SymbolConst=vt,n.AST_SymbolFunarg=yt,n.AST_SymbolDefun=bt,n.AST_SymbolLambda=_t,n.AST_SymbolCatch=xt,n.AST_Label=wt,n.AST_SymbolRef=kt,n.AST_LabelRef=Et,n.AST_This=At,n.AST_Constant=Ct,n.AST_String=St,n.AST_Number=Tt,n.AST_RegExp=Ot,n.AST_Atom=Ft,n.AST_Null=Lt,n.AST_NaN=Bt,n.AST_Undefined=Dt,n.AST_Hole=Rt,n.AST_Infinity=Mt,n.AST_Boolean=Nt,n.AST_False=Pt,n.AST_True=It,n.TreeWalker=L,n.KEYWORDS=jt,n.KEYWORDS_ATOM=Vt,n.RESERVED_WORDS=Ut,n.KEYWORDS_BEFORE_EXPRESSION=zt,n.OPERATOR_CHARS=qt,n.RE_HEX_NUMBER=$t,n.RE_OCT_NUMBER=Ht,n.OPERATORS=Wt,n.WHITESPACE_CHARS=Gt,n.NEWLINE_CHARS=Xt,n.PUNC_BEFORE_EXPRESSION=Yt,n.PUNC_CHARS=Kt,n.REGEXP_MODIFIERS=Jt,n.UNICODE=Qt,n.is_letter=B,n.is_digit=D,n.is_alphanumeric_char=R,n.is_unicode_digit=M,n.is_unicode_combining_mark=N,n.is_unicode_connector_punctuation=P,n.is_identifier=I,n.is_identifier_start=j,n.is_identifier_char=V,n.is_identifier_string=U,n.parse_js_number=z,n.JS_Parse_Error=q,n.js_error=$,n.is_token=H,n.EX_EOF=Zt,n.tokenizer=W,n.UNARY_PREFIX=en,n.UNARY_POSTFIX=tn,n.ASSIGNMENT=nn,n.PRECEDENCE=rn,n.STATEMENTS_WITH_LABELS=on,n.ATOMIC_START_TOKEN=sn,n.parse=G,n.TreeTransformer=X,n.SymbolDef=Y,n.base54=an,n.EXPECT_DIRECTIVE=un,n.is_some_comments=K,n.OutputStream=J,n.Compressor=Q,n.SourceMap=Z,n.find_builtins=ee,n.mangle_properties=te,n.AST_Node.warn_function=function(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)},n.minify=function(e,n){function r(e,t){var r=n.fromString?e:fs.readFileSync(e,"utf8");"inline"==i&&(i=read_source_map(r)),s[t]=r,o=ie.parse(r,{filename:t,toplevel:o,bare_returns:n.parse?n.parse.bare_returns:void 0})}n=ie.defaults(n,{spidermonkey:!1,outSourceMap:null,outFileName:null,sourceRoot:null,inSourceMap:null,sourceMapUrl:null,sourceMapInline:!1,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),ie.base54.reset();var i=n.inSourceMap;"string"==typeof i&&"inline"!=i&&(i=JSON.parse(fs.readFileSync(i,"utf8")));var o=null,s={};if(n.spidermonkey){if("inline"==i)throw new Error("inline source map only works with built-in parser");o=ie.AST_Node.from_mozilla_ast(e)}else{if(!n.fromString&&(e=ie.simple_glob(e),"inline"==i&&e.length>1))throw new Error("inline source map only works with singular input");[].concat(e).forEach(function(e,t){if("string"==typeof e)r(e,n.fromString?t:e);else for(var i in e)r(e[i],i)})}if(n.wrap&&(o=o.wrap_commonjs(n.wrap,n.exportAll)),n.compress){var a={warnings:n.warnings};ie.merge(a,n.compress),o.figure_out_scope(n.mangle);var u=ie.Compressor(a);o=u.compress(o)}(n.mangleProperties||n.nameCache)&&(n.mangleProperties.cache=ie.readNameCache(n.nameCache,"props"),o=ie.mangle_properties(o,n.mangleProperties),ie.writeNameCache(n.nameCache,"props",n.mangleProperties.cache)),n.mangle&&(o.figure_out_scope(n.mangle),o.compute_char_frequency(n.mangle),o.mangle_names(n.mangle));var c={max_line_len:32e3};if((n.outSourceMap||n.sourceMapInline)&&(c.source_map=ie.SourceMap({file:n.outFileName||("string"==typeof n.outSourceMap?n.outSourceMap.replace(/\.map$/i,""):null),orig:i,root:n.sourceRoot}),n.sourceMapIncludeSources))for(var l in s)s.hasOwnProperty(l)&&c.source_map.get().setSourceContent(l,s[l]);n.output&&ie.merge(c,n.output);var p=ie.OutputStream(c);o.print(p);var f=c.source_map;f&&(f+="");return n.sourceMapInline?p+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+new t(f).toString("base64"):n.outSourceMap&&"string"==typeof n.outSourceMap&&n.sourceMapUrl!==!1&&(p+="\n//# sourceMappingURL="+("string"==typeof n.sourceMapUrl?n.sourceMapUrl:n.outSourceMap)),{code:p+"",map:f}},n.describe_ast=function(){function e(n){t.print("AST_"+n.TYPE);var r=n.SELF_PROPS.filter(function(e){return!/^\$/.test(e)});r.length>0&&(t.space(),t.with_parens(function(){r.forEach(function(e,n){n&&t.space(),t.print(e)})})),n.documentation&&(t.space(),t.print_string(n.documentation)),n.SUBCLASSES.length>0&&(t.space(),t.with_block(function(){n.SUBCLASSES.forEach(function(n,r){t.indent(),e(n),t.newline()})}))}var t=ie.OutputStream({beautify:!0});return e(ie.AST_Node),t+""}}).call(this,e("buffer").Buffer)},{buffer:12,"source-map":169,util:183}],178:[function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,n){if(e&&c.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function o(e){return c.isString(e)&&(e=i(e)),e instanceof r?e.format():r.prototype.format.call(e)}function s(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}var u=e("punycode"),c=e("./util");n.parse=i,n.resolve=s,n.resolveObject=a,n.format=o,n.Url=r;var l=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),m=["'"].concat(d),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],y={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=e("querystring");r.prototype.parse=function(e,t,n){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/"),e=o.join(i);var s=e;if(s=s.trim(),!n&&1===e.split("#").length){var a=f.exec(s);if(a)return this.path=s,this.href=s,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?x.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var p=l.exec(s);if(p){p=p[0];var h=p.toLowerCase();this.protocol=h,s=s.substr(p.length)}if(n||p||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var d="//"===s.substr(0,2);!d||p&&b[p]||(s=s.substr(2),this.slashes=!0)}if(!b[p]&&(d||p&&!_[p])){for(var w=-1,k=0;k<v.length;k++){var E=s.indexOf(v[k]);E!==-1&&(w===-1||E<w)&&(w=E)}var A,C;C=w===-1?s.lastIndexOf("@"):s.lastIndexOf("@",w),C!==-1&&(A=s.slice(0,C),s=s.slice(C+1),this.auth=decodeURIComponent(A)),w=-1;for(var k=0;k<g.length;k++){var E=s.indexOf(g[k]);E!==-1&&(w===-1||E<w)&&(w=E)}w===-1&&(w=s.length),this.host=s.slice(0,w),s=s.slice(w),this.parseHost(),this.hostname=this.hostname||"";var S="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!S)for(var T=this.hostname.split(/\./),k=0,O=T.length;k<O;k++){var F=T[k];if(F&&!F.match(/^[+a-z0-9A-Z_-]{0,63}$/)){for(var L="",B=0,D=F.length;B<D;B++)F.charCodeAt(B)>127?L+="x":L+=F[B];if(!L.match(/^[+a-z0-9A-Z_-]{0,63}$/)){var R=T.slice(0,k),M=T.slice(k+1),N=F.match(/^([+a-z0-9A-Z_-]{0,63})(.*)$/);N&&(R.push(N[1]),M.unshift(N[2])),M.length&&(s="/"+M.join(".")+s),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),S||(this.hostname=u.toASCII(this.hostname));var P=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+P,this.href+=this.host,S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!y[h])for(var k=0,O=m.length;k<O;k++){var j=m[k];if(s.indexOf(j)!==-1){var V=encodeURIComponent(j);V===j&&(V=escape(j)),s=s.split(j).join(V)}}var U=s.indexOf("#");U!==-1&&(this.hash=s.substr(U),s=s.slice(0,U));var z=s.indexOf("?");if(z!==-1?(this.search=s.substr(z),this.query=s.substr(z+1),t&&(this.query=x.parse(this.query)),s=s.slice(0,z)):t&&(this.search="",this.query={}),s&&(this.pathname=s),_[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var P=this.pathname||"",q=this.search||"";this.path=P+q}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&c.isObject(this.query)&&Object.keys(this.query).length&&(o=x.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&i!==!1?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+i+n+s+r},r.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(c.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var l=a[u];"protocol"!==l&&(n[l]=e[l])}return _[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!_[e.protocol]){for(var p=Object.keys(e),f=0;f<p.length;f++){var h=p[f];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),x=y||v||n.host&&e.pathname,w=x,k=n.pathname&&n.pathname.split("/")||[],d=e.pathname&&e.pathname.split("/")||[],E=n.protocol&&!_[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),x=x&&(""===d[0]||""===k[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=d;else if(d.length)k||(k=[]),k.pop(),k=k.concat(d),n.search=e.search,n.query=e.query;else if(!c.isNullOrUndefined(e.search)){if(E){n.hostname=n.host=k.shift();var A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");A&&(n.auth=A.shift(),n.host=n.hostname=A.shift())}return n.search=e.search,n.query=e.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var C=k.slice(-1)[0],S=(n.host||e.host||k.length>1)&&("."===C||".."===C)||""===C,T=0,O=k.length;O>=0;O--)C=k[O],"."===C?k.splice(O,1):".."===C?(k.splice(O,1),T++):T&&(k.splice(O,1),T--);if(!x&&!w)for(;T--;T)k.unshift("..");!x||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),S&&"/"!==k.join("/").substr(-1)&&k.push("");var F=""===k[0]||k[0]&&"/"===k[0].charAt(0);if(E){n.hostname=n.host=F?"":k.length?k.shift():"";var A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");A&&(n.auth=A.shift(),n.host=n.hostname=A.shift())}return x=x||n.host&&k.length,x&&!F&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=p.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":179,punycode:141,querystring:144}],179:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],180:[function(e,t,n){(function(e){function n(e,t){function n(){if(!i){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],181:[function(e,t,n){arguments[4][99][0].apply(n,arguments)},{dup:99}],182:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],183:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&n._extend(r,t),x(r.showHidden)&&(r.showHidden=!1),x(r.depth)&&(r.depth=2),x(r.colors)&&(r.colors=!1),x(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function s(e,t){return e}function a(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return b(i)||(i=u(e,i,r)),i}var o=c(e,t);if(o)return o;var s=Object.keys(t),m=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),A(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(t);if(0===s.length){if(C(t)){var g=t.name?": "+t.name:"";return e.stylize("[Function"+g+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(E(t))return e.stylize(Date.prototype.toString.call(t),"date");if(A(t))return l(t)}var v="",y=!1,_=["{","}"];if(d(t)&&(y=!0,_=["[","]"]),C(t)){v=" [Function"+(t.name?": "+t.name:"")+"]"}if(w(t)&&(v=" "+RegExp.prototype.toString.call(t)),E(t)&&(v=" "+Date.prototype.toUTCString.call(t)),A(t)&&(v=" "+l(t)),0===s.length&&(!y||0==t.length))return _[0]+v+_[1];if(r<0)return w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var x;return x=y?p(e,t,r,m,s):s.map(function(n){return f(e,t,r,m,n,y)}),e.seen.pop(),h(x,v,_)}function c(e,t){if(x(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)L(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))}),o}function f(e,t,n,r,i,o){var s,a,c;if(c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},c.get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),L(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(c.value)<0?(a=g(n)?u(e,c.value,null):u(e,c.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),x(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function d(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return null==e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"==typeof e}function x(e){return void 0===e}function w(e){return k(e)&&"[object RegExp]"===T(e)}function k(e){return"object"==typeof e&&null!==e}function E(e){return k(e)&&"[object Date]"===T(e)}function A(e){return k(e)&&("[object Error]"===T(e)||e instanceof Error)}function C(e){return"function"==typeof e}function S(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}function F(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,s=String(e).replace(/%[sdj%]/g,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),a=r[n];n<o;a=r[++n])g(a)||!k(a)?s+=" "+a:s+=" "+i(a);return s},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(x(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var B,D={};n.debuglog=function(e){if(x(B)&&(B=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!D[e])if(new RegExp("\\b"+e+"\\b","i").test(B)){var r=t.pid;D[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else D[e]=function(){};return D[e]},n.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=m,n.isNull=g,n.isNullOrUndefined=v,n.isNumber=y,n.isString=b,n.isSymbol=_,n.isUndefined=x,n.isRegExp=w,n.isObject=k,n.isDate=E,n.isError=A,n.isFunction=C,n.isPrimitive=S,n.isBuffer=e("./support/isBuffer");var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",F(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":182,_process:112,inherits:181}],184:[function(e,t,n){t.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}},{}],185:[function(e,t,n){"use strict";function r(e){return a.parse(e,{ecmaVersion:6,allowReturnOutsideFunction:!0})}function i(e,t,n){e+="",t+="",n=n||[],n=n.concat(s(e).map(function(e){return e.name}));var r=s(t).map(function(e){return e.name}).filter(function(e){return n.indexOf(e)===-1&&"undefined"!==e&&"this"!==e});if(0===r.length)return t;var i="",a="locals_for_with",u="result_of_with";if(/^[a-zA-Z0-9$_]+$/.test(e))a=e;else{for(;r.indexOf(a)!=-1||n.indexOf(a)!=-1;)a+="_";i="var "+a+" = ("+e+")"}for(;r.indexOf(u)!=-1||n.indexOf(u)!=-1;)u+="_";var c=r.map(function(e){return JSON.stringify(e)+" in "+a+"?"+a+"."+e+":typeof "+e+'!=="undefined"?'+e+":undefined"});return t="(function ("+r.join(", ")+") {"+t+"}.call(this"+c.map(function(e){return","+e}).join("")+"))",";"+i+";"+o(t,u)+";"}function o(e,t){function n(t){return e.slice(t.start,t.end).join("")}function i(t,n){for(var r=t.start;r<t.end;r++)e[r]="";e[t.start]=n}var o,s=e,a=!1,c=r(e);if(e=e.split(""),1!==(o=c.body).length||"ExpressionStatement"!==(o=o[0]).type||"CallExpression"!==(o=o.expression).type||"MemberExpression"!==(o=o.callee).type||o.computed!==!1||"call"!==o.property.name||"FunctionExpression"!==(o=o.object).type)throw new Error("AST does not seem to represent a self-calling function");var l=o;return u.recursive(c,null,{Function:function(e,t,n){e===l&&n(e.body,t,"ScopeBody")},ReturnStatement:function(e){a=!0,i(e,"return {value: ("+(e.argument?n(e.argument):"undefined")+")};")}}),a?"var "+t+"="+e.join("")+";if ("+t+") return "+t+".value":s}var s=e("acorn-globals"),a=e("acorn"),u=e("acorn/dist/walk");t.exports=i},{acorn:186,"acorn-globals":1,"acorn/dist/walk":187}],186:[function(e,t,n){arguments[4][88][0].apply(n,arguments)},{dup:88}],187:[function(e,t,n){arguments[4][89][0].apply(n,arguments)},{dup:89}],188:[function(e,t,n){function r(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)i.call(n,r)&&(e[r]=n[r])}return e}t.exports=r;var i=Object.prototype.hasOwnProperty},{}]},{},[140])(140)}); |