imba-source 0.14.1 → 0.14.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2037 +0,0 @@
1
- (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Imbac = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
- !function(){function e(e,r){return void 0===r&&(r={}),i.tokenize(e,r)}function r(e,r){return void 0===r&&(r={}),i.rewrite(e,r)}function n(e,r){return i.parse(e,r)}function t(e,r){return void 0===r&&(r={}),i.compile(e,r)}function o(e,r){return void 0===r&&(r={}),i.analyze(e,r)}var i=require("./compiler");i.parser;return exports.tokenize=e,exports.rewrite=r,exports.parse=n,exports.compile=t,exports.analyze=o,o}();
3
- },{"./compiler":2}],2:[function(require,module,exports){
4
- (function (process){
5
- !function(){function e(e,r){void 0===r&&(r={});try{return r._source=e,s.reset(),s.tokenize(e,r)}catch(n){throw n}}function r(e,r){void 0===r&&(r={});var n=new u;try{return n.rewrite(e,r)}catch(t){throw t}}function n(r,n){void 0===n&&(n={});var t=r instanceof Array?r:e(r,n);try{return n._source=r,n._tokens=t,a.parse(t)}catch(i){throw n.filename&&(i._filename=n.filename),i}}function t(r,t){void 0===t&&(t={});try{var i=e(r,t),o=n(i,t);return o.compile(t)}catch(a){if(t.filename&&(a._filename=t.filename),i&&a instanceof v){try{var s=a.start()}catch(u){throw a}var l=m.locationToLineColMap(r),c=r.split(/\n/g),f=l[s._loc]||[0,0],p=f[0],d=f[1],x=c[p],h=a.message+("\n\n"+p)+("\n"+(p+1)+" "+x)+("\n"+(p+2)),q=function(e,r,n){return e+=n==d?"^":" "==r?r:" "};h+=x.split("").reduce(q,""),a.message=h}throw a}}function i(e,r){void 0===r&&(r={});var t;try{var i=n(e,r);t=i.analyze(r)}catch(o){if(!(o instanceof v)){if(!o.lexer)throw o;o=new v(o,{tokens:o.lexer.tokens,pos:o.lexer.pos})}t={warnings:[o]}}return t}function o(e,r){r&&r.constructor===Object||(r={});var n=void 0!==r.filename?r.filename:null,i=require.main;i.filename=process.argv[1]=n?l.realpathSync(n):".",i.moduleCache&&(i.moduleCache={});var o=require("module").Module;if(i.paths=o._nodeModulePaths(c.dirname(n)),".imba"!=c.extname(i.filename)||require.extensions){var a=t(e,arguments[1]);return i._compile(a.js||a,i.filename)}return i._compile(e,i.filename)}var a,s,u,l=require("fs"),c=require("path"),m=(require("./token"),require("./errors"),require("./helpers")),f=require("./lexer"),p=require("./rewriter");module.exports.parser=a=require("./parser").parser;var d=require("./nodes"),v=require("./errors").ImbaParseError;return module.exports.lex=s=new f.Lexer,module.exports.Rewriter=u=p.Rewriter,a.lexer=s.jisonBridge(),a.yy=d,exports.tokenize=e,exports.rewrite=r,exports.parse=n,exports.compile=t,exports.analyze=i,exports.run=o,require.extensions?require.extensions[".imba"]=function(e,r){var n=t(l.readFileSync(r,"utf8"),{filename:r});return e._compile(n.js||n,r)}:void 0}();
6
- }).call(this,require('_process'))
7
- },{"./errors":3,"./helpers":4,"./lexer":5,"./nodes":6,"./parser":7,"./rewriter":8,"./token":10,"_process":17,"fs":11,"module":11,"path":16}],3:[function(require,module,exports){
8
- !function(){function t(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r]);t.prototype=Object.create(o.prototype),t.__super__=t.prototype.__super__=o.prototype,t.prototype.initialize=t.prototype.constructor=t}function o(t,o){this.error=t,this.message=t.message,this.filename=t.filename,this.line=t.line,this._options=o||{}}return t(o,Error),exports.ImbaParseError=o,o.wrap=function(t){return new o(t)},o.prototype.set=function(t){this._options||(this._options={});for(var o=0,r=Object.keys(t),e=r.length;e>o;o++)this._options[r[o]]=t[r[o]];return this},o.prototype.start=function(){for(var t=this._options,o=t.pos-1,r=t.tokens&&t.tokens[o];r&&-1==r._loc;)r=t.tokens[--o];return r},o.prototype.desc=function(){var t=this._options,o=this.message;return t.token&&-1==t.token._loc?"Syntax Error":o},o.prototype.loc=function(){var t;return(t=this.start())&&t.region&&t.region()},o.prototype.toJSON=function(){this._options,this.start();return{warn:!0,message:this.desc(),loc:this.loc()}},o}();
9
- },{}],4:[function(require,module,exports){
10
- !function(){function n(n){var e=n.match(/\n/);return e?"{"+n+"\n}":"{\n"+n+"\n}"}function e(n){for(var e,r,t=/\n+([^\n\S]*)/g,o=null;e=t.exec(n);){var u=e[1];(null==o||0<(r=u.length)&&r<o.length)&&(o=u)}return o&&(n=n.replace(RegExp("\\n"+o,"g"),"\n")),n}function r(n){var e=[];return n.forEach(function(n){return n instanceof Array?e.push.apply(e,r(n)):e.push(n)}),e}function t(n){return n.replace(/(^|[\-\_\s])(\w)/g,function(n,e,r){return r.toUpperCase()})}function o(n){return n=String(n),n.replace(/([\-\_\s])(\w)/g,function(n,e,r){return r.toUpperCase()})}function u(n){var n=n.replace(/([\-\s])(\w)/g,"_");return n.replace(/()([A-Z])/g,"_$1",function(n,e,r){return r.toUpperCase()})}function a(n){return o("set-"+n)}function p(n){return'"'+n+'"'}function s(n){return"'"+n+"'"}function c(n){n=String(n);var e=n.charAt(n.length-1);return"="==e&&(n="set"+n[0].toUpperCase()+n.slice(1,-1)),n.indexOf("-")>=0&&(n=n.replace(/([\-\s])(\w)/g,function(n,e,r){return r.toUpperCase()})),n}function i(n){return String(n).replace(/^/g," ").replace(/\n/g,"\n ").replace(/\n\t$/g,"\n")}function l(n,e){return void 0===e&&(e=!0),e&&(n="\n"+i(n)+"\n"),"{"+n+"}"}function f(n){return"("+String(n)+")"}function g(n){for(var e,r=(n.split(/\n/g),[]),t=0,o=0,u=0;e=n[t];)r[t]=[u,o],"\n"==e?(u++,o=0):o++,t++;return r}function x(n,e){return this}return exports.brace=n,exports.normalizeIndentation=e,exports.flatten=r,exports.pascalCase=t,exports.camelCase=o,exports.snakeCase=u,exports.setterSym=a,exports.quote=p,exports.singlequote=s,exports.symbolize=c,exports.indent=i,exports.bracketize=l,exports.parenthesize=f,exports.locationToLineColMap=g,exports.markLineColForTokens=x,x}();
11
- },{}],5:[function(require,module,exports){
12
- !function(){function t(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function e(t){return t?t.toArray?t.toArray():t:[]}function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}function s(t,e,n){return this.message=t,this.file=e,this.line=n,this}function i(t,e){return void 0===e&&(e=0),t[t.length-e-1]}function r(t,e){return t.split(e).length-1}function h(t,e){for(var n="";e>0;)e%2==1&&(n+=t),t+=t,e>>=1;return n}function o(){this.reset()}var a,u=require("./token"),l=u.Token,c=require("./rewriter"),p=c.Rewriter,_=c.INVERSES,f=require("./errors"),T=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return"],E=["undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import"],k=["extend","static","local","export","global","prop"],d={and:"&&",or:"||",is:"==",isnt:"!=",not:"!",yes:"true",no:"false",isa:"instanceof","case":"switch",nil:"null"},g=Object.keys(d);E=E.concat(g),module.exports.ALL_KEYWORDS=a=["true","false","null","this","delete","typeof","in","instanceof","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","return","undefined","then","unless","until","loop","of","by","when","def","tag","do","elif","begin","var","let","self","await","import","and","or","is","isnt","not","yes","no","isa","case","nil"];var R=["case","default","function","void","with","const","enum","native"],A=(T.concat(R),/^((([\x23]?[\$A-Za-z_\x7f-\uffff][$\-\w\x7f-\uffff]*)([\=]?))|(<=>|\|(?![\|=])))/),N=/^((\$|@@|@|\#)[\wA-Za-z_\-\x7f-\uffff][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*|[$A-Za-z_][$\w\x7f-\uffff]*(\-[$\w\x7f-\uffff]+)*)([^\n\S]*:(?![\*\=:$\w\x7f-\uffff]))?/,S=/^((\$|@@|@|)[$A-Za-z_\x7f-\uffff\-][$\w\x7f-\uffff\-]*)([^\n\S\s]*:(?![\*\=:$\w\x7f-\uffff]))/,O=/^(\<|%)(?=[A-Za-z\#\.\{\@\>])/,I=/^(\w[\w\d]*:)?(\w[\w\d]*)(-[\w\d]+)*/,v=/^#((\w[\w\d]*)(-[\w\d]+)*)/,x=/^([\.\:]?[\w\_]+([\-\:][\w]+)*)(\s)*\=/,y=/^([%\$]{1,2})([\(\w\#\.\[])/,D=/^(\#|\.|:|::)?([\w]+(\-[\w]+)*)/,L=/^ (\+|\>|\~)*\s*(?=[\w\.\#\:\{\*\[])/,G=/^\[([\w\_\-]+)(\$=|\~=|\^=|\*=|\|=|=|\!=)/,w=/^\:((([\*\@$\w\x7f-\uffff]+)+([\-\\/\\\:][\w\x7f-\uffff]+)*)|==|\<=\>|\[\]|\[\]\=|\*|[\\/,\\])/,b=/^0x[\da-f]+|^0b[01]+|^\d*\.?\d+(?:e[+-]?\d+)?/i,C=/^("""|''')([\s\S]*?)(?:\n[^\n\S]*)?\1/,M=/^(?:[-=]=>|===|->|!==|[-+*\/%<>&|^!?=]=|=<|>>>=?|([-+:])\1|([&|<>])\2=?|\?\.|\?\:|\.{2,3}|\*(?=[a-zA-Z\_]))/,F=/^[^\n\S]+/,m=/^###([^#][\s\S]*?)(?:###[^\n\S]*|(?:###)?$)/,U=/^(\s*)(#[ \t\!](.*)|#[ \t]?(?=\n|$))+/,P=/^[-=]=>/,$=/^(?:\n[^\n\S]*)+/,H=/^'[^\\']*(?:\\.[^\\']*)*'/,V=/^`[^\\`]*(?:\\.[^\\`]*)*`/,B=/^(\/(?![\s=])[^[\/\n\\]*(?:(?:\\[\s\S]|\[[^\]\n\\]*(?:\\[\s\S][^\]\n\\]*)*])[^[\/\n\\]*)*\/)([imgy]{0,4})(?!\w)/,Y=/^\/{3}([\s\S]+?)\/{3}([imgy]{0,4})(?!\w)/,z=/\s+(?:#.*)?/g,q=/\n/g,X=/\n+([^\n\S]*)/g,K=/\*\//,W=/^\s*(?:,|\??\.(?![.\d])|::)/,Z=/^[A-Z]/,j=/^\$\d$/,J=["-=","+=","/=","*=","%=","||=","&&=","?=","<<=",">>=",">>>=","&=","^=","|=","=<"],Q=["!","~","NEW","TYPEOF","DELETE"],tt=["&&","||","&","|","^"],et=["<<",">>",">>>"],nt=["===","!==","==","!=","<",">","<=",">=","===","!=="],st=["<=>","<<",".."],it=["*","/","%","∪","∩","√"],rt=["IN","OF","INSTANCEOF","ISA"],ht=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]"],ot=["NUMBER","REGEX","BOOL","TRUE","FALSE","++","--","]",")","}","THIS","SELF","IDENTIFIER","STRING"],at=["\\",".","?.","?:","UNARY","MATH","+","-","SHIFT","RELATION","COMPARE","LOGIC","COMPOUND_ASSIGN","THROW","EXTENDS"],ut=["IDENTIFIER","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","GVAR","SELF","CONST","NEW","ARGVAR","SYMBOL","RETURN"],lt=["IDENTIFIER","STRING","REGEX",")","]","THIS","SUPER","TAG_END","IVAR","GVAR","SELF","CONST","NEW","ARGVAR","SYMBOL","RETURN","NUMBER","BOOL","TAG_SELECTOR","IDREF","ARGUMENTS","}","TAG_TYPE"],ct=["INDENT","OUTDENT","TERMINATOR"];n(s,SyntaxError),exports.LexerError=s;var pt=u.typ,_t=u.val,ft=u.setTyp,Tt=u.setVal;return exports.Lexer=o,o.prototype.reset=function(){return this._code=null,this._chunk=null,this._opts=null,this._indent=0,this._indebt=0,this._outdebt=0,this._indents=[],this._ends=[],this._contexts=[],this._scopes=[],this._nextScope=null,this._tokens=[],this._seenFor=!1,this._loc=0,this._locOffset=0,this._end=null,this._char=null,this._bridge=null,this._last=null,this._lastTyp="",this._lastVal=null,this},o.prototype.jisonBridge=function(t){return this._bridge={lex:u.lex,setInput:function(t){return this.tokens=t,this.pos=0},upcomingInput:function(){return""}}},o.prototype.tokenize=function(t,e){if(void 0===e&&(e={}),0==t.length)return[];if(!e.inline){if(F.test(t)&&(t="\n"+t,t.match(/^\s*$/g)))return[];t=t.replace(/\r/g,"").replace(/[\t ]+$/g,"")}return this._last=null,this._lastTyp=null,this._lastVal=null,this._code=t,this._opts=e,this._locOffset=e.loc||0,e._tokens=this._tokens,e.profile&&console.time("tokenize:lexer"),this.parse(t),e.inline||this.closeIndentation(),!e.silent&&this._ends.length&&this.error("missing "+this._ends.pop()),e.profile&&console.timeEnd("tokenize:lexer"),0==e.rewrite||e.norewrite?this._tokens:(new p).rewrite(this._tokens,e)},o.prototype.parse=function(t){for(var e=0,n=0;this._chunk=t.slice(e);)this._loc=this._locOffset+e,n="TAG"==this._end&&this.tagDefContextToken()||this._inTag&&this.tagContextToken()||this.basicContext(),e+=n},o.prototype.basicContext=function(){return this.selectorToken()||this.symbolToken()||this.methodNameToken()||this.identifierToken()||this.whitespaceToken()||this.lineToken()||this.commentToken()||this.heredocToken()||this.tagToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken()||0},o.prototype.moveCaret=function(t){return this._loc+=t},o.prototype.context=function(){return this._ends[this._ends.length-1]},o.prototype.inContext=function(t){var e=this._contexts[this._contexts.length-1];return e&&e[t]},o.prototype.pushEnd=function(t){return this._ends.push(t),this._contexts.push(null),this._end=t,this.refreshScope(),this},o.prototype.popEnd=function(t){return this._ends.pop(),this._contexts.pop(),this._end=this._ends[this._ends.length-1],this.refreshScope(),this},o.prototype.refreshScope=function(){var t=this._ends[this._ends.length-1],e=this._ends[this._ends.length-2];return this._inTag="TAG_END"==t||"TAG_END"==e&&"OUTDENT"==t},o.prototype.queueScope=function(t){return this._scopes[this._indents.length]=t,this},o.prototype.popScope=function(t){return this._scopes.pop(),this},o.prototype.getScope=function(){return this._scopes[this._indents.length-1]},o.prototype.scope=function(t,e){this._ends.push(this._end=t);return this._contexts.push(e||null),t},o.prototype.closeSelector=function(){return"%"==this._end?(this.token("SELECTOR_END","%",0),this.pair("%")):void 0},o.prototype.openDef=function(){return this.pushEnd("DEF")},o.prototype.closeDef=function(){if("DEF"==this.context()){var t=i(this._tokens);if("DEF_FRAGMENT"==pt(t));else if("TERMINATOR"==pt(t)){var e=this._tokens.pop();this.token("DEF_BODY","DEF_BODY",0),this._tokens.push(e)}else this.token("DEF_BODY","DEF_BODY",0);this.pair("DEF")}},o.prototype.tagContextToken=function(){var t;if("#"==this._chunk[0])return this.token("#","#",1),1;if(t=x.exec(this._chunk)){"TAG_NAME"!=this._lastTyp&&("TERMINATOR"==this._lastTyp||this.token(",",","));var e=t[0].length;return this.token("TAG_ATTR",t[1],e-1),this._loc+=e-1,this.token("=","=",1),e}return 0},o.prototype.tagDefContextToken=function(){var t;if(t=I.exec(this._chunk))return this.token("TAG_TYPE",t[0],t[0].length),t[0].length;if(t=v.exec(this._chunk)){var e=t[0];return this.token("TAG_ID",e,e.length),e.length}return 0},o.prototype.tagToken=function(){var t,n;if(!(t=O.exec(this._chunk)))return 0;var n=e(t),s=n[0],i=n[1],r=n[2];if("<"==i){if(this.token("TAG_START","<",1),this.pushEnd(_.TAG_START),(t=I.exec(this._chunk.substr(1,40)))&&"self"!=t[0])return this.token("TAG_TYPE",t[0],t[0].length,1),s.length+t[0].length;if(r){if("{"==r.substr(0,1))return i.length;this.token("TAG_NAME",s.substr(1),0)}}return s.length},o.prototype.selectorToken=function(){var n,s;if("%"==this._end){var i=this._chunk.charAt(0),r=this.inContext("open");if(r&&(" "==i||"\n"==i||","==i||"+"==i||"~"==i||")"==i||"]"==i))return this.token("SELECTOR_END","%",0),this.pair("%"),0;if(s=L.exec(this._chunk))return this.token("SELECTOR_COMBINATOR",s[1]||" ",s[0].length),s[0].length;if(s=D.exec(this._chunk)){var h=s[1],o=s[2];switch(h){case".":a="SELECTOR_CLASS";break;case"#":a="SELECTOR_ID";break;case":":a="SELECTOR_PSEUDO_CLASS";break;case"::":a="SELECTOR_PSEUDO_CLASS";break;default:var a="SELECTOR_TAG"}return this.token(a,s[2],s[0].length),s[0].length}if("["==i){if(this.token("[","[",1),this.pushEnd("]"),s=G.exec(this._chunk)){var u=s[0].indexOf(s[1]),l=s[0].indexOf(s[2]);return this.token("IDENTIFIER",s[1],s[1].length,u),this.token("SELECTOR_ATTR_OP",s[2],s[2].length,l),s[0].length}return 1}if("|"==i){var c=this._tokens[this._tokens.length-1];return ft(c,"SELECTOR_NS"),1}if(","==i)return this.token("SELECTOR_GROUP",",",1),1;if("*"==i)return this.token("UNIVERSAL_SELECTOR","*",1),1;if(")"==i)return this.pair("%"),this.token("SELECTOR_END",")",1),1;if(t(i,[")","}","]",""])>=0)return this.pair("%"),0}if(!(s=y.exec(this._chunk)))return 0;var n=e(s),o=(n[0],n[1]),p=n[2];return"("==p?(this.token("SELECTOR_START",o,o.length+1),this.pushEnd("%"),o.length+1):"%"==o?"%"==this.context()?1:(this.token("SELECTOR_START",o,o.length),this.scope("%",{open:!0}),o.length):0},o.prototype.methodNameToken=function(){if(" "==this._chunk.charAt(0))return 0;var t;if(")"==this._end){var e=this._ends[this._ends.length-2];if("%"==e&&(t=x.exec(this._chunk)))return this.token("TAG_ATTR_SET",t[1]),t[0].length}if(!(t=A.exec(this._chunk)))return 0;var n=t[0].length,s=t[0],i=this._lastTyp,r="IDENTIFIER",h=s.charAt(0),o=!1,a=t[4];return"."==i||"DEF"==i||"!"==a||"?"==a||t[5]?"self"==s||"this"==s||"super"==s?0:("new"==s&&(r="NEW"),"..."==s&&[",","(","CALL_START","BLOCK_PARAM_START","PARAM_START"].indexOf(i)>=0?0:"|"==s?"("==i||"CALL_START"==i?(this.token("DO","DO",0),this.pushEnd("|"),this.token("BLOCK_PARAM_START",s,1),n):"DO"==i||"{"==i?(this.pushEnd("|"),this.token("BLOCK_PARAM_START",s,1),n):"|"==this._ends[this._ends.length-1]?(this.token("BLOCK_PARAM_END","|",1),this.pair("|"),n):0:["&","^","<<","<<<",">>"].indexOf(s)>=0||"|"==s&&"|"!=this.context()?0:(st.indexOf(s)>=0&&(o=!0),"@"==h?r="IVAR":"$"==h||("#"==h?r="TAGID":(Z.test(h)||"require"==s||"global"==s||"exports"==s)&&(r="CONST")),t[5]&&["IDENTIFIER","CONST","GVAR","CVAR","IVAR","SELF","THIS","]","}",")","NUMBER","STRING","IDREF"].indexOf(i)>=0&&this.token(".",".",0),this.token(r,s,n),o&&(this._last.spaced=!0),n)):0},o.prototype.inTag=function(){var t=this._ends.length;if(t>0){var e=this._ends[t-1],n=t>1?this._ends[t-2]:e;return"TAG_END"==e||"TAG_END"==n&&"OUTDENT"==e}return!1},o.prototype.isKeyword=function(t){if("attr"==t||"prop"==t){var e=this.getScope(),n="CLASS"==e||"TAG"==e;if(n)return!0}return a.indexOf(t)>=0},o.prototype.identifierToken=function(){var n,s,r,h=this._ends[this._ends.length-1],o=this._ends[this._ends.length-2],a=!1,u="TAG_END"==h||"TAG_END"==o&&"OUTDENT"==h;if(u&&(s=x.exec(this._chunk))){"TAG_NAME"!=this._lastTyp&&("TERMINATOR"==this._lastTyp||this.token(",",","));var l=s[0].length;return this.token("TAG_ATTR",s[1],l-1),this._loc+=l-1,this.token("=","=",1),l}if(s=S.exec(this._chunk)){var c=s[1];return r="IDENTIFIER",this.token(r,c,c.length),this.moveCaret(c.length),this.token(":",":",s[3].length),this.moveCaret(-c.length),s[0].length}if(!(s=N.exec(this._chunk)))return 0;var n=e(s),p=n[0],c=n[1],r=n[2],_=(n[3],n[4],n[5]),f=c.length;if("own"==c&&"FOR"==this.lastTokenType())return this.token("OWN",c,c.length),c.length;var T,E=i(this._tokens),R=this._lastTyp;T=_||"."==R||"?."==R,_&&"?"==R&&(T=!1),"tag"==c&&0==this._chunk.indexOf("tag(")&&(T=!0);var A=!1;if("$"==r&&j.test(c))"$0"==c?r="ARGUMENTS":(r="ARGVAR",c=c.substr(1));else if("@"==r)r="IVAR";else if("#"==r)r="IDENTIFIER",this.token("#","#"),c=c.substr(1);else if("@@"==r)r="CVAR";else if("$"!=r||_)if(Z.test(c)||"require"==c||"global"==c||"exports"==c)r="CONST";else{if("elif"==c)return this.token("ELSE","elif",c.length),this.token("IF","if"),c.length;r="IDENTIFIER"}else r="IDENTIFIER";if(!T&&(A=this.isKeyword(c))&&(r=c.toUpperCase(),a=!0,"YES"==r?r="TRUE":"NO"==r?r="FALSE":"NIL"==r?r="NULL":"VAR"==r?"export"==this._lastVal&&ft(E,"EXPORT"):"IF"==r||"ELSE"==r||"TRUE"==r||"FALSE"==r||"NULL"==r||("TAG"==r?this.pushEnd("TAG"):"DEF"==r?this.openDef():"DO"==r?"DEF"==this.context()&&this.closeDef():"WHEN"==r&&ct.indexOf(this.lastTokenType())>=0?r="LEADING_WHEN":"FOR"==r?this._seenFor=!0:"UNLESS"==r?r="IF":Q.indexOf(r)>=0?r="UNARY":rt.indexOf(r)>=0&&("INSTANCEOF"!=r&&"ISA"!=r&&this._seenFor?(r="FOR"+r,this._seenFor=!1):(r="RELATION","!"==String(this.value())&&(this._tokens.pop(),c="!"+c))))),"super"==c&&(r="SUPER"),!T)switch(A&&g.indexOf(c)>=0&&(c=d[c]),c){case"!":r="UNARY";break;case"==":case"!=":case"===":case"!==":r="COMPARE";break;case"&&":case"||":r="LOGIC";break;case"break":case"continue":case"debugger":case"arguments":r=c.toUpperCase()}var O=p.length;if("CLASS"==r||"DEF"==r||"TAG"==r){this.queueScope(r);for(var I=this._tokens.length;I;){E=this._tokens[--I];var v=""+_t(E);if(!(t(v,k)>=0))break;ft(E,v.toUpperCase())}}else"IF"==r?this.queueScope(r):"IMPORT"==r?this.pushEnd("IMPORT"):"from"==c&&"IMPORT"==h?(r="FROM",this.pair("IMPORT")):"as"==c&&"IMPORT"==h&&(r="AS",this.pair("IMPORT"));return"IDENTIFIER"==r&&"CATCH"==R&&(r="CATCH_VAR"),_?(this.token(r,c,f),this.moveCaret(f),this.token(":",":",_.length),this.moveCaret(-f)):this.token(r,c,f),O},o.prototype.numberToken=function(){var t,e,n,s;if(!(e=b.exec(this._chunk)))return 0;n=e[0],s=n.length,(t=/0b([01]+)/.exec(n))&&(n=""+parseInt(t[1],2));var r=i(this._tokens);return"."==e[0][0]&&r&&!r.spaced&&["IDENTIFIER",")","}","]","NUMBER"].indexOf(pt(r))>=0&&(this.token(".","."),n=n.substr(1)),this.token("NUMBER",n,s),s},o.prototype.symbolToken=function(){var e,n,s;if(!(e=w.exec(this._chunk)))return 0;if(n=e[0].substr(1),s=i(this._tokens),s&&!s.spaced&&-1==t(pt(s),["(","{","[",".","CALL_START","INDEX_START",",","=","INDENT","TERMINATOR"])){this.token(".:",":",1);var r=n.split(/[\:\\\/]/)[0];return this.token("IDENTIFIER",r,r.length,1),r.length+1}return this.token("SYMBOL",n,e[0].length),e[0].length},o.prototype.escapeStr=function(t,e,n){if(t=t.replace(q,e?"\\n":""),n){var s=RegExp("\\\\["+n+"]","g");t=t.replace(s,n),t=t.replace(RegExp(""+n,"g"),"\\$&")}return t},o.prototype.stringToken=function(){var t,e;switch(this._chunk.charAt(0)){case"'":if(!(t=H.exec(this._chunk)))return 0;e=t[0],this.token("STRING",this.escapeStr(e),e.length);break;case'"':if(!(e=this.balancedString(this._chunk,'"')))return 0;if(e.indexOf("{")>=0){var n=e.length;this.token("STRING_START",e.charAt(0),1),this.interpolateString(e.slice(1,-1)),this.token("STRING_END",e.charAt(n-1),1,e.length-1)}else n=e.length,this.token("STRING",this.escapeStr(e),n);break;default:return 0}return this.moveHead(e),e.length},o.prototype.heredocToken=function(){var t,e,n,s;if(!(t=C.exec(this._chunk)))return 0;if(e=t[0],n=e.charAt(0),s=this.sanitizeHeredoc(t[2],{quote:n,indent:null}),'"'==n&&s.indexOf("{")>=0){var i=t[1];this.token("STRING_START",i,i.length),this.interpolateString(s,{heredoc:!0,offset:i.length,quote:n}),this.token("STRING_END",i,i.length,e.length-i.length)}else this.token("STRING",this.makeString(s,n,!0),0);return this.moveHead(e),e.length},o.prototype.commentToken=function(){var t,e,n,s,r,h="HERECOMMENT";if(t=U.exec(this._chunk)){e=t[0].length,s=t[1],n=t[2],r=i(this._tokens);var o=r&&pt(r),a="//"+n.substr(1);return this._last&&this._last.spaced&&(a=" "+a),o&&"INDENT"!=o&&"TERMINATOR"!=o||!o?this.token("TERMINATOR",a,e):"TERMINATOR"==o?Tt(r,_t(r)+a):"INDENT"==o?this.addLinebreaks(1,a):this.token(h,n.substr(2),e),e}if(!(t=m.exec(this._chunk)))return 0;n=t[0];var u=t[1];return u?(this.token("HERECOMMENT",this.sanitizeHeredoc(u,{herecomment:!0,indent:Array(this._indent+1).join(" ")}),n.length),this.token("TERMINATOR","\n")):(this.token("HERECOMMENT",n,n.length),this.token("TERMINATOR","\n")),this.moveHead(n),n.length},o.prototype.jsToken=function(){var t,e;return"`"==this._chunk.charAt(0)&&(t=V.exec(this._chunk))?(this.token("JS",(e=t[0]).slice(1,-1)),e.length):0},o.prototype.regexToken=function(){var n,s,r,h;if("/"!=this._chunk.charAt(0))return 0;if(s=Y.exec(this._chunk))return r=this.heregexToken(s),this.moveHead(s[0]),r;if(h=i(this._tokens),h&&t(pt(h),h.spaced?ht:ot)>=0)return 0;if(!(s=B.exec(this._chunk)))return 0;var n=e(s),o=n[0],a=n[1],u=n[2];return"//"==a&&(a="/(?:)/"),this.token("REGEX",""+a+u,o.length),o.length},o.prototype.heregexToken=function(t){var n,n=e(t),s=n[0],i=n[1],r=n[2];if(0>i.indexOf("#{")){var h=i.replace(z,"").replace(/\//g,"\\/");return h.match(/^\*/)&&this.error("regular expressions cannot begin with `*`"),this.token("REGEX","/"+(h||"(?:)")+"/"+r,s.length),s.length}this.token("CONST","RegExp"),this._tokens.push(u.token("CALL_START","(",0));for(var o,a=[],l=0,c=e(this.interpolateString(i,{regex:!0})),p=c.length;p>l;l++){o=c[l];var _=pt(o),f=_t(o);if("TOKENS"==_)a.push.apply(a,f);else{if(f||console.log("what??"),!(f=f.replace(z,"")))continue;f=f.replace(/\\/g,"\\\\"),a.push(u.token("STRING",this.makeString(f,'"',!0),0))}a.push(u.token("+","+",0))}return a.pop(),a[0]&&"STRING"==pt(a[0])||this._tokens.push(u.token("STRING",'""'),u.token("+","+")),this._tokens.push.apply(this._tokens,a),r&&(this._tokens.push(u.token(",",",",0)),this._tokens.push(u.token("STRING",'"'+r+'"',0))),this.token(")",")",0),s.length},o.prototype.lineToken=function(){var t;if(!(t=$.exec(this._chunk)))return 0;var e=t[0],n=this.moveHead(e);this._seenFor=!1;var s=(i(this._tokens,1),e.length-1-e.lastIndexOf("\n")),r=this.unfinished();if(/^\n#\s/.test(this._chunk))return this.addLinebreaks(1),0;if(s-this._indebt==this._indent)return r?this.suppressNewlines():this.newlineToken(n),e.length;if(s>this._indent){if(r)return this._indebt=s-this._indent,this.suppressNewlines(),e.length;if(this.inTag())return e.length;var h=s-this._indent+this._outdebt;this.closeDef();var o=i(this._tokens);o&&"TERMINATOR"==pt(o)?(ft(o,"INDENT"),o._meta||(o._meta={pre:_t(o),post:""})):this.token("INDENT",""+h,0),this._indents.push(h),this.pushEnd("OUTDENT"),this._outdebt=this._indebt=0,this.addLinebreaks(n)}else this._indebt=0,this.outdentToken(this._indent-s,r,n),this.addLinebreaks(n-1);return this._indent=s,e.length},o.prototype.outdentToken=function(t,e,n){for(var s=0;t>0;){var i=this._indents.length-1;void 0==this._indents[i]?t=0:this._indents[i]==this._outdebt?(t-=this._outdebt,this._outdebt=0):this._indents[i]<this._outdebt?(this._outdebt-=this._indents[i],t-=this._indents[i]):(s=this._indents.pop()-this._outdebt,t-=s,this._outdebt=0,e||this.addLinebreaks(1),this.pair("OUTDENT"),this.token("OUTDENT",""+s,0))}for(s&&(this._outdebt-=t);";"==this.lastTokenValue();)this._tokens.pop();"TERMINATOR"==this.lastTokenType()||e||this.token("TERMINATOR","\n",0),this._scopes.length=this._indents.length;var r=this.context();return("%"==r||"TAG"==r)&&this.pair(r),this.closeDef(),this},o.prototype.whitespaceToken=function(){var t,e,n;return(t=F.exec(this._chunk))||(e="\n"==this._chunk.charAt(0))?(n=i(this._tokens),n?t?(n.spaced=!0,t[0].length):(n.newLine=!0,0):void 0):0},o.prototype.addNewline=function(){return this.token("TERMINATOR","\n")},o.prototype.moveHead=function(t){var e=r(t,"\n");return e},o.prototype.addLinebreaks=function(t,e){var n;if(!e&&0==t)return this;var s=this._last;if(e||(n=1==t?"\n":2==t?"\n\n":3==t?"\n\n\n":h("\n",t)),s){var i=s._type,r=_t(s);if("INDENT"==i){var o=s._meta||(s._meta={pre:"",post:""});return o.post+=e||n,this}if("TERMINATOR"==i)return Tt(s,r+(e||n)),this}this.token("TERMINATOR",n,0)},o.prototype.newlineToken=function(t){for(;";"==this.lastTokenValue();)console.log("pop token",this._tokens[this._tokens.length-1]),this._tokens.pop();this.addLinebreaks(t);var e=this.context();return("TAG"==e||"IMPORT"==e)&&this.pair(e),this.closeDef(),this},o.prototype.suppressNewlines=function(){return"\\"==this.value()&&this._tokens.pop(),this},o.prototype.literalToken=function(){var e,n;(e=M.exec(this._chunk))?(n=e[0],P.test(n)&&this.tagParameters()):n=this._chunk.charAt(0);var s=this._ends[this._ends.length-1],r=this._ends[this._ends.length-2],h="TAG_END"==s||"OUTDENT"==s&&"TAG_END"==r,o=n,a=i(this._tokens),u=a&&pt(a),l=a&&_t(a);n.length;if("="==n&&a&&("||"==l||"&&"==l))return ft(a,"COMPOUND_ASSIGN"),Tt(a,l+"="),n.length;switch(";"==n?(this._seenFor=!1,o="TERMINATOR"):"("==n&&h&&"="!=u&&a.spaced?this.token(",",","):"->"==n&&h?(o="TAG_END",this.pair("TAG_END")):"/>"==n&&h?(o="TAG_END",this.pair("TAG_END")):">"==n&&h?(o="TAG_END",this.pair("TAG_END")):">"==n&&"DEF"==this.context()?o="DEF_FRAGMENT":"TERMINATOR"==n&&"DEF"==s?this.closeDef():"&"==n&&"DEF"==this.context()?o="BLOCK_ARG":"*"==n&&this._chunk.charAt(1).match(/[A-Za-z\_\@\[]/)&&(a.spaced||[",","(","[","{","|","\n"," "].indexOf(l)>=0)?o="SPLAT":"√"==n?o="SQRT":"ƒ"==n?o="FUNC":t(n,it)>=0?o="MATH":t(n,nt)>=0?o="COMPARE":t(n,J)>=0?o="COMPOUND_ASSIGN":t(n,Q)>=0?o="UNARY":t(n,et)>=0?o="SHIFT":t(n,tt)>=0?o="LOGIC":a&&!a.spaced&&("("==n&&"%"==s?o="TAG_ATTRS_START":"("==n&&t(u,ut)>=0?o="CALL_START":"["==n&&t(u,lt)>=0&&(o="INDEX_START","?"==u&&ft(a,"INDEX_SOAK"))),n){case"(":case"{":case"[":this.pushEnd(_[n]);break;case")":case"}":case"]":this.pair(n)}return this.token(o,n,n.length),n.length},o.prototype.sanitizeHeredoc=function(t,e){var n,s=e.indent,i=e.herecomment;if(i){if(K.test(t)&&this.error("block comment cannot contain '*/' starting"),t.indexOf("\n")<=0)return t}else for(var r;n=X.exec(t);){var h=n[1];(null==s||0<(r=h.length)&&r<s.length)&&(s=h)}return s&&(t=t.replace(RegExp("\\n"+s,"g"),"\n")),i||(t=t.replace(/^\n/,"")),t},o.prototype.tagParameters=function(){var t;if(")"!=this.lastTokenType())return this;var e=[],n=this._tokens,s=n.length;for(ft(n[--s],"PARAM_END");t=n[--s];){var i=pt(t);switch(i){case")":e.push(t);break;case"(":case"CALL_START":if(!e.length)return"("==i?(ft(t,"PARAM_START"),this):this;e.pop()}}return this},o.prototype.closeIndentation=function(){return this.closeDef(),this.closeSelector(),this.outdentToken(this._indent,!1,0)},o.prototype.balancedString=function(t,e){for(var n,s,i,r=[e],h=0;h<t.length-1;){switch(h++,s=t.charAt(h)){case"\\":h++;continue;case e:if(r.pop(),!r.length){var o=t.slice(0,h+1);return o}e=r[r.length-1];continue}"}"!=e||'"'!=s&&"'"!=s?"}"==e&&"/"==s&&(n=Y.exec(t.slice(h))||B.exec(t.slice(h)))?h+=n[0].length-1:"}"==e&&"{"==s?r.push(e="}"):'"'==e&&"{"==s&&r.push(e="}"):r.push(e=s),i=s}return this._opts.silent?void 0:this.error("missing "+r.pop()+", starting")},o.prototype.interpolateString=function(t,e){void 0===e&&(e={});for(var n,s,i=e.heredoc,r=e.quote,h=e.regex,a=(e.prefix,this._loc,[]),u=0,c=-1,p=e.offset||1,_=(t.length,!1);n=t.charAt(c+=1);)if("\\"!=n){if("{"==t.charAt(c)&&(s=this.balancedString(t.slice(c),"}"))){if(_=!0,c>u){var f=new l("NEOSTRING",this.escapeStr(t.slice(u,c),i,r),this._loc+u+p,c-u);a.push(f)}a.push(new l("{{","{",this._loc+c+p,1));var T=s.slice(1,-1);if(T=T.replace(/^[^\n\S]+/,""),T.length){var E=this._loc+c+(s.length-T.length)-1,k=(new o).tokenize(T,{inline:!0,rewrite:!1,loc:E+p});k[0]&&"TERMINATOR"==pt(k[0])&&k.shift(),k.length&&a.push.apply(a,k)}c+=s.length-1,a.push(new l("}}","}",this._loc+c+p,1)),u=c+1}}else c+=1;if(c>=u&&u<t.length&&a.push(new l("NEOSTRING",this.escapeStr(t.slice(u),i,r),this._loc+u+p,t.length-u)),h)return a;if(!a.length)return this.token("NEOSTRING",'""');for(var d=0,g=a.length;g>d;d++)this._tokens.push(a[d]);return a},o.prototype.balancedSelector=function(t,e){for(var n,s,i=[e],r=t.length,h=1;r>h;h++){switch(s=t.charAt(h)){case"\\":h++;continue;case e:if(i.pop(),!i.length)return t.slice(0,h+1);e=i[i.length-1];continue}"}"==e&&s==[")"]?i.push(e=s):"}"==e&&"{"==s?i.push(e="}"):")"==e&&"{"==s&&i.push(e="}"),n=s}return this.error("missing "+i.pop()+", starting")},o.prototype.pair=function(t){var e=i(this._ends);if(t!=e){"OUTDENT"!=e&&this.error("unmatched "+t);var n=i(this._indents);return this._indent-=n,this.outdentToken(n,!0,0),this.pair(t)}return this.popEnd()},o.prototype.token=function(t,e,n,s){this._lastTyp=t,this._lastVal=e;var i=this._last=new l(t,e,this._loc+(s||0),n||0);this._tokens.push(i)},o.prototype.lastTokenType=function(){var t=this._tokens[this._tokens.length-1];return t?pt(t):"NONE"},o.prototype.lastTokenValue=function(){var t=this._tokens[this._tokens.length-1];return t?t._value:""},o.prototype.tokid=function(t,e){var n;return(n=i(this._tokens,t))?(e&&ft(n,e),pt(n)):null},o.prototype.value=function(t,e){var n;return(n=i(this._tokens,t))?(e&&Tt(n,e),_t(n)):null},o.prototype.unfinished=function(){return W.test(this._chunk)?!0:at.indexOf(this._lastTyp)>=0},o.prototype.escapeLines=function(t,e){return t.replace(q,e?"\\n":"")},o.prototype.makeString=function(t,e,n){return t?(t=t.replace(/\\([\s\S])/g,function(t,n){return"\n"==n||n==e?n:t}),t=t.replace(RegExp(""+e,"g"),"\\$&"),e+this.escapeLines(t,n)+e):e+e},o.prototype.error=function(t,e){("number"==typeof this._line||this._line instanceof Number)&&(t=""+t+" on line "+this._line),e&&(t+=" ["+this._loc+":"+(this._loc+e)+"]");var n=new SyntaxError(t);throw n.line=this._line,n=new f.ImbaParseError(n,{tokens:this._tokens,pos:this._tokens.length}),n.region=[this._loc,this._loc+(e||0)],n},o}();
13
- },{"./errors":3,"./rewriter":8,"./token":10}],6:[function(require,module,exports){
14
- !function(){function t(t,e){return e&&e.indexOf?e.indexOf(t):[].indexOf.call(t,e)}function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=Object.create(e.prototype),t.__super__=t.prototype.__super__=e.prototype,t.prototype.initialize=t.prototype.constructor=t}function n(t){return t?t.toArray?t.toArray():t:[]}function r(t,e){var n;if(e.lexer){e.lexer.yytext;throw n=new Hn.ImbaParseError({message:t},{pos:e.lexer.pos,tokens:e.lexer.tokens,token:e.lexer.yytext,meta:e})}var r=new Error(t);throw r.lexer=e.lexer,r.options=e,r}function i(t){return"string"==typeof t?t:t.c()}function s(t){return t&&Qn.sourceMapInline&&t.sourceMapMarker?t.sourceMapMarker():""}function o(t){return new dt(t)}function p(t){return t instanceof Array?T.wrap(t):t}function u(t){return Kn.symbolize(String(t))}function a(t){return t.map(function(t){return"string"==typeof t?t:t.c()})}function h(t,e){return t instanceof Array?t.map(function(t){return t&&t.dump?t.dump(e):t}):t&&t.dump?t.dump():void 0}function c(t){return t instanceof E?t.compact():t.filter(function(t){return void 0!=t&&null!=t})}function l(t,e){for(var r,i=0,s=n(e),o=s.length;o>i;i++)r=s[i],r instanceof Array?l(t,r):t.push(r)}function f(t,e){void 0===e&&(e=!1);for(var r,i=[],s=0,o=n(t),p=o.length;p>s;s++)r=o[s],r instanceof Array?l(i,r):i.push(r);return i}function _(t,e){this._open=t,this._close=e}function y(){this._entities=[]}function v(){this.reset()}function d(){this.setup()}function m(t){this.setup(),this._value=this.load(t)}function g(){return m.apply(this,arguments)}function x(){return m.apply(this,arguments)}function b(){return x.apply(this,arguments)}function w(t){this._value=t}function S(t){this._traversed=!1,this._value=t||"\n"}function j(){return m.apply(this,arguments)}function E(t){this.setup(),this._nodes=this.load(t||[]),this._indentation=null}function A(){return E.apply(this,arguments)}function O(){return A.apply(this,arguments)}function T(t){this.setup(),this._nodes=t||[],this._head=null,this._indentation=null}function P(){return E.apply(this,arguments)}function C(t,e,n){this.setup(),this._open=e,this._close=n,this._value=this.load(t)}function I(){return E.apply(this,arguments)}function $(t){return this._traversed=!1,this._value=t instanceof A&&1==t.count()?t.last():t,this}function N(){return $.apply(this,arguments)}function R(){return N.apply(this,arguments)}function V(){return g.apply(this,arguments)}function z(t,e){this.setLiteral(t),this.setExpression(e)}function L(){return z.apply(this,arguments)}function D(){return z.apply(this,arguments)}function F(){return g.apply(this,arguments)}function B(t,e,n){this._traversed=!1,this._name=t,this._defaults=e,this._typ=n,this._variable=null}function M(){return B.apply(this,arguments)}function G(){return B.apply(this,arguments)}function U(){return B.apply(this,arguments)}function q(){return B.apply(this,arguments)}function J(){return B.apply(this,arguments)}function K(){return E.apply(this,arguments)}function H(){return B.apply(this,arguments)}function W(){return E.apply(this,arguments)}function Y(){return E.apply(this,arguments)}function Z(){return E.apply(this,arguments)}function X(){return B.apply(this,arguments)}function Q(t,e){Q.__super__.constructor.apply(this,arguments),this._splat=e}function tt(t,e,n){this._traversed=!1,this._type=this.type(),this._left=e,this._right=n}function et(){return d.apply(this,arguments)}function nt(t,e){this._traversed=!1,this._body=p(t),this._scope=new tn(this,null),this._options={}}function rt(t,e,n){this._traversed=!1,this._name=t,this._superclass=e,this._scope=new en(this),this._body=p(n)}function it(t,e,n){this._traversed=!1,this._name=t,this._superclass=e,this._scope=new nn(this),this._body=p(n||[])}function st(t,e,n,r,i){var s=this.scopetype();this._traversed=!1,this._body=p(e),this._scope||(this._scope=i&&i.scope||new s(this)),this._scope.setParams(this._params=new Y(t)),this._name=n||"",this._target=r,this._options=i,this._type="function",this._variable=null}function ot(){return st.apply(this,arguments)}function pt(){return st.apply(this,arguments)}function ut(){return st.apply(this,arguments)}function at(){return ut.apply(this,arguments)}function ht(t,e,n){this._token=n,this._traversed=!1,this._name=t,this._options=e||new jt(new O)}function ct(t){this._traversed=!1,this._expression=!0,this._cache=null,this._raw=null,this._value=t}function lt(t){this._value=t,this._raw="true"==String(t)?!0:!1}function ft(){return ct.apply(this,arguments)}function _t(){return ct.apply(this,arguments)}function yt(){return lt.apply(this,arguments)}function vt(){return lt.apply(this,arguments)}function dt(t){this._traversed=!1,this._value=t}function mt(t){this._traversed=!1,this._expression=!0,this._cache=null,this._value=t}function gt(){return m.apply(this,arguments)}function xt(t,e){void 0===e&&(e={}),this._nodes=t,this._options=e}function bt(){return E.apply(this,arguments)}function wt(){return ct.apply(this,arguments)}function kt(){return ct.apply(this,arguments)}function St(){return ct.apply(this,arguments)}function jt(){return ct.apply(this,arguments)}function Et(t,e){this._traversed=!1,this._key=t,this._value=e,this._dynamic=t instanceof Ct}function At(){return d.apply(this,arguments)}function Ot(t){this._scope=t}function Tt(){return Ot.apply(this,arguments)}function Pt(){return Ot.apply(this,arguments)}function Ct(t,e,n){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=e,this._right=n,this}function It(){return Ct.apply(this,arguments)}function $t(){return Ct.apply(this,arguments)}function Nt(){return Ct.apply(this,arguments)}function Rt(){return Ct.apply(this,arguments)}function Vt(){return Ct.apply(this,arguments)}function zt(){return Ct.apply(this,arguments)}function Lt(){return Ct.apply(this,arguments)}function Dt(t,e,n){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._op=t&&t._value||t,this._left=e,this._right=n,this}function Ft(){return Dt.apply(this,arguments)}function Bt(){return m.apply(this,arguments)}function Mt(){return Dt.apply(this,arguments)}function Gt(t,e,n){return this._traversed=!1,this._invert=!1,this._parens=!1,this._expression=!1,this._cache=null,this._op=t,this._left=e,this._right=n,this}function Ut(){return Dt.apply(this,arguments)}function qt(){return Dt.apply(this,arguments)}function Jt(){return Dt.apply(this,arguments)}function Kt(){return Dt.apply(this,arguments)}function Ht(t){this._traversed=!1,this._parens=!1,this._value=t,this._identifier=t,this._token=t._value,this._variable=null}function Wt(t,e){Wt.__super__.constructor.call(this,t),this._export=!1,this._type=e&&String(e),this._variable=null,this._declared=!0}function Yt(t,e,n){if(e instanceof Wt&&e.value()instanceof St){var r=e.value().nodes().map(function(t){var n;return t instanceof Oe?t.value()instanceof Wt||(t.setValue(n=new Wt(t.value(),e.type())),n):t instanceof Wt||(t=new Wt(t,e.type())),t});return new ee(t,new bt(r),n)}return e instanceof St?new ee(t,new bt(e.nodes()),n):(this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._invert=!1,this._opToken=t,this._op=t&&t._value||t,this._left=e,this._right=n,this)}function Zt(){return Yt.apply(this,arguments)}function Xt(){return Yt.apply(this,arguments)}function Qt(){return Yt.apply(this,arguments)}function te(){return Yt.apply(this,arguments)}function ee(t,e,n){this._traversed=!1,this._op=t,this._left=e,this._right=n,this._temporary=[]}function ne(t){this._value=this.load(t),this._symbol=null,this._setter=null,(""+t).indexOf("?")>=0&&(this._safechain=!0)}function re(t){this._value=t instanceof ne?t.value():t}function ie(t){this._value=t instanceof ne?t.value():t}function se(){return ne.apply(this,arguments)}function oe(t){this._value=this.load(t)}function pe(){return m.apply(this,arguments)}function ue(t,e,n){if(this._traversed=!1,this._expression=!1,this._parens=!1,this._cache=null,this._receiver=null,this._opexists=n,t instanceof Ht){var r=t.value().symbol();if("extern"==r)return t.value().value()._type="EXTERN",new le(e);if("tag"==r)return new Ie(e&&e.index?e.index(0):e[0]);if("export"==r)return new Ye(e)}this._callee=t,this._args=e||new A([]),e instanceof Array&&(this._args=new A(e))}function ae(){return ue.apply(this,arguments)}function he(){return ue.apply(this,arguments)}function ce(){return ue.apply(this,arguments)}function le(){return E.apply(this,arguments)}function fe(){return d.apply(this,arguments)}function _e(){return fe.apply(this,arguments)}function ye(t,e,n){void 0===n&&(n={}),this.setup(),this._test=t,this._body=e,this._alt=null,this._type=n.type,"unless"==this._type&&this.invert(),this._scope=new ln(this)}function ve(t){void 0===t&&(t={}),this._traversed=!1,this._options=t,this._body=null}function de(t,e){this._traversed=!1,this._test=t,this._options=e||{},this._scope=new hn(this),this.option("invert")&&(this._test=t.invert())}function me(t){void 0===t&&(t={}),this._traversed=!1,this._options=t,this._scope=new cn(this),this._catcher=null}function ge(){return me.apply(this,arguments)}function xe(){return me.apply(this,arguments)}function be(t){this._nodes=p(t).nodes()}function we(t,e,n){this._traversed=!1,this._source=t,this._cases=e,this._fallback=n}function ke(t,e){this._traversed=!1,this._test=t,this._body=p(e)}function Se(t,e,n){this._traversed=!1,this._body=p(t),this._catch=e,this._finally=n}function je(t,e){this._traversed=!1,this._body=p(t||[]),this._scope=new an(this),this._varname=e}function Ee(t){this._traversed=!1,this._body=p(t||[])}function Ae(){return Ct.apply(this,arguments)}function Oe(){return m.apply(this,arguments)}function Te(){this.p("TagDesc!!!",arguments)}function Pe(t){void 0===t&&(t={}),this._traversed=!1,this._parts=[],t.classes||(t.classes=[]),t.attributes||(t.attributes=[]),t.classes||(t.classes=[]),this._options=t,this._reference=null,this._object=null,this._tree=null}function Ce(t,e,n){void 0===n&&(n={}),this._owner=t,this._nodes=this.load(e),this._options=n,this._conditions=[],this._blocks=[this],this._counter=0}function Ie(){return m.apply(this,arguments)}function $e(){return E.apply(this,arguments)}function Ne(t,e){this._traversed=!1,this._key=t,this._value=e}function Re(t){this._traversed=!1,this._value=t}function Ve(t,e){this._nodes=t||[],this._options=e}function ze(){return m.apply(this,arguments)}function Le(){return ze.apply(this,arguments)}function De(){return ze.apply(this,arguments)}function Fe(){return ze.apply(this,arguments)}function Be(){return ze.apply(this,arguments)}function Me(){return ze.apply(this,arguments)}function Ge(){return ze.apply(this,arguments)}function Ue(){return ze.apply(this,arguments)}function qe(){return ze.apply(this,arguments)}function Je(t,e,n){this._left=t,this._op=e,this._right=this._value=n}function Ke(){return m.apply(this,arguments)}function He(t,e,n,r,i){He.__super__.constructor.call(this,t,e,n,r,i)}function We(t,e,n){this._traversed=!1,this._imports=t,this._source=e,this._ns=n}function Ye(){return m.apply(this,arguments)}function Ze(t){this._args=t}function Xe(t){return this._root=t,this._map={},this}function Qe(t,e){this._nr=Sn.incr("scopes"),this._head=[],this._node=t,this._parent=e,this._vars=new Z([]),this._meta={},this._annotations=[],this._closure=this,this._virtual=!1,this._counter=0,this._varmap={},this._varpool=[]}function tn(){tn.__super__.constructor.apply(this,arguments),this.register("global",this,{type:"global"}),this.register("module",this,{type:"global"}),this.register("window",this,{type:"global"}),this.register("document",this,{type:"global"}),this.register("exports",this,{type:"global"}),this.register("console",this,{type:"global"}),this.register("process",this,{type:"global"}),this.register("parseInt",this,{type:"global"}),this.register("parseFloat",this,{type:"global"}),this.register("setTimeout",this,{type:"global"}),this.register("setInterval",this,{type:"global"}),this.register("clearTimeout",this,{type:"global"}),this.register("clearInterval",this,{type:"global"}),this.register("__dirname",this,{type:"global"}),this._warnings=[],this._scopes=[],this._helpers=[],this._entities=new Xe(this),this._head=[this._vars]}function en(){return Qe.apply(this,arguments)}function nn(){return en.apply(this,arguments)}function rn(){return Qe.apply(this,arguments)}function sn(){return Qe.apply(this,arguments)}function on(){return Qe.apply(this,arguments)}function pn(){return Qe.apply(this,arguments)}function un(){return Qe.apply(this,arguments)}function an(){return un.apply(this,arguments)}function hn(){return un.apply(this,arguments)}function cn(){return un.apply(this,arguments)}function ln(){return un.apply(this,arguments)}function fn(){return un.apply(this,arguments)}function _n(t,e,n,r){this._ref=Sn._counter++,this._c=null,this._scope=t,this._name=e,this._alias=null,this._initialized=!0,this._declarator=n,this._autodeclare=!1,this._declared=r&&r.declared||!1,this._resolved=!1,this._options=r||{},this._type=r&&r.type||"var",this._export=!1,this._references=[],this._assignments=[]}function yn(){return _n.apply(this,arguments)}function vn(t,e){this._scope=t,this._value=e,this._reference=null}function dn(){return vn.apply(this,arguments)}function mn(){return d.apply(this,arguments)}var gn,xn,bn,wn,kn,Sn,jn,En,An,On,Tn,Pn,Cn,In,$n,Nn,Rn,Vn,zn,Ln,Dn,Fn,Bn,Mn,Gn,Un,qn,Jn,Kn=require("./helpers"),Hn=require("./errors"),Wn=null,Yn=require("./token"),Zn=Yn.Token,Xn=require("./sourcemap").SourceMap;module.exports.AST=gn={},module.exports.OP=xn=function(t,e,n){var r=String(t);switch(r){case".":return("string"==typeof n||n instanceof String)&&(n=new ne(n)),new Dt(t,e,n);case"=":return e instanceof bt?new ee(t,e,n):new Yt(t,e,n);case"?=":case"||=":case"&&=":return new Xt(t,e,n);case"+=":case"-=":case"*=":case"/=":case"^=":case"%=":return new Qt(t,e,n);case"?.":return n instanceof Ht&&(n=n.value()),new Gt(t,e,n);case"instanceof":return new Rt(t,e,n);case"in":return new Lt(t,e,n);case"typeof":return new Vt(t,e,n);case"delete":return new zt(t,e,n);case"--":case"++":case"!":case"√":return new Nt(t,e,n);case">":case"<":case">=":case"<=":case"==":case"===":case"!=":case"!==":return new It(t,e,n);case"∩":case"∪":return new $t(t,e,n);case"..":case"...":return new Ae(t,e,n);default:return new Ct(t,e,n)}},module.exports.OP_COMPOUND=bn=function(t,e,n,r){return"?."==t?(console.log("?. soak operator"),null):"?="==t||"||="==t||"&&="==t?new Xt(e,n,r):new Qt(e,n,r)};var Qn={},tr=null;module.exports.NODES=wn=[];var er=function(t,e,n){var r=new ye(t,e);return n&&r.addElse(n),r},nr=function(t,e){return new st(t,e)},rr=function(t,e){return void 0===e&&(e=[]),new ue(t,e)},ir=function(t,e){return new de(t).addBody(e)};module.exports.SPLAT=kn=function(t){return t instanceof Yt?(t.setLeft(new Oe(t.left())),t):new Oe(t)};var sr=/;(\s*\/\/.*)?[\n\s\t]*$/,or=/^(default|char)$/;exports.parseError=r,gn.parse=function(t,e){void 0===e&&(e={});t.match(/\t+/)[0];return Imba.parse(t,e)},gn.inline=function(t,e){return void 0===e&&(e={}),this.parse(t,e).body()},gn.node=function(t,e){return"call"==t?("return"==e[0].c()&&(e[0]="tata"),new ue(e[0],e[1],e[2])):void 0},gn.escapeComments=function(t){return t?t:""},exports.Indentation=_,_.prototype.open=function(t){return this._open},_.prototype.setOpen=function(t){return this._open=t,this},_.prototype.close=function(t){return this._close},_.prototype.setClose=function(t){return this._close=t,this},_.prototype.isGenerated=function(){return this._open&&this._open.generated},_.prototype.aloc=function(){return this._open&&this._open._loc||0},_.prototype.bloc=function(){return this._close&&this._close._loc||0},_.prototype.wrap=function(t){var e=this._open&&this._open._meta,n=e&&e.pre||"",r=e&&e.post||"",i=(gn.escapeComments,this._close);return t=r.replace(/^\n/,"")+t,t=t.replace(/^/g," ").replace(/\n/g,"\n ").replace(/\n\t$/g,"\n"),t=n+"\n"+t,i instanceof w&&(t+=i.c()),"\n"!=t[t.length-1]&&(t+="\n"),t};var pr=new _({},{});y.prototype.add=function(t){return this._entities.unshift(t),this},y.prototype.pluck=function(t){for(var e,r=null,i=0,s=n(this._entities),o=s.length;o>i;i++)if(e=s[i],e==t||e instanceof t)return r=e,this._entities.splice(i,1),r;return null},exports.Stack=v,v.prototype.loglevel=function(t){return this._loglevel},v.prototype.setLoglevel=function(t){return this._loglevel=t,this},v.prototype.nodes=function(t){return this._nodes},v.prototype.setNodes=function(t){return this._nodes=t,this},v.prototype.scopes=function(t){return this._scopes},v.prototype.setScopes=function(t){return this._scopes=t,this},v.prototype.reset=function(){return this._nodes=[],this._scoping=[],this._scopes=[],this._stash=new y(this),this._loglevel=3,this._counter=0,this._counters={},this},v.prototype.incr=function(t){var e;return this._counters[e=t]||(this._counters[e]=0),this._counters[t]+=1},v.prototype.stash=function(){return this._stash},v.prototype.option=function(t){return this._options&&this._options[t]},v.prototype.addScope=function(t){return this._scopes.push(t),this},v.prototype.traverse=function(t){return this},v.prototype.push=function(t){return this._nodes.push(t),this},v.prototype.pop=function(t){return this._nodes.pop(),this},v.prototype.parent=function(){return this._nodes[this._nodes.length-2]},v.prototype.current=function(){return this._nodes[this._nodes.length-1]},v.prototype.up=function(t){if(t||(t=function(t){return!(t instanceof Ht)}),t.prototype instanceof d){var e=t;t=function(t){return t instanceof e}}for(var n=this._nodes.length-2;n>=0;){var r=this._nodes[n];if(t(r))return r;n-=1}return null},v.prototype.relative=function(t,e){void 0===e&&(e=0);var n=this._nodes.indexOf(t);return n>=0?this._nodes[n+e]:null},v.prototype.scope=function(t){void 0===t&&(t=0);for(var e=this._nodes.length-1-t;e>=0;){var n=this._nodes[e];if(n._scope)return n._scope;e-=1}return null},v.prototype.scopes=function(){for(var t=[],e=this._nodes.length-1;e>=0;){var n=this._nodes[e];n._scope&&t.push(n._scope),e-=1}return t},v.prototype.method=function(){return this.up(ut)},v.prototype.block=function(){return this.up(T)},v.prototype.isExpression=function(){for(var t=this._nodes.length-1;t>=0;){var e=this._nodes[t];if(e instanceof et||e instanceof ve)return!1;if(e.isExpression())return!0;t-=1}return!1},v.prototype.toString=function(){return"Stack("+this._nodes.join(" -> ")+")"},v.prototype.scoping=function(){return this._nodes.filter(function(t){return t._scope}).map(function(t){return t._scope})},module.exports.STACK=Sn=new v,GLOBSTACK=Sn,exports.Node=d,d.prototype.o=function(t){return this._o},d.prototype.setO=function(t){return this._o=t,this},d.prototype.options=function(t){return this._options},d.prototype.setOptions=function(t){return this._options=t,this},d.prototype.traversed=function(t){return this._traversed},d.prototype.setTraversed=function(t){return this._traversed=t,this},d.prototype.safechain=function(){return!1},d.prototype.p=function(){return Sn.loglevel()>0&&console.log.apply(console,arguments),this},d.prototype.typeName=function(){return this.constructor.name},d.prototype.namepath=function(){return this.typeName()},d.prototype.setup=function(){return this._expression=!1,this._traversed=!1,this._parens=!1,this._cache=null,this._value=null,this},d.prototype.set=function(t){this._options||(this._options={});for(var e=0,n=Object.keys(t),r=n.length;r>e;e++)this._options[n[e]]=t[n[e]];return this},d.prototype.option=function(t,e){return void 0!=e?(this._options||(this._options={}),this._options[t]=e,this):this._options&&this._options[t]},d.prototype.configure=function(t){return this.set(t)},d.prototype.region=function(){return[0,0]},d.prototype.loc=function(){return[0,0]},d.prototype.token=function(){return null},d.prototype.compile=function(){return this},d.prototype.visit=function(){return this},d.prototype.stack=function(){return Sn},d.prototype.isString=function(){return!1},d.prototype.isPrimitive=function(t){return!1},d.prototype.isReserved=function(){return!1},d.prototype.traverse=function(){return this._traversed?this:(this._traversed=!0,Sn.push(this),this.visit(Sn),Sn.pop(this),this)},d.prototype.inspect=function(){return{type:this.constructor.toString()}},d.prototype.js=function(t){return"NODE"},d.prototype.toString=function(){return""+this.constructor.name},d.prototype.consume=function(t){return t instanceof Zt?new Zt(t.op(),t.left(),this):t instanceof Yt?xn(t.op(),t.left(),this):t instanceof Ct?xn(t.op(),t.left(),this):t instanceof $?new $(this):this},d.prototype.toExpression=function(){return this._expression=!0,this},d.prototype.forceExpression=function(){return this._expression=!0,this},d.prototype.isExpressable=function(){return!0},d.prototype.isExpression=function(){return this._expression||!1},d.prototype.hasSideEffects=function(){return!0},d.prototype.isUsed=function(){return!0},d.prototype.shouldParenthesize=function(){return!1},d.prototype.block=function(){return T.wrap([this])},d.prototype.node=function(){return this},d.prototype.scope__=function(){return Sn.scope()},d.prototype.up=function(){return Sn.parent()},d.prototype.util=function(){return Ze},d.prototype.receiver=function(){return this},d.prototype.addExpression=function(t){var e=new I([this]);return e.addExpression(t)},d.prototype.indented=function(t,e){return t instanceof _?(this._indentation=t,this):(e instanceof Array&&(this.add(e[0]),e=e[1]),this._indentation||(this._indentation=t&&e?new _(t,e):pr),this)},d.prototype.prebreak=function(t){return void 0===t&&(t="\n"),this},d.prototype.invert=function(){return xn("!",this)},d.prototype.cache=function(t){return void 0===t&&(t={}),this._cache=t,t["var"]=this.scope__().temporary(this,t),t.lookups=0,this},d.prototype.cachevar=function(){return this._cache&&this._cache["var"]},d.prototype.decache=function(){return this._cache&&(this.cachevar().free(),this._cache=null),this},d.prototype.predeclare=function(){return this._cache&&this.scope__().vars().swap(this._cache["var"],this),this},d.prototype.alias=function(){return null},d.prototype.warn=function(t,e){return void 0===e&&(e={}),e.message=t,e.loc||(e.loc=this.loc()),this.scope__().root().warn(e),this},d.prototype.c=function(t){var e,n=Sn,r=this._cache;if(r&&r.cached)return this.c_cached(r);n.push(this),t&&t.expression&&this.forceExpression(),Wn&&console.log(Wn.hasFastObjectElements(this)),t&&t.indent&&(this._indentation||(this._indentation=pr));var i=this.js(n,t),s=this.shouldParenthesize();if((e=this._indentation)&&(i=e.wrap(i,t)),s&&(i="("+i+")"),t&&t.braces&&(i=e?"{"+i+"}":"{ "+i+" }"),n.pop(this),r=this._cache){r.manual||(i=""+r["var"].c()+" = "+i);var o=n.current();(o instanceof Dt||o instanceof Ct)&&(i="("+i+")"),r.cached=!0}return i},d.prototype.c_cached=function(t){return t.lookups++,t.uses==t.lookups&&t["var"].free(),t["var"].c()},e(m,d),exports.ValueNode=m,m.prototype.value=function(t){return this._value},m.prototype.setValue=function(t){return this._value=t,this},m.prototype.load=function(t){return t},m.prototype.js=function(t){return"string"==typeof this._value?this._value:this._value.c()},m.prototype.visit=function(){return this._value instanceof d&&this._value.traverse(),this},m.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]},e(g,m),exports.Statement=g,g.prototype.isExpressable=function(){return!1},e(x,m),exports.Meta=x,x.prototype.isPrimitive=function(t){return!0},e(b,x),exports.Comment=b,b.prototype.visit=function(){var t,e;if(t=this.up()){var n=t.indexOf(this)+1;t.index(n)instanceof w&&(n+=1),(e=t.index(n))&&(e._desc=this)}return this},b.prototype.toDoc=function(){return Kn.normalizeIndentation(""+this._value._value)},b.prototype.toJSON=function(){return Kn.normalizeIndentation(""+this._value._value)},b.prototype.c=function(t){var e=this._value._value;return t&&t.expression||e.match(/\n/)||"HERECOMMENT"==this._value.type()?"/*"+e+"*/":"// "+e},e(w,x),exports.Terminator=w,w.prototype.traverse=function(){return this},w.prototype.c=function(){return this._value.c()},e(S,w),exports.Newline=S,S.prototype.c=function(){return i(this._value)},e(j,m),exports.Index=j,j.prototype.js=function(t){return this._value.c()},e(E,d),exports.ListNode=E,E.prototype.nodes=function(t){return this._nodes},E.prototype.setNodes=function(t){return this._nodes=t,this},E.prototype.list=function(){return this._nodes},E.prototype.compact=function(){return this._nodes=c(this._nodes),this},E.prototype.load=function(t){return t},E.prototype.concat=function(t){return this._nodes=this.nodes().concat(t instanceof Array?t:t.nodes()),this},E.prototype.swap=function(t,e){var n=this.indexOf(t);return n>=0&&(this.nodes()[n]=e),this},E.prototype.push=function(t){return this._nodes.push(t),this},E.prototype.pop=function(){var t=this._nodes.pop();return t},E.prototype.add=function(t){return this._nodes.push(t),this},E.prototype.unshift=function(t,e){return e&&this._nodes.unshift(Tn),this._nodes.unshift(t),this},E.prototype.slice=function(t,e){return new this.constructor(this._nodes.slice(t,e))},E.prototype["break"]=function(t,e){return void 0===e&&(e=!1),"string"==typeof t&&(t=new w(t)),e?this.unshift(t):this.push(t),this},E.prototype.some=function(t){for(var e=0,r=n(this._nodes),i=r.length;i>e;e++)if(t(r[e]))return!0;return!1},E.prototype.every=function(t){for(var e=0,r=n(this._nodes),i=r.length;i>e;e++)if(!t(r[e]))return!1;return!0},E.prototype.filter=function(t){return this._nodes.filter(t)},E.prototype.pluck=function(t){var e=this.filter(t)[0];return e&&this.remove(e),e},E.prototype.indexOf=function(t){return this._nodes.indexOf(t)},E.prototype.index=function(t){return this._nodes[t]},E.prototype.remove=function(t){var e=this._nodes.indexOf(t);return e>=0&&this._nodes.splice(e,1),this},E.prototype.removeAt=function(t){var e=this._nodes[t];return t>=0&&this._nodes.splice(t,1),e},E.prototype.replace=function(t,e){var n=this._nodes.indexOf(t);return n>=0&&(e instanceof Array?this._nodes.splice.apply(this._nodes,[].concat([n,1],[].slice.call(e))):this._nodes[n]=e),this},E.prototype.first=function(){return this._nodes[0]},E.prototype.last=function(){for(var t=this._nodes.length;t;){t-=1;var e=this._nodes[t];if(!(e instanceof x))return e}return null},E.prototype.map=function(t){return this._nodes.map(t)},E.prototype.forEach=function(t){return this._nodes.forEach(t)},E.prototype.remap=function(t){return this._nodes=this.map(t),this},E.prototype.count=function(){return this._nodes.length},E.prototype.realCount=function(){for(var t,e=0,r=0,i=n(this._nodes),s=i.length;s>r;r++)t=i[r],!t||t instanceof x||e++;return e},E.prototype.visit=function(){for(var t,e=0,r=n(this._nodes),i=r.length;i>e;e++)t=r[e],t&&t.traverse();return this},E.prototype.isExpressable=function(){for(var t,e=0,r=n(this.nodes()),i=r.length;i>e;e++)if(t=r[e],t&&!t.isExpressable())return!1;return!0},E.prototype.toArray=function(){return this._nodes},E.prototype.delimiter=function(){return this._delimiter||","},E.prototype.js=function(t,e){e&&e.constructor===Object||(e={});for(var r,i=void 0!==e.nodes?e.nodes:this._nodes,s=",",o=";"!=s,p=this.last(),u=(i.length,""),a=0,h=n(i),c=h.length;c>a;a++){r=h[a];var l="string"==typeof r?r:r?r.c({expression:o}):"";u+=l,!l||o&&r==p||r instanceof x||(u+=s)}return u},E.prototype.indented=function(t,e){return t instanceof _?(this._indentation=t,this):(this._indentation||(this._indentation=t&&e?new _(t,e):pr),this)},e(A,E),exports.ArgList=A,e(O,A),exports.AssignList=O,O.prototype.concat=function(t){return 0==this._nodes.length&&t instanceof O?t:(O.__super__.concat.call(this,t),this)},e(T,E),exports.Block=T,T.prototype.head=function(t){return this._head},T.prototype.setHead=function(t){return this._head=t,this},T.wrap=function(t){if(!(t instanceof Array))throw new SyntaxError("what");return 1==t.length&&t[0]instanceof T?t[0]:new T(t)},T.prototype.visit=function(){this._scope&&this._scope.visit();for(var t,e=0,r=n(this._nodes),i=r.length;i>e;e++)t=r[e],t&&t.traverse();return this},T.prototype.block=function(){return this},T.prototype.loc=function(){var t,e;if(t=this.option("ends")){var n=t[0].loc(),r=t[1].loc();return n||this.p("no loc for "+t[0]),r||this.p("no loc for "+t[1]),[n[0],r[1]]}return(e=this._indentation)?[e.aloc(),e.bloc()]:[0,0]},T.prototype.unwrap=function(){for(var t,e=[],r=0,i=n(this.nodes()),s=i.length;s>r;r++)t=i[r],t instanceof T?e.push.apply(e,t.unwrap()):e.push(t);return e},T.prototype.push=function(t){return this._nodes.push(t),this},T.prototype.add=function(t){return this._nodes.push(t),this},T.prototype.compile=function(t){void 0===t&&(t={});var e=new nt(this,t);return e.compile(t)},T.prototype.analyze=function(t){return void 0===t&&(t={}),this},T.prototype.cpart=function(t){var e="string"==typeof t?t:t?t.c():"";if(null==e||void 0==e||""==e)return"";if(e instanceof Array){for(var n="",r=e.length,i=0;r>i;)n+=this.cpart(e[i++]);return n}var s=sr.test(e);return s||t instanceof x||(e+=";"),e},T.prototype.js=function(t,e){var r=this._nodes,i=(r.length,this.isExpression()||t.isExpression()||this.option("express")&&this.isExpressable());if(0==r.length)return"";if(i)return T.__super__.js.call(this,t,{nodes:r});for(var s="",o=0,p=n(r),u=p.length;u>o;o++)s+=this.cpart(p[o]);if(this._head&&this._head.length>0){for(var a="",o=0,p=n(this._head),u=p.length;u>o;o++){var h=this.cpart(p[o]);h&&(a+=h+"\n")}s=a+s}return s},T.prototype.defers=function(t,e){var n=this._nodes.indexOf(t);n>=0&&(this._nodes[n]=e);var r=this._nodes.splice(n+1);return r},T.prototype.expressions=function(){for(var t,e=[],r=0,i=n(this.nodes()),s=i.length;s>r;r++)t=i[r],t instanceof w||e.push(t);return e},T.prototype.consume=function(t){var e;if(t instanceof Ce){this._nodes=this._nodes.map(function(e){return e.consume(t)});var n=this.expressions();if(!t._loop&&n.length>1){var r=t.blocks().push(this),i=new St(new A(this._nodes));i.indented(this._indentation),this._indentation=null,t.reactive()?this._nodes=[Ze.callImba("static",[i,new dt(r)])]:this._nodes=[i]}return this}if(e=this.last()){var s=e.consume(t);s!=e&&(s instanceof T&&(s=s.nodes()),this.replace(e,s))}return this},T.prototype.isExpressable=function(){return this._nodes.every(function(t){return t.isExpressable()})?!0:!1},T.prototype.isExpression=function(){return this.option("express")||this._expression},e(P,E),exports.VarBlock=P,P.prototype.load=function(t){var e=t[0];return e instanceof Yt?this._type=e.left()._type:e instanceof Wt&&(this._type=e._type),t},P.prototype.addExpression=function(t){if(t instanceof Yt)t.left()instanceof Ht&&t.setLeft(new Wt(t.left().value(),this._type)),this.push(t);else{if(t instanceof Yt)return this.addExpression(t.left()),new ee("=",new bt(this.nodes()),t.right());if(t instanceof Ht)this.push(new Wt(t.value(),this._type));else{if(!(t instanceof Oe&&t.node()instanceof Ht))throw this.p("VarBlock.addExpression "+this+" <- "+t),"VarBlock does not allow non-variable expressions";t.setValue(new Wt(t.node().value(),this._type)),this.push(t)}}return this},P.prototype.isExpressable=function(){return!1},P.prototype.js=function(t){var e=c(f(a(this.nodes())));e=e.filter(function(t){return null!=t&&void 0!=t&&t!=Ln});var n=e.join(",");return t.isExpression()||(n="var "+n),n},P.prototype.consume=function(t){return this},e(C,m),exports.Parens=C,C.prototype.load=function(t){return this._noparen=!1,t instanceof T&&1==t.count()?t.first():t},C.prototype.isString=function(){return this._open&&'("'==String(this._open)||this.value().isString()},C.prototype.js=function(t){var e=this.up(),n=this._value,r=null;return n instanceof st&&(this._noparen=!0),e instanceof T?(t.isExpression()||(this._noparen=!0),r=n instanceof Array?a(n):n.c({expression:t.isExpression()})):r=n instanceof Array?a(n):n.c({expression:!0}),r},C.prototype.set=function(t){return console.log("Parens set "+JSON.stringify(t)),C.__super__.set.call(this,t)},C.prototype.shouldParenthesize=function(){return this._noparen?!1:!0},C.prototype.prebreak=function(t){return C.__super__.prebreak.call(this,t),console.log("PREBREAK"),this._value&&this._value.prebreak(t),this;
15
- },C.prototype.isExpressable=function(){return this._value.isExpressable()},C.prototype.consume=function(t){return this._value.consume(t)},e(I,E),exports.ExpressionBlock=I,I.prototype.c=function(){return this.map(function(t){return t.c()}).join(",")},I.prototype.consume=function(t){return this.value().consume(t)},I.prototype.addExpression=function(t){return t.node()instanceof Yt?(this.push(t.left()),new ee("=",new bt(this.nodes()),t.right())):(this.push(t),this)},e($,g),exports.Return=$,$.prototype.value=function(t){return this._value},$.prototype.setValue=function(t){return this._value=t,this},$.prototype.visit=function(){return this._value&&this._value.traverse?this._value.traverse():void 0},$.prototype.js=function(t){var e=this._value;return e instanceof A?"return ["+e.c({expression:!0})+"]":e?"return "+e.c({expression:!0}):"return"},$.prototype.c=function(){return!this.value()||this.value().isExpressable()?$.__super__.c.apply(this,arguments):this.value().consume(this).c()},$.prototype.consume=function(t){return this},e(N,$),exports.ImplicitReturn=N,e(R,N),exports.GreedyReturn=R,e(V,g),exports.Throw=V,V.prototype.js=function(t){return"throw "+this.value().c()},V.prototype.consume=function(t){return this},e(z,g),exports.LoopFlowStatement=z,z.prototype.literal=function(t){return this._literal},z.prototype.setLiteral=function(t){return this._literal=t,this},z.prototype.expression=function(t){return this._expression},z.prototype.setExpression=function(t){return this._expression=t,this},z.prototype.visit=function(){return this.expression()?this.expression().traverse():void 0},z.prototype.consume=function(t){return this},z.prototype.c=function(){if(!this.expression())return z.__super__.c.apply(this,arguments);var t=Sn.up(ve),e=this.expression();if(t.catcher()){e=e.consume(t.catcher());var n=new this.constructor(this.literal());return new T([e,n]).c()}return e?(n=new this.constructor(this.literal()),new T([e,n]).c()):z.__super__.c.apply(this,arguments)},e(L,z),exports.BreakStatement=L,L.prototype.js=function(t){return"break"},e(D,z),exports.ContinueStatement=D,D.prototype.js=function(t){return"continue"},e(F,g),exports.DebuggerStatement=F,e(B,d),exports.Param=B,B.prototype.name=function(t){return this._name},B.prototype.setName=function(t){return this._name=t,this},B.prototype.index=function(t){return this._index},B.prototype.setIndex=function(t){return this._index=t,this},B.prototype.defaults=function(t){return this._defaults},B.prototype.setDefaults=function(t){return this._defaults=t,this},B.prototype.splat=function(t){return this._splat},B.prototype.setSplat=function(t){return this._splat=t,this},B.prototype.variable=function(t){return this._variable},B.prototype.setVariable=function(t){return this._variable=t,this},B.prototype.varname=function(){return this._variable?this._variable.c():this.name()},B.prototype.js=function(t){return this._variable?this._variable.c():this.defaults()?"if("+this.name().c()+" == null) "+this.name().c()+" = "+this.defaults().c():void 0},B.prototype.visit=function(){var t,e;return this._defaults&&this._defaults.traverse(),(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),this)),e),this._name instanceof ne&&(this._name._value&&(this._name._value._type="PARAMVAR"),this._name.references(this._variable)),this},B.prototype.assignment=function(){return xn("=",this.variable().accessor(),this.defaults())},B.prototype.isExpressable=function(){return!this.defaults()||this.defaults().isExpressable()},B.prototype.dump=function(){return{loc:this.loc()}},B.prototype.loc=function(){return this._name&&this._name.region()},B.prototype.toJSON=function(){return{type:this.typeName(),name:this.name(),defaults:this.defaults()}},e(M,B),exports.SplatParam=M,M.prototype.loc=function(){var t=this.name().region();return[t[0]-1,t[1]]},e(G,B),exports.BlockParam=G,G.prototype.c=function(){return"blockparam"},G.prototype.loc=function(){var t=this.name().region();return[t[0]-1,t[1]]},e(U,B),exports.OptionalParam=U,e(q,B),exports.NamedParam=q,e(J,B),exports.RequiredParam=J,e(K,E),exports.NamedParams=K,K.prototype.index=function(t){return this._index},K.prototype.setIndex=function(t){return this._index=t,this},K.prototype.variable=function(t){return this._variable},K.prototype.setVariable=function(t){return this._variable=t,this},K.prototype.load=function(t){var e=function(t){return new q(t.key(),t.value())};return t instanceof jt?t.value().map(e):t},K.prototype.visit=function(){var t=this.scope__();return this._variable||(this._variable=t.temporary(this,{pool:"keypars"})),this._variable.predeclared(),K.__super__.visit.apply(this,arguments),this},K.prototype.varname=function(){return this.variable().c()},K.prototype.name=function(){return this.varname()},K.prototype.js=function(t){return"namedpar"},K.prototype.toJSON=function(){return{type:this.typeName(),nodes:this.filter(function(t){return t instanceof q})}},e(H,B),exports.IndexedParam=H,H.prototype.parent=function(t){return this._parent},H.prototype.setParent=function(t){return this._parent=t,this},H.prototype.subindex=function(t){return this._subindex},H.prototype.setSubindex=function(t){return this._subindex=t,this},H.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),this)),e),this.variable().proxy(this.parent().variable(),this.subindex()),this},e(W,E),exports.ArrayParams=W,W.prototype.index=function(t){return this._index},W.prototype.setIndex=function(t){return this._index=t,this},W.prototype.variable=function(t){return this._variable},W.prototype.setVariable=function(t){return this._variable=t,this},W.prototype.visit=function(){var t=this.scope__();return this._variable||(this._variable=t.temporary(this,{pool:"keypars"})),this._variable.predeclared(),W.__super__.visit.apply(this,arguments)},W.prototype.name=function(){return this.variable().c()},W.prototype.load=function(t){var e=this;return t instanceof St?t.splat()?void 0:t.value().map(function(t,n){var r=t;return t instanceof Ht&&(r=t.value().value()),e.parse(r,t,n)}):null},W.prototype.parse=function(t,e,n){var r=new H(t,null);return r.setParent(this),r.setSubindex(n),r},W.prototype.head=function(t){return this},e(Y,E),exports.ParamList=Y,Y.prototype.splat=function(t){return this._splat},Y.prototype.setSplat=function(t){return this._splat=t,this},Y.prototype.block=function(t){return this._block},Y.prototype.setBlock=function(t){return this._block=t,this},Y.prototype.at=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=null),e)for(;this.count()<=t;)this.add(new B(this.count()==t&&n||"_"+this.count()));return this.list()[t]},Y.prototype.metadata=function(){return this.filter(function(t){return!(t instanceof x)})},Y.prototype.toJSON=function(){return this.metadata()},Y.prototype.visit=function(){this._splat=this.filter(function(t){return t instanceof M})[0];var t=this.filter(function(t){return t instanceof G});return t.length>1?t[1].warn("a method can only have one &block parameter"):t[0]&&t[0]!=this.last()&&t[0].warn("&block must be the last parameter of a method"),Y.__super__.visit.apply(this,arguments)},Y.prototype.js=function(t){if(0==this.count())return Ln;if(t.parent()instanceof T)return this.head(t);if(t.parent()instanceof et){var e=this.nodes();return this._splat&&(e=this.filter(function(t){return t instanceof J||t instanceof U})),c(e.map(function(t){return i(t.varname())})).join(",")}throw"not implemented paramlist js"},Y.prototype.head=function(t){var e=[],r=[],i=null,s=null,o=null,p=[],u=[],a=0;if(this.nodes().forEach(function(t,n){return t.setIndex(a),t instanceof K?(u.push("named"),o=t):t instanceof U?(u.push("opt"),r.push(t)):t instanceof G?(u.push("blk"),i=t):t instanceof M?(u.push("splat"),s=t,a-=1):t instanceof W?(p.push(t),u.push("ary")):(u.push("reg"),e.push(t)),a++}),o)var h=o.variable();var c=[],l=function(t){return"typeof "+t+" == 'function'"},f=function(t){return""+t+".constructor === Object"},_=function(t){return""+t+".constructor !== Object"};if(!o&&!s&&!i&&r.length>0&&u.join(" ").match(/opt$/))for(var y,v=0,d=r.length;d>v;v++)y=r[v],c.push("if("+y.name().c()+" === undefined) "+y.name().c()+" = "+y.defaults().c());else if(!o||s||i||0!=r.length)if(!i||1!=r.length||s||o){if(i&&o&&0==r.length&&!s)P=i.name().c(),c.push("if("+P+"==undefined && "+l(h.c())+") "+P+" = "+h.c()+","+h.c()+" = {}"),c.push("else if(!"+h.c()+"||"+_(h.c())+") "+h.c()+" = {}");else if(r.length>0||s){var m=this.scope__().temporary(this,{pool:"arguments"}).predeclared().c(),g=this.scope__().temporary(this,{pool:"counter"}).predeclared().c(),x=""+m+"["+g+"-1]",b=""+m+"[--"+g+"]";c.push("var "+m+" = arguments, "+g+" = "+m+".length"),i&&(P=i.name().c(),s?c.push("var "+P+" = "+l(x)+" ? "+b+" : null"):e.length>0?c.push("var "+P+" = "+g+" > "+e.length+" && "+l(x)+" ? "+b+" : null"):c.push("var "+P+" = "+l(x)+" ? "+b+" : null")),o&&c.push("var "+h.c()+" = "+x+"&&"+f(x)+" ? "+b+" : {}");for(var w,k=0,d=r.length;d>k;k++)w=r[k],c.push("if("+g+" < "+(w.index()+1)+") "+w.name().c()+" = "+w.defaults().c());if(s){var S=s.name().c(),j=s.index();0==j?(c.push("var "+S+" = new Array("+g+">"+j+" ? "+g+" : 0)"),c.push("while("+g+">"+j+") "+S+"["+g+"-1] = "+b)):(c.push("var "+S+" = new Array("+g+">"+j+" ? "+g+"-"+j+" : 0)"),c.push("while("+g+">"+j+") "+S+"[--"+g+" - "+j+"] = "+m+"["+g+"]"))}}else if(r.length>0)for(var E,A=0,d=r.length;d>A;A++)E=r[A],c.push("if("+E.name().c()+" === undefined) "+E.name().c()+" = "+E.defaults().c())}else{var O=r[0],T=O.name().c(),P=i.name().c();c.push("if("+P+"==undefined && "+l(T)+") "+P+" = "+T+","+T+" = "+O.defaults().c()),c.push("if("+T+"==undefined) "+T+" = "+O.defaults().c())}else c.push("if(!"+h.c()+"||"+_(h.c())+") "+h.c()+" = {}");if(o)for(var C,I=0,$=n(o.nodes()),d=$.length;d>I;I++)C=$[I],O=xn(".",h,C.c()).c(),c.push("var "+C.c()+" = "+O+" !== undefined ? "+O+" : "+C.defaults().c());if(p.length)for(var N=0,d=p.length;d>N;N++)p[N].head(t,c,this);return c.length>0?c.join(";\n")+";":Ln},e(Z,E),exports.VariableDeclaration=Z,Z.prototype.kind=function(t){return this._kind},Z.prototype.setKind=function(t){return this._kind=t,this},Z.prototype.add=function(t,e,n){void 0===n&&(n=-1);var r=new X(t,e);return t instanceof _n&&(r.setVariable(t),t),0==n?this.unshift(r):this.push(r),r},Z.prototype.load=function(t){return t.map(function(t){return new X(t.name(),t.defaults(),t.splat())})},Z.prototype.isExpressable=function(){return this.nodes().every(function(t){return t.isExpressable()})},Z.prototype.js=function(t){if(0==this.count())return Ln;if(1==this.count()&&!this.isExpressable()){this.first().variable().autodeclare();var e=this.first().assignment();return e.c()}var n=c(a(this.nodes())).join(", ");return n?"var "+n:""},e(X,B),exports.VariableDeclarator=X,X.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.name(),null)),e),this.defaults()&&this.defaults().traverse(),this.variable().setDeclarator(this),this.variable().addReference(this.name()),this},X.prototype.js=function(t){if(this.variable()._proxy)return null;var e=this.defaults();return null!=e&&void 0!=e?(e instanceof d&&(e=e.c({expression:!0})),""+this.variable().c()+" = "+e):""+this.variable().c()},X.prototype.accessor=function(){return this},e(Q,m),exports.VarName=Q,Q.prototype.variable=function(t){return this._variable},Q.prototype.setVariable=function(t){return this._variable=t,this},Q.prototype.splat=function(t){return this._splat},Q.prototype.setSplat=function(t){return this._splat=t,this},Q.prototype.visit=function(){var t,e;return(t=this.variable())||(this.setVariable(e=this.scope__().register(this.value().c(),null)),e),this.variable().setDeclarator(this),this.variable().addReference(this.value()),this},Q.prototype.js=function(t){return this.variable().c()},Q.prototype.c=function(){return this.variable().c()},e(tt,d),exports.VarList=tt,tt.prototype.type=function(t){return this._type},tt.prototype.setType=function(t){return this._type=t,this},tt.prototype.left=function(t){return this._left},tt.prototype.setLeft=function(t){return this._left=t,this},tt.prototype.right=function(t){return this._right},tt.prototype.setRight=function(t){return this._right=t,this},tt.prototype.visit=function(){for(var t,e=0,r=n(this.left()),i=r.length;i>e;e++)r[e].traverse(),(t=this.right()[e])&&t.traverse();return this},tt.prototype.js=function(t){var e=[],r=this.left().length,i=this.right().length,s=null;if(r>1&&1==i){this.p("multiassign!");var p=this.right()[0];p.cache();for(var u,a=0,h=n(this.left()),c=h.length;c>a;a++){if(u=h[a],u.splat())throw"not supported?";s=xn(".",p,o(a)),e.push(xn("=",u,s))}}else for(var l,f=0,h=n(this.left()),c=h.length;c>f;f++)l=h[f],p=this.right()[f],e.push(p?xn("=",l.variable().accessor(),p):l);return"var "+e.c()},e(et,d),exports.Code=et,et.prototype.head=function(t){return this._head},et.prototype.setHead=function(t){return this._head=t,this},et.prototype.body=function(t){return this._body},et.prototype.setBody=function(t){return this._body=t,this},et.prototype.scope=function(t){return this._scope},et.prototype.setScope=function(t){return this._scope=t,this},et.prototype.params=function(t){return this._params},et.prototype.setParams=function(t){return this._params=t,this},et.prototype.scopetype=function(){return Qe},et.prototype.visit=function(){return this._scope&&this._scope.visit(),this},e(nt,et),exports.Root=nt,nt.prototype.visit=function(){return tr=Sn.ROOT=this._scope,this.scope().visit(),this.body().traverse()},nt.prototype.compile=function(t){Sn.reset(),Qn=Sn._options=this._options=t||{},this.traverse();var e=this.c(),n={js:e,ast:this,warnings:this.scope().warnings(),options:t,toString:function(){return this.js}};return t.sourceMapInline&&new Xn(n).generate(),n},nt.prototype.js=function(t){var e;this._options.bare?e=this.scope().c():(this.body().consume(new N),e=this.scope().c({indent:!0}),e=e.replace(/^\n?/,"\n"),e=e.replace(/\n?$/,"\n\n"),e="(function(){"+e+"})()");var n=[];return e=e.replace(/^[ \t]*\/\/(\!.+)$/gm,function(t,e){return e=e.replace(/\bimba\b/g,"node"),n.push("#"+e+"\n"),""}),e=n.join("")+e},nt.prototype.analyze=function(t){t&&t.constructor===Object||(t={});var e=void 0!==t.loglevel?t.loglevel:0,n=void 0!==t.entities?t.entities:!1,r=void 0!==t.scopes?t.scopes:!0;return Sn.setLoglevel(e),Sn._analyzing=!0,tr=Sn.ROOT=this._scope,Qn={analysis:{entities:n,scopes:r}},this.traverse(),Sn._analyzing=!1,this.scope().dump()},nt.prototype.inspect=function(){return!0},e(rt,et),exports.ClassDeclaration=rt,rt.prototype.name=function(t){return this._name},rt.prototype.setName=function(t){return this._name=t,this},rt.prototype.superclass=function(t){return this._superclass},rt.prototype.setSuperclass=function(t){return this._superclass=t,this},rt.prototype.initor=function(t){return this._initor},rt.prototype.setInitor=function(t){return this._initor=t,this},rt.prototype.consume=function(t){return t instanceof $?(this.option("return",!0),this):rt.__super__.consume.apply(this,arguments)},rt.prototype.namepath=function(){return this._namepath||(this._namepath=""+this.name().c())},rt.prototype.metadata=function(){var t;return{type:"class",namepath:this.namepath(),inherits:(t=this.superclass())&&t.namepath&&t.namepath(),path:this.name().c().toString(),desc:this._desc,loc:this.loc()}},rt.prototype.toJSON=function(){return this.metadata()},rt.prototype.visit=function(){return tr.entities().add(this.namepath(),this),this.scope().visit(),this.body().traverse(),this},rt.prototype.js=function(t){if(this.scope().virtualize(),this.scope().context().setValue(this.name()),this.option("extension"))return this.body().c();var e=[],t=this._options||{},r=this.name()instanceof Dt?this.name().right():this.name(),i=this.name()!=r,o=null,p=this.superclass(),u=-1,a=(this.body().filter(function(t){return t instanceof w}),s(this.option("keyword")));this.body().map(function(t,e){return t instanceof ut&&"constructor"==t.type()?u=e:void 0}),u>=0&&(o=this.body().removeAt(u)),"string"!=typeof r&&(r=r.c());var h="string"==typeof this.name()?this.name():this.name().c();o?(o.setName(r),o=o.c()+";"):o=p?""+a+"function "+r+"(){ return "+p.c()+".apply(this,arguments) };\n\n":""+a+"function "+r+"(){ };\n\n",i&&(o=""+h+" = "+o),e.push(o),u>=0&&this.body().index(u)instanceof w&&e.push(this.body().removeAt(u)),p&&e.push(new Ze.Subclass([this.name(),p])),t.global&&!i&&e.push("global."+r+" = "+h+"; // global class \n"),t["export"]&&!i&&e.push("exports."+r+" = "+h+"; // export class \n"),this.option("return")&&this.body().push("return "+h+";");for(var c=0,l=n(e.reverse()),f=l.length;f>c;c++)this.body().unshift(l[c]);this.body()._indentation=null;var _=this.body().index(this.body().count()-1);_ instanceof w&&1==_.c().length&&this.body().pop();var y=this.body().c();return y},e(it,et),exports.TagDeclaration=it,it.prototype.name=function(t){return this._name},it.prototype.setName=function(t){return this._name=t,this},it.prototype.superclass=function(t){return this._superclass},it.prototype.setSuperclass=function(t){return this._superclass=t,this},it.prototype.initor=function(t){return this._initor},it.prototype.setInitor=function(t){return this._initor=t,this},it.prototype.namepath=function(){return"<"+this.name()+">"},it.prototype.toJSON=function(){return{type:"tag",namepath:this.namepath(),inherits:this.superclass()?"<"+this.superclass().name()+">":null,loc:this.loc(),desc:this._desc}},it.prototype.visit=function(){tr.entities().register(this);for(var t,e=0,r=n(Sn.scopes()),i=r.length;i>e;e++)if(t=r[e],e>0&&t instanceof nn){t.node().option("hasLocalTags",!0),this.option("parent",t.node());break}return this.scope().visit(),this.body().traverse()},it.prototype.id=function(){return this.name().id()},it.prototype.tagspace=function(){var t=this.scope().closure().tagContextPath();return this.name().ns()?""+t+"."+this.name().ns().toUpperCase():t},it.prototype.js=function(t){this.scope().context().setValue(this._ctx=this.scope().declare("tag",null,{system:!0}));var e=(this.name().ns(),s(this.option("keyword"))),n=[Kn.singlequote(this.name().name())],r=this.body().c();this.superclass()&&n.push(Kn.singlequote(this.superclass().name())),this.body().count()&&(this.option("hasLocalTags")?n.push("function("+this._ctx.c()+","+this.scope().closure().tagContextPath()+"){"+r+"}"):n.push("function("+this._ctx.c()+"){"+r+"}"));var i=this.option("extension")?"extendTag":"defineTag";return""+e+this.tagspace()+"."+i+"("+n.join(", ")+")"},e(st,et),exports.Func=st,st.prototype.name=function(t){return this._name},st.prototype.setName=function(t){return this._name=t,this},st.prototype.params=function(t){return this._params},st.prototype.setParams=function(t){return this._params=t,this},st.prototype.target=function(t){return this._target},st.prototype.setTarget=function(t){return this._target=t,this},st.prototype.options=function(t){return this._options},st.prototype.setOptions=function(t){return this._options=t,this},st.prototype.type=function(t){return this._type},st.prototype.setType=function(t){return this._type=t,this},st.prototype.context=function(t){return this._context},st.prototype.setContext=function(t){return this._context=t,this},st.prototype.scopetype=function(){return sn},st.prototype.visit=function(){return this.scope().visit(),this._context=this.scope().parent(),this._params.traverse(),this._body.traverse()},st.prototype.js=function(t){this.option("noreturn")||this.body().consume(new N);var e=this.body()._indentation;e&&e.isGenerated()&&(this.body()._indentation=null);var n=this.scope().c({indent:!e||!e.isGenerated(),braces:!0}),r="string"==typeof this._name?this._name:this._name.c();r=r?" "+r.replace(/\./g,"_"):"";var i="function"+r+"("+this.params().c()+") "+n;return this.option("eval")&&(i="("+i+")()"),i},st.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),t instanceof ue&&t.callee()==this},e(ot,st),exports.Lambda=ot,ot.prototype.scopetype=function(){return pn},e(pt,st),exports.TagFragmentFunc=pt,e(ut,st),exports.MethodDeclaration=ut,ut.prototype.variable=function(t){return this._variable},ut.prototype.setVariable=function(t){return this._variable=t,this},ut.prototype.scopetype=function(){return on},ut.prototype.consume=function(t){return t instanceof $?(this.option("return",!0),this):ut.__super__.consume.apply(this,arguments)},ut.prototype.metadata=function(){return{type:"method",name:""+this.name(),namepath:this.namepath(),params:this._params.metadata(),desc:this._desc,scopenr:this.scope()._nr,loc:this.loc()}},ut.prototype.loc=function(){var t;return(t=this.option("def"))?[t._loc,this.body().loc()[1]]:[0,0]},ut.prototype.toJSON=function(){return this.metadata()},ut.prototype.namepath=function(){if(this._namepath)return this._namepath;var t=String(this.name()),e=this.option("static")?".":"#";return this.target()?this._namepath=this._target.namepath()+e+t:this._namepath="&"+t},ut.prototype.visit=function(){if(this.scope().visit(),"initialize"==String(this.name())&&this.setType("constructor"),this.option("greedy")){this.warn("deprecated");var t=new Ce;this._body=this.body().consume(t)}return this._context=this.scope().parent().closure(),this._params.traverse(),this.target()instanceof Ot&&(this._target=this._context.context(),this.set({"static":!0})),this.context()instanceof en&&(this.context().annotate(this),this._target||(this._target=this.context().context())),this._target||(this._variable=this.context().register(this.name(),this,{type:"meth"})),tr.entities().add(this.namepath(),this),this._body.traverse(),this},ut.prototype.supername=function(){return"constructor"==this.type()?this.type():this.name()},ut.prototype.js=function(t){"constructor"==this.type()||this.option("noreturn")||(this.option("greedy")?this.body().consume(new R):this.body().consume(new N));var e=this.scope().c({indent:!0,braces:!0}),n="string"==typeof this._name?this._name:this._name.c();n=n.replace(/\./g,"_");var r="("+this.params().c()+")"+e,i=this.target();!this.option("global")&&!this.option("export");i instanceof vn&&(i=null);var o=this.context(),p="",a=s(this.option("def")),h=u(this.name()),c=h;return p=o instanceof en&&!i?"constructor"==this.type()?""+a+"function "+h+r:this.option("static")?""+a+o.context().c()+"."+h+" = function "+r:""+a+o.context().c()+".prototype."+h+" = function "+r:o instanceof tn&&!i?""+a+"function "+c+r:i&&this.option("static")?""+a+i.c()+"."+h+" = function "+r:i?""+a+i.c()+".prototype."+h+" = function "+r:""+a+"function "+c+r,this.option("global")&&(p=""+h+" = "+p),this.option("export")?(p=""+p+"; exports."+h+" = "+h+";",this.option("return")&&(p=""+p+"; return "+h+";")):this.option("return")&&(p="return "+p),p},e(at,ut),exports.TagFragmentDeclaration=at,e(ht,d),exports.PropertyDeclaration=ht;var ur="\n${headers}\n${path}.${getter} = function(v){ return ${get}; }\n${path}.${setter} = function(v){ ${set}; return this; }\n${init}",ar="\n${headers}\n${path}.${getter} = function(v){ return ${get}; }\n${path}.${setter} = function(v){\n var a = this.${getter}();\n if(v != a) { v = ${set}; }\n if(v != a) { ${ondirty} }\n return this;\n}\n${init}";return ht.prototype.name=function(t){return this._name},ht.prototype.setName=function(t){return this._name=t,this},ht.prototype.options=function(t){return this._options},ht.prototype.setOptions=function(t){return this._options=t,this},ht.prototype.visit=function(){return this._options.traverse(),this},ht.prototype.c=function(){var t=this.options(),e=this.name().js(),n=Sn.scope(),r=t.keys().length,i=t.hash(),s=(this._token&&"attr"==String(this._token)||t.key("attr"),{key:e,getter:e,setter:u("set-"+e),scope:""+n.context().c(),path:"${scope}.prototype",set:"this._"+e+" = v",get:"this._"+e,init:"",headers:"",ondirty:""});if(i.inline&&i.inline instanceof lt&&!i.inline.truthy())return t.remove("inline"),("Imba."+this._token+"("+s.scope+",'"+this.name().value()+"',"+t.c()+")").replace(",{})",")");var o=ur;if(t.add("name",new wt(e)),i.watch){i.watch instanceof lt&&!i.watch.truthy()||(o=ar);var p=""+e+"DidSet";i.watch instanceof wt?p=i.watch:i.watch instanceof lt&&t.key("watch").setValue(new wt(""+e+"DidSet"));var a=xn(".",new Pt,p);s.ondirty=xn("&&",a,rr(a,["v","a","this.__"+e])).c()}if(i.observe&&(i.observe instanceof lt&&t.key("observe").setValue(new wt(""+e+"DidEmit")),o=ar,s.ondirty="Imba.observeProperty(this,'"+e+"',"+t.key("observe").value().c()+",v,a);"+(s.ondirty||"")),this._token&&"attr"==String(this._token)||t.key("dom")||t.key("attr")){var h=t.key("dom")instanceof mt?t.key("dom"):this.name().value();s.set="this.setAttribute('"+h+"',v)",s.get="this.getAttribute('"+h+"')"}else t.key("delegate")&&(s.set="this.__"+e+".delegate.set(this,'"+e+"',v,this.__"+e+")",s.get="this.__"+e+".delegate.get(this,'"+e+"',this.__"+e+")");i["default"]&&(t.key("dom")?s.init=""+s.scope+".dom().setAttribute('"+e+"',"+i["default"].c()+");":s.init=""+s.scope+".prototype._"+e+" = "+i["default"].c()+";"),t.key("chainable")&&(s.get="v !== undefined ? (this."+s.setter+"(v),this) : "+s.get),s.options=t.c(),r&&(s.headers=""+s.path+".__"+s.getter+" = "+s.options+";");var c=/\$\{(\w+)\}/gm,l=o.replace(c,function(t,e){return s[e]});return l=l.replace(c,function(t,e){return s[e]}),l=l.replace(/\n\s*$/,"")},e(ct,m),exports.Literal=ct,ct.prototype.toString=function(){return""+this.value()},ct.prototype.hasSideEffects=function(){return!1},e(lt,ct),exports.Bool=lt,lt.prototype.cache=function(){return this},lt.prototype.isPrimitive=function(){return!0},lt.prototype.truthy=function(){return"true"==String(this.value())},lt.prototype.js=function(t){return String(this._value)},lt.prototype.c=function(){return Sn._counter+=1,String(this._value)},lt.prototype.toJSON=function(){return{type:"Bool",value:this._value}},e(ft,ct),exports.Undefined=ft,ft.prototype.isPrimitive=function(){return!0},ft.prototype.c=function(){return s(this._value)+"undefined"},e(_t,ct),exports.Nil=_t,_t.prototype.isPrimitive=function(){return!0},_t.prototype.c=function(){return s(this._value)+"null"},e(yt,lt),exports.True=yt,yt.prototype.raw=function(){return!0},yt.prototype.c=function(){return s(this._value)+"true"},e(vt,lt),exports.False=vt,vt.prototype.raw=function(){return!1},vt.prototype.c=function(){return s(this._value)+"false"},e(dt,ct),exports.Num=dt,dt.prototype.toString=function(){return String(this._value)},dt.prototype.isPrimitive=function(t){return!0},dt.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),t instanceof Dt&&t.left()==this},dt.prototype.js=function(t){var e=String(this._value);return e},dt.prototype.c=function(t){if(this._cache)return dt.__super__.c.call(this,t);var e=String(this._value),n=Sn.current(),r=n instanceof Dt&&n.left()==this;return r?"("+s(this._value)+e+")":s(this._value)+e},dt.prototype.cache=function(t){return t&&(t.cache||t.pool)?dt.__super__.cache.call(this,t):this},dt.prototype.raw=function(){return JSON.parse(String(this.value()))},dt.prototype.toJSON=function(){return{type:this.typeName(),value:this.raw()}},e(mt,ct),exports.Str=mt,mt.prototype.isString=function(){return!0},mt.prototype.isPrimitive=function(t){return!0},mt.prototype.raw=function(){return this._raw||(this._raw=String(this.value()).slice(1,-1))},mt.prototype.isValidIdentifier=function(){return this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)?!0:!1},mt.prototype.js=function(t){return String(this._value)},mt.prototype.c=function(t){return this._cache?mt.__super__.c.call(this,t):String(this._value)},e(gt,m),exports.Interpolation=gt,e(xt,d),exports.InterpolatedString=xt,xt.prototype.add=function(t){return t&&this._nodes.push(t),this},xt.prototype.visit=function(){for(var t=0,e=n(this._nodes),r=e.length;r>t;t++)e[t].traverse();return this},xt.prototype.escapeString=function(t){return t=t.replace(/\n/g,"\\\n")},xt.prototype.js=function(t){var e=this,n=[],r="(";return e._nodes.map(function(t,r){return t instanceof Zn&&"NEOSTRING"==t._type?n.push('"'+e.escapeString(t._value)+'"'):t?(0==r&&n.push('""'),t._parens=!0,n.push(t.c({expression:!0}))):void 0}),r+=n.join(" + "),r+=")"},e(bt,E),exports.Tuple=bt,bt.prototype.c=function(){return new St(this.nodes()).c()},bt.prototype.hasSplat=function(){return this.filter(function(t){return t instanceof Oe})[0]},bt.prototype.consume=function(t){if(1==this.count())return this.first().consume(t);throw"multituple cannot consume"},e(wt,ct),exports.Symbol=wt,wt.prototype.isValidIdentifier=function(){return this.raw().match(/^[a-zA-Z\$\_]+[\d\w\$\_]*$/)?!0:!1},wt.prototype.isPrimitive=function(t){return!0},wt.prototype.raw=function(){return this._raw||(this._raw=u(this.value()))},wt.prototype.js=function(t){return"'"+u(this.value())+"'"},e(kt,ct),exports.RegExp=kt,kt.prototype.isPrimitive=function(){return!0},e(St,ct),exports.Arr=St,St.prototype.load=function(t){return t instanceof Array?new A(t):t},St.prototype.push=function(t){return this.value().push(t),this},St.prototype.count=function(){return this.value().length},St.prototype.nodes=function(){var t=this.value();return t instanceof Array?t:t.nodes()},St.prototype.splat=function(){return this.value().some(function(t){return t instanceof Oe})},St.prototype.visit=function(){return this._value&&this._value.traverse&&this._value.traverse(),this},St.prototype.isPrimitive=function(t){return!this.value().some(function(t){return!t.isPrimitive(!0)})},St.prototype.js=function(t){var e=this._value;if(!e)return"[]";var r=this.splat(),i=e instanceof Array?e:e.nodes();if(r){for(var s,o=[],p=null,u=0,h=n(i),c=h.length;c>u;u++)s=h[u],s instanceof Oe?(o.push(s),p=null):(p||o.push(p=new St([])),p.push(s));return"[].concat("+a(o).join(", ")+")"}var l=e instanceof Array?a(e):e.c();return"["+l+"]"},St.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},St.prototype.toString=function(){return"Arr"},St.prototype.indented=function(t,e){return this._value.indented(t,e),this},St.wrap=function(t){return new St(t)},e(jt,ct),exports.Obj=jt,jt.prototype.load=function(t){return t instanceof Array?new O(t):t},jt.prototype.visit=function(){return this._value&&this._value.traverse(),this},jt.prototype.js=function(t){var e=this.value().filter(function(t){return t instanceof Et&&(t.key()instanceof Ct||t.key()instanceof xt)});if(e.length>0){var n=this.value().indexOf(e[0]),r=this.scope__().temporary(this),i=this.value().slice(0,n),s=new jt(i),o=[xn("=",r,s)];return this.value().slice(n).forEach(function(t){return o.push(xn("=",xn(".",r,t.key()),t.value()))}),o.push(r),new C(o).c()}return"{"+this.value().c()+"}"},jt.prototype.add=function(t,e){("string"==typeof t||t instanceof String)&&(t=new ne(t));var n=new Et(t,e);return this.value().push(n),n},jt.prototype.remove=function(t){for(var e,r=0,i=n(this.value()),s=i.length;s>r;r++)e=i[r],e.key().symbol()==t&&this.value().remove(e);return this},jt.prototype.keys=function(){return Object.keys(this.hash())},jt.prototype.hash=function(){for(var t,e={},r=0,i=n(this.value()),s=i.length;s>r;r++)t=i[r],t instanceof Et&&(e[t.key().symbol()]=t.value());return e},jt.prototype.key=function(t){for(var e,r=0,i=n(this.value()),s=i.length;s>r;r++)if(e=i[r],e instanceof Et&&e.key().symbol()==t)return e;return null},jt.prototype.indented=function(t,e){return this._value.indented(t,e),this},jt.prototype.hasSideEffects=function(){return this.value().some(function(t){return t.hasSideEffects()})},jt.wrap=function(t){for(var e,n=[],r=0,i=Object.keys(t),s=i.length;s>r;r++)e=t[i[r]],e instanceof Array?e=St.wrap(e):e.constructor==Object&&(e=jt.wrap(e)),n.push(new Et(i[r],e));return new jt(n)},jt.prototype.toString=function(){return"Obj"},e(Et,d),exports.ObjAttr=Et,Et.prototype.key=function(t){return this._key},Et.prototype.setKey=function(t){return this._key=t,this},Et.prototype.value=function(t){return this._value},Et.prototype.setValue=function(t){return this._value=t,this},Et.prototype.options=function(t){return this._options},Et.prototype.setOptions=function(t){return this._options=t,this},Et.prototype.visit=function(){return this.key().traverse(),this.value().traverse();
16
- },Et.prototype.js=function(t){var e=this.key().isReserved()?"'"+this.key().c()+"'":this.key().c();return""+e+": "+this.value().c()},Et.prototype.hasSideEffects=function(){return!0},e(At,d),exports.ArgsReference=At,At.prototype.c=function(){return"arguments"},e(Ot,ct),exports.Self=Ot,Ot.prototype.scope=function(t){return this._scope},Ot.prototype.setScope=function(t){return this._scope=t,this},Ot.prototype.cache=function(){return this},Ot.prototype.reference=function(){return this},Ot.prototype.c=function(){var t=this.scope__();return t?t.context().c():"this"},e(Tt,Ot),exports.ImplicitSelf=Tt,e(Pt,Ot),exports.This=Pt,Pt.prototype.cache=function(){return this},Pt.prototype.reference=function(){return this},Pt.prototype.c=function(){return"this"},e(Ct,d),exports.Op=Ct,Ct.prototype.op=function(t){return this._op},Ct.prototype.setOp=function(t){return this._op=t,this},Ct.prototype.left=function(t){return this._left},Ct.prototype.setLeft=function(t){return this._left=t,this},Ct.prototype.right=function(t){return this._right},Ct.prototype.setRight=function(t){return this._right=t,this},Ct.prototype.visit=function(){return this._right&&this._right.traverse(),this._left&&this._left.traverse(),this},Ct.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()},Ct.prototype.js=function(t){var e=null,n=this._op,r=this._left,i=this._right;return r instanceof d&&(r=r.c()),i instanceof d&&(i=i.c()),r&&i?e=""+r+" "+s(this._opToken)+n+" "+i:r&&(e=""+s(this._opToken)+n+r),e},Ct.prototype.shouldParenthesize=function(){return this._parens},Ct.prototype.precedence=function(){return 10},Ct.prototype.consume=function(t){if(t instanceof Ce)return this._left&&this._left.consume(t),this._right&&this._right.consume(t),this;if(this.isExpressable())return Ct.__super__.consume.apply(this,arguments);var e=(this.scope__().declare("tmp",null,{system:!0}),xn(this.op(),this.left(),null)),n=this.right().consume(e);return t&&n.consume(t),n},e(It,Ct),exports.ComparisonOp=It,It.prototype.invert=function(){var t=this._op,e=["==","!=","===","!==",">","<=","<",">="],n=e.indexOf(t);return n+=n%2?-1:1,this.setOp(e[n]),this._invert=!this._invert,this},It.prototype.c=function(){return this.left()instanceof It?(this.left().right().cache(),xn("&&",this.left(),xn(this.op(),this.left().right(),this.right())).c()):It.__super__.c.apply(this,arguments)},It.prototype.js=function(t){var e=this._op,n=this._left,r=this._right;return n instanceof d&&(n=n.c()),r instanceof d&&(r=r.c()),""+n+" "+s(this._opToken)+e+" "+r},e($t,Ct),exports.MathOp=$t,$t.prototype.c=function(){return"∪"==this.op()?this.util().union(this.left(),this.right()).c():"∩"==this.op()?this.util().intersect(this.left(),this.right()).c():void 0},e(Nt,Ct),exports.UnaryOp=Nt,Nt.prototype.invert=function(){return"!"==this.op()?this.left():Nt.__super__.invert.apply(this,arguments)},Nt.prototype.js=function(t){var e=this._left,n=this._right;if("!"==this.op()){var r=e.c(),i=e.shouldParenthesize(this);return r.match(/^\!?([\w\.]+)$/)||e instanceof C||i||e instanceof Dt||e instanceof ue||(r="("+r+")"),""+this.op()+r}return"√"==this.op()?"Math.sqrt("+e.c()+")":this.left()?""+e.c()+this.op():""+this.op()+n.c()},Nt.prototype.normalize=function(){if("!"==this.op()||"√"==this.op())return this;var t=(this.left()||this.right()).node();if(!(t instanceof Gt))return this;t instanceof Dt&&t.left()&&t.left().cache();var e=new dt(1),n=xn("=",t,xn(this.op()[0],t,e));return this.left()&&(n=xn("-"==this.op()[0]?"+":"-",n,e)),n},Nt.prototype.consume=function(t){var e=this.normalize();return e==this?Nt.__super__.consume.apply(this,arguments):e.consume(t)},Nt.prototype.c=function(){var t=this.normalize();return t==this?Nt.__super__.c.apply(this,arguments):t.c()},e(Rt,Ct),exports.InstanceOf=Rt,Rt.prototype.js=function(e){if(this.right()instanceof se){var n=i(this.right().value()),r=this.left().node();if(t(n,["String","Number","Boolean"])>=0)return r instanceof Ft||r.cache(),"(typeof "+r.c()+"=='"+n.toLowerCase()+"'||"+r.c()+" instanceof "+n+")"}var s=""+this.left().c()+" "+this.op()+" "+this.right().c();return e.parent()instanceof Ct&&(s=Kn.parenthesize(s)),s},e(Vt,Ct),exports.TypeOf=Vt,Vt.prototype.js=function(t){return"typeof "+this.left().c()},e(zt,Ct),exports.Delete=zt,zt.prototype.js=function(t){var e=this.left(),n=this.scope__().temporary(this,{pool:"val"}),t=xn("=",n,e);return"("+t.c()+",delete "+e.c()+", "+n.c()+")"},zt.prototype.shouldParenthesize=function(){return!0},e(Lt,Ct),exports.In=Lt,Lt.prototype.invert=function(){return this._invert=!this._invert,this},Lt.prototype.js=function(t){var e=this._invert?"== -1":">= 0",n=Ze.indexOf(this.left(),this.right());return""+n.c()+" "+e},module.exports.K_IVAR=jn=1,module.exports.K_SYM=En=2,module.exports.K_STR=An=3,module.exports.K_PROP=On=4,e(Dt,Ct),exports.Access=Dt,Dt.prototype.clone=function(t,e){var n=this.constructor;return new n(this.op(),t,e)},Dt.prototype.js=function(t){var e,n=null,r=this.right(),i=this.left()||this.scope__().context(),o="",p="";if(r instanceof dt)return i.c()+"["+r.c()+"]";r instanceof j&&(r.value()instanceof mt||r.value()instanceof wt)&&(r=r.value()),r instanceof mt&&r.isValidIdentifier()?n=r.raw():r instanceof wt&&r.isValidIdentifier()?n=r.raw():r instanceof ne&&r.isValidIdentifier()&&(p=s(r._value),n=r.c()),this.safechain()&&i&&(i.cache({force:!0}),o=i.c()+" && ");var u=n?i?""+i.c()+"."+p+n:n:(e=r instanceof d?r.c({expression:!0}):r,""+i.c()+"["+e+"]");return o+u},Dt.prototype.visit=function(){this.left()&&this.left().traverse(),this.right()&&this.right().traverse()},Dt.prototype.isExpressable=function(){return!0},Dt.prototype.alias=function(){return this.right()instanceof ne?this.right().alias():Dt.__super__.alias.call(this)},Dt.prototype.safechain=function(){return"?."==String(this._op)||"?:"==String(this._op)},Dt.prototype.cache=function(t){return this.right()instanceof ie&&!this.left()?this:Dt.__super__.cache.call(this,t)},e(Ft,Dt),exports.LocalVarAccess=Ft,Ft.prototype.safechain=function(t){return this._safechain},Ft.prototype.setSafechain=function(t){return this._safechain=t,this},Ft.prototype.js=function(t){return this.right()instanceof _n&&"meth"==this.right().type()&&!(this.up()instanceof ue)?""+this.right().c()+"()":this.right().c()},Ft.prototype.variable=function(){return this.right()},Ft.prototype.cache=function(t){return void 0===t&&(t={}),t.force&&Ft.__super__.cache.call(this,t),this},Ft.prototype.alias=function(){return this.variable()._alias||Ft.__super__.alias.call(this)},e(Bt,m),exports.GlobalVarAccess=Bt,Bt.prototype.js=function(t){return this.value().c()},e(Mt,Dt),exports.ObjectAccess=Mt,e(Gt,Dt),exports.PropertyAccess=Gt,Gt.prototype.visit=function(){return this._right&&this._right.traverse(),this._left&&this._left.traverse(),this},Gt.prototype.js=function(t){var e;if(e=this.receiver()){var n=rr(xn(".",this.left(),this.right()),[]);return n.setReceiver(e),n.c()}var r=this.up();if(!(r instanceof ue))return n=rr(new Dt(this.op(),this.left(),this.right()),[]),n.c();var i=""+Gt.__super__.js.call(this,t);return r instanceof ue||r instanceof Ze.IsFunction||(i+="()"),i},Gt.prototype.receiver=function(){return this.left()instanceof Kt||this.left()instanceof mn?Cn:null},e(Ut,Dt),exports.IvarAccess=Ut,Ut.prototype.cache=function(){return this},e(qt,Dt),exports.ConstAccess=qt,e(Jt,Dt),exports.IndexAccess=Jt,Jt.prototype.cache=function(t){return void 0===t&&(t={}),t.force?Jt.__super__.cache.apply(this,arguments):(this.right().cache(),this)},e(Kt,Dt),exports.SuperAccess=Kt,Kt.prototype.js=function(t){var e=t.method(),n=t.parent(),r=(t.parent()instanceof Dt,""+this.left().c()+".__super__");return n instanceof Dt||(r+="."+e.supername().c(),n instanceof ue||(r+=".apply("+e.scope().context().c()+",arguments)")),r},Kt.prototype.receiver=function(){return Cn},e(Ht,m),exports.VarOrAccess=Ht,Ht.prototype.visit=function(){var t=this.scope__(),e=t.lookup(this.value());return e&&e.declarator()&&(e._initialized||t.closure()!=e.scope().closure())?(this._variable=e,e.addReference(this),this._value=e,this._token._variable=e,this):this.value().symbol().indexOf("$")>=0?(this._value=new Bt(this.value()),this):(this._value=new Gt(".",t.context(),this.value()),this._token._meta={type:"ACCESS"},this)},Ht.prototype.c=function(){return s(this._token)+(this._variable?Ht.__super__.c.call(this):this.value().c())},Ht.prototype.js=function(t){var e;if(e=this._variable){var n=e.c();return"meth"!=e._type||t.up()instanceof ue||(n+="()"),n}return"NONO"},Ht.prototype.node=function(){return this._variable?this:this.value()},Ht.prototype.symbol=function(){return this._identifier.symbol()},Ht.prototype.cache=function(t){return void 0===t&&(t={}),this._variable?t.force&&Ht.__super__.cache.call(this,t):this.value().cache(t)},Ht.prototype.decache=function(){return this._variable?Ht.__super__.decache.call(this):this.value().decache(),this},Ht.prototype.dom=function(){return this.value().dom()},Ht.prototype.safechain=function(){return this._identifier.safechain()},Ht.prototype.dump=function(){return{loc:this.loc()}},Ht.prototype.loc=function(){var t=this._identifier.region();return t||[0,0]},Ht.prototype.region=function(){return this._identifier.region()},Ht.prototype.toString=function(){return"VarOrAccess("+this.value()+")"},Ht.prototype.toJSON=function(){return{type:this.typeName(),value:this._identifier.toString()}},e(Wt,m),exports.VarReference=Wt,Wt.prototype.variable=function(t){return this._variable},Wt.prototype.setVariable=function(t){return this._variable=t,this},Wt.prototype.declared=function(t){return this._declared},Wt.prototype.setDeclared=function(t){return this._declared=t,this},Wt.prototype.type=function(t){return this._type},Wt.prototype.setType=function(t){return this._type=t,this},Wt.prototype.loc=function(){return this._value.region()},Wt.prototype.set=function(t){return t["export"]&&(this._export=!0),this},Wt.prototype.js=function(t){var e=this._variable,n=e.c();return e&&!e._declared&&(t.up(P)?e._declared=!0:t.isExpression()||this._export?e.autodeclare():(n="var "+s(this._value)+n,e._declared=!0)),this._export&&(n="module.exports."+e.c()+" = "+e.c()),n},Wt.prototype.declare=function(){return this},Wt.prototype.consume=function(t){return this._variable&&this._variable.autodeclare(),this},Wt.prototype.visit=function(){var t=this.value().c(),e=this._variable||(this._variable=this.scope__().register(t,this,{type:this._type}));return e.declarator()||e.setDeclarator(this),this._value&&e.addReference(this._value),this._value._value._variable=e,this},Wt.prototype.refnr=function(){return this.variable().references().indexOf(this.value())},Wt.prototype.addExpression=function(t){return new P([this]).addExpression(t)},e(Yt,Ct),exports.Assign=Yt,Yt.prototype.isExpressable=function(){return!this.right()||this.right().isExpressable()},Yt.prototype.isUsed=function(){return this.up()instanceof T?!1:!0},Yt.prototype.visit=function(){var t=this._left,e=this._right;t&&t.traverse();var n=t instanceof Wt&&t.variable();return!n&&this._desc&&tr.entities().add(t.namepath(),{namepath:t.namepath(),type:e.typeName(),desc:this._desc}),n&&n.declarator()==t?(n._initialized=!1,e&&e.traverse(),n._initialized=!0):e&&e.traverse(),(t instanceof Wt||t._variable)&&t._variable.assigned(e,this),this},Yt.prototype.c=function(t){return this.right().isExpressable()?Yt.__super__.c.call(this,t):this.right().consume(this).c(t)},Yt.prototype.js=function(t){if(!this.right().isExpressable())return this.p("Assign#js right is not expressable "),this.right().consume(this).c();var e=this.left().node();this.right();if(e instanceof Ot){var n=this.scope__().context();e=n.reference()}if(e instanceof Gt){var r=rr(xn(".",e.left(),e.right().setter()),[this.right()]);return r.setReceiver(e.receiver()),this.isUsed()&&(this.right().cachevar()||this.right().cache({pool:"val",uses:1}),r=new C(p([r,this.right()]))),r.c({expression:!0})}var i=""+e.c()+" "+s(this._opToken)+this.op()+" "+this.right().c({expression:!0});return i},Yt.prototype.shouldParenthesize=function(t){return void 0===t&&(t=this.up()),this._parens||t instanceof Ct&&"="!=t.op()},Yt.prototype.consume=function(t){if(this.isExpressable())return this.forceExpression(),Yt.__super__.consume.call(this,t);var e=this.right().consume(this);return e.consume(t)},Yt.prototype.addExpression=function(t){var e=I;this._left&&this._left instanceof Wt&&(e=P);var n=new e([this]);return n.addExpression(t)},e(Zt,Yt),exports.PushAssign=Zt,Zt.prototype.js=function(t){return""+this.left().c()+".push("+this.right().c()+")"},Zt.prototype.consume=function(t){return this},e(Xt,Yt),exports.ConditionalAssign=Xt,Xt.prototype.consume=function(t){return this.normalize().consume(t)},Xt.prototype.normalize=function(){var t=this.left().node(),e=t;t instanceof Dt&&(t.left()&&t.left().cache(),e=t.clone(t.left(),t.right()),t instanceof Gt&&t.cache(),t instanceof Jt&&t.right().cache());var n=this.right().isExpressable(),r=null;return n&&"||="==this.op()?r=xn("||",t,xn("=",e,this.right())):n&&"&&="==this.op()?r=xn("&&",t,xn("=",e,this.right())):(r=er(this.condition(),xn("=",e,this.right()),t),r.setScope(null)),r.isExpressable()&&r.toExpression(),r},Xt.prototype.c=function(){return this.normalize().c()},Xt.prototype.condition=function(){return"?="==this.op()?xn("==",this.left(),Dn):"||="==this.op()?xn("!",this.left()):"&&="==this.op()?this.left():"!?="==this.op()?xn("!=",this.left(),Dn):this.left()},Xt.prototype.js=function(t){var e=er(this.condition(),xn("=",this.left(),this.right()),this.left());return e.setScope(null),e.isExpressable()&&e.toExpression(),e.c()},e(Qt,Yt),exports.CompoundAssign=Qt,Qt.prototype.consume=function(t){if(this.isExpressable())return Qt.__super__.consume.apply(this,arguments);var e=this.normalize();return e!=this?e.consume(t):(e=this.right().consume(this),e.consume(t))},Qt.prototype.normalize=function(){var t=this.left().node();if(!(t instanceof Gt))return this;t instanceof Dt&&t.left()&&t.left().cache();var e=xn("=",this.left(),xn(this.op()[0],this.left(),this.right()));return e.isExpressable()&&e.toExpression(),e},Qt.prototype.c=function(){var t=this.normalize();if(t==this)return Qt.__super__.c.apply(this,arguments);var e=Sn.current();return e instanceof T&&e.replace(this,t),t.c()},e(te,Yt),exports.AsyncAssign=te,e(ee,Yt),exports.TupleAssign=ee,ee.prototype.op=function(t){return this._op},ee.prototype.setOp=function(t){return this._op=t,this},ee.prototype.left=function(t){return this._left},ee.prototype.setLeft=function(t){return this._left=t,this},ee.prototype.right=function(t){return this._right},ee.prototype.setRight=function(t){return this._right=t,this},ee.prototype.type=function(t){return this._type},ee.prototype.setType=function(t){return this._type=t,this},ee.prototype.isExpressable=function(){return this.right().isExpressable()},ee.prototype.addExpression=function(t){return this.right()instanceof bt?this.right().push(t):this.setRight(new bt([this.right(),t])),this},ee.prototype.visit=function(){return this.left().first().node()instanceof Wt&&(this.setType("var"),this._vars=this.left().nodes().filter(function(t){return t instanceof Wt})),this.right().traverse(),this.left().traverse(),this},ee.prototype.js=function(t){var e=this;if(!e.right().isExpressable())return e.right().consume(e).c();var r=new T([]),i=e.left(),s=e.right(),p=e.type(),u=0,a=i.count(),h=a,c=i.filter(function(t){return t instanceof Oe})[0];s instanceof St&&!s.splat()&&(s=new bt(s.nodes()));var l=s instanceof bt?s.count():null;if(c||s!=zn)if(l){var f=i.map(function(t,e){var n=null;if(t==c){n=new A([]);for(var r=l-(a-e);r>=u;)n.push(s.index(u++));n=new St(n)}else n=s.index(u++);return[t.node(),n]}),_=!0;f.map(function(t,n){var i=t[0],s=t[1];return _&&(i instanceof Wt&&0==i.refnr()?_=!0:(_=!1,f.slice(n).map(function(t){return t[1].hasSideEffects()?(e._temporary.push(t[1]),r.push(t[1].cache({force:!0,pool:"swap",declared:"var"==p}))):void 0}))),r.last()==s?(s.decache(),r.replace(s,xn("=",i,s))):r.push(xn("=",i,s))})}else{var y=new P,v=e.util().iterable(s,!0);if(r.push(y),y.push(v),c){var d=e.util().len(v,!0),m=e.util().counter(0,!0);y.push(d),y.push(m)}var g="var"==p?P:T,x=new g([]);r.push(x),i.map(function(t,n){if(t==c){var i=t.node(),s=h-n-1;if("var"!=p){var u=e.util().array(xn("-",d,o(n+s)),!0);y.push(u),i=u.cachevar()}else x||r.push(x=new g),u=e.util().array(xn("-",d,o(n+s))),x.push(xn("=",i,u));var a=s?xn("-",d,s):d,l=xn("=",xn(".",i,xn("-",m,o(n))),xn(".",v,xn("++",m)));return r.push(ir(xn("<",m,a),l)),"var"!=p?(r.push(x=new T),x.push(xn("=",t.node(),i))):x=null}return c?(x||r.push(x=new g),x.push(xn("=",t,xn(".",v,xn("++",m))))):(x||r.push(x=new g),x.push(xn("=",t,xn(".",v,o(n)))))})}else{var b=e.scope__().params();i.map(function(t,e){return r.push(xn("=",t.node(),b.at(e,!0).visit().variable()))})}if(t.isExpression()&&e._vars)for(var w=0,k=n(e._vars),S=k.length;S>w;w++)k[w].variable().autodeclare();else if(e._vars)for(var w=0,k=n(e._vars),S=k.length;S>w;w++)k[w].variable().predeclared();if(r.isExpressable()){var j=r.c({expression:!0});return p&&!t.isExpression()&&(j=""+p+" "+j),j}return j=r.c()},ee.prototype.c=function(t){var e=ee.__super__.c.call(this,t);return this._temporary&&this._temporary.length&&this._temporary.map(function(t){return t.decache()}),e},e(ne,d),exports.Identifier=ne,ne.prototype.safechain=function(t){return this._safechain},ne.prototype.setSafechain=function(t){return this._safechain=t,this},ne.prototype.value=function(t){return this._value},ne.prototype.setValue=function(t){return this._value=t,this},ne.prototype.references=function(t){return this._value&&(this._value._variable=t),this},ne.prototype.sourceMapMarker=function(){return this._value.sourceMapMarker()},ne.prototype.load=function(t){return t instanceof ne?t.value():t},ne.prototype.traverse=function(){return this},ne.prototype.visit=function(){return this._value instanceof d&&this._value.traverse(),this},ne.prototype.region=function(){return[this._value._loc,this._value._loc+this._value._len]},ne.prototype.isValidIdentifier=function(){return!0},ne.prototype.isReserved=function(){return this._value.reserved||or.test(String(this._value))},ne.prototype.symbol=function(){return this._symbol||(this._symbol=u(this.value()))},ne.prototype.setter=function(){var t;return this._setter||(this._setter=(t=new Zn("IDENTIFIER",u("set-"+this._value),this._value._loc||-1),new ne(t)))},ne.prototype.toString=function(){return String(this._value)},ne.prototype.toJSON=function(){return this.toString()},ne.prototype.alias=function(){return u(this._value)},ne.prototype.js=function(t){return this.symbol()},ne.prototype.c=function(){return""+this.symbol()},ne.prototype.dump=function(){return{loc:this.region()}},ne.prototype.namepath=function(){return this.toString()},e(re,ne),exports.TagId=re,re.prototype.c=function(){return"id$('"+this.value().c()+"')"},e(ie,ne),exports.Ivar=ie,ie.prototype.name=function(){return Kn.camelCase(this._value).replace(/^@/,"")},ie.prototype.alias=function(){return"_"+this.name()},ie.prototype.js=function(t){return"_"+this.name()},ie.prototype.c=function(){return"_"+Kn.camelCase(this._value).slice(1)},e(se,ne),exports.Const=se,se.prototype.symbol=function(){return this._symbol||(this._symbol=u(this.value()))},se.prototype.js=function(t){return this.symbol()},se.prototype.c=function(){return s(this._value)+this.symbol()},e(oe,ne),exports.TagTypeIdentifier=oe,oe.prototype.name=function(t){return this._name},oe.prototype.setName=function(t){return this._name=t,this},oe.prototype.ns=function(t){return this._ns},oe.prototype.setNs=function(t){return this._ns=t,this},oe.prototype.load=function(t){this._str=""+t;var e=this._str.split(":");return this._raw=t,this._name=e.pop(),this._ns=e.shift(),this._str},oe.prototype.js=function(t){return"Imba.TAGS."+this._str.replace(":","$")},oe.prototype.c=function(){return this.js()},oe.prototype.func=function(){var t=this._name.replace(/-/g,"_").replace(/\#/,"");return this._ns&&(t+="$"+this._ns.toLowerCase()),t},oe.prototype.spawner=function(){return this._ns?""+this._ns.toUpperCase()+".$"+this._name.replace(/-/g,"_"):"$"+this._name.replace(/-/g,"_")},oe.prototype.id=function(){var t=this._str.match(/\#([\w\-\d\_]+)\b/);return t?t[1]:null},oe.prototype.flag=function(){return"_"+this.name().replace(/--/g,"_").toLowerCase()},oe.prototype.sel=function(){return"."+this.flag()},oe.prototype.string=function(){return this.value()},e(pe,m),exports.Argvar=pe,pe.prototype.c=function(){var t=parseInt(String(this.value()));if(0==t)return"arguments";var e=this.scope__(),n=e.params().at(t-1,!0);return""+i(n.name())},e(ue,d),exports.Call=ue,ue.prototype.callee=function(t){return this._callee},ue.prototype.setCallee=function(t){return this._callee=t,this},ue.prototype.receiver=function(t){return this._receiver},ue.prototype.setReceiver=function(t){return this._receiver=t,this},ue.prototype.args=function(t){return this._args},ue.prototype.setArgs=function(t){return this._args=t,this},ue.prototype.block=function(t){return this._block},ue.prototype.setBlock=function(t){return this._block=t,this},ue.prototype.visit=function(){return this.args().traverse(),this.callee().traverse(),this._block&&this._block.traverse()},ue.prototype.addBlock=function(t){var e=this._args.filter(function(t,e){return"&"==t})[0];return e?this.args().replace(e,t):this.args().push(t),this},ue.prototype.receiver=function(){return this._receiver||(this._receiver=this.callee()instanceof Dt&&this.callee().left()||Dn)},ue.prototype.safechain=function(){return this.callee().safechain()},ue.prototype.js=function(t){var e=this.args(),n=e.some(function(t){return t instanceof Oe}),r=null,i=null,s=null,o=null,p=this._callee=this._callee.node();if(p instanceof Dt&&(i=p.left(),s=p.right()),(p instanceof mn||p instanceof Kt)&&(this._receiver=this.scope__().context()),p instanceof Gt&&(this._receiver=p.receiver(),p=this._callee=new Dt(p.op(),p.left(),p.right())),p.safechain()){var u=new Ze.IsFunction([p]);o=[""+u.c()+" && ",""],p=xn(".",p.left(),p.right())}if(n){var a=this.receiver(),h=1==e.count()?new m(e.first().value()):new St(e.list());a.cache(),r=""+p.c({expression:!0})+".apply("+a.c()+","+h.c({expression:!0})+")"}else this._receiver?(this._receiver instanceof vn||this._receiver.cache(),e.unshift(this.receiver()),r=""+p.c({expression:!0})+".call("+e.c({expression:!0})+")"):r=""+p.c({expression:!0})+"("+e.c({expression:!0})+")";return o&&(this._cache&&(this._cache.manual=!0,r="("+this.cachevar().c()+"="+r+")"),r=[o[0],r,o[1]].join("")),r},e(ae,ue),exports.ImplicitCall=ae,ae.prototype.js=function(t){return""+this.callee().c()+"()"},e(he,ue),exports.New=he,he.prototype.js=function(t){for(var e=this.callee();e instanceof Dt;){var n=e.left();if(n instanceof Gt||n instanceof Ht){this.callee()._parens=!0;break}e=n}var r="new "+this.callee().c();return t.parent()instanceof ue||(r+="()"),r},e(ce,ue),exports.SuperCall=ce,ce.prototype.js=function(t){var e=t.method();return this.setReceiver(Cn),this.setCallee(""+e.target().c()+".super$.prototype."+e.name().c()),ce.__super__.js.apply(this,arguments)},e(le,E),exports.ExternDeclaration=le,le.prototype.visit=function(){this.setNodes(this.map(function(t){return t.node()}));for(var t,e=this.scope__(),r=0,i=n(this.nodes()),s=i.length;s>r;r++){t=i[r];var o=e.register(t.symbol(),t,{type:"global"});o.addReference(t)}return this},le.prototype.c=function(){return"// externs"},e(fe,d),exports.ControlFlow=fe,e(_e,fe),exports.ControlFlowStatement=_e,_e.prototype.isExpressable=function(){return!1},e(ye,fe),exports.If=ye,ye.prototype.test=function(t){return this._test},ye.prototype.setTest=function(t){return this._test=t,this},ye.prototype.body=function(t){return this._body},ye.prototype.setBody=function(t){return this._body=t,this},ye.prototype.alt=function(t){return this._alt},ye.prototype.setAlt=function(t){return this._alt=t,this},ye.prototype.scope=function(t){return this._scope},ye.prototype.setScope=function(t){return this._scope=t,this},ye.ternary=function(t,e,n){var r=new ye(t,new T([e]),{type:"?"});return r.addElse(new T([n])),r},ye.prototype.addElse=function(t){return this.alt()&&this.alt()instanceof ye?this.alt().addElse(t):this.setAlt(t),this},ye.prototype.invert=function(){return this._test instanceof It?this._test=this._test.invert():this._test=new Nt("!",this._test,null)},ye.prototype.visit=function(){var t=this.alt();return this._scope&&this._scope.visit(),this.test()&&this.test().traverse(),this.body()&&this.body().traverse(),t&&(Sn.pop(this),t._scope||(t._scope=new fn(t)),t.traverse(),Sn.push(this)),"?"==this._type&&this.isExpressable()&&this.toExpression(),this},ye.prototype.js=function(t){var e=this.body(),n={braces:!0,indent:!0},r=this.test().c({expression:!0});if(t.isExpression()){var i=e.c();return i="("+i+")",this.alt()?""+r+" ? "+i+" : ("+this.alt().c()+")":this._tagtree?"("+r+") ? "+i+" : void(0)":"("+r+") && "+i}i=null,e instanceof T&&1==e.count()&&!(e.first()instanceof z)&&(e=e.first()),i=e.c({braces:!0});var o=""+s(this._type)+"if ("+r+") "+i;return this.alt()&&(o+=" else "+this.alt().c(this.alt()instanceof ye?{}:n)),o},ye.prototype.sourceMapMarker=function(){return this},ye.prototype.consume=function(t){if(t instanceof Ce)return this._body=this._body.consume(t),this._alt&&(this._alt=this._alt.consume(t)),this._tagtree=t,this;var e=t instanceof $;return this._expression||(!e||"?"==this._type)&&this.isExpressable()?(this.toExpression(),ye.__super__.consume.call(this,t)):(this._body=this._body.consume(t),this._alt&&(this._alt=this._alt.consume(t)),this)},ye.prototype.isExpressable=function(){var t=this.body().isExpressable()&&(!this.alt()||this.alt().isExpressable());return t},e(ve,g),exports.Loop=ve,ve.prototype.scope=function(t){return this._scope},ve.prototype.setScope=function(t){return this._scope=t,this},ve.prototype.options=function(t){return this._options},ve.prototype.setOptions=function(t){return this._options=t,this},ve.prototype.body=function(t){return this._body},ve.prototype.setBody=function(t){return this._body=t,this},ve.prototype.catcher=function(t){return this._catcher},ve.prototype.setCatcher=function(t){return this._catcher=t,this},ve.prototype.set=function(t){this._options||(this._options={});for(var e,r=Object.keys(t),i=0,s=n(r),o=s.length;o>i;i++)e=s[i],this._options[e]=t[e];return this},ve.prototype.addBody=function(t){return this.setBody(p(t)),this},ve.prototype.c=function(t){var e=this.stack();e.current();if(this.stack().isExpression()||this.isExpression()){var n=rr(nr([],[this]),[]);return n.c(t)}return this.stack().current()instanceof T||e.up()instanceof T&&e.current()._consumer==this?ve.__super__.c.call(this,t):(n=rr(nr([],[this]),[]),n.c(t))},e(de,ve),exports.While=de,de.prototype.test=function(t){return this._test},de.prototype.setTest=function(t){return this._test=t,this},de.prototype.visit=function(){return this.scope().visit(),this.test()&&this.test().traverse(),this.body()?this.body().traverse():void 0},de.prototype.consume=function(t){if(this.isExpressable())return de.__super__.consume.apply(this,arguments);if(t instanceof Ce)return this.scope().context().reference(),rr(nr([],[this]),[]);var e=this.scope().declare("res",new St([]),{system:!0});this._catcher=new Zt("push",e,null),this.body().consume(this._catcher);var n=new T([this,e.accessor()]);return n.consume(t)},de.prototype.js=function(t){var e="while ("+this.test().c({expression:!0})+")"+this.body().c({braces:!0,indent:!0});return this.scope().vars().count()>0?[this.scope().vars().c(),e]:e},e(me,ve),exports.For=me,me.prototype.visit=function(){if(this.scope().visit(),this.options().source.traverse(),this.declare(),this.options().guard){var t=er(this.options().guard.invert(),T.wrap([new D("continue")]));this.body().unshift(t,Tn)}return this.body().traverse()},me.prototype.isBare=function(t){return t&&t._variable&&t._variable._isArray},me.prototype.declare=function(){var t=this.options(),e=this.scope(),n=t.source,r=t.vars={},i=t.index,s=this.isBare(n);if(n instanceof Ae)r.len=e.declare("len",n.right()),r.index=e.register(t.name,e,{type:"let",declared:!0}),e.vars().push(r.index.assignment(n.left())),r.value=r.index;else{var o=r.index=i?e.declare(i,0,{type:"let"}):this.util().counter(0,!0,e).predeclare();r.source=s?n:this.util().iterable(n,!0).predeclare(),r.len=this.util().len(r.source,!0).predeclare(),r.value=e.declare(t.name,null,{type:"let"}),r.value.addReference(t.name),i&&o.addReference(i)}return this},me.prototype.consume=function(t){var e;if(this.isExpressable())return me.__super__.consume.apply(this,arguments);if(t instanceof Ce){this.scope().context().reference();var n=t.root().reference();t._loop=this,this.body().consume(t),t._loop=null;var r=new ot([new B(n)],[this]);return r.scope().wrap(this.scope()),rr(r,[n])}if(this._resvar){var i=new T([this,Tn,this._resvar.accessor()]);return i.consume(t),i}var s=null,o=!1,p=null;return t instanceof Yt&&(e=t.left())&&(p=e._variable,e._variable&&(o=!0)),o&&p?(p.resolve(),this.scope().vars().unshift(xn("=",p,new St([]))),s=this._resvar=p,t._consumer=this,t=null):s=this._resvar=this.scope().declare("res",new St([]),{system:!0}),this._catcher=new Zt("push",s,null),this.body().consume(this._catcher),t?i=new T([this,Tn,s.accessor().consume(t)]):this},me.prototype.js=function(t){var e,n=this.options().vars,r=n.index,i=n.value,o=xn("<",r,n.len),p=this.options().source,u=this.options().step?xn("=",r,xn("+",r,this.options().step)):xn("++",r);p instanceof Ae?p.inclusive()&&(o.setOp(e="<="),e):i.refcount()<3&&0==i.assignments().length?i.proxy(n.source,r):this.body().unshift(xn("=",i,xn(".",n.source,r)),Tn);var a=""+s(this.options().keyword)+"for ("+this.scope().vars().c()+"; "+o.c()+"; "+u.c()+") ";return a+this.body().c({braces:!0,indent:!0})},me.prototype.head=function(){var t=this.options().vars;return xn("=",t.value,xn(".",t.source,t.index))},e(ge,me),exports.ForIn=ge,e(xe,me),exports.ForOf=xe,xe.prototype.declare=function(){var t=this.options(),e=t.vars={},n=e.source=t.source._variable||this.scope().declare("o",t.source,{system:!0,type:"let"});if(t.index)var r=e.value=this.scope().declare(t.index,null,{let:!0});if(t.own)var i=(e.index=this.scope().declare("i",0,{system:!0,type:"let"}),e.keys=this.scope().declare("keys",Ze.keys(n.accessor()),{system:!0,type:"let"})),s=(e.len=this.scope().declare("l",Ze.len(i.accessor()),{system:!0,type:"let"}),e.key=this.scope().register(t.name,t.name,{type:"let"}));else s=e.key=this.scope().register(t.name,t.name,{type:"let"});return r&&t.index&&r.addReference(t.index),s&&t.name&&s.addReference(t.name),this},xe.prototype.js=function(t){var e=this.options().vars,t=e.source,n=e.key,r=e.value,i=e.index;if(r&&(r.refcount()<3?r.proxy(t,n):this.body().unshift(xn("=",r,xn(".",t,n)))),this.options().own){n.refcount()<3?n.proxy(e.keys,i):this.body().unshift(xn("=",n,xn(".",e.keys,i)));var o=""+s(this.options().keyword)+"for ("+this.scope().vars().c()+"; "+xn("<",i,e.len).c()+"; "+xn("++",i).c()+")";return o+this.body().c({indent:!0,braces:!0})}var p=this.body().c({braces:!0,indent:!0});return this.scope().vars().c()+(";\n"+s(this.options().keyword)+"for (var "+n.c()+" in "+t.c()+")")+p},xe.prototype.head=function(){var t=this.options().vars;return[xn("=",t.key,xn(".",t.keys,t.index)),t.value&&xn("=",t.value,xn(".",t.source,t.key))]},e(be,T),exports.Begin=be,be.prototype.shouldParenthesize=function(){return this.isExpression()},e(we,_e),exports.Switch=we,we.prototype.source=function(t){return this._source},we.prototype.setSource=function(t){return this._source=t,this},we.prototype.cases=function(t){return this._cases},we.prototype.setCases=function(t){return this._cases=t,this},we.prototype.fallback=function(t){return this._fallback},we.prototype.setFallback=function(t){return this._fallback=t,this},we.prototype.visit=function(){for(var t=0,e=n(this.cases()),r=e.length;r>t;t++)e[t].traverse();this.fallback()&&this.fallback().visit(),this.source()&&this.source().visit()},we.prototype.consume=function(t){return this._cases=this._cases.map(function(e){return e.consume(t);
17
- }),this._fallback&&(this._fallback=this._fallback.consume(t)),this},we.prototype.c=function(t){if(this.stack().isExpression()||this.isExpression()){var e=rr(nr([],[this]),[]);return e.c(t)}return we.__super__.c.call(this,t)},we.prototype.js=function(t){for(var e,r=[],i=0,s=n(this.cases()),o=s.length;o>i;i++)e=s[i],e.autobreak(),r.push(e);return this.fallback()&&r.push("default:\n"+this.fallback().c({indent:!0})),"switch ("+this.source().c()+") "+Kn.bracketize(a(r).join("\n"),!0)},e(ke,_e),exports.SwitchCase=ke,ke.prototype.test=function(t){return this._test},ke.prototype.setTest=function(t){return this._test=t,this},ke.prototype.body=function(t){return this._body},ke.prototype.setBody=function(t){return this._body=t,this},ke.prototype.visit=function(){return this.body().traverse()},ke.prototype.consume=function(t){return this.body().consume(t),this},ke.prototype.autobreak=function(){return this.body().last()instanceof L||this.body().push(new L),this},ke.prototype.js=function(t){this._test instanceof Array||(this._test=[this._test]);var e=this._test.map(function(t){return"case "+t.c()+":"});return e.join("\n")+this.body().c({indent:!0})},e(Se,_e),exports.Try=Se,Se.prototype.body=function(t){return this._body},Se.prototype.setBody=function(t){return this._body=t,this},Se.prototype.consume=function(t){return this._body=this._body.consume(t),this._catch&&(this._catch=this._catch.consume(t)),this._finally&&(this._finally=this._finally.consume(t)),this},Se.prototype.visit=function(){return this._body.traverse(),this._catch&&this._catch.traverse(),this._finally?this._finally.traverse():void 0},Se.prototype.js=function(t){var e="try "+this.body().c({braces:!0,indent:!0});return this._catch&&(e+=" "+this._catch.c()),this._finally&&(e+=" "+this._finally.c()),this._catch||this._finally||(e+=" catch (e) { }"),e+=";"},e(je,_e),exports.Catch=je,je.prototype.body=function(t){return this._body},je.prototype.setBody=function(t){return this._body=t,this},je.prototype.consume=function(t){return this._body=this._body.consume(t),this},je.prototype.visit=function(){return this._scope.visit(),this._variable=this._scope.register(this._varname,this,{pool:"catchvar"}),this._body.traverse()},je.prototype.js=function(t){return"catch ("+this._variable.c()+") "+this._body.c({braces:!0,indent:!0})},e(Ee,_e),exports.Finally=Ee,Ee.prototype.visit=function(){return this._body.traverse()},Ee.prototype.consume=function(t){return this},Ee.prototype.js=function(t){return"finally "+this._body.c({braces:!0,indent:!0})},e(Ae,Ct),exports.Range=Ae,Ae.prototype.inclusive=function(){return".."==this.op()},Ae.prototype.c=function(){return"range"},e(Oe,m),exports.Splat=Oe,Oe.prototype.js=function(t){var e=this.stack().parent();return e instanceof A||e instanceof St?"[].slice.call("+this.value().c()+")":(this.p("what is the parent? "+e),"SPLAT")},Oe.prototype.node=function(){return this.value()},TAG_TYPES={},TAG_ATTRS={},TAG_TYPES.HTML="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr".split(" "),TAG_TYPES.SVG="circle defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),TAG_ATTRS.HTML="accept accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay cellPadding cellSpacing charSet checked className cols colSpan content contentEditable contextMenu controls coords crossOrigin data dateTime defer dir disabled download draggable encType form formNoValidate frameBorder height hidden href hrefLang htmlFor httpEquiv icon id label lang list loop max maxLength mediaGroup method min multiple muted name noValidate pattern placeholder poster preload radioGroup readOnly rel required role rows rowSpan sandbox scope scrollLeft scrolling scrollTop seamless selected shape size span spellCheck src srcDoc srcSet start step style tabIndex target title type useMap value width wmode",TAG_ATTRS.SVG="cx cy d dx dy fill fillOpacity fontFamily fontSize fx fy gradientTransform gradientUnits markerEnd markerMid markerStart offset opacity patternContentUnits patternUnits points preserveAspectRatio r rx ry spreadMethod stopColor stopOpacity stroke strokeDasharray strokeLinecap strokeOpacity strokeWidth textAnchor transform version viewBox x1 x2 x y1 y2 y",e(Te,d),exports.TagDesc=Te,Te.prototype.classes=function(){return this.p("TagDescClasses",arguments),this},e(Pe,d),exports.Tag=Pe,Pe.prototype.parts=function(t){return this._parts},Pe.prototype.setParts=function(t){return this._parts=t,this},Pe.prototype.object=function(t){return this._object},Pe.prototype.setObject=function(t){return this._object=t,this},Pe.prototype.reactive=function(t){return this._reactive},Pe.prototype.setReactive=function(t){return this._reactive=t,this},Pe.prototype.parent=function(t){return this._parent},Pe.prototype.setParent=function(t){return this._parent=t,this},Pe.prototype.tree=function(t){return this._tree},Pe.prototype.setTree=function(t){return this._tree=t,this},Pe.prototype.set=function(t){for(var e,r=0,i=Object.keys(t),s=i.length;s>r;r++)if(k=i[r],e=t[k],"attributes"!=k)this._options[k]=e;else for(var o=0,p=n(e),u=p.length;u>o;o++)this.addAttribute(p[o]);return this},Pe.prototype.addClass=function(t){return t instanceof Re||(t=new Re(t)),this._options.classes.push(t),this._parts.push(t),this},Pe.prototype.addIndex=function(t){return this._parts.push(t),this._object=t,this},Pe.prototype.addSymbol=function(t){return 0==this._parts.length&&(this._parts.push(t),this._options.ns=t),this},Pe.prototype.addAttribute=function(t){return this._parts.push(t),this._options.attributes.push(t),this},Pe.prototype.enclosing=function(){return this._options.close&&this._options.close.value()},Pe.prototype.type=function(){return this._options.type||"div"},Pe.prototype.consume=function(t){this._options;return t instanceof Ce?(this.setParent(t.root()),t._loop?(this.setReactive(t.reactive()||this.option("key")),this.option("loop",t._loop),this.option("ivar")&&this.warn("Tag inside loop can not have a static reference "+this.option("ivar"),{type:"error",token:this.option("ivar").value()})):this.setReactive(t.reactive()||!!this.option("ivar")),this):Pe.__super__.consume.apply(this,arguments)},Pe.prototype.visit=function(){var t=this._options;(t.ivar||t.key)&&this.setReactive(!0);var e=this.enclosing();("->"==e||"=>"==e)&&(this._tree=new Ce(this,t.body,{root:this,reactive:this.reactive()}),t.body=new pt([],T.wrap([this._tree]))),t.key&&t.key.traverse(),t.body&&t.body.traverse(),t.id&&t.id.traverse();for(var r=0,i=n(this._parts),s=i.length;s>r;r++)i[r].traverse();return this},Pe.prototype.reference=function(){return this._reference||(this._reference=this.scope__().closure().temporary(this,{pool:"tag"}).resolve())},Pe.prototype.js=function(t){for(var e,r,t=this._options,i={},o=(this.enclosing(),[]),p=[],u=this.scope__(),a="end",h=t.body,c=this.type()instanceof Ot,l=c?"setChildren":"setContent",f=!0,_=0,y=n(t.attributes),v=y.length;v>_;_++)r=y[_],i[r.key()]=r.value();var m=function(t){return Kn.singlequote(t)},g=(t.id instanceof d?t.id.c():t.id&&m(t.id.c()),this._tree||null),x=this.parent(),b=c?(a="synced",this.setReactive(!0),this._reference=u.context(),u.context().c()):""+s(t.open)+u.tagContextPath()+"."+this.type().spawner()+"()";t.id&&p.push(".setId("+m(t.id)+")"),t.ivar&&(this.setReactive(!0),p.push(".setRef("+m(t.ivar.name())+","+u.context().c()+")")),t.body instanceof st?l="setTemplate":t.body&&(t.body instanceof A&&1==t.body.count()&&t.body.first().isString()?l="setText":(g=new Ce(this,t.body,{root:this,reactive:this.reactive()}),h=g,this.setTree(g))),g&&g.resolve();for(var w,_=0,y=n(this._parts),v=y.length;v>_;_++){w=y[_];var k,S=!1;if(w instanceof Ne){var j=String(w.key()),E=w.value();S=E.isPrimitive(),"."==j[0]?(S=!1,k=".flag("+m(j.substr(1))+","+E.c()+")"):k=":"==j[0]?".setHandler("+m(j.substr(1))+","+E.c()+","+u.context().c()+")":"data-"==j.substr(0,5)?".dataset('"+j.slice(5)+"',"+E.c()+")":"."+s(w.key())+Kn.setterSym(j)+"("+E.c()+")"}else w instanceof Re&&(k=w.c(),S=!0);k&&(f&&S?p.push(k):o.push(k))}if(this.object()&&o.push(".setObject("+this.object().c()+")"),this.reactive()&&g&&this.reference(),this.reactive()&&x&&x.tree()&&(t.treeRef=x.tree().nextCacheKey(this)),e=h&&h.c({expression:!0})){var O=0;g&&(g["static"]()?O=2:(this.reactive()||g.reactive())&&(O=!g.single()||g.single()instanceof ye?1:3)),"setChildren"==l||"setContent"==l?o.push("."+l+"("+e+","+O+")"):o.push("."+l+"("+e+")")}if(o.push("."+a+"()"),p.length&&(b+=p.join("")),(t.ivar||t.key||this.reactive())&&!(this.type()instanceof Ot)){var T,P,C=x&&x.tree();if(t.key)T=x&&x.reference(),P=xn("+",new mt("'_'"),t.key);else if(t.ivar)T=u.context(),P=t.ivar;else if(T=x&&x.reference(),P=t.treeRef||C&&C.nextCacheKey(),t.loop){var I=t.loop.option("vars").index;P=xn("+","'"+P+"'",I)}var $=xn(".",T,P).c();b=this._reference?"("+this.reference().c()+" = "+$+"="+$+" || "+b+")":"("+$+" = "+$+" || "+b+")"}return b+o.join("")},e(Ce,E),exports.TagTree=Ce,Ce.prototype.counter=function(t){return this._counter},Ce.prototype.setCounter=function(t){return this._counter=t,this},Ce.prototype.conditions=function(t){return this._conditions},Ce.prototype.setConditions=function(t){return this._conditions=t,this},Ce.prototype.blocks=function(t){return this._blocks},Ce.prototype.setBlocks=function(t){return this._blocks=t,this},Ce.prototype.cacher=function(t){return this._cacher},Ce.prototype.setCacher=function(t){return this._cacher=t,this},Ce.prototype.parent=function(){return this._parent||(this._parent=this._owner.parent())},Ce.prototype.nextCacheKey=function(){for(var t=(this._owner,++this._counter),e="A".charCodeAt(0),n="";;)if(t-=1,n=String.fromCharCode(e+t%26)+n,t=Math.floor(t/26),0>=t)break;return n=(this._owner.type()instanceof Ot?"$":"$$")+n.toLowerCase()},Ce.prototype.load=function(t){return t instanceof E?(this._indentation||(this._indentation=t._indentation),t.nodes()):c(t instanceof Array?t:[t])},Ce.prototype.root=function(){return this.option("root")},Ce.prototype.reactive=function(){return this.option("reactive")},Ce.prototype.resolve=function(){var t=this;return this.remap(function(e){return e.consume(t)}),t},Ce.prototype["static"]=function(){return null==this._static?this._static=this.every(function(t){return t instanceof Pe||t instanceof mt||t instanceof x}):this._static},Ce.prototype.single=function(){return null==this._single?this._single=1==this.realCount()?this.last():!1:this._single},Ce.prototype.hasTags=function(){return this.some(function(t){return t instanceof Pe})},Ce.prototype.c=function(t){var e=this.single();e&&Sn.current()instanceof $&&(this._indentation=null);var n=Ce.__super__.c.call(this,t);return!e||e instanceof ye?"["+n+"]":n},e(Ie,m),exports.TagWrapper=Ie,Ie.prototype.visit=function(){return this.value()instanceof Array?this.value().map(function(t){return t.traverse()}):this.value().traverse(),this},Ie.prototype.c=function(){return"tag$wrap("+this.value().c({expression:!0})+")"},e($e,E),exports.TagAttributes=$e,$e.prototype.get=function(t){for(var e,r=0,i=n(this.nodes()),s=i.length,o=[];s>r;r++)if(e=i[r],e.key()==t)return e;return o},e(Ne,d),exports.TagAttr=Ne,Ne.prototype.key=function(t){return this._key},Ne.prototype.setKey=function(t){return this._key=t,this},Ne.prototype.value=function(t){return this._value},Ne.prototype.setValue=function(t){return this._value=t,this},Ne.prototype.visit=function(){return this.value()&&this.value().traverse(),this},Ne.prototype.populate=function(t){return t.add(this.key(),this.value()),this},Ne.prototype.c=function(){return"attribute"},e(Re,d),exports.TagFlag=Re,Re.prototype.value=function(t){return this._value},Re.prototype.setValue=function(t){return this._value=t,this},Re.prototype.toggler=function(t){return this._toggler},Re.prototype.setToggler=function(t){return this._toggler=t,this},Re.prototype.visit=function(){return"string"==typeof this._value||this._value instanceof String||this._value.traverse(),this},Re.prototype.c=function(){return this.value()instanceof d?".flag("+this.value().c()+")":".flag("+Kn.singlequote(this.value())+")"},e(Ve,E),exports.Selector=Ve,Ve.prototype.add=function(t,e){return this.push(t),this},Ve.prototype.group=function(){return this._nodes.push(new Le(",")),this},Ve.prototype.query=function(){for(var t="",e=0,r=n(this.nodes()),i=r.length;i>e;e++){var s=r[e].c();("string"==typeof s||s instanceof String)&&(t=""+t+s)}return"'"+t+"'"},Ve.prototype.js=function(t){var e=this.option("type"),n=i(this.query());return"%"==e?"q$("+n+","+t.scope().context().c({explicit:!0})+")":"%%"==e?"q$$("+n+","+t.scope().context().c({explicit:!0})+")":"q"+e+"("+n+")"},e(ze,m),exports.SelectorPart=ze,ze.prototype.c=function(){return i(this._value)},e(Le,ze),exports.SelectorGroup=Le,Le.prototype.c=function(){return","},e(De,ze),exports.SelectorType=De,De.prototype.c=function(){var e=this.value().name();return t(e,TAG_TYPES.HTML)>=0?e:this.value().sel()},e(Fe,ze),exports.SelectorUniversal=Fe,e(Be,ze),exports.SelectorNamespace=Be,e(Me,ze),exports.SelectorClass=Me,Me.prototype.c=function(){return this._value instanceof d?".'+"+this._value.c()+"+'":"."+i(this._value)},e(Ge,ze),exports.SelectorId=Ge,Ge.prototype.c=function(){return this._value instanceof d?"#'+"+this._value.c()+"+'":"#"+i(this._value)},e(Ue,ze),exports.SelectorCombinator=Ue,Ue.prototype.c=function(){return""+i(this._value)},e(qe,ze),exports.SelectorPseudoClass=qe,e(Je,ze),exports.SelectorAttribute=Je,Je.prototype.c=function(){return this._right instanceof mt?"["+this._left.c()+this._op+this._right.c()+"]":this._right?"["+this._left.c()+this._op+"\"'+"+i(this._right)+"+'\"]":"["+this._left.c()+"]"},e(Ke,m),exports.Await=Ke,Ke.prototype.func=function(t){return this._func},Ke.prototype.setFunc=function(t){return this._func=t,this},Ke.prototype.js=function(t){return rr(xn(".",new Ze.Promisify([this.value()]),"then"),[this.func()]).c()},Ke.prototype.visit=function(t){var e=this;e.value().traverse();var n=t.up(T),r=t.relative(n,1),i=t.relative(e,-1);if(e.setFunc(new He([],[])),e.func().body().setNodes(n.defers(r,e)),i instanceof Yt){i.left().traverse();var s=i.left().node();s instanceof Wt?e.func().params().at(0,!0,s.variable().name()):s instanceof bt?"var"!=i.type()||s.hasSplat()?(i.setRight(zn),e.func().body().unshift(i)):s.map(function(t,n){return e.func().params().at(n,!0,t.value())}):(i.setRight(e.func().params().at(0,!0)),e.func().body().unshift(i))}return e.func().traverse(),e},e(He,st),exports.AsyncFunc=He,He.prototype.scopetype=function(){return pn},e(We,g),exports.ImportStatement=We,We.prototype.ns=function(t){return this._ns},We.prototype.setNs=function(t){return this._ns=t,this},We.prototype.imports=function(t){return this._imports},We.prototype.setImports=function(t){return this._imports=t,this},We.prototype.source=function(t){return this._source},We.prototype.setSource=function(t){return this._source=t,this},We.prototype.visit=function(){if(this._ns)this._nsvar||(this._nsvar=this.scope__().register(this._ns,this));else{var t=this.source().c(),e=t.match(/(\w+)(\.js|imba)?[\"\']$/);this._alias=e?e[1]+"$":"mod$"}if(this._imports){var r=this._declarations=new Z([]);if(1==this._imports.length)return this._alias=this._imports[0],r.add(this._alias,xn(".",rr(new ne("require"),[this.source()]),this._alias)),r.traverse(),this;if(this._moduledecl=r.add(this._alias,rr(new ne("require"),[this.source()])),this._moduledecl.traverse(),this._imports.length>1)for(var i,s=0,o=n(this._imports),p=o.length;p>s;s++)i=o[s],this._declarations.add(i,xn(".",this._moduledecl.variable(),i));r.traverse()}return this},We.prototype.js=function(t){var e;if(this._declarations)return this._declarations.c();var r=rr(new ne("require"),[this.source()]);if(this._ns)return"var "+this._nsvar.c()+" = "+r.c();if(this._imports){var i=this.source().c(),s=[];new P([]);(e=i.match(/(\w+)(\.js|imba)?[\"\']$/))&&s.push(e[1]);for(var o,p=[r.cache({names:s}).c()],u=0,a=n(this._imports),h=a.length;h>u;u++){o=a[u];var t=xn("=",o,xn(".",r,o));p.push("var "+t.c())}return p}return r.c()},We.prototype.consume=function(t){return this},e(Ye,m),exports.ExportStatement=Ye,Ye.prototype.js=function(t){var e=this._value.map(function(t){return"module.exports."+t.c()+" = "+t.c()});return e.length>1&&this.up()instanceof $?"["+e.join(",")+"]":e.join(";\n")+";"},e(Ze,d),exports.Util=Ze,Ze.prototype.args=function(t){return this._args},Ze.prototype.setArgs=function(t){return this._args=t,this},Ze.extend=function(t,e){return new Ze.Extend([t,e])},Ze.callImba=function(t,e){return rr(xn(".",new se("Imba"),new ne(t)),e)},Ze.repeat=function(t,e){for(var n="";e>0;)e%2==1&&(n+=t),t+=t,e>>=1;return n},Ze.keys=function(t){var e=new se("Object"),n=new ne("keys");return rr(xn(".",e,n),[t])},Ze.len=function(t,e){var n=new ne("length"),r=xn(".",t,n);return e&&r.cache({force:!0,pool:"len"}),r},Ze.indexOf=function(t,e){var n=new Ze.IndexOf([t,e]);return n},Ze.slice=function(t,e,n){var r=new ne("slice");return console.log("slice "+e+" "+n),rr(xn(".",t,r),c([e,n]))},Ze.iterable=function(t,e){var n=new Ze.Iterable([t]);return e&&n.cache({force:!0,pool:"iter"}),n},Ze.union=function(t,e){return new Ze.Union([t,e])},Ze.intersect=function(t,e){return new Ze.Intersect([t,e])},Ze.counter=function(t,e){var n=new dt(t);return e&&n.cache({force:!0,pool:"counter"}),n},Ze.array=function(t,e){var n=new Ze.Array([t]);return e&&n.cache({force:!0,pool:"list"}),n},Ze.defineTag=function(t,e,n){return rr(qn,[t,e,n])},Ze.defineClass=function(t,e,n){return rr(Un,[t||n,this.sup()])},Ze.prototype.isStandalone=function(){return Qn.standalone!==!1},Ze.prototype.js=function(t){return"helper"},Ze.Union=function(){return Ze.apply(this,arguments)},e(Ze.Union,Ze),Ze.Union.prototype.helper=function(){return"function union$(a,b){\n if(a && a.__union) return a.__union(b);\n\n var u = a.slice(0);\n for(var i=0,l=b.length;i<l;i++) if(u.indexOf(b[i]) == -1) u.push(b[i]);\n return u;\n};\n"},Ze.Union.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"union$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Intersect=function(){return Ze.apply(this,arguments)},e(Ze.Intersect,Ze),Ze.Intersect.prototype.helper=function(){return"function intersect$(a,b){\n if(a && a.__intersect) return a.__intersect(b);\n var res = [];\n for(var i=0, l=a.length; i<l; i++) {\n var v = a[i];\n if(b.indexOf(v) != -1) res.push(v);\n }\n return res;\n};\n"},Ze.Intersect.prototype.js=function(t){return this.scope__().root().helper(this,this.helper()),"intersect$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Extend=function(){return Ze.apply(this,arguments)},e(Ze.Extend,Ze),Ze.Extend.prototype.js=function(t){return"extend$("+c(a(this.args())).join(",")+")"},Ze.IndexOf=function(){return Ze.apply(this,arguments)},e(Ze.IndexOf,Ze),Ze.IndexOf.prototype.helper=function(){return"function idx$(a,b){\n return (b && b.indexOf) ? b.indexOf(a) : [].indexOf.call(a,b);\n};\n"},Ze.IndexOf.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"idx$("+this.args().map(function(t){return t.c()}).join(",")+")"):"Imba.indexOf("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Subclass=function(){return Ze.apply(this,arguments)},e(Ze.Subclass,Ze),Ze.Subclass.prototype.helper=function(){return"// helper for subclassing\nfunction subclass$(obj,sup) {\n for (var k in sup) {\n if (sup.hasOwnProperty(k)) obj[k] = sup[k];\n };\n // obj.__super__ = sup;\n obj.prototype = Object.create(sup.prototype);\n obj.__super__ = obj.prototype.__super__ = sup.prototype;\n obj.prototype.initialize = obj.prototype.constructor = obj;\n};\n"},Ze.Subclass.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"subclass$("+this.args().map(function(t){return t.c()}).join(",")+");\n"):"Imba.subclass("+this.args().map(function(t){return t.c()}).join(",")+");\n"},Ze.Promisify=function(){return Ze.apply(this,arguments)},e(Ze.Promisify,Ze),Ze.Promisify.prototype.helper=function(){return"function promise$(a){ return a instanceof Array ? Promise.all(a) : (a && a.then ? a : Promise.resolve(a)); }"},Ze.Promisify.prototype.js=function(t){return this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"promise$("+this.args().map(function(t){return t.c()}).join(",")+")"):"Imba.await("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Class=function(){return Ze.apply(this,arguments)},e(Ze.Class,Ze),Ze.Class.prototype.js=function(t){return"class$("+this.args().map(function(t){return t.c()}).join(",")+")"},Ze.Iterable=function(){return Ze.apply(this,arguments)},e(Ze.Iterable,Ze),Ze.Iterable.prototype.helper=function(){return"function iter$(a){ return a ? (a.toArray ? a.toArray() : a) : []; };"},Ze.Iterable.prototype.js=function(t){return this.args()[0]instanceof St?this.args()[0].c():this.isStandalone()?(this.scope__().root().helper(this,this.helper()),"iter$("+this.args()[0].c()+")"):"Imba.iterable("+this.args()[0].c()+")"},Ze.IsFunction=function(){return Ze.apply(this,arguments)},e(Ze.IsFunction,Ze),Ze.IsFunction.prototype.js=function(t){return""+this.args()[0].c()},Ze.Array=function(){return Ze.apply(this,arguments)},e(Ze.Array,Ze),Ze.Array.prototype.js=function(t){return"new Array("+this.args().map(function(t){return t.c()})+")"},Xe.prototype.add=function(t,e){return this._map[t]=e,this},Xe.prototype.register=function(t){var e,n=t.namepath();return this._map[e=n]||(this._map[e]=t),this},Xe.prototype.plain=function(){return JSON.parse(JSON.stringify(this._map))},Xe.prototype.toJSON=function(){return this._map},exports.Scope=Qe,Qe.prototype.level=function(t){return this._level},Qe.prototype.setLevel=function(t){return this._level=t,this},Qe.prototype.context=function(t){return this._context},Qe.prototype.setContext=function(t){return this._context=t,this},Qe.prototype.node=function(t){return this._node},Qe.prototype.setNode=function(t){return this._node=t,this},Qe.prototype.parent=function(t){return this._parent},Qe.prototype.setParent=function(t){return this._parent=t,this},Qe.prototype.varmap=function(t){return this._varmap},Qe.prototype.setVarmap=function(t){return this._varmap=t,this},Qe.prototype.varpool=function(t){return this._varpool},Qe.prototype.setVarpool=function(t){return this._varpool=t,this},Qe.prototype.params=function(t){return this._params},Qe.prototype.setParams=function(t){return this._params=t,this},Qe.prototype.head=function(t){return this._head},Qe.prototype.setHead=function(t){return this._head=t,this},Qe.prototype.vars=function(t){return this._vars},Qe.prototype.setVars=function(t){return this._vars=t,this},Qe.prototype.counter=function(t){return this._counter},Qe.prototype.setCounter=function(t){return this._counter=t,this},Qe.prototype.p=function(){return Sn.loglevel()>0&&console.log.apply(console,arguments),this},Qe.prototype.stack=function(){return Sn},Qe.prototype.meta=function(t,e){return void 0!=e?(this._meta[t]=e,this):this._meta[t]},Qe.prototype.namepath=function(){return"?"},Qe.prototype.tagContextPath=function(){return this._tagContextPath||(this._tagContextPath="tag$")},Qe.prototype.context=function(){return this._context||(this._context=new vn(this))},Qe.prototype.traverse=function(){return this},Qe.prototype.visit=function(){return this._parent?this:(this._parent=Sn.scope(1),this._level=Sn.scopes().length-1,Sn.addScope(this),this.root().scopes().push(this),this)},Qe.prototype.wrap=function(t){return this._parent=t._parent,t._parent=this,this},Qe.prototype.virtualize=function(){return this},Qe.prototype.root=function(){for(var t=this;t;){if(t instanceof tn)return t;t=t.parent()}return null},Qe.prototype.register=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n={}),t=Kn.symbolize(t);var r=this._varmap.hasOwnProperty(t)&&this._varmap[t];if(r)return r;var i=new _n(this,t,e,n);return n.system||(this._varmap[t]=i),i},Qe.prototype.annotate=function(t){return this._annotations.push(t),this},Qe.prototype.declare=function(t,e,n){var r;void 0===e&&(e=null),void 0===n&&(n={});var i=this.register(t,null,n),s=this._vars.add(i,e);return(r=i.declarator())||(i.setDeclarator(s),s),i},Qe.prototype.temporary=function(t,e,r){if(void 0===e&&(e={}),void 0===r&&(r=null),e.pool)for(var i,s=0,o=n(this._varpool),p=o.length;p>s;s++)if(i=o[s],i.pool()==e.pool&&null==i.declarator())return i.reuse(t);var u=new yn(this,r,t,e);return this._varpool.push(u),this._vars.push(u),u},Qe.prototype.lookup=function(t){var e=null;return t=Kn.symbolize(t),e=this._varmap.hasOwnProperty(t)?this._varmap[t]:this.parent()&&this.parent().lookup(t)},Qe.prototype.autodeclare=function(t){return this.vars().push(t)},Qe.prototype.free=function(t){return t.free(),this},Qe.prototype.isClosed=function(){return!1},Qe.prototype.closure=function(){return this._closure},Qe.prototype.finalize=function(){return this},Qe.prototype.klass=function(){for(var t=this;t;)if(t=t.parent(),t instanceof en)return t;return null},Qe.prototype.head=function(){return[this._vars,this._params]},Qe.prototype.c=function(t){var e;return void 0===t&&(t={}),t.expression=!1,this.node().body().setHead(this.head()),e=this.node().body().c(t)},Qe.prototype.region=function(){return this.node().body().region()},Qe.prototype.loc=function(){return this.node().loc()},Qe.prototype.dump=function(){var t=this,e=Object.keys(this._varmap).map(function(e){var n=t._varmap[e];return n.references().length?h(n):null}),n={nr:t._nr,type:t.constructor.name,level:t.level()||0,vars:c(e),loc:t.loc()};return n},Qe.prototype.toJSON=function(){return this.dump()},Qe.prototype.toString=function(){return""+this.constructor.name},e(tn,Qe),exports.RootScope=tn,tn.prototype.warnings=function(t){return this._warnings},tn.prototype.setWarnings=function(t){return this._warnings=t,this},tn.prototype.scopes=function(t){return this._scopes},tn.prototype.setScopes=function(t){return this._scopes=t,this},tn.prototype.entities=function(t){return this._entities},tn.prototype.setEntities=function(t){return this._entities=t,this},tn.prototype.context=function(){return this._context||(this._context=new dn(this))},tn.prototype.tagContextPath=function(){return this._tagContextPath||(this._tagContextPath="tag$")},tn.prototype.lookup=function(t){return t=Kn.symbolize(t),this._varmap.hasOwnProperty(t)?this._varmap[t]:void 0},tn.prototype.visit=function(){return Sn.addScope(this),this},tn.prototype.helper=function(t,e){return-1==this._helpers.indexOf(e)&&(this._helpers.push(e),this._head.unshift(e)),this},tn.prototype.head=function(){return this._head},tn.prototype.warn=function(t){return t.node=null,this._warnings.push(t),this},tn.prototype.dump=function(){var t={warnings:h(this._warnings)};if(Qn.analysis.scopes){var e=this._scopes.map(function(t){return t.dump()});e.unshift(tn.__super__.dump.call(this)),t.scopes=e}return Qn.analysis.entities&&(t.entities=this._entities),t},e(en,Qe),exports.ClassScope=en,en.prototype.namepath=function(){return this._node.namepath()},en.prototype.virtualize=function(){for(var t=this.parent(),e=this._varmap,n=0,r=Object.keys(e),i=r.length;i>n;n++)e[r[n]].resolve(t,!0);return this},en.prototype.isClosed=function(){return!0},e(nn,en),exports.TagScope=nn,e(rn,Qe),exports.ClosureScope=rn,e(sn,Qe),exports.FunctionScope=sn,e(on,Qe),exports.MethodScope=on,on.prototype.isClosed=function(){return!0},e(pn,Qe),exports.LambdaScope=pn,pn.prototype.context=function(){return this._context||(this._context=this.parent().context().reference(this))},e(un,Qe),exports.FlowScope=un,un.prototype.params=function(){return this._parent?this._parent.params():void 0},un.prototype.register=function(t,e,n){var r;return void 0===e&&(e=null),void 0===n&&(n={}),"let"!=n.type&&this.closure()!=this?((r=this.lookup(t))&&"let"==r.type()&&(this.p(""+t+" already exists as a block-variable "+e),e&&e.warn("Variable already exists in block")),this.closure().register(t,e,n)):un.__super__.register.call(this,t,e,n)},un.prototype.autodeclare=function(t){return this.parent().autodeclare(t)},un.prototype.closure=function(){return this._parent.closure()},un.prototype.context=function(){return this.parent().context()},e(an,un),exports.CatchScope=an,e(hn,un),exports.WhileScope=hn,hn.prototype.autodeclare=function(t){return this.vars().push(t)},e(cn,un),exports.ForScope=cn,cn.prototype.autodeclare=function(t){return this.vars().push(t)},e(ln,un),exports.IfScope=ln,ln.prototype.temporary=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),this.parent().temporary(t,e,n)},e(fn,un),exports.BlockScope=fn,fn.prototype.temporary=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n=null),this.parent().temporary(t,e,n)},fn.prototype.region=function(){return this.node().region()},e(_n,d),exports.Variable=_n,_n.prototype.scope=function(t){return this._scope},_n.prototype.setScope=function(t){return this._scope=t,this},_n.prototype.name=function(t){return this._name},_n.prototype.setName=function(t){return this._name=t,this},_n.prototype.alias=function(t){return this._alias},_n.prototype.setAlias=function(t){return this._alias=t,this},_n.prototype.type=function(t){return this._type},_n.prototype.setType=function(t){return this._type=t,this},_n.prototype.options=function(t){return this._options},_n.prototype.setOptions=function(t){return this._options=t,this},_n.prototype.initialized=function(t){return this._initialized},_n.prototype.setInitialized=function(t){return this._initialized=t,this},_n.prototype.declared=function(t){return this._declared},_n.prototype.setDeclared=function(t){return this._declared=t,this},_n.prototype.declarator=function(t){return this._declarator},_n.prototype.setDeclarator=function(t){return this._declarator=t,this},_n.prototype.autodeclare=function(t){return this._autodeclare},_n.prototype.setAutodeclare=function(t){return this._autodeclare=t,this},_n.prototype.references=function(t){return this._references},_n.prototype.setReferences=function(t){return this._references=t,this},_n.prototype["export"]=function(t){return this._export},_n.prototype.setExport=function(t){return this._export=t,this},_n.prototype.pool=function(){return null},_n.prototype.closure=function(){return this._scope.closure()},_n.prototype.assignments=function(){return this._assignments},_n.prototype.assigned=function(t,e){return this._assignments.push(t),t instanceof St?this._isArray=!0:this._isArray=!1,this},_n.prototype.resolve=function(t,e){if(void 0===t&&(t=this.scope()),void 0===e&&(e=!1),this._resolved&&!e)return this;this._resolved=!0;var n=this._scope.closure(),r=t.lookup(this._name);if(this._scope!=n&&"let"==this._type&&(r=n.lookup(this._name),t=n),r==this)return t.varmap()[this._name]=this,this;if(r)if(r.scope()==t||!this.options().let&&"let"!=this._type||(t.varmap()[this._name]=this),this._options.proxy);else for(var i=0,s=this._name;t.lookup(this._name);)this._name=""+s+(i+=1);return t.varmap()[this._name]=this,n.varmap()[this._name]=this,this},_n.prototype.reference=function(){return this},_n.prototype.node=function(){return this},_n.prototype.traverse=function(){return this},_n.prototype.free=function(t){return this._declarator=null,this},_n.prototype.reuse=function(t){return this._declarator=t,this},_n.prototype.proxy=function(t,e){return this._proxy=[t,e],this},_n.prototype.refcount=function(){return this._references.length},_n.prototype.c=function(){if(this._c)return this._c;if(this._proxy)this._c=this._proxy[0].c()+"["+this._proxy[1].c()+"]";else{this._resolved||this.resolve();var t=this.alias()||this.name();
18
- this._c="string"==typeof t?t:t.c(),Bn.test(this._c)&&(this._c=""+this.c()+"$")}return this._c},_n.prototype.consume=function(t){return this},_n.prototype.accessor=function(t){var e=new Ft(".",null,this);return e},_n.prototype.assignment=function(t){return new Yt("=",this,t)},_n.prototype.addReference=function(t){return t instanceof ne&&t.references(this),t.region&&t.region()&&this._references.push(t),this},_n.prototype.autodeclare=function(){return this._declared?this:(this._autodeclare=!0,this.scope().autodeclare(this),this._declared=!0,this)},_n.prototype.predeclared=function(){return this._declared=!0,this},_n.prototype.toString=function(){return String(this.name())},_n.prototype.dump=function(t){var e=this.name();return e[0].match(/[A-Z]/)?null:{type:this.type(),name:e,refs:h(this._references,t)}},e(yn,_n),exports.SystemVariable=yn,yn.prototype.pool=function(){return this._options.pool},yn.prototype.predeclared=function(){return this.scope().vars().remove(this),this},yn.prototype.resolve=function(){var t,e;if(this._resolved||this._name)return this;this._resolved=!0;var n=this._options.pool,r=[].concat(this._options.names),i=null,s=null,o=this.scope();if("tag"==n)for(var p=0;!this._name;)i="t"+p++,o.lookup(i)||(this._name=i);else"iter"==n?r=["ary__","ary_","coll","array","items","ary"]:"val"==n?r=["v_"]:"arguments"==n?r=["$_","$0"]:"keypars"==n?r=["opts","options","pars"]:"counter"==n?r=["i__","i_","k","j","i"]:"len"==n?r=["len__","len_","len"]:"list"==n&&(r=["tmplist_","tmplist","tmp"]);for(;!this._name&&(i=r.pop());)o.lookup(i)||(this._name=i);for(!this._name&&this._declarator&&(s=this.declarator().node())&&(t=s.alias())&&r.push(t+"_");!this._name&&(i=r.pop());)o.lookup(i)||(this._name=i);return this._name||(this._name="$"+(o.setCounter(e=o.counter()+1),e)),o.varmap()[this._name]=this,this},yn.prototype.name=function(){return this.resolve(),this._name},e(vn,d),exports.ScopeContext=vn,vn.prototype.scope=function(t){return this._scope},vn.prototype.setScope=function(t){return this._scope=t,this},vn.prototype.value=function(t){return this._value},vn.prototype.setValue=function(t){return this._value=t,this},vn.prototype.namepath=function(){return this._scope.namepath()},vn.prototype.reference=function(){return this._reference||(this._reference=this.scope().declare("self",new Pt))},vn.prototype.c=function(){var t=this._value||this._reference;return t?t.c():"this"},vn.prototype.cache=function(){return this},e(dn,vn),exports.RootScopeContext=dn,dn.prototype.c=function(t){var e=this._value||this._reference;return e&&e!=this?e.c():"this"},e(mn,d),exports.Super=mn,mn.prototype.c=function(){var t=Sn.method(),e=null,n=Sn.current();return e=""+t.target().c()+".__super__",n instanceof Dt||(e+="."+i(t.supername()),n instanceof ue||(e+=".apply("+t.scope().context().c()+",arguments)")),e},module.exports.BR=Tn=new S("\n"),module.exports.BR2=Pn=new S("\n\n"),module.exports.SELF=Cn=new Ot,module.exports.SUPER=In=new mn,module.exports.TRUE=$n=new yt("true"),module.exports.FALSE=Nn=new vt("false"),module.exports.UNDEFINED=Rn=new ft,module.exports.NIL=Vn=new _t,module.exports.ARGUMENTS=zn=new At("arguments"),module.exports.EMPTY=Ln="",module.exports.NULL=Dn="null",module.exports.RESERVED=Fn=["default","native","enum","with"],module.exports.RESERVED_REGEX=Bn=/^(default|native|enum|with|new|char)$/,module.exports.UNION=Mn=new se("union$"),module.exports.INTERSECT=Gn=new se("intersect$"),module.exports.CLASSDEF=Un=new se("imba$class"),module.exports.TAGDEF=qn=new se("Imba.TAGS.define"),module.exports.NEWTAG=Jn=new ne("tag$")}();
19
- },{"./errors":3,"./helpers":4,"./sourcemap":9,"./token":10}],7:[function(require,module,exports){
20
- (function (process){
21
- var parser=function(){function e(){this.yy={}}var a=function(e,a,r,s){for(r=r||{},s=e.length;s--;r[e[s]]=a);return r},r=[1,4],s=[1,6],c=[1,32],n=[1,33],t=[1,34],o=[1,35],b=[1,75],k=[1,115],l=[1,128],$=[1,121],i=[1,122],T=[1,123],w=[1,120],d=[1,124],E=[1,131],A=[1,114],S=[1,132],R=[1,80],O=[1,81],u=[1,82],p=[1,83],I=[1,84],L=[1,85],N=[1,86],y=[1,73],g=[1,118],C=[1,95],_=[1,91],D=[1,88],h=[1,71],P=[1,65],f=[1,66],m=[1,111],F=[1,90],B=[1,87],M=[1,28],G=[1,29],U=[1,96],v=[1,94],x=[1,112],V=[1,113],W=[1,126],H=[1,67],Y=[1,68],j=[1,119],X=[1,11],K=[1,127],q=[1,78],J=[1,37],Q=[1,43],z=[1,110],Z=[1,69],ee=[1,89],ae=[1,125],re=[1,59],se=[1,74],ce=[1,105],ne=[1,106],te=[1,107],oe=[1,129],be=[1,130],ke=[1,63],le=[1,104],$e=[1,51],ie=[1,52],Te=[1,53],we=[1,54],de=[1,55],Ee=[1,56],Ae=[1,134],Se=[1,6,11,137],Re=[1,136],Oe=[1,6,11,14,137],ue=[1,144],pe=[1,145],Ie=[1,147],Le=[1,148],Ne=[1,141],ye=[1,140],ge=[1,142],Ce=[1,143],_e=[1,146],De=[1,151],he=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Pe=[2,263],fe=[1,158],me=[1,164],Fe=[1,162],Be=[1,160],Me=[1,161],Ge=[1,165],Ue=[1,163],ve=[1,6,10,11,14,22,90,97,137],xe=[1,6,11,14,137,212,214,219,220,238],Ve=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],We=[2,231],He=[1,178],Ye=[1,176],je=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Xe=[2,227],Ke=[6,14,53,54,88,91,106,111,113,116],qe=[1,212],Je=[1,217],Qe=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],ze=[1,227],Ze=[1,224],ea=[1,229],aa=[6,10,14,90],ra=[2,244],sa=[1,257],ca=[1,247],na=[1,276],ta=[1,277],oa=[51,89],ba=[85,86,87,88,91,92,93,94,95,96,100,102],ka=[1,289],la=[1,6,10,11,14,21,22,53,54,71,88,89,90,91,97,106,111,112,113,116,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],$a=[1,295],ia=[51,89,96,225],Ta=[1,6,10,11,14,21,22,67,69,70,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],wa=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,207,208,212,213,214,219,220,229,232,234,237,238,239,242,243,246,247,248],da=[51,53,54,58],Ea=[1,326],Aa=[1,327],Sa=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,229,238],Ra=[1,340],Oa=[1,344],ua=[1,6,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],pa=[6,14,106],Ia=[1,354],La=[1,6,10,11,14,21,22,71,89,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Na=[14,28],ya=[1,6,11,14,28,137,212,214,219,220,238],ga=[2,284],Ca=[1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,244,245,246,247,248,249],_a=[2,184],Da=[1,369],ha=[6,10,11,14,22,97],Pa=[14,147],fa=[2,186],ma=[1,379],Fa=[1,380],Ba=[1,381],Ma=[1,385],Ga=[6,10,11,14,90],Ua=[6,10,11,14,90,135],va=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,220,229,238],xa=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,213,220,229,238],Va=[227,228],Wa=[14,227,228],Ha=[1,6,11,14,22,71,90,97,106,112,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],Ya=[88,91],ja=[1,406],Xa=[1,407],Ka=[21,88,91,164,165],qa=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,242,243,247,248],Ja=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,213,229],Qa=[19,20,23,24,26,32,51,53,54,56,58,60,62,64,66,73,74,75,76,77,78,79,80,83,89,91,96,103,112,122,123,124,130,136,143,144,151,152,154,156,157,158,175,184,185,188,193,194,197,198,204,210,212,214,216,219,220,230,236,240,241,242,243,244,245],za=[1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,232,237,238,239,242,243,246,247,248],Za=[11,232,234],er=[1,453],ar=[2,185],rr=[6,10,11],sr=[1,461],cr=[14,22,147],nr=[1,469],tr=[1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,214,219,220,229,238],or=[51,58,89],br=[14,22],kr=[1,492],lr=[10,14],$r=[1,542],ir=[6,10],Tr={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Block:5,TERMINATOR:6,BODYSTART:7,Line:8,Terminator:9,INDENT:10,OUTDENT:11,Splat:12,Expression:13,",":14,Comment:15,Statement:16,Return:17,Throw:18,STATEMENT:19,BREAK:20,CALL_START:21,CALL_END:22,CONTINUE:23,DEBUGGER:24,ImportStatement:25,IMPORT:26,ImportArgList:27,FROM:28,ImportFrom:29,AS:30,ImportArg:31,STRING:32,VarIdentifier:33,Await:34,Value:35,Code:36,Operation:37,Assign:38,If:39,Ternary:40,Try:41,While:42,For:43,Switch:44,Class:45,Module:46,TagDeclaration:47,Tag:48,Property:49,Identifier:50,IDENTIFIER:51,Ivar:52,IVAR:53,CVAR:54,Gvar:55,GVAR:56,Const:57,CONST:58,Argvar:59,ARGVAR:60,Symbol:61,SYMBOL:62,AlphaNumeric:63,NUMBER:64,InterpolatedString:65,STRING_START:66,NEOSTRING:67,Interpolation:68,STRING_END:69,"{{":70,"}}":71,Literal:72,JS:73,REGEX:74,BOOL:75,TRUE:76,FALSE:77,NULL:78,UNDEFINED:79,RETURN:80,Arguments:81,TagSelector:82,SELECTOR_START:83,TagSelectorType:84,SELECTOR_NS:85,SELECTOR_ID:86,SELECTOR_CLASS:87,".":88,"{":89,"}":90,"#":91,SELECTOR_COMBINATOR:92,SELECTOR_PSEUDO_CLASS:93,SELECTOR_GROUP:94,UNIVERSAL_SELECTOR:95,"[":96,"]":97,SELECTOR_ATTR_OP:98,TagSelectorAttrValue:99,SELECTOR_TAG:100,Selector:101,SELECTOR_END:102,TAG_START:103,TagOptions:104,TagAttributes:105,TAG_END:106,TagBody:107,TagTypeName:108,Self:109,TAG_TYPE:110,INDEX_START:111,INDEX_END:112,"@":113,TagAttr:114,OptComma:115,TAG_ATTR:116,"=":117,TagAttrValue:118,ArgList:119,TagTypeDef:120,TagDeclarationBlock:121,EXTEND:122,LOCAL:123,TAG:124,TagType:125,COMPARE:126,TagDeclKeywords:127,TAG_ID:128,TagId:129,IDREF:130,Assignable:131,Outdent:132,AssignObj:133,ObjAssignable:134,":":135,"(":136,")":137,HERECOMMENT:138,COMMENT:139,Method:140,Do:141,Begin:142,BEGIN:143,DO:144,BLOCK_PARAM_START:145,ParamList:146,BLOCK_PARAM_END:147,PropType:148,PropertyIdentifier:149,Object:150,PROP:151,ATTR:152,TupleAssign:153,VAR:154,MethodDeclaration:155,GLOBAL:156,EXPORT:157,DEF:158,MethodScope:159,MethodScopeType:160,MethodIdentifier:161,MethodBody:162,MethodReceiver:163,DEF_BODY:164,DEF_EMPTY:165,This:166,Param:167,Array:168,ParamVar:169,SPLAT:170,LOGIC:171,BLOCK_ARG:172,VarReference:173,VarAssignable:174,LET:175,SimpleAssignable:176,NEW:177,Super:178,SoakableOp:179,"?:":180,".:":181,IndexValue:182,"?.":183,SUPER:184,AWAIT:185,Parenthetical:186,Range:187,ARGUMENTS:188,Invocation:189,Slice:190,AssignList:191,ClassStart:192,CLASS:193,MODULE:194,OptFuncExist:195,FUNC_EXIST:196,THIS:197,SELF:198,RangeDots:199,"..":200,"...":201,Arg:202,SimpleArgs:203,TRY:204,Catch:205,Finally:206,FINALLY:207,CATCH:208,CATCH_VAR:209,THROW:210,WhileSource:211,WHILE:212,WHEN:213,UNTIL:214,Loop:215,LOOP:216,ForBody:217,ForKeyword:218,FOR:219,POST_FOR:220,ForBlock:221,ForStart:222,ForSource:223,ForVariables:224,OWN:225,ForValue:226,FORIN:227,FOROF:228,BY:229,SWITCH:230,Whens:231,ELSE:232,When:233,LEADING_WHEN:234,IfBlock:235,IF:236,ELIF:237,POST_IF:238,"?":239,UNARY:240,SQRT:241,"-":242,"+":243,"--":244,"++":245,MATH:246,SHIFT:247,RELATION:248,COMPOUND_ASSIGN:249,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",7:"BODYSTART",10:"INDENT",11:"OUTDENT",14:",",19:"STATEMENT",20:"BREAK",21:"CALL_START",22:"CALL_END",23:"CONTINUE",24:"DEBUGGER",26:"IMPORT",28:"FROM",30:"AS",32:"STRING",51:"IDENTIFIER",53:"IVAR",54:"CVAR",56:"GVAR",58:"CONST",60:"ARGVAR",62:"SYMBOL",64:"NUMBER",66:"STRING_START",67:"NEOSTRING",69:"STRING_END",70:"{{",71:"}}",73:"JS",74:"REGEX",75:"BOOL",76:"TRUE",77:"FALSE",78:"NULL",79:"UNDEFINED",80:"RETURN",83:"SELECTOR_START",85:"SELECTOR_NS",86:"SELECTOR_ID",87:"SELECTOR_CLASS",88:".",89:"{",90:"}",91:"#",92:"SELECTOR_COMBINATOR",93:"SELECTOR_PSEUDO_CLASS",94:"SELECTOR_GROUP",95:"UNIVERSAL_SELECTOR",96:"[",97:"]",98:"SELECTOR_ATTR_OP",100:"SELECTOR_TAG",102:"SELECTOR_END",103:"TAG_START",106:"TAG_END",110:"TAG_TYPE",111:"INDEX_START",112:"INDEX_END",113:"@",116:"TAG_ATTR",117:"=",122:"EXTEND",123:"LOCAL",124:"TAG",126:"COMPARE",128:"TAG_ID",130:"IDREF",135:":",136:"(",137:")",138:"HERECOMMENT",139:"COMMENT",143:"BEGIN",144:"DO",145:"BLOCK_PARAM_START",147:"BLOCK_PARAM_END",151:"PROP",152:"ATTR",154:"VAR",156:"GLOBAL",157:"EXPORT",158:"DEF",164:"DEF_BODY",165:"DEF_EMPTY",170:"SPLAT",171:"LOGIC",172:"BLOCK_ARG",175:"LET",177:"NEW",180:"?:",181:".:",183:"?.",184:"SUPER",185:"AWAIT",188:"ARGUMENTS",193:"CLASS",194:"MODULE",196:"FUNC_EXIST",197:"THIS",198:"SELF",200:"..",201:"...",204:"TRY",207:"FINALLY",208:"CATCH",209:"CATCH_VAR",210:"THROW",212:"WHILE",213:"WHEN",214:"UNTIL",216:"LOOP",219:"FOR",220:"POST_FOR",225:"OWN",227:"FORIN",228:"FOROF",229:"BY",230:"SWITCH",232:"ELSE",234:"LEADING_WHEN",236:"IF",237:"ELIF",238:"POST_IF",239:"?",240:"UNARY",241:"SQRT",242:"-",243:"+",244:"--",245:"++",246:"MATH",247:"SHIFT",248:"RELATION",249:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[3,2],[4,1],[4,1],[4,3],[4,2],[9,1],[5,2],[5,3],[5,4],[8,1],[8,1],[8,3],[8,3],[8,1],[8,1],[16,1],[16,1],[16,1],[16,1],[16,4],[16,1],[16,4],[16,1],[16,1],[25,4],[25,4],[25,2],[29,1],[27,1],[27,3],[31,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[50,1],[52,1],[52,1],[55,1],[57,1],[59,1],[61,1],[63,1],[63,1],[63,1],[63,1],[65,1],[65,2],[65,2],[65,2],[68,2],[68,3],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[17,2],[17,2],[17,1],[82,1],[82,2],[82,2],[82,2],[82,2],[82,5],[82,5],[82,2],[82,2],[82,2],[82,2],[82,4],[82,6],[84,1],[101,2],[99,1],[99,1],[99,3],[48,4],[48,5],[48,5],[108,1],[108,1],[108,1],[108,0],[104,1],[104,3],[104,4],[104,3],[104,5],[104,5],[104,3],[104,2],[104,5],[105,0],[105,1],[105,3],[105,4],[114,1],[114,3],[118,1],[107,3],[107,3],[120,1],[120,3],[47,1],[47,2],[47,2],[121,2],[121,3],[121,4],[121,5],[127,0],[127,1],[125,1],[125,1],[129,1],[129,2],[38,3],[38,5],[133,1],[133,3],[133,5],[133,1],[134,1],[134,1],[134,1],[134,1],[134,1],[134,3],[15,1],[15,1],[36,1],[36,1],[36,1],[142,2],[141,2],[141,5],[141,6],[49,3],[49,5],[49,2],[148,1],[148,1],[149,1],[149,3],[153,4],[140,1],[140,2],[140,2],[155,8],[155,5],[155,6],[155,3],[160,1],[160,1],[161,1],[161,1],[161,3],[162,2],[162,2],[162,1],[159,1],[159,1],[159,1],[159,1],[115,0],[115,1],[146,0],[146,1],[146,3],[167,1],[167,1],[167,1],[167,2],[167,2],[167,2],[167,3],[169,1],[12,2],[173,3],[173,2],[173,2],[173,3],[173,2],[33,1],[33,1],[174,1],[174,1],[174,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,1],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,3],[176,4],[179,1],[179,1],[178,1],[131,1],[131,1],[131,1],[34,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[182,1],[182,1],[150,4],[191,0],[191,1],[191,3],[191,4],[191,6],[45,1],[45,2],[45,2],[45,2],[45,2],[45,3],[192,2],[192,3],[192,4],[192,5],[46,2],[46,3],[189,3],[189,2],[195,0],[195,1],[81,2],[81,4],[166,1],[109,1],[168,2],[168,4],[199,1],[199,1],[187,5],[190,3],[190,2],[190,2],[119,1],[119,3],[119,4],[119,4],[119,6],[132,2],[132,1],[202,1],[202,1],[202,1],[202,1],[203,1],[203,3],[41,2],[41,3],[41,3],[41,4],[206,2],[205,3],[18,2],[186,3],[186,5],[211,2],[211,4],[211,2],[211,4],[42,2],[42,2],[42,2],[42,1],[215,2],[215,2],[43,2],[43,2],[43,2],[218,1],[218,1],[221,2],[217,2],[217,2],[222,2],[222,3],[226,1],[226,1],[226,1],[224,1],[224,3],[223,2],[223,2],[223,4],[223,4],[223,4],[223,6],[223,6],[44,5],[44,7],[44,4],[44,6],[231,1],[231,2],[233,3],[233,4],[235,3],[235,5],[235,4],[235,3],[39,1],[39,3],[39,3],[40,5],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,2],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,3],[37,5]],performAction:function(e,a,r,s,c){var n=c.length-1;switch(s){case 1:return e.$=new r.Root([]);case 2:return e.$=new r.Root(c[n]);case 3:return e.$=c[n-1];case 4:e.$=new r.Block([]);break;case 5:e.$=new r.Block([c[n]]);break;case 6:e.$=c[n-2]["break"](c[n-1]).add(c[n]);break;case 7:e.$=c[n-1]["break"](c[n]);break;case 8:e.$=new r.Terminator(c[n]);break;case 9:e.$=new r.Block([]).indented(c[n-1],c[n]);break;case 10:case 119:e.$=c[n-1].indented(c[n-2],c[n]);break;case 11:e.$=c[n-1].prebreak(c[n-2]).indented(c[n-3],c[n]);break;case 12:case 13:case 16:case 17:case 18:case 19:case 26:case 30:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 59:case 60:case 67:case 93:case 94:case 99:case 118:case 123:case 130:case 141:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 152:case 160:case 161:case 162:case 165:case 174:case 175:case 177:case 180:case 181:case 182:case 183:case 184:case 185:case 196:case 203:case 204:case 205:case 206:case 207:case 208:case 210:case 211:case 212:case 213:case 227:case 228:case 229:case 231:case 232:case 233:case 234:case 235:case 237:case 238:case 239:case 240:case 249:case 283:case 284:case 285:case 286:case 287:case 288:case 306:case 312:case 313:case 319:case 335:case 343:e.$=c[n];break;case 14:case 15:e.$=c[n-2].addExpression(c[n]);break;case 20:case 68:e.$=new r.Literal(c[n]);break;case 21:e.$=new r.BreakStatement(c[n]);break;case 22:e.$=new r.BreakStatement(c[n-3],c[n-1]);break;case 23:e.$=new r.ContinueStatement(c[n]);break;case 24:e.$=new r.ContinueStatement(c[n-3],c[n-1]);break;case 25:e.$=new r.DebuggerStatement(c[n]);break;case 27:e.$=new r.ImportStatement(c[n-2],c[n]);break;case 28:e.$=new r.ImportStatement(null,c[n-2],c[n]);break;case 29:e.$=new r.ImportStatement(null,c[n]);break;case 31:case 113:case 187:case 322:e.$=[c[n]];break;case 32:case 114:case 188:e.$=c[n-2].concat(c[n]);break;case 50:e.$=new r.Identifier(c[n]);break;case 51:case 52:e.$=new r.Ivar(c[n]);break;case 53:e.$=new r.Gvar(c[n]);break;case 54:e.$=new r.Const(c[n]);break;case 55:e.$=new r.Argvar(c[n]);break;case 56:e.$=new r.Symbol(c[n]);break;case 57:e.$=new r.Num(c[n]);break;case 58:e.$=new r.Str(c[n]);break;case 61:e.$=new r.InterpolatedString([],{open:c[n]});break;case 62:e.$=c[n-1].add(c[n]);break;case 63:e.$=c[n]?c[n-1].add(c[n]):c[n-1];break;case 64:e.$=c[n-1].option("close",c[n]);break;case 65:e.$=null;break;case 66:case 92:case 95:case 120:case 147:case 163:case 176:case 282:e.$=c[n-1];break;case 69:e.$=new r.RegExp(c[n]);break;case 70:e.$=new r.Bool(c[n]);break;case 71:e.$=r.TRUE;break;case 72:e.$=r.FALSE;break;case 73:e.$=r.NIL;break;case 74:e.$=r.UNDEFINED;break;case 75:case 76:e.$=new r.Return(c[n]);break;case 77:e.$=new r.Return;break;case 78:e.$=new r.Selector([],{type:c[n]});break;case 79:e.$=c[n-1].add(new r.SelectorType(c[n]),"tag");break;case 80:e.$=c[n-1].add(new r.SelectorNamespace(c[n]),"ns");break;case 81:e.$=c[n-1].add(new r.SelectorId(c[n]),"id");break;case 82:e.$=c[n-1].add(new r.SelectorClass(c[n]),"class");break;case 83:e.$=c[n-4].add(new r.SelectorClass(c[n-1]),"class");break;case 84:e.$=c[n-4].add(new r.SelectorId(c[n-1]),"id");break;case 85:e.$=c[n-1].add(new r.SelectorCombinator(c[n]),"sep");break;case 86:e.$=c[n-1].add(new r.SelectorPseudoClass(c[n]),"pseudoclass");break;case 87:e.$=c[n-1].group();break;case 88:e.$=c[n-1].add(new r.SelectorUniversal(c[n]),"universal");break;case 89:e.$=c[n-3].add(new r.SelectorAttribute(c[n-1]),"attr");break;case 90:e.$=c[n-5].add(new r.SelectorAttribute(c[n-3],c[n-2],c[n-1]),"attr");break;case 91:case 100:case 101:case 132:case 133:e.$=new r.TagTypeIdentifier(c[n]);break;case 96:e.$=c[n-2].set({attributes:c[n-1],open:c[n-3],close:c[n]});break;case 97:e.$=c[n-3].set({attributes:c[n-2],body:c[n],open:c[n-4],close:c[n-1]});break;case 98:e.$=new r.TagWrapper(c[n-2],c[n-4],c[n]);break;case 102:e.$=new r.TagTypeIdentifier("div");break;case 103:e.$=new r.Tag({type:c[n]});break;case 104:e.$=c[n-2].addSymbol(c[n]);break;case 105:e.$=c[n-3].addIndex(c[n-1]);break;case 106:e.$=c[n-2].addClass(c[n]);break;case 107:e.$=c[n-4].addClass(c[n-1]);break;case 108:e.$=c[n-4].set({key:c[n-1]});break;case 109:e.$=c[n-2].set({id:c[n]});break;case 110:e.$=c[n-1].set({ivar:c[n]});break;case 111:e.$=c[n-4].set({id:c[n-1]});break;case 112:case 179:case 186:e.$=[];break;case 115:e.$=c[n-3].concat(c[n]);break;case 116:e.$=new r.TagAttr(c[n],c[n]);break;case 117:e.$=new r.TagAttr(c[n-2],c[n],c[n-1]);break;case 121:e.$=new r.TagDesc(c[n]);break;case 122:e.$=c[n-2].classes(c[n]);break;case 124:e.$=c[n].set({extension:!0});break;case 125:e.$=c[n].set({local:!0});break;case 126:e.$=new r.TagDeclaration(c[n]).set({keyword:c[n-1]});break;case 127:e.$=new r.TagDeclaration(c[n-1],null,c[n]).set({keyword:c[n-2]});break;case 128:e.$=new r.TagDeclaration(c[n-2],c[n]).set({keyword:c[n-3]});break;case 129:e.$=new r.TagDeclaration(c[n-3],c[n-1],c[n]).set({keyword:c[n-4]});break;case 131:e.$=["yy.extend"];break;case 134:case 135:e.$=new r.TagId(c[n]);break;case 136:e.$=new r.Assign(c[n-1],c[n-2],c[n]);break;case 137:e.$=new r.Assign(c[n-3],c[n-4],c[n-1].indented(c[n-2],c[n]));break;case 138:e.$=new r.ObjAttr(c[n]);break;case 139:e.$=new r.ObjAttr(c[n-2],c[n],"object");break;case 140:e.$=new r.ObjAttr(c[n-4],c[n-1].indented(c[n-2],c[n]),"object");break;case 148:e.$=new r.Comment(c[n],!0);break;case 149:e.$=new r.Comment(c[n],!1);break;case 153:e.$=new r.Begin(c[n]);break;case 154:e.$=new r.Lambda([],c[n],null,null,{bound:!0});break;case 155:e.$=new r.Lambda(c[n-2],c[n],null,null,{bound:!0});break;case 156:e.$=new r.Lambda(c[n-3],c[n-1],null,null,{bound:!0});break;case 157:e.$=new r.PropertyDeclaration(c[n-1],c[n],c[n-2]);break;case 158:e.$=new r.PropertyDeclaration(c[n-3],c[n-1],c[n-4]);break;case 159:e.$=new r.PropertyDeclaration(c[n],null,c[n-1]);break;case 164:e.$=c[n-3];break;case 166:case 252:e.$=c[n].set({global:c[n-1]});break;case 167:case 202:case 253:e.$=c[n].set({"export":c[n-1]});break;case 168:e.$=new r.MethodDeclaration(c[n-2],c[n],c[n-4],c[n-6],c[n-5]).set({def:c[n-7]});break;case 169:e.$=new r.MethodDeclaration([],c[n],c[n-1],c[n-3],c[n-2]).set({def:c[n-4]});break;case 170:e.$=new r.MethodDeclaration(c[n-2],c[n],c[n-4],null).set({def:c[n-5]});break;case 171:e.$=new r.MethodDeclaration([],c[n],c[n-1],null).set({def:c[n-2]});break;case 172:e.$={"static":!0};break;case 173:e.$={};break;case 178:e.$=c[n].body();break;case 189:e.$=new r.NamedParams(c[n]);break;case 190:e.$=new r.ArrayParams(c[n]);break;case 191:e.$=new r.RequiredParam(c[n]);break;case 192:e.$=new r.SplatParam(c[n],null,c[n-1]);break;case 193:case 194:e.$=new r.BlockParam(c[n],null,c[n-1]);break;case 195:e.$=new r.OptionalParam(c[n-2],c[n],c[n-1]);break;case 197:e.$=r.SPLAT(c[n]);break;case 198:case 201:e.$=r.SPLAT(new r.VarReference(c[n],c[n-2]),c[n-1]);break;case 199:case 200:e.$=new r.VarReference(c[n],c[n-1]);break;case 209:e.$=new r.IvarAccess(".",null,c[n]);break;case 214:e.$=new r.VarOrAccess(c[n]);break;case 215:e.$=new r.New(c[n-2]);break;case 216:e.$=new r.SuperAccess(".",c[n-2],c[n]);break;case 217:e.$=new r.PropertyAccess(c[n-1],c[n-2],c[n]);break;case 218:case 219:case 220:case 222:e.$=new r.Access(c[n-1],c[n-2],c[n]);break;case 221:e.$=new r.Access(".",c[n-2],new r.Identifier(c[n].value()));break;case 223:e.$=new r.IndexAccess(".",c[n-3],c[n-1]);break;case 226:e.$=r.SUPER;break;case 230:e.$=new r.Await(c[n]).set({keyword:c[n-1]});break;case 236:e.$=r.ARGUMENTS;break;case 241:e.$=new r.Index(c[n]);break;case 242:e.$=new r.Slice(c[n]);break;case 243:e.$=new r.Obj(c[n-2],c[n-3].generated);break;case 244:e.$=new r.AssignList([]);break;case 245:e.$=new r.AssignList([c[n]]);break;case 246:case 278:e.$=c[n-2].add(c[n]);break;case 247:case 279:e.$=c[n-3].add(c[n-1]).add(c[n]);break;case 248:e.$=c[n-5].concat(c[n-2].indented(c[n-3],c[n]));break;case 250:e.$=c[n].set({extension:c[n-1]});break;case 251:e.$=c[n].set({local:c[n-1]});break;case 254:e.$=c[n].set({"export":c[n-2],local:c[n-1]});break;case 255:e.$=new r.ClassDeclaration(c[n],null,[]).set({keyword:c[n-1]});break;case 256:e.$=new r.ClassDeclaration(c[n-1],null,c[n]).set({keyword:c[n-2]});break;case 257:e.$=new r.ClassDeclaration(c[n-2],c[n],[]).set({keyword:c[n-3]});break;case 258:e.$=new r.ClassDeclaration(c[n-3],c[n-1],c[n]).set({keyword:c[n-4]});break;case 259:e.$=new r.Module(c[n]);break;case 260:e.$=new r.Module(c[n-1],null,c[n]);break;case 261:e.$=new r.Call(c[n-2],c[n],c[n-1]);break;case 262:e.$=c[n-1].addBlock(c[n]);break;case 263:e.$=!1;break;case 264:e.$=!0;break;case 265:e.$=new r.ArgList([]);break;case 266:e.$=c[n-2];break;case 267:e.$=new r.This(c[n]);break;case 268:e.$=new r.Self(c[n]);break;case 269:e.$=new r.Arr(new r.ArgList([]));break;case 270:e.$=new r.Arr(c[n-2]);break;case 271:e.$="..";break;case 272:e.$="...";break;case 273:e.$=r.OP(c[n-2],c[n-3],c[n-1]);break;case 274:e.$=new r.Range(c[n-2],c[n],c[n-1]);break;case 275:e.$=new r.Range(c[n-1],null,c[n]);break;case 276:e.$=new r.Range(null,c[n],c[n-1]);break;case 277:e.$=new r.ArgList([c[n]]);break;case 280:e.$=c[n-2].indented(c[n-3],c[n]);break;case 281:e.$=c[n-5].concat(c[n-2]);break;case 289:e.$=[].concat(c[n-2],c[n]);break;case 290:e.$=new r.Try(c[n]);break;case 291:e.$=new r.Try(c[n-1],c[n]);break;case 292:e.$=new r.Try(c[n-1],null,c[n]);break;case 293:e.$=new r.Try(c[n-2],c[n-1],c[n]);break;case 294:e.$=new r.Finally(c[n]);break;case 295:e.$=new r.Catch(c[n],c[n-1]);break;case 296:e.$=new r.Throw(c[n]);break;case 297:e.$=new r.Parens(c[n-1],c[n-2],c[n]);break;case 298:e.$=new r.Parens(c[n-2],c[n-4],c[n]);break;case 299:e.$=new r.While(c[n]);break;case 300:e.$=new r.While(c[n-2],{guard:c[n]});break;case 301:e.$=new r.While(c[n],{invert:!0});break;case 302:e.$=new r.While(c[n-2],{invert:!0,guard:c[n]});break;case 303:case 311:case 314:e.$=c[n-1].addBody(c[n]);break;case 304:case 305:e.$=c[n].addBody(r.Block.wrap([c[n-1]]));break;case 307:e.$=new r.While(new r.Literal("true")).addBody(c[n]);break;case 308:e.$=new r.While(new r.Literal("true")).addBody(r.Block.wrap([c[n]]));break;case 309:case 310:e.$=c[n].addBody([c[n-1]]);break;case 315:e.$={source:new r.ValueNode(c[n])};break;case 316:e.$=c[n].configure({own:c[n-1].own,name:c[n-1][0],index:c[n-1][1],keyword:c[n-1].keyword});break;case 317:e.$=(c[n].keyword=c[n-1])&&c[n];break;case 318:e.$=(c[n].own=!0)&&(c[n].keyword=c[n-2])&&c[n];break;case 320:case 321:e.$=new r.ValueNode(c[n]);break;case 323:e.$=[c[n-2],c[n]];break;case 324:e.$=new r.ForIn({source:c[n]});break;case 325:e.$=new r.ForOf({source:c[n],object:!0});break;case 326:e.$=new r.ForIn({source:c[n-2],guard:c[n]});break;case 327:e.$=new r.ForOf({source:c[n-2],guard:c[n],object:!0});break;case 328:e.$=new r.ForIn({source:c[n-2],step:c[n]});break;case 329:e.$=new r.ForIn({source:c[n-4],guard:c[n-2],step:c[n]});break;case 330:e.$=new r.ForIn({source:c[n-4],step:c[n-2],guard:c[n]});break;case 331:e.$=new r.Switch(c[n-3],c[n-1]);break;case 332:e.$=new r.Switch(c[n-5],c[n-3],c[n-1]);break;case 333:e.$=new r.Switch(null,c[n-1]);break;case 334:e.$=new r.Switch(null,c[n-3],c[n-1]);break;case 336:e.$=c[n-1].concat(c[n]);break;case 337:e.$=[new r.SwitchCase(c[n-1],c[n])];break;case 338:e.$=[new r.SwitchCase(c[n-2],c[n-1])];break;case 339:e.$=new r.If(c[n-1],c[n],{type:c[n-2]});break;case 340:e.$=c[n-4].addElse(new r.If(c[n-1],c[n],{type:c[n-2]}));break;case 341:e.$=c[n-3].addElse(new r.If(c[n-1],c[n],{type:c[n-2]}));break;case 342:e.$=c[n-2].addElse(c[n]);break;case 344:e.$=new r.If(c[n],new r.Block([c[n-2]]),{type:c[n-1],statement:!0});break;case 345:e.$=new r.If(c[n],new r.Block([c[n-2]]),{type:c[n-1]});break;case 346:e.$=r.If.ternary(c[n-4],c[n-2],c[n]);break;case 347:case 348:e.$=r.OP(c[n-1],c[n]);break;case 349:e.$=new r.Op("-",c[n]);break;case 350:e.$=new r.Op("+",c[n]);break;case 351:e.$=new r.UnaryOp("--",null,c[n]);break;case 352:e.$=new r.UnaryOp("++",null,c[n]);break;case 353:e.$=new r.UnaryOp("--",c[n-1],null,!0);break;case 354:e.$=new r.UnaryOp("++",c[n-1],null,!0);break;case 355:case 356:e.$=new r.Op(c[n-1],c[n-2],c[n]);break;case 357:case 358:case 359:case 360:e.$=r.OP(c[n-1],c[n-2],c[n]);break;case 361:e.$=function(){return"!"==c[n-1].charAt(0)?r.OP(c[n-1].slice(1),c[n-2],c[n]).invert():r.OP(c[n-1],c[n-2],c[n])}();break;case 362:e.$=r.OP_COMPOUND(c[n-1]._value,c[n-1],c[n-2],c[n]);break;case 363:e.$=r.OP_COMPOUND(c[n-3]._value,c[n-4],c[n-1].indented(c[n-2],c[n]))}},table:[{1:[2,1],3:1,4:2,5:3,7:r,8:5,10:s,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{1:[3]},{1:[2,2],6:Ae,9:133},{6:[1,135]},a(Se,[2,4]),a(Se,[2,5],{14:Re}),{4:138,6:[1,139],7:r,8:5,11:[1,137],12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Oe,[2,12]),a(Oe,[2,13],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Oe,[2,16]),a(Oe,[2,17],{218:108,222:109,211:152,217:153,212:ce,214:ne,219:oe,220:be,238:De}),{13:154,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,34]),a(he,[2,35],{195:156,141:157,179:159,21:Pe,88:fe,89:me,111:Fe,144:v,180:Be,181:Me,183:Ge,196:Ue}),a(he,[2,36]),a(he,[2,37]),a(he,[2,38]),a(he,[2,39]),a(he,[2,40]),a(he,[2,41]),a(he,[2,42]),a(he,[2,43]),a(he,[2,44]),a(he,[2,45]),a(he,[2,46]),a(he,[2,47]),a(he,[2,48]),a(he,[2,49]),a(ve,[2,148]),a(ve,[2,149]),a(xe,[2,18]),a(xe,[2,19]),a(xe,[2,20]),a(xe,[2,21],{21:[1,166]}),a(xe,[2,23],{21:[1,167]}),a(xe,[2,25]),a(xe,[2,26]),{13:168,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ve,We,{117:[1,169]}),a(Ve,[2,232]),a(Ve,[2,233]),a(Ve,[2,234]),a(Ve,[2,235]),a(Ve,[2,236]),a(Ve,[2,237]),a(Ve,[2,238]),a(Ve,[2,239]),a(Ve,[2,240]),a(he,[2,150]),a(he,[2,151]),a(he,[2,152]),{13:170,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:171,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:172,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:173,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:174,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,
22
- 129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:179,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},a(je,Xe,{244:[1,180],245:[1,181],249:[1,182]}),a(he,[2,343],{232:[1,183],237:[1,184]}),{5:185,10:s},{5:186,10:s},a(he,[2,306]),{5:187,10:s},{10:[1,189],13:188,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,249]),{121:191,124:m,192:190,193:z},{121:193,124:m,192:192,193:z},{155:195,158:j,192:194,193:z},{123:[1,197],154:W,155:198,157:Ye,158:j,173:199,175:K,192:196,193:z},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:200,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},a(he,[2,123]),a(Ke,[2,102],{104:201,108:203,109:204,51:[1,205],89:[1,202],110:[1,206],198:ae}),{50:208,51:l,89:[1,209],149:207},a(xe,[2,77],{34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,16:155,13:210,81:211,19:c,20:n,21:qe,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,216:te,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),{13:213,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{27:214,29:215,31:216,32:Je,33:218,50:220,51:l,57:219,58:w},a(je,[2,228]),a(je,[2,229]),a(Qe,[2,226]),a(Ve,[2,67]),a(Ve,[2,68]),a(Ve,[2,69]),a(Ve,[2,70]),a(Ve,[2,71]),a(Ve,[2,72]),a(Ve,[2,73]),a(Ve,[2,74]),{4:221,7:r,8:5,10:[1,222],12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:223,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,97:Ze,101:46,103:h,109:101,119:225,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([1,6,10,11,14,21,22,71,88,89,90,91,97,106,111,112,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,246,247,248],[2,267]),a(Ve,[2,134]),{50:231,51:l},{84:233,85:[1,234],86:[1,235],87:[1,236],88:[1,237],91:[1,238],92:[1,239],93:[1,240],94:[1,241],95:[1,242],96:[1,243],100:[1,244],102:[1,232]},a(he,[2,165]),{5:245,10:s,145:[1,246]},a(aa,ra,{61:116,65:117,191:248,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G,145:ca}),{5:258,10:s},a(Qe,[2,208]),a(Qe,[2,209]),a(Qe,[2,210]),a(Qe,[2,211]),a(Qe,[2,212]),a(Qe,[2,213]),a(Qe,[2,214]),{13:259,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:260,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:261,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{5:262,10:s,13:263,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{50:268,51:l,89:He,96:D,150:270,168:269,187:264,224:265,225:[1,266],226:267},{223:271,227:[1,272],228:[1,273]},{32:k,35:175,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,82:92,83:g,89:He,91:_,96:D,101:46,109:101,129:45,130:F,131:177,136:B,150:77,154:W,157:Ye,166:44,168:76,173:102,175:K,176:274,178:39,184:q,186:41,187:42,188:Q,189:47,197:ee,198:ae},{110:na,125:275,128:ta},a(oa,[2,160]),a(oa,[2,161]),a(Ve,[2,57]),a(Ve,[2,58]),a(Ve,[2,59]),a(Ve,[2,60],{68:279,67:[1,278],69:[1,280],70:[1,281]}),a(ba,[2,78]),{50:287,51:l,55:286,56:T,57:288,58:w,89:ka,109:285,159:282,161:283,166:284,197:ee,198:ae},a([1,6,10,11,14,21,22,28,71,88,89,90,91,97,106,111,112,117,126,135,137,144,147,164,165,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],[2,54]),a(la,[2,51]),a(la,[2,52]),a([1,6,10,11,14,21,22,71,88,89,90,91,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,229,238,239,242,243,244,245,246,247,248,249],[2,53]),a(Qe,[2,55]),a(la,[2,268]),{50:293,51:l,57:292,58:w,96:$a,168:294,170:[1,290],174:291},{50:293,51:l,57:292,58:w,96:$a,168:294,170:[1,297],174:296},a([1,6,10,11,14,21,22,28,71,88,89,90,91,97,98,106,111,112,117,126,135,137,144,147,164,165,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,244,245,246,247,248,249],[2,50]),a(ia,[2,312]),a(ia,[2,313]),a(Qe,[2,56]),a(Ta,[2,61]),a(Se,[2,7],{12:7,13:8,15:9,16:10,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,8:298,19:c,20:n,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,138:M,139:G,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,170:X,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,212:ce,214:ne,216:te,219:oe,220:be,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),a([1,6,11,19,20,23,24,26,32,51,53,54,56,58,60,62,64,66,73,74,75,76,77,78,79,80,83,89,91,96,103,122,123,124,130,136,137,138,139,143,144,151,152,154,156,157,158,170,171,175,184,185,188,193,194,197,198,204,210,212,214,216,219,220,230,236,240,241,242,243,244,245],[2,8]),{1:[2,3]},{12:300,13:299,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(wa,[2,9]),{6:Ae,9:133,11:[1,301]},{4:302,7:r,8:5,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:303,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:304,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:305,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:306,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:307,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:308,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:309,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:310,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:311,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,305]),a(he,[2,310]),{13:312,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,304]),a(he,[2,309]),a([1,6,10,11,14,22,97,137],[2,197],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{211:152,212:ce,214:ne,217:153,218:108,219:oe,220:be,222:109,238:De},{21:qe,81:313},a(Ve,[2,262]),a(da,[2,224],{178:315,61:316,62:E,177:[1,314],184:q}),{50:317,51:l,52:318,53:$,54:i,57:319,58:w},{50:320,51:l},{50:321,51:l},{13:323,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,182:322,184:q,185:J,186:41,187:42,188:Q,189:47,190:324,192:64,193:z,194:Z,197:ee,198:ae,199:325,200:Ea,201:Aa,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{21:[2,264]},{145:ca},a(da,[2,225]),{13:328,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:329,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Sa,[2,230],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{10:[1,331],13:330,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,347],{218:108,222:109,211:149,217:150}),a(he,[2,348],{218:108,222:109,211:149,217:150}),a(he,[2,349],{218:108,222:109,211:149,217:150}),a(he,[2,350],{218:108,222:109,211:149,217:150}),a(he,[2,351],{21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),{21:Pe,88:fe,89:me,111:Fe,141:157,144:v,179:159,180:Be,181:Me,183:Ge,195:156,196:Ue},{154:W,157:Ye,173:199,175:K},a([21,88,89,111,144,180,181,183,196],We),a(aa,ra,{61:116,65:117,191:248,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),a(he,[2,352],{21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),a(he,[2,353]),a(he,[2,354]),{10:[1,333],13:332,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{5:335,10:s,236:[1,334]},{13:336,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,290],{205:337,206:338,207:Ra,208:[1,339]}),a(he,[2,303]),a(he,[2,311]),{10:[1,341],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{231:342,233:343,234:Oa},a(he,[2,250]),a(he,[2,124]),a(he,[2,251]),a(he,[2,125]),a(he,[2,252]),a(he,[2,166]),a(he,[2,253]),{192:345,193:z},a(he,[2,167]),a(Qe,[2,202]),a(ua,[2,259],{5:346,10:s,21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe}),a(pa,[2,112],{105:347,52:352,114:353,53:$,54:i,88:[1,348],91:[1,351],111:[1,349],113:[1,350],116:Ia}),{13:355,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ke,[2,103]),a(Ke,[2,99]),a(Ke,[2,100]),a(Ke,[2,101]),a(he,[2,159],{150:356,21:[1,357],89:He}),a(La,[2,162]),{13:358,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(xe,[2,75],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(xe,[2,76]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,22:[1,359],23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:360,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(xe,[2,296],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{14:[1,363],28:[1,362]},a(xe,[2,29],{30:[1,364]}),a(Na,[2,31]),a([1,6,11,14,30,137,212,214,219,220,238],[2,30]),a(ya,[2,33]),a(ya,[2,203]),a(ya,[2,204]),{6:Ae,9:133,137:[1,365]},{4:366,7:r,8:5,12:7,13:8,15:9,16:10,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([6,10,14,97],ga,{218:108,222:109,211:149,217:150,199:367,126:ue,171:pe,200:Ea,201:Aa,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Ca,[2,269]),a([6,10,97],_a,{115:368,14:Da}),a(ha,[2,277]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:370,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ha,[2,285]),a(ha,[2,286]),a(ha,[2,287]),a(Ve,[2,135]),a(Ve,[2,92]),a(ba,[2,79]),a(ba,[2,80]),a(ba,[2,81]),a(ba,[2,82]),{89:[1,371]},{89:[1,372]},a(ba,[2,85]),a(ba,[2,86]),a(ba,[2,87]),a(ba,[2,88]),{50:373,51:l},a(ba,[2,91]),a(Ve,[2,154]),a(Pa,fa,{146:374,167:375,150:376,168:377,169:378,50:382,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(Pa,fa,{167:375,150:376,168:377,169:378,50:382,146:383,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a([6,10,90],_a,{115:384,14:Ma}),a(Ga,[2,245]),a(Ga,[2,138],{135:[1,386]}),a(Ga,[2,141]),a(Ua,[2,142]),a(Ua,[2,143]),a(Ua,[2,144]),a(Ua,[2,145]),a(Ua,[2,146]),{
23
- 13:387,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,153]),{5:388,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(va,[2,299],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,213:[1,389],214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(va,[2,301],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,213:[1,390],214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,307]),a(xa,[2,308],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,315]),a(Va,[2,317]),{50:268,51:l,89:He,96:$a,150:270,168:269,224:391,226:267},a(Va,[2,322],{14:[1,392]}),a(Wa,[2,319]),a(Wa,[2,320]),a(Wa,[2,321]),a(he,[2,316]),{13:393,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:394,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ha,[2,255],{5:395,10:s,21:Xe,88:Xe,89:Xe,111:Xe,144:Xe,180:Xe,181:Xe,183:Xe,196:Xe,126:[1,396]}),a(Ha,[2,126],{5:397,10:s,126:[1,398]}),a(he,[2,132]),a(he,[2,133]),a(Ta,[2,62]),a(Ta,[2,63]),a(Ta,[2,64]),{13:400,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,71:[1,399],72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{88:[1,402],91:[1,403],160:401},a(Ya,[2,180],{162:405,21:[1,404],164:ja,165:Xa}),a(Ya,[2,181]),a(Ya,[2,182]),a(Ya,[2,183]),a(Ka,[2,174]),a(Ka,[2,175]),{13:408,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{50:293,51:l,57:292,58:w,96:$a,168:294,174:409},a(Qe,[2,199]),a(Qe,[2,205]),a(Qe,[2,206]),a(Qe,[2,207]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,97:Ze,101:46,103:h,109:101,119:225,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qe,[2,200]),{50:293,51:l,57:292,58:w,96:$a,168:294,174:410},a(Se,[2,6],{14:Re}),a(Oe,[2,14],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Oe,[2,15]),a(wa,[2,10]),{6:Ae,9:133,11:[1,411]},a(qa,[2,355],{218:108,222:109,211:149,217:150,246:ge}),a(qa,[2,356],{218:108,222:109,211:149,217:150,246:ge}),a(he,[2,357],{218:108,222:109,211:149,217:150}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,247,248],[2,358],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239],[2,359],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,171,200,201,212,213,214,219,220,229,238,239],[2,360],{218:108,222:109,211:149,217:150,126:ue,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,212,213,214,219,220,229,238,239,248],[2,361],{218:108,222:109,211:149,217:150,242:Ne,243:ye,246:ge,247:Ce}),a(Ja,[2,345],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{126:ue,135:[1,412],171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ja,[2,344],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Ve,[2,261]),a(Qe,[2,215]),a(Qe,[2,216]),a(Qe,[2,221]),a(Qe,[2,217]),a(Qe,[2,220]),a(Qe,[2,222]),a(Qe,[2,218]),a(Qe,[2,219]),{112:[1,413]},{112:[2,241],126:ue,171:pe,199:414,200:Ea,201:Aa,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{112:[2,242]},{13:415,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qa,[2,271]),a(Qa,[2,272]),{22:[1,416],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{22:[1,417],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Sa,[2,136],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:418,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Sa,[2,362],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:419,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:420,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(za,[2,342]),{5:421,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,291],{206:422,207:Ra}),a(he,[2,292]),{209:[1,423]},{5:424,10:s},{231:425,233:343,234:Oa},{11:[1,426],232:[1,427],233:428,234:Oa},a(Za,[2,335]),{13:430,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,203:429,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,254]),a(he,[2,260]),{6:_a,14:[1,432],106:[1,431],115:433},{51:[1,435],62:[1,434],89:[1,436]},{13:437,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{89:[1,438]},{51:[1,439],89:[1,440]},a(Ke,[2,110]),a(pa,[2,113]),a(pa,[2,116],{117:[1,441]}),{90:[1,442],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,157]),{89:He,150:443},{90:[1,444],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ve,[2,265]),a([6,10,22],_a,{115:445,14:Da}),a(ha,ga,{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{29:446,32:Je},{31:447,33:218,50:220,51:l,57:219,58:w},{31:448,33:218,50:220,51:l,57:219,58:w},a(Ve,[2,297]),{6:Ae,9:133,11:[1,449]},{13:450,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{6:Ae,9:452,10:er,97:[1,451]},a([6,10,11,22,97],ar,{34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,17:30,18:31,25:36,131:38,178:39,72:40,186:41,187:42,166:44,129:45,101:46,189:47,140:48,141:49,142:50,176:57,235:58,211:60,215:61,217:62,192:64,121:70,148:72,168:76,150:77,63:79,82:92,155:93,57:97,52:98,55:99,59:100,109:101,173:102,50:103,218:108,222:109,61:116,65:117,16:155,12:228,15:230,13:361,202:454,19:c,20:n,23:t,24:o,26:b,32:k,51:l,53:$,54:i,56:T,58:w,60:d,62:E,64:A,66:S,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,83:g,89:C,91:_,96:D,103:h,122:P,123:f,124:m,130:F,136:B,138:M,139:G,143:U,144:v,151:x,152:V,154:W,156:H,157:Y,158:j,170:X,171:ea,175:K,184:q,185:J,188:Q,193:z,194:Z,197:ee,198:ae,204:re,210:se,212:ce,214:ne,216:te,219:oe,220:be,230:ke,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee}),a(rr,_a,{115:455,14:Da}),{13:456,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:457,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{97:[1,458],98:[1,459]},{14:sr,147:[1,460]},a(cr,[2,187]),a(cr,[2,189]),a(cr,[2,190]),a(cr,[2,191],{117:[1,462]}),{50:382,51:l,169:463},{50:382,51:l,169:464},{50:382,51:l,169:465},a([14,22,117,147],[2,196]),{14:sr,147:[1,466]},{6:Ae,9:468,10:nr,90:[1,467]},a([6,10,11,90],ar,{61:116,65:117,134:250,15:251,50:252,57:253,63:254,52:255,55:256,133:470,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),{10:[1,472],13:471,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{126:ue,137:[1,473],171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(za,[2,339]),{13:474,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:475,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Va,[2,318]),{50:268,51:l,89:He,96:$a,150:270,168:269,226:476},a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,214,219,220,238],[2,324],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,477],229:[1,478],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(tr,[2,325],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,479],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,256]),{13:480,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,127]),{110:na,125:481,128:ta},a(Ta,[2,65]),{71:[1,482],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{50:287,51:l,57:288,58:w,89:ka,161:483},a(or,[2,172]),a(or,[2,173]),a(br,fa,{167:375,150:376,168:377,169:378,50:382,146:484,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(he,[2,171]),{5:485,10:s,89:me,141:486,144:v},a(he,[2,179]),{90:[1,487],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Qe,[2,198]),a(Qe,[2,201]),a(wa,[2,11]),{13:488,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Qe,[2,223]),{13:489,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,112:[2,275],121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{112:[2,276],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(xe,[2,22]),a(xe,[2,24]),{6:Ae,9:491,11:kr,126:ue,132:490,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{6:Ae,9:491,11:kr,126:ue,132:493,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{5:494,10:s,126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(za,[2,341]),a(he,[2,293]),{5:495,10:s},a(he,[2,294]),{11:[1,496],232:[1,497],233:428,234:Oa},a(he,[2,333]),{5:498,10:s},a(Za,[2,336]),{5:499,10:s,14:[1,500]},a(lr,[2,288],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ua,[2,96],{107:501,10:[1,502],21:[1,503]}),{6:ar,114:504,116:Ia},{6:[1,505]},a(Ke,[2,104]),a(Ke,[2,106]),{13:506,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{112:[1,507],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{13:508,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ke,[2,109]),{13:509,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:511,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,118:510,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{106:[1,512]},{22:[1,513]},a(La,[2,163]),{6:Ae,9:452,10:er,22:[1,514]},a(xe,[2,27]),a(Na,[2,32]),a(xe,[2,28]),{137:[1,515]},{97:[1,516],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ca,[2,270]),{12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:517,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:518,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ha,[2,278]),{6:Ae,9:520,10:er,11:kr,132:519},{90:[1,521],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{90:[1,522],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(ba,[2,89]),{32:k,51:[1,524],61:116,62:E,63:525,64:A,65:117,66:S,89:[1,526],99:523},{5:527,10:s},{50:382,51:l,89:He,96:$a,150:376,167:528,168:377,169:378,170:ma,171:Fa,172:Ba},{13:529,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(cr,[2,192]),a(cr,[2,193]),a(cr,[2,194]),{5:530,10:s},a([1,6,10,11,14,21,22,71,88,89,90,97,106,111,112,117,126,135,137,144,147,171,180,181,183,196,200,201,212,213,214,219,220,227,228,229,238,239,242,243,246,247,248],[2,243]),{15:251,32:k,50:252,51:l,52:255,53:$,54:i,55:256,56:T,57:253,58:w,61:116,62:E,63:254,64:A,65:117,66:S,133:531,134:250,136:sa,138:M,139:G},a([6,10,11,14],ra,{61:116,65:117,133:249,134:250,15:251,50:252,57:253,63:254,52:255,55:256,191:532,32:k,51:l,53:$,54:i,56:T,58:w,62:E,64:A,66:S,136:sa,138:M,139:G}),a(Ga,[2,246]),a(Ga,[2,139],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{13:533,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ua,[2,147]),a(xa,[2,300],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(xa,[2,302],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,
24
- 214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Va,[2,323]),{13:534,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:535,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:536,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a([1,6,11,14,22,71,90,97,106,112,135,137,147,200,201,213,220,229,238],[2,257],{218:108,222:109,211:149,217:150,5:537,10:s,126:ue,171:pe,212:ce,214:ne,219:oe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ua,[2,128],{5:538,10:s}),a(Ta,[2,66]),{21:[1,539],162:540,164:ja,165:Xa},{14:sr,22:[1,541]},a(he,[2,177]),a(he,[2,178]),a(Ka,[2,176]),a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,229,238,239],[2,346],{218:108,222:109,211:149,217:150,126:ue,171:pe,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{112:[2,274],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(he,[2,137]),{11:$r},a(he,[2,283]),a(he,[2,363]),a(za,[2,340]),a([1,6,10,11,14,22,71,90,97,106,112,126,135,137,147,171,200,201,207,212,213,214,219,220,229,238,239,242,243,246,247,248],[2,295]),a(he,[2,331]),{5:543,10:s},{11:[1,544]},a(Za,[2,337],{6:[1,545]}),{13:546,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(he,[2,97]),{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:547,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{10:ze,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,119:548,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:226,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(pa,[2,114]),{114:549,116:Ia},{90:[1,550],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ke,[2,105]),{90:[1,551],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},{90:[1,552],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(pa,[2,117]),a(pa,[2,118],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,98]),a(he,[2,158]),a(Ve,[2,266]),a(Ve,[2,298]),a(Ve,[2,273]),a(ha,[2,279]),a(rr,_a,{115:553,14:Da}),a(ha,[2,280]),{11:$r,12:228,13:361,15:230,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,138:M,139:G,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,170:X,171:ea,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,202:517,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(ba,[2,83]),a(ba,[2,84]),{97:[1,554]},{97:[2,93]},{97:[2,94]},{13:555,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},a(Ve,[2,155]),a(cr,[2,188]),a(cr,[2,195],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{90:[1,556]},a(Ga,[2,247]),a(rr,_a,{115:557,14:Ma}),{6:Ae,9:491,11:kr,126:ue,132:558,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a([1,6,10,11,14,22,71,90,97,106,112,135,137,147,200,201,212,213,214,219,220,238],[2,326],{218:108,222:109,211:149,217:150,126:ue,171:pe,229:[1,559],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(tr,[2,328],{218:108,222:109,211:149,217:150,126:ue,171:pe,213:[1,560],239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Sa,[2,327],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(he,[2,258]),a(he,[2,129]),a(br,fa,{167:375,150:376,168:377,169:378,50:382,146:561,51:l,89:He,96:$a,170:ma,171:Fa,172:Ba}),a(he,[2,169]),{162:562,164:ja,165:Xa},a(he,[2,282]),{6:Ae,9:491,11:kr,132:563},a(he,[2,334]),a(Za,[2,338]),a(lr,[2,289],{218:108,222:109,211:149,217:150,126:ue,171:pe,212:ce,214:ne,219:oe,220:be,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(ir,_a,{115:565,11:[1,564],14:Da}),a(ir,_a,{115:565,14:Da,22:[1,566]}),a(pa,[2,115]),a(Ke,[2,107]),a(Ke,[2,108]),a(Ke,[2,111]),{6:Ae,9:520,10:er,11:kr,132:567},a(ba,[2,90]),{90:[1,568],126:ue,171:pe,211:149,212:ce,214:ne,217:150,218:108,219:oe,220:be,222:109,238:Ie,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e},a(Ve,[2,156]),{6:Ae,9:570,10:nr,11:kr,132:569},a(Ga,[2,140]),{13:571,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{13:572,16:155,17:30,18:31,19:c,20:n,23:t,24:o,25:36,26:b,32:k,34:12,35:13,36:14,37:15,38:16,39:17,40:18,41:19,42:20,43:21,44:22,45:23,46:24,47:25,48:26,49:27,50:103,51:l,52:98,53:$,54:i,55:99,56:T,57:97,58:w,59:100,60:d,61:116,62:E,63:79,64:A,65:117,66:S,72:40,73:R,74:O,75:u,76:p,77:I,78:L,79:N,80:y,82:92,83:g,89:C,91:_,96:D,101:46,103:h,109:101,121:70,122:P,123:f,124:m,129:45,130:F,131:38,136:B,140:48,141:49,142:50,143:U,144:v,148:72,150:77,151:x,152:V,154:W,155:93,156:H,157:Y,158:j,166:44,168:76,173:102,175:K,176:57,178:39,184:q,185:J,186:41,187:42,188:Q,189:47,192:64,193:z,194:Z,197:ee,198:ae,204:re,210:se,211:60,212:ce,214:ne,215:61,216:te,217:62,218:108,219:oe,220:be,222:109,230:ke,235:58,236:le,240:$e,241:ie,242:Te,243:we,244:de,245:Ee},{14:sr,22:[1,573]},a(he,[2,170]),a(he,[2,332]),a(he,[2,119]),{6:Ae,9:452,10:er},a(he,[2,120]),a(ha,[2,281]),{97:[2,95]},a(Ga,[2,248]),{11:$r,15:251,32:k,50:252,51:l,52:255,53:$,54:i,55:256,56:T,57:253,58:w,61:116,62:E,63:254,64:A,65:117,66:S,133:531,134:250,136:sa,138:M,139:G},a(Sa,[2,329],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),a(Sa,[2,330],{218:108,222:109,211:149,217:150,126:ue,171:pe,239:Le,242:Ne,243:ye,246:ge,247:Ce,248:_e}),{162:574,164:ja,165:Xa},a(he,[2,168])],defaultActions:{135:[2,3],163:[2,264],324:[2,242],524:[2,93],525:[2,94],568:[2,95]},parseError:function(e,a){if(!a.recoverable)throw new Error(e);this.trace(e)},parse:function(e){function a(e){c.length=c.length-2*e,n.length=n.length-e}function r(){function e(e){for(var a=c.length-1,r=0;;){if(k.toString()in t[e])return r;if(0===e||2>a)return!1;a-=2,e=c[a],++r}}var r,n="";if(b)w!==l&&(r=e(d));else{r=e(d),O=[];var i=$.yytext,A=s.terminals_[T]||T,S=i?i._loc:-1,R=-1!=S?"["+i._loc+":"+i._len+"]":"[0:0]";n=$.showPosition?"Parse error at "+R+":\n"+$.showPosition()+"\nExpecting "+O.join(", ")+", got '"+(s.terminals_[T]||T)+"'":"Parse error at "+R+": Unexpected "+(T==l?"end of input":"'"+A+"'"),s.parseError(n,{lexer:$,text:$.match,token:A,line:$.yylineno,expected:O,recoverable:r!==!1})}if(3==b){if(T===l||w===l)throw new Error(n||"Parsing halted while starting to recover from another error.");o=$.yytext}if(r===!1)throw new Error(n||"Parsing halted. No suitable error recovery rule available.");a(r),w=T==k?null:T,T=k,d=c[c.length-1],E=t[d]&&t[d][k],b=3}var s=this,c=[0],n=[null],t=this.table,o="",b=0,k=2,l=1,$=Object.create(this.lexer),i=this.yy;$.setInput(e,i),"function"==typeof i.parseError?this.parseError=i.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var T,w,d,E,A,S,R,O,u={},p=this.symbols_,I=this.productions_;;)switch(d=c[c.length-1],(null===T||"undefined"==typeof T)&&(T=p[$.lex()]||l),E=t[d]&&t[d][T],"undefined"!=typeof E&&E.length&&E[0]||r(),E[0]){case 1:c.push(T),c.push(E[1]),n.push($.yytext),T=null,w?(T=w,w=null):(o=$.yytext,b>0&&b--);break;case 2:if(S=I[E[1]][1],u.$=n[n.length-S],A=this.performAction(u,o,i,E[1],n),"undefined"!=typeof A)return A;for(;S>0;)c.pop(),c.pop(),n.pop(),S--;c.push(I[E[1]][0]),R=t[c[c.length-2]][c[c.length-1]],c.push(R),n.push(u.$);break;case 3:return!0}return!0}};return e.prototype=Tr,Tr.Parser=e,new e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=parser,exports.Parser=parser.Parser,exports.parse=function(){return parser.parse.apply(parser,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var a=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(a)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1)));
25
- }).call(this,require('_process'))
26
- },{"_process":17,"fs":11,"path":16}],8:[function(require,module,exports){
27
- !function(){function e(e,t){return t&&t.indexOf?t.indexOf(e):[].indexOf.call(e,t)}function t(e){return e?e.toArray?e.toArray():e:[]}function n(){}var r,T,o=require("./token");o.Token;exports.Rewriter=n,n.prototype.tokens=function(){return this._tokens},n.prototype.rewrite=function(e,t){var n;void 0===t&&(t={}),this._tokens=e,this._options=t,t.profile&&console.time("tokenize:rewrite");for(var r=0;n=e[r];){var T=e[r+1];"DEF_BODY"==n._type&&T&&"TERMINATOR"==T._type&&(n._type="DEF_EMPTY"),r++}return this.step("ensureFirstLine"),this.step("removeLeadingNewlines"),this.step("removeMidExpressionNewlines"),this.step("tagDefArguments"),this.step("closeOpenCalls"),this.step("closeOpenIndexes"),this.step("closeOpenTags"),this.step("closeOpenTagAttrLists"),this.step("addImplicitIndentation"),this.step("tagPostfixConditionals"),this.step("addImplicitBraces"),this.step("addImplicitParentheses"),t.profile&&console.timeEnd("tokenize:rewrite"),this._tokens},n.prototype.step=function(e){this._options.profile&&(console.log("---- starting "+e+" ---- "),console.time(e)),this[e](),this._options.profile&&(console.timeEnd(e),console.log("\n\n"))},n.prototype.scanTokens=function(e){for(var t,n=this._tokens,r=0;t=n[r];)r+=e.call(this,t,r,n);return!0},n.prototype.detectEnd=function(e,t,n){for(var r,T,i=this._tokens,s=0,p=[];r=i[e];){if(0==s&&t.call(this,r,e,p))return n.call(this,r,e);if(!r||0>s)return n.call(this,r,e-1);T=o.typ(r),c.indexOf(T)>=0?(0==s&&p.push(e),s+=1):a.indexOf(T)>=0&&(s-=1),e+=1}return e-1},n.prototype.ensureFirstLine=function(){var e=this._tokens[0];"TERMINATOR"==o.typ(e)&&(this._tokens=[o.token("BODYSTART","BODYSTART")].concat(this._tokens))},n.prototype.removeLeadingNewlines=function(){for(var e=0,n=0,r=t(this._tokens),T=r.length;T>n;n++)if("TERMINATOR"!=o.typ(r[n])){e=n;break}e&&this._tokens.splice(0,e)},n.prototype.removeMidExpressionNewlines=function(){var e=this;return e.scanTokens(function(t,n,r){var T=e.tokenType(n+1);return"TERMINATOR"==o.typ(t)&&u.indexOf(T)>=0?"OUTDENT"==T?1:(r.splice(n,1),0):1})},n.prototype.tagDefArguments=function(){return!0},n.prototype.closeOpenCalls=function(){var e=this,t=function(t,n){var r=o.typ(t);return")"==r||"CALL_END"==r||"OUTDENT"==r&&")"==e.tokenType(n-1)},n=function(t,n){var r=o.typ(t),T=e._tokens["OUTDENT"==r?n-1:n];return o.setTyp(T,"CALL_END")};return e.scanTokens(function(r,T){return"CALL_START"==o.typ(r)&&e.detectEnd(T+1,t,n),1})},n.prototype.closeOpenIndexes=function(){var t=this,n=function(t,n){return e(o.typ(t),["]","INDEX_END"])>=0},r=function(e,t){return o.setTyp(e,"INDEX_END")};return t.scanTokens(function(e,T){return"INDEX_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.closeOpenTagAttrLists=function(){var t=this,n=function(t,n){return e(o.typ(t),[")","TAG_ATTRS_END"])>=0},r=function(e,t){return o.setTyp(e,"TAG_ATTRS_END")};return t.scanTokens(function(e,T){return"TAG_ATTRS_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.closeOpenTags=function(){var t=this,n=function(t,n){return e(o.typ(t),[">","TAG_END"])>=0},r=function(e,t){return o.setTyp(e,"TAG_END")};return t.scanTokens(function(e,T){return"TAG_START"==o.typ(e)&&t.detectEnd(T+1,n,r),1})},n.prototype.addImplicitCommas=function(){},n.prototype.addImplicitBlockCalls=function(){for(var e,t=1,n=this._tokens;e=n[t];){var r=e._type,T=e._value;"DO"!=r||"INDEX_END"!=T&&"IDENTIFIER"!=T&&"NEW"!=T||(n.splice(t+1,0,o.token("CALL_END",")")),n.splice(t+1,0,o.token("CALL_START","(")),t++),t++}},n.prototype.addImplicitBraces=function(){var e=this,t=[],n=null,r=["IF","TERNARY","FOR"],T=function(t,n){return e._tokens.splice(n,0,o.LBRACKET)},i=function(t,n){return e._tokens.splice(n,0,o.RBRACKET)},s=function(e,t){return[e,t]};return e.scanTokens(function(p,E,N){var A,R=o.typ(p),u=o.val(p),f=t[t.length-1]||[];if(r.indexOf(R)>=0)return t.push(s(R,E)),1;if("?"==u)return t.push(s("TERNARY",E)),1;if(c.indexOf(R)>=0)return"INDENT"==R&&r.indexOf(f[0])>=0&&t.pop(),"INDENT"==R&&"{"==e.tokenType(E-1)?t.push(s("{",E)):t.push(s(R,E)),1;if(a.indexOf(R)>=0)return"TERNARY"==f[0]&&t.pop(),n=t.pop(),n||console.log("NO STACK!!"),n[2]=E,"{"==n[0]&&n.generated?(i(p,E),1):1;if("TERNARY"==f[0]&&("TERMINATOR"==R||"OUTDENT"==R))return t.pop(),1;if(r.indexOf(f[0])>=0&&"INDENT"==R)return console.log("popping noBraceContext"),t.pop(),1;if(","==R)return"{"==f[0]&&f.generated?(N.splice(E,0,o.RBRACKET),t.pop(),2):1;if(":"==R&&"{"!=f[0]&&"TERNARY"!=f[0]&&-1==r.indexOf(f[0])){for(A=n&&n[2]==E-1?n[1]-1:E-2;"HERECOMMENT"==e.tokenType(A-1);)A-=2;var _=N[A-1];if(_&&"}"==o.typ(_)&&_.generated){N.splice(A-1,1);var O=s("{");return O.generated=!0,t.push(O),0}return _&&","==o.typ(_)&&"}"==e.tokenType(A-2)?(N.splice(A-2,1),O=s("{"),O.generated=!0,t.push(O),0):(O=s("{"),O.generated=!0,t.push(O),T(p,A+1),2)}if("DO"==R){var I=o.typ(N[E-1]);if(["NUMBER","STRING","REGEX","SYMBOL","]","}",")","STRING_END"].indexOf(I)>=0){var D=o.token(",",",");if(D.generated=!0,N.splice(E,0,D),f.generated)return i(p,E),t.pop(),2}}return"TERMINATOR"!=R&&"OUTDENT"!=R&&"DEF_BODY"!=R||!f.generated?1:(i(p,E),t.pop(),2)})},n.prototype.addImplicitParentheses=function(){for(var e,t=this,n=["CLASS","IF","UNLESS","TAG","WHILE","FOR","UNTIL","CATCH","FINALLY","MODULE","LEADING_WHEN"],r=function(e,n){return t._tokens.splice(n,0,o.token("CALL_END",")"))},T=t._tokens,i=!1,s=!1,p=!1,E=0;e=T[E];){var N=e._type,A=T[E-1],R=(T[E],T[E+1]),c=A&&A._type,a=R&&R._type;")"!=c&&"]"!=c||"INDENT"!=N||(i=!0),n.indexOf(c)>=0&&(p=!0,i=!0,"FOR"==c&&(s=!0));var u=!1,l=!1;if(!i&&"INDENT"==N&&R){var d=c&&f.indexOf(c)>=0,S=a&&_.indexOf(a)>=0;u=(R.generated&&"{"==a||S)&&d,l=S&&d}var L=!1,y=!1;if(("TERMINATOR"==N||"OUTDENT"==N||"INDENT"==N)&&(p=!1,i=!1),"?"==N&&A&&!A.spaced&&(e.call=!0),e.fromThen)E+=1;else if(u||l||A&&A.spaced&&(A.call||f.indexOf(c)>=0)&&(_.indexOf(N)>=0||!e.spaced&&!e.newLine&&O.indexOf(N)>=0)){T.splice(E,0,o.token("CALL_START","("));var h=function(e,n){var r=o.typ(e);if(!L&&e.fromThen)return!0;var i="IF"==r||"UNLESS"==r||"ELSE"==r;(i||"CATCH"==r)&&(L=!0),(i||"SWITCH"==r||"TRY"==r)&&(y=!0);var E=t.tokenType(n-1);if(("."==r||"?."==r||"::"==r)&&"OUTDENT"==E)return!0;if(p&&("INDENT"==r||"TERMINATOR"==r))return!0;if(("WHEN"==r||"BY"==r)&&!s)return!1;var N=T[n+1],A=N&&o.typ(N);return!e.generated&&","!=E&&(D.indexOf(r)>=0||"INDENT"==r&&!y||"DOS"==r&&"="!=E)&&("INDENT"!=r||"CLASS"!=t.tokenType(n-2)&&-1==I.indexOf(E)&&!(N&&(N.generated&&"{"==A||_.indexOf(A)>=0)))};t.detectEnd(E+1,h,r),"?"==o.typ(A)&&o.setTyp(A,"FUNC_EXIST"),E+=2,p=!1,i=!1,s=!1}else E+=1}},n.prototype.addImplicitIndentation=function(){for(var t,n=this,r=0,T=n._tokens;t=T[r];){var i=o.typ(t),s=n.tokenType(r+1);if("TERMINATOR"!=i||"THEN"!=s)if("CATCH"==i&&e(n.tokenType(r+2),["OUTDENT","TERMINATOR","FINALLY"])>=0)T.splice.apply(T,[].concat([r+2,0],[].slice.call(n.indentation(t)))),r+=4;else{if(l.indexOf(i)>=0&&"INDENT"!=s&&"BLOCK_PARAM_START"!=s&&("ELSE"!=i||"IF"!=s)&&"ELIF"!=i){var p=i,E=o.token("INDENT","2"),N=o.OUTDENT;"THEN"==p&&(E.fromThen=!0),E.generated=!0,T.splice(r+1,0,E);var A=function(e,t){var n=o.typ(e);return";"!=o.val(e)&&d.indexOf(n)>=0&&!("ELSE"==n&&"IF"!=p&&"THEN"!=p)},R=function(e,t){var r=","==n.tokenType(t-1)?t-1:t;return T.splice(r,0,N)};n.detectEnd(r+2,A,R),"THEN"==i&&T.splice(r,1)}r++}else T.splice(r,1)}},n.prototype.tagPostfixConditionals=function(){var t=this,n=function(t,n){return e(o.typ(t),["TERMINATOR","INDENT"])>=0};return t.scanTokens(function(e,r){var T=o.typ(e);if("IF"!=T&&"FOR"!=T)return 1;var i=e;return t.detectEnd(r+1,n,function(e,t){return"INDENT"!=o.typ(e)?o.setTyp(i,"POST_"+o.typ(i)):void 0}),1})},n.prototype.indentation=function(e){return[o.token("INDENT","2"),o.token("OUTDENT","2")]},n.prototype.type=function(e){var t=this._tokens[e];return t&&o.typ(t)},n.prototype.tokenType=function(e){var t=this._tokens[e];return t&&o.typ(t)};var i=[["(",")"],["[","]"],["{","}"],["{{","}}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["TAG_START","TAG_END"],["TAG_PARAM_START","TAG_PARAM_END"],["TAG_ATTRS_START","TAG_ATTRS_END"],["BLOCK_PARAM_START","BLOCK_PARAM_END"]];module.exports.INVERSES=r={};for(var s,p=0,E=t(i),N=E.length;N>p;p++){s=E[p];var A=s[0],R=s[1];r[R]=A,r[A]=R}var c=["(","[","{","INDENT","CALL_START","PARAM_START","INDEX_START","TAG_PARAM_START","BLOCK_PARAM_START","STRING_START","{{","TAG_START"],a=[")","]","}","OUTDENT","CALL_END","PARAM_END","INDEX_END","TAG_PARAM_END","BLOCK_PARAM_END","STRING_END","}}","TAG_END"],u=["CATCH","WHEN","ELSE","FINALLY"].concat(a),f=["IDENTIFIER","SUPER","@","THIS","SELF","EVENT","TRIGGER","TAG_END","IVAR","GVAR","CONST","ARGVAR","NEW","BREAK","CONTINUE","RETURN"],_=["SELECTOR","IDENTIFIER","NUMBER","STRING","SYMBOL","JS","REGEX","NEW","PARAM_START","CLASS","IF","UNLESS","TRY","SWITCH","THIS","BOOL","TRUE","FALSE","NULL","UNDEFINED","UNARY","SUPER","IVAR","GVAR","CONST","ARGVAR","SELF","@","[","(","{","--","++","SELECTOR","TAG_START","TAGID","#","SELECTOR_START","IDREF","SPLAT","DO","BLOCK_ARG","FOR","STRING_START","CONTINUE","BREAK"],O=["+","-"],I=["{","[",",","BLOCK_PARAM_END","DO"],D=["POST_IF","POST_UNLESS","POST_FOR","WHILE","UNTIL","WHEN","BY","LOOP","TERMINATOR","DEF_BODY","DEF_FRAGMENT"],l=["ELSE","TRY","FINALLY","THEN","BLOCK_PARAM_END","DO","BEGIN","CATCH_VAR"],d=["TERMINATOR","CATCH","FINALLY","ELSE","OUTDENT","LEADING_WHEN"];return T=["TERMINATOR","INDENT","OUTDENT"]}();
28
- },{"./token":10}],9:[function(require,module,exports){
29
- (function (Buffer){
30
- !function(){function t(t){return t?t.toArray?t.toArray():t:[]}function e(t){this._source=t,this._maps=[],this._map="",this._js=""}var o=require("path"),r=require("./helpers");return exports.SourceMap=e,e.prototype.source=function(){return this._source},e.prototype.options=function(){return this._source},e.prototype.filename=function(){return this.options().options.filename},e.prototype.sourceCode=function(){return this.options().options._source},e.prototype.targetPath=function(){return this.options().options.targetPath},e.prototype.sourcePath=function(){return this.options().options.sourcePath},e.prototype.sourceName=function(){return o.basename(this.sourcePath())},e.prototype.targetName=function(){return o.basename(this.targetPath())},e.prototype.sourceFiles=function(){return[this.sourceName()]},e.prototype.parse=function(){var e=this,o=/\%\$(\d*)\$\%/,s=/^(.*?)\%\$(\d*)\$\%/,n=this.options().js.split(/\n/g),i=r.locationToLineColMap(this.sourceCode());this._maps=[];for(var a,p=0,u=t(n),c=u.length;c>p;p++){a=u[p];var h=0;for(this._maps[p]=[];a.match(o);)a=a.replace(s,function(t,o,r){var s=i[parseInt(r)];h=o.length;var n=[[s[0],s[1]],[p,h]];return e._maps[p].push(n),o});n[p]=a}return e.source().js=n.join("\n"),e},e.prototype.generate=function(){this.parse();for(var e=0,r=0,s=0,n="",i=0,a=t(this._maps),p=a.length;p>i;i++){e=0;for(var u,c=0,h=t(a[i]),f=h.length;f>c;c++){u=h[c],0!=c&&(n+=",");var _=u[0],l=u[1];n+=this.encodeVlq(l[1]-e),e=l[1],n+=this.encodeVlq(0),n+=this.encodeVlq(_[0]-r),r=_[0],n+=this.encodeVlq(_[1]-s),s=_[1]}n+=";"}var m=o.relative(o.dirname(this.targetPath()),this.sourcePath()),y={version:3,file:this.sourceName().replace(/\.imba/,".js")||"",sourceRoot:this.options().sourceRoot||"",sources:[m],sourcesContent:[this.sourceCode()],names:[],mappings:n};this.options().sourcemap=y;var g=new Buffer(JSON.stringify(y)).toString("base64");return this.source().js+="\n//# sourceMappingURL=data:application/json;base64,"+g,this},VLQ_SHIFT=5,VLQ_CONTINUATION_BIT=1<<VLQ_SHIFT,VLQ_VALUE_MASK=VLQ_CONTINUATION_BIT-1,BASE64_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e.prototype.encodeVlq=function(t){for(var e,o="",r=0>t?1:0,s=(Math.abs(t)<<1)+r;s||!o;)e=s&VLQ_VALUE_MASK,s>>=VLQ_SHIFT,s&&(e|=VLQ_CONTINUATION_BIT),o+=this.encodeBase64(e);return o},e.prototype.encodeBase64=function(t){return BASE64_CHARS[t]},e}();
31
- }).call(this,require("buffer").Buffer)
32
- },{"./helpers":4,"buffer":12,"path":16}],10:[function(require,module,exports){
33
- !function(){function t(t,e,n,r){return this._type=t,this._value=e,this._loc=null!=n?n:-1,this._len=r||0,this._meta=null,this.generated=!1,this.newLine=!1,this.spaced=!1,this}function e(){var t,e=this.tokens[this.pos++];return e?(t=e._type,this.yytext=e):t="",t}function n(e,n){return new t(e,n,-1,0)}function r(t){return t._type}function o(t){return t._value}function u(t){return t._line}function i(t){return t._loc}function s(t,e){return t._type=e}function p(t,e){return t._value=e}function l(t,e){return t._line=e}function c(t,e){return t._loc=e}var a,h,_,f,x,y,v;module.exports.TOK=a={};var T=(a.TERMINATOR=1,a.IDENTIFIER=2);T=a.IVAR=2;a.CONST=3,a.VAR=4,a.IF=5,a.ELSE=6,a.DEF=7;return exports.Token=t,t.prototype.type=function(){return this._type},t.prototype.value=function(){return this._value},t.prototype.traverse=function(){},t.prototype.c=function(){return""+this._value},t.prototype.toString=function(){return this._value},t.prototype.charAt=function(t){return this._value.charAt(t)},t.prototype.slice=function(t){return this._value.slice(t)},t.prototype.region=function(){return[this._loc,this._loc+(this._len||this._value.length)]},t.prototype.sourceMapMarker=function(){return-1==this._loc?":":"%$"+this._loc+"$%"},exports.lex=e,exports.token=n,exports.typ=r,exports.val=o,exports.line=u,exports.loc=i,exports.setTyp=s,exports.setVal=p,exports.setLine=l,exports.setLoc=c,module.exports.LBRACKET=h=new t("{","{",0,0,0),module.exports.RBRACKET=_=new t("}","}",0,0,0),module.exports.LPAREN=f=new t("(","(",0,0,0),module.exports.RPAREN=x=new t(")",")",0,0,0),h.generated=!0,_.generated=!0,f.generated=!0,x.generated=!0,module.exports.INDENT=y=new t("INDENT","2",0,0,0),module.exports.OUTDENT=v=new t("OUTDENT","2",0,0,0)}();
34
- },{}],11:[function(require,module,exports){
35
-
36
- },{}],12:[function(require,module,exports){
37
- /*!
38
- * The buffer module from node.js, for the browser.
39
- *
40
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
41
- * @license MIT
42
- */
43
-
44
- var base64 = require('base64-js')
45
- var ieee754 = require('ieee754')
46
- var isArray = require('is-array')
47
-
48
- exports.Buffer = Buffer
49
- exports.SlowBuffer = SlowBuffer
50
- exports.INSPECT_MAX_BYTES = 50
51
- Buffer.poolSize = 8192 // not used by this implementation
52
-
53
- var rootParent = {}
54
-
55
- /**
56
- * If `Buffer.TYPED_ARRAY_SUPPORT`:
57
- * === true Use Uint8Array implementation (fastest)
58
- * === false Use Object implementation (most compatible, even IE6)
59
- *
60
- * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
61
- * Opera 11.6+, iOS 4.2+.
62
- *
63
- * Due to various browser bugs, sometimes the Object implementation will be used even
64
- * when the browser supports typed arrays.
65
- *
66
- * Note:
67
- *
68
- * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
69
- * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
70
- *
71
- * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property
72
- * on objects.
73
- *
74
- * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
75
- *
76
- * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
77
- * incorrect length in some situations.
78
-
79
- * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
80
- * get the Object implementation, which is slower but behaves correctly.
81
- */
82
- Buffer.TYPED_ARRAY_SUPPORT = (function () {
83
- function Bar () {}
84
- try {
85
- var arr = new Uint8Array(1)
86
- arr.foo = function () { return 42 }
87
- arr.constructor = Bar
88
- return arr.foo() === 42 && // typed array instances can be augmented
89
- arr.constructor === Bar && // constructor can be set
90
- typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
91
- arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
92
- } catch (e) {
93
- return false
94
- }
95
- })()
96
-
97
- function kMaxLength () {
98
- return Buffer.TYPED_ARRAY_SUPPORT
99
- ? 0x7fffffff
100
- : 0x3fffffff
101
- }
102
-
103
- /**
104
- * Class: Buffer
105
- * =============
106
- *
107
- * The Buffer constructor returns instances of `Uint8Array` that are augmented
108
- * with function properties for all the node `Buffer` API functions. We use
109
- * `Uint8Array` so that square bracket notation works as expected -- it returns
110
- * a single octet.
111
- *
112
- * By augmenting the instances, we can avoid modifying the `Uint8Array`
113
- * prototype.
114
- */
115
- function Buffer (arg) {
116
- if (!(this instanceof Buffer)) {
117
- // Avoid going through an ArgumentsAdaptorTrampoline in the common case.
118
- if (arguments.length > 1) return new Buffer(arg, arguments[1])
119
- return new Buffer(arg)
120
- }
121
-
122
- this.length = 0
123
- this.parent = undefined
124
-
125
- // Common case.
126
- if (typeof arg === 'number') {
127
- return fromNumber(this, arg)
128
- }
129
-
130
- // Slightly less common case.
131
- if (typeof arg === 'string') {
132
- return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')
133
- }
134
-
135
- // Unusual.
136
- return fromObject(this, arg)
137
- }
138
-
139
- function fromNumber (that, length) {
140
- that = allocate(that, length < 0 ? 0 : checked(length) | 0)
141
- if (!Buffer.TYPED_ARRAY_SUPPORT) {
142
- for (var i = 0; i < length; i++) {
143
- that[i] = 0
144
- }
145
- }
146
- return that
147
- }
148
-
149
- function fromString (that, string, encoding) {
150
- if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'
151
-
152
- // Assumption: byteLength() return value is always < kMaxLength.
153
- var length = byteLength(string, encoding) | 0
154
- that = allocate(that, length)
155
-
156
- that.write(string, encoding)
157
- return that
158
- }
159
-
160
- function fromObject (that, object) {
161
- if (Buffer.isBuffer(object)) return fromBuffer(that, object)
162
-
163
- if (isArray(object)) return fromArray(that, object)
164
-
165
- if (object == null) {
166
- throw new TypeError('must start with number, buffer, array or string')
167
- }
168
-
169
- if (typeof ArrayBuffer !== 'undefined') {
170
- if (object.buffer instanceof ArrayBuffer) {
171
- return fromTypedArray(that, object)
172
- }
173
- if (object instanceof ArrayBuffer) {
174
- return fromArrayBuffer(that, object)
175
- }
176
- }
177
-
178
- if (object.length) return fromArrayLike(that, object)
179
-
180
- return fromJsonObject(that, object)
181
- }
182
-
183
- function fromBuffer (that, buffer) {
184
- var length = checked(buffer.length) | 0
185
- that = allocate(that, length)
186
- buffer.copy(that, 0, 0, length)
187
- return that
188
- }
189
-
190
- function fromArray (that, array) {
191
- var length = checked(array.length) | 0
192
- that = allocate(that, length)
193
- for (var i = 0; i < length; i += 1) {
194
- that[i] = array[i] & 255
195
- }
196
- return that
197
- }
198
-
199
- // Duplicate of fromArray() to keep fromArray() monomorphic.
200
- function fromTypedArray (that, array) {
201
- var length = checked(array.length) | 0
202
- that = allocate(that, length)
203
- // Truncating the elements is probably not what people expect from typed
204
- // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior
205
- // of the old Buffer constructor.
206
- for (var i = 0; i < length; i += 1) {
207
- that[i] = array[i] & 255
208
- }
209
- return that
210
- }
211
-
212
- function fromArrayBuffer (that, array) {
213
- if (Buffer.TYPED_ARRAY_SUPPORT) {
214
- // Return an augmented `Uint8Array` instance, for best performance
215
- array.byteLength
216
- that = Buffer._augment(new Uint8Array(array))
217
- } else {
218
- // Fallback: Return an object instance of the Buffer class
219
- that = fromTypedArray(that, new Uint8Array(array))
220
- }
221
- return that
222
- }
223
-
224
- function fromArrayLike (that, array) {
225
- var length = checked(array.length) | 0
226
- that = allocate(that, length)
227
- for (var i = 0; i < length; i += 1) {
228
- that[i] = array[i] & 255
229
- }
230
- return that
231
- }
232
-
233
- // Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.
234
- // Returns a zero-length buffer for inputs that don't conform to the spec.
235
- function fromJsonObject (that, object) {
236
- var array
237
- var length = 0
238
-
239
- if (object.type === 'Buffer' && isArray(object.data)) {
240
- array = object.data
241
- length = checked(array.length) | 0
242
- }
243
- that = allocate(that, length)
244
-
245
- for (var i = 0; i < length; i += 1) {
246
- that[i] = array[i] & 255
247
- }
248
- return that
249
- }
250
-
251
- function allocate (that, length) {
252
- if (Buffer.TYPED_ARRAY_SUPPORT) {
253
- // Return an augmented `Uint8Array` instance, for best performance
254
- that = Buffer._augment(new Uint8Array(length))
255
- } else {
256
- // Fallback: Return an object instance of the Buffer class
257
- that.length = length
258
- that._isBuffer = true
259
- }
260
-
261
- var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1
262
- if (fromPool) that.parent = rootParent
263
-
264
- return that
265
- }
266
-
267
- function checked (length) {
268
- // Note: cannot use `length < kMaxLength` here because that fails when
269
- // length is NaN (which is otherwise coerced to zero.)
270
- if (length >= kMaxLength()) {
271
- throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
272
- 'size: 0x' + kMaxLength().toString(16) + ' bytes')
273
- }
274
- return length | 0
275
- }
276
-
277
- function SlowBuffer (subject, encoding) {
278
- if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)
279
-
280
- var buf = new Buffer(subject, encoding)
281
- delete buf.parent
282
- return buf
283
- }
284
-
285
- Buffer.isBuffer = function isBuffer (b) {
286
- return !!(b != null && b._isBuffer)
287
- }
288
-
289
- Buffer.compare = function compare (a, b) {
290
- if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
291
- throw new TypeError('Arguments must be Buffers')
292
- }
293
-
294
- if (a === b) return 0
295
-
296
- var x = a.length
297
- var y = b.length
298
-
299
- var i = 0
300
- var len = Math.min(x, y)
301
- while (i < len) {
302
- if (a[i] !== b[i]) break
303
-
304
- ++i
305
- }
306
-
307
- if (i !== len) {
308
- x = a[i]
309
- y = b[i]
310
- }
311
-
312
- if (x < y) return -1
313
- if (y < x) return 1
314
- return 0
315
- }
316
-
317
- Buffer.isEncoding = function isEncoding (encoding) {
318
- switch (String(encoding).toLowerCase()) {
319
- case 'hex':
320
- case 'utf8':
321
- case 'utf-8':
322
- case 'ascii':
323
- case 'binary':
324
- case 'base64':
325
- case 'raw':
326
- case 'ucs2':
327
- case 'ucs-2':
328
- case 'utf16le':
329
- case 'utf-16le':
330
- return true
331
- default:
332
- return false
333
- }
334
- }
335
-
336
- Buffer.concat = function concat (list, length) {
337
- if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')
338
-
339
- if (list.length === 0) {
340
- return new Buffer(0)
341
- }
342
-
343
- var i
344
- if (length === undefined) {
345
- length = 0
346
- for (i = 0; i < list.length; i++) {
347
- length += list[i].length
348
- }
349
- }
350
-
351
- var buf = new Buffer(length)
352
- var pos = 0
353
- for (i = 0; i < list.length; i++) {
354
- var item = list[i]
355
- item.copy(buf, pos)
356
- pos += item.length
357
- }
358
- return buf
359
- }
360
-
361
- function byteLength (string, encoding) {
362
- if (typeof string !== 'string') string = '' + string
363
-
364
- var len = string.length
365
- if (len === 0) return 0
366
-
367
- // Use a for loop to avoid recursion
368
- var loweredCase = false
369
- for (;;) {
370
- switch (encoding) {
371
- case 'ascii':
372
- case 'binary':
373
- // Deprecated
374
- case 'raw':
375
- case 'raws':
376
- return len
377
- case 'utf8':
378
- case 'utf-8':
379
- return utf8ToBytes(string).length
380
- case 'ucs2':
381
- case 'ucs-2':
382
- case 'utf16le':
383
- case 'utf-16le':
384
- return len * 2
385
- case 'hex':
386
- return len >>> 1
387
- case 'base64':
388
- return base64ToBytes(string).length
389
- default:
390
- if (loweredCase) return utf8ToBytes(string).length // assume utf8
391
- encoding = ('' + encoding).toLowerCase()
392
- loweredCase = true
393
- }
394
- }
395
- }
396
- Buffer.byteLength = byteLength
397
-
398
- // pre-set for values that may exist in the future
399
- Buffer.prototype.length = undefined
400
- Buffer.prototype.parent = undefined
401
-
402
- function slowToString (encoding, start, end) {
403
- var loweredCase = false
404
-
405
- start = start | 0
406
- end = end === undefined || end === Infinity ? this.length : end | 0
407
-
408
- if (!encoding) encoding = 'utf8'
409
- if (start < 0) start = 0
410
- if (end > this.length) end = this.length
411
- if (end <= start) return ''
412
-
413
- while (true) {
414
- switch (encoding) {
415
- case 'hex':
416
- return hexSlice(this, start, end)
417
-
418
- case 'utf8':
419
- case 'utf-8':
420
- return utf8Slice(this, start, end)
421
-
422
- case 'ascii':
423
- return asciiSlice(this, start, end)
424
-
425
- case 'binary':
426
- return binarySlice(this, start, end)
427
-
428
- case 'base64':
429
- return base64Slice(this, start, end)
430
-
431
- case 'ucs2':
432
- case 'ucs-2':
433
- case 'utf16le':
434
- case 'utf-16le':
435
- return utf16leSlice(this, start, end)
436
-
437
- default:
438
- if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
439
- encoding = (encoding + '').toLowerCase()
440
- loweredCase = true
441
- }
442
- }
443
- }
444
-
445
- Buffer.prototype.toString = function toString () {
446
- var length = this.length | 0
447
- if (length === 0) return ''
448
- if (arguments.length === 0) return utf8Slice(this, 0, length)
449
- return slowToString.apply(this, arguments)
450
- }
451
-
452
- Buffer.prototype.equals = function equals (b) {
453
- if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
454
- if (this === b) return true
455
- return Buffer.compare(this, b) === 0
456
- }
457
-
458
- Buffer.prototype.inspect = function inspect () {
459
- var str = ''
460
- var max = exports.INSPECT_MAX_BYTES
461
- if (this.length > 0) {
462
- str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
463
- if (this.length > max) str += ' ... '
464
- }
465
- return '<Buffer ' + str + '>'
466
- }
467
-
468
- Buffer.prototype.compare = function compare (b) {
469
- if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
470
- if (this === b) return 0
471
- return Buffer.compare(this, b)
472
- }
473
-
474
- Buffer.prototype.indexOf = function indexOf (val, byteOffset) {
475
- if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff
476
- else if (byteOffset < -0x80000000) byteOffset = -0x80000000
477
- byteOffset >>= 0
478
-
479
- if (this.length === 0) return -1
480
- if (byteOffset >= this.length) return -1
481
-
482
- // Negative offsets start from the end of the buffer
483
- if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)
484
-
485
- if (typeof val === 'string') {
486
- if (val.length === 0) return -1 // special case: looking for empty string always fails
487
- return String.prototype.indexOf.call(this, val, byteOffset)
488
- }
489
- if (Buffer.isBuffer(val)) {
490
- return arrayIndexOf(this, val, byteOffset)
491
- }
492
- if (typeof val === 'number') {
493
- if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {
494
- return Uint8Array.prototype.indexOf.call(this, val, byteOffset)
495
- }
496
- return arrayIndexOf(this, [ val ], byteOffset)
497
- }
498
-
499
- function arrayIndexOf (arr, val, byteOffset) {
500
- var foundIndex = -1
501
- for (var i = 0; byteOffset + i < arr.length; i++) {
502
- if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {
503
- if (foundIndex === -1) foundIndex = i
504
- if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex
505
- } else {
506
- foundIndex = -1
507
- }
508
- }
509
- return -1
510
- }
511
-
512
- throw new TypeError('val must be string, number or Buffer')
513
- }
514
-
515
- // `get` is deprecated
516
- Buffer.prototype.get = function get (offset) {
517
- console.log('.get() is deprecated. Access using array indexes instead.')
518
- return this.readUInt8(offset)
519
- }
520
-
521
- // `set` is deprecated
522
- Buffer.prototype.set = function set (v, offset) {
523
- console.log('.set() is deprecated. Access using array indexes instead.')
524
- return this.writeUInt8(v, offset)
525
- }
526
-
527
- function hexWrite (buf, string, offset, length) {
528
- offset = Number(offset) || 0
529
- var remaining = buf.length - offset
530
- if (!length) {
531
- length = remaining
532
- } else {
533
- length = Number(length)
534
- if (length > remaining) {
535
- length = remaining
536
- }
537
- }
538
-
539
- // must be an even number of digits
540
- var strLen = string.length
541
- if (strLen % 2 !== 0) throw new Error('Invalid hex string')
542
-
543
- if (length > strLen / 2) {
544
- length = strLen / 2
545
- }
546
- for (var i = 0; i < length; i++) {
547
- var parsed = parseInt(string.substr(i * 2, 2), 16)
548
- if (isNaN(parsed)) throw new Error('Invalid hex string')
549
- buf[offset + i] = parsed
550
- }
551
- return i
552
- }
553
-
554
- function utf8Write (buf, string, offset, length) {
555
- return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
556
- }
557
-
558
- function asciiWrite (buf, string, offset, length) {
559
- return blitBuffer(asciiToBytes(string), buf, offset, length)
560
- }
561
-
562
- function binaryWrite (buf, string, offset, length) {
563
- return asciiWrite(buf, string, offset, length)
564
- }
565
-
566
- function base64Write (buf, string, offset, length) {
567
- return blitBuffer(base64ToBytes(string), buf, offset, length)
568
- }
569
-
570
- function ucs2Write (buf, string, offset, length) {
571
- return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
572
- }
573
-
574
- Buffer.prototype.write = function write (string, offset, length, encoding) {
575
- // Buffer#write(string)
576
- if (offset === undefined) {
577
- encoding = 'utf8'
578
- length = this.length
579
- offset = 0
580
- // Buffer#write(string, encoding)
581
- } else if (length === undefined && typeof offset === 'string') {
582
- encoding = offset
583
- length = this.length
584
- offset = 0
585
- // Buffer#write(string, offset[, length][, encoding])
586
- } else if (isFinite(offset)) {
587
- offset = offset | 0
588
- if (isFinite(length)) {
589
- length = length | 0
590
- if (encoding === undefined) encoding = 'utf8'
591
- } else {
592
- encoding = length
593
- length = undefined
594
- }
595
- // legacy write(string, encoding, offset, length) - remove in v0.13
596
- } else {
597
- var swap = encoding
598
- encoding = offset
599
- offset = length | 0
600
- length = swap
601
- }
602
-
603
- var remaining = this.length - offset
604
- if (length === undefined || length > remaining) length = remaining
605
-
606
- if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
607
- throw new RangeError('attempt to write outside buffer bounds')
608
- }
609
-
610
- if (!encoding) encoding = 'utf8'
611
-
612
- var loweredCase = false
613
- for (;;) {
614
- switch (encoding) {
615
- case 'hex':
616
- return hexWrite(this, string, offset, length)
617
-
618
- case 'utf8':
619
- case 'utf-8':
620
- return utf8Write(this, string, offset, length)
621
-
622
- case 'ascii':
623
- return asciiWrite(this, string, offset, length)
624
-
625
- case 'binary':
626
- return binaryWrite(this, string, offset, length)
627
-
628
- case 'base64':
629
- // Warning: maxLength not taken into account in base64Write
630
- return base64Write(this, string, offset, length)
631
-
632
- case 'ucs2':
633
- case 'ucs-2':
634
- case 'utf16le':
635
- case 'utf-16le':
636
- return ucs2Write(this, string, offset, length)
637
-
638
- default:
639
- if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
640
- encoding = ('' + encoding).toLowerCase()
641
- loweredCase = true
642
- }
643
- }
644
- }
645
-
646
- Buffer.prototype.toJSON = function toJSON () {
647
- return {
648
- type: 'Buffer',
649
- data: Array.prototype.slice.call(this._arr || this, 0)
650
- }
651
- }
652
-
653
- function base64Slice (buf, start, end) {
654
- if (start === 0 && end === buf.length) {
655
- return base64.fromByteArray(buf)
656
- } else {
657
- return base64.fromByteArray(buf.slice(start, end))
658
- }
659
- }
660
-
661
- function utf8Slice (buf, start, end) {
662
- var res = ''
663
- var tmp = ''
664
- end = Math.min(buf.length, end)
665
-
666
- for (var i = start; i < end; i++) {
667
- if (buf[i] <= 0x7F) {
668
- res += decodeUtf8Char(tmp) + String.fromCharCode(buf[i])
669
- tmp = ''
670
- } else {
671
- tmp += '%' + buf[i].toString(16)
672
- }
673
- }
674
-
675
- return res + decodeUtf8Char(tmp)
676
- }
677
-
678
- function asciiSlice (buf, start, end) {
679
- var ret = ''
680
- end = Math.min(buf.length, end)
681
-
682
- for (var i = start; i < end; i++) {
683
- ret += String.fromCharCode(buf[i] & 0x7F)
684
- }
685
- return ret
686
- }
687
-
688
- function binarySlice (buf, start, end) {
689
- var ret = ''
690
- end = Math.min(buf.length, end)
691
-
692
- for (var i = start; i < end; i++) {
693
- ret += String.fromCharCode(buf[i])
694
- }
695
- return ret
696
- }
697
-
698
- function hexSlice (buf, start, end) {
699
- var len = buf.length
700
-
701
- if (!start || start < 0) start = 0
702
- if (!end || end < 0 || end > len) end = len
703
-
704
- var out = ''
705
- for (var i = start; i < end; i++) {
706
- out += toHex(buf[i])
707
- }
708
- return out
709
- }
710
-
711
- function utf16leSlice (buf, start, end) {
712
- var bytes = buf.slice(start, end)
713
- var res = ''
714
- for (var i = 0; i < bytes.length; i += 2) {
715
- res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
716
- }
717
- return res
718
- }
719
-
720
- Buffer.prototype.slice = function slice (start, end) {
721
- var len = this.length
722
- start = ~~start
723
- end = end === undefined ? len : ~~end
724
-
725
- if (start < 0) {
726
- start += len
727
- if (start < 0) start = 0
728
- } else if (start > len) {
729
- start = len
730
- }
731
-
732
- if (end < 0) {
733
- end += len
734
- if (end < 0) end = 0
735
- } else if (end > len) {
736
- end = len
737
- }
738
-
739
- if (end < start) end = start
740
-
741
- var newBuf
742
- if (Buffer.TYPED_ARRAY_SUPPORT) {
743
- newBuf = Buffer._augment(this.subarray(start, end))
744
- } else {
745
- var sliceLen = end - start
746
- newBuf = new Buffer(sliceLen, undefined)
747
- for (var i = 0; i < sliceLen; i++) {
748
- newBuf[i] = this[i + start]
749
- }
750
- }
751
-
752
- if (newBuf.length) newBuf.parent = this.parent || this
753
-
754
- return newBuf
755
- }
756
-
757
- /*
758
- * Need to make sure that buffer isn't trying to write out of bounds.
759
- */
760
- function checkOffset (offset, ext, length) {
761
- if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
762
- if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
763
- }
764
-
765
- Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
766
- offset = offset | 0
767
- byteLength = byteLength | 0
768
- if (!noAssert) checkOffset(offset, byteLength, this.length)
769
-
770
- var val = this[offset]
771
- var mul = 1
772
- var i = 0
773
- while (++i < byteLength && (mul *= 0x100)) {
774
- val += this[offset + i] * mul
775
- }
776
-
777
- return val
778
- }
779
-
780
- Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
781
- offset = offset | 0
782
- byteLength = byteLength | 0
783
- if (!noAssert) {
784
- checkOffset(offset, byteLength, this.length)
785
- }
786
-
787
- var val = this[offset + --byteLength]
788
- var mul = 1
789
- while (byteLength > 0 && (mul *= 0x100)) {
790
- val += this[offset + --byteLength] * mul
791
- }
792
-
793
- return val
794
- }
795
-
796
- Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
797
- if (!noAssert) checkOffset(offset, 1, this.length)
798
- return this[offset]
799
- }
800
-
801
- Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
802
- if (!noAssert) checkOffset(offset, 2, this.length)
803
- return this[offset] | (this[offset + 1] << 8)
804
- }
805
-
806
- Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
807
- if (!noAssert) checkOffset(offset, 2, this.length)
808
- return (this[offset] << 8) | this[offset + 1]
809
- }
810
-
811
- Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
812
- if (!noAssert) checkOffset(offset, 4, this.length)
813
-
814
- return ((this[offset]) |
815
- (this[offset + 1] << 8) |
816
- (this[offset + 2] << 16)) +
817
- (this[offset + 3] * 0x1000000)
818
- }
819
-
820
- Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
821
- if (!noAssert) checkOffset(offset, 4, this.length)
822
-
823
- return (this[offset] * 0x1000000) +
824
- ((this[offset + 1] << 16) |
825
- (this[offset + 2] << 8) |
826
- this[offset + 3])
827
- }
828
-
829
- Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
830
- offset = offset | 0
831
- byteLength = byteLength | 0
832
- if (!noAssert) checkOffset(offset, byteLength, this.length)
833
-
834
- var val = this[offset]
835
- var mul = 1
836
- var i = 0
837
- while (++i < byteLength && (mul *= 0x100)) {
838
- val += this[offset + i] * mul
839
- }
840
- mul *= 0x80
841
-
842
- if (val >= mul) val -= Math.pow(2, 8 * byteLength)
843
-
844
- return val
845
- }
846
-
847
- Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
848
- offset = offset | 0
849
- byteLength = byteLength | 0
850
- if (!noAssert) checkOffset(offset, byteLength, this.length)
851
-
852
- var i = byteLength
853
- var mul = 1
854
- var val = this[offset + --i]
855
- while (i > 0 && (mul *= 0x100)) {
856
- val += this[offset + --i] * mul
857
- }
858
- mul *= 0x80
859
-
860
- if (val >= mul) val -= Math.pow(2, 8 * byteLength)
861
-
862
- return val
863
- }
864
-
865
- Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
866
- if (!noAssert) checkOffset(offset, 1, this.length)
867
- if (!(this[offset] & 0x80)) return (this[offset])
868
- return ((0xff - this[offset] + 1) * -1)
869
- }
870
-
871
- Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
872
- if (!noAssert) checkOffset(offset, 2, this.length)
873
- var val = this[offset] | (this[offset + 1] << 8)
874
- return (val & 0x8000) ? val | 0xFFFF0000 : val
875
- }
876
-
877
- Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
878
- if (!noAssert) checkOffset(offset, 2, this.length)
879
- var val = this[offset + 1] | (this[offset] << 8)
880
- return (val & 0x8000) ? val | 0xFFFF0000 : val
881
- }
882
-
883
- Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
884
- if (!noAssert) checkOffset(offset, 4, this.length)
885
-
886
- return (this[offset]) |
887
- (this[offset + 1] << 8) |
888
- (this[offset + 2] << 16) |
889
- (this[offset + 3] << 24)
890
- }
891
-
892
- Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
893
- if (!noAssert) checkOffset(offset, 4, this.length)
894
-
895
- return (this[offset] << 24) |
896
- (this[offset + 1] << 16) |
897
- (this[offset + 2] << 8) |
898
- (this[offset + 3])
899
- }
900
-
901
- Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
902
- if (!noAssert) checkOffset(offset, 4, this.length)
903
- return ieee754.read(this, offset, true, 23, 4)
904
- }
905
-
906
- Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
907
- if (!noAssert) checkOffset(offset, 4, this.length)
908
- return ieee754.read(this, offset, false, 23, 4)
909
- }
910
-
911
- Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
912
- if (!noAssert) checkOffset(offset, 8, this.length)
913
- return ieee754.read(this, offset, true, 52, 8)
914
- }
915
-
916
- Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
917
- if (!noAssert) checkOffset(offset, 8, this.length)
918
- return ieee754.read(this, offset, false, 52, 8)
919
- }
920
-
921
- function checkInt (buf, value, offset, ext, max, min) {
922
- if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')
923
- if (value > max || value < min) throw new RangeError('value is out of bounds')
924
- if (offset + ext > buf.length) throw new RangeError('index out of range')
925
- }
926
-
927
- Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
928
- value = +value
929
- offset = offset | 0
930
- byteLength = byteLength | 0
931
- if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
932
-
933
- var mul = 1
934
- var i = 0
935
- this[offset] = value & 0xFF
936
- while (++i < byteLength && (mul *= 0x100)) {
937
- this[offset + i] = (value / mul) & 0xFF
938
- }
939
-
940
- return offset + byteLength
941
- }
942
-
943
- Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
944
- value = +value
945
- offset = offset | 0
946
- byteLength = byteLength | 0
947
- if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)
948
-
949
- var i = byteLength - 1
950
- var mul = 1
951
- this[offset + i] = value & 0xFF
952
- while (--i >= 0 && (mul *= 0x100)) {
953
- this[offset + i] = (value / mul) & 0xFF
954
- }
955
-
956
- return offset + byteLength
957
- }
958
-
959
- Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
960
- value = +value
961
- offset = offset | 0
962
- if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
963
- if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
964
- this[offset] = value
965
- return offset + 1
966
- }
967
-
968
- function objectWriteUInt16 (buf, value, offset, littleEndian) {
969
- if (value < 0) value = 0xffff + value + 1
970
- for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {
971
- buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
972
- (littleEndian ? i : 1 - i) * 8
973
- }
974
- }
975
-
976
- Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
977
- value = +value
978
- offset = offset | 0
979
- if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
980
- if (Buffer.TYPED_ARRAY_SUPPORT) {
981
- this[offset] = value
982
- this[offset + 1] = (value >>> 8)
983
- } else {
984
- objectWriteUInt16(this, value, offset, true)
985
- }
986
- return offset + 2
987
- }
988
-
989
- Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
990
- value = +value
991
- offset = offset | 0
992
- if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
993
- if (Buffer.TYPED_ARRAY_SUPPORT) {
994
- this[offset] = (value >>> 8)
995
- this[offset + 1] = value
996
- } else {
997
- objectWriteUInt16(this, value, offset, false)
998
- }
999
- return offset + 2
1000
- }
1001
-
1002
- function objectWriteUInt32 (buf, value, offset, littleEndian) {
1003
- if (value < 0) value = 0xffffffff + value + 1
1004
- for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {
1005
- buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
1006
- }
1007
- }
1008
-
1009
- Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
1010
- value = +value
1011
- offset = offset | 0
1012
- if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
1013
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1014
- this[offset + 3] = (value >>> 24)
1015
- this[offset + 2] = (value >>> 16)
1016
- this[offset + 1] = (value >>> 8)
1017
- this[offset] = value
1018
- } else {
1019
- objectWriteUInt32(this, value, offset, true)
1020
- }
1021
- return offset + 4
1022
- }
1023
-
1024
- Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
1025
- value = +value
1026
- offset = offset | 0
1027
- if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
1028
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1029
- this[offset] = (value >>> 24)
1030
- this[offset + 1] = (value >>> 16)
1031
- this[offset + 2] = (value >>> 8)
1032
- this[offset + 3] = value
1033
- } else {
1034
- objectWriteUInt32(this, value, offset, false)
1035
- }
1036
- return offset + 4
1037
- }
1038
-
1039
- Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
1040
- value = +value
1041
- offset = offset | 0
1042
- if (!noAssert) {
1043
- var limit = Math.pow(2, 8 * byteLength - 1)
1044
-
1045
- checkInt(this, value, offset, byteLength, limit - 1, -limit)
1046
- }
1047
-
1048
- var i = 0
1049
- var mul = 1
1050
- var sub = value < 0 ? 1 : 0
1051
- this[offset] = value & 0xFF
1052
- while (++i < byteLength && (mul *= 0x100)) {
1053
- this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
1054
- }
1055
-
1056
- return offset + byteLength
1057
- }
1058
-
1059
- Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
1060
- value = +value
1061
- offset = offset | 0
1062
- if (!noAssert) {
1063
- var limit = Math.pow(2, 8 * byteLength - 1)
1064
-
1065
- checkInt(this, value, offset, byteLength, limit - 1, -limit)
1066
- }
1067
-
1068
- var i = byteLength - 1
1069
- var mul = 1
1070
- var sub = value < 0 ? 1 : 0
1071
- this[offset + i] = value & 0xFF
1072
- while (--i >= 0 && (mul *= 0x100)) {
1073
- this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
1074
- }
1075
-
1076
- return offset + byteLength
1077
- }
1078
-
1079
- Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
1080
- value = +value
1081
- offset = offset | 0
1082
- if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
1083
- if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
1084
- if (value < 0) value = 0xff + value + 1
1085
- this[offset] = value
1086
- return offset + 1
1087
- }
1088
-
1089
- Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
1090
- value = +value
1091
- offset = offset | 0
1092
- if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
1093
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1094
- this[offset] = value
1095
- this[offset + 1] = (value >>> 8)
1096
- } else {
1097
- objectWriteUInt16(this, value, offset, true)
1098
- }
1099
- return offset + 2
1100
- }
1101
-
1102
- Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
1103
- value = +value
1104
- offset = offset | 0
1105
- if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
1106
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1107
- this[offset] = (value >>> 8)
1108
- this[offset + 1] = value
1109
- } else {
1110
- objectWriteUInt16(this, value, offset, false)
1111
- }
1112
- return offset + 2
1113
- }
1114
-
1115
- Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
1116
- value = +value
1117
- offset = offset | 0
1118
- if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
1119
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1120
- this[offset] = value
1121
- this[offset + 1] = (value >>> 8)
1122
- this[offset + 2] = (value >>> 16)
1123
- this[offset + 3] = (value >>> 24)
1124
- } else {
1125
- objectWriteUInt32(this, value, offset, true)
1126
- }
1127
- return offset + 4
1128
- }
1129
-
1130
- Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
1131
- value = +value
1132
- offset = offset | 0
1133
- if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
1134
- if (value < 0) value = 0xffffffff + value + 1
1135
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1136
- this[offset] = (value >>> 24)
1137
- this[offset + 1] = (value >>> 16)
1138
- this[offset + 2] = (value >>> 8)
1139
- this[offset + 3] = value
1140
- } else {
1141
- objectWriteUInt32(this, value, offset, false)
1142
- }
1143
- return offset + 4
1144
- }
1145
-
1146
- function checkIEEE754 (buf, value, offset, ext, max, min) {
1147
- if (value > max || value < min) throw new RangeError('value is out of bounds')
1148
- if (offset + ext > buf.length) throw new RangeError('index out of range')
1149
- if (offset < 0) throw new RangeError('index out of range')
1150
- }
1151
-
1152
- function writeFloat (buf, value, offset, littleEndian, noAssert) {
1153
- if (!noAssert) {
1154
- checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
1155
- }
1156
- ieee754.write(buf, value, offset, littleEndian, 23, 4)
1157
- return offset + 4
1158
- }
1159
-
1160
- Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
1161
- return writeFloat(this, value, offset, true, noAssert)
1162
- }
1163
-
1164
- Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
1165
- return writeFloat(this, value, offset, false, noAssert)
1166
- }
1167
-
1168
- function writeDouble (buf, value, offset, littleEndian, noAssert) {
1169
- if (!noAssert) {
1170
- checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
1171
- }
1172
- ieee754.write(buf, value, offset, littleEndian, 52, 8)
1173
- return offset + 8
1174
- }
1175
-
1176
- Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
1177
- return writeDouble(this, value, offset, true, noAssert)
1178
- }
1179
-
1180
- Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
1181
- return writeDouble(this, value, offset, false, noAssert)
1182
- }
1183
-
1184
- // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
1185
- Buffer.prototype.copy = function copy (target, targetStart, start, end) {
1186
- if (!start) start = 0
1187
- if (!end && end !== 0) end = this.length
1188
- if (targetStart >= target.length) targetStart = target.length
1189
- if (!targetStart) targetStart = 0
1190
- if (end > 0 && end < start) end = start
1191
-
1192
- // Copy 0 bytes; we're done
1193
- if (end === start) return 0
1194
- if (target.length === 0 || this.length === 0) return 0
1195
-
1196
- // Fatal error conditions
1197
- if (targetStart < 0) {
1198
- throw new RangeError('targetStart out of bounds')
1199
- }
1200
- if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
1201
- if (end < 0) throw new RangeError('sourceEnd out of bounds')
1202
-
1203
- // Are we oob?
1204
- if (end > this.length) end = this.length
1205
- if (target.length - targetStart < end - start) {
1206
- end = target.length - targetStart + start
1207
- }
1208
-
1209
- var len = end - start
1210
- var i
1211
-
1212
- if (this === target && start < targetStart && targetStart < end) {
1213
- // descending copy from end
1214
- for (i = len - 1; i >= 0; i--) {
1215
- target[i + targetStart] = this[i + start]
1216
- }
1217
- } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
1218
- // ascending copy from start
1219
- for (i = 0; i < len; i++) {
1220
- target[i + targetStart] = this[i + start]
1221
- }
1222
- } else {
1223
- target._set(this.subarray(start, start + len), targetStart)
1224
- }
1225
-
1226
- return len
1227
- }
1228
-
1229
- // fill(value, start=0, end=buffer.length)
1230
- Buffer.prototype.fill = function fill (value, start, end) {
1231
- if (!value) value = 0
1232
- if (!start) start = 0
1233
- if (!end) end = this.length
1234
-
1235
- if (end < start) throw new RangeError('end < start')
1236
-
1237
- // Fill 0 bytes; we're done
1238
- if (end === start) return
1239
- if (this.length === 0) return
1240
-
1241
- if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')
1242
- if (end < 0 || end > this.length) throw new RangeError('end out of bounds')
1243
-
1244
- var i
1245
- if (typeof value === 'number') {
1246
- for (i = start; i < end; i++) {
1247
- this[i] = value
1248
- }
1249
- } else {
1250
- var bytes = utf8ToBytes(value.toString())
1251
- var len = bytes.length
1252
- for (i = start; i < end; i++) {
1253
- this[i] = bytes[i % len]
1254
- }
1255
- }
1256
-
1257
- return this
1258
- }
1259
-
1260
- /**
1261
- * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.
1262
- * Added in Node 0.12. Only available in browsers that support ArrayBuffer.
1263
- */
1264
- Buffer.prototype.toArrayBuffer = function toArrayBuffer () {
1265
- if (typeof Uint8Array !== 'undefined') {
1266
- if (Buffer.TYPED_ARRAY_SUPPORT) {
1267
- return (new Buffer(this)).buffer
1268
- } else {
1269
- var buf = new Uint8Array(this.length)
1270
- for (var i = 0, len = buf.length; i < len; i += 1) {
1271
- buf[i] = this[i]
1272
- }
1273
- return buf.buffer
1274
- }
1275
- } else {
1276
- throw new TypeError('Buffer.toArrayBuffer not supported in this browser')
1277
- }
1278
- }
1279
-
1280
- // HELPER FUNCTIONS
1281
- // ================
1282
-
1283
- var BP = Buffer.prototype
1284
-
1285
- /**
1286
- * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods
1287
- */
1288
- Buffer._augment = function _augment (arr) {
1289
- arr.constructor = Buffer
1290
- arr._isBuffer = true
1291
-
1292
- // save reference to original Uint8Array set method before overwriting
1293
- arr._set = arr.set
1294
-
1295
- // deprecated
1296
- arr.get = BP.get
1297
- arr.set = BP.set
1298
-
1299
- arr.write = BP.write
1300
- arr.toString = BP.toString
1301
- arr.toLocaleString = BP.toString
1302
- arr.toJSON = BP.toJSON
1303
- arr.equals = BP.equals
1304
- arr.compare = BP.compare
1305
- arr.indexOf = BP.indexOf
1306
- arr.copy = BP.copy
1307
- arr.slice = BP.slice
1308
- arr.readUIntLE = BP.readUIntLE
1309
- arr.readUIntBE = BP.readUIntBE
1310
- arr.readUInt8 = BP.readUInt8
1311
- arr.readUInt16LE = BP.readUInt16LE
1312
- arr.readUInt16BE = BP.readUInt16BE
1313
- arr.readUInt32LE = BP.readUInt32LE
1314
- arr.readUInt32BE = BP.readUInt32BE
1315
- arr.readIntLE = BP.readIntLE
1316
- arr.readIntBE = BP.readIntBE
1317
- arr.readInt8 = BP.readInt8
1318
- arr.readInt16LE = BP.readInt16LE
1319
- arr.readInt16BE = BP.readInt16BE
1320
- arr.readInt32LE = BP.readInt32LE
1321
- arr.readInt32BE = BP.readInt32BE
1322
- arr.readFloatLE = BP.readFloatLE
1323
- arr.readFloatBE = BP.readFloatBE
1324
- arr.readDoubleLE = BP.readDoubleLE
1325
- arr.readDoubleBE = BP.readDoubleBE
1326
- arr.writeUInt8 = BP.writeUInt8
1327
- arr.writeUIntLE = BP.writeUIntLE
1328
- arr.writeUIntBE = BP.writeUIntBE
1329
- arr.writeUInt16LE = BP.writeUInt16LE
1330
- arr.writeUInt16BE = BP.writeUInt16BE
1331
- arr.writeUInt32LE = BP.writeUInt32LE
1332
- arr.writeUInt32BE = BP.writeUInt32BE
1333
- arr.writeIntLE = BP.writeIntLE
1334
- arr.writeIntBE = BP.writeIntBE
1335
- arr.writeInt8 = BP.writeInt8
1336
- arr.writeInt16LE = BP.writeInt16LE
1337
- arr.writeInt16BE = BP.writeInt16BE
1338
- arr.writeInt32LE = BP.writeInt32LE
1339
- arr.writeInt32BE = BP.writeInt32BE
1340
- arr.writeFloatLE = BP.writeFloatLE
1341
- arr.writeFloatBE = BP.writeFloatBE
1342
- arr.writeDoubleLE = BP.writeDoubleLE
1343
- arr.writeDoubleBE = BP.writeDoubleBE
1344
- arr.fill = BP.fill
1345
- arr.inspect = BP.inspect
1346
- arr.toArrayBuffer = BP.toArrayBuffer
1347
-
1348
- return arr
1349
- }
1350
-
1351
- var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
1352
-
1353
- function base64clean (str) {
1354
- // Node strips out invalid characters like \n and \t from the string, base64-js does not
1355
- str = stringtrim(str).replace(INVALID_BASE64_RE, '')
1356
- // Node converts strings with length < 2 to ''
1357
- if (str.length < 2) return ''
1358
- // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
1359
- while (str.length % 4 !== 0) {
1360
- str = str + '='
1361
- }
1362
- return str
1363
- }
1364
-
1365
- function stringtrim (str) {
1366
- if (str.trim) return str.trim()
1367
- return str.replace(/^\s+|\s+$/g, '')
1368
- }
1369
-
1370
- function toHex (n) {
1371
- if (n < 16) return '0' + n.toString(16)
1372
- return n.toString(16)
1373
- }
1374
-
1375
- function utf8ToBytes (string, units) {
1376
- units = units || Infinity
1377
- var codePoint
1378
- var length = string.length
1379
- var leadSurrogate = null
1380
- var bytes = []
1381
- var i = 0
1382
-
1383
- for (; i < length; i++) {
1384
- codePoint = string.charCodeAt(i)
1385
-
1386
- // is surrogate component
1387
- if (codePoint > 0xD7FF && codePoint < 0xE000) {
1388
- // last char was a lead
1389
- if (leadSurrogate) {
1390
- // 2 leads in a row
1391
- if (codePoint < 0xDC00) {
1392
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1393
- leadSurrogate = codePoint
1394
- continue
1395
- } else {
1396
- // valid surrogate pair
1397
- codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000
1398
- leadSurrogate = null
1399
- }
1400
- } else {
1401
- // no lead yet
1402
-
1403
- if (codePoint > 0xDBFF) {
1404
- // unexpected trail
1405
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1406
- continue
1407
- } else if (i + 1 === length) {
1408
- // unpaired lead
1409
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1410
- continue
1411
- } else {
1412
- // valid lead
1413
- leadSurrogate = codePoint
1414
- continue
1415
- }
1416
- }
1417
- } else if (leadSurrogate) {
1418
- // valid bmp char, but last char was a lead
1419
- if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1420
- leadSurrogate = null
1421
- }
1422
-
1423
- // encode utf8
1424
- if (codePoint < 0x80) {
1425
- if ((units -= 1) < 0) break
1426
- bytes.push(codePoint)
1427
- } else if (codePoint < 0x800) {
1428
- if ((units -= 2) < 0) break
1429
- bytes.push(
1430
- codePoint >> 0x6 | 0xC0,
1431
- codePoint & 0x3F | 0x80
1432
- )
1433
- } else if (codePoint < 0x10000) {
1434
- if ((units -= 3) < 0) break
1435
- bytes.push(
1436
- codePoint >> 0xC | 0xE0,
1437
- codePoint >> 0x6 & 0x3F | 0x80,
1438
- codePoint & 0x3F | 0x80
1439
- )
1440
- } else if (codePoint < 0x200000) {
1441
- if ((units -= 4) < 0) break
1442
- bytes.push(
1443
- codePoint >> 0x12 | 0xF0,
1444
- codePoint >> 0xC & 0x3F | 0x80,
1445
- codePoint >> 0x6 & 0x3F | 0x80,
1446
- codePoint & 0x3F | 0x80
1447
- )
1448
- } else {
1449
- throw new Error('Invalid code point')
1450
- }
1451
- }
1452
-
1453
- return bytes
1454
- }
1455
-
1456
- function asciiToBytes (str) {
1457
- var byteArray = []
1458
- for (var i = 0; i < str.length; i++) {
1459
- // Node's code seems to be doing this and not & 0x7F..
1460
- byteArray.push(str.charCodeAt(i) & 0xFF)
1461
- }
1462
- return byteArray
1463
- }
1464
-
1465
- function utf16leToBytes (str, units) {
1466
- var c, hi, lo
1467
- var byteArray = []
1468
- for (var i = 0; i < str.length; i++) {
1469
- if ((units -= 2) < 0) break
1470
-
1471
- c = str.charCodeAt(i)
1472
- hi = c >> 8
1473
- lo = c % 256
1474
- byteArray.push(lo)
1475
- byteArray.push(hi)
1476
- }
1477
-
1478
- return byteArray
1479
- }
1480
-
1481
- function base64ToBytes (str) {
1482
- return base64.toByteArray(base64clean(str))
1483
- }
1484
-
1485
- function blitBuffer (src, dst, offset, length) {
1486
- for (var i = 0; i < length; i++) {
1487
- if ((i + offset >= dst.length) || (i >= src.length)) break
1488
- dst[i + offset] = src[i]
1489
- }
1490
- return i
1491
- }
1492
-
1493
- function decodeUtf8Char (str) {
1494
- try {
1495
- return decodeURIComponent(str)
1496
- } catch (err) {
1497
- return String.fromCharCode(0xFFFD) // UTF 8 invalid char
1498
- }
1499
- }
1500
-
1501
- },{"base64-js":13,"ieee754":14,"is-array":15}],13:[function(require,module,exports){
1502
- var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1503
-
1504
- ;(function (exports) {
1505
- 'use strict';
1506
-
1507
- var Arr = (typeof Uint8Array !== 'undefined')
1508
- ? Uint8Array
1509
- : Array
1510
-
1511
- var PLUS = '+'.charCodeAt(0)
1512
- var SLASH = '/'.charCodeAt(0)
1513
- var NUMBER = '0'.charCodeAt(0)
1514
- var LOWER = 'a'.charCodeAt(0)
1515
- var UPPER = 'A'.charCodeAt(0)
1516
- var PLUS_URL_SAFE = '-'.charCodeAt(0)
1517
- var SLASH_URL_SAFE = '_'.charCodeAt(0)
1518
-
1519
- function decode (elt) {
1520
- var code = elt.charCodeAt(0)
1521
- if (code === PLUS ||
1522
- code === PLUS_URL_SAFE)
1523
- return 62 // '+'
1524
- if (code === SLASH ||
1525
- code === SLASH_URL_SAFE)
1526
- return 63 // '/'
1527
- if (code < NUMBER)
1528
- return -1 //no match
1529
- if (code < NUMBER + 10)
1530
- return code - NUMBER + 26 + 26
1531
- if (code < UPPER + 26)
1532
- return code - UPPER
1533
- if (code < LOWER + 26)
1534
- return code - LOWER + 26
1535
- }
1536
-
1537
- function b64ToByteArray (b64) {
1538
- var i, j, l, tmp, placeHolders, arr
1539
-
1540
- if (b64.length % 4 > 0) {
1541
- throw new Error('Invalid string. Length must be a multiple of 4')
1542
- }
1543
-
1544
- // the number of equal signs (place holders)
1545
- // if there are two placeholders, than the two characters before it
1546
- // represent one byte
1547
- // if there is only one, then the three characters before it represent 2 bytes
1548
- // this is just a cheap hack to not do indexOf twice
1549
- var len = b64.length
1550
- placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
1551
-
1552
- // base64 is 4/3 + up to two characters of the original data
1553
- arr = new Arr(b64.length * 3 / 4 - placeHolders)
1554
-
1555
- // if there are placeholders, only get up to the last complete 4 chars
1556
- l = placeHolders > 0 ? b64.length - 4 : b64.length
1557
-
1558
- var L = 0
1559
-
1560
- function push (v) {
1561
- arr[L++] = v
1562
- }
1563
-
1564
- for (i = 0, j = 0; i < l; i += 4, j += 3) {
1565
- tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
1566
- push((tmp & 0xFF0000) >> 16)
1567
- push((tmp & 0xFF00) >> 8)
1568
- push(tmp & 0xFF)
1569
- }
1570
-
1571
- if (placeHolders === 2) {
1572
- tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
1573
- push(tmp & 0xFF)
1574
- } else if (placeHolders === 1) {
1575
- tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
1576
- push((tmp >> 8) & 0xFF)
1577
- push(tmp & 0xFF)
1578
- }
1579
-
1580
- return arr
1581
- }
1582
-
1583
- function uint8ToBase64 (uint8) {
1584
- var i,
1585
- extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
1586
- output = "",
1587
- temp, length
1588
-
1589
- function encode (num) {
1590
- return lookup.charAt(num)
1591
- }
1592
-
1593
- function tripletToBase64 (num) {
1594
- return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
1595
- }
1596
-
1597
- // go through the array every three bytes, we'll deal with trailing stuff later
1598
- for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
1599
- temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
1600
- output += tripletToBase64(temp)
1601
- }
1602
-
1603
- // pad the end with zeros, but make sure to not forget the extra bytes
1604
- switch (extraBytes) {
1605
- case 1:
1606
- temp = uint8[uint8.length - 1]
1607
- output += encode(temp >> 2)
1608
- output += encode((temp << 4) & 0x3F)
1609
- output += '=='
1610
- break
1611
- case 2:
1612
- temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
1613
- output += encode(temp >> 10)
1614
- output += encode((temp >> 4) & 0x3F)
1615
- output += encode((temp << 2) & 0x3F)
1616
- output += '='
1617
- break
1618
- }
1619
-
1620
- return output
1621
- }
1622
-
1623
- exports.toByteArray = b64ToByteArray
1624
- exports.fromByteArray = uint8ToBase64
1625
- }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
1626
-
1627
- },{}],14:[function(require,module,exports){
1628
- exports.read = function (buffer, offset, isLE, mLen, nBytes) {
1629
- var e, m
1630
- var eLen = nBytes * 8 - mLen - 1
1631
- var eMax = (1 << eLen) - 1
1632
- var eBias = eMax >> 1
1633
- var nBits = -7
1634
- var i = isLE ? (nBytes - 1) : 0
1635
- var d = isLE ? -1 : 1
1636
- var s = buffer[offset + i]
1637
-
1638
- i += d
1639
-
1640
- e = s & ((1 << (-nBits)) - 1)
1641
- s >>= (-nBits)
1642
- nBits += eLen
1643
- for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}
1644
-
1645
- m = e & ((1 << (-nBits)) - 1)
1646
- e >>= (-nBits)
1647
- nBits += mLen
1648
- for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}
1649
-
1650
- if (e === 0) {
1651
- e = 1 - eBias
1652
- } else if (e === eMax) {
1653
- return m ? NaN : ((s ? -1 : 1) * Infinity)
1654
- } else {
1655
- m = m + Math.pow(2, mLen)
1656
- e = e - eBias
1657
- }
1658
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
1659
- }
1660
-
1661
- exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
1662
- var e, m, c
1663
- var eLen = nBytes * 8 - mLen - 1
1664
- var eMax = (1 << eLen) - 1
1665
- var eBias = eMax >> 1
1666
- var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
1667
- var i = isLE ? 0 : (nBytes - 1)
1668
- var d = isLE ? 1 : -1
1669
- var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
1670
-
1671
- value = Math.abs(value)
1672
-
1673
- if (isNaN(value) || value === Infinity) {
1674
- m = isNaN(value) ? 1 : 0
1675
- e = eMax
1676
- } else {
1677
- e = Math.floor(Math.log(value) / Math.LN2)
1678
- if (value * (c = Math.pow(2, -e)) < 1) {
1679
- e--
1680
- c *= 2
1681
- }
1682
- if (e + eBias >= 1) {
1683
- value += rt / c
1684
- } else {
1685
- value += rt * Math.pow(2, 1 - eBias)
1686
- }
1687
- if (value * c >= 2) {
1688
- e++
1689
- c /= 2
1690
- }
1691
-
1692
- if (e + eBias >= eMax) {
1693
- m = 0
1694
- e = eMax
1695
- } else if (e + eBias >= 1) {
1696
- m = (value * c - 1) * Math.pow(2, mLen)
1697
- e = e + eBias
1698
- } else {
1699
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
1700
- e = 0
1701
- }
1702
- }
1703
-
1704
- for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
1705
-
1706
- e = (e << mLen) | m
1707
- eLen += mLen
1708
- for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
1709
-
1710
- buffer[offset + i - d] |= s * 128
1711
- }
1712
-
1713
- },{}],15:[function(require,module,exports){
1714
-
1715
- /**
1716
- * isArray
1717
- */
1718
-
1719
- var isArray = Array.isArray;
1720
-
1721
- /**
1722
- * toString
1723
- */
1724
-
1725
- var str = Object.prototype.toString;
1726
-
1727
- /**
1728
- * Whether or not the given `val`
1729
- * is an array.
1730
- *
1731
- * example:
1732
- *
1733
- * isArray([]);
1734
- * // > true
1735
- * isArray(arguments);
1736
- * // > false
1737
- * isArray('');
1738
- * // > false
1739
- *
1740
- * @param {mixed} val
1741
- * @return {bool}
1742
- */
1743
-
1744
- module.exports = isArray || function (val) {
1745
- return !! val && '[object Array]' == str.call(val);
1746
- };
1747
-
1748
- },{}],16:[function(require,module,exports){
1749
- (function (process){
1750
- // Copyright Joyent, Inc. and other Node contributors.
1751
- //
1752
- // Permission is hereby granted, free of charge, to any person obtaining a
1753
- // copy of this software and associated documentation files (the
1754
- // "Software"), to deal in the Software without restriction, including
1755
- // without limitation the rights to use, copy, modify, merge, publish,
1756
- // distribute, sublicense, and/or sell copies of the Software, and to permit
1757
- // persons to whom the Software is furnished to do so, subject to the
1758
- // following conditions:
1759
- //
1760
- // The above copyright notice and this permission notice shall be included
1761
- // in all copies or substantial portions of the Software.
1762
- //
1763
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1764
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1765
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
1766
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1767
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1768
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
1769
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
1770
-
1771
- // resolves . and .. elements in a path array with directory names there
1772
- // must be no slashes, empty elements, or device names (c:\) in the array
1773
- // (so also no leading and trailing slashes - it does not distinguish
1774
- // relative and absolute paths)
1775
- function normalizeArray(parts, allowAboveRoot) {
1776
- // if the path tries to go above the root, `up` ends up > 0
1777
- var up = 0;
1778
- for (var i = parts.length - 1; i >= 0; i--) {
1779
- var last = parts[i];
1780
- if (last === '.') {
1781
- parts.splice(i, 1);
1782
- } else if (last === '..') {
1783
- parts.splice(i, 1);
1784
- up++;
1785
- } else if (up) {
1786
- parts.splice(i, 1);
1787
- up--;
1788
- }
1789
- }
1790
-
1791
- // if the path is allowed to go above the root, restore leading ..s
1792
- if (allowAboveRoot) {
1793
- for (; up--; up) {
1794
- parts.unshift('..');
1795
- }
1796
- }
1797
-
1798
- return parts;
1799
- }
1800
-
1801
- // Split a filename into [root, dir, basename, ext], unix version
1802
- // 'root' is just a slash, or nothing.
1803
- var splitPathRe =
1804
- /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
1805
- var splitPath = function(filename) {
1806
- return splitPathRe.exec(filename).slice(1);
1807
- };
1808
-
1809
- // path.resolve([from ...], to)
1810
- // posix version
1811
- exports.resolve = function() {
1812
- var resolvedPath = '',
1813
- resolvedAbsolute = false;
1814
-
1815
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
1816
- var path = (i >= 0) ? arguments[i] : process.cwd();
1817
-
1818
- // Skip empty and invalid entries
1819
- if (typeof path !== 'string') {
1820
- throw new TypeError('Arguments to path.resolve must be strings');
1821
- } else if (!path) {
1822
- continue;
1823
- }
1824
-
1825
- resolvedPath = path + '/' + resolvedPath;
1826
- resolvedAbsolute = path.charAt(0) === '/';
1827
- }
1828
-
1829
- // At this point the path should be resolved to a full absolute path, but
1830
- // handle relative paths to be safe (might happen when process.cwd() fails)
1831
-
1832
- // Normalize the path
1833
- resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
1834
- return !!p;
1835
- }), !resolvedAbsolute).join('/');
1836
-
1837
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
1838
- };
1839
-
1840
- // path.normalize(path)
1841
- // posix version
1842
- exports.normalize = function(path) {
1843
- var isAbsolute = exports.isAbsolute(path),
1844
- trailingSlash = substr(path, -1) === '/';
1845
-
1846
- // Normalize the path
1847
- path = normalizeArray(filter(path.split('/'), function(p) {
1848
- return !!p;
1849
- }), !isAbsolute).join('/');
1850
-
1851
- if (!path && !isAbsolute) {
1852
- path = '.';
1853
- }
1854
- if (path && trailingSlash) {
1855
- path += '/';
1856
- }
1857
-
1858
- return (isAbsolute ? '/' : '') + path;
1859
- };
1860
-
1861
- // posix version
1862
- exports.isAbsolute = function(path) {
1863
- return path.charAt(0) === '/';
1864
- };
1865
-
1866
- // posix version
1867
- exports.join = function() {
1868
- var paths = Array.prototype.slice.call(arguments, 0);
1869
- return exports.normalize(filter(paths, function(p, index) {
1870
- if (typeof p !== 'string') {
1871
- throw new TypeError('Arguments to path.join must be strings');
1872
- }
1873
- return p;
1874
- }).join('/'));
1875
- };
1876
-
1877
-
1878
- // path.relative(from, to)
1879
- // posix version
1880
- exports.relative = function(from, to) {
1881
- from = exports.resolve(from).substr(1);
1882
- to = exports.resolve(to).substr(1);
1883
-
1884
- function trim(arr) {
1885
- var start = 0;
1886
- for (; start < arr.length; start++) {
1887
- if (arr[start] !== '') break;
1888
- }
1889
-
1890
- var end = arr.length - 1;
1891
- for (; end >= 0; end--) {
1892
- if (arr[end] !== '') break;
1893
- }
1894
-
1895
- if (start > end) return [];
1896
- return arr.slice(start, end - start + 1);
1897
- }
1898
-
1899
- var fromParts = trim(from.split('/'));
1900
- var toParts = trim(to.split('/'));
1901
-
1902
- var length = Math.min(fromParts.length, toParts.length);
1903
- var samePartsLength = length;
1904
- for (var i = 0; i < length; i++) {
1905
- if (fromParts[i] !== toParts[i]) {
1906
- samePartsLength = i;
1907
- break;
1908
- }
1909
- }
1910
-
1911
- var outputParts = [];
1912
- for (var i = samePartsLength; i < fromParts.length; i++) {
1913
- outputParts.push('..');
1914
- }
1915
-
1916
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
1917
-
1918
- return outputParts.join('/');
1919
- };
1920
-
1921
- exports.sep = '/';
1922
- exports.delimiter = ':';
1923
-
1924
- exports.dirname = function(path) {
1925
- var result = splitPath(path),
1926
- root = result[0],
1927
- dir = result[1];
1928
-
1929
- if (!root && !dir) {
1930
- // No dirname whatsoever
1931
- return '.';
1932
- }
1933
-
1934
- if (dir) {
1935
- // It has a dirname, strip trailing slash
1936
- dir = dir.substr(0, dir.length - 1);
1937
- }
1938
-
1939
- return root + dir;
1940
- };
1941
-
1942
-
1943
- exports.basename = function(path, ext) {
1944
- var f = splitPath(path)[2];
1945
- // TODO: make this comparison case-insensitive on windows?
1946
- if (ext && f.substr(-1 * ext.length) === ext) {
1947
- f = f.substr(0, f.length - ext.length);
1948
- }
1949
- return f;
1950
- };
1951
-
1952
-
1953
- exports.extname = function(path) {
1954
- return splitPath(path)[3];
1955
- };
1956
-
1957
- function filter (xs, f) {
1958
- if (xs.filter) return xs.filter(f);
1959
- var res = [];
1960
- for (var i = 0; i < xs.length; i++) {
1961
- if (f(xs[i], i, xs)) res.push(xs[i]);
1962
- }
1963
- return res;
1964
- }
1965
-
1966
- // String.prototype.substr - negative index don't work in IE8
1967
- var substr = 'ab'.substr(-1) === 'b'
1968
- ? function (str, start, len) { return str.substr(start, len) }
1969
- : function (str, start, len) {
1970
- if (start < 0) start = str.length + start;
1971
- return str.substr(start, len);
1972
- }
1973
- ;
1974
-
1975
- }).call(this,require('_process'))
1976
- },{"_process":17}],17:[function(require,module,exports){
1977
- // shim for using process in browser
1978
-
1979
- var process = module.exports = {};
1980
- var queue = [];
1981
- var draining = false;
1982
-
1983
- function drainQueue() {
1984
- if (draining) {
1985
- return;
1986
- }
1987
- draining = true;
1988
- var currentQueue;
1989
- var len = queue.length;
1990
- while(len) {
1991
- currentQueue = queue;
1992
- queue = [];
1993
- var i = -1;
1994
- while (++i < len) {
1995
- currentQueue[i]();
1996
- }
1997
- len = queue.length;
1998
- }
1999
- draining = false;
2000
- }
2001
- process.nextTick = function (fun) {
2002
- queue.push(fun);
2003
- if (!draining) {
2004
- setTimeout(drainQueue, 0);
2005
- }
2006
- };
2007
-
2008
- process.title = 'browser';
2009
- process.browser = true;
2010
- process.env = {};
2011
- process.argv = [];
2012
- process.version = ''; // empty string to avoid regexp issues
2013
- process.versions = {};
2014
-
2015
- function noop() {}
2016
-
2017
- process.on = noop;
2018
- process.addListener = noop;
2019
- process.once = noop;
2020
- process.off = noop;
2021
- process.removeListener = noop;
2022
- process.removeAllListeners = noop;
2023
- process.emit = noop;
2024
-
2025
- process.binding = function (name) {
2026
- throw new Error('process.binding is not supported');
2027
- };
2028
-
2029
- // TODO(shtylman)
2030
- process.cwd = function () { return '/' };
2031
- process.chdir = function (dir) {
2032
- throw new Error('process.chdir is not supported');
2033
- };
2034
- process.umask = function() { return 0; };
2035
-
2036
- },{}]},{},[1])(1)
2037
- });