mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
1647 lines
328 KiB
JavaScript
1647 lines
328 KiB
JavaScript
// Generated by LiveScript 1.6.1
|
|
// LiveScript 1.6.1
|
|
// Copyright (c) Jeremy Ashkenas, Satoshi Murakami, George Zahariev
|
|
// Released under the MIT License
|
|
// https://raw.githubusercontent.com/gkz/LiveScript/master/LICENSE
|
|
require=function(){function e(t,n,i){function r(o,a){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!a&&u)return u(o,!0);if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return r(n||e)},c,c.exports,e,t,n,i)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<i.length;o++)r(i[o]);return r}return e}()({1:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.1
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g,m,y,v,b,w,k,L,A,E,C,S,R,N,_,T,I,x,O,M,P,B,$,U,D,j,F,W,Y,z,G,H,J,q,K,V,X,Z,Q,ee,te,ne,ie,re,se,oe,ae,ue,le,ce,he,fe,pe,de,ge=[].slice,me=Array.from||function(e){return ge.call(e)},ye={}.toString;i=e("prelude-ls").fold;r=e("./util"),s=r.nameFromPath,o=r.stripString;r=e("source-map"),a=r.SourceNode,u=r.SourceMapGenerator;l=function(e){var t,n,i,r,s,o;e==null&&(e={});n=[];for(i=1,r=arguments.length;i<r;++i){n.push(arguments[i])}t=n;try{s=new a(e.line,e.column,null,t);s.displayName=e.constructor.displayName;return s}catch(u){o=u;console.dir(t);throw o}};c=function(e){var t,n,i,r;if(e instanceof a){for(t=0,i=(n=e.children).length;t<i;++t){r=n[t];if(!c(r)){return false}}return true}else{return!e}};h=function(e){if(e instanceof a){return e}else{return e.toString()}};f=function(e,t){var n,i,r,s;for(n=0,i=e.children.length;n<i;++n){r=n;s=e.children[r];if(s instanceof a){t=f(s,t)}else{s=s.toString();e.children[r]=s.slice(t);t-=s.length}if(t<=0){return 0}}return t};a.prototype.replace=function(){var e,t,n,i;t=[];for(n=0,i=arguments.length;n<i;++n){t.push(arguments[n])}e=t;return new a(this.line,this.column,this.source,function(){var t,n,i,r,s=[];for(t=0,r=(i=this.children).length;t<r;++t){n=i[t];s.push(n.replace.apply(n,e))}return s}.call(this),this.name)};a.prototype.setFile=function(e){var t,n,i,r,s=[];this.source=e;for(t=0,i=(n=this.children).length;t<i;++t){r=n[t];if(r instanceof a){s.push(r.setFile(e))}}return s};a.prototype.toStringWithSourceMap=function(){var e,t,n,i,r,s,o,l,c,h,f,p,d;t=[];for(n=0,i=arguments.length;n<i;++n){t.push(arguments[n])}e=t;r=function(e,t,n){n.prototype=e.prototype;var i=new n,r=e.apply(i,t),s;return(s=typeof r)=="object"||s=="function"?r||i:i}(u,e,function(){});s=1;o=0;l=[];c="";h="";f="";p=" ";d=function(e){var t,n,i,u,g,m,y,v,b,w=[];if(e instanceof a){h+=f+e.displayName;t=e.line&&"column"in e;if(t){l.push(e);h+="!"}h+=" "+e.line+":"+e.column+" "+s+":"+o+"\n";f+=p;for(n=0,u=(i=e.children).length;n<u;++n){g=i[n];d(g)}f=f.slice(0,f.length-p.length);if(t){return l.pop()}}else{h+=f+""+JSON.stringify(e)+"\n";c+=e;m=l[l.length-1];if(m){r.addMapping({source:m.source,original:{line:m.line,column:m.column},generated:{line:s,column:o},name:m.name})}for(n=0,y=e.length;n<y;++n){v=n;b=e.charAt(v);if(b==="\n"){o=0;++s;if(m){w.push(r.addMapping({source:m.source,original:{line:m.line,column:m.column},generated:{line:s,column:o},name:m.name}))}}else{w.push(++o)}}return w}};d(this);return{code:c,map:r,debug:h}};/* # Use this to track down places where a SourceNode is being converted into a string and causing the location to be lost
|
|
tmp-to-string = SourceNode::to-string
|
|
SourceNode::to-string = (...args) ->
|
|
console.log("toString(): ", new Error().stack)
|
|
tmp-to-string.apply this, args
|
|
*/
|
|
(p=function(){throw Error("unimplemented")}).prototype={compile:function(e,t){var n,i,r,s,o,a;n=Ce({},e);if(t!=null){n.level=t}if(n.level&&this.isStatement()){return this.compileClosure(n)}i=(this.tab=n.indent,this).compileNode(n);if(r=this.temps){for(s=0,o=r.length;s<o;++s){a=r[s];n.scope.free(a)}}return i},compileClosure:function(e){var t,n,i,r,s,o;if(t=this.getJump()){t.carp("inconvertible statement")}n=P([],g(this));i=A();if(e.inAsync){n.async=true}if(e.inGenerator){n.generator=true}this.traverseChildren(function(e){switch(e.value){case"this":s=true;break;case"arguments":r=e.value="args$"}});if(s){i.args.push(y("this"));i.method=".call"}if(r){i.args.push(y("arguments"));n.params.push(v("args$"))}o=U(L((n.wrapper=true,n["void"]=this["void"],n),[i]),true);if(e.inGenerator){o=new N("yieldfrom",o)}else if(e.inAsync){o=new N("await",o)}return o.compile(e)},compileBlock:function(e,t){var n;if(!c(n=t!=null?t.compile(e,se):void 8)){return l(null,"{\n",n,"\n"+this.tab+"}")}else{return l(t,"{}")}},compileSpreadOver:function(e,t,n){var i,r,s,o,a,u,l,c,h;i=t instanceof C;r=t.items;for(s=0,o=r.length;s<o;++s){a=s;u=r[s];if(l=u instanceof D){u=u.it}if(i&&!l){u=u.val}u=n(u);if(l){u=c=D(u)}if(i&&!l){r[a].val=u}else{r[a]=u}}if(!c&&(this["void"]||!e.level)){t=(h=g(i?function(){var e,t,n,i,s=[];for(e=0,i=(n=r).length;e<i;++e){t=n[e];s.push(t.val)}return s}():r),h.front=this.front,h["void"]=true,h)}return t.compile(e,oe)},cache:function(e,t,n,i){var r,s,o,a;if(!this.isComplex()){return[r=n!=null?this.compile(e,n):this,r]}if(s=this.getRef()){o=this}else{o=I(s=v(e.scope.temporary(i)),this);if(t){s.temp=true}else{a=[s.value]}}if(n!=null){o=o.compile(e,n);if(t&&a){e.scope.free(s.value)}return[o,s.value]}return[o,s,a]},compileLoopReference:function(e,t,n,i){var r,s,o,a;if(this instanceof v&&e.scope.check(this.value)||this instanceof _&&((r=this.op)==="+"||r==="-")&&(-1/0<(r=+this.it.value)&&r<1/0)||this instanceof y&&!this.isComplex()){s=this.compile(e,oe);if(i&&!(this instanceof v)){s="("+s+")"}return[s,s]}o=I(v(a=e.scope.temporary(t)),this);n||(o["void"]=true);return[a,o.compile(e,n?ce:oe)]},eachChild:function(e){var t,n,i,r,s,o,a,u,l,c;for(t=0,i=(n=this.children).length;t<i;++t){r=n[t];if(s=this[r]){if("length"in s){for(o=0,a=s.length;o<a;++o){u=o;l=s[o];if(c=e(l,r,u)){return c}}}else{if((c=e(s,r))!=null){return c}}}}},traverseChildren:function(e,t){var n=this;return this.eachChild(function(i,r,s){var o;return(o=e(i,n,r,s))!=null?o:i.traverseChildren(e,t)})},rewriteShorthand:function(e,t){var n,i,r,s,o,a,u,l,c,h;for(n=0,r=(i=this.children).length;n<r;++n){s=i[n];if(o=this[s]){if("length"in o){for(a=0,u=o.length;a<u;++a){l=a;c=o[a];if(h=c.rewriteShorthand(e,t)){o[l]=h}}}else if(h=o.rewriteShorthand(e,t)){this[s]=h}}}},anaphorize:function(){var e,t,n;this.children=this.aTargets;if(this.eachChild(i)){if((e=this)[t=this.aSource]instanceof M){e[t].doAnaphorize=true}else if(e[t].value!=="that"){e[t]=I(v("that"),e[t])}}function i(e){var t;return e.value==="that"||((t=e.aSource)?(t=e[t])?i(t):void 8:e.eachChild(i))}delete this.children;return n=this[this.aSource],n.cond=true,n},carp:function(e,t){t==null&&(t=SyntaxError);throw t(e+" "+this.lineMsg())},warn:function(e){if(typeof console!="undefined"&&console!==null){console.warn("WARNING: "+e+" "+this.lineMsg())}},lineMsg:function(){return"on line "+(this.line||this.traverseChildren(function(e){return e.line}))},delegate:function(e,t){var n,i;for(n=0,i=e.length;n<i;++n){r.call(this,e[n])}function r(e){this[e]=function(n){return t.call(this,e,n)}}},children:[],terminator:";",isComplex:be,isStatement:we,isAssignable:we,isCallable:we,isEmpty:we,isArray:we,isString:we,isRegex:we,isMatcher:function(){return this.isString()||this.isRegex()},assigns:we,ripName:Le,getRef:Le,unfoldSoak:Le,unfoldAssign:Le,unparen:ke,unwrap:ke,maybeKey:Le,varName:String,getAccessors:Le,getCall:Le,getDefault:Le,getJump:Le,isNextUnreachable:we,extractKeyRef:function(e,t){return this.maybeKey()||this.carp(t?"invalid assign":"invalid property shorthand")},invert:function(){return _("!",this,true)},invertCheck:function(e){if(e.inverted){return this.invert()}else{return this}},addElse:function(e){this["else"]=e;return this},makeReturn:function(e,t){var n,i,r,s;if(t){n=this instanceof R?(this.items[0]==null||this.items[1]==null&&this.carp("must specify both key and value for object comprehension"),this.items):(i="keyValue$",function(){var e,t,n,o=[];for(e=0,n=(t=[I(v(i),this),v(i)]).length;e<n;++e){r=e;s=t[e];o.push(L(s).add(w(y(r))))}return o}.call(this));return I(L(v(e)).add(w(n[0],".",true)),n[1])}else if(e){return A.make(Z(e+".push"),[this])}else{return W(this)}},show:String,toString:function(e){var t,n;e||(e="");t="\n"+e+this.constructor.displayName;if(n=this.show()){t+=" "+n}this.eachChild(function(n){t+=n.toString(e+fe)});return t},stringify:function(e){return JSON.stringify(this,null,e)},toJSON:function(){return Ce({type:this.constructor.displayName},this)}};n.parse=function(e){return n.fromJSON(JSON.parse(e))};n.fromJSON=function(){function e(t){var i,r,s,o,a,u,l,c=[];if(!(t&&typeof t==="object")){return t}if(i=t.type){r=Se(n[i].prototype);for(s in t){o=t[s];r[s]=e(o)}return r}if(t.length!=null){for(a=0,u=t.length;a<u;++a){l=t[a];c.push(e(l))}return c}else{return t}}return e}();d={show:function(){return this.negated&&"!"},invert:function(){this.negated=!this.negated;return this}};n.Block=g=function(e){var t=Re((Ce(i,e).displayName="Block",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;e||(e=[]);if("length"in e){t.lines=e}else{t.lines=[];t.add(e)}return t}function r(){}r.prototype=t;i.prototype.children=["lines"];i.prototype.toJSON=function(){delete this.back;return e.prototype.toJSON.call(this)};i.prototype.add=function(e){var t,n;e=e.unparen();switch(false){case!(t=this.back):t.add(e);break;case!(t=e.lines):(n=this.lines).push.apply(n,t);break;default:this.lines.push(e);if(t=(n=e.back,delete e.back,n)){this.back=t}}return this};i.prototype.prepend=function(){var e;(e=this.lines).splice.apply(e,[this.neck(),0].concat(me(arguments)));return this};i.prototype.pipe=function(e,t){var n;n=t==="|>"?this.lines.pop():e;if(ye.call(n).slice(8,-1)!=="Array"){n=[n]}switch(t){case"|>":this.lines.push(A.make(e,n,{pipe:true}));break;case"<|":this.lines.push(A.make(this.lines.pop(),n))}return this};i.prototype.unwrap=function(){if(this.lines.length===1){return this.lines[0]}else{return this}};i.prototype.chomp=function(){var e,t,n;e=this.lines;t=e.length;while(n=e[--t]){if(!n.comment){break}}e.length=t+1;return this};i.prototype.neck=function(){var e,t,n,i,r;e=0;for(t=0,i=(n=this.lines).length;t<i;++t){r=n[t];if(!(r.comment||r instanceof y)){break}++e}return e};i.prototype.isComplex=function(){var e;return this.lines.length>1||((e=this.lines[0])!=null?e.isComplex():void 8)};t.delegate(["isCallable","isArray","isString","isRegex"],function(e){var t,n;return(t=(n=this.lines)[n.length-1])!=null?t[e]():void 8});i.prototype.getJump=function(e){var t,n,i,r,s;for(t=0,i=(n=this.lines).length;t<i;++t){r=n[t];if(s=r.getJump(e)){return s}}};i.prototype.isNextUnreachable=function(){var e,t,n,i;for(e=0,n=(t=this.lines).length;e<n;++e){i=t[e];if(i.isNextUnreachable()){return true}}return false};i.prototype.makeReturn=function(){var e,t,n;this.chomp();if(n=(e=this.lines)[t=e.length-1]!=null?e[t]=(e=e[t]).makeReturn.apply(e,arguments):void 8){if(n instanceof W&&!n.it){--this.lines.length}}return this};i.prototype.compile=function(e,t){var n,i,r,s,o,a,u,h;t==null&&(t=e.level);if(t){return this.compileExpressions(e,t)}e.block=this;n=e.indent;i=[];for(r=0,o=(s=this.lines).length;r<o;++r){a=s[r];if(!a.evalResult){a["void"]=true}if(u=a.rewriteShorthand(e)){a=u}if(c(h=(a.front=true,a).compile(e,t))){continue}i.push(n);i.push(h);a.isStatement()||i.push(a.terminator);i.push("\n")}i.pop();return l.apply(null,[null].concat(me(i)))};i.prototype.compileRoot=function(e){var t,n,i,r,s,o,a,u,c,h;t=Ce({level:se,scope:this.scope=ve.root=new ve},e);if(n=(i=t.saveScope,delete t.saveScope,i)){this.scope=ve.root=t.scope=n.savedScope||(n.savedScope=t.scope)}delete t.filename;t.indent=(r=(i=t.bare,delete t.bare,i))?"":fe;if(/^\s*(?:#!|javascript:)/.test((i=this.lines[0])!=null?i.code:void 8)){s=this.lines.shift().code+"\n"}if(((o=this.lines[0])!=null?(a=o.code)!=null?a[0]:void 8:void 8)==="/"){u=this.lines.shift().code+"\n"}if((c=t.eval,delete t.eval,c)&&this.chomp().lines.length){if(r){this.lines.push((c=U(this.lines.pop()),c.evalResult=true,c))}else{this.makeReturn()}}h=[this.compileWithDeclarations(t)];r||(h=["(function(){\n"].concat(me(h),["\n}).call(this);\n"]));return l(null,s||[],e.header||[],u||[],h)};i.prototype.compileWithDeclarations=function(e){var t,n,i,r,s;e.level=se;t=[];if(n=this.neck()){i=this.lines.splice(n,9e9);t=[this.compile(e),"\n"];this.lines=i}if(c(r=this.compile(e))){return l(this,t[0]||[])}return l.apply(null,[null].concat(me(t),[(s=this.scope)?s.emit(r,e.indent):r]))};i.prototype.compileExpressions=function(e,t){var n,i,r,s,o,a,u,c,h;n=this.chomp().lines;i=-1;while(r=n[++i]){if(r.comment){n.splice(i--,1)}}if(!n.length){n.push(y("void"))}n[0].front=this.front;n[n.length-1]["void"]=this["void"];if(!n[1]){s=n[0];if(r=s.rewriteShorthand(e)){s=r}return s.compile(e,t)}o=[];a=n.pop();for(u=0,c=n.length;u<c;++u){h=n[u];if(r=h.rewriteShorthand(e)){h=r}o.push((h["void"]=true,h).compile(e,oe),", ")}if(r=a.rewriteShorthand(e)){a=r}o.push(a.compile(e,oe));if(t<ae){return l.apply(null,[null].concat(me(o)))}else{return l.apply(null,[null,"("].concat(me(o),[")"]))}};i.prototype.rewriteShorthand=Le;return i}(p);m=function(e){var t=Re((Ce(i,e).displayName="Atom",i),e).prototype,n=i;i.prototype.show=function(){return this.value};i.prototype.isComplex=we;function i(){i.superclass.apply(this,arguments)}return i}(p);n.Literal=y=function(e){var t=Re((Ce(i,e).displayName="Literal",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.value=e;if(e.js){return Z(e+"",true)}if(e==="super"){return new $}return t}function r(){}r.prototype=t;i.prototype.isEmpty=function(){var e;return(e=this.value)==="void"||e==="null"};i.prototype.isCallable=function(){var e;return(e=this.value)==="this"||e==="eval"||e===".."};i.prototype.isString=function(){return 0<="'\"".indexOf((this.value+"").charAt())};i.prototype.isRegex=function(){return(this.value+"").charAt()==="/"};i.prototype.isComplex=function(){return this.isRegex()||this.value==="debugger"};i.prototype.isWhat=function(){switch(false){case!this.isEmpty():return"empty";case!this.isCallable():return"callable";case!this.isString():return"string";case!this.isRegex():return"regex";case!this.isComplex():return"complex";default:}};i.prototype.varName=function(){if(/^\w+$/.test(this.value)){return"$"+this.value}else{return""}};i.prototype.makeReturn=function(t){if(!t&&this.value==="debugger"){return this}else{return e.prototype.makeReturn.apply(this,arguments)}};i.prototype.maybeKey=function(){var e;if(pe.test(this.value)){return b(this.value,(e=this.value)!=="arguments"&&e!=="eval")}else{return this}};i.prototype.compile=function(e,t){var n,i;t==null&&(t=e.level);switch(n=this.value+""){case"this":return l(this,((i=e.scope.fun)!=null?i.bound:void 8)||n);case"void":if(!t){return l(this,"")}n+=" 8";
|
|
// fallthrough
|
|
case"null":if(t===ce){this.carp("invalid use of "+this.value)}break;case"on":case"yes":n="true";break;case"off":case"no":n="false";break;case"*":this.carp("stray star");break;case"..":if(!(n=e.ref)){this.carp("stray reference")}this.cascadee||(n.erred=true);break;case"debugger":if(t){return l(this,"(function(){ debugger; }())")}}return l(this,h(n))};return i}(m);n.Var=v=function(e){var t=Re((Ce(i,e).displayName="Var",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.value=e;return t}function r(){}r.prototype=t;t.isAssignable=t.isCallable=be;i.prototype.assigns=function(){return[this.value]};i.prototype.maybeKey=function(){var e;return e=b(this.value),e.line=this.line,e};i.prototype.varName=t.show;i.prototype.compile=function(e){return l(this,this.temp?e.scope.free(this.value):this.value)};return i}(m);n.Key=b=function(e){var t=Re((Ce(i,e).displayName="Key",i),e).prototype,n=i;function i(e,t){var n=this instanceof r?this:new r;n.reserved=t||e.reserved;n.name=""+e;return n}function r(){}r.prototype=t;i.prototype.isComplex=we;i.prototype.assigns=function(){return[this.name]};i.prototype.maybeKey=ke;i.prototype.varName=function(){var e;e=this.name;if(this.reserved||(e==="arguments"||e==="eval")){return"$"+e}else{return e}};i.prototype.show=function(){if(this.reserved){return"'"+this.name+"'"}else{return this.name}};i.prototype.compile=function(){return l(this,this.show())};return i}(p);n.Index=w=function(e){var t=Re((Ce(i,e).displayName="Index",i),e).prototype,n=i;function i(e,t,n){var i,s=this instanceof r?this:new r;t||(t=".");if(n&&e instanceof R){switch(e.items.length){case 1:if(!((i=e.items[0])instanceof D)){e=U(i)}}}switch(t){case"[]":s.vivify=R;break;case"{}":s.vivify=C;break;default:if("="===t.slice(-1)){s.assign=t.slice(1)}}s.key=e;s.symbol=t;return s}function r(){}r.prototype=t;i.prototype.children=["key"];i.prototype.show=function(){return[this.soak?"?":void 8]+this.symbol};i.prototype.isComplex=function(){return this.key.isComplex()||this.vivify!=null};i.prototype.varName=function(){var e;return((e=this.key)instanceof b||e instanceof y)&&this.key.varName()};i.prototype.compile=function(e){var t;t=this.key.compile(e,oe);if(this.key instanceof b&&"'"!==t.toString().charAt(0)){return l(this,".",t)}else{return l(this,"[",t,"]")}};return i}(p);n.Slice=k=function(e){var t=Re((Ce(i,e).displayName="Slice",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.type=e.type,t.target=e.target,t.from=e.from,t.to=e.to;t.from==null&&(t.from=y(0));if(t.to&&t.type==="to"){t.to=T("+",t.to,y("1"))}return t}function r(){}r.prototype=t;i.prototype.children=["target","from","to"];i.prototype.show=function(){return this.type};i.prototype.compileNode=function(e){var t;if(this.to&&this.type==="to"){this.to=T("||",this.to,y("9e9"))}t=[this.target,this.from];if(this.to){t.push(this.to)}return L(v(Ae("slice"))).add(w(b("call"),".",true)).add(A(t)).compile(e)};return i}(p);n.Chain=L=function(e){var t=Re((Ce(i,e).displayName="Chain",i),e).prototype,n=i;function i(e,t){var n=this instanceof r?this:new r;if(!t&&e instanceof i){return e}n.head=e;n.tails=t||[];return n}function r(){}r.prototype=t;i.prototype.children=["head","tails"];i.prototype.add=function(e){var t,n,r,s,o,a,u,l;if(this.tails.length){t=(n=this.tails)[n.length-1];if(t instanceof A&&((n=t.partialized)!=null?n.length:void 8)===1&&e.args.length===1){r=t.partialized[0].head.value;delete t.partialized;t.args[r]=e.args[0];return this}}if(this.head instanceof M){s=i(this.head.it),this.head=s.head,this.tails=s.tails;e.soak=true}this.tails.push(e);o=this.head instanceof U&&this.head.it instanceof T&&!this.head.it.partial?this.head.it:this.head instanceof T&&!this.head.partial?this.head:void 8;if(this.head instanceof $){if(!this.head.called&&e instanceof A&&!e.method){e.method=".call";e.args.unshift(y("this"));this.head.called=true}else if(!this.tails[1]&&((s=e.key)!=null?s.name:void 8)==="prototype"){this.head.sproto=true}}else if(e instanceof A&&this.tails.length===1&&o&&Ne(o.op,a=["&&","||","xor"])){u=e;l=function(e,t){var n;n=e[t];if(n instanceof T&&Ne(n.op,a)){l(n,"first");return l(n,"second")}else{return e[t]=i(n).autoCompare(u.args)}};l(o,"first");l(o,"second");return o}return this};i.prototype.autoCompare=function(e){var t;if(!this.tails.length){t=this.head}switch(false){case!(t instanceof y):return T("===",t,e[0]);case!(t instanceof _&&t.it instanceof y):return T("===",t,e[0]);case!(t instanceof R||t instanceof C):return T("====",t,e[0]);case!(t instanceof v&&t.value==="_"):return y("true");default:return this.add(A(e))||[]}};i.prototype.flipIt=function(){this.flip=true;return this};i.prototype.unwrap=function(){if(this.tails.length){return this}else{return this.head}};t.delegate(["getJump","assigns","isStatement","isString"],function(e,t){return!this.tails.length&&this.head[e](t)});i.prototype.isComplex=function(){return this.tails.length||this.head.isComplex()};i.prototype.isCallable=function(){var e,t;if(e=(t=this.tails)[t.length-1]){return!((t=e.key)!=null&&t.items)}else{return this.head.isCallable()}};i.prototype.isArray=function(){var e,t;if(e=(t=this.tails)[t.length-1]){return e.key instanceof R}else{return this.head.isArray()}};i.prototype.isRegex=function(){return this.head.value==="RegExp"&&!this.tails[1]&&this.tails[0]instanceof A};i.prototype.isAssignable=function(){var e,t,n,i;if(!(e=(t=this.tails)[t.length-1])){return this.head.isAssignable()}if(!(e instanceof w)||e.key instanceof E||e.symbol===".~"){return false}for(n=0,i=(t=this.tails).length;n<i;++n){e=t[n];if(e.assign){return false}}return true};i.prototype.isSimpleAccess=function(){return this.tails.length===1&&!this.head.isComplex()&&!this.tails[0].isComplex()};i.prototype.makeReturn=function(){var t;if(this.tails.length){return e.prototype.makeReturn.apply(this,arguments)}else{return(t=this.head).makeReturn.apply(t,arguments)}};i.prototype.getCall=function(){var e,t;return(e=(t=this.tails)[t.length-1])instanceof A&&e};i.prototype.varName=function(){var e,t;return(e=(t=this.tails)[t.length-1])!=null?e.varName():void 8};i.prototype.cacheReference=function(e){var t,n,r,s,o,a;t=(n=this.tails)[n.length-1];if(!this.isAssignable()){return this.unwrap().cache(e,true)}if(this.tails.length<2&&!this.head.isComplex()&&!(t!=null&&t.isComplex())){return[this,this]}r=i(this.head,this.tails.slice(0,-1));if(r.isComplex()){n=r.unwrap().cache(e,true),r=n[0],s=n[1];r=i(r)}if(!t){return[r,s]}o=t;if(t.symbol!=="."){o=t;t=w(t.key,".")}if(t.isComplex()){n=t.key.unwrap().cache(e,true,void 8,"key"),a=n[0],o.key=n[1];t=w(a)}return[r.add(t),i(s||r.head,[o])]};i.prototype.compileNode=function(e){var t,n,r,s,o,a,u,c,h,f,p,d,g,m,k,L,E,C;if(this.flip){Ae("flip");Ae("curry")}t=this.head,n=this.tails;t.front=this.front;t.newed=this.newed;if(!n.length){return t.compile(e)}if(r=this.unfoldAssign(e)){return r.compile(e)}for(s=0,o=n.length;s<o;++s){a=n[s];if(a.partialized){u=true;break}}if(u){Ae("slice");c=[];h=[];for(s=0,o=n.length;s<o;++s){a=n[s];f=f||a.partialized!=null;if(f){h.push(a)}else{c.push(a)}}if(h!=null){p=h[0],d=ge.call(h,1)}this.tails=c;g=c.length?i(t,ge.call(c,0,-1)):y("this");return i(i(v(Ae("partialize"))).add(w(b("apply"))).add(A([g,R([this,R(p.args),R(p.partialized)])])),d).compile(e)}if(n[0]instanceof A&&!t.isCallable()){this.carp("invalid callee")}this.expandVivify();this.expandBind(e);this.expandSplat(e);this.expandStar(e);if(this.splattedNewArgs){m=e.indent+fe;k=i(this.head,n.slice(0,-1));return l(null,"(function(func, args, ctor) {\n"+m+"ctor.prototype = func.prototype;\n"+m+"var child = new ctor, result = func.apply(child, args), t;\n"+m+'return (t = typeof result) == "object" || t == "function" ? result || child : child;\n'+fe+"})(",k.compile(e),", ",this.splattedNewArgs,", function(){})")}if(!this.tails.length){return this.head.compile(e)}L=[this.head.compile(e,ce)];E=[];h=[];for(s=0,o=(C=this.tails).length;s<o;++s){a=C[s];if(a["new"]){E.push("new ")}h.push(a.compile(e))}if("."===h.join("").charAt(0)&&de.test(L[0].toString())){L.push(" ")}return l.apply(null,[null].concat(me(E),me(L),me(h)))};i.prototype.unfoldSoak=function(e){var t,n,r,s,o,a,u,l,c;if(t=this.head.unfoldSoak(e)){(n=t.then.tails).push.apply(n,this.tails);return t}for(r=0,s=(n=this.tails).length;r<s;++r){o=r;a=n[r];if(u=a.soak,delete a.soak,u){l=i(this.head,this.tails.splice(0,o));if(a.assign&&!l.isAssignable()){a.carp("invalid accessign")}if(o&&(a.assign||a instanceof A)){u=l.cacheReference(e),c=u[0],l=u[1];if(l instanceof i){(u=this.tails).unshift.apply(u,l.tails);l=l.head}this.head=l}else{u=l.unwrap().cache(e),c=u[0],this.head=u[1]}c=a instanceof A?Z("typeof "+c.compile(e,le)+" == 'function'"):M(c);return u=K(c,this),u.soak=true,u.cond=this.cond,u["void"]=this["void"],u}}};i.prototype.unfoldAssign=function(e){var t,n,r,s,o,a,u,l,c,h,f,p,d,g;if(t=this.head.unfoldAssign(e)){(n=t.right.tails).push.apply(n,this.tails);return t}for(r=0,s=(n=this.tails).length;r<s;++r){o=r;a=n[r];if(u=a.assign){a.assign="";l=i(this.head,this.tails.splice(0,o)).unwrap();if(l instanceof R){c=l.items;h=(this.head=R()).items;for(f=0,p=c.length;f<p;++f){o=f;d=c[f];g=i(d).cacheReference(e),h[o]=g[0],c[o]=g[1]}}else{g=i(l).cacheReference(e),l=g[0],this.head=g[1]}if(u==="="){u=":="}return g=I(l,this,u),g.access=true,g}}};i.prototype.expandSplat=function(e){var t,n,r,s,o,a;t=this.tails;n=-1;while(r=t[++n]){if(!(s=r.args)){continue}o=r.method===".call"&&(s=s.concat()).shift();if(!!c(s=D.compileArray(e,s,true))){continue}if(r["new"]){this.splattedNewArgs=s}else{if(!o&&t[n-1]instanceof w){a=i(this.head,t.splice(0,n-1)).cache(e,true),this.head=a[0],o=a[1];n=0}r.method=".apply";r.args=[o||y("null"),Z(s)]}}};i.prototype.expandVivify=function(){var e,t,n,r,s;e=this.tails;t=0;while(t<e.length){if(n=(s=(r=e[t++]).vivify,delete r.vivify,s)){this.head=I(i(this.head,e.splice(0,t)),n(),"=","||");t=0}}};i.prototype.expandBind=function(e){var t,n,r,s,o,a;t=this.tails;n=-1;while(r=t[++n]){if(r.symbol!==".~"){continue}r.symbol="";s=i(this.head,t.splice(0,n)).unwrap();o=t.shift().key;a=A.make(ee("bind"),[s,(o.reserved=true,o)]);this.head=this.newed?U(a,true):a;n=-1}};i.prototype.expandStar=function(e){var t,n,r,s,o,a,u,l,c,h,f,p;t=this.tails;n=-1;while(r=t[++n]){if(r.args||r.stars||r.key instanceof b){continue}s=r.stars=[];r.eachChild(d);if(!s.length){continue}o=i(this.head,t.splice(0,n)).unwrap().cache(e),a=o[0],u=o[1],l=o[2];c=i(u,[w(b("length"))]).compile(e);for(h=0,f=s.length;h<f;++h){p=s[h];p.value=c;p.isAssignable=be}this.head=Z(a.compile(e,ce)+t.shift().compile(e));if(l){e.scope.free(l[0])}n=-1}function d(e){if(e.value==="*"){s.push(e)}else if(!(e instanceof w)){e.eachChild(d)}}};i.prototype.rewriteShorthand=function(e,t){var n,i,r,s,o,a,u;if(n=this.unfoldSoak(e)){return n.rewriteShorthand(e,t)||n}if(n=this.head.rewriteShorthand(e)){this.head=n}i=this.tails.length-1;for(r=0,o=(s=this.tails).length;r<o;++r){a=r;u=s[r];if(n=u.rewriteShorthand(e,t&&a===i)){this.tails[a]=n}}this.expandSlice(e,t);return this.unwrap()};i.prototype.expandSlice=function(e,t){var n,r,s,o,a;n=this.tails;r=-1;while(s=n[++r]){if((o=s.key)!=null&&o.items){if(n[r+1]instanceof A){s.carp("calling a slice")}a=n.splice(0,r+1);a=a.pop().key.toSlice(e,i(this.head,a).unwrap(),s.symbol,t);this.head=(a.front=this.front,a);r=-1}}return this};i.prototype.extractKeyRef=function(t,n){var i,r,s;return((i=(s=this.tails)[s.length-1])!=null?(r=i.key)!=null?r.extractKeyRef(t,n):void 8:void 8)||e.prototype.extractKeyRef.apply(this,arguments)};return i}(p);n.Call=A=function(e){var t=Re((Ce(i,e).displayName="Call",i),e).prototype,n=i;function i(e){var t,n,i,s,o,a,u=this instanceof r?this:new r;e||(e=[]);if(e.length===1&&(t=e[0])instanceof D){if(t.filler){u.method=".call";e[0]=y("this");e[1]=D(y("arguments"))}else if(t.it instanceof R){e=t.it.items}}else{for(n=0,i=e.length;n<i;++n){s=n;o=e[n];if(o.value==="_"){e[s]=L(y("void"));e[s].placeholder=true;((a=u.partialized)!=null?a:u.partialized=[]).push(L(y(s)))}}}u.args=e;return u}function r(){}r.prototype=t;i.prototype.children=["args"];i.prototype.show=function(){return[this["new"]]+[this.method]+[this.soak?"?":void 8]};i.prototype.compile=function(e){var t,n,i,r,s,o;t=[l(this,this.method||"","(")+(this.pipe?"\n"+e.indent:"")];for(n=0,r=(i=this.args).length;n<r;++n){s=n;o=i[n];t.push(s?", ":"",o.compile(e,ae))}t.push(l(this,")"));return l.apply(null,[null].concat(me(t)))};i.make=function(e,t,n){var r;r=i(t);if(n){Ce(r,n)}return L(e).add(r)};i.block=function(e,t,n){var r,s;return r=U(L(e,[(s=i(t),s.method=n,s)]),true),r.calling=true,r};i.back=function(e,t,n,r,s,o){var a,u,l,c,h,f,p;a=P(e,void 8,n,r,s,o);if(t instanceof V){a.name=t.label;a.labeled=true;t=t.it}if(!a.hushed&&(a.hushed=t.op==="!")){t=t.it}if((u=t.getCall())!=null){u.partialized=null}l=(t.getCall()||(t=L(t).add(i())).getCall()).args;c=0;for(h=0,f=l.length;h<f;++h){p=l[h];if(p.placeholder){break}++c}return t.back=(l[c]=a).body,t};i["let"]=function(e,t){var n,i,r,s,o,a,u,l,c,h;n=false;i=false;t.traverseChildren(function(e){if(e instanceof N){switch(e.op){case"yield":case"yieldfrom":n=true;break;case"await":i=true}}if(n&&i){return true}});s=[];for(o=0,a=e.length;o<a;++o){u=o;l=e[o];if(c=l.op==="="&&!l.logic&&l.right){e[u]=c;if(u===0&&(h=l.left.value==="this")){continue}s.push(l.left)}else{s.push(v(l.varName()||l.carp('invalid "let" argument')))}}r=s;h||e.unshift(y("this"));t=this.block(P(r,t,null,null,null,n,i),e,".call");if(n||i){return g(N(n?"yieldfrom":"await",t))}else{return t}};return i}(p);E=function(e){var t=Re((Ce(i,e).displayName="List",i),e).prototype,n=i;i.prototype.children=["items"];i.prototype.show=function(){return this.name};i.prototype.named=function(e){this.name=e;return this};i.prototype.isEmpty=function(){return!this.items.length};i.prototype.assigns=function(){var e,t,n,i,r,s,o,a,u,l;t=[];for(n=0,r=(i=this.items).length;n<r;++n){s=i[n];if(o=s.assigns()){for(a=0,u=o.length;a<u;++a){l=o[a];t.push(l)}}}e=t;if(o=this.name){e.push(o)}return e};i.compile=function(e,t,n){var i,r,s,o,a,u;switch(t.length){case 0:return"";case 1:return t[0].compile(e,ae)}i=e.indent,r=e.level;e.indent=i+fe;e.level=ae;s=[t[o=0].compile(e)];while(a=t[++o]){s.push(", ");u=a;if(n){if(u instanceof v&&u.value==="_"){u=C([S(b("__placeholder__"),y(true))])}else if(u instanceof C||u instanceof R){u.deepEq=true}}s.push(u.compile(e))}if(~s.join("").indexOf("\n")){s=["\n"+e.indent].concat(me(s),["\n"+i])}e.indent=i;e.level=r;return l.apply(null,[this].concat(me(s)))};i.prototype.toSlice=function(e,t,n,r){var s,o,a,u,l,c,h,f,p,d,g,m;s=this.items;o=this instanceof C;if(s.length>1){a=t.cache(e),t=a[0],u=a[1],l=a[2]}else{u=t}for(c=0,h=s.length;c<h;++c){f=c;p=s[c];if(!p.comment){if(o){d=p.val;if(!(d instanceof i)){(d=d.maybeKey())||this.carp("value in object slice is not a key")}}else{d=p;if(g=d instanceof D){d=d.it}if(d.isEmpty()){continue}}m=d instanceof i?d.toSlice(e,t,n,r):L(t,[w(d,n)]);if(o){p.val=m}else{s[f]=g?D(m):m}t=u}}m||this.carp("empty slice");if(l){(this.temps||(this.temps=[])).push(l[0])}return this};i.prototype.extractKeyRef=function(){var t;if((t=this.name)!=null){return b(t)}else{return e.prototype.extractKeyRef.apply(this,arguments)}};function i(){i.superclass.apply(this,arguments)}return i}(p);n.Obj=C=function(e){var t=Re((Ce(i,e).displayName="Obj",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.items=e||[];return t}function r(){}r.prototype=t;i.prototype.asObj=ke;i.prototype.compileNode=function(e){var t,n,r,s,o,a,u,c,h,f,p,d,g;if(this.name!=null){this.carp("unexpected label")}t=this.items;if(!t.length){return l(this,this.front?"({})":"{}")}n=[];r="\n"+(e.indent+=fe);s={};for(o=0,a=t.length;o<a;++o){u=o;c=t[o];if(c.comment){n.push(r,c.compile(e));continue}if((h=c.key)instanceof D||h instanceof U){f=t.slice(u);break}if(c.logic){c.val=(h=c.logic,h.first=c.val,h)}if(this.deepEq){if(c.val instanceof v&&c.val.value==="_"){c.val=i([S(b("__placeholder__"),y(true))])}else if((h=c.val)instanceof i||h instanceof R){c.val.deepEq=true}}if(p){n.push(",")}else{p=true}n.push(r);d=c.key,g=c.val;if(c.accessor){n.push(c.compileAccessor(e,d=d.compile(e)))}else{g.ripName(d);n.push(d=d.compile(e),": ",g.compile(e,ae))}pe.test(d)||(d=Function("return "+d)());if(!(s[d+"."]^=1)){c.carp('duplicate property "'+d+'"')}}if(n.join("")){n.push("\n"+this.tab)}n=l.apply(null,[null,l(this,"{")].concat(me(n),[l(this,"}")]));f&&(n=x(Z(n),i(f)).compile((e.indent=this.tab,e)));if(this.front&&"{"===n.toString().charAt()){return l(null,"(",n,")")}else{return n}};return i}(E);n.Prop=S=function(e){var t=Re((Ce(i,e).displayName="Prop",i),e).prototype,n=i;function i(e,t){var n,i,s,o,a=this instanceof r?this:new r;a.key=e;a.val=t;if((e!=null?e.value:void 8)==="..."){a.key=D()}if(n=t.getAccessors()){a.val=n;for(i=0,s=n.length;i<s;++i){o=n[i];o.x=(o.hushed=o.params.length)?"s":"g"}a["accessor"]="accessor"}return a}function r(){}r.prototype=t;i.prototype.children=["key","val","logic"];i.prototype.show=function(){return this.accessor};i.prototype.assigns=function(){var e;return typeof(e=this.val).assigns=="function"?e.assigns():void 8};i.prototype.compileAccessor=function(e,t){var n,i,r,s,o;n=this.val;if(n[1]&&n[0].params.length+n[1].params.length!==1){n[0].carp("invalid accessor parameter")}i=[];for(r=0,s=n.length;r<s;++r){o=n[r];o.accessor=true;i.push(o.x,"et ",t,o.compile(e,ae).toString().slice(8),",\n"+e.indent)}i.pop();return l.apply(null,[null].concat(me(i)))};i.prototype.compileDescriptor=function(e){var t,n,r,s,o;t=C();for(n=0,s=(r=this.val).length;n<s;++n){o=r[n];t.items.push(i(b(o.x+"et"),o))}t.items.push(i(b("configurable"),y(true)));t.items.push(i(b("enumerable"),y(true)));return t.compile(e)};i.prototype.rewriteShorthand=function(t,n){var i,r;e.prototype.rewriteShorthand.apply(this,arguments);if(this.key==null&&this.val instanceof I){this.val=this.val.maybeLogic()}if(this.key==null&&this.val instanceof _&&((i=this.val.op)==="+"||i==="-")){this.key=this.val.it.maybeKey()||this.carp("invalid property flag shorthand");this.val=y(this.val.op==="+")}if(r=this.val instanceof T&&this.val.getDefault()){this.val=this.val.first;this.logic=(r.first=null,r)}this.key==null&&(this.key=this.val.extractKeyRef(t,n))};return i}(p);n.Arr=R=function(e){var t=Re((Ce(i,e).displayName="Arr",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.items=e||[];return t}function r(){}r.prototype=t;i.prototype.isArray=be;i.prototype.asObj=function(){var e,t;return C(function(){var n,i,r,s=[];for(n=0,r=(i=this.items).length;n<r;++n){e=n;t=i[n];s.push(S(y(e),t))}return s}.call(this))};i.prototype.compile=function(e){var t,n;if(this.name!=null){this.carp("unexpected label")}t=this.items;if(!t.length){return l(this,"[]")}if(!c(n=D.compileArray(e,t))){return this.newed?l(this,"(",n,")"):l(this,n)}return l(null,l(this,"["),E.compile(e,t,this.deepEq),l(this,"]"))};i.maybe=function(e){if(e.length===1&&!(e[0]instanceof D)){return e[0]}return n(e)};i.wrap=function(e){return n([D((e.isArray=be,e))])};return i}(E);n.Yield=N=function(e){var t=Re((Ce(i,e).displayName="Yield",i),e).prototype,n=i;function i(e,t){var n=this instanceof r?this:new r;n.op=e;n.it=t;return n}function r(){}r.prototype=t;i.prototype.children=["it"];i.prototype.show=function(){switch(this.op){case"yield":return"";case"yieldfrom":return"from";case"await":return"await"}};t.delegate(["isCallable"],function(){return true});i.prototype.compileNode=function(e){var t;t=[function(){switch(this.op){case"yield":return"yield";case"yieldfrom":return"yield*";case"await":return"await"}}.call(this)];if(this.it){t.push(" "+this.it.compile(e,le+he.unary))}return l.apply(null,[this,"("].concat(me(t),[")"]))};return i}(p);n.Unary=_=function(e){var t=Re((Ce(i,e).displayName="Unary",i),e).prototype,n=i;function i(e,t,n){var i,s,o,a,u,l=this instanceof r?this:new r;if(t!=null){if(i=!n&&t.unaries){i.push(e);return t}switch(e){case"!":if(n){break}if(t instanceof P&&!t.hushed){return t.hushed=true,t}return t.invert();case"++":case"--":if(n){l.post=true}break;case"new":if(t instanceof M&&!t.negated){t=L(t).add(A())}t.newed=true;for(s=0,a=(o=t.tails||"").length;s<a;++s){u=o[s];if(u instanceof A&&!u["new"]){if(u.method===".call"){u.args.shift()}u["new"]="new";u.method="";return t}}break;case"~":if(t instanceof P&&t.statement&&!t.bound){return t.bound="this$",t}break;case"do":if(t instanceof M&&!t.negated){return L(t).add(A())}}}l.op=e;l.it=t;return l}function r(){}r.prototype=t;i.prototype.children=["it"];i.prototype.show=function(){return[this.post?"@":void 8]+this.op};i.prototype.isCallable=function(){var e;return(e=this.op)==="do"||e==="new"||e==="delete"||this.it==null};i.prototype.isArray=function(){return this.it instanceof R&&this.it.items.length||this.it instanceof L&&this.it.isArray()};i.prototype.isString=function(){var e;return(e=this.op)==="typeof"||e==="classof"};i.prototype.invert=function(){var e;if(this.op==="!"&&((e=this.it.op)==="!"||e==="<"||e===">"||e==="<="||e===">="||e==="of"||e==="instanceof")){return this.it}return n("!",this,true)};i.prototype.unfoldSoak=function(e){var t;return((t=this.op)==="++"||t==="--"||t==="delete"||t==="jsdelete")&&this.it!=null&&K.unfoldSoak(e,this,"it")};i.prototype.getAccessors=function(){var e;if(this.op!=="~"){return}if(this.it instanceof P){return[this.it]}if(this.it instanceof R){e=this.it.items;if(!e[2]&&e[0]instanceof P&&e[1]instanceof P){return e}}};function s(e){return{"++":"in","--":"de"}[e]+"crement"}i.prototype.compileNode=function(e){var t,n,r,o,a;if(this.it==null){return this.compileAsFunc(e)}if(t=this.compileSpread(e)){return t}n=this.op,r=this.it;switch(n){case"!":r.cond=true;break;case"new":r.isCallable()||r.carp("invalid constructor");break;case"do":if(e.level===se&&r instanceof P&&r.isStatement()){return l(this,r.compile(e)," ",i("do",v(r.name)).compile(e))}o=U(A.make(r));return l(this,(o.front=this.front,o.newed=this.newed,o).compile(e));case"delete":if(r instanceof v||!r.isAssignable()){this.carp("invalid delete")}if(e.level&&!this["void"]){return this.compilePluck(e)}break;case"++":case"--":r.isAssignable()||this.carp("invalid "+s(n));if(t=r instanceof v&&e.scope.checkReadOnly(r.value)){this.carp(s(n)+" of "+t+' "'+r.value+'"',ReferenceError)}if(this.post){r.front=this.front}break;case"^^":return l(this,Ae("clone"),"(",r.compile(e,ae),")");case"jsdelete":return l(this,"delete ",r.compile(e,ae));case"classof":return l(this,Ae("toString"),".call(",r.compile(e,ae),").slice(8, -1)")}a=[r.compile(e,le+he.unary)];if(this.post){a.push(n)}else{if(n==="new"||n==="typeof"||n==="delete"||(n==="+"||n==="-")&&n===a.join("").charAt()){n+=" "}a.unshift(n)}if(e.level<ce){return l.apply(null,[this].concat(me(a)))}else{return l.apply(null,[this,"("].concat(me(a),[")"]))}};i.prototype.compileSpread=function(e){var t,i;t=this.it;i=[this];for(;t instanceof n;t=t.it){i.push(t)}if(!(t instanceof D&&(t=t.it)instanceof E)){return""}return this.compileSpreadOver(e,t,function(t){var r,s,o;for(r=(s=i).length-1;r>=0;--r){o=s[r];t=n(o.op,t,o.post)}return t.unfoldSoak(e)||t})};i.prototype.compilePluck=function(e){var t,n,i,r,s;t=L(this.it).cacheReference(e),n=t[0],i=t[1];r=[s=e.scope.temporary()," = ",n.compile(e,ae),", delete ",i.compile(e,ae),", ",e.scope.free(s)];if(e.level<ae){return l.apply(null,[this].concat(me(r)))}else{return l.apply(null,[this,"("].concat(me(r),[")"]))}};i.prototype.compileAsFunc=function(e){if(this.op==="!"){return l(this,Ae("not"))}else{return l(this,"(",P([],g(i(this.op,L(v("it"))))).compile(e),")")}};i.prototype.rewriteShorthand=function(t,n){var i,r;if(i=this.unfoldSoak(t)){return i.rewriteShorthand(t,n)||i}return e.prototype.rewriteShorthand.call(this,t,n||((r=this.op)==="++"||r==="--"||r==="delete"||r==="jsdelete"))};return i}(p);n.Binary=T=function(e){var t,n,i=Re((Ce(s,e).displayName="Binary",s),e).prototype,r=s;function s(e,t,n){var i,r=this instanceof o?this:new o;r.partial=t==null||n==null;if(!r.partial){if("="===e.charAt(e.length-1)&&((i=e.charAt(e.length-2))!=="="&&i!=="<"&&i!==">"&&i!=="!")){return I(t.unwrap(),n,e)}switch(e){case"in":return new O(t,n);case"with":return new x(_("^^",t),n,false);case"<<<":case"<<<<":return x(t,n,e==="<<<<");case"<|":return g(t).pipe(n,e);case"|>":return g(n).pipe(t,"<|");case".":case".~":return L(t).add(w(n,e))}}r.op=e;r.first=t;r.second=n;return r}function o(){}o.prototype=i;s.prototype.children=["first","second"];s.prototype.show=function(){return this.op};s.prototype.isCallable=function(){var e;return this.partial||((e=this.op)==="&&"||e==="||"||e==="?"||e==="<<"||e===">>")&&this.first.isCallable()&&this.second.isCallable()};s.prototype.isArray=function(){switch(this.op){case"*":return this.first.isArray();case"/":return this.second.isMatcher()}};s.prototype.isString=function(){switch(this.op){case"+":case"*":return this.first.isString()||this.second.isString();case"-":return this.second.isMatcher()}};t=/^(?:[!=]=|[<>])=?$/;n={"===":"!==","!==":"===","==":"!=","!=":"=="};s.prototype.invert=function(){var e;if(e=!t.test(this.second.op)&&n[this.op]){this.op=e;this.wasInverted=true;return this}return _("!",U(this),true)};s.prototype.invertIt=function(){this.inverted=true;return this};s.prototype.getDefault=function(){switch(this.op){case"?":case"||":case"&&":return this}};s.prototype.assigns=function(){var e;return(e=this.getDefault())!=null?e.first.assigns():void 8};s.prototype.xorChildren=function(e){var t,n;if(!(!(n=e(this.first))!==!(t=e(this.second))&&(n||t))){return false}return n?[this.first,this.second]:[this.second,this.first]};s.prototype.compileNode=function(e){var n,i,r,s,o,a,u;if(this.partial){return this.compilePartial(e)}switch(this.op){case"?":return this.compileExistence(e);case"*":if(this.second.isString()){return this.compileJoin(e)}if(this.first.isString()||this.first.isArray()){return this.compileRepeat(e)}break;case"-":if(this.second.isMatcher()){return this.compileRemove(e)}break;case"/":if(this.second.isMatcher()){return this.compileSplit(e)}break;case"**":case"^":return this.compilePow(e);case"<?":case">?":return this.compileMinMax(e);case"<<":case">>":return this.compileCompose(e);case"++":return this.compileConcat(e);case"%%":return this.compileMod(e);case"xor":return this.compileXor(e);case"&&":case"||":if(n=this["void"]||!e.level){this.second["void"]=true}if(n||this.cond){this.first.cond=true;this.second.cond=true}break;case"instanceof":i=this.second,r=i.items;if(i instanceof R){if(r[1]){return this.compileAnyInstanceOf(e,r)}this.second=r[0]||i}this.second.isCallable()||this.second.carp("invalid instanceof operand");break;case"====":case"!===":this.op=this.op.slice(0,3);
|
|
// fallthrough
|
|
case"<==":case">==":case"<<=":case">>=":return this.compileDeepEq(e);default:if(t.test(this.op)){if(s=((o=this.op)==="==="||o==="!==")&&this.xorChildren(function(e){return e.isRegex()})){return this.compileRegexEquals(e,s)}if(this.op==="==="&&(this.first instanceof y&&this.second instanceof y)&&this.first.isWhat()!==this.second.isWhat()){if(e.warn){this.warn("strict comparison of two different types will always be false: "+this.first.value+" == "+this.second.value)}}}if(t.test(this.op)&&t.test(this.second.op)){return this.compileChain(e)}}this.first.front=this.front;a=[this.first.compile(e,u=le+he[this.op])," ",this.mapOp(this.op)," ",this.second.compile(e,u)];if(e.level<=u){return l.apply(null,[this].concat(me(a)))}else{return l.apply(null,[this,"("].concat(me(a),[")"]))}};s.prototype.mapOp=function(e){var t;switch(false){case!(t=e.match(/\.([&\|\^]|<<|>>>?)\./)):return t[1];case e!=="of":return"in";default:return e}};s.prototype.compileChain=function(e){var t,n,i,r;t=[this.first.compile(e,n=le+he[this.op])];i=this.second.first.cache(e,true),r=i[0],this.second.first=i[1];t.push(" ",this.op," ",r.compile(e,n)," && ",this.second.compile(e,le));if(e.level<=le){return l.apply(null,[this].concat(me(t)))}else{return l.apply(null,[this,"("].concat(me(t),[")"]))}};s.prototype.compileExistence=function(e){var t;if(this["void"]||!e.level){t=s("&&",M(this.first,true),U(this.second.unwrap()));return(t["void"]=true,t).compileNode(e)}t=this.first.cache(e,true);return l(this,K(M(t[0]),t[1]).addElse(this.second).compileExpression(e))};s.prototype.compileAnyInstanceOf=function(e,t){var n,i,r,o,a,u,c;n=this.first.cache(e),i=n[0],r=n[1],this.temps=n[2];o=s("instanceof",i,t.shift());for(a=0,u=t.length;a<u;++a){c=t[a];o=s("||",o,s("instanceof",r,c))}return l(this,U(o).compile(e))};s.prototype.compileMinMax=function(e){var t,n,i;t=this.first.cache(e,true);n=this.second.cache(e,true);i=s(this.op.charAt(),t[0],n[0]);return l(this,K(i,t[1]).addElse(n[1]).compileExpression(e))};s.prototype.compileMethod=function(e,t,n,i){var r;r=[this.second].concat(i||[]);if(this.first["is"+t]()){return l(this,L(this.first,[w(b(n)),A(r)]).compile(e))}else{r.unshift(this.first);return l(this,A.make(Z(Ae(n)+".call"),r).compile(e))}};s.prototype.compileJoin=function(e){return this.compileMethod(e,"Array","join")};s.prototype.compileRemove=function(e){return this.compileMethod(e,"String","replace",Z("''"))};s.prototype.compileSplit=function(e){return this.compileMethod(e,"String","split")};s.prototype.compileRepeat=function(e){var t,n,i,r,s,o,a,u,h,f,p,d;t=this.first,n=t.items,i=this.second;r=t.isArray()&&"Array";if(n&&!c(s=D.compileArray(e,n))){t=Z(s);n=null}if(r&&!n||!(i instanceof y&&i.value<32)){return l(this,A.make(ee("repeat"+(r||"String")),[t,i]).compile(e))}i=+i.value;if(1<=i&&i<2){return l(this,t.compile(e))}if(n){if(i<1){return l(this,g(n).add(Z("[]")).compile(e))}o=[];for(a=0,u=n.length;a<u;++a){h=a;f=n[a];p=f.cache(e,1),n[h]=p[0],o[o.length]=p[1]}n.push((p=Z(),p.compile=function(){return l.apply(null,[this].concat(me(_e([", ",E.compile(e,o)],i-1).slice(1))))},p));return l(this,t.compile(e))}else if(t instanceof y){return l(this,(d=(t=t.compile(e).toString()).charAt())+Te(t.slice(1,-1)+"",i)+d)}else{if(i<1){return l(this,g(t.it).add(Z("''")).compile(e))}t=(o=t.cache(e,1,le))[0]+Te(" + "+o[1],i-1);if(e.level<le+he["+"]){return l(this,t)}else{return l(this,"(",t,")")}}};s.prototype.compilePow=function(e){return l(null,A.make(ne(this,Z("Math.pow")),[this.first,this.second]).compile(e))};s.prototype.compileConcat=function(e){var t;t=function(e){switch(false){case!(e instanceof s&&e.op==="++"):return t(e.first).concat(t(e.second));default:return[e]}};return l(null,L(this.first).add(ne(this,w(b("concat"),".",true))).add(A(t(this.second))).compile(e))};s.prototype.compileCompose=function(e){var t,n,i;t=this.op;n=[this.first];i=this.second;while(i instanceof s&&i.op===t&&!i.partial){n.push(i.first);i=i.second}n.push(i);if(t==="<<"){n.reverse()}return l(this,L(v(Ae("compose"))).add(A(n)).compile(e))};s.prototype.compileMod=function(e){var t,n;t=e.scope.temporary();n=[l(this,"(("),this.first.compile(e),l(this,") % ("),l(this,t," = "),this.second.compile(e),l(this,") + ",t,") % ",t)];e.scope.free(t);if(e.level<le+he["%"]){return l.apply(null,[null].concat(me(n)))}else{return l.apply(null,[null,"("].concat(me(n),[")"]))}};s.prototype.compilePartial=function(e){var t,n,i;t=v("it");switch(false){case!(this.first==null&&this.second==null):n=v("x$");i=v("y$");return l(this,P([n,i],g(s(this.op,n,i).invertCheck(this)),false,true).compile(e));case this.first==null:return l(this,"(",P([t],g(s(this.op,this.first,t).invertCheck(this)),true).compile(e),")");default:return l(this,"(",P([t],g(s(this.op,t,this.second).invertCheck(this)),true).compile(e),")")}};s.prototype.compileRegexEquals=function(e,t){var n,i,r;n=t[0],i=t[1];if(this.op==="==="){r=this.wasInverted?"test":"exec";return l(this,L(n).add(w(b(r))).add(A([i])).compile(e))}else{return l(this,_("!",L(n).add(w(b("test"))).add(A([i]))).compile(e))}};s.prototype.compileDeepEq=function(e){var t,n,i,r,s,o;if((t=this.op)===">=="||t===">>="){t=[this.second,this.first],this.first=t[0],this.second=t[1];this.op=this.op===">=="?"<==":"<<="}if(this.op==="!=="){this.op="===";n=true}for(i=0,r=(t=[this.first,this.second]).length;i<r;++i){s=t[i];if(s instanceof C||s instanceof R){s.deepEq=true}}o=L(v(Ae("deepEq"))).add(A([this.first,this.second,y("'"+this.op+"'")]));return l(this,(n?_("!",o):o).compile(e))};s.prototype.compileXor=function(e){var t,n;t=L(this.first).cacheReference(e);n=L(this.second).cacheReference(e);return l(this,s("&&",s("!==",_("!",t[0]),_("!",n[0])),U(s("||",t[1],n[1]))).compile(e))};s.prototype.rewriteShorthand=function(t,n){var i;if(this.partial){return e.prototype.rewriteShorthand.apply(this,arguments)}if(i=this.first.rewriteShorthand(t,n)){this.first=i}if(i=this.second.rewriteShorthand(t)){this.second=i}};return s}(p);n.Assign=I=function(e){var t=Re((Ce(i,e).displayName="Assign",i),e).prototype,n=i;function i(e,t,n,i,s){var o=this instanceof r?this:new r;o.left=e;o.op=n||"=";o.logic=i||o.op.logic;o.defParam=s;o.opLoc=o.op;o.op+="";o[t instanceof p?"right":"unaries"]=t;return o}function r(){}r.prototype=t;i.prototype.children=["left","right"];i.prototype.show=function(){return[void 8].concat(this.unaries).reverse().join(" ")+[this.logic]+this.op};i.prototype.assigns=function(){return this.left.assigns()};i.prototype.getRef=function(){if(!this.left.isComplex()){return this.left}};t.delegate(["isCallable","isRegex"],function(e){var t;return((t=this.op)==="="||t===":=")&&this.right&&this.right[e]()});i.prototype.isArray=function(){switch(this.op){case"=":case":=":return this.right&&this.right.isArray();case"/=":return this.right&&this.right.isMatcher()}};i.prototype.isString=function(){switch(this.op){case"=":case":=":case"+=":case"*=":return this.right&&this.right.isString();case"-=":return this.right&&this.right.isMatcher()}};i.prototype.unfoldSoak=function(e){var t,n,r,s,o;if(this.left instanceof M){if(t=(r=(n=this.left=this.left.it).name,delete n.name,r)){s=this.right;s=i(this.right=v(t),s)}else{n=this.right.cache(e),s=n[0],this.right=n[1],o=n[2]}return n=K(M(s),this),n.soak=true,n.temps=o,n.cond=this.cond,n["void"]=this["void"],n}return K.unfoldSoak(e,this,"left")};i.prototype.unfoldAssign=function(){return this.access&&this};i.prototype.compileNode=function(e){var t,n,r,s,o,a,u,c,h,f,p,d,m,y,b,w,A;if(t=this.unfoldSoak(e)){return t.compile(e)}if(this.left instanceof k&&this.op==="="){return this.compileSplice(e)}n=this.left;if(r=this.left instanceof D){n=n.it}if(r){n instanceof E||this.left.carp("invalid splat");return this.compileSpread(e,n)}if(!this.right){n.isAssignable()||n.carp("invalid unary assign");s=L(n).cacheReference(e),n=s[0],this.right=s[1];for(o=0,a=(s=this.unaries).length;o<a;++o){u=s[o];this.right=_(u,this.right)}}if(n.isEmpty()){return l(null,(s=U(this.right),s.front=this.front,s.newed=this.newed,s).compile(e))}if(n.getDefault()){this.right=T(n.op,this.right,n.second);n=n.first}if(n.soak){this.left=n.then;n.then=this;return n.compile(e)}if(n.items){return this.compileDestructuring(e,n)}n.isAssignable()||n.carp("invalid assign");if(this.logic){return this.compileConditional(e,n)}u=this.op,c=this.right;if(u==="<?="||u===">?="){return this.compileMinMax(e,n,c)}if(u==="**="||u==="^="||u==="%%="||u==="++="||u==="|>="||u==="*="&&c.isString()||(u==="-="||u==="/=")&&c.isMatcher()){s=L(n).cacheReference(e),n=s[0],h=s[1];c=T(u.slice(0,-1),h,c);u=":="}if(u===".&.="||u===".|.="||u===".^.="||u===".<<.="||u===".>>.="||u===".>>>.="){u=u.slice(1,-2)+"="}(c=c.unparen()).ripName(n=n.unwrap());if(n instanceof L){n.expandVivify();if((n=n.unwrap())instanceof i){s=L(n.left).cacheReference(e),n.left=s[0],this.left=s[1];return g([n,(s=Se(this),s.terminator="",s)]).compile(e)}}f=l(this.opLoc," ",u.replace(":","")," ");p=(n.front=true,n).compile(e,ae);if(d=n instanceof v){if(u==="="){e.scope.declare(p.toString(),n,this["const"]||!this.defParam&&e["const"]&&"$"!==p.toString().slice(-1))}else if(t=e.scope.checkReadOnly(p.toString())){n.carp("assignment to "+t+' "'+p+'"',ReferenceError)}}if(n instanceof L&&c instanceof P){m=p.toString().split(".prototype.");y=p.toString().split(".");if(m.length>1){c.inClass=m[0]}else if(y.length>1){c.inClassStatic=ge.call(y,0,-1).join("")}}b=!e.level&&c instanceof Y&&!c["else"]&&(d||n instanceof L&&n.isSimpleAccess())?(w=c.objComp?"{}":"[]",[A=e.scope.temporary("res")," = "+w+";\n"+this.tab,c.makeReturn(A).compile(e),"\n"+this.tab,p,f,e.scope.free(A)]):[p,f,c.compile(e,ae)];if(e.level>ae){b=["("].concat(me(b),[")"])}return l.apply(null,[null].concat(me(b)))};i.prototype.compileConditional=function(e,t){var n,i,r;if(t instanceof v&&this.logic==="?"&&this.op==="="){e.scope.declare(t.value,t)}n=L(t).cacheReference(e),i=n[0],t=n[1];e.level+=le<e.level;if(this.logic==="?"&&((n=this.op)!=="="&&n!==":=")){this.logic="&&";i=M(i)}r=T(this.logic,i,(this.logic=false,this.left=t,this));return l(this,(r["void"]=this["void"],r).compileNode(e))};i.prototype.compileMinMax=function(e,t,n){var r,s,o,a,u;r=L(t).cacheReference(e);s=n.cache(e,true);o=T(this.op.replace("?",""),r[0],s[0]);a=i(r[1],s[1],":=");if(this["void"]||!e.level){return U(T("||",o,a)).compile(e)}u=o.first.cache(e,true),o.first=u[0],t=u[1];return l(this,K(o,t).addElse(a).compileExpression(e))};i.prototype.compileDestructuring=function(e,t){var n,i,r,s,o,a,u,c,h,f,p,d,g,m;n=t.items,i=n.length;r=e.level&&!this["void"];s=this.right.compile(e,i===1?ce:ae);if(o=t.name){a=l(this,o," = ",s);e.scope.declare(s=o,t)}else if((r||i>1)&&(!pe.test(s.toString())||(o=t.assigns())&&Ne(s.toString(),o))){a=l(this,u=e.scope.temporary()," = ",s);s=u}if(s.toString()==="arguments"&&!r){c=true;if(!(t instanceof R)){this.carp("arguments can only destructure to array")}}h=this["rend"+t.constructor.displayName](e,n,s,c);if(u){e.scope.free(u)}if(a){h.unshift(a)}if(r||!h.length){h.push(s)}f=[];p=c?"; ":", ";for(d=0,g=h.length;d<g;++d){m=h[d];f.push(m,p)}f.pop();if(e.level<le&&h.length<2||e.level<ae){return l.apply(null,[this].concat(me(f)))}else{return l.apply(null,[this,"("].concat(me(f),[")"]))}};i.prototype.compileSplice=function(e){var t,n,i,r,s,o;t=L(this.left.from).cacheReference(e),n=t[0],i=t[1];t=L(this.right).cacheReference(e),r=t[0],s=t[1];o=T("-",this.left.to,i);return l(this,g([L(v(Ae("splice"))).add(w(b("apply"),".",true)).add(A([this.left.target,L(R([n,o])).add(w(b("concat"),".",true)).add(A([r]))])),s]).compile(e,ae))};i.prototype.compileSpread=function(e,t){var i,r,s,o,a=this;r=(i=this.unaries)?[i,i]:t.items.length<=1?[r=this.right,r]:this.right.cache(e,true),s=r[0],o=r[1];return this.compileSpreadOver(e,t,function(e){var t;t=n(e,s,a.op,a.logic);s=o;return t})};i.prototype.rendArr=function(e,t,n,i){var r,s,o,a,u,l,c,h,f,p,d,g,m,k,A;function E(e,t){return new z({ref:true,from:e,op:"til",to:t}).makeComprehension(L(v("arguments")).add(w(y(".."))),[])}r=[];for(s=0,o=t.length;s<o;++s){a=s;u=t[s];if(u.isEmpty()){continue}if(u instanceof D){c&&u.carp("multiple splat in an assignment");l=(u=u.it).isEmpty();if(a+1===(c=t.length)){if(l){break}if(i){h=E(y(a),L(v("arguments")).add(w(b("length"))))}else{h=R.wrap(Z(Ae("slice")+".call("+n+(a?", "+a+")":")")))}}else{h=f=n+".length - "+(c-a-1);if(l&&a+2===c){continue}p=a+1;(this.temps||(this.temps=[])).push(f=e.scope.temporary("i"));h=C()}}else{(d=f)&&p<a&&(d+=" + "+(a-p));h=L(g||(g=y(n)),[w(Z(d||a))])}if(i){if(!(u instanceof v)&&h instanceof z){(this.temps||(this.temps=[])).push(m=e.scope.temporary("ref"));k=v(m);r.push((A=Se(this),A.left=k,A.right=h,A["void"]=true,A).compile(e,se));r.push((A=Se(this),A.left=u,A.right=k,A["void"]=true,A).compile(e,se))}else{r.push((A=Se(this),A.left=u,A.right=h,A["void"]=true,A).compile(e,se))}}else{r.push((A=Se(this),A.left=u,A.right=h,A["void"]=true,A).compile(e,oe))}}return r;function C(){switch(false){case!l:return R.wrap(Z(a+" < ("+f+" = "+h+") ? "+a+" : ("+f+" = "+a+")"));case!i:return E(Z(a+" < ("+f+" = "+h+") ? "+a+" : ("+f+" = "+a+")"),v(f));default:return R.wrap(Z(a+" < ("+f+" = "+h+") ? "+Ae("slice")+".call("+n+", "+a+", "+f+") : ("+f+" = "+a+", [])"))}}};i.prototype.rendObj=function(e,t,n){var i,r,s,o,a,u,l,c,h,f,p,d,g,m=[];i=[];r=[];s=v(n);for(o=0,a=t.length;o<a;++o){u=t[o],l=u.key,c=u.val,h=u.logic;c=c.unparen();if(l instanceof D){h!=null&&this.carp("invalid assign");f=C(b.call(this));p=L(v(Ae("copyWithout"))).add(A([s,f]))}else{i.push(l);if(h){c=(h.first=c,h)}p=L(s,[w(l)])}r.push([c,p])}for(o=0,a=r.length;o<a;++o){u=r[o],d=u[0],g=u[1];m.push((u=Se(this),u.left=d,u.right=g,u["void"]=true,u.temps=[],u).compile(e,oe))}return m;function b(){var t,n,r,s,o=[];for(t=0,s=(r=i).length;t<s;++t){n=r[t];o.push(S(n.extractKeyRef(e,true,this),y(0)))}return o}};i.prototype.rewriteShorthand=function(e,t){var n,i,r,s;if(t){if(this===(n=this.maybeLogic())){this.carp("invalid assign")}return(i=n.rewriteShorthand(e,true))!=null?i:n}if(r=this.unfoldSoak(e)){return r.rewriteShorthand(e,t)||r}if(r=(i=this.left)!=null?i.rewriteShorthand(e,true):void 8){this.left=r}if(r=(s=this.right)!=null?s.rewriteShorthand(e):void 8){this.right=r}};i.prototype.maybeLogic=function(){if(this.op==="="){return T(this.logic||"?",this.left,this.right)}else{return this}};return i}(p);n.Import=x=function(e){var t=Re((Ce(i,e).displayName="Import",i),e).prototype,n=i;function i(e,t,n){var i=this instanceof r?this:new r;i.left=e;i.right=t;i.all=n&&"All";if(!n&&e instanceof C&&t.items){return C(e.items.concat(t.asObj().items))}return i}function r(){}r.prototype=t;i.prototype.children=["left","right"];i.prototype.show=function(){return this.all};t.delegate(["isCallable","isArray"],function(e){return this.left[e]()});i.prototype.unfoldSoak=function(e){var t,n,i,r;t=this.left;if(t instanceof M&&!t.negated){if((t=t.it)instanceof v){n=(this.left=t).value;if(!e.scope.check(n,true)){t=Z("typeof "+n+" != 'undefined' && "+n)}}else{i=t.cache(e),t=i[0],this.left=i[1],r=i[2]}return i=K(t,this),i.temps=r,i.soak=true,i.cond=this.cond,i["void"]=this["void"],i}return K.unfoldSoak(e,this,"left")||this["void"]&&K.unfoldSoak(e,this,"right")};i.prototype.compileNode=function(e){var t;t=this.right;if(!this.all){if(t instanceof L){t=t.unfoldSoak(e)||t.unfoldAssign(e)||t}if(t instanceof E){return this.compileAssign(e,t.asObj().items)}}return ne(this,A.make(ee("import"+(this.all||"")),[this.left,t])).compileNode(e)};i.prototype.compileAssign=function(e,t){var n,r,s,o,a,u,c,h,f,p,d,g,m,y,v;if(!t.length){return this.left.compile(e)}n=!e.level;if(this.proto||t.length<2&&(n||this["void"]||t[0].key instanceof D)){r=this.left;if(r.isComplex()){r=U(r)}}else{s=this.left.cache(e),o=s[0],r=s[1],this.temps=s[2]}s=n?[";","\n"+this.tab]:[","," "],a=s[0],u=s[1];a+=u;c=this.temps?[o.compile(e,oe),a]:[];for(h=0,f=t.length;h<f;++h){p=h;d=t[h];p&&c.push(g?u:a);if(g=d.comment){c.push(d.compile(e));continue}m=d.key,y=d.val,v=d.logic;if(m instanceof D){c.push(ne(this,i(r,y)).compile(e));continue}if(d.accessor){if(m instanceof b){m=Z("'"+m.name+"'")}c.push("Object.defineProperty(",r.compile(e,ae),", ",m.compile(e,ae),", ",d.compileDescriptor(e),")");continue}v&&(y=(v.first=y,v));c.push(I(L(r,[w(m)]),y).compile(e,oe))}if(n){return l.apply(null,[null].concat(me(c)))}this["void"]||m instanceof D||c.push(g?" ":", ",r.compile(e,oe));if(e.level<ae){return l.apply(null,[null].concat(me(c)))}else{return l.apply(null,[null,"("].concat(me(c),[")"]))}};i.prototype.rewriteShorthand=function(e,t){var n,i,r;if(n=this.unfoldSoak(e)){return n.rewriteShorthand(e,t)||n}if(n=(i=this.left)!=null?i.rewriteShorthand(e,t):void 8){this.left=n}if(n=(r=this.right)!=null?r.rewriteShorthand(e):void 8){this.right=n}};return i}(p);n.In=O=function(e){var t=Re((Ce(i,e).displayName="In",i),e).prototype,n=i;Ie(t,arguments[1]);function i(e,t){this.item=e;this.array=t}i.prototype.children=["item","array"];i.prototype.compileNode=function(e){var t,n,r,s,o,a,u,c,h,f,p,d,g;n=(t=this.array).items;if(!(t instanceof R)){return l(this,this.negated?"!":"",Ae("in"),"(",this.item.compile(e,ae),", ",t.compile(e,ae),")")}if(n.length===0){if(e.warn){this.warn("value can never be `in` an empty array")}r=!!this.negated+"";return this.item.isComplex()?l(this,"(",this.item.compile(e,ae),", ",r,")"):l(this,r)}s=[];o=n.length===1?[o=this.item.compile(e,oe),o]:this.item.cache(e,false,oe),a=o[0],u=o[1];o=this.negated?[" !== "," && "]:[" === "," || "],c=o[0],h=o[1];for(f=0,p=n.length;f<p;++f){d=f;g=n[f];if(s.length>0){s.push(h)}if(g instanceof D){s.push((o=new i(v(u),g.it),o.negated=this.negated,o).compile(e,se));if(!(d||a===u)){s=["("+a+", "].concat(me(s),[")"])}}else{s.push(d||a===u?u:"("+a+")",c,g.compile(e,le+he["=="]))}}a===u||e.scope.free(u);if(e.level<le+he[n.length===1?"===":"||"]){return l.apply(null,[this].concat(me(s)))}else{return l.apply(null,[this,"("].concat(me(s),[")"]))}};return i}(p,d);n.Existence=M=function(e){var t=Re((Ce(i,e).displayName="Existence",i),e).prototype,n=i;Ie(t,arguments[1]);function i(e,t){var n=this instanceof r?this:new r;n.it=e;n.negated=t;return n}function r(){}r.prototype=t;i.prototype.children=["it"];i.prototype.compileNode=function(e){var t,n,i,r,s,o,a,u;t=(n=this.it.unwrap(),n.front=this.front,n);i=[t.compile(e,le+he["=="])];if(this.doAnaphorize){e.scope.declare("that",v("that"))}if(t instanceof v&&!e.scope.check(i.join(""),true)){n=this.negated?["||","="]:["&&","!"],r=n[0],s=n[1];if(this.doAnaphorize){n=this.negated?[["(that = undefined) || "],[]]:[[],[" && (that = "].concat(me(i),[", true)"])],o=n[0],a=n[1]}i=["typeof "].concat(me(i),[" "+s+"= 'undefined' "+r+" "],me(i),[" "+s+"== null"]);if((u=o)!=null){i=u.concat(i)}if((u=a)!=null){i=i.concat(u)}}else{if(this.doAnaphorize){i=["(that = "].concat(me(i),[")"])}i.push(" "+(r=this.negated?"==":"!=")+" null")}if(e.level<le+he[r]){return l.apply(null,[this].concat(me(i)))}else{return l(this,"(",i,")")}};return i}(p,d);n.Fun=P=function(e){var t=Re((Ce(r,e).displayName="Fun",r),e).prototype,n=r;function r(e,t,n,i,r,o,a){var u=this instanceof s?this:new s;u.params=e||[];u.body=t||g();u.bound=n&&"this$";u.curried=i||false;u.hushed=r!=null?r:false;u.generator=o!=null?o:false;u.async=a!=null?a:false;return u}function s(){}s.prototype=t;r.prototype.children=["params","body"];r.prototype.show=function(){var e;return[this.name]+[(e=this.bound)?"~"+e:void 8]};r.prototype.named=function(e){return this.name=e,this.statement=true,this};r.prototype.isCallable=be;r.prototype.isStatement=function(){return!!this.statement};r.prototype.traverseChildren=function(t,n){if(n){return e.prototype.traverseChildren.apply(this,arguments)}};r.prototype.rewriteShorthand=Le;r.prototype.makeReturn=function(){if(this.statement){return this.returns=true,this}else{return e.prototype.makeReturn.apply(this,arguments)}};r.prototype.ripName=function(e){this.name||(this.name=e.varName())};r.prototype.compileNode=function(e){var t,n,i,r,s,o,a,u,h,f,p,d,g=this;t=e.scope;n=t.shared||t;i=e.scope=this.body.scope=new ve(this.wrapper?t:n,this.wrapper&&n);i.fun=this;if(r=this.proto){i.assign("prototype",r.compile(e)+".prototype")}if(r=this.cname){i.assign("constructor",r)}if(s=(o=e.loop,delete e.loop,o)){e.indent=this.tab=""}e.indent+=fe;a=this.body,u=this.name,h=this.tab;f=["function"];if(this.async){this.ctor&&this.carp("a constructor can't be async");e.inAsync=true;f.unshift("async ")}else if(!this.wrapper){e.inAsync=false}if(this.generator){this.ctor&&this.carp("a constructor can't be a generator");e.inGenerator=true;f.push("*")}else if(!this.wrapper){e.inGenerator=false}if(this.bound==="this$"){if(this.ctor){i.assign("this$","this instanceof ctor$ ? this : new ctor$");a.lines.push(W(y("this$")))}else if(r=(o=n.fun)!=null?o.bound:void 8){this.bound=r}else if(this.usesThis()){n.assign("this$","this")}}if(this.statement){u||this.carp("nameless function declaration");t===e.block.scope||this.carp("misplaced function declaration");this.accessor&&this.carp("named accessor");t.add(u,"function",this)}if(this.statement||u&&this.labeled){f.push(" ",i.add(u,"function",this))}this.hushed||this.ctor||this.newed||a.makeReturn();f.push("(",this.compileParams(e,i),")");f=[l.apply(null,[this].concat(me(f)))];f.push("{");if(!c(p=a.compileWithDeclarations(e))){f.push("\n",p,"\n"+h)}f.push("}");d=function(){if(g.curried&&g.hasSplats){g.carp("cannot curry a function with a variable number of arguments")}if(g.curried&&g.params.length>1&&!g.classBound){if(g.bound){return[Ae("curry"),"(("].concat(me(f),["), true)"])}else{return[Ae("curry"),"("].concat(me(f),[")"])}}else{return f}};if(s){return t.assign(t.temporary("fn"),l.apply(null,[null].concat(me(d()))))}if(this.returns){f.push("\n"+h+"return ",u,";")}else if(this.bound&&this.ctor){f.push(" function ctor$(){} ctor$.prototype = prototype;")}f=d();if(this.front&&!this.statement){return l.apply(null,[null,"("].concat(me(f),[")"]))}else{return l.apply(null,[null].concat(me(f)))}};r.prototype.compileParams=function(e,t){var n,r,s,o,a,u,c,h,f,p,d,g,m,b,w,k,L,A,E;n=this.params,r=n.length,s=this.body;for(o=n.length-1;o>=0;--o){a=n[o];if(!(a.isEmpty()||a.filler)){break}--n.length}for(o=0,u=n.length;o<u;++o){c=o;a=n[o];if(a.left instanceof D){a.carp("invalid splat")}if(a instanceof D){this.hasSplats=true;h=c}else if(a.op==="="){n[c]=T(a.logic||"?",a.left,a.right)}}if(h!=null){f=n.splice(h,9e9)}else if(this.accessor){if(p=n[1]){p.carp("excess accessor parameter")}}else if(!(r||this.wrapper)){if(s.traverseChildren(function(e){return e.value==="it"||null})){n[0]=v("it")}}d=[];g=[];for(o=0,u=n.length;o<u;++o){a=n[o];m=a;if(b=m.getDefault()){m=m.first}if(m.isEmpty()){m=v(t.temporary("arg"))}else if(m.value===".."){m=v(e.ref=t.temporary())}else if(!(m instanceof v)){w=[];while(m instanceof _){k=true;w.push(m);m=m.it}L=v((E=(A=m.it||m).name,delete A.name,E)||m.varName()||t.temporary("arg"));g.push(I(m,C()));m=L}else if(b){g.push(I(m,a.second,"=",a.op,true))}d.push(t.add(m.value,"arg",a),", ")}if(f){while(h--){f.unshift(R())}g.push(I(R(f),y("arguments")))}if(g.length){(A=this.body).prepend.apply(A,g)}d.pop();return l.apply(null,[null].concat(me(d)));function C(){switch(false){case!b:return T(a.op,L,a.second);case!k:return i(function(e,t){t.it=e;return t},L,w.reverse());default:return L}}};r.prototype.usesThis=function(){return p.prototype.traverseChildren.call(this,function(e){switch(false){case!(e instanceof y&&e.value==="this"):return true;case!(e instanceof r&&e.bound&&e.usesThis()):return true}})};return r}(p);n.Class=B=function(e){var t=Re((Ce(i,e).displayName="Class",i),e).prototype,n=i;function i(e){var t;this.title=e.title,this.sup=e.sup,this.mixins=e.mixins,t=e.body;this.fun=P([],t)}i.prototype.children=["title","sup","mixins","fun"];i.prototype.isCallable=be;i.prototype.ripName=function(e){this.name=e.varName()};i.prototype.getRef=function(){var e,t;if(t=((e=this.title)!=null?e.varName():void 8)||this.name){return v(t)}};i.prototype.compile=function(e,t){var n,i,r,s,o,a,u,c,h,f,p,d,m,k,E,S,R,N,_,T,O,M,B,j,F;n=this.fun,i=n.body,r=i.lines,s=this.title;ne(this,n);o=[];a=[];u=s!=null?s.varName():void 8;c=u||this.name;if(pe.test(c||"")){n.cname=c}else{c="constructor"}h=v("prototype");f=n.proto=v(n.bound=c);p="constructor$$";k=function(t,n){var i,r,s,u,l,c,h;i=0;for(;i<t.items.length;i++){r=t.items[i];s=r.key;if(s instanceof b&&s.name===p||s instanceof y&&s.value==="'"+p+"'"){if(d){t.carp("redundant constructor")}d=r.val;t.items.splice(i--,1);m=n}if(!(r.val instanceof P||r.accessor)){continue}if(s.isComplex()){s=v(e.scope.temporary("key"));r.key=I(s,r.key)}if(r.val.bound){if(r.val.curried){a.push(r.key)}else{o.push(r.key)}r.val.bound=false;r.val.classBound=true}for(u=0,c=(l=[].concat(r.val)).length;u<c;++u){h=l[u];h.meth=s}}if(t.items.length){return l=x(L(f).add(w(b("prototype"))),t),l.proto=true,l}else{return y("void")}};for(E=0,S=r.length;E<S;++E){R=E;N=r[E];if(N instanceof C){r[R]=k(N,R)}else if(N instanceof P&&!N.statement){d&&N.carp("redundant constructor");d=N}else if(N instanceof I&&N.left instanceof L&&N.left.head.value==="this"&&N.right instanceof P){N.right.stat=N.left.tails[0].key}else{N.traverseChildren(Y)}}d||(d=r[r.length]=this.sup?P([],g(L(new $).add(A([D(y("arguments"))])))):P());if(!(d instanceof P)){r.splice(m+1,0,I(v(p),d));r.unshift(d=P([],g(W(L(v(p)).add(A([D("arguments",true)]))))))}d.name=c;d.ctor=true;d.statement=true;for(E=0,S=o.length;E<S;++E){_=o[E];d.body.lines.unshift(I(L(y("this")).add(w(_)),L(v(Ae("bind"))).add(A([y("this"),y("'"+_.name+"'"),v("prototype")]))))}for(E=0,S=a.length;E<S;++E){_=a[E];d.body.lines.unshift(I(L(y("this")).add(w(b("_"+_.name))),L(v(Ae("curry"))).add(A([L(v("prototype")).add(w(_)),v("true")]))),I(L(y("this")).add(w(_)),L(v(Ae("bind"))).add(A([y("this"),y("'_"+_.name+"'")]))))}r.push(f);T=[];if(O=this.sup){T.push(O);M=L(x(y("this"),v("superclass")));n.proto=ee.Extends(n.cname?g([I(M.add(w(b("displayName"))),y("'"+c+"'")),y(c)]):M,(B=n.params)[B.length]=v("superclass"))}if(O=this.mixins){j=[];for(E=0,S=O.length;E<S;++E){T[T.length]=O[E];j.push(x(h,Z("arguments["+(T.length-1)+"]"),true))}M=j;i.prepend.apply(i,M)}if(n.cname&&!this.sup){i.prepend(y(c+".displayName = '"+c+"'"))}F=U(A.make(n,T),true);if(u&&s.isComplex()){F=I(f,F)}if(s){F=I(s,F)}return l(null,F.compile(e,t));function Y(e){var t,n,i,r,s;if(e instanceof g){for(t=0,i=(n=e.lines).length;t<i;++t){r=t;s=n[t];if(s instanceof C){e.lines[r]=k(s,R)}}}}};return i}(p);n.Super=$=function(e){var t=Re((Ce(i,e).displayName="Super",i),e).prototype,n=i;function i(){}i.prototype.isCallable=be;i.prototype.compile=function(e){var t,n,i,r;t=e.scope;if(!this.sproto){for(;n=!t.get("superclass")&&t.fun;t=t.parent){i=n;if(n=i.meth){return l(this,"superclass.prototype",w(n).compile(e))}if(n=i.stat){return l(this,"superclass",w(n).compile(e))}if(n=t.fun.inClass){return l(this,n,".superclass.prototype.",t.fun.name)}else if(n=t.fun.inClassStatic){return l(this,n,".superclass.",t.fun.name)}}if(n=(r=e.scope.fun)!=null?r.name:void 8){return l(this,n,".superclass")}}return l(this,"superclass")};i.prototype.maybeKey=function(){return b("super",true)};return i}(p);n.Parens=U=function(e){var t=Re((Ce(i,e).displayName="Parens",i),e).prototype,n=i;function i(e,t,n,i,s){var o=this instanceof r?this:new r;o.it=e;o.keep=t;o.string=n;o.lb=i;o.rb=s;return o}function r(){}r.prototype=t;i.prototype.children=["it"];i.prototype.show=function(){return this.string&&'""'};t.delegate(["isComplex","isCallable","isArray","isRegex","isNextUnreachable","getRef"],function(e){return this.it[e]()});i.prototype.isString=function(){return this.string||this.it.isString()};i.prototype.unparen=function(){if(this.keep){return this}else{return this.it.unparen()}};i.prototype.compile=function(e,t){var n;t==null&&(t=e.level);n=this.it;n.cond||(n.cond=this.cond),n["void"]||(n["void"]=this["void"]);if(this.calling&&(!t||this["void"])){n.head.hushed=true}if(!(this.keep||this.newed||t>=le+he[n.op])){return(n.front=this.front,n).compile(e,t||oe)}if(n.isStatement()){return n.compileClosure(e)}else{return l(null,l(this.lb,"("),n.compile(e,oe),l(this.rb,")"))}};i.prototype.maybeKey=ke;i.prototype.extractKeyRef=function(e,t,n){var r,s,o,a,u;if(n!=null&&(r=this.it)instanceof v&&(s=r.temp,delete r.temp,s)){(n.temps||(n.temps=[])).push(r.value)}if(this.it instanceof L&&t){s=this.it.cacheReference(e),this.it=s[0],o=s[1];return i(o)}s=this.it.cache(e,true),a=s[0],u=s[1];if(t){s=[u,a],a=s[0],u=s[1]}this.it=u.unparen();return i(a)};i.prototype.rewriteShorthand=function(e){var t;if(t=this.it.rewriteShorthand(e)){this.it=t}};return i}(p);n.Splat=D=function(e){var t,n=Re((Ce(r,e).displayName="Splat",r),e).prototype,i=r;function r(e,t){var n=this instanceof s?this:new s;n.it=e;n.filler=t;return n}function s(){}s.prototype=n;t=U.prototype,n.children=t.children,n.isComplex=t.isComplex;r.prototype.isAssignable=be;r.prototype.assigns=function(){return this.it.assigns()};r.prototype.compile=function(){return this.carp("invalid splat")};r.compileArray=function(e,t,n){var i,s,u,c,h,f,p;o(t);i=0;for(s=0,u=t.length;s<u;++s){c=t[s];if(c instanceof r){break}++i}if(i>=t.length){return l(this,"")}if(!t[1]){return l(this,(n?Object:a)(t[0].it).compile(e,ae))}h=[];f=[];for(s=0,u=(p=t.splice(i,9e9)).length;s<u;++s){c=p[s];if(c instanceof r){if(f.length){h.push(R(f.splice(0,9e9)))}h.push(a(c.it))}else{f.push(c)}}if(f.length){h.push(R(f))}return l(null,(i?R(t):h.shift()).compile(e,ce),l(this,".concat("),E.compile(e,h),l(this,")"))};function o(e){var t,n,i;t=-1;while(n=e[++t]){if(n instanceof r){i=n.it;if(i.isEmpty()){e.splice(t--,1)}else if(i instanceof R){e.splice.apply(e,[t,1].concat(me(o(i.items))));t+=i.items.length-1}}}return e}function a(e){if(e.isArray()){return e}Ae("slice");return A.make(ee("arrayFrom"),[e])}return r}(p);n.Jump=j=function(e){var t=Re((Ce(i,e).displayName="Jump",i),e).prototype,n=i;function i(e,t){this.verb=e;this.label=t}i.prototype.show=function(){var e;return(this.verb||"")+((e=this.label)?" "+e:"")};i.prototype.isStatement=be;i.prototype.makeReturn=ke;i.prototype.isNextUnreachable=be;i.prototype.getJump=function(e){var t,n;e||(e={});if(!e[this.verb]){return this}if(t=this.label){return!Ne(t,(n=e.labels)!=null?n:e.labels=[])&&this}};i.prototype.compileNode=function(e){var t,n;if(t=this.label){Ne(t,(n=e.labels)!=null?n:e.labels=[])||this.carp('unknown label "'+t+'"')}else{e[this.verb]||this.carp("stray "+this.verb)}return l(this,this.show()+";")};i.extended=function(e){e.prototype.children=["it"];this[e.displayName.toLowerCase()]=e};return i}(p);n.Throw=F=function(e){var t=Re((Ce(i,e).displayName="Throw",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.it=e;return t}function r(){}r.prototype=t;i.prototype.getJump=Le;i.prototype.compileNode=function(e){var t;return l(this,"throw ",((t=this.it)!=null?t.compile(e,oe):void 8)||"null",";")};return i}(j);n.Return=W=function(e){var t=Re((Ce(i,e).displayName="Return",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;if(e&&e.value!=="void"){t.it=e}return t}function r(){}r.prototype=t;i.prototype.getJump=ke;i.prototype.compileNode=function(e){var t;return l.apply(null,[this,"return"].concat((t=this.it)?[" ",t.compile(e,oe)]:[],[";"]))};return i}(j);n.While=Y=function(e){var t=Re((Ce(i,e).displayName="While",i),e).prototype,n=i;function i(e,t,n){this.un=t;n&&(n instanceof p?this.update=n:this.post=true);if(this.post||e.value!==""+!t){this.test=e}}i.prototype.children=["test","body","update","else"];i.prototype.aSource="test";i.prototype.aTargets=["body","update"];i.prototype.show=function(){return[this.un?"!":void 8,this.post?"do":void 8].join("")};t.isStatement=t.isArray=be;i.prototype.makeComprehension=function(e,t){this.isComprehension=true;while(t.length){e=t.pop().addBody(g(e));if(!e.isComprehension){e.inComprehension=true}}return this.addBody(g(e))};i.prototype.getJump=function(e){var t,n,i,r,s;e||(e={});e["continue"]=true;e["break"]=true;for(n=0,r=(i=((t=this.body)!=null?t.lines:void 8)||[]).length;n<r;++n){s=i[n];if(s.getJump(e)){return s}}};i.prototype.addBody=function(e){var t;this.body=e;if(this.guard){
|
|
this.body=g(K(this.guard,this.body))}t=this.body.lines[0];if((t!=null?t.verb:void 8)==="continue"&&!t.label){this.body.lines.length=0}return this};i.prototype.addGuard=function(e){this.guard=e;return this};i.prototype.addObjComp=function(e){this.objComp=e!=null?e:true;return this};i.prototype.makeReturn=function(e){var t,n,i,r;if(this.hasReturned){return this}if(e){if(this.objComp){this.body=g(this.body.makeReturn(e,true))}else{if(!(this.body||this.index)){this.addBody(g(v(this.index="ridx$")))}n=(t=this.body.lines)!=null?t[t.length-1]:void 8;if((this.isComprehension||this.inComprehension)&&!(n!=null&&n.isComprehension)){(i=this.body).makeReturn.apply(i,arguments);if((i=this["else"])!=null){i.makeReturn.apply(i,arguments)}this.hasReturned=true}else{this.resVar=e;if((r=this["else"])!=null){r.makeReturn.apply(r,arguments)}}}}else{this.getJump()||(this.returns=true)}return this};i.prototype.compileNode=function(e){var t,n,i,r;e.loop=true;this.test&&(this.un?this.test=this.test.invert():this.anaphorize());if(this.post){return l(null,l(this,"do {"),this.compileBody((e.indent+=fe,e)))}n=((t=this.test)!=null?t.compile(e,oe):void 8)||"";if(!(this.update||this["else"])){i=!c(n)?[l(this,"while ("),n]:[l(this,"for (;;")]}else{i=[l(this,"for (")];if(this["else"]){i.push(this.yet=e.scope.temporary("yet")," = true")}i.push(l(this,";"),n.toString()&&" ",n,l(this,";"));if(r=this.update){i.push(" ",r.compile(e,oe))}}return l.apply(null,[null].concat(me(i),[l(this,") {"),this.compileBody((e.indent+=fe,e))]))};i.prototype.compileBody=function(e){var t,n,r,s,o,a,u,h,f,p,d,m,y,k,E,S,N=this;e["break"]=e["continue"]=true;t=this.body.lines,n=this.yet,r=this.tab;s=[];o=[];a=[];u=this.objComp?"{}":"[]";f=function(){return h!=null?h:h=e.scope.temporary(N.objComp?"resultObj":"results")};p=t!=null?t[t.length-1]:void 8;if(!(this.isComprehension||this.inComprehension)||p!=null&&p.isComprehension){d=false;if(p!=null){p.traverseChildren(function(e){var t;if(e instanceof g&&(t=e.lines)[t.length-1]instanceof i){d=true}})}if(this.returns&&!this.resVar){this.resVar=m=e.scope.assign(f(),u)}if(this.resVar&&(p instanceof i||d)){y=e.scope.temporary("lresult");t.unshift(I(v(y),t[t.length-1].objComp?C():R(),"="));if(t[k=t.length-1]!=null){t[k]=t[k].makeReturn(y)}a.push(fe,L(v(this.resVar)).add(w(b("push"),".",true)).add(A([L(v(y))])).compile(e),";\n"+this.tab)}else{this.hasReturned=true;if(this.resVar){this.body.makeReturn(this.resVar)}}}if(this.returns){if(!p instanceof i&&!this.hasReturned||this.isComprehension||this.inComprehension){if(t[k=t.length-1]!=null){t[k]=t[k].makeReturn(m=e.scope.assign(f(),u),this.objComp)}}o.push("\n"+this.tab+"return ",m||u,";");if((E=this["else"])!=null){E.makeReturn()}}n&&t.unshift(Z(n+" = false;"));if(!c(S=this.body.compile(e,se))){s.push("\n",S,"\n"+r)}s.push.apply(s,a);s.push("}");if(this.post){s.push(l(this," while ("),this.test.compile((e.tab=r,e),oe),l(this,");"))}if(n){s.push(l(this," if ("),n,l(this,") "),this.compileBlock(e,g(this["else"])));e.scope.free(n)}return l.apply(null,[null].concat(me(s),me(o)))};return i}(p);n.For=z=function(e){var t=Re((Ce(i,e).displayName="For",i),e).prototype,n=i;function i(e){var t,n,i,r;Ie(this,e);if(this.item instanceof v&&!this.item.value){this.item=null}for(t=0,r=(i=this.kind||[]).length;t<r;++t){n=i[t];this[n]=true}if(this.own&&!this.object){this.carp("`for own` requires `of`")}}i.prototype.children=["item","source","from","to","step","body"];i.prototype.aSource=null;i.prototype.show=function(){return(this.kind||[]).concat(this.index).join(" ")};i.prototype.addBody=function(t){var n,i,r,s,o,a;if(this["let"]){if(n=this.ref,delete this.ref,n){this.item=y("..")}i=(r=[],(s=this.index)&&r.push(I(v(s),y("index$$"))),(s=this.item)&&r.push(I(s,y("item$$"))),r);t=g(this.guard?(o=function(){var e,t,n,r,o,u,l,c=[];for(e=0,r=(n=i).length;e<r;++e){t=n[e];if(s=t.assigns()){for(o=0,l=(u=s).length;o<l;++o){a=u[o];c.push(v(a))}}}return c}(),i.concat([K((n=this.guard,delete this.guard,n),A["let"](o,t))])):A["let"](i,t))}e.prototype.addBody.call(this,t);if(this["let"]){delete this.index;delete this.item}return this};i.prototype.isNextUnreachable=we;i.prototype.compileNode=function(e){var t,n,i,r,s,o,a,u,c,h,f,p,d,m,b,w,k;e.loop=true;t=this.temps=[];if(this.object&&this.index){e.scope.declare(n=this.index)}else{t.push(n=e.scope.temporary("i"))}if(!this.body){this.addBody(g(v(n)))}if(!this.object){i=(this.step||y(1)).compileLoopReference(e,"step"),r=i[0],s=i[1];r===s||t.push(r)}if(this.from){if(this.ref){this.item=v(n)}i=this.to.compileLoopReference(e,"to"),o=i[0],a=i[1];u=this.from.compile(e,ae);c=n+" = "+u;if(a!==o){c+=", "+a;t.push(o)}if(!this.step&&+u>+o){r=s=-1}h=this.op==="til"?"":"=";f=+r?n+" "+"<>".charAt(r<0)+h+" "+o:r+" < 0 ? "+n+" >"+h+" "+o+" : "+n+" <"+h+" "+o}else{if(this.ref){this.item=v(e.scope.temporary("x"))}if(this.item||this.object&&this.own||this["let"]){i=this.source.compileLoopReference(e,"ref",!this.object,true),p=i[0],d=i[1];p===d||t.push(p)}else{p=d=this.source.compile(e,oe)}if(!this.object){if(0>r&&~~r===+r){c=n+" = "+d+".length - 1";f=n+" >= 0"}else{t.push(m=e.scope.temporary("len"));c=n+" = 0, "+m+" = "+d+".length";f=n+" < "+m}}}this["else"]&&(this.yet=e.scope.temporary("yet"));b=[l(this,"for (")];if(this.object){b.push(n," in ")}if(w=this.yet){b.push(w," = true, ")}if(this.object){b.push(d)}else{s===r||(c+=", "+s);b.push(c,"; ",f,"; "+(1==Math.abs(r)?(r<0?"--":"++")+n:n+(r<0?" -= "+r.toString().slice(1):" += "+r)))}this.own&&b.push(l(this,") if ("),e.scope.assign("own$","{}.hasOwnProperty"),".call(",p,", ",n,")");b.push(l(this,") {"));if(this["let"]){this.body.traverseChildren(function(e){switch(e.value){case"index$$":e.value=n;break;case"item$$":e.value=p+"["+n+"]"}})}e.indent+=fe;if(this.index&&!this.object){b.push("\n"+e.indent,I(v(this.index),Z(n)).compile(e,se),";")}if(this.item&&!this.item.isEmpty()&&!this.from){b.push("\n"+e.indent,I(this.item,Z(p+"["+n+"]")).compile(e,se),";")}if(this.ref){e.ref=this.item.value}k=this.compileBody(e);if((this.item||this.index&&!this.object)&&"}"===k.toString().charAt(0)){b.push("\n"+this.tab)}return l.apply(null,[null].concat(me(b),[k]))};return i}(Y);n.StepSlice=G=function(e){var t=Re((Ce(i,e).displayName="StepSlice",i),e).prototype,n=i;i.prototype.makeReturn=function(t){this.makeReturnArg=t;return e.prototype.makeReturn.apply(this,arguments)};i.prototype.compileNode=function(t){var n,i,r,s,o;this.index=t.scope.temporary("x");n=this.target.unwrap().cache(t),i=n[0],r=n[1],s=n[2];this.guard=T("<",y(this.index),L(r).add(w(b("length"))));this.makeComprehension(L(r).add(w(y(this.index))),this);if(this.makeReturnArg!=null){this.makeReturn(this.makeReturnArg)}o=[];if(s){o.push(i.compile(t),";"+"\n"+t.indent)}o.push(e.prototype.compileNode.apply(this,arguments));return l.apply(null,[this].concat(me(o)))};function i(){i.superclass.apply(this,arguments)}return i}(z);n.Try=H=function(e){var t=Re((Ce(i,e).displayName="Try",i),e).prototype,n=i;function i(e,t,n,i){var r;this.attempt=e;this.thrown=t;this.recovery=n;this.ensure=i;if((r=this.recovery)!=null){r.lines.unshift(I(this.thrown||v("e"),v("e$")))}}i.prototype.children=["attempt","recovery","ensure"];i.prototype.show=function(){return this.thrown};i.prototype.isStatement=be;i.prototype.isCallable=function(){var e;return((e=this.recovery)!=null?e.isCallable():void 8)&&this.attempt.isCallable()};i.prototype.getJump=function(e){var t;return this.attempt.getJump(e)||((t=this.recovery)!=null?t.getJump(e):void 8)};i.prototype.isNextUnreachable=function(){var e,t;return((e=this.ensure)!=null?e.isNextUnreachable():void 8)||this.attempt.isNextUnreachable()&&((t=this.recovery)!=null?t.isNextUnreachable():true)};i.prototype.makeReturn=function(){var e;this.attempt=(e=this.attempt).makeReturn.apply(e,arguments);if(this.recovery!=null){this.recovery=(e=this.recovery).makeReturn.apply(e,arguments)}return this};i.prototype.compileNode=function(e){var t,n;e.indent+=fe;t=[l(this,"try "),this.compileBlock(e,this.attempt)];if(n=this.recovery||!this.ensure&&Z("")){t.push(l(n," catch (e$) "),this.compileBlock(e,n))}if(n=this.ensure){t.push(l(n," finally "),this.compileBlock(e,n))}return l.apply(null,[null].concat(me(t)))};return i}(p);n.Switch=J=function(e){var t=Re((Ce(i,e).displayName="Switch",i),e).prototype,n=i;function i(e,t,n,i){var r,s;this.type=e;this.topic=t;this.cases=n;this["default"]=i;if(e==="match"){if(t){this.topic=R(t)}}else{if(t){if(t.length>1){throw"can't have more than one topic in switch statement"}this.topic=this.topic[0]}}if(this.cases.length&&(r=(s=this.cases)[s.length-1]).tests.length===1&&r.tests[0]instanceof v&&r.tests[0].value==="_"){this.cases.pop();this["default"]=r.body}}i.prototype.children=["topic","cases","default"];i.prototype.aSource="topic";i.prototype.aTargets=["cases","default"];i.prototype.show=function(){return this.type};i.prototype.isStatement=be;i.prototype.isCallable=function(){var e,t,n,i;for(e=0,n=(t=this.cases).length;e<n;++e){i=t[e];if(!i.isCallable()){return false}}if(this["default"]){return this["default"].isCallable()}else{return true}};i.prototype.getJump=function(e){var t,n,i,r,s;e||(e={});e["break"]=true;for(t=0,i=(n=this.cases).length;t<i;++t){r=n[t];if(s=r.body.getJump(e)){return s}}return(n=this["default"])!=null?n.getJump(e):void 8};i.prototype.isNextUnreachable=function(){var e,t,n,i;for(e=0,n=(t=this.cases).length;e<n;++e){i=t[e];if(!i.body.isNextUnreachable()){return false}}return(t=this["default"])!=null?t.isNextUnreachable():void 8};i.prototype.makeReturn=function(){var e,t,n,i;for(e=0,n=(t=this.cases).length;e<n;++e){i=t[e];i.makeReturn.apply(i,arguments)}if((t=this["default"])!=null){t.makeReturn.apply(t,arguments)}return this};i.prototype.compileNode=function(e){var t,n,i,r,s,o,a,u,c,f,p,d,m;t=this.tab;n=this.type==="match"?(this.topic&&(i=L(this.topic).cacheReference(e),r=i[0],s=i[1]),o=s?[r]:[],g(o.concat([y("false")])).compile(e,oe)):!!this.topic&&this.anaphorize().compile(e,oe);a=[l(this,"switch (",h(n),") {\n")];u=this["default"]||this.cases.length-1;e["break"]=true;for(c=0,f=(i=this.cases).length;c<f;++c){p=c;d=i[c];a.push(d.compileCase(e,t,p===u,this.type==="match"||!n,this.type,s))}if(this["default"]){e.indent=t+fe;if(m=this["default"].compile(e,se)){a.push(t+"default:\n",m,"\n")}}return l.apply(null,[null].concat(me(a),[t+"}"]))};return i}(p);n.Case=q=function(e){var t=Re((Ce(i,e).displayName="Case",i),e).prototype,n=i;function i(e,t){this.tests=e;this.body=t}i.prototype.children=["tests","body"];i.prototype.isCallable=function(){return this.body.isCallable()};i.prototype.makeReturn=function(){var e,t;if(((e=(t=this.body.lines)[t.length-1])!=null?e.value:void 8)!=="fallthrough"){(t=this.body).makeReturn.apply(t,arguments)}return this};i.prototype.compileCase=function(e,t,n,i,r,s){var o,a,u,h,f,p,d,g,m,v,b,k,A,E,C,S,N,_;o=[];for(a=0,h=(u=this.tests).length;a<h;++a){f=u[a];if(f instanceof R&&r!=="match"){for(p=0,g=(d=f.items).length;p<g;++p){m=d[p];o.push(m)}}else{o.push(f)}}o.length||o.push(y("void"));if(r==="match"){for(a=0,h=o.length;a<h;++a){v=a;f=o[a];b=L(s).add(w(y(v),".",true));o[v]=U(L(f).autoCompare(s?[b]:null))}}if(i){k=r==="match"?"&&":"||";m=o[0];v=0;while(A=o[++v]){m=T(k,m,A)}o=[(this.t=m,this.aSource="t",this.aTargets=["body"],this).anaphorize().invert()]}E=[];for(a=0,h=o.length;a<h;++a){m=o[a];E.push(t,l(m,"case ",m.compile(e,oe),":\n"))}C=this.body.lines;S=C[C.length-1];if(N=(S!=null?S.value:void 8)==="fallthrough"){C[C.length-1]=Z("// fallthrough")}e.indent=t+=fe;if(!c(_=this.body.compile(e,se))){E.push(_,"\n")}if(!(n||N||S!=null&&S.isNextUnreachable())){E.push(t+"break;\n")}return l.apply(null,[null].concat(me(E)))};return i}(p);n.If=K=function(e){var t=Re((Ce(i,e).displayName="If",i),e).prototype,n=i;function i(e,t,n){var i=this instanceof r?this:new r;i["if"]=e;i.then=t;i.un=n;return i}function r(){}r.prototype=t;i.prototype.children=["if","then","else"];i.prototype.aSource="if";i.prototype.aTargets=["then"];i.prototype.show=function(){return this.un&&"!"};i.prototype.terminator="";t.delegate(["isCallable","isArray","isString","isRegex","isNextUnreachable"],function(e){var t;return((t=this["else"])!=null?t[e]():void 8)&&this.then[e]()});i.prototype.getJump=function(e){var t;return this.then.getJump(e)||((t=this["else"])!=null?t.getJump(e):void 8)};i.prototype.makeReturn=function(){var e;this.then=(e=this.then).makeReturn.apply(e,arguments);if(this["else"]!=null){this["else"]=(e=this["else"]).makeReturn.apply(e,arguments)}return this};i.prototype.compileNode=function(e){if(this.un){this["if"]=this["if"].invert()}else{this.soak||this.anaphorize()}if(e.level){return this.compileExpression(e)}else{return this.compileStatement(e)}};i.prototype.compileStatement=function(e){var t,i;t=[l(this,"if (",this["if"].compile(e,oe),") ")];e.indent+=fe;t.push(this.compileBlock(e,g(this.then)));if(!(i=this["else"])){return l.apply(null,[null].concat(me(t)))}return l.apply(null,[null].concat(me(t),[l(i," else "),i instanceof n?i.compile((e.indent=this.tab,e),se):this.compileBlock(e,i)]))};i.prototype.compileExpression=function(e){var t,n,i,r;t=this.then,n=this["else"]||y("void");this["void"]&&(t["void"]=n["void"]=true);if(!this["else"]&&(this.cond||this["void"])){return U(T("&&",this["if"],U(t.unwrap()))).compile(e)}i=[l(this,this["if"].compile(e,ue))];r=n.isComplex()?"\n"+(e.indent+=fe):" ";i.push(r+"",l(t,"? "),t.compile(e,ae),r+"",l(n,": "),n.compile(e,ae));if(e.level<ue){return l.apply(null,[null].concat(me(i)))}else{return l(null,"(",i,")")}};i.unfoldSoak=function(e,t,n){var i;if(i=t[n].unfoldSoak(e)){t[n]=i.then;return i.cond=t.cond,i["void"]=t["void"],i.then=L(t),i}};return i}(p);n.Label=V=function(e){var t,n=Re((Ce(r,e).displayName="Label",r),e).prototype,i=r;function r(e,t){var n;this.label=e||"_";this.it=t;if(this.it.curried){this.carp("can't use label with a curried function (attempted label '"+this.label+"')")}if(n=(t instanceof P||t instanceof B)&&t||t.calling&&t.it.head){n.name||(n.name=this.label,n.labeled=true);return t}}t=U.prototype,n.children=t.children,n.isCallable=t.isCallable,n.isArray=t.isArray;r.prototype.show=function(){return this.label};r.prototype.isStatement=be;r.prototype.getJump=function(e){var t;e||(e={});((t=e.labels)!=null?t:e.labels=[]).push(this.label);return this.it.getJump((e["break"]=true,e))};r.prototype.makeReturn=function(){var e;this.it=(e=this.it).makeReturn.apply(e,arguments);return this};r.prototype.compileNode=function(e){var t,n,i;t=this.label,n=this.it;i=e.labels=me(e.labels||[]);if(Ne(t,i)){this.carp('duplicate label "'+t+'"')}i.push(t);n.isStatement()||(n=g(n));return l(null,l(this,t,": "),n instanceof g?(e.indent+=fe,this.compileBlock(e,n)):n.compile(e))};return r}(p);n.Cascade=X=function(e){var t=Re((Ce(i,e).displayName="Cascade",i),e).prototype,n=i;function i(e,t,n){var i=this instanceof r?this:new r;i.input=e;i.output=t;i.prog1=n;return i}function r(){}r.prototype=t;i.prototype.show=function(){return this.prog1};i.prototype.children=["input","output"];i.prototype.terminator="";t.delegate(["isCallable","isArray","isString","isRegex"],function(e){return this[this.prog1?"input":"output"][e]()});i.prototype.getJump=function(e){return this.output.getJump(e)};i.prototype.makeReturn=function(e){this.ret=e;return this};i.prototype.compileNode=function(e){var t,n,r,s,o,a,u,c;t=e.level;n=this.input,r=this.output,s=this.prog1,o=this.ref;if(s&&("ret"in this||t&&!this["void"])){r.add((a=y(".."),a.cascadee=true,a))}if("ret"in this){r=r.makeReturn(this.ret)}if(o){s||(r=I(v(o),r))}else{o=e.scope.temporary("x")}if(n instanceof i){n.ref=o}else{n&&(n=I(v(o),n))}e.level&&(e.level=oe);u=[n.compile(e)];c=g(r).compile((e.ref=new String(o),e));if(s==="cascade"&&!e.ref.erred){this.carp("unreferred cascadee")}if(!t){return l.apply(null,[null].concat(me(u),[n.terminator,"\n",c]))}u.push(", ",c);if(t>oe){return l.apply(null,[null,"("].concat(me(u),[")"]))}else{return l.apply(null,[null].concat(me(u)))}};return i}(p);n.JS=Z=function(e){var t=Re((Ce(i,e).displayName="JS",i),e).prototype,n=i;function i(e,t,n){var i=this instanceof r?this:new r;i.code=e;i.literal=t;i.comment=n;return i}function r(){}r.prototype=t;i.prototype.show=function(){if(this.comment){return this.code}else{return"`"+this.code+"`"}};i.prototype.terminator="";t.isAssignable=t.isCallable=function(){return!this.comment};i.prototype.compile=function(e){return l(this,h(this.literal?Ee(this.code,e.indent):this.code))};return i}(p);n.Require=Q=function(e){var t=Re((Ce(i,e).displayName="Require",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.body=e;return t}function r(){}r.prototype=t;i.prototype.children=["body"];i.prototype.compile=function(e){var t,n,i,r,a,u,c,h=this;t=function(e,t){switch(false){case!(e instanceof b):return e.name;case!(e instanceof v):return e.value;case!(e instanceof y):return e.value;default:if(t){return h.carp("invalid require! argument")}else{return e}}};n=function(n){var i,r,a,u,c,h;i=function(){var e;switch(false){case!(n instanceof S):return[n.val,(e=n.key)!=null?e:n.val];default:return[n,n]}}(),r=i[0],a=i[1];u=t(r);c=ye.call(u).slice(8,-1)==="String"?ne(r,v(s(u))):r;a=o(t(a,true));h=L(ne(this,v("require"))).add(A([y("'"+a+"'")]));return l(n,I(c,h).compile(e))};if(this.body.items!=null){i=[];for(r=0,u=(a=this.body.items).length;r<u;++r){c=a[r];i.push(n(c),";\n"+e.indent)}i.pop();return l.apply(null,[null].concat(me(i)))}else{return l(null,n(this.body))}};return i}(p);n.Util=ee=function(e){var t=Re((Ce(i,e).displayName="Util",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.verb=e;return t}function r(){}r.prototype=t;i.prototype.show=j.prototype.show;i.prototype.isCallable=be;i.prototype.compile=function(){return l(this,Ae(this.verb))};i.Extends=function(){return A.make(i("extend"),[arguments[0],arguments[1]])};return i}(p);n.Vars=te=function(e){var t=Re((Ce(i,e).displayName="Vars",i),e).prototype,n=i;function i(e){var t=this instanceof r?this:new r;t.vars=e;return t}function r(){}r.prototype=t;i.prototype.children=["vars"];i.prototype.makeReturn=ke;i.prototype.compile=function(e,t){var n,i,r,s,o;for(n=0,r=(i=this.vars).length;n<r;++n){s=i[n],o=s.value;if(!(s instanceof v)){s.carp("invalid variable declaration")}if(e.scope.check(o)){s.carp('redeclaration of "'+o+'"')}e.scope.declare(o,s)}return l(this,y("void").compile(e,t))};return i}(p);n.L=function(e,t,n){if(n&&typeof n==="object"){n.first_line=e.first_line+1;n.first_column=e.first_column;n.last_line=t.last_line+1;n.last_column=t.last_column;n.line=e.first_line+1;n.column=e.first_column}return n};n.CopyL=ne=function(e,t){if(t&&typeof t==="object"){t.first_line=e.first_line;t.first_column=e.first_column;t.last_line=e.last_line;t.last_column=e.last_column;t.line=e.line;t.column=e.column}return t};n.Box=function(e){if(typeof e==="object"){return e}else{return new e.constructor(e)}};n.Decl=function(e,t,n){if(!t[0]){throw SyntaxError("empty "+e+" on line "+n)}return ie[e](t)};ie={"export":function(e){var t,n,i,r,s;t=-1;n=ee("out");while(i=e[++t]){if(i instanceof g){e.splice.apply(e,[t--,1].concat(me(i.lines)));continue}if(r=i instanceof P&&i.name){e.splice(t++,0,I(L(n,[w(b(r))]),v(r)));continue}e[t]=(r=i.varName()||i instanceof I&&i.left.varName()||i instanceof B&&((s=i.title)!=null?s.varName():void 8))?I(L(n,[w(b(r))]),i):x(n,i)}return g(e)},"import":function(e,t){var n,i,r,s;for(n=0,i=e.length;n<i;++n){r=n;s=e[n];e[r]=x(y("this"),s,t)}return g(e)},importAll:function(e){return this["import"](e,true)},"const":function(e){var t,n,i;for(t=0,n=e.length;t<n;++t){i=e[t];i.op==="="||i.carp("invalid constant variable declaration");i["const"]=true}return g(e)},"var":te};function ve(e,t){this.parent=e;this.shared=t;this.variables={}}r=ve.prototype;r.READ_ONLY={"const":"constant","function":"function",undefined:"undeclared"};r.add=function(e,t,n){var i,r;if(n&&(i=this.variables[e+"."])){if(r=this.READ_ONLY[i]||this.READ_ONLY[t]){n.carp("redeclaration of "+r+' "'+e+'"')}else if(i===t&&t==="arg"){n.carp('duplicate parameter "'+e+'"')}else if(i==="upvar"){n.carp('accidental shadow of "'+e+'"')}if(i==="arg"||i==="function"){return e}}this.variables[e+"."]=t;return e};r.get=function(e){return this.variables[e+"."]};r.declare=function(e,t,n){var i,r;if(i=this.shared){if(this.check(e)){return}r=i}else{r=this}return r.add(e,n&&e!=="that"?"const":"var",t)};r.assign=function(e,t){return this.add(e,{value:t})};r.temporary=function(e){var t;e||(e="ref");while((t=this.variables[e+"$."])!=="reuse"&&t!==void 8){e=e.length<2&&e<"z"?String.fromCharCode(e.charCodeAt()+1):e.replace(/\d*$/,n)}return this.add(e+"$","var");function n(e){return++e}};r.free=function(e){return this.add(e,"reuse")};r.check=function(e,t){var n,i;if((n=this.variables[e+"."])||!t){return n}return(i=this.parent)!=null?i.check(e,t):void 8};r.checkReadOnly=function(e){var t,n,i;if(t=this.READ_ONLY[this.check(e,true)]){return t}(n=this.variables)[i=e+"."]||(n[i]="upvar");return""};r.emit=function(e,t){var n,i,r,s,o,u,c,h,p;n=[];i=[];r=[];for(s in o=this.variables){u=o[s];s=s.slice(0,-1);if(u==="var"||u==="const"||u==="reuse"){n.push(s,", ")}else if(c=u.value){if(~(h=Ee(c,t)).toString().lastIndexOf("function(",0)){if(h instanceof a){f(h,8)}else{h=h.slice(8)}r.push("function ",s,h,"\n"+t)}else{i.push(s," = ",h,", ")}}}p=n.concat(i);p.pop();r.pop();if(p.length>0){e=l.apply(null,[this,t+"var "].concat(me(p),[";\n",e]))}if(r.length>0){return l.apply(null,[this,e,"\n"+t].concat(me(r)))}else{return l(this,e)}};function be(){return true}function we(){return false}function ke(){return this}function Le(){}re={clone:"function(it){\n function fun(){} fun.prototype = it;\n return new fun;\n}",extend:"function(sub, sup){\n function fun(){} fun.prototype = (sub.superclass = sup).prototype;\n (sub.prototype = new fun).constructor = sub;\n if (typeof sup.extended == 'function') sup.extended(sub);\n return sub;\n}",bind:"function(obj, key, target){\n return function(){ return (target || obj)[key].apply(obj, arguments) };\n}","import":"function(obj, src){\n var own = {}.hasOwnProperty;\n for (var key in src) if (own.call(src, key)) obj[key] = src[key];\n return obj;\n}",importAll:"function(obj, src){\n for (var key in src) obj[key] = src[key];\n return obj;\n}",copyWithout:"function(src, ex){\n var obj = {}, own = {}.hasOwnProperty;\n for (var key in src) if (own.call(src, key) && !own.call(ex, key)) obj[key] = src[key];\n return obj;\n}",repeatString:"function(str, n){\n for (var r = ''; n > 0; (n >>= 1) && (str += str)) if (n & 1) r += str;\n return r;\n}",repeatArray:"function(arr, n){\n for (var r = []; n > 0; (n >>= 1) && (arr = arr.concat(arr)))\n if (n & 1) r.push.apply(r, arr);\n return r;\n}","in":"function(x, xs){\n var i = -1, l = xs.length >>> 0;\n while (++i < l) if (x === xs[i]) return true;\n return false;\n}",out:"typeof exports != 'undefined' && exports || this",curry:"function(f, bound){\n var context,\n _curry = function(args) {\n return f.length > 1 ? function(){\n var params = args ? args.concat() : [];\n context = bound ? context || this : this;\n return params.push.apply(params, arguments) <\n f.length && arguments.length ?\n _curry.call(context, params) : f.apply(context, params);\n } : f;\n };\n return _curry();\n}",flip:"function(f){\n return curry$(function (x, y) { return f(y, x); });\n}",partialize:"function(f, args, where){\n var context = this;\n return function(){\n var params = slice$.call(arguments), i,\n len = params.length, wlen = where.length,\n ta = args ? args.concat() : [], tw = where ? where.concat() : [];\n for(i = 0; i < len; ++i) { ta[tw[0]] = params[i]; tw.shift(); }\n return len < wlen && len ?\n partialize$.apply(context, [f, ta, tw]) : f.apply(context, ta);\n };\n}",not:"function(x){ return !x; }",compose:"function() {\n var functions = arguments;\n return function() {\n var i, result;\n result = functions[0].apply(this, arguments);\n for (i = 1; i < functions.length; ++i) {\n result = functions[i](result);\n }\n return result;\n };\n}",deepEq:"function(x, y, type){\n var toString = {}.toString, hasOwnProperty = {}.hasOwnProperty,\n has = function (obj, key) { return hasOwnProperty.call(obj, key); };\n var first = true;\n return eq(x, y, []);\n function eq(a, b, stack) {\n var className, length, size, result, alength, blength, r, key, ref, sizeB;\n if (a == null || b == null) { return a === b; }\n if (a.__placeholder__ || b.__placeholder__) { return true; }\n if (a === b) { return a !== 0 || 1 / a == 1 / b; }\n className = toString.call(a);\n if (toString.call(b) != className) { return false; }\n switch (className) {\n case '[object String]': return a == String(b);\n case '[object Number]':\n return a != +a ? b != +b : (a == 0 ? 1 / a == 1 / b : a == +b);\n case '[object Date]':\n case '[object Boolean]':\n return +a == +b;\n case '[object RegExp]':\n return a.source == b.source &&\n a.global == b.global &&\n a.multiline == b.multiline &&\n a.ignoreCase == b.ignoreCase;\n }\n if (typeof a != 'object' || typeof b != 'object') { return false; }\n length = stack.length;\n while (length--) { if (stack[length] == a) { return true; } }\n stack.push(a);\n size = 0;\n result = true;\n if (className == '[object Array]') {\n alength = a.length;\n blength = b.length;\n if (first) {\n switch (type) {\n case '===': result = alength === blength; break;\n case '<==': result = alength <= blength; break;\n case '<<=': result = alength < blength; break;\n }\n size = alength;\n first = false;\n } else {\n result = alength === blength;\n size = alength;\n }\n if (result) {\n while (size--) {\n if (!(result = size in a == size in b && eq(a[size], b[size], stack))){ break; }\n }\n }\n } else {\n if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) {\n return false;\n }\n for (key in a) {\n if (has(a, key)) {\n size++;\n if (!(result = has(b, key) && eq(a[key], b[key], stack))) { break; }\n }\n }\n if (result) {\n sizeB = 0;\n for (key in b) {\n if (has(b, key)) { ++sizeB; }\n }\n if (first) {\n if (type === '<<=') {\n result = size < sizeB;\n } else if (type === '<==') {\n result = size <= sizeB\n } else {\n result = size === sizeB;\n }\n } else {\n first = false;\n result = size === sizeB;\n }\n }\n }\n stack.pop();\n return result;\n }\n}",arrayFrom:"Array.from || function(x){return slice$.call(x);}",split:"''.split",replace:"''.replace",toString:"{}.toString",join:"[].join",slice:"[].slice",splice:"[].splice"};se=0;oe=1;ae=2;ue=3;le=4;ce=5;(function(){this["&&"]=this["||"]=this["xor"]=.2;this[".&."]=this[".^."]=this[".|."]=.3;this["=="]=this["!="]=this["~="]=this["!~="]=this["==="]=this["!=="]=.4;this["<"]=this[">"]=this["<="]=this[">="]=this.of=this["instanceof"]=.5;this["<<="]=this[">>="]=this["<=="]=this[">=="]=this["++"]=.5;this[".<<."]=this[".>>."]=this[".>>>."]=.6;this["+"]=this["-"]=.7;this["*"]=this["/"]=this["%"]=.8}).call(he={unary:.9});fe=" ";pe=/^(?!\d)[\w$\xAA-\uFFDC]+$/;de=/^\d+$/;function Ae(e){return ve.root.assign(e+"$",re[e])}function Ee(e,t){return e.replace(/\n/g,"\n"+t)}function Ce(e,t){var n={}.hasOwnProperty;for(var i in t)if(n.call(t,i))e[i]=t[i];return e}function Se(e){function t(){}t.prototype=e;return new t}function Re(e,t){function n(){}n.prototype=(e.superclass=t).prototype;(e.prototype=new n).constructor=e;if(typeof t.extended=="function")t.extended(e);return e}function Ne(e,t){var n=-1,i=t.length>>>0;while(++n<i)if(e===t[n])return true;return false}function _e(e,t){for(var n=[];t>0;(t>>=1)&&(e=e.concat(e)))if(t&1)n.push.apply(n,e);return n}function Te(e,t){for(var n="";t>0;(t>>=1)&&(e+=e))if(t&1)n+=e;return n}function Ie(e,t){for(var n in t)e[n]=t[n];return e}},{"./util":6,"prelude-ls":19,"source-map":31}],2:[function(e,t,n){(function(t){
|
|
// Generated by LiveScript 1.6.1
|
|
var i,r,s,o,a,u,l={}.toString;i=e("./lexer");r=e("./parser").parser;s=e("./ast");o=e("source-map").SourceNode;a=e("path");r.yy=s;r.lexer={lex:function(){var e,t,n,i,r,s;e=this.tokens[++this.pos]||[""],t=e[0],this.yytext=e[1],n=e[2],i=e[3];e=this.tokens[this.pos+1]||[""],r=e[2],s=e[3];this.yylineno=n;this.yylloc={first_line:n,first_column:i,last_line:r,last_column:s};return t},setInput:function(e){this.pos=-1;return this.tokens=e},upcomingInput:function(){return""}};u=t.alloc&&t.from||function(e){return new t(e)};n.VERSION="1.6.1";n.compile=function(e,t){var s,o,l,c,h,f,p,d,g;t==null&&(t={});t.warn==null&&(t.warn=true);t.header==null&&(t.header=true);if(t.header===true){t.header="// Generated by LiveScript "+n.VERSION+"\n"}try{if(t.json){s=Function(n.compile(e,{bare:true,run:true,print:true}))();return JSON.stringify(s,null,2)+"\n"}else{o=r.parse(i.lex(e));if(t.run&&t.print){o.makeReturn()}l=o.compileRoot(t);if(t.map&&t.map!=="none"){c=t.filename,h=t.outputFilename;if(!c){c="unnamed-"+Math.floor(Math.random()*4294967296).toString(16)+".ls"}l.setFile(a.basename(c));s=l.toStringWithSourceMap();if(t.map==="embedded"){s.map.setSourceContent(c,e)}if((f=t.map)==="linked"||f==="debug"){p=a.basename(h)+".map";s.code+="\n//# sourceMappingURL="+p+"\n"}else{s.code+="\n//# sourceMappingURL=data:application/json;base64,"+u(s.map.toString()).toString("base64")+"\n"}return s}else{return l.toString()}}}catch(m){d=m;if(g=t.filename){d.message+="\nat "+g}throw d}};n.ast=function(e){return r.parse(typeof e==="string"?i.lex(e):e)};n.tokens=i.lex;n.lex=function(e){return i.lex(e,{raw:true})};n.run=function(e,t){var i,r;i=n.compile(e,(r={},c(r,t),r.bare=true,r));return Function(l.call(i).slice(8,-1)==="String"?i:i.code)()};n.tokens.rewrite=i.rewrite;h(n.ast,r.yy);if(e.extensions){e("./node")(n)}else{n.require=e}function c(e,t){var n={}.hasOwnProperty;for(var i in t)if(n.call(t,i))e[i]=t[i];return e}function h(e,t){for(var n in t)e[n]=t[n];return e}}).call(this,e("buffer").Buffer)},{"./ast":1,"./lexer":3,"./node":4,"./parser":5,buffer:9,path:13,"source-map":31}],3:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.1
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g,m,y,v,b,w,k,L,A,E,C,S,R,N,_,T,I,x,O,M,P,B,$,U,D=[].slice,j=Array.from||function(e){return D.call(e)};n.lex=function(e,t){return ne(n).tokenize(e||"",t||{})};n.rewrite=function(e){var t;e||(e=this.tokens);q(e);V(e);K(e);X(e);Q(e);Z(e);if(((t=e[0])!=null?t[0]:void 8)==="NEWLINE"){e.shift()}return e};n.tokenize=function(e,t){var n,i,r,s,o;this.inter||(e=e.replace(/[\r\u2028\u2029\uFEFF]/g,""));e="\n"+e;this.tokens=[this.last=["NEWLINE","\n",0,0]];this.line=~-t.line;this.column=t.column||0;this.dents=[];this.closes=[];this.parens=[];this.flags=[];n=0;i=n;this.charsCounted=0;this.isAtPrefix=true;while(r=e.charAt(n)){s=n-i;i=n;if(this.charsCounted>s){throw new Error("Location information out-of-sync in lexer")}this.column+=s-this.charsCounted;this.charsCounted=0;switch(r){case" ":n+=this.doSpace(e,n);break;case"\n":n+=this.doLine(e,n);break;case"\\":n+=this.doBackslash(e,n);break;case"'":case'"':n+=this.doString(e,n,r);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n+=this.doNumber(e,n);break;case"/":switch(e.charAt(n+1)){case"*":n+=this.doComment(e,n);break;case"/":n+=this.doHeregex(e,n);break;default:n+=this.doRegex(e,n)||this.doLiteral(e,n)}break;case"`":if("`"===e.charAt(n+1)){n+=this.doJS(e,n)}else{n+=this.doLiteral(e,n)}break;default:n+=this.doID(e,n)||this.doLiteral(e,n)||this.doSpace(e,n)}}this.dedent(this.dent);if(o=this.closes.pop()){this.carp("missing `"+o+"`")}if(this.inter){this.rest==null&&this.carp("unterminated interpolation")}else{this.last.spaced=true;this.newline()}t.raw||this.rewrite();return this.tokens};n.dent=0;n.identifiers={};n.reset=function(){this.dent=0;this.identifiers={}};n.hasOwn=Object.prototype.hasOwnProperty;n.checkConsistency=function(e,t){if(this.hasOwn.call(this.identifiers,e)&&this.identifiers[e]!==t){throw new ReferenceError("Inconsistent use of "+e+" as "+t+" on line "+-~this.line)}else{return this.identifiers[e]=t}};n.doID=function(e,t){var n,i,r,s,o,a,u,c,h;i=(n=(m.lastIndex=t,m).exec(e))[0];if(!i){return 0}r=l(n[1]);if(/-/.test(n[1])){this.checkConsistency(r,n[1])}if(_.test(r)){try{Function("var "+r)}catch(g){s=g;this.carp("invalid identifier '"+r+"'")}}o=this.last;if(n[2]||o[0]==="DOT"||this.adi()){this.token("ID",ie(r,d)?(a=Object(r),a.reserved=true,a):r);if(n[2]){this.token(":",":")}return i.length}switch(r){case"true":case"false":case"on":case"off":case"yes":case"no":case"null":case"void":case"arguments":case"debugger":u="LITERAL";break;case"new":case"do":case"typeof":case"delete":u="UNARY";break;case"yield":case"await":u="YIELD";break;case"return":case"throw":u="HURL";break;case"break":case"continue":u="JUMP";break;case"this":case"eval":case"super":return this.token("LITERAL",r,true).length;case"for":r=[];this.fset("for",true);this.fset("to",false);this.fset("by",true);break;case"then":this.fset("for",false);this.fset("to",false);break;case"catch":case"function":r="";break;case"in":case"of":if(this.fget("for")){this.fset("for",false);if(r==="in"){this.fset("by",true);r="";if(o[0]==="ID"&&((a=(c=this.tokens)[c.length-2][0])===","||a==="]"||a==="}")){r=this.tokens.pop()[1];if((a=this.tokens)[a.length-1][0]===","){this.tokens.pop()}}}break}
|
|
// fallthrough
|
|
case"instanceof":if(o[1]==="!"){r=this.tokens.pop()[1]+r}u=(a=this.tokens)[a.length-1][0]==="("?"BIOPR":"RELATION";break;case"not":if(o.alias&&o[1]==="==="){return o[1]="!==",3}u="UNARY";r="!";break;case"and":case"or":case"xor":case"is":case"isnt":this.unline();u=r==="is"||r==="isnt"?"COMPARE":"LOGIC";if(o[0]==="("){u="BIOP"}this.token(u,function(){switch(r){case"is":return"===";case"isnt":return"!==";case"or":return"||";case"and":return"&&";case"xor":return"xor"}}());this.last.alias=true;return r.length;case"unless":u="IF";break;case"until":u="WHILE";break;case"import":if(o[0]==="("){r="<<<";u="BIOP"}else{if(W(this.tokens)){r="<<<"}else{u="DECL"}}break;case"export":case"const":case"var":u="DECL";break;case"with":u=function(){switch(false){case!W(this.tokens):return"CLONEPORT";case o[0]!=="(":return"BIOP";default:return"WITH"}}.call(this);break;case"when":u="CASE";
|
|
// fallthrough
|
|
case"case":if(this.doCase()){return i.length}break;case"match":u="SWITCH";break;case"loop":this.token("WHILE",r);this.token("LITERAL","true");return i.length;case"let":case"own":if(o[0]==="FOR"&&!ie(r,o[1])){o[1].push(r);return 3}
|
|
// fallthrough
|
|
default:if(ie(r,f)){break}if(ie(r,p)){this.carp("reserved word '"+r+"'")}if(!o[1]&&((a=o[0])==="FUNCTION"||a==="GENERATOR"||a==="LABEL")){o[1]=r;o.spaced=false;return i.length}u="ID";switch(r){case"otherwise":if((a=o[0])==="CASE"||a==="|"){o[0]="DEFAULT";return r.length}break;case"all":if(h=o[1]==="<<<"&&"<"||o[1]==="import"&&"All"){o[1]+=h;return 3}break;case"from":if(o[1]==="yield"){o[1]+="from";return 4}this.forange()&&(u="FROM");break;case"to":case"til":this.forange()&&this.tokens.push(["FROM","",this.line,this.column],["STRNUM","0",this.line,this.column]);if(this.fget("from")){this.fset("from",false);this.fset("by",true);u="TO"}else if(!o.callable&&o[0]==="STRNUM"&&(a=this.tokens)[a.length-2][0]==="["){o[0]="RANGE";o.op=r;return r.length}else if(ie("]",this.closes)){this.token("TO",r);return r.length}break;case"by":if(o[0]==="STRNUM"&&(a=this.tokens)[a.length-2][0]==="RANGE"&&(a=this.tokens)[a.length-3][0]==="["){u="RANGE_BY"}else if(ie("]",this.closes)){u="BY"}else if(this.fget("by")&&o[0]!=="FOR"){u="BY";this.fset("by",false)}break;case"ever":if(o[0]==="FOR"){this.fset("for",false);o[0]="WHILE";u="LITERAL";r="true"}}}u||(u=n[1].toUpperCase());if((u==="COMPARE"||u==="LOGIC"||u==="RELATION")&&o[0]==="("){u=u==="RELATION"?"BIOPR":"BIOP"}if(u==="THEN"||u==="IF"||u==="WHILE"){this.fset("for",false);this.fset("by",false)}if(u==="RELATION"||u==="THEN"||u==="ELSE"||u==="CASE"||u==="DEFAULT"||u==="CATCH"||u==="FINALLY"||u==="IN"||u==="OF"||u==="FROM"||u==="TO"||u==="BY"||u==="EXTENDS"||u==="IMPLEMENTS"||u==="WHERE"){this.unline()}this.token(u,r);return i.length};n.doNumber=function(e,t){var n,i,r,s,o,a,u,l;A.lastIndex=t;if(!(n=(i=A.exec(e))[0])){return 0}r=this.last;if(i[5]&&(r[0]==="DOT"||this.adi())){this.token("STRNUM",i[4].replace(E,""));return i[4].length}if(s=i[1]){o=parseInt(a=i[2].replace(E,""),s);u=false;if(s>36||s<2){if(/[0-9]/.exec(a)){this.carp("invalid number base "+s+" (with number "+a+"),base must be from 2 to 36")}else{u=true}}if(isNaN(o)||o===parseInt(a.slice(0,-1),s)){this.strnum(i[1]);this.token("DOT",".~");this.token("ID",i[2]);return n.length}o+=""}else{o=(i[3]||n).replace(E,"");if(i[3]&&o.charAt()==="0"&&((l=o.charAt(1))!==""&&l!==".")){this.carp("deprecated octal literal "+i[4])}}if(!r.spaced&&r[0]==="+-"){r[0]="STRNUM";r[1]+=o;return n.length}this.strnum(o);return n.length};n.doString=function(e,t,n){var i,r;if(n===e.charAt(t+1)){return n===e.charAt(t+2)?this.doHeredoc(e,t,n):(this.strnum(n+n),2)}if(n==='"'){i=this.interpolate(e,t,n);this.addInterpolated(i,s);return i.size}r=(w.lastIndex=t,w).exec(e)[0]||this.carp("unterminated string");this.strnum(s(this.string(n,r.slice(1,-1))));return this.countLines(r).length};n.doHeredoc=function(e,t,n){var i,r,s,a,u,l,c,h,f;if(n==="'"){~(i=e.indexOf(n+n+n,t+3))||this.carp("unterminated heredoc");r=e.slice(t+3,i);s=r.replace(R,"");this.strnum(o(this.string(n,G(z(s,Y(s))))));return this.countLines(r).length+6}a=this.interpolate(e,t,n+n+n);u=Y(e.slice(t+3,t+a.size-3).replace(R,""));for(l=0,c=a.length;l<c;++l){h=l;f=a[l];if(f[0]==="S"){if(h+1===a.length){f[1]=f[1].replace(R,"")}f[1]=z(f[1],u);if(h===0){f[1]=G(f[1])}}}this.addInterpolated(a,o);return a.size};n.doComment=function(e,t){var n,i,r;n=~(i=e.indexOf("*/",t+2))?e.slice(t,i+2):e.slice(t)+"*/";if((r=this.last[0])==="NEWLINE"||r==="INDENT"||r==="THEN"){this.token("COMMENT",z(n,this.dent));this.token("NEWLINE","\n")}return this.countLines(n).length};n.doJS=function(e,t){var n,i;k.lastIndex=t;n=k.exec(e)[0]||this.carp("unterminated JS literal");this.token("LITERAL",(i=Object(z(n.slice(2,-2),this.dent)),i.js=true,i),true);return this.countLines(n).length};n.doRegex=function(e,t){var n,i,r,s,o;if(n=W(this.tokens)||this.last[0]==="CREMENT"){if(!this.last.spaced||((i=e.charAt(t+1))===" "||i==="=")){return 0}}i=(C.lastIndex=t,C).exec(e),r=i[0],s=i[1],o=i[2];if(r){this.regex(s,o)}else if(!n&&this.last[0]!=="("){this.carp("unterminated regex")}return r.length};n.doHeregex=function(e,t){var n,i,r,s,o,l,h,f,p,d,g,m;n=this.tokens,i=this.last;r=this.interpolate(e,t,"//");s=e.slice(t+r.size);o=this.validate(/^(?:[gimy]{1,4}|[?$]?)/.exec(s)[0]);if(r[1]){if(o==="$"){this.adi();this.token("(",'"')}else{n.push(["ID","RegExp",i[2],i[3]],["CALL(","",i[2],i[3]]);if(o==="?"){for(l=r.length-1;l>=0;--l){h=l;f=r[l];if(f[0]==="TOKENS"){p=r.splice(h,1)[0][1];break}}}}for(l=0,d=r.length;l<d;++l){h=l;f=r[l];if(f[0]==="TOKENS"){n.push.apply(n,f[1])}else{g=c(f[1]);if(m&&!g){continue}m=n.push((f[0]="STRNUM",f[1]=this.string("'",a(g)),f))}n.push(["+-","+",n[n.length-1][2],n[n.length-1][3]])}--n.length;if(p||o>="g"){this.token(",",",");if(p){n.push.apply(n,p)}else{this.token("STRNUM","'"+o+"'")}}this.token(o==="$"?")":")CALL","")}else{this.regex(u(c(r[0][1])),o)}return r.size+o.length};n.doBackslash=function(e,t){var n,i,r;L.lastIndex=t;n=L.exec(e),i=n[0],r=n[1];if(r){this.strnum(this.string("'",r))}else{this.countLines(i)}return i.length};n.doLine=function(e,t){var n,i,r,s,o,a,u,l,c;n=(b.lastIndex=t,b).exec(e),i=n[0],r=n[1];s=this.countLines(i).length;o=this.last;o.eol=true;o.spaced=true;if(t+s>=e.length){return s}if(a=r&&(this.emender||(this.emender=RegExp("[^"+r.charAt()+"]"))).exec(r)){this.carp("contaminated indent "+escape(a))}if(0>(u=r.length-this.dent)){this.dedent(-u);this.newline()}else{l=o[0],c=o[1];if(l==="ASSIGN"&&((n=c+"")!=="="&&n!==":="&&n!=="+=")||l==="CREMENT"&&c==="++"&&(n=this.tokens)[n.length-2].spaced||(l==="+-"||l==="PIPE"||l==="BACKPIPE"||l==="COMPOSE"||l==="DOT"||l==="LOGIC"||l==="MATH"||l==="COMPARE"||l==="RELATION"||l==="SHIFT"||l==="IN"||l==="OF"||l==="TO"||l==="BY"||l==="FROM"||l==="EXTENDS"||l==="IMPLEMENTS")){return s}if(u){this.indent(u)}else{this.newline()}}this.fset("for",false);this.fset("by",false);return s};n.doSpace=function(e,t){var n;v.lastIndex=t;if(n=v.exec(e)[0]){this.last.spaced=true}return n.length};n.doCase=function(){var e,t;this.fset("for",false);if((e=this.last[0])==="ASSIGN"||e==="->"||e===":"||this.last[0]==="INDENT"&&((e=(t=this.tokens)[t.length-2][0])==="ASSIGN"||e==="->"||e===":")){this.token("SWITCH","switch");return this.token("CASE","case")}};n.doLiteral=function(e,t){var n,i,r,s,o;if(!(n=(y.lastIndex=t,y).exec(e)[0])){return 0}switch(i=r=n){case"|":i="CASE";if(this.doCase()){return n.length}break;case"|>":i="PIPE";break;case"`":i="BACKTICK";break;case"<<":case">>":i="COMPOSE";break;case"<|":i="BACKPIPE";break;case"+":case"-":i="+-";break;case"&&":case"||":i="LOGIC";break;case".&.":case".|.":case".^.":i="BITWISE";break;case"^^":i="CLONE";break;case"**":case"^":i="POWER";break;case"?":if(this.last[0]==="("){this.token("PARAM(","(");this.token(")PARAM",")");this.token("->","->");this.token("ID","it")}else{if(this.last.spaced){i="LOGIC"}}break;case"/":case"%":case"%%":i="MATH";break;case"++":case"--":i="CREMENT";break;case"<<<":case"<<<<":i="IMPORT";break;case";":i="NEWLINE";this.fset("by",false);break;case"..":this.token("LITERAL","..",true);return 2;case".":if(this.last[1]==="?"){this.last[0]="?"}i="DOT";break;case",":switch(this.last[0]){case",":case"[":case"(":case"CALL(":this.token("LITERAL","void");break;case"FOR":case"OWN":this.token("ID","")}break;case"!=":case"~=":if(!(W(this.tokens)||((s=this.last[0])==="("||s==="CREMENT"))){this.tokens.push(r==="!="?["UNARY","!",this.line,this.column]:["UNARY","~",this.line,this.column],["ASSIGN","=",this.line,this.column]);return 2}
|
|
// fallthrough
|
|
case"!~=":case"==":r=function(){switch(r){case"~=":return"==";case"!~=":return"!=";case"==":return"===";case"!=":return"!=="}}();i="COMPARE";break;case"===":case"!==":r+="=";
|
|
// fallthrough
|
|
case"<":case">":case"<=":case">=":case"<==":case">==":case">>=":case"<<=":i="COMPARE";break;case".<<.":case".>>.":case".>>>.":case"<?":case">?":i="SHIFT";break;case"(":if(!((s=this.last[0])==="FUNCTION"||s==="GENERATOR"||s==="LET"||this.able(true)||this.last[1]===".@")){this.token("(","(");this.closes.push(")");this.parens.push(this.last);return 1}i="CALL(";this.closes.push(")CALL");break;case"[":case"{":this.adi();this.closes.push("]}".charAt(r==="{"));break;case"}":if(this.inter&&r!==(s=this.closes)[s.length-1]){this.rest=e.slice(t+1);return 9e9}
|
|
// fallthrough
|
|
case"]":case")":if(i===")"&&((s=this.last[0])==="+-"||s==="COMPARE"||s==="LOGIC"||s==="MATH"||s==="POWER"||s==="SHIFT"||s==="BITWISE"||s==="CONCAT"||s==="COMPOSE"||s==="RELATION"||s==="PIPE"||s==="BACKPIPE"||s==="IMPORT"||s==="CLONEPORT"||s==="ASSIGN")){(s=this.tokens)[s.length-1][0]=function(){switch(this.last[0]){case"RELATION":return"BIOPR";case"PIPE":this.parameters(false,-1);return"BIOPP";default:return"BIOP"}}.call(this)}if(")"===(i=r=this.pair(r))){this.lpar=this.parens.pop()}break;case"=":case":":if(r===":"){switch(this.last[0]){case"ID":case"STRNUM":case")":break;case"...":this.last[0]="STRNUM";break;default:i="LABEL";r=""}this.token(i,r);return n.length}
|
|
// fallthrough
|
|
case":=":case"+=":case"-=":case"*=":case"/=":case"%=":case"%%=":case"<?=":case">?=":case"**=":case"^=":case".&.=":case".|.=":case".^.=":case".<<.=":case".>>.=":case".>>>.=":case"++=":case"|>=":if(this.last[1]==="."||this.last[0]==="?"&&this.adi()){this.last[1]+=r;return r.length}if(this.last[0]==="LOGIC"){(r=Object(r)).logic=this.tokens.pop()[1]}else if((r==="+="||r==="-=")&&!W(this.tokens)&&((s=this.last[0])!=="+-"&&s!=="UNARY"&&s!=="LABEL")){this.token("UNARY",r.charAt());r="="}i="ASSIGN";break;case"::=":this.token("DOT",".");this.token("ID","prototype");this.token("IMPORT","<<");return n.length;case"*":if(this.last[0]==="FUNCTION"){this.last[0]="GENERATOR";return n.length}if(o=((s=this.last[0])==="NEWLINE"||s==="INDENT"||s==="THEN"||s==="=>")&&(N.lastIndex=t+1,N).exec(e)[0].length){this.tokens.push(["LITERAL","void",this.line,this.column],["ASSIGN","=",this.line,this.column]);this.indent(t+o-1-this.dent-e.lastIndexOf("\n",t-1));return o}i=W(this.tokens)||this.last[0]==="CREMENT"&&W(this.tokens,this.tokens.length-1)||this.last[0]==="("?"MATH":"STRNUM";break;case"@":this.adi();if(this.last[0]==="DOT"&&this.last[1]==="."&&(s=this.tokens)[s.length-2][0]==="ID"&&(s=this.tokens)[s.length-2][1]==="constructor"){this.tokens.pop();this.tokens.pop();this.token("LITERAL","this",true);this.adi();this.token("ID","constructor",true)}else{this.token("LITERAL","this",true)}return 1;case"@@":this.adi();this.token("ID","constructor",true);return 2;case"&":this.token("LITERAL","arguments");return 1;case"!":switch(false){default:if(!this.last.spaced){if(this.last[1]==="require"){this.last[0]="REQUIRE";this.last[1]="require!"}else if(W(this.tokens,null,true)){this.token("CALL(","!");this.token(")CALL",")")}else if(this.last[1]==="typeof"){this.last[1]="classof"}else if(this.last[1]==="delete"){this.last[1]="jsdelete"}else{break}return 1}}i="UNARY";break;case"|":i="BITWISE";break;case"~":if(this.dotcat(r)){return 1}i="UNARY";break;case"::":this.adi();r="prototype";i="ID";break;case"=>":this.unline();this.fset("for",false);i="THEN";break;default:if(/^!?(?:--?|~~?)>>?\*?$/.test(r)){this.parameters(i="->")}else if(/^\*?<(?:--?|~~?)!?$/.test(r)){this.parameters(i="<-")}else{switch(r.charAt(0)){case"(":this.token("CALL(","(");i=")CALL";r=")";break;case"<":if(r.length<4){this.carp("unterminated words")}this.token("WORDS",r.slice(2,-2),this.adi());return this.countLines(r).length}}}if((i==="+-"||i==="COMPARE"||i==="LOGIC"||i==="MATH"||i==="POWER"||i==="SHIFT"||i==="BITWISE"||i==="CONCAT"||i==="RELATION"||i==="PIPE"||i==="BACKPIPE"||i==="COMPOSE"||i==="IMPORT")&&this.last[0]==="("){i=i==="BACKPIPE"?"BIOPBP":"BIOP"}if(i===","||i==="CASE"||i==="PIPE"||i==="BACKPIPE"||i==="COMPOSE"||i==="DOT"||i==="LOGIC"||i==="COMPARE"||i==="MATH"||i==="POWER"||i==="IMPORT"||i==="SHIFT"||i==="BITWISE"){this.unline()}this.token(i,r);return n.length};n.token=function(e,t,n){this.tokens.push(this.last=[e,t,this.line,this.column]);if(n){this.last.callable=true}return t};n.indent=function(e){this.dent+=e;this.dents.push(this.token("INDENT",e));this.closes.push("DEDENT")};n.dedent=function(e){var t;this.dent-=e;while(e>0&&(t=this.dents.pop())){if(e<t&&!this.inter){this.carp("unmatched dedent ("+e+" for "+t+")")}this.pair("DEDENT");e-=typeof t==="number"?this.token("DEDENT",t):t}};n.newline=function(){var e;if(!(this.last[0]==="NEWLINE"&&this.last[1]==="\n")){this.tokens.push(this.last=(e=["NEWLINE","\n",this.line,this.column],e.spaced=true,e))}};n.unline=function(){var e;if(!this.tokens[1]){return}switch(this.last[0]){case"INDENT":(e=this.dents)[e.length-1]+="";
|
|
// fallthrough
|
|
case"NEWLINE":this.tokens.length--}};n.parameters=function(e,t){var n,i,r,s,o;if(this.last[0]===")"&&")"===this.last[1]){this.lpar[0]="PARAM(";this.last[0]=")PARAM";return}if(e==="->"){this.token("PARAM(","")}else{for(n=(i=this.tokens).length-1;n>=0;--n){r=n;s=i[n];if((o=s[0])==="NEWLINE"||o==="INDENT"||o==="THEN"||o==="=>"||o==="("){break}}this.tokens.splice(r+1,0,["PARAM(","",s[2],s[3]])}if(t){this.tokens.splice(this.tokens.length+t,0,[")PARAM","",s[2],s[3]])}else{this.token(")PARAM","")}};n.interpolate=function(e,t,i){var r,s,o,a,u,c,h,f,p,d,g,y,v,b,w,k,L,A;r=[];s=i.charAt(0);o=0;a=-1;e=e.slice(t+i.length);u=[this.line,this.column],c=u[0],h=u[1];this.countLines(i);while(f=e.charAt(++a)){switch(f){case s:if(i!==e.slice(a,a+i.length)){continue}r.push(["S",this.countLines(e.slice(0,a)),c,h]);this.countLines(i);return r.size=o+a+i.length*2,r;case"#":p=e.charAt(a+1);d=p==="@"&&p||(m.lastIndex=a+1,m).exec(e)[1];if(!(d||p==="{")){continue}break;case"\\":++a;
|
|
// fallthrough
|
|
default:continue}if(a||k&&!g){g=r.push(["S",this.countLines(e.slice(0,a)),c,h]);u=[this.line,this.column],c=u[0],h=u[1]}if(d){y=d.length;if(d==="@"){d="this"}if(d==="this"){v="LITERAL"}else{d=l(d);try{Function("'use strict'; var "+d)}catch(E){b=E;this.carp("invalid variable interpolation '"+d+"'")}v="ID"}e=e.slice(w=a+1+y);r.push(["TOKENS",k=[[v,d,this.line,this.column]]])}else{L=(u=ne(n),u.inter=true,u.emender=this.emender,u);k=L.tokenize(e.slice(a+2),{line:this.line,column:this.column+2,raw:true});w=e.length-L.rest.length;this.countLines(e.slice(a,w));e=L.rest;while(((u=k[0])!=null?u[0]:void 8)==="NEWLINE"){k.shift()}if(k.length){k.unshift(["(","(",c,h]);k.push([")",")",this.line,this.column-1]);r.push(["TOKENS",k])}A=[this.line,this.column],c=A[0],h=A[1]}o+=w;a=-1}this.carp("missing `"+i+"`")};n.addInterpolated=function(e,t){var n,i,r,s,o,a,u,l,c,h,f;if(!e[1]){return this.strnum(t(this.string('"',e[0][1])))}n=this.tokens,i=this.last;r=!i.spaced&&i[1]==="%"?(--n.length,this.last=i=n[n.length-1],["[","]",[",",","]]):["(",")",["+-","+"]],s=r[0],o=r[1],a=r[2];u=this.adi();n.push([s,'"',i[2],i[3]]);for(l=0,c=e.length;l<c;++l){h=l;f=e[l];if(f[0]==="TOKENS"){n.push.apply(n,f[1])}else{if(h>1&&!f[1]){continue}n.push(["STRNUM",t(this.string('"',f[1])),f[2],f[3]])}n.push(a.concat(n[n.length-1][2],n[n.length-1][3]))}--n.length;this.token(o,"",u)};n.strnum=function(e){this.token("STRNUM",e,this.adi()||this.last[0]==="DOT")};n.regex=function(e,t){var n;try{RegExp(e)}catch(i){n=i;this.carp(n.message)}if(t==="$"){return this.strnum(this.string("'",a(e)))}return this.token("LITERAL","/"+(e||"(?:)")+"/"+this.validate(t))};n.adi=function(){if(this.last.spaced){return}if(!W(this.tokens)){return}return this.token("DOT",".")};n.dotcat=function(e){if(this.last[1]==="."||this.adi()){return this.last[1]+=e}};n.pair=function(e){var t,n;if(!(e===(t=(n=this.closes)[n.length-1])||")CALL"===t&&e===")")){if("DEDENT"!==t){this.carp("unmatched `"+e+"`")}this.dedent((n=this.dents)[n.length-1]);return this.pair(e)}this.unline();this.fclear();return this.closes.pop()};n.able=function(e){return!this.last.spaced&&W(this.tokens,null,e)};n.countLines=function(e){var t;if(!this.isAtPrefix){this.column+=e.length}while(t=1+e.indexOf("\n",t)){if(!this.isAtPrefix){this.column=0}this.column+=e.length-t;++this.line;this.isAtPrefix=false}this.charsCounted+=e.length;return e};n.forange=function(){var e,t,n;if(((e=(t=this.tokens)[t.length-2-((n=this.last[0])==="NEWLINE"||n==="INDENT")])!=null?e[0]:void 8)==="FOR"||this.last[0]==="FOR"){this.fset("for",false);this.fset("from",true);return true}else{return false}};n.validate=function(e){var t;if(t=e&&/(.).*\1/.exec(e)){this.carp("duplicate regex flag `"+t[1]+"`")}return e};n.fget=function(e){var t;return(t=this.flags[this.closes.length])!=null?t[e]:void 8};n.fset=function(e,t){var n,i;((n=this.flags)[i=this.closes.length]||(n[i]={}))[e]=t};n.fclear=function(){this.flags.splice(this.closes.length)};n.carp=function(e){F(e,this.line)};n.string=function(e,t){return i(e,t,this.line)};function F(e,t){throw SyntaxError(e+" on line "+-~t)}function W(e,t,n){var i,r;t==null&&(t=e.length);r=(i=e[t-1])[0];return r==="ID"||r==="]"||r==="?"||(n?i.callable||(r===")"||r===")CALL"||r==="BIOPBP")&&i[1]:r==="}"||r===")"||r===")CALL"||r==="STRNUM"||r==="LITERAL"||r==="WORDS")}i=function(e){return function(t,n,i){n=n.replace(e,function(e,n,r,s){if(e===t||e==="\\"){return"\\"+e}if(n){return"\\x"+(256+parseInt(n,8)).toString(16).slice(1)}if(r){F("malformed character escape sequence",i)}if(!s||t===s){return e}else{return s}});return t+n+t}}.call(this,/['"]|\\(?:([0-3]?[0-7]{2}|[1-7]|0(?=[89]))|x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|([xu])|[\\0bfnrtv]|[^\n\S]|([\w\W]))?/g);function Y(e){var t,n,i;t=0/0;while(n=r.exec(e)){t<=(i=n[0].length-1)||(t=i)}return t}r=/\n(?!$)[^\n\S]*/gm;function z(e,t){if(t){return e.replace(z[t]||(z[t]=RegExp("\\n[^\\n\\S]{1,"+t+"}","g")),"\n")}else{return e}}s=function(e){return e.replace(/\n[^\n\S]*/g,"")};o=function(e){return e.replace(/\n/g,"\\n")};a=function(e){return e.replace(/\\/g,"\\\\")};u=function(e){return e.replace(/(\\.)|\//g,function(){return arguments[1]||"\\/"})};l=function(e){return e.replace(/-[a-z]/gi,function(e){return e.charAt(1).toUpperCase()})};c=function(e){return e.replace(/\s+(?:#.*)?|(\\[\s\S])/g,function(e,t){t||(t="");if("\n"===t.charAt(1)){return"\\n"}else{return t}})};function G(e){return e.slice(1+e.lastIndexOf("\n",0))}function H(e,t){if(!isNaN(e)){return[+e]}e=e.length>8?"ng":Function("return "+e)();e.length===1||F("bad string in range",t);return[e.charCodeAt(),true]}function J(e){return'"\\u'+("000"+e.toString(16)).slice(-4)+'"'}h=typeof JSON=="undefined"||JSON===null?J:function(e){switch(e){case 8232:case 8233:return J(e);default:return JSON.stringify(String.fromCharCode(e))}};function q(e){var t,n,i,r,s,o,a,u,l,c,h,f,p;t=["NEWLINE","\n",0];n=0;while(i=e[++n]){r=i[0],s=i[1],o=i[2],a=i[3];switch(r){case"ASSIGN":if(ie(t[1],g)&&e[n-2][0]!=="DOT"){F("cannot assign to reserved word '"+t[1]+"'",o)}break;case"DOT":switch(false){case!(t[0]==="]"&&e[n-2][0]==="["&&e[n-3][0]==="DOT"):e.splice(n-2,3);e[n-3][1]="[]";n-=3;break;case!(t[0]==="}"&&e[n-2][0]==="{"&&e[n-3][0]==="DOT"):e.splice(n-2,3);e[n-3][1]="{}";n-=3;break;case!(s==="."&&i.spaced&&t.spaced):e[n]=["COMPOSE","<<",o,a];break;default:u=e[n+1];if(t[0]==="("&&u[0]===")"){e[n][0]="BIOP"}else if(t[0]==="("){e.splice(n,0,["PARAM(","(",o,a],[")PARAM",")",o,a],["->","~>",o,a],["ID","it",o,a])}else if(u[0]===")"){e.splice(n+1,0,["[","[",o,a],["ID","it",o,a],["]","]",o,a]);l=1;e:for(c=n+1;c>=0;--c){h=c;switch(e[h][0]){case")":++l;break;case"(":if(--l===0){e.splice(h+1,0,["PARAM(","(",o,a],["ID","it",o,a],[")PARAM",")",o,a],["->","~>",o,a]);break e}}}}}break;case"CREMENT":if(!(s==="++"&&(u=e[n+1]))){break}f=["ID","LITERAL","STRNUM"];if(t.spaced&&i.spaced||!(t.spaced||i.spaced)&&ie(t[0],f)&&ie(u[0],f)){e[n][0]="CONCAT"}if(t[0]==="("&&u[0]===")"||t[0]==="("&&i.spaced||u[0]===")"&&t.spaced){e[n][0]="BIOP"}break;case"ID":if(s!=="async"){break}u=e[n+1];if((p=u[0])==="FUNCTION"||p==="GENERATOR"){i[0]="ASYNC"}}t=i;continue}}function K(e){var t,n,i;t=-1;while(n=e[++t]){i=n[0];if(i==="IF"||i==="CLASS"||i==="CATCH"){ee(e,t+1,r,s)}}function r(e){var t;return(t=e[0])==="NEWLINE"||t==="INDENT"}function s(t,r){var s,o;if(i==="IF"){if(t[0]!=="INDENT"||!t[1]&&!t.then||ie(e[r-1][0],U)){n[0]="POST_IF"}}else if(t[0]!=="INDENT"){e.splice(r,0,["INDENT",0,s=e[r-1][2],o=e[r-1][3]],["DEDENT",0,s,o])}}}function V(e){var t,n,i,r,s,o,a,u,l;t=0;while(n=e[++t]){i=n[0];if(i!=="->"&&i!=="THEN"&&i!=="ELSE"&&i!=="DEFAULT"&&i!=="TRY"&&i!=="FINALLY"&&i!=="DECL"){continue}switch(r=e[t+1][0]){case"IF":if(i==="ELSE"){continue}break;case"INDENT":case"THEN":if(i==="THEN"){e.splice(t--,1)}continue}s=["INDENT",0,n[2],n[3]];o=["DEDENT",0];if(i==="THEN"){(e[t]=s).then=true}else{e.splice(++t,0,s)}switch(false){case i!=="DECL":break;case r!=="DOT"&&r!=="?"&&r!==","&&r!=="PIPE"&&r!=="BACKPIPE":--t;
|
|
// fallthrough
|
|
case!((r==="ID"||r==="STRNUM"||r==="LITERAL")&&","===((a=e[t+2])!=null?a[0]:void 8)):h(0,t+=2);++t;continue;case!((r==="("||r==="["||r==="{")&&","===((u=e[l=1+te(e,t+1)])!=null?u[0]:void 8)):h(0,l);++t;continue}ee(e,t+1,c,h)}function c(t,n){var r,s;r=t[0];s=i;if(i===r||i==="THEN"&&r==="SWITCH"){i=""}switch(r){case"NEWLINE":return t[1]!==";";case"DOT":case"?":case",":case"PIPE":case"BACKPIPE":return e[n-1].eol;case"ELSE":return s==="THEN";case"CATCH":return s==="TRY";case"FINALLY":return s==="TRY"||s==="CATCH"||s==="THEN";case"CASE":case"DEFAULT":return s==="CASE"||s==="THEN"}}function h(t,n){var i;i=e[n-1];e.splice(i[0]===","?n-1:n,0,(o[2]=i[2],o[3]=i[3],o))}}function X(e){var t,n,i,r,s,o,a,u,l,c,h;t=0;n=[];while(i=e[++t]){if(i[1]==="do"&&e[t+1][0]==="INDENT"){r=te(e,t+1);if(e[r+1][0]==="NEWLINE"&&((s=e[r+2])!=null?s[0]:void 8)==="WHILE"){i[0]="DO";e[r+2].done=true;e.splice(r+1,1)}else{(i=e[1+t])[0]="(";(o=e[r])[0]=")";i.doblock=true;e.splice(t,1)}}a=i[0];u=e[t-1];a==="["&&n.push(u[0]==="DOT");if(u[0]==="]"){if(n.pop()){u.index=true}else{continue}}if(!((l=u[0])==="FUNCTION"||l==="GENERATOR"||l==="LET"||l==="WHERE"||u.spaced&&W(e,t,true))){continue}if(i.doblock){i[0]="CALL(";o[0]=")CALL";continue}if(!f(i)){continue}if(a==="CREMENT"){if(i.spaced||!ie((l=e[t+1])!=null?l[0]:void 8,B)){continue}}c=h=false;e.splice(t++,0,["CALL(","",i[2],i[3]]);ee(e,t,p,d)}function f(e){var t;t=e[0];return ie(t,$)||!e.spaced&&(t==="+-"||t==="CLONE")}function p(t,n){var i,r,s;i=t[0];if(i==="POST_IF"||i==="PIPE"||i==="BACKPIPE"){return true}if(!c){if(t.alias&&((r=t[1])==="&&"||r==="||"||r==="xor")||(i==="TO"||i==="BY"||i==="IMPLEMENTS")){return true}}s=e[n-1];switch(i){case"NEWLINE":return s[0]!==",";case"DOT":case"?":return!c&&(s.spaced||s[0]==="DEDENT");case"SWITCH":h=true;
|
|
// fallthrough
|
|
case"IF":case"CLASS":case"FUNCTION":case"GENERATOR":case"LET":case"WITH":case"CATCH":c=true;break;case"CASE":if(h){c=true}else{return true}break;case"INDENT":if(c){return c=false}return!ie(s[0],U);case"WHILE":if(t.done){return false}
|
|
// fallthrough
|
|
case"FOR":c=true;return W(e,n)||s[0]==="CREMENT"||s[0]==="..."&&s.spaced}return false}function d(t,n){e.splice(n,0,[")CALL","",e[n-1][2],e[n-1][3]])}}function Z(e){var t,n,i,r,s,o,a,u,l,c,h;t=[];n=0;while(i=e[++n]){if(":"!==(r=i[0])){switch(false){case!ie(r,I):s=t.pop();break;case!ie(r,T):if(r==="INDENT"&&e[n-1][0]==="{"){r="{"}t.push([r,n])}continue}o=e[n-1][0]===")";a=o?s[1]:n-1;u=e[a-1];if(!((c=u[0])===":"||c==="ASSIGN"||c==="IMPORT"||((l=t[t.length-1])!=null?l[0]:void 8)!=="{")){continue}t.push(["{"]);h=!u.doblock&&((c=u[0])!=="NEWLINE"&&c!=="INDENT");while(((c=e[a-2])!=null?c[0]:void 8)==="COMMENT"){a-=2}e.splice(a,0,["{","{",e[a][2],e[a][3]]);ee(e,++n+1,f,p)}function f(t,n){var i,r,s,o;switch(i=t[0]){case",":break;case"NEWLINE":if(h){return true}break;case"DEDENT":return true;case"POST_IF":case"FOR":case"WHILE":return h;default:return false}s=(r=e[n+1])!=null?r[0]:void 8;return s!==(i===","?"NEWLINE":"COMMENT")&&":"!==((o=e[s==="("?1+te(e,n+1):n+2])!=null?o[0]:void 8)}function p(t,n){e.splice(n,0,["}","",t[2],t[3]])}}function Q(e){var t,n,r,s,o,a,u,l,c,f,p,d,g,m,y,v,b,w,k,L,A,E,C,S,R,N,_;t=0;while(r=e[++t]){switch(r[0]){case"STRNUM":if(~"-+".indexOf(s=r[1].charAt(0))){r[1]=r[1].slice(1);e.splice(t++,0,["+-",s,r[2],r[3]])}if(r.callable){continue}break;case"TO":case"TIL":if(!(e[t-1][0]==="["&&(e[t+2][0]==="]"&&((u=e[t+1][1].charAt(0))==="'"||u==='"'||+e[t+1][1]>=0)||e[t+2][0]==="BY"&&((o=e[t+3])!=null?o[0]:void 8)==="STRNUM"&&((a=e[t+4])!=null?a[0]:void 8)==="]"))){continue}if(e[t+2][0]==="BY"){e[t+2][0]="RANGE_BY"}r.op=r[1];n=0;
|
|
// fallthrough
|
|
case"RANGE":l=r[2];c=r[3];if(n!=null||e[t-1][0]==="["&&e[t+1][0]==="STRNUM"&&(e[t+2][0]==="]"&&((p=e[t+1][1].charAt(0))==="'"||p==='"'||+e[t+1][1]>=0)||e[t+2][0]==="RANGE_BY"&&((u=e[t+3])!=null?u[0]:void 8)==="STRNUM"&&((f=e[t+4])!=null?f[0]:void 8)==="]")){if(n==null){p=H(r[1],l),n=p[0],d=p[1]}p=H(e[t+1][1],l),g=p[0],m=p[1];if(g==null||d^m){F('bad "to" in range',l)}y=1;if(v=((p=e[t+2])!=null?p[0]:void 8)==="RANGE_BY"){if(!(y=+((b=e[t+3])!=null?b[1]:void 8))){F('bad "by" in range',e[t+2][2])}}else if(n>g){y=-1}w=[];k=d?h:String;L=T;if(r.op==="to"){for(A=n;y<0?A>=g:A<=g;A+=y){E=A;L()}}else{for(A=n;y<0?A>g:A<g;A+=y){E=A;L()}}w.pop()||F("empty range",l);e.splice.apply(e,[t,2+2*v].concat(j(w)));t+=w.length-1}else{r[0]="STRNUM";if(((C=e[t+2])!=null?C[0]:void 8)==="RANGE_BY"){e.splice(t+2,1,["BY","by",l,c])}e.splice(t+1,0,["TO",r.op,l,c])}n=null;break;case"WORDS":w=[["[","[",l=r[2],c=r[3]]];for(A=0,R=(S=r[1].match(/\S+/g)||"").length;A<R;++A){N=S[A];w.push(["STRNUM",i("'",N,l),l,c],[",",",",l,c])}e.splice.apply(e,[t,1].concat(j(w),[["]","]",l,c]]));t+=w.length;break;case"INDENT":if(_=e[t-1]){if(_[1]==="new"){e.splice(t++,0,["PARAM(","",r[2],r[3]],[")PARAM","",r[2],r[3]],["->","",r[2],r[3]])}else if((S=_[0])==="FUNCTION"||S==="GENERATOR"||S==="LET"){e.splice(t,0,["CALL(","",r[2],r[3]],[")CALL","",r[2],r[3]]);t+=2}}continue;case"LITERAL":case"}":break;case")":case")CALL":if(r[1]){continue}break;case"]":if(r.index){continue}break;case"CREMENT":if(!W(e,t)){continue}break;case"BIOP":if(!r.spaced&&((S=r[1])==="+"||S==="-")&&e[t+1][0]!==")"){e[t][0]="+-"}continue;default:continue}if(r.spaced&&ie(e[t+1][0],$)){e.splice(++t,0,[",",",",r[2],r[3]])}}function T(){if(65536<w.push(["STRNUM",k(E),l,c],[",",",",l,c])){F("range limit exceeded",l)}}}function ee(e,t,n,i){var r,s,o;r=0;for(;s=e[t];++t){if(!r&&n(s,t)){return i(s,t)}o=s[0];if(0>(r+=ie(o,T)||-ie(o,I))){return i(s,t)}}}function te(e,t){var n,i,r,s;n=1;i=x[r=e[t][0]];while(s=e[++t]){switch(s[0]){case r:++n;break;case i:if(!--n){return t}}}return-1}f=["true","false","null","this","void","super","return","throw","break","continue","if","else","for","while","switch","case","default","try","catch","finally","function","class","extends","implements","new","do","delete","typeof","in","instanceof","let","with","var","const","import","export","debugger","yield"];p=["enum","interface","package","private","protected","public","static"];d=f.concat(p);g=["xor","match","where"];m=/((?!\s)[a-z_$\xAA-\uFFDC](?:(?!\s)[\w$\xAA-\uFFDC]|-[a-z])*)([^\n\S]*:(?![:=]))?|/gi;y=/[-\/^]=|[%+:*]{1,2}=|\|>=|\.(?:[&\|\^]|<<|>>>?)\.=?|\.{1,3}|\^\^|\*?<(?:--?|~~?)!?|!?(?:--?|~~?)>>?\*?|([-+&|:])\1|%%|&|\([^\n\S]*\)|[!=]==?|!?\~=|@@?|<\[(?:[\s\S]*?\]>)?|<<<<?|<\||[<>]==|<<=|>>=|<<|>>|[<>]\??=?|\|>|\||=>|\*\*|\^|`|[^\s#]?/g;v=/[^\n\S]*(?:#.*)?/g;b=/(?:\s*#.*)*(?:\n([^\n\S]*))*/g;w=/'[^\\']*(?:\\[\s\S][^\\']*)*'|/g;k=/``[^\\`]*(?:\\[\s\S][^\\`]*)*``|/g;L=RegExp("\\\\(?:(\\S[^\\s,;)}\\]]*)|(?:"+v.source+"\\n?)*)","g");A=/0x[\dA-Fa-f][\dA-Fa-f_]*|(\d*)~([\dA-Za-z]\w*)|((\d[\d_]*)(\.\d[\d_]*)?(?:e[+-]?\d[\d_]*)?)[$\w]*|/g;E=/_+/g;C=/\/([^[\/\n\\]*(?:(?:\\.|\[[^\]\n\\]*(?:\\.[^\]\n\\]*)*\])[^[\/\n\\]*)*)\/([gimy]{1,4}|\$?)|/g;S=/\s+(?:#.*)?/g;R=/\n[^\n\S]*$/;N=/[^\n\S]*[^#\s]?/g;_=/[\x80-\uFFFF]/;T=["(","[","{","CALL(","PARAM(","INDENT"];I=[")","]","}",")CALL",")PARAM","DEDENT"];x=re(function(){var e,t,n,i={};for(e=0,n=(t=T).length;e<n;++e){O=e;M=t[e];i[M]=I[O]}return i}(),function(){var e,t,n,i={};for(e=0,n=(t=I).length;e<n;++e){O=e;P=t[e];i[P]=T[O]}return i}());B=["(","{","[","ID","STRNUM","LITERAL","LET","WITH","WORDS"];$=B.concat(["...","UNARY","YIELD","CREMENT","PARAM(","FUNCTION","GENERATOR","IF","SWITCH","TRY","CLASS","RANGE","LABEL","DECL","DO","BIOPBP"]);U=[",",":","->","ELSE","ASSIGN","IMPORT","UNARY","DEFAULT","TRY","FINALLY","HURL","DECL","DO","LET","FUNCTION","GENERATOR","..."];function ne(e){function t(){}t.prototype=e;return new t}function ie(e,t){var n=-1,i=t.length>>>0;while(++n<i)if(e===t[n])return true;return false}function re(e,t){var n={}.hasOwnProperty;for(var i in t)if(n.call(t,i))e[i]=t[i];return e}},{}],4:[function(e,t,n){(function(n){
|
|
// Generated by LiveScript 1.6.1
|
|
t.exports=function(t){var o,a,u;o=e("fs");a=e("path");u=e("events");t.run=function(s,u,l){var c,h,f,p,d,g,m,y;if(u!=null){c=u.filename}h=l!=null?l:{},f=h.js,p=h.context;d=e.main;g=c?a.dirname(o.realpathSync(c=a.resolve(c))):c=".";d.paths=d.constructor._nodeModulePaths(g);d.filename=c;if(!f){s=t.compile(s,(h={},r(h,u),h.bare=true,h));if(m=s.code){s=m}}if(p){n.__runContext=p;s="return (function() {\n"+s+"\n}).call(global.__runContext);"}c+="(js)";try{return d._compile(s,c)}catch(v){y=v;throw i(y,s,c)}};s(t,u.EventEmitter.prototype);e.extensions[".ls"]=function(e,n){var r,s,a;r=o.readFileSync(n,"utf8");s=".json.ls"===n.substr(-8)?"module.exports = "+t.compile(r,{filename:n,json:true}):t.compile(r,{filename:n,bare:true,map:"embedded"}).code;try{return e._compile(s,n)}catch(u){a=u;throw i(a,s,n)}}};function i(e,t,n){var i,r,s,o,a,u,l,c,h,f,p,d,g,m;if(e!=null){i=e.stack}if(!i){return e}r=i.split("\n");if(!(r.length>1)){return e}for(s=0,o=r.length;s<o;++s){a=s;u=r[s];if(0>(l=u.indexOf("("+n+":"))){continue}c=(/:(\d+):/.exec(u.slice(l+n.length))||"")[1];if(!(c=+c)){continue}h=c+4;f=(""+h).length;p||(p=t.split("\n"));for(d=1>(g=c-4)?1:g;d<=h;++d){m=d;r[a]+="\n"+(" "+m).slice(-f)+""+"|+".charAt(m===c)+" "+[p[m-1]]}}return e.stack=r.join("\n"),e}function r(e,t){var n={}.hasOwnProperty;for(var i in t)if(n.call(t,i))e[i]=t[i];return e}function s(e,t){for(var n in t)e[n]=t[n];return e}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{events:10,fs:8,path:13}],5:[function(e,t,n){(function(i){/* parser generated by jison 0.4.18 */
|
|
/*
|
|
Returns a Parser object of the following structure:
|
|
|
|
Parser: {
|
|
yy: {}
|
|
}
|
|
|
|
Parser.prototype: {
|
|
yy: {},
|
|
trace: function(),
|
|
symbols_: {associative list: name ==> number},
|
|
terminals_: {associative list: number ==> name},
|
|
productions_: [...],
|
|
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
|
|
table: [...],
|
|
defaultActions: {...},
|
|
parseError: function(str, hash),
|
|
parse: function(input),
|
|
|
|
lexer: {
|
|
EOF: 1,
|
|
parseError: function(str, hash),
|
|
setInput: function(input),
|
|
input: function(),
|
|
unput: function(str),
|
|
more: function(),
|
|
less: function(n),
|
|
pastInput: function(),
|
|
upcomingInput: function(),
|
|
showPosition: function(),
|
|
test_match: function(regex_match_array, rule_index),
|
|
next: function(),
|
|
lex: function(),
|
|
begin: function(condition),
|
|
popState: function(),
|
|
_currentRules: function(),
|
|
topState: function(),
|
|
pushState: function(condition),
|
|
|
|
options: {
|
|
ranges: boolean (optional: true ==> token location info will include a .range[] member)
|
|
flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
|
|
backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
|
|
},
|
|
|
|
performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
|
|
rules: [...],
|
|
conditions: {associative list: name ==> set},
|
|
}
|
|
}
|
|
|
|
|
|
token location info (@$, _$, etc.): {
|
|
first_line: n,
|
|
last_line: n,
|
|
first_column: n,
|
|
last_column: n,
|
|
range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
|
|
}
|
|
|
|
|
|
the parseError function receives a 'hash' object with these members for lexer and parser errors: {
|
|
text: (matched text)
|
|
token: (the produced terminal token, if any)
|
|
line: (yylineno)
|
|
}
|
|
while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
|
|
loc: (yylloc)
|
|
expected: (string describing the set of expected tokens)
|
|
recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
|
|
}
|
|
*/
|
|
var r=function(){var e=function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},t=[2,60],n=[1,31],i=[1,34],r=[1,35],s=[1,36],o=[1,37],a=[1,38],u=[1,8],l=[1,15],c=[1,14],h=[1,39],f=[1,41],p=[1,29],d=[1,6],g=[1,10],m=[1,9],y=[1,11],v=[1,16],b=[1,17],w=[1,18],k=[1,19],L=[1,20],A=[1,21],E=[1,22],C=[1,23],S=[1,44],R=[1,24],N=[1,25],_=[1,26],T=[1,27],I=[1,28],x=[1,30],O=[1,43],M=[1,45],P=[1,20,25,47],B=[20,47],$=[2,64],U=[1,49],D=[1,50],j=[1,51],F=[1,52],W=[1,53],Y=[1,54],z=[1,55],G=[1,56],H=[1,57],J=[1,58],q=[1,59],K=[1,60],V=[1,61],X=[1,62],Z=[1,63],Q=[30,46,47,48],ee=[2,50],te=[1,68],ne=[1,67],ie=[1,12,19,20,22,24,25,26,30,33,34,35,46,47,48,58,59,62,63,64,65,66,67,68,69,70,71,72,79,81,82,102,105],re=[2,75],se=[1,77],oe=[1,78],ae=[1,73],ue=[1,79],le=[1,71],ce=[1,72],he=[1,74],fe=[1,75],pe=[1,83],de=[1,87],ge=[1,86],me=[1,84],ye=[1,95],ve=[1,109],be=[48,105],we=[2,201],ke=[1,113],Le=[2,1],Ae=[1,9,12,13,19,20,22,24,25,26,30,32,33,34,35,37,46,47,48,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,81,82,96,102,103,104,105],Ee=[2,2],Ce=[19,46,47,48],Se=[1,120],Re=[1,119],Ne=[22,46,47],_e=[2,156],Te=[1,130],Ie=[1,125],xe=[1,128],Oe=[1,129],Me=[25,47],Pe=[1,9,12,13,19,20,22,24,25,26,30,32,33,34,35,37,46,47,48,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,81,82,96,99,102,103,104,105],Be=[30,47,48],$e=[2,58],Ue=[1,169],De=[12,19,20,30,46,47,48],je=[2,55],Fe=[2,71],We=[12,46,47,48],Ye=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,58,59,62,63,64,66,67,68,70,71,72,79,81,82,102,105],ze=[20,46,47,48],Ge=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,79,81,82,102,105],He=[1,206],Je=[1,12,19,20,22,24,25,26,30,33,34,35,46,47,48,58,59,62,63,64,65,66,67,68,69,70,71,72,79,81,102,105],qe=[1,209],Ke=[46,48,82],Ve=[2,203],Xe=[1,215],Ze=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,71,72,79,81,82,102,105],Qe=[19,47,48],et=[1,227],tt=[20,22,46,47],nt=[9,13,20,22,32,33,37,46,47,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,96],it=[2,165],rt=[1,251],st=[19,20,22,47,48,81,102],ot=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,58,62,63,66,67,68,70,71,72,79,81,82,102,105],at=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,63,67,71,72,79,81,82,102,105],ut=[1,12,19,20,22,24,25,26,30,34,35,46,47,48,62,63,67,70,71,72,79,81,82,102,105],lt=[1,264],ct=[1,265],ht=[2,59],ft=[12,47,48],pt=[20,47,48],dt=[1,302],gt=[1,303],mt=[1,311],yt=[4,7,14,16,21,23,29,31,32,38,41,44,48,49,59,60,61,75,76,77,78,80,81,83,84,85,90,93,97,102],vt=[1,336],bt=[1,337],wt=[1,12,19,20,22,24,25,26,30,33,34,35,46,47,48,58,59,62,63,64,65,66,67,68,69,70,71,72,79,81,82,88,89,102,105],kt=[2,46],Lt=[1,369];var At={trace:function Ct(){},yy:{},symbols_:{error:2,Chain:3,ID:4,KeyLike:5,List:6,LITERAL:7,Index:8,"CALL(":9,ArgList:10,OptComma:11,")CALL":12,"?":13,LET:14,Block:15,"[":16,Expression:17,LoopHeads:18,"]":19,DEDENT:20,"{":21,"}":22,"(":23,BIOP:24,")":25,BIOPR:26,BIOPBP:27,BIOPP:28,"PARAM(":29,")PARAM":30,UNARY:31,CREMENT:32,BACKTICK:33,TO:34,BY:35,FROM:36,DOT:37,WITH:38,LoopHead:39,Else:40,STRNUM:41,Parenthetical:42,Properties:43,LABEL:44,Arg:45,",":46,NEWLINE:47,INDENT:48,"...":49,Lines:50,Line:51,"<-":52,COMMENT:53,REQUIRE:54,SplatChain:55,CLONEPORT:56,ASSIGN:57,IMPORT:58,"+-":59,CLONE:60,YIELD:61,COMPARE:62,LOGIC:63,MATH:64,POWER:65,SHIFT:66,BITWISE:67,CONCAT:68,COMPOSE:69,RELATION:70,PIPE:71,BACKPIPE:72,"!?":73,"->":74,FUNCTION:75,GENERATOR:76,ASYNC:77,IF:78,POST_IF:79,DO:80,WHILE:81,CASE:82,HURL:83,JUMP:84,SWITCH:85,Exprs:86,Cases:87,DEFAULT:88,ELSE:89,TRY:90,CATCH:91,FINALLY:92,CLASS:93,OptExtends:94,OptImplements:95,EXTENDS:96,DECL:97,KeyColon:98,":":99,Property:100,Body:101,FOR:102,IN:103,OF:104,IMPLEMENTS:105,Root:106,$accept:0,$end:1},terminals_:{2:"error",4:"ID",7:"LITERAL",9:"CALL(",12:")CALL",13:"?",14:"LET",16:"[",19:"]",20:"DEDENT",21:"{",22:"}",23:"(",24:"BIOP",25:")",26:"BIOPR",27:"BIOPBP",28:"BIOPP",29:"PARAM(",30:")PARAM",31:"UNARY",32:"CREMENT",33:"BACKTICK",34:"TO",35:"BY",36:"FROM",37:"DOT",38:"WITH",41:"STRNUM",44:"LABEL",46:",",47:"NEWLINE",48:"INDENT",49:"...",52:"<-",53:"COMMENT",54:"REQUIRE",56:"CLONEPORT",57:"ASSIGN",58:"IMPORT",59:"+-",60:"CLONE",61:"YIELD",62:"COMPARE",63:"LOGIC",64:"MATH",65:"POWER",66:"SHIFT",67:"BITWISE",68:"CONCAT",69:"COMPOSE",70:"RELATION",71:"PIPE",72:"BACKPIPE",73:"!?",74:"->",75:"FUNCTION",76:"GENERATOR",77:"ASYNC",78:"IF",79:"POST_IF",80:"DO",81:"WHILE",82:"CASE",83:"HURL",84:"JUMP",85:"SWITCH",88:"DEFAULT",89:"ELSE",90:"TRY",91:"CATCH",92:"FINALLY",93:"CLASS",96:"EXTENDS",97:"DECL",99:":",102:"FOR",103:"IN",104:"OF",105:"IMPLEMENTS"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,2],[3,5],[3,2],[3,6],[3,4],[3,5],[3,7],[3,3],[3,4],[3,4],[3,3],[3,4],[3,4],[3,3],[3,7],[3,3],[3,7],[3,3],[3,3],[3,5],[3,6],[3,6],[3,5],[3,7],[3,6],[3,8],[3,4],[3,6],[3,9],[3,8],[3,7],[3,6],[3,6],[3,5],[3,3],[3,3],[5,1],[5,1],[8,2],[8,2],[8,2],[6,4],[6,4],[6,5],[6,5],[10,0],[10,1],[10,3],[10,4],[10,6],[45,1],[45,2],[45,1],[11,0],[11,1],[50,0],[50,1],[50,3],[50,2],[51,1],[51,2],[51,6],[51,1],[51,1],[51,2],[15,3],[55,2],[17,3],[17,3],[17,5],[17,1],[17,3],[17,3],[17,6],[17,3],[17,6],[17,2],[17,2],[17,3],[17,2],[17,3],[17,3],[17,3],[17,4],[17,4],[17,4],[17,2],[17,2],[17,2],[17,3],[17,3],[17,3],[17,6],[17,5],[17,1],[17,2],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,3],[17,2],[17,6],[17,6],[17,6],[17,7],[17,7],[17,4],[17,3],[17,4],[17,6],[17,2],[17,5],[17,1],[17,1],[17,2],[17,3],[17,5],[17,5],[17,2],[17,4],[17,4],[17,2],[17,2],[17,4],[17,6],[17,5],[17,7],[17,4],[17,5],[17,4],[17,3],[17,2],[17,2],[17,5],[86,1],[86,3],[98,2],[98,2],[100,2],[100,5],[100,1],[100,2],[100,1],[43,0],[43,1],[43,3],[43,4],[43,4],[42,3],[101,1],[101,1],[101,3],[40,0],[40,2],[40,5],[39,4],[39,6],[39,6],[39,8],[39,2],[39,4],[39,4],[39,6],[39,4],[39,6],[39,6],[39,8],[39,6],[39,5],[39,8],[39,7],[39,8],[39,7],[39,10],[39,9],[39,10],[39,9],[39,2],[39,4],[39,4],[39,6],[18,1],[18,2],[18,3],[18,3],[87,3],[87,4],[94,2],[94,0],[95,2],[95,0],[106,1]],performAction:function St(e,t,n,i,r,s,o){/* this == yyval */
|
|
var a=s.length-1;switch(r){case 1:this.$=i.L(o[a],o[a],i.Chain(i.L(o[a],o[a],i.Var(s[a]))));break;case 2:case 3:this.$=i.L(o[a],o[a],i.Chain(s[a]));break;case 4:this.$=i.L(o[a],o[a],i.Chain(i.L(o[a],o[a],i.Literal(s[a]))));break;case 5:this.$=i.L(o[a-1],o[a],s[a-1].add(s[a]));break;case 6:this.$=i.L(o[a-4],o[a],s[a-4].add(i.L(o[a-3],o[a],i.Call(s[a-2]))));break;case 7:this.$=i.L(o[a-1],o[a],i.Chain(i.L(o[a-1],o[a],i.Existence(s[a-1].unwrap()))));break;case 8:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-5],o[a-1],i.Call["let"](s[a-3],s[a]))));break;case 9:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-3],o[a],s[a-1][0].makeComprehension(s[a-2],s[a-1].slice(1)))));break;case 10:this.$=i.L(o[a-4],o[a],i.Chain(i.L(o[a-4],o[a],s[a-2][0].makeComprehension(s[a-3],s[a-2].slice(1)))));break;case 11:this.$=i.L(o[a-6],o[a],i.Chain(i.L(o[a-6],o[a],s[a-1][0].addObjComp().makeComprehension(i.L(o[a-4],o[a-4],i.Arr(s[a-4])),s[a-1].slice(1)))));break;case 12:case 18:case 20:this.$=i.L(o[a-2],o[a],i.Chain(i.L(o[a-1],o[a-1],i.Binary(s[a-1]))));break;case 13:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-2],o[a-2],i.Binary(s[a-2],void 8,s[a-1]))));break;case 14:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-1],o[a-1],i.Binary(s[a-1],s[a-2]))));break;case 15:this.$=i.L(o[a-2],o[a],i.Chain(i.L(o[a-1],o[a-1],"!"===s[a-1].charAt(0)?i.Binary(s[a-1].slice(1)).invertIt():i.Binary(s[a-1]))));break;case 16:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-2],o[a-2],"!"===s[a-2].charAt(0)?i.Binary(s[a-2].slice(1),void 8,s[a-1]).invertIt():i.Binary(s[a-2],void 8,s[a-1]))));break;case 17:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-1],o[a-1],"!"===s[a-1].charAt(0)?i.Binary(s[a-1].slice(1),s[a-2]).invertIt():i.Binary(s[a-1],s[a-2]))));break;case 19:this.$=i.L(o[a-6],o[a],i.Chain(i.L(o[a-5],o[a-5],i.Binary(s[a-5],void 8,s[a-3]))));break;case 21:this.$=i.L(o[a-6],o[a],i.Chain(i.L(o[a-1],o[a-1],i.Binary(s[a-1],s[a-4]))));break;case 22:case 23:this.$=i.L(o[a-2],o[a],i.Chain(i.L(o[a-1],o[a-1],i.Unary(s[a-1]))));break;case 24:this.$=i.L(o[a-4],o[a],i.Chain(s[a-2]));break;case 25:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-4],o[a-1],s[a-2].add(i.L(o[a-4],o[a-4],i.Call([s[a-4]]))))));break;case 26:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-3],o[a-3],i.Chain(i.Var("flip$"))).add(i.L(o[a-3],o[a-3],i.Call([s[a-3]])))).flipIt().add(i.L(o[a-1],o[a-1],i.Call([s[a-1]]))));break;case 27:this.$=i.L(o[a-4],o[a],i.Chain(i.L(o[a-3],o[a-1],new i.For({from:s[a-3],op:s[a-2],to:s[a-1],inComprehension:true}))));break;case 28:this.$=i.L(o[a-6],o[a],i.Chain(i.L(o[a-5],o[a-1],new i.For({from:s[a-5],op:s[a-4],to:s[a-3],step:s[a-1],inComprehension:true}))));break;case 29:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-4],o[a-1],new i.For({from:s[a-3],op:s[a-2],to:s[a-1],inComprehension:true}))));break;case 30:this.$=i.L(o[a-7],o[a],i.Chain(i.L(o[a-6],o[a-1],new i.For({from:s[a-5],op:s[a-4],to:s[a-3],step:s[a-1],inComprehension:true}))));break;case 31:this.$=i.L(o[a-3],o[a],i.Chain(i.L(o[a-2],o[a-1],new i.For({from:i.Chain(i.Literal(0)),op:s[a-2],to:s[a-1],inComprehension:true}))));break;case 32:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-4],o[a-1],new i.For({from:i.Chain(i.Literal(0)),op:s[a-4],to:s[a-3],step:s[a-1],inComprehension:true}))));break;case 33:this.$=i.L(o[a-8],o[a],i.Chain(i.L(o[a-8],o[a],new i.StepSlice({op:s[a-4],target:s[a-8],from:s[a-5],to:s[a-3],step:s[a-1]}))));break;case 34:this.$=i.L(o[a-7],o[a],i.Chain(i.L(o[a-7],o[a],new i.StepSlice({op:s[a-4],target:s[a-7],from:i.Literal(0),to:s[a-3],step:s[a-1]}))));break;case 35:this.$=i.L(o[a-6],o[a],i.Chain(i.L(o[a-6],o[a],i.Slice({type:s[a-2],target:s[a-6],from:s[a-3],to:s[a-1]}))));break;case 36:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-5],o[a],i.Slice({type:s[a-1],target:s[a-5],from:s[a-2]}))));break;case 37:this.$=i.L(o[a-5],o[a],i.Chain(i.L(o[a-5],o[a],i.Slice({type:s[a-2],target:s[a-5],to:s[a-1]}))));break;case 38:this.$=i.L(o[a-4],o[a],i.Chain(i.L(o[a-4],o[a],i.Slice({type:s[a-1],target:s[a-4]}))));break;case 39:this.$=i.L(o[a-2],o[a],i.Chain(i.L(o[a-2],o[a-1],i.Cascade(s[a-1],s[a],"with"))));break;case 40:this.$=i.L(o[a-2],o[a],i.Chain(s[a-2].addBody(s[a-1]).addElse(s[a])));break;case 41:this.$=i.L(o[a],o[a],i.Literal(s[a]));break;case 42:case 55:case 58:case 59:case 63:case 64:case 162:case 163:break;case 43:this.$=i.L(o[a-1],o[a],i.Index(i.L(o[a],o[a],i.Key(s[a])),s[a-1],true));break;case 44:case 45:this.$=i.L(o[a-1],o[a],i.Index(s[a],s[a-1],true));break;case 46:this.$=i.L(o[a-3],o[a],i.Arr(s[a-2]));break;case 47:this.$=i.L(o[a-3],o[a],i.Obj(s[a-2]));break;case 48:this.$=i.L(o[a-4],o[a],i.Arr(s[a-3]).named(s[a]));break;case 49:this.$=i.L(o[a-4],o[a],i.Obj(s[a-3]).named(s[a]));break;case 50:case 156:this.$=i.L(o[a],o[a],[]);break;case 51:case 147:case 157:case 194:this.$=i.L(o[a],o[a],[s[a]]);break;case 52:case 148:case 158:case 196:case 197:this.$=i.L(o[a-2],o[a],s[a-2].concat(s[a]));break;case 53:case 159:this.$=i.L(o[a-3],o[a],s[a-3].concat(s[a]));break;case 54:this.$=i.L(o[a-5],o[a-2],s[a-5].concat(s[a-2]));break;case 56:this.$=i.L(o[a-1],o[a],i.Splat(s[a]));break;case 57:this.$=i.L(o[a],o[a],i.Splat(i.L(o[a],o[a],i.Arr()),true));break;case 60:this.$=i.L(o[a],o[a],i.Block());break;case 61:this.$=i.L(o[a],o[a],i.Block(s[a]));break;case 62:case 164:this.$=i.L(o[a-2],o[a],s[a-2].add(s[a]));break;case 65:this.$=i.L(o[a-1],o[a],i.Cascade(s[a-1],s[a],"cascade"));break;case 66:this.$=i.L(o[a-5],o[a],i.Call.back(s[a-4],s[a],/~/.test(s[a-1]),/--|~~/.test(s[a-1]),/!/.test(s[a-1]),/\*/.test(s[a-1])));break;case 67:case 155:this.$=i.L(o[a],o[a],i.JS(s[a],true,true));break;case 68:this.$=i.L(o[a],o[a],i.Throw(i.L(o[a],o[a],i.JS("Error('unimplemented')"))));break;case 69:this.$=i.L(o[a-1],o[a],i.Require(s[a].unwrap()));break;case 70:this.$=i.L(o[a-2],o[a],s[a-1]);break;case 71:this.$=i.L(o[a-1],o[a],i.Splat(s[a].unwrap()));break;case 72:this.$=i.L(o[a-2],o[a],i.Import(i.L(o[a-2],o[a-1],i.Unary("^^",s[a-2],{prec:"yy.UNARY"})),s[a],false));break;case 73:this.$=i.L(o[a-2],o[a],i.Import(i.L(o[a-2],o[a-1],i.Unary("^^",s[a-2],{prec:"yy.UNARY"})),s[a].unwrap(),false));break;case 74:this.$=i.L(o[a-4],o[a],s[a-2].add(i.L(o[a-4],o[a],i.Call([s[a-4],s[a]]))));break;case 75:this.$=i.L(o[a],o[a],s[a].unwrap());break;case 76:this.$=i.L(o[a-2],o[a],i.Assign(s[a-2].unwrap(),s[a],i.L(o[a-1],o[a-1],i.Box(s[a-1]))));break;case 77:this.$=i.L(o[a-2],o[a],i.Assign(s[a-2],s[a],i.L(o[a-1],o[a-1],i.Box(s[a-1]))));break;case 78:this.$=i.L(o[a-5],o[a],i.Assign(s[a-5].unwrap(),i.Arr.maybe(s[a-2]),i.L(o[a-4],o[a-4],i.Box(s[a-4]))));break;case 79:this.$=i.L(o[a-2],o[a],i.Import(s[a-2],s[a],s[a-1]==="<<<<"));break;case 80:this.$=i.L(o[a-5],o[a],i.Import(s[a-5],i.Arr.maybe(s[a-2]),s[a-4]==="<<<<"));break;case 81:this.$=i.L(o[a-1],o[a],i.Unary(s[a-1],s[a].unwrap()));break;case 82:this.$=i.L(o[a-1],o[a],i.Unary(s[a],s[a-1].unwrap(),true));break;case 83:this.$=i.L(o[a-2],o[a],i.Unary(s[a-2],i.Splat(s[a].unwrap())));break;case 84:this.$=i.L(o[a-1],o[a],i.Unary(s[a],s[a-1],true));break;case 85:case 86:case 87:this.$=i.L(o[a-2],o[a],i.Assign(s[a].unwrap(),[s[a-2]],i.L(o[a-1],o[a-1],i.Box(s[a-1]))));break;case 88:case 89:case 90:this.$=i.L(o[a-3],o[a],i.Assign(i.Splat(s[a].unwrap()),[s[a-3]],i.L(o[a-2],o[a-2],i.Box(s[a-2]))));break;case 91:case 92:case 93:this.$=i.L(o[a-1],o[a],i.Unary(s[a-1],s[a]));break;case 94:case 95:case 96:this.$=i.L(o[a-2],o[a],i.Unary(s[a-2],i.Splat(s[a])));break;case 97:this.$=i.L(o[a-5],o[a],i.Unary(s[a-5],i.Splat(i.Arr(s[a-2]))));break;case 98:this.$=i.L(o[a-4],o[a],i.Unary(s[a-4],i.Arr.maybe(s[a-2])));break;case 99:this.$=i.L(o[a],o[a],i.Yield(s[a]));break;case 100:this.$=i.L(o[a-1],o[a],i.Yield(s[a-1],s[a]));break;case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:this.$=i.L(o[a-1],o[a-1],i.Binary(s[a-1],s[a-2],s[a]));break;case 110:this.$=i.L(o[a-2],o[a],"!"===s[a-1].charAt(0)?i.Binary(s[a-1].slice(1),s[a-2],s[a]).invert():i.Binary(s[a-1],s[a-2],s[a]));break;case 111:this.$=i.L(o[a-2],o[a],i.Block(s[a-2]).pipe(s[a],s[a-1]));break;case 112:this.$=i.L(o[a-2],o[a],i.Block(s[a-2]).pipe([s[a]],s[a-1]));break;case 113:this.$=i.L(o[a-1],o[a],i.Existence(s[a-1].unwrap(),true));break;case 114:this.$=i.L(o[a-5],o[a],i.Fun(s[a-4],s[a],/~/.test(s[a-1]),/--|~~/.test(s[a-1]),/!/.test(s[a-1]),/\*/.test(s[a-1]),/>>/.test(s[a-1])));break;case 115:this.$=i.L(o[a-5],o[a],i.Fun(s[a-3],s[a]).named(s[a-5]));break;case 116:this.$=i.L(o[a-5],o[a],i.Fun(s[a-3],s[a],false,false,false,true,false).named(s[a-5]));break;case 117:this.$=i.L(o[a-6],o[a],i.Fun(s[a-3],s[a],false,false,false,false,true).named(s[a-5]));break;case 118:this.$=i.L(o[a-6],o[a],i.Fun(s[a-3],s[a],false,false,false,true,true).named(s[a-5]));break;case 119:this.$=i.L(o[a-3],o[a-2],i.If(s[a-2],s[a-1],s[a-3]==="unless")).addElse(s[a]);break;case 120:this.$=i.L(o[a-1],o[a],i.If(s[a],s[a-2],s[a-1]==="unless"));break;case 121:this.$=i.L(o[a-3],o[a],new i.While(s[a],s[a-1]==="until",true).addBody(s[a-2]));break;case 122:this.$=i.L(o[a-5],o[a],new i.While(s[a-2],s[a-3]==="until",true).addGuard(s[a]).addBody(s[a-4]));break;case 123:this.$=i.L(o[a-1],o[a],i.Jump[s[a-1]](s[a]));break;case 124:this.$=i.L(o[a-4],o[a],i.Jump[s[a-4]](i.Arr.maybe(s[a-2])));break;case 125:this.$=i.L(o[a],o[a],i.Jump[s[a]]());break;case 126:this.$=i.L(o[a],o[a],new i.Jump(s[a]));break;case 127:this.$=i.L(o[a-1],o[a],new i.Jump(s[a-1],s[a]));break;case 128:this.$=i.L(o[a-2],o[a],new i.Switch(s[a-2],s[a-1],s[a]));break;case 129:case 130:this.$=i.L(o[a-4],o[a],new i.Switch(s[a-4],s[a-3],s[a-2],s[a]));break;case 131:this.$=i.L(o[a-1],o[a],new i.Switch(s[a-1],null,s[a]));break;case 132:case 133:this.$=i.L(o[a-3],o[a],new i.Switch(s[a-3],null,s[a-2],s[a]));break;case 134:this.$=i.L(o[a-1],o[a],new i.Switch(s[a-1],null,[],s[a]));break;case 135:this.$=i.L(o[a-1],o[a],new i.Try(s[a]));break;case 136:this.$=i.L(o[a-3],o[a],new i.Try(s[a-2],(void 8),i.L(o[a-1],o[a-1],s[a])));break;case 137:this.$=i.L(o[a-5],o[a],new i.Try(s[a-4],(void 8),i.L(o[a-3],o[a-3],s[a-2]),i.L(o[a-1],o[a-1],s[a])));break;case 138:this.$=i.L(o[a-4],o[a],new i.Try(s[a-3],s[a-1],i.L(o[a-2],o[a-1],s[a])));break;case 139:this.$=i.L(o[a-6],o[a],new i.Try(s[a-5],s[a-3],i.L(o[a-4],o[a-3],s[a-2]),i.L(o[a-1],o[a-1],s[a])));break;case 140:this.$=i.L(o[a-3],o[a],new i.Try(s[a-2],(void 8),(void 8),i.L(o[a-1],o[a-1],s[a])));break;case 141:this.$=i.L(o[a-4],o[a],new i.Class({title:s[a-3].unwrap(),sup:s[a-2],mixins:s[a-1],body:s[a]}));break;case 142:this.$=i.L(o[a-3],o[a],new i.Class({sup:s[a-2],mixins:s[a-1],body:s[a]}));break;case 143:this.$=i.L(o[a-2],o[a],i.Util.Extends(s[a-2].unwrap(),s[a]));break;case 144:case 145:this.$=i.L(o[a-1],o[a],new i.Label(s[a-1],s[a]));break;case 146:this.$=i.L(o[a-4],o[a],i.Decl(s[a-4],s[a-2],n+1));break;case 149:this.$=i.L(o[a-1],o[a],i.Key(s[a-1]));break;case 150:this.$=i.L(o[a-1],o[a],s[a-1]);break;case 151:this.$=i.L(o[a-1],o[a],i.Prop(s[a-1],s[a]));break;case 152:this.$=i.L(o[a-4],o[a],i.Prop(s[a-4],i.Arr.maybe(s[a-2])));break;case 153:this.$=i.L(o[a],o[a],i.Prop(null,s[a]));break;case 154:this.$=i.L(o[a-1],o[a],i.Prop(i.Splat(),s[a]));break;case 160:this.$=i.L(o[a-3],o[a],s[a-2]);break;case 161:this.$=i.L(o[a-2],o[a],i.Parens(s[a-1].chomp().unwrap(),false,s[a-2]==='"',i.L(o[a-2],o[a-2],{}),i.L(o[a],o[a],{})));break;case 165:case 201:case 203:this.$=i.L(o[a],o[a],null);break;case 166:case 200:case 202:this.$=i.L(o[a-1],o[a],s[a]);break;case 167:this.$=i.L(o[a-4],o[a],i.If(s[a-2],s[a-1],s[a-3]==="unless").addElse(s[a]));break;case 168:this.$=i.L(o[a-3],o[a],new i.For({kind:s[a-3],item:s[a-2].unwrap(),index:s[a-1],source:s[a]}));break;case 169:this.$=i.L(o[a-5],o[a],new i.For({kind:s[a-5],item:s[a-4].unwrap(),index:s[a-3],source:s[a-2],guard:s[a]}));break;case 170:this.$=i.L(o[a-5],o[a],new i.For({kind:s[a-5],item:s[a-4].unwrap(),index:s[a-3],source:s[a-2],step:s[a]}));break;case 171:this.$=i.L(o[a-7],o[a],new i.For({kind:s[a-7],item:s[a-6].unwrap(),index:s[a-5],source:s[a-4],step:s[a-2],guard:s[a]}));break;case 172:this.$=i.L(o[a-1],o[a],new i.For({kind:s[a-1],source:s[a],ref:true}));break;case 173:this.$=i.L(o[a-3],o[a],new i.For({kind:s[a-3],source:s[a-2],ref:true,guard:s[a]}));break;case 174:this.$=i.L(o[a-3],o[a],new i.For({kind:s[a-3],source:s[a-2],ref:true,step:s[a]}));break;case 175:this.$=i.L(o[a-5],o[a],new i.For({kind:s[a-5],source:s[a-4],ref:true,step:s[a-2],guard:s[a]}));break;case 176:this.$=i.L(o[a-3],o[a],new i.For({object:true,kind:s[a-3],index:s[a-2],source:s[a]}));break;case 177:this.$=i.L(o[a-5],o[a],new i.For({object:true,kind:s[a-5],index:s[a-4],source:s[a-2],guard:s[a]}));break;case 178:this.$=i.L(o[a-5],o[a],new i.For({object:true,kind:s[a-5],index:s[a-4],item:s[a-2].unwrap(),source:s[a]}));break;case 179:this.$=i.L(o[a-7],o[a],new i.For({object:true,kind:s[a-7],index:s[a-6],item:s[a-4].unwrap(),source:s[a-2],guard:s[a]}));break;case 180:this.$=i.L(o[a-5],o[a],new i.For({kind:s[a-5],index:s[a-4],from:s[a-2],op:s[a-1],to:s[a]}));break;case 181:this.$=i.L(o[a-4],o[a],new i.For({kind:s[a-4],from:s[a-2],op:s[a-1],to:s[a],ref:true}));break;case 182:this.$=i.L(o[a-7],o[a],new i.For({kind:s[a-7],index:s[a-6],from:s[a-4],op:s[a-3],to:s[a-2],guard:s[a]}));break;case 183:this.$=i.L(o[a-6],o[a],new i.For({kind:s[a-6],from:s[a-4],op:s[a-3],to:s[a-2],guard:s[a],ref:true}));break;case 184:this.$=i.L(o[a-7],o[a],new i.For({kind:s[a-7],index:s[a-6],from:s[a-4],op:s[a-3],to:s[a-2],step:s[a]}));break;case 185:this.$=i.L(o[a-6],o[a],new i.For({kind:s[a-6],from:s[a-4],op:s[a-3],to:s[a-2],step:s[a],ref:true}));break;case 186:this.$=i.L(o[a-9],o[a],new i.For({kind:s[a-9],index:s[a-8],from:s[a-6],op:s[a-5],to:s[a-4],step:s[a-2],guard:s[a]}));break;case 187:this.$=i.L(o[a-8],o[a],new i.For({kind:s[a-8],from:s[a-6],op:s[a-5],to:s[a-4],step:s[a-2],guard:s[a],ref:true}));break;case 188:this.$=i.L(o[a-9],o[a],new i.For({kind:s[a-9],index:s[a-8],from:s[a-6],op:s[a-5],to:s[a-4],guard:s[a-2],step:s[a]}));break;case 189:this.$=i.L(o[a-8],o[a],new i.For({kind:s[a-8],from:s[a-6],op:s[a-5],to:s[a-4],guard:s[a-2],step:s[a],ref:true}));break;case 190:this.$=i.L(o[a-1],o[a],new i.While(s[a],s[a-1]==="until"));break;case 191:this.$=i.L(o[a-3],o[a],new i.While(s[a-2],s[a-3]==="until").addGuard(s[a]));break;case 192:this.$=i.L(o[a-3],o[a],new i.While(s[a-2],s[a-3]==="until",s[a]));break;case 193:this.$=i.L(o[a-5],o[a],new i.While(s[a-4],s[a-5]==="until",s[a-2]).addGuard(s[a]));break;case 195:this.$=i.L(o[a-1],o[a],s[a-1].concat(s[a]));break;case 198:this.$=i.L(o[a-2],o[a],[i.L(o[a-2],o[a-1],new i.Case(s[a-1],s[a]))]);break;case 199:this.$=i.L(o[a-3],o[a],s[a-3].concat(i.L(o[a-2],o[a-1],new i.Case(s[a-1],s[a]))));break;case 204:return this.$;break}},table:[e([1,47],t,{106:1,101:2,50:3,15:4,51:5,17:7,3:12,55:13,5:32,6:33,39:40,42:42,4:n,7:i,14:r,16:s,21:o,23:a,29:u,31:l,32:c,38:h,41:f,44:p,48:d,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{1:[3]},{1:[2,204]},e(N,[2,162],{47:M}),e(N,[2,163],{47:[1,46]}),e(P,[2,61]),e(B,t,{51:5,17:7,3:12,55:13,5:32,6:33,39:40,42:42,50:47,4:n,7:i,14:r,16:s,21:o,23:a,29:u,31:l,32:c,38:h,41:f,44:p,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(P,$,{15:48,33:U,48:d,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(Q,ee,{3:12,55:13,5:32,6:33,39:40,42:42,10:64,45:65,17:66,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(P,[2,67]),e(P,[2,68],{5:32,6:33,39:40,42:42,3:69,4:n,7:i,14:r,16:s,21:o,23:a,38:h,41:f,81:S,102:O}),{3:70,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(ie,re,{8:76,9:se,13:oe,32:ae,37:ue,56:le,57:ce,73:he,96:fe}),{32:[1,81],57:[1,80]},{3:82,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,49:pe,81:S,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:85,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:de,49:ge,55:13,57:me,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:89,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:[1,90],55:13,57:[1,88],59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:92,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:[1,93],55:13,57:[1,91],59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e([1,12,19,20,22,24,25,26,30,33,34,35,46,47,48,58,62,63,64,65,66,67,68,69,70,71,72,79,82,105],[2,99],{3:12,55:13,5:32,6:33,39:40,42:42,17:94,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ye,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{9:[1,96]},{9:[1,97]},{75:[1,98],76:[1,99]},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:100,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{15:101,48:d},e([1,12,19,20,22,24,25,26,30,33,34,35,46,47,58,62,63,64,65,66,67,68,69,70,71,72,79,82,105],[2,125],{3:12,55:13,5:32,6:33,39:40,42:42,17:102,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,48:[1,103],49:ye,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(ie,[2,126],{4:[1,104]}),{3:12,4:n,5:32,6:33,7:i,14:r,15:107,16:s,17:108,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:d,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,82:ve,83:R,84:N,85:_,86:105,87:106,90:T,93:I,97:x,102:O},{15:110,48:d},e(be,we,{5:32,6:33,39:40,42:42,3:111,94:112,4:n,7:i,14:r,16:s,21:o,23:a,38:h,41:f,81:S,96:ke,102:O}),{3:12,4:n,5:32,6:33,7:i,14:r,15:115,16:s,17:114,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:d,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{48:[1,116]},e([1,9,12,13,19,20,22,24,25,26,30,32,33,34,35,37,46,47,48,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,81,82,96,102,104,105],Le),e(Ae,Ee),e(Ae,[2,3]),e(Ae,[2,4]),{9:[1,117]},e(Ce,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:118,10:121,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,34:Se,36:Re,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ne,_e,{3:12,55:13,6:33,39:40,42:42,43:123,100:124,98:126,17:127,5:131,4:Te,7:i,14:r,16:[1,122],21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,48:Ie,49:xe,53:Oe,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Me,t,{50:3,15:4,51:5,3:12,55:13,5:32,6:33,39:40,42:42,17:133,101:141,4:n,7:i,14:r,16:s,21:o,23:a,24:[1,132],26:[1,134],27:[1,135],28:[1,136],29:[1,137],31:[1,138],32:[1,139],33:[1,140],38:h,41:f,44:p,48:d,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:142,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{15:143,48:d},e(Pe,[2,41]),e(Pe,[2,42]),{3:144,4:[1,146],5:32,6:33,7:i,14:r,16:s,17:145,21:o,23:a,29:te,31:l,32:c,36:[1,147],38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:148,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(P,[2,63],{17:7,3:12,55:13,5:32,6:33,39:40,42:42,51:149,4:n,7:i,14:r,16:s,21:o,23:a,29:u,31:l,32:c,38:h,41:f,44:p,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e([1,25,47],t,{51:5,17:7,3:12,55:13,5:32,6:33,39:40,42:42,50:150,4:n,7:i,14:r,16:s,21:o,23:a,29:u,31:l,32:c,38:h,41:f,44:p,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{20:[1,151],47:M},e(P,[2,65]),{3:152,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:153,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:[1,154],49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:155,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:156,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:157,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:158,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:159,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:160,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:161,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:162,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:163,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:164,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:165,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:166,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:167,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Be,$e,{11:168,46:Ue}),e(De,[2,51]),e(De,je,{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(De,[2,57],{55:13,5:32,6:33,39:40,42:42,17:170,3:171,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ye,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Q,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:172,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e([32,57],Fe,{8:76,9:se,13:oe,37:ue}),e(P,[2,69],{8:76,9:se,13:oe,37:ue}),{3:12,4:n,5:32,6:33,7:i,14:r,15:174,16:s,17:173,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:d,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:175,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:[1,176],49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ie,[2,82]),e(ie,[2,113]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:177,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,5]),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:178,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ae,[2,7]),{4:[1,180],5:181,6:182,16:[1,179],21:[1,183],23:[1,184],41:f,42:42},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:185,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ie,[2,84]),e(ie,[2,81],{8:76,9:se,13:oe,37:ue}),{3:186,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},{3:187,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,49:[1,188],81:S,102:O},e(Ye,[2,91],{33:U,65:z,69:q}),{3:171,4:n,5:32,6:33,7:i,14:r,16:s,17:189,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:[1,190],49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:191,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{3:192,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,49:[1,193],81:S,102:O},e(Ye,[2,92],{33:U,65:z,69:q}),{3:171,4:n,5:32,6:33,7:i,14:r,16:s,17:194,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:195,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,49:[1,196],81:S,102:O},e(Ye,[2,93],{33:U,65:z,69:q}),{3:171,4:n,5:32,6:33,7:i,14:r,16:s,17:197,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ge,[2,100],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),{3:69,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:198,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:199,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{9:[1,200]},{9:[1,201]},{15:202,33:U,48:d,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{81:[1,203]},e(Ge,[2,123],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:204,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(ie,[2,127]),{46:He,82:ve,87:205},e(Je,[2,131],{82:qe,88:[1,207],89:[1,208]}),e(ie,[2,134]),e(Ke,[2,147],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:108,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,86:210,90:T,93:I,97:x,102:O},e(ie,[2,135],{91:[1,211],92:[1,212]}),e(be,we,{8:76,94:213,9:se,13:oe,37:ue,96:ke}),{48:Ve,95:214,105:Xe},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:216,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ze,[2,144],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K}),e(ie,[2,145]),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:217,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:218,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ce,je,{18:219,39:221,33:U,34:[1,220],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,81:S,102:O}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:222,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:223,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Qe,$e,{11:224,46:Ue}),e(Ce,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:118,10:225,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,34:Se,36:Re,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e([22,47],$e,{11:226,46:et}),e(tt,[2,157]),e([20,46,47],_e,{3:12,55:13,6:33,39:40,42:42,100:124,98:126,17:127,5:131,43:228,4:Te,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,48:Ie,49:xe,53:Oe,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:229,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:[1,230],49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(tt,[2,153],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),{3:171,4:n,5:32,6:33,7:i,14:r,16:s,17:231,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(tt,[2,155]),e(nt,Le,{99:[1,232]}),e(nt,Ee,{99:[1,233]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:235,21:o,23:a,25:[1,234],29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Me,$,{15:48,24:[1,236],26:[1,237],33:[1,238],48:d,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:240,21:o,23:a,25:[1,239],29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{9:[1,242],25:[1,241]},{25:[1,243]},e(Q,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:244,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:85,21:o,23:a,25:[1,245],29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,48:de,49:ge,55:13,57:me,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:82,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,25:[1,246],38:h,39:40,41:f,42:42,49:pe,81:S,102:O},{3:247,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},{25:[1,248]},{15:249,33:U,48:d,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,it,{40:250,89:rt}),e([19,20,22,33,35,47,48,58,59,62,63,64,65,66,67,68,69,70,71,72,79,81,82,102],re,{8:76,9:se,13:oe,32:ae,37:ue,56:le,57:ce,73:he,96:fe,103:[1,252]}),e(st,[2,172],{33:U,35:[1,254],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,253]}),e([9,13,19,20,22,32,33,35,37,47,48,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,81,82,96,102,103],Le,{36:[1,257],46:[1,256],104:[1,255]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:258,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,190],{33:U,46:[1,260],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,259]}),e(P,[2,62]),e(N,[2,164],{47:M}),e([1,9,12,13,19,20,22,24,25,26,30,32,33,34,35,37,46,47,48,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,81,82,88,89,91,92,96,102,103,104,105],[2,70]),{8:76,9:se,13:oe,33:[1,261],37:ue},e(ot,[2,79],{33:U,59:j,64:Y,65:z,69:q}),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:262,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e([1,12,19,20,22,24,25,26,30,34,35,46,47,48,58,59,62,63,66,67,68,70,71,72,79,81,82,102,105],[2,101],{33:U,64:Y,65:z,69:q}),e(at,[2,102],{33:U,58:D,59:j,62:F,64:Y,65:z,66:G,68:J,69:q,70:K}),e(Ze,[2,103],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K}),e(Ye,[2,104],{33:U,65:z,69:q}),e(Ye,[2,105],{33:U,
|
|
65:z,69:q}),e(ot,[2,106],{33:U,59:j,64:Y,65:z,69:q}),e(at,[2,107],{33:U,58:D,59:j,62:F,64:Y,65:z,66:G,68:J,69:q,70:K}),e(ut,[2,108],{33:U,58:D,59:j,64:Y,65:z,66:G,68:J,69:q}),e([1,12,19,20,22,24,25,26,30,34,35,46,47,48,58,59,62,63,64,65,66,67,68,70,71,72,79,81,82,102,105],[2,109],{33:U,69:q}),e(ut,[2,110],{33:U,58:D,59:j,64:Y,65:z,66:G,68:J,69:q}),e(Ze,[2,111],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K}),e(Ge,[2,112],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),e(Ge,[2,120],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),{30:[1,263],47:lt,48:ct},e([12,19,20,30,47,48],ht,{3:12,55:13,5:32,6:33,39:40,42:42,17:66,45:266,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(De,[2,56],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(ie,re,{8:76,9:se,13:oe,32:Fe,57:Fe,37:ue,56:le,73:he,96:fe}),e(Be,$e,{11:267,46:Ue}),e(ot,[2,72],{33:U,59:j,64:Y,65:z,69:q}),e(ie,[2,73]),e(Ge,[2,76],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:268,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ze,[2,143],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K}),e(ft,$e,{11:269,46:Ue}),e(Ce,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,10:121,17:270,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,34:[1,271],38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ae,[2,43]),e(Ae,[2,44]),e(Ae,[2,45]),e(Ne,_e,{3:12,55:13,6:33,39:40,42:42,43:123,100:124,98:126,17:127,5:131,4:Te,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,48:Ie,49:xe,53:Oe,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Me,t,{50:3,15:4,51:5,17:7,3:12,55:13,5:32,6:33,39:40,42:42,101:141,4:n,7:i,14:r,16:s,21:o,23:a,29:u,31:l,32:c,38:h,41:f,44:p,48:d,49:g,53:m,54:y,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ge,[2,77],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X}),e(ie,[2,83],{8:76,9:se,13:oe,37:ue}),e(ie,[2,85],{8:76,9:se,13:oe,37:ue}),{3:272,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(Ye,[2,94],{33:U,65:z,69:q}),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:273,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(pt,$e,{11:274,46:Ue}),e(ie,[2,86],{8:76,9:se,13:oe,37:ue}),{3:275,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(Ye,[2,95],{33:U,65:z,69:q}),e(ie,[2,87],{8:76,9:se,13:oe,37:ue}),{3:276,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(Ye,[2,96],{33:U,65:z,69:q}),e(ft,$e,{11:277,46:Ue}),e(ft,$e,{11:278,46:Ue}),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:279,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:280,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(ie,it,{40:281,89:rt}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:282,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(pt,$e,{11:283,46:Ue}),e(Je,[2,128],{82:qe,88:[1,284],89:[1,285]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:286,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{15:287,48:d},{15:288,48:d},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:108,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,86:289,90:T,93:I,97:x,102:O},{15:290,46:He,48:d},{3:12,4:n,5:32,6:33,7:i,14:r,15:291,16:s,17:66,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,45:292,48:d,49:ne,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{15:293,48:d},{48:Ve,95:294,105:Xe},{15:295,48:d},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:108,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,86:296,90:T,93:I,97:x,102:O},e(be,[2,200],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(pt,$e,{11:297,46:Ue}),e(ft,$e,{11:298,46:Ue}),{19:[1,299],20:[1,300],39:301,47:dt,48:gt,81:S,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:304,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,194]),{33:U,34:[1,305],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{19:[1,306],33:U,35:[1,307],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{19:[1,308],47:lt,48:ct},e(Qe,$e,{11:309,46:Ue}),{22:[1,310],47:mt},e([20,22,47],ht,{3:12,55:13,6:33,39:40,42:42,98:126,17:127,5:131,100:312,4:Te,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:xe,53:Oe,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(B,$e,{11:313,46:et}),e(tt,[2,151],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:314,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(tt,[2,154],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(yt,[2,149]),e(yt,[2,150]),e(Ae,[2,12]),{25:[1,315],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{25:[1,316]},{25:[1,317]},{3:318,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},e(Ae,[2,15]),{25:[1,319],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,18]),e(We,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:320,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(Ae,[2,20]),e(Be,$e,{11:321,46:Ue}),e(Ae,[2,22]),e(Ae,[2,23]),{8:76,9:se,13:oe,33:[1,322],37:ue},e(Pe,[2,161]),e(Ae,[2,39]),e(Ae,[2,40]),{15:323,48:d,78:[1,324]},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:325,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:326,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:327,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:328,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:329,4:n,5:32,6:33,7:i,14:r,16:s,21:o,23:a,38:h,39:40,41:f,42:42,81:S,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:330,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{33:U,34:[1,331],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:332,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:333,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:334,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(pt,$e,{11:335,46:Ue}),{52:vt,74:bt},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:66,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,45:338,49:ne,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ze,ee,{3:12,55:13,5:32,6:33,39:40,42:42,45:65,17:66,10:339,4:n,7:i,14:r,16:s,21:o,23:a,29:te,31:l,32:c,38:h,41:f,44:p,49:ne,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O}),e(De,[2,52]),{30:[1,340],47:lt,48:ct},e(pt,$e,{11:341,46:Ue}),{12:[1,342],47:lt,48:ct},e(Ce,je,{33:U,34:[1,343],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:344,19:[1,345],21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ie,[2,88],{8:76,9:se,13:oe,37:ue}),e(pt,$e,{11:346,46:Ue}),{20:[1,347],47:lt,48:ct},e(ie,[2,89],{8:76,9:se,13:oe,37:ue}),e(ie,[2,90],{8:76,9:se,13:oe,37:ue}),{12:[1,348],47:lt,48:ct},{12:[1,349],47:lt,48:ct},e(ft,$e,{11:350,46:Ue}),e(ft,$e,{11:351,46:Ue}),e(ie,[2,119]),e([1,12,19,20,22,24,25,26,30,34,35,46,47,48,71,72,79,81,102,105],[2,121],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,82:[1,352]}),{20:[1,353],47:lt,48:ct},{15:354,48:d},{15:355,48:d},e(Ke,[2,148],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(ie,[2,132]),e(ie,[2,133]),{15:356,46:He,48:d},e(wt,[2,198]),e(ie,[2,136],{92:[1,357]}),{15:358,48:d},e(ie,[2,140]),{15:359,48:d},e(ie,[2,142]),{46:He,48:[2,202]},{20:[1,360],47:lt,48:ct},{12:[1,361],47:lt,48:ct},e(Ae,[2,9]),{19:[1,362]},e(st,[2,195]),{39:363,81:S,102:O},{39:364,81:S,102:O},{19:[1,365],33:U,35:[1,366],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:367,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,31]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:368,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,kt,{44:Lt}),{19:[1,370],47:lt,48:ct},e(Ae,[2,47],{44:[1,371]}),{3:12,4:Te,5:131,6:33,7:i,14:r,16:s,17:127,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:xe,53:Oe,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,98:126,100:372,102:O},e(tt,[2,158]),{20:[1,373],47:mt},e(pt,$e,{11:374,46:Ue}),e(Ae,[2,13]),e(Ae,[2,14]),e(Ae,[2,17]),{8:76,9:se,13:oe,33:[1,375],37:ue},e(Ae,[2,16]),e(ft,$e,{11:376,46:Ue}),{30:[1,377],47:lt,48:ct},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:379,21:o,23:a,25:[1,378],29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,166]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:380,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,168],{33:U,35:[1,382],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,381]}),e(st,[2,173],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,174],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,383]}),e(st,[2,176],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,384]}),{8:76,9:se,13:oe,37:ue,104:[1,385]},{33:U,34:[1,386],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:387,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,191],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,192],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,388]}),e(ie,[2,74]),{20:[1,389],47:lt,48:ct},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:390,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{15:391,48:d},e(De,[2,53]),e(pt,$e,{11:392,46:Ue}),{74:bt},{20:[1,393],47:lt,48:ct},e(Ae,[2,6]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:394,19:[1,395],21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{19:[1,397],33:U,35:[1,396],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,38]),{20:[1,398],47:lt,48:ct},e(ie,[2,98]),{15:399,48:d},{15:400,48:d},{12:[1,401],47:lt,48:ct},{12:[1,402],47:lt,48:ct},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:403,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ie,[2,124]),e(ie,[2,129]),e(ie,[2,130]),e(wt,[2,199]),{15:404,48:d},e(ie,[2,138],{92:[1,405]}),e(ie,[2,141]),e(ie,[2,146]),{15:406,48:d},e(Ae,[2,10]),e(st,[2,196]),e(st,[2,197]),e(Ae,[2,27]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:407,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{19:[1,408],33:U,35:[1,409],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{19:[1,410],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,48]),e([9,13,22,32,33,37,46,47,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,79,96],kt,{39:221,18:411,44:Lt,81:S,102:O}),e(Ae,[2,49]),e(tt,[2,159]),e(tt,[2,160]),{20:[1,412],47:lt,48:ct},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:334,21:o,23:a,25:[1,413],29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{12:[1,414],47:lt,48:ct},{28:[1,415],52:vt,74:bt},e(Ae,[2,24]),{25:[1,416],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{15:417,33:U,48:d,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:418,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:419,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:420,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:421,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:422,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:423,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,181],{33:U,35:[1,425],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,424]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:426,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(ie,[2,80]),e(P,[2,66],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(ie,[2,114]),{20:[1,427],47:lt,48:ct},e(ie,[2,78]),{19:[1,429],33:U,35:[1,428],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,36]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:430,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,37]),e(ie,[2,97]),e(ie,[2,115]),e(ie,[2,116]),{15:431,48:d},{15:432,48:d},e(Ze,[2,122],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K}),e(ie,[2,137]),{15:433,48:d},e(Ae,[2,8]),{19:[1,434],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,29]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:435,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,32]),{22:[1,436],39:301,47:dt,48:gt,81:S,102:O},e(tt,[2,152]),e(Ae,[2,25]),{25:[1,437]},{25:[1,438]},e(Ae,[2,26]),e(Ae,it,{40:439,89:rt}),e(st,[2,169],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,170],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,440]}),e(st,[2,175],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,177],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,178],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,441]}),e(st,[2,180],{33:U,35:[1,443],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,442]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:444,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:445,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,193],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(De,[2,54]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:446,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,35]),{19:[1,447],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(ie,[2,117]),e(ie,[2,118]),e(ie,[2,139]),e(Ae,[2,28]),{19:[1,448],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,11]),e(Ae,[2,19]),e(Ae,[2,21]),e(Ae,[2,167]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:449,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:450,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:451,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:452,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,183],{33:U,35:[1,453],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,185],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,454]}),{19:[1,455],33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z},e(Ae,[2,34]),e(Ae,[2,30]),e(st,[2,171],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,179],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,182],{33:U,35:[1,456],58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,184],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z,82:[1,457]}),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:458,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:459,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(Ae,[2,33]),{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:460,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},{3:12,4:n,5:32,6:33,7:i,14:r,16:s,17:461,21:o,23:a,29:te,31:l,32:c,38:h,39:40,41:f,42:42,44:p,49:ye,55:13,59:v,60:b,61:w,75:k,76:L,77:A,78:E,80:C,81:S,83:R,84:N,85:_,90:T,93:I,97:x,102:O},e(st,[2,189],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,187],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,188],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z}),e(st,[2,186],{33:U,58:D,59:j,62:F,63:W,64:Y,65:z,66:G,67:H,68:J,69:q,70:K,71:V,72:X,79:Z})],defaultActions:{2:[2,204]},parseError:function Rt(e,t){if(t.recoverable){this.trace(e)}else{var n=new Error(e);n.hash=t;throw n}},parse:function Nt(e){var t=this,n=[0],i=[],r=[null],s=[],o=this.table,a="",u=0,l=0,c=0,h=2,f=1;var p=s.slice.call(arguments,1);var d=Object.create(this.lexer);var g={yy:{}};for(var m in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,m)){g.yy[m]=this.yy[m]}}d.setInput(e,g.yy);g.yy.lexer=d;g.yy.parser=this;if(typeof d.yylloc=="undefined"){d.yylloc={}}var y=d.yylloc;s.push(y);var v=d.options&&d.options.ranges;if(typeof g.yy.parseError==="function"){this.parseError=g.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function b(e){n.length=n.length-2*e;r.length=r.length-e;s.length=s.length-e}e:var w=function(){var e;e=d.lex()||f;if(typeof e!=="number"){e=t.symbols_[e]||e}return e};var k,L,A,E,C,S,R={},N,_,T,I;while(true){A=n[n.length-1];if(this.defaultActions[A]){E=this.defaultActions[A]}else{if(k===null||typeof k=="undefined"){k=w()}E=o[A]&&o[A][k]}if(typeof E==="undefined"||!E.length||!E[0]){var x="";I=[];for(N in o[A]){if(this.terminals_[N]&&N>h){I.push("'"+this.terminals_[N]+"'")}}if(d.showPosition){x="Parse error on line "+(u+1)+":\n"+d.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[k]||k)+"'"}else{x="Parse error on line "+(u+1)+": Unexpected "+(k==f?"end of input":"'"+(this.terminals_[k]||k)+"'")}this.parseError(x,{text:d.match,token:this.terminals_[k]||k,line:d.yylineno,loc:y,expected:I})}if(E[0]instanceof Array&&E.length>1){throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+k)}switch(E[0]){case 1:n.push(k);r.push(d.yytext);s.push(d.yylloc);n.push(E[1]);k=null;if(!L){l=d.yyleng;a=d.yytext;u=d.yylineno;y=d.yylloc;if(c>0){c--}}else{k=L;L=null}break;case 2:_=this.productions_[E[1]][1];R.$=r[r.length-_];R._$={first_line:s[s.length-(_||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(_||1)].first_column,last_column:s[s.length-1].last_column};if(v){R._$.range=[s[s.length-(_||1)].range[0],s[s.length-1].range[1]]}S=this.performAction.apply(R,[a,l,u,g.yy,E[1],r,s].concat(p));if(typeof S!=="undefined"){return S}if(_){n=n.slice(0,-1*_*2);r=r.slice(0,-1*_);s=s.slice(0,-1*_)}n.push(this.productions_[E[1]][0]);r.push(R.$);s.push(R._$);T=o[n[n.length-2]][n[n.length-1]];n.push(T);break;case 3:return true}}return true}};function Et(){this.yy={}}Et.prototype=At;At.Parser=Et;return new Et}();if(typeof e!=="undefined"&&typeof n!=="undefined"){n.parser=r;n.Parser=r.Parser;n.parse=function(){return r.parse.apply(r,arguments)};n.main=function s(t){if(!t[1]){console.log("Usage: "+t[0]+" FILE");i.exit(1)}var r=e("fs").readFileSync(e("path").normalize(t[1]),"utf8");return n.parser.parse(r)};if(typeof t!=="undefined"&&e.main===t){n.main(i.argv.slice(1))}}}).call(this,e("_process"))},{_process:20,fs:8,path:13}],6:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.1
|
|
var i,r,s;i=e("path");r=function(e){var t;if(t=/^['"](.*)['"]$/.exec(e.trim())){return t[1]}else{return e}};s=function(e){return i.basename(r(e)).split(".")[0].replace(/-[a-z]/gi,function(e){return e.charAt(1).toUpperCase()})};t.exports={nameFromPath:s,stripString:r}},{path:13}],7:[function(e,t,n){"use strict";n.byteLength=c;n.toByteArray=f;n.fromByteArray=g;var i=[];var r=[];var s=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var a=0,u=o.length;a<u;++a){i[a]=o[a];r[o.charCodeAt(a)]=a}
|
|
// Support decoding URL-safe base64 strings, as Node.js does.
|
|
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
|
|
r["-".charCodeAt(0)]=62;r["_".charCodeAt(0)]=63;function l(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}
|
|
// Trim off extra bytes after placeholder bytes are found
|
|
// See: https://github.com/beatgammit/base64-js/issues/42
|
|
var n=e.indexOf("=");if(n===-1)n=t;var i=n===t?0:4-n%4;return[n,i]}
|
|
// base64 is 4/3 + up to two characters of the original data
|
|
function c(e){var t=l(e);var n=t[0];var i=t[1];return(n+i)*3/4-i}function h(e,t,n){return(t+n)*3/4-n}function f(e){var t;var n=l(e);var i=n[0];var o=n[1];var a=new s(h(e,i,o));var u=0;
|
|
// if there are placeholders, only get up to the last complete 4 chars
|
|
var c=o>0?i-4:i;for(var f=0;f<c;f+=4){t=r[e.charCodeAt(f)]<<18|r[e.charCodeAt(f+1)]<<12|r[e.charCodeAt(f+2)]<<6|r[e.charCodeAt(f+3)];a[u++]=t>>16&255;a[u++]=t>>8&255;a[u++]=t&255}if(o===2){t=r[e.charCodeAt(f)]<<2|r[e.charCodeAt(f+1)]>>4;a[u++]=t&255}if(o===1){t=r[e.charCodeAt(f)]<<10|r[e.charCodeAt(f+1)]<<4|r[e.charCodeAt(f+2)]>>2;a[u++]=t>>8&255;a[u++]=t&255}return a}function p(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[e&63]}function d(e,t,n){var i;var r=[];for(var s=t;s<n;s+=3){i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255);r.push(p(i))}return r.join("")}function g(e){var t;var n=e.length;var r=n%3;// if we have 1 byte left, pad 2 bytes
|
|
var s=[];var o=16383;// must be multiple of 3
|
|
// go through the array every three bytes, we'll deal with trailing stuff later
|
|
for(var a=0,u=n-r;a<u;a+=o){s.push(d(e,a,a+o>u?u:a+o))}
|
|
// pad the end with zeros, but make sure to not forget the extra bytes
|
|
if(r===1){t=e[n-1];s.push(i[t>>2]+i[t<<4&63]+"==")}else if(r===2){t=(e[n-2]<<8)+e[n-1];s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")}return s.join("")}},{}],8:[function(e,t,n){},{}],9:[function(e,t,n){(function(t){/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
* @license MIT
|
|
*/
|
|
/* eslint-disable no-proto */
|
|
"use strict";var i=e("base64-js");var r=e("ieee754");var s=e("isarray");n.Buffer=l;n.SlowBuffer=b;n.INSPECT_MAX_BYTES=50;/**
|
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
* === true Use Uint8Array implementation (fastest)
|
|
* === false Use Object implementation (most compatible, even IE6)
|
|
*
|
|
* Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
|
|
* Opera 11.6+, iOS 4.2+.
|
|
*
|
|
* Due to various browser bugs, sometimes the Object implementation will be used even
|
|
* when the browser supports typed arrays.
|
|
*
|
|
* Note:
|
|
*
|
|
* - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
|
|
* See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
|
|
*
|
|
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
|
|
*
|
|
* - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
|
|
* incorrect length in some situations.
|
|
|
|
* We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
|
|
* get the Object implementation, which is slower but behaves correctly.
|
|
*/
|
|
l.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==undefined?t.TYPED_ARRAY_SUPPORT:o();/*
|
|
* Export kMaxLength after typed array support is determined.
|
|
*/
|
|
n.kMaxLength=a();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};// typed array instances can be augmented
|
|
// chrome 9-10 lack `subarray`
|
|
return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(t){return false}}function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t){throw new RangeError("Invalid typed array length")}if(l.TYPED_ARRAY_SUPPORT){
|
|
// Return an augmented `Uint8Array` instance, for best performance
|
|
e=new Uint8Array(t);e.__proto__=l.prototype}else{
|
|
// Fallback: Return an object instance of the Buffer class
|
|
if(e===null){e=new l(t)}e.length=t}return e}/**
|
|
* The Buffer constructor returns instances of `Uint8Array` that have their
|
|
* prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
|
|
* `Uint8Array`, so the returned instances will have all the node `Buffer` methods
|
|
* and the `Uint8Array` methods. Square bracket notation works as expected -- it
|
|
* returns a single octet.
|
|
*
|
|
* The `Uint8Array` prototype remains unmodified.
|
|
*/
|
|
function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l)){return new l(e,t,n)}
|
|
// Common case.
|
|
if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return p(this,e)}return c(this,e,t,n)}l.poolSize=8192;// not used by this implementation
|
|
// TODO: Legacy, not needed anymore. Remove in next major version.
|
|
l._augment=function(e){e.__proto__=l.prototype;return e};function c(e,t,n,i){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,n,i)}if(typeof t==="string"){return d(e,t,n)}return y(e,t)}/**
|
|
* Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
|
|
* if value is a number.
|
|
* Buffer.from(str[, encoding])
|
|
* Buffer.from(array)
|
|
* Buffer.from(buffer)
|
|
* Buffer.from(arrayBuffer[, byteOffset[, length]])
|
|
**/
|
|
l.from=function(e,t,n){return c(null,e,t,n)};if(l.TYPED_ARRAY_SUPPORT){l.prototype.__proto__=Uint8Array.prototype;l.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&l[Symbol.species]===l){
|
|
// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
|
|
Object.defineProperty(l,Symbol.species,{value:null,configurable:true})}}function h(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function f(e,t,n,i){h(t);if(t<=0){return u(e,t)}if(n!==undefined){
|
|
// Only pay attention to encoding if it's a string. This
|
|
// prevents accidentally sending in a number that would
|
|
// be interpretted as a start offset.
|
|
return typeof i==="string"?u(e,t).fill(n,i):u(e,t).fill(n)}return u(e,t)}/**
|
|
* Creates a new filled Buffer instance.
|
|
* alloc(size[, fill[, encoding]])
|
|
**/
|
|
l.alloc=function(e,t,n){return f(null,e,t,n)};function p(e,t){h(t);e=u(e,t<0?0:v(t)|0);if(!l.TYPED_ARRAY_SUPPORT){for(var n=0;n<t;++n){e[n]=0}}return e}/**
|
|
* Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
|
|
* */
|
|
l.allocUnsafe=function(e){return p(null,e)};/**
|
|
* Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
|
|
*/
|
|
l.allocUnsafeSlow=function(e){return p(null,e)};function d(e,t,n){if(typeof n!=="string"||n===""){n="utf8"}if(!l.isEncoding(n)){throw new TypeError('"encoding" must be a valid string encoding')}var i=w(t,n)|0;e=u(e,i);var r=e.write(t,n);if(r!==i){
|
|
// Writing a hex string, for example, that contains invalid characters will
|
|
// cause everything after the first invalid character to be ignored. (e.g.
|
|
// 'abxxcd' will be treated as 'ab')
|
|
e=e.slice(0,r)}return e}function g(e,t){var n=t.length<0?0:v(t.length)|0;e=u(e,n);for(var i=0;i<n;i+=1){e[i]=t[i]&255}return e}function m(e,t,n,i){t.byteLength;// this throws if `array` is not a valid ArrayBuffer
|
|
if(n<0||t.byteLength<n){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<n+(i||0)){throw new RangeError("'length' is out of bounds")}if(n===undefined&&i===undefined){t=new Uint8Array(t)}else if(i===undefined){t=new Uint8Array(t,n)}else{t=new Uint8Array(t,n,i)}if(l.TYPED_ARRAY_SUPPORT){
|
|
// Return an augmented `Uint8Array` instance, for best performance
|
|
e=t;e.__proto__=l.prototype}else{
|
|
// Fallback: Return an object instance of the Buffer class
|
|
e=g(e,t)}return e}function y(e,t){if(l.isBuffer(t)){var n=v(t.length)|0;e=u(e,n);if(e.length===0){return e}t.copy(e,0,0,n);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return u(e,0)}return g(e,t)}if(t.type==="Buffer"&&s(t.data)){return g(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){
|
|
// Note: cannot use `length < kMaxLength()` here because that fails when
|
|
// length is NaN (which is otherwise coerced to zero.)
|
|
if(e>=a()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+a().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){// eslint-disable-line eqeqeq
|
|
e=0}return l.alloc(+e)}l.isBuffer=function ne(e){return!!(e!=null&&e._isBuffer)};l.compare=function ie(e,t){if(!l.isBuffer(e)||!l.isBuffer(t)){throw new TypeError("Arguments must be Buffers")}if(e===t)return 0;var n=e.length;var i=t.length;for(var r=0,s=Math.min(n,i);r<s;++r){if(e[r]!==t[r]){n=e[r];i=t[r];break}}if(n<i)return-1;if(i<n)return 1;return 0};l.isEncoding=function re(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};l.concat=function se(e,t){if(!s(e)){throw new TypeError('"list" argument must be an Array of Buffers')}if(e.length===0){return l.alloc(0)}var n;if(t===undefined){t=0;for(n=0;n<e.length;++n){t+=e[n].length}}var i=l.allocUnsafe(t);var r=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o)){throw new TypeError('"list" argument must be an Array of Buffers')}o.copy(i,r);r+=o.length}return i};function w(e,t){if(l.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var n=e.length;if(n===0)return 0;
|
|
// Use a for loop to avoid recursion
|
|
var i=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return V(e).length;// assume utf8
|
|
t=(""+t).toLowerCase();i=true}}}l.byteLength=w;function k(e,t,n){var i=false;
|
|
// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
|
|
// property of a typed array.
|
|
// This behaves neither like String nor Uint8Array in that we set start/end
|
|
// to their upper/lower bounds if the value passed is out of range.
|
|
// undefined is handled specially as per ECMA-262 6th Edition,
|
|
// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
|
|
if(t===undefined||t<0){t=0}
|
|
// Return early if start > this.length. Done here to prevent potential uint32
|
|
// coercion fail below.
|
|
if(t>this.length){return""}if(n===undefined||n>this.length){n=this.length}if(n<=0){return""}
|
|
// Force coersion to uint32. This will also coerce falsey/NaN values to 0.
|
|
n>>>=0;t>>>=0;if(n<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return $(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();i=true}}}
|
|
// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
|
|
// Buffer instances.
|
|
l.prototype._isBuffer=true;function L(e,t,n){var i=e[t];e[t]=e[n];e[n]=i}l.prototype.swap16=function oe(){var e=this.length;if(e%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var t=0;t<e;t+=2){L(this,t,t+1)}return this};l.prototype.swap32=function ae(){var e=this.length;if(e%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var t=0;t<e;t+=4){L(this,t,t+3);L(this,t+1,t+2)}return this};l.prototype.swap64=function ue(){var e=this.length;if(e%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var t=0;t<e;t+=8){L(this,t,t+7);L(this,t+1,t+6);L(this,t+2,t+5);L(this,t+3,t+4)}return this};l.prototype.toString=function le(){var e=this.length|0;if(e===0)return"";if(arguments.length===0)return x(this,0,e);return k.apply(this,arguments)};l.prototype.equals=function ce(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(this===e)return true;return l.compare(this,e)===0};l.prototype.inspect=function he(){var e="";var t=n.INSPECT_MAX_BYTES;if(this.length>0){e=this.toString("hex",0,t).match(/.{2}/g).join(" ");if(this.length>t)e+=" ... "}return"<Buffer "+e+">"};l.prototype.compare=function fe(e,t,n,i,r){if(!l.isBuffer(e)){throw new TypeError("Argument must be a Buffer")}if(t===undefined){t=0}if(n===undefined){n=e?e.length:0}if(i===undefined){i=0}if(r===undefined){r=this.length}if(t<0||n>e.length||i<0||r>this.length){throw new RangeError("out of range index")}if(i>=r&&t>=n){return 0}if(i>=r){return-1}if(t>=n){return 1}t>>>=0;n>>>=0;i>>>=0;r>>>=0;if(this===e)return 0;var s=r-i;var o=n-t;var a=Math.min(s,o);var u=this.slice(i,r);var c=e.slice(t,n);for(var h=0;h<a;++h){if(u[h]!==c[h]){s=u[h];o=c[h];break}}if(s<o)return-1;if(o<s)return 1;return 0};
|
|
// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
|
|
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
|
|
//
|
|
// Arguments:
|
|
// - buffer - a Buffer to search
|
|
// - val - a string, Buffer, or number
|
|
// - byteOffset - an index into `buffer`; will be clamped to an int32
|
|
// - encoding - an optional encoding, relevant is val is a string
|
|
// - dir - true for indexOf, false for lastIndexOf
|
|
function A(e,t,n,i,r){
|
|
// Empty buffer means no match
|
|
if(e.length===0)return-1;
|
|
// Normalize byteOffset
|
|
if(typeof n==="string"){i=n;n=0}else if(n>2147483647){n=2147483647}else if(n<-2147483648){n=-2147483648}n=+n;// Coerce to Number.
|
|
if(isNaN(n)){
|
|
// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
|
|
n=r?0:e.length-1}
|
|
// Normalize byteOffset: negative offsets start from the end of the buffer
|
|
if(n<0)n=e.length+n;if(n>=e.length){if(r)return-1;else n=e.length-1}else if(n<0){if(r)n=0;else return-1}
|
|
// Normalize val
|
|
if(typeof t==="string"){t=l.from(t,i)}
|
|
// Finally, search either indexOf (if dir is true) or lastIndexOf
|
|
if(l.isBuffer(t)){
|
|
// Special case: looking for empty string/buffer always fails
|
|
if(t.length===0){return-1}return E(e,t,n,i,r)}else if(typeof t==="number"){t=t&255;// Search for a byte value [0-255]
|
|
if(l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(r){return Uint8Array.prototype.indexOf.call(e,t,n)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,n)}}return E(e,[t],n,i,r)}throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,i,r){var s=1;var o=e.length;var a=t.length;if(i!==undefined){i=String(i).toLowerCase();if(i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le"){if(e.length<2||t.length<2){return-1}s=2;o/=2;a/=2;n/=2}}function u(e,t){if(s===1){return e[t]}else{return e.readUInt16BE(t*s)}}var l;if(r){var c=-1;for(l=n;l<o;l++){if(u(e,l)===u(t,c===-1?0:l-c)){if(c===-1)c=l;if(l-c+1===a)return c*s}else{if(c!==-1)l-=l-c;c=-1}}}else{if(n+a>o)n=o-a;for(l=n;l>=0;l--){var h=true;for(var f=0;f<a;f++){if(u(e,l+f)!==u(t,f)){h=false;break}}if(h)return l}}return-1}l.prototype.includes=function pe(e,t,n){return this.indexOf(e,t,n)!==-1};l.prototype.indexOf=function de(e,t,n){return A(this,e,t,n,true)};l.prototype.lastIndexOf=function ge(e,t,n){return A(this,e,t,n,false)};function C(e,t,n,i){n=Number(n)||0;var r=e.length-n;if(!i){i=r}else{i=Number(i);if(i>r){i=r}}
|
|
// must be an even number of digits
|
|
var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");if(i>s/2){i=s/2}for(var o=0;o<i;++o){var a=parseInt(t.substr(o*2,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function S(e,t,n,i){return ee(V(t,e.length-n),e,n,i)}function R(e,t,n,i){return ee(X(t),e,n,i)}function N(e,t,n,i){return R(e,t,n,i)}function _(e,t,n,i){return ee(Q(t),e,n,i)}function T(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}l.prototype.write=function me(e,t,n,i){
|
|
// Buffer#write(string)
|
|
if(t===undefined){i="utf8";n=this.length;t=0}else if(n===undefined&&typeof t==="string"){i=t;n=this.length;t=0}else if(isFinite(t)){t=t|0;if(isFinite(n)){n=n|0;if(i===undefined)i="utf8"}else{i=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var r=this.length-t;if(n===undefined||n>r)n=r;if(e.length>0&&(n<0||t<0)||t>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!i)i="utf8";var s=false;for(;;){switch(i){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return R(this,e,t,n);case"latin1":case"binary":return N(this,e,t,n);case"base64":
|
|
// Warning: maxLength not taken into account in base64Write
|
|
return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();s=true}}};l.prototype.toJSON=function ye(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){if(t===0&&n===e.length){return i.fromByteArray(e)}else{return i.fromByteArray(e.slice(t,n))}}function x(e,t,n){n=Math.min(e.length,n);var i=[];var r=t;while(r<n){var s=e[r];var o=null;var a=s>239?4:s>223?3:s>191?2:1;if(r+a<=n){var u,l,c,h;switch(a){case 1:if(s<128){o=s}break;case 2:u=e[r+1];if((u&192)===128){h=(s&31)<<6|u&63;if(h>127){o=h}}break;case 3:u=e[r+1];l=e[r+2];if((u&192)===128&&(l&192)===128){h=(s&15)<<12|(u&63)<<6|l&63;if(h>2047&&(h<55296||h>57343)){o=h}}break;case 4:u=e[r+1];l=e[r+2];c=e[r+3];if((u&192)===128&&(l&192)===128&&(c&192)===128){h=(s&15)<<18|(u&63)<<12|(l&63)<<6|c&63;if(h>65535&&h<1114112){o=h}}}}if(o===null){
|
|
// we did not generate a valid codePoint so insert a
|
|
// replacement char (U+FFFD) and advance only 1 byte
|
|
o=65533;a=1}else if(o>65535){
|
|
// encode to utf16 (surrogate pair dance)
|
|
o-=65536;i.push(o>>>10&1023|55296);o=56320|o&1023}i.push(o);r+=a}return M(i)}
|
|
// Based on http://stackoverflow.com/a/22747272/680742, the browser with
|
|
// the lowest limit is Chrome, with 0x10000 args.
|
|
// We go 1 magnitude less, for safety
|
|
var O=4096;function M(e){var t=e.length;if(t<=O){return String.fromCharCode.apply(String,e)}
|
|
// Decode in chunks to avoid "call stack size exceeded".
|
|
var n="";var i=0;while(i<t){n+=String.fromCharCode.apply(String,e.slice(i,i+=O))}return n}function P(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r){i+=String.fromCharCode(e[r]&127)}return i}function B(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r){i+=String.fromCharCode(e[r])}return i}function $(e,t,n){var i=e.length;if(!t||t<0)t=0;if(!n||n<0||n>i)n=i;var r="";for(var s=t;s<n;++s){r+=K(e[s])}return r}function U(e,t,n){var i=e.slice(t,n);var r="";for(var s=0;s<i.length;s+=2){r+=String.fromCharCode(i[s]+i[s+1]*256)}return r}l.prototype.slice=function ve(e,t){var n=this.length;e=~~e;t=t===undefined?n:~~t;if(e<0){e+=n;if(e<0)e=0}else if(e>n){e=n}if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(t<e)t=e;var i;if(l.TYPED_ARRAY_SUPPORT){i=this.subarray(e,t);i.__proto__=l.prototype}else{var r=t-e;i=new l(r,undefined);for(var s=0;s<r;++s){i[s]=this[s+e]}}return i};/*
|
|
* Need to make sure that buffer isn't trying to write out of bounds.
|
|
*/
|
|
function D(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function be(e,t,n){e=e|0;t=t|0;if(!n)D(e,t,this.length);var i=this[e];var r=1;var s=0;while(++s<t&&(r*=256)){i+=this[e+s]*r}return i};l.prototype.readUIntBE=function we(e,t,n){e=e|0;t=t|0;if(!n){D(e,t,this.length)}var i=this[e+--t];var r=1;while(t>0&&(r*=256)){i+=this[e+--t]*r}return i};l.prototype.readUInt8=function ke(e,t){if(!t)D(e,1,this.length);return this[e]};l.prototype.readUInt16LE=function Le(e,t){if(!t)D(e,2,this.length);return this[e]|this[e+1]<<8};l.prototype.readUInt16BE=function Ae(e,t){if(!t)D(e,2,this.length);return this[e]<<8|this[e+1]};l.prototype.readUInt32LE=function Ee(e,t){if(!t)D(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUInt32BE=function Ce(e,t){if(!t)D(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readIntLE=function Se(e,t,n){e=e|0;t=t|0;if(!n)D(e,t,this.length);var i=this[e];var r=1;var s=0;while(++s<t&&(r*=256)){i+=this[e+s]*r}r*=128;if(i>=r)i-=Math.pow(2,8*t);return i};l.prototype.readIntBE=function Re(e,t,n){e=e|0;t=t|0;if(!n)D(e,t,this.length);var i=t;var r=1;var s=this[e+--i];while(i>0&&(r*=256)){s+=this[e+--i]*r}r*=128;if(s>=r)s-=Math.pow(2,8*t);return s};l.prototype.readInt8=function Ne(e,t){if(!t)D(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};l.prototype.readInt16LE=function _e(e,t){if(!t)D(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function Te(e,t){if(!t)D(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function Ie(e,t){if(!t)D(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function xe(e,t){if(!t)D(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readFloatLE=function Oe(e,t){if(!t)D(e,4,this.length);return r.read(this,e,true,23,4)};l.prototype.readFloatBE=function Me(e,t){if(!t)D(e,4,this.length);return r.read(this,e,false,23,4)};l.prototype.readDoubleLE=function Pe(e,t){if(!t)D(e,8,this.length);return r.read(this,e,true,52,8)};l.prototype.readDoubleBE=function Be(e,t){if(!t)D(e,8,this.length);return r.read(this,e,false,52,8)};function j(e,t,n,i,r,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function $e(e,t,n,i){e=+e;t=t|0;n=n|0;if(!i){var r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}var s=1;var o=0;this[t]=e&255;while(++o<n&&(s*=256)){this[t+o]=e/s&255}return t+n};l.prototype.writeUIntBE=function Ue(e,t,n,i){e=+e;t=t|0;n=n|0;if(!i){var r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}var s=n-1;var o=1;this[t+s]=e&255;while(--s>=0&&(o*=256)){this[t+s]=e/o&255}return t+n};l.prototype.writeUInt8=function De(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,1,255,0);if(!l.TYPED_ARRAY_SUPPORT)e=Math.floor(e);this[t]=e&255;return t+1};function F(e,t,n,i){if(t<0)t=65535+t+1;for(var r=0,s=Math.min(e.length-n,2);r<s;++r){e[n+r]=(t&255<<8*(i?r:1-r))>>>(i?r:1-r)*8}}l.prototype.writeUInt16LE=function je(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[t]=e&255;this[t+1]=e>>>8}else{F(this,e,t,true)}return t+2};l.prototype.writeUInt16BE=function Fe(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,2,65535,0);if(l.TYPED_ARRAY_SUPPORT){this[t]=e>>>8;this[t+1]=e&255}else{F(this,e,t,false)}return t+2};function W(e,t,n,i){if(t<0)t=4294967295+t+1;for(var r=0,s=Math.min(e.length-n,4);r<s;++r){e[n+r]=t>>>(i?r:3-r)*8&255}}l.prototype.writeUInt32LE=function We(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[t+3]=e>>>24;this[t+2]=e>>>16;this[t+1]=e>>>8;this[t]=e&255}else{W(this,e,t,true)}return t+4};l.prototype.writeUInt32BE=function Ye(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,4,4294967295,0);if(l.TYPED_ARRAY_SUPPORT){this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255}else{W(this,e,t,false)}return t+4};l.prototype.writeIntLE=function ze(e,t,n,i){e=+e;t=t|0;if(!i){var r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}var s=0;var o=1;var a=0;this[t]=e&255;while(++s<n&&(o*=256)){if(e<0&&a===0&&this[t+s-1]!==0){a=1}this[t+s]=(e/o>>0)-a&255}return t+n};l.prototype.writeIntBE=function Ge(e,t,n,i){e=+e;t=t|0;if(!i){var r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}var s=n-1;var o=1;var a=0;this[t+s]=e&255;while(--s>=0&&(o*=256)){if(e<0&&a===0&&this[t+s+1]!==0){a=1}this[t+s]=(e/o>>0)-a&255}return t+n};l.prototype.writeInt8=function He(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,1,127,-128);if(!l.TYPED_ARRAY_SUPPORT)e=Math.floor(e);if(e<0)e=255+e+1;this[t]=e&255;return t+1};l.prototype.writeInt16LE=function Je(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[t]=e&255;this[t+1]=e>>>8}else{F(this,e,t,true)}return t+2};l.prototype.writeInt16BE=function qe(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,2,32767,-32768);if(l.TYPED_ARRAY_SUPPORT){this[t]=e>>>8;this[t+1]=e&255}else{F(this,e,t,false)}return t+2};l.prototype.writeInt32LE=function Ke(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,4,2147483647,-2147483648);if(l.TYPED_ARRAY_SUPPORT){this[t]=e&255;this[t+1]=e>>>8;this[t+2]=e>>>16;this[t+3]=e>>>24}else{W(this,e,t,true)}return t+4};l.prototype.writeInt32BE=function Ve(e,t,n){e=+e;t=t|0;if(!n)j(this,e,t,4,2147483647,-2147483648);if(e<0)e=4294967295+e+1;if(l.TYPED_ARRAY_SUPPORT){this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255}else{W(this,e,t,false)}return t+4};function Y(e,t,n,i,r,s){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(e,t,n,i,s){if(!s){Y(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38)}r.write(e,t,n,i,23,4);return n+4}l.prototype.writeFloatLE=function Xe(e,t,n){return z(this,e,t,true,n)};l.prototype.writeFloatBE=function Ze(e,t,n){return z(this,e,t,false,n)};function G(e,t,n,i,s){if(!s){Y(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308)}r.write(e,t,n,i,52,8);return n+8}l.prototype.writeDoubleLE=function Qe(e,t,n){return G(this,e,t,true,n)};l.prototype.writeDoubleBE=function et(e,t,n){return G(this,e,t,false,n)};
|
|
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
|
l.prototype.copy=function tt(e,t,n,i){if(!n)n=0;if(!i&&i!==0)i=this.length;if(t>=e.length)t=e.length;if(!t)t=0;if(i>0&&i<n)i=n;
|
|
// Copy 0 bytes; we're done
|
|
if(i===n)return 0;if(e.length===0||this.length===0)return 0;
|
|
// Fatal error conditions
|
|
if(t<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");
|
|
// Are we oob?
|
|
if(i>this.length)i=this.length;if(e.length-t<i-n){i=e.length-t+n}var r=i-n;var s;if(this===e&&n<t&&t<i){
|
|
// descending copy from end
|
|
for(s=r-1;s>=0;--s){e[s+t]=this[s+n]}}else if(r<1e3||!l.TYPED_ARRAY_SUPPORT){
|
|
// ascending copy from start
|
|
for(s=0;s<r;++s){e[s+t]=this[s+n]}}else{Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t)}return r};
|
|
// Usage:
|
|
// buffer.fill(number[, offset[, end]])
|
|
// buffer.fill(buffer[, offset[, end]])
|
|
// buffer.fill(string[, offset[, end]][, encoding])
|
|
l.prototype.fill=function nt(e,t,n,i){
|
|
// Handle string cases:
|
|
if(typeof e==="string"){if(typeof t==="string"){i=t;t=0;n=this.length}else if(typeof n==="string"){i=n;n=this.length}if(e.length===1){var r=e.charCodeAt(0);if(r<256){e=r}}if(i!==undefined&&typeof i!=="string"){throw new TypeError("encoding must be a string")}if(typeof i==="string"&&!l.isEncoding(i)){throw new TypeError("Unknown encoding: "+i)}}else if(typeof e==="number"){e=e&255}
|
|
// Invalid ranges are not set to a default, so can range check early.
|
|
if(t<0||this.length<t||this.length<n){throw new RangeError("Out of range index")}if(n<=t){return this}t=t>>>0;n=n===undefined?this.length:n>>>0;if(!e)e=0;var s;if(typeof e==="number"){for(s=t;s<n;++s){this[s]=e}}else{var o=l.isBuffer(e)?e:V(new l(e,i).toString());var a=o.length;for(s=0;s<n-t;++s){this[s+t]=o[s%a]}}return this};
|
|
// HELPER FUNCTIONS
|
|
// ================
|
|
var H=/[^+\/0-9A-Za-z-_]/g;function J(e){
|
|
// Node strips out invalid characters like \n and \t from the string, base64-js does not
|
|
e=q(e).replace(H,"");
|
|
// Node converts strings with length < 2 to ''
|
|
if(e.length<2)return"";
|
|
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
|
|
while(e.length%4!==0){e=e+"="}return e}function q(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function K(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function V(e,t){t=t||Infinity;var n;var i=e.length;var r=null;var s=[];for(var o=0;o<i;++o){n=e.charCodeAt(o);
|
|
// is surrogate component
|
|
if(n>55295&&n<57344){
|
|
// last char was a lead
|
|
if(!r){
|
|
// no lead yet
|
|
if(n>56319){
|
|
// unexpected trail
|
|
if((t-=3)>-1)s.push(239,191,189);continue}else if(o+1===i){
|
|
// unpaired lead
|
|
if((t-=3)>-1)s.push(239,191,189);continue}
|
|
// valid lead
|
|
r=n;continue}
|
|
// 2 leads in a row
|
|
if(n<56320){if((t-=3)>-1)s.push(239,191,189);r=n;continue}
|
|
// valid surrogate pair
|
|
n=(r-55296<<10|n-56320)+65536}else if(r){
|
|
// valid bmp char, but last char was a lead
|
|
if((t-=3)>-1)s.push(239,191,189)}r=null;
|
|
// encode utf8
|
|
if(n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else{throw new Error("Invalid code point")}}return s}function X(e){var t=[];for(var n=0;n<e.length;++n){
|
|
// Node's code seems to be doing this and not & 0x7F..
|
|
t.push(e.charCodeAt(n)&255)}return t}function Z(e,t){var n,i,r;var s=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o);i=n>>8;r=n%256;s.push(r);s.push(i)}return s}function Q(e){return i.toByteArray(J(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":7,ieee754:11,isarray:12}],10:[function(e,t,n){
|
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
// copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
// persons to whom the Software is furnished to do so, subject to the
|
|
// following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included
|
|
// in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
function i(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}t.exports=i;
|
|
// Backwards-compat with node 0.10.x
|
|
i.EventEmitter=i;i.prototype._events=undefined;i.prototype._maxListeners=undefined;
|
|
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
// added to it. This is a useful default which helps finding memory leaks.
|
|
i.defaultMaxListeners=10;
|
|
// Obviously not all Emitters should be limited to 10. This function allows
|
|
// that to be increased. Set to zero for unlimited.
|
|
i.prototype.setMaxListeners=function(e){if(!s(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");this._maxListeners=e;return this};i.prototype.emit=function(e){var t,n,i,s,u,l;if(!this._events)this._events={};
|
|
// If there is no 'error' event listener then throw.
|
|
if(e==="error"){if(!this._events.error||o(this._events.error)&&!this._events.error.length){t=arguments[1];if(t instanceof Error){throw t}else{
|
|
// At least give some kind of context to the user
|
|
var c=new Error('Uncaught, unspecified "error" event. ('+t+")");c.context=t;throw c}}}n=this._events[e];if(a(n))return false;if(r(n)){switch(arguments.length){
|
|
// fast cases
|
|
case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;
|
|
// slower
|
|
default:s=Array.prototype.slice.call(arguments,1);n.apply(this,s)}}else if(o(n)){s=Array.prototype.slice.call(arguments,1);l=n.slice();i=l.length;for(u=0;u<i;u++)l[u].apply(this,s)}return true};i.prototype.addListener=function(e,t){var n;if(!r(t))throw TypeError("listener must be a function");if(!this._events)this._events={};
|
|
// To avoid recursion in the case that type === "newListener"! Before
|
|
// adding it to the listeners, first emit "newListener".
|
|
if(this._events.newListener)this.emit("newListener",e,r(t.listener)?t.listener:t);if(!this._events[e])
|
|
// Optimize the case of one listener. Don't need the extra array object.
|
|
this._events[e]=t;else if(o(this._events[e]))
|
|
// If we've already got an array, just append.
|
|
this._events[e].push(t);else
|
|
// Adding the second element, need to change to array.
|
|
this._events[e]=[this._events[e],t];
|
|
// Check for listener leak
|
|
if(o(this._events[e])&&!this._events[e].warned){if(!a(this._maxListeners)){n=this._maxListeners}else{n=i.defaultMaxListeners}if(n&&n>0&&this._events[e].length>n){this._events[e].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[e].length);if(typeof console.trace==="function"){
|
|
// not supported in IE 10
|
|
console.trace()}}}return this};i.prototype.on=i.prototype.addListener;i.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=false;function i(){this.removeListener(e,i);if(!n){n=true;t.apply(this,arguments)}}i.listener=t;this.on(e,i);return this};
|
|
// emits a 'removeListener' event iff the listener was removed
|
|
i.prototype.removeListener=function(e,t){var n,i,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;n=this._events[e];s=n.length;i=-1;if(n===t||r(n.listener)&&n.listener===t){delete this._events[e];if(this._events.removeListener)this.emit("removeListener",e,t)}else if(o(n)){for(a=s;a-- >0;){if(n[a]===t||n[a].listener&&n[a].listener===t){i=a;break}}if(i<0)return this;if(n.length===1){n.length=0;delete this._events[e]}else{n.splice(i,1)}if(this._events.removeListener)this.emit("removeListener",e,t)}return this};i.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;
|
|
// not listening for removeListener, no need to emit
|
|
if(!this._events.removeListener){if(arguments.length===0)this._events={};else if(this._events[e])delete this._events[e];return this}
|
|
// emit removeListener for all listeners on all events
|
|
if(arguments.length===0){for(t in this._events){if(t==="removeListener")continue;this.removeAllListeners(t)}this.removeAllListeners("removeListener");this._events={};return this}n=this._events[e];if(r(n)){this.removeListener(e,n)}else if(n){
|
|
// LIFO order
|
|
while(n.length)this.removeListener(e,n[n.length-1])}delete this._events[e];return this};i.prototype.listeners=function(e){var t;if(!this._events||!this._events[e])t=[];else if(r(this._events[e]))t=[this._events[e]];else t=this._events[e].slice();return t};i.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;else if(t)return t.length}return 0};i.listenerCount=function(e,t){return e.listenerCount(t)};function r(e){return typeof e==="function"}function s(e){return typeof e==="number"}function o(e){return typeof e==="object"&&e!==null}function a(e){return e===void 0}},{}],11:[function(e,t,n){n.read=function(e,t,n,i,r){var s,o;var a=r*8-i-1;var u=(1<<a)-1;var l=u>>1;var c=-7;var h=n?r-1:0;var f=n?-1:1;var p=e[t+h];h+=f;s=p&(1<<-c)-1;p>>=-c;c+=a;for(;c>0;s=s*256+e[t+h],h+=f,c-=8){}o=s&(1<<-c)-1;s>>=-c;c+=i;for(;c>0;o=o*256+e[t+h],h+=f,c-=8){}if(s===0){s=1-l}else if(s===u){return o?NaN:(p?-1:1)*Infinity}else{o=o+Math.pow(2,i);s=s-l}return(p?-1:1)*o*Math.pow(2,s-i)};n.write=function(e,t,n,i,r,s){var o,a,u;var l=s*8-r-1;var c=(1<<l)-1;var h=c>>1;var f=r===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=i?0:s-1;var d=i?1:-1;var g=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){a=isNaN(t)?1:0;o=c}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(u=Math.pow(2,-o))<1){o--;u*=2}if(o+h>=1){t+=f/u}else{t+=f*Math.pow(2,1-h)}if(t*u>=2){o++;u/=2}if(o+h>=c){a=0;o=c}else if(o+h>=1){a=(t*u-1)*Math.pow(2,r);o=o+h}else{a=t*Math.pow(2,h-1)*Math.pow(2,r);o=0}}for(;r>=8;e[n+p]=a&255,p+=d,a/=256,r-=8){}o=o<<r|a;l+=r;for(;l>0;e[n+p]=o&255,p+=d,o/=256,l-=8){}e[n+p-d]|=g*128}},{}],12:[function(e,t,n){var i={}.toString;t.exports=Array.isArray||function(e){return i.call(e)=="[object Array]"}},{}],13:[function(e,t,n){(function(e){
|
|
// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
// backported and transplited with Babel, with backwards-compat fixes
|
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
// copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
// persons to whom the Software is furnished to do so, subject to the
|
|
// following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be included
|
|
// in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
// resolves . and .. elements in a path array with directory names there
|
|
// must be no slashes, empty elements, or device names (c:\) in the array
|
|
// (so also no leading and trailing slashes - it does not distinguish
|
|
// relative and absolute paths)
|
|
function t(e,t){
|
|
// if the path tries to go above the root, `up` ends up > 0
|
|
var n=0;for(var i=e.length-1;i>=0;i--){var r=e[i];if(r==="."){e.splice(i,1)}else if(r===".."){e.splice(i,1);n++}else if(n){e.splice(i,1);n--}}
|
|
// if the path is allowed to go above the root, restore leading ..s
|
|
if(t){for(;n--;n){e.unshift("..")}}return e}
|
|
// path.resolve([from ...], to)
|
|
// posix version
|
|
n.resolve=function(){var n="",i=false;for(var s=arguments.length-1;s>=-1&&!i;s--){var o=s>=0?arguments[s]:e.cwd();
|
|
// Skip empty and invalid entries
|
|
if(typeof o!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!o){continue}n=o+"/"+n;i=o.charAt(0)==="/"}
|
|
// At this point the path should be resolved to a full absolute path, but
|
|
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
// Normalize the path
|
|
n=t(r(n.split("/"),function(e){return!!e}),!i).join("/");return(i?"/":"")+n||"."};
|
|
// path.normalize(path)
|
|
// posix version
|
|
n.normalize=function(e){var i=n.isAbsolute(e),o=s(e,-1)==="/";
|
|
// Normalize the path
|
|
e=t(r(e.split("/"),function(e){return!!e}),!i).join("/");if(!e&&!i){e="."}if(e&&o){e+="/"}return(i?"/":"")+e};
|
|
// posix version
|
|
n.isAbsolute=function(e){return e.charAt(0)==="/"};
|
|
// posix version
|
|
n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if(typeof e!=="string"){throw new TypeError("Arguments to path.join must be strings")}return e}).join("/"))};
|
|
// path.relative(from, to)
|
|
// posix version
|
|
n.relative=function(e,t){e=n.resolve(e).substr(1);t=n.resolve(t).substr(1);function i(e){var t=0;for(;t<e.length;t++){if(e[t]!=="")break}var n=e.length-1;for(;n>=0;n--){if(e[n]!=="")break}if(t>n)return[];return e.slice(t,n-t+1)}var r=i(e.split("/"));var s=i(t.split("/"));var o=Math.min(r.length,s.length);var a=o;for(var u=0;u<o;u++){if(r[u]!==s[u]){a=u;break}}var l=[];for(var u=a;u<r.length;u++){l.push("..")}l=l.concat(s.slice(a));return l.join("/")};n.sep="/";n.delimiter=":";n.dirname=function(e){if(typeof e!=="string")e=e+"";if(e.length===0)return".";var t=e.charCodeAt(0);var n=t===47;var i=-1;var r=true;for(var s=e.length-1;s>=1;--s){t=e.charCodeAt(s);if(t===47){if(!r){i=s;break}}else{
|
|
// We saw the first non-path separator
|
|
r=false}}if(i===-1)return n?"/":".";if(n&&i===1){
|
|
// return '//';
|
|
// Backwards-compat fix:
|
|
return"/"}return e.slice(0,i)};function i(e){if(typeof e!=="string")e=e+"";var t=0;var n=-1;var i=true;var r;for(r=e.length-1;r>=0;--r){if(e.charCodeAt(r)===47){
|
|
// If we reached a path separator that was not part of a set of path
|
|
// separators at the end of the string, stop now
|
|
if(!i){t=r+1;break}}else if(n===-1){
|
|
// We saw the first non-path separator, mark this as the end of our
|
|
// path component
|
|
i=false;n=r+1}}if(n===-1)return"";return e.slice(t,n)}
|
|
// Uses a mixed approach for backwards-compatibility, as ext behavior changed
|
|
// in new Node.js versions, so only basename() above is backported here
|
|
n.basename=function(e,t){var n=i(e);if(t&&n.substr(-1*t.length)===t){n=n.substr(0,n.length-t.length)}return n};n.extname=function(e){if(typeof e!=="string")e=e+"";var t=-1;var n=0;var i=-1;var r=true;
|
|
// Track the state of characters (if any) we see before our first dot and
|
|
// after any path separator we find
|
|
var s=0;for(var o=e.length-1;o>=0;--o){var a=e.charCodeAt(o);if(a===47){
|
|
// If we reached a path separator that was not part of a set of path
|
|
// separators at the end of the string, stop now
|
|
if(!r){n=o+1;break}continue}if(i===-1){
|
|
// We saw the first non-path separator, mark this as the end of our
|
|
// extension
|
|
r=false;i=o+1}if(a===46){
|
|
// If this is our first dot, mark it as the start of our extension
|
|
if(t===-1)t=o;else if(s!==1)s=1}else if(t!==-1){
|
|
// We saw a non-dot and non-path separator before our dot, so we should
|
|
// have a good chance at having a non-empty extension
|
|
s=-1}}if(t===-1||i===-1||
|
|
// We saw a non-dot character immediately before the dot
|
|
s===0||
|
|
// The (right-most) trimmed path component is exactly '..'
|
|
s===1&&t===i-1&&t===n+1){return""}return e.slice(t,i)};function r(e,t){if(e.filter)return e.filter(t);var n=[];for(var i=0;i<e.length;i++){if(t(e[i],i,e))n.push(e[i])}return n}
|
|
// String.prototype.substr - negative index don't work in IE8
|
|
var s="ab".substr(-1)==="b"?function(e,t,n){return e.substr(t,n)}:function(e,t,n){if(t<0)t=e.length+t;return e.substr(t,n)}}).call(this,e("_process"))},{_process:20}],14:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l={}.toString;i=c(function(e,t){return e.apply(null,t)});r=function(e){return c(e)};s=c(function(e,t,n){return e(n,t)});o=function(e){return function(t){return function(){return e(t(t)).apply(null,arguments)}}(function(t){return function(){return e(t(t)).apply(null,arguments)}})};a=c(function(e,t,n,i){return e(t(n),t(i))});u=function(e){var t;t={};return function(){var n,i,r,s,o,a;i=[];for(r=0,s=arguments.length;r<s;++r){i.push(arguments[r])}n=i;o=function(){var e,t,i,r=[];for(e=0,i=(t=n).length;e<i;++e){a=t[e];r.push(a+l.call(a).slice(8,-1))}return r}().join("");return t[o]=o in t?t[o]:e.apply(null,n)}};t.exports={curry:r,flip:s,fix:o,apply:i,over:a,memoize:u};function c(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}},{}],15:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g,m,y,v,b,w,k,L,A,E,C,S,R,N,_,T,I,x,O,M,P,B,$,U,D,j,F,W,Y,z,G,H,J,q,K,V,X,Z,Q,ee,te,ne,ie,re,se,oe,ae,ue,le,ce,he,fe,pe,de,ge,me,ye,ve,be={}.toString;i=we(function(e,t){var n,i,r;for(n=0,i=t.length;n<i;++n){r=t[n];e(r)}return t});r=we(function(e,t){var n,i,r,s=[];for(n=0,i=t.length;n<i;++n){r=t[n];s.push(e(r))}return s});s=function(e){var t,n,i,r=[];for(t=0,n=e.length;t<n;++t){i=e[t];if(i){r.push(i)}}return r};o=we(function(e,t){var n,i,r,s=[];for(n=0,i=t.length;n<i;++n){r=t[n];if(e(r)){s.push(r)}}return s});a=we(function(e,t){var n,i,r,s=[];for(n=0,i=t.length;n<i;++n){r=t[n];if(!e(r)){s.push(r)}}return s});u=we(function(e,t){var n,i;n=ge(e,t);i=t.slice();if(n!=null){i.splice(n,1)}return i});l=we(function(e,t){var n,i,r,s,o;n=[];i=[];for(r=0,s=t.length;r<s;++r){o=t[r];(e(o)?n:i).push(o)}return[n,i]});c=we(function(e,t){var n,i,r;for(n=0,i=t.length;n<i;++n){r=t[n];if(e(r)){return r}}});h=f=function(e){return e[0]};p=function(e){if(!e.length){return}return e.slice(1)};d=function(e){return e[e.length-1]};g=function(e){if(!e.length){return}return e.slice(0,-1)};m=function(e){return!e.length};y=function(e){return e.concat().reverse()};v=function(e){var t,n,i,r;t=[];for(n=0,i=e.length;n<i;++n){r=e[n];if(!ke(r,t)){t.push(r)}}return t};b=we(function(e,t){var n,i,r,s,o,a=[];n=[];for(i=0,r=t.length;i<r;++i){s=t[i];o=e(s);if(ke(o,n)){continue}n.push(o);a.push(s)}return a});w=k=we(function(e,t,n){var i,r,s;for(i=0,r=n.length;i<r;++i){s=n[i];t=e(t,s)}return t});L=A=we(function(e,t){return w(e,t[0],t.slice(1))});E=we(function(e,t,n){var i,r;for(i=n.length-1;i>=0;--i){r=n[i];t=e(r,t)}return t});C=we(function(e,t){return E(e,t[t.length-1],t.slice(0,-1))});S=we(function(e,t){var n,i,r;n=[];i=t;while((r=e(i))!=null){n.push(r[0]);i=r[1]}return n});R=function(e){return[].concat.apply([],e)};N=we(function(e,t){var n;return[].concat.apply([],function(){var i,r,s,o=[];for(i=0,s=(r=t).length;i<s;++i){n=r[i];o.push(e(n))}return o}())});_=function(e){var t;return[].concat.apply([],function(){var n,i,r,s=[];for(n=0,r=(i=e).length;n<r;++n){t=i[n];if(be.call(t).slice(8,-1)==="Array"){s.push(_(t))}else{s.push(t)}}return s}())};T=function(e){var t,n,i,r,s,o,a,u,l,c;n=[];for(i=1,r=arguments.length;i<r;++i){n.push(arguments[i])}t=n;s=[];e:for(i=0,o=e.length;i<o;++i){a=e[i];for(u=0,l=t.length;u<l;++u){c=t[u];if(ke(a,c)){continue e}}s.push(a)}return s};I=function(e){var t,n,i,r,s,o,a,u,l,c;n=[];for(i=1,r=arguments.length;i<r;++i){n.push(arguments[i])}t=n;s=[];e:for(i=0,o=e.length;i<o;++i){a=e[i];for(u=0,l=t.length;u<l;++u){c=t[u];if(!ke(a,c)){continue e}}s.push(a)}return s};x=function(){var e,t,n,i,r,s,o,a,u,l;t=[];for(n=0,i=arguments.length;n<i;++n){t.push(arguments[n])}e=t;r=[];for(n=0,s=e.length;n<s;++n){o=e[n];for(a=0,u=o.length;a<u;++a){l=o[a];if(!ke(l,r)){r.push(l)}}}return r};O=we(function(e,t){var n,i,r,s,o;n={};for(i=0,r=t.length;i<r;++i){s=t[i];o=e(s);if(o in n){n[o]+=1}else{n[o]=1}}return n});M=we(function(e,t){var n,i,r,s,o;n={};for(i=0,r=t.length;i<r;++i){s=t[i];o=e(s);if(o in n){n[o].push(s)}else{n[o]=[s]}}return n});P=function(e){var t,n,i;for(t=0,n=e.length;t<n;++t){i=e[t];if(!i){return false}}return true};B=function(e){var t,n,i;for(t=0,n=e.length;t<n;++t){i=e[t];if(i){return true}}return false};$=we(function(e,t){var n,i,r;for(n=0,i=t.length;n<i;++n){r=t[n];if(e(r)){return true}}return false});U=we(function(e,t){var n,i,r;for(n=0,i=t.length;n<i;++n){r=t[n];if(!e(r)){return false}}return true});D=function(e){return e.concat().sort(function(e,t){if(e>t){return 1}else if(e<t){return-1}else{return 0}})};j=we(function(e,t){return t.concat().sort(e)});F=we(function(e,t){return t.concat().sort(function(t,n){if(e(t)>e(n)){return 1}else if(e(t)<e(n)){return-1}else{return 0}})});W=function(e){var t,n,i,r;t=0;for(n=0,i=e.length;n<i;++n){r=e[n];t+=r}return t};Y=function(e){var t,n,i,r;t=1;for(n=0,i=e.length;n<i;++n){r=e[n];t*=r}return t};z=G=function(e){var t,n,i,r;t=0;for(n=0,i=e.length;n<i;++n){r=e[n];t+=r}return t/e.length};H=function(e){var t,n,i,r,s;t=e[0];for(n=0,r=(i=e.slice(1)).length;n<r;++n){s=i[n];if(s>t){t=s}}return t};J=function(e){var t,n,i,r,s;t=e[0];for(n=0,r=(i=e.slice(1)).length;n<r;++n){s=i[n];if(s<t){t=s}}return t};q=we(function(e,t){var n,i,r,s,o;n=t[0];for(i=0,s=(r=t.slice(1)).length;i<s;++i){o=r[i];if(e(o)>e(n)){n=o}}return n});K=we(function(e,t){var n,i,r,s,o;n=t[0];for(i=0,s=(r=t.slice(1)).length;i<s;++i){o=r[i];if(e(o)<e(n)){n=o}}return n});V=X=we(function(e,t,n){var i,r;i=t;return[t].concat(function(){var t,s,o,a=[];for(t=0,o=(s=n).length;t<o;++t){r=s[t];a.push(i=e(i,r))}return a}())});Z=Q=we(function(e,t){if(!t.length){return}return V(e,t[0],t.slice(1))});ee=we(function(e,t,n){n=n.concat().reverse();return V(e,t,n).reverse()});te=we(function(e,t){if(!t.length){return}t=t.concat().reverse();return V(e,t[0],t.slice(1)).reverse()});ne=we(function(e,t,n){return n.slice(e,t)});ie=we(function(e,t){if(e<=0){return t.slice(0,0)}else{return t.slice(0,e)}});re=we(function(e,t){if(e<=0){return t}else{return t.slice(e)}});se=we(function(e,t){return[ie(e,t),re(e,t)]});oe=we(function(e,t){var n,i;n=t.length;if(!n){return t}i=0;while(i<n&&e(t[i])){i+=1}return t.slice(0,i)});ae=we(function(e,t){var n,i;n=t.length;if(!n){return t}i=0;while(i<n&&e(t[i])){i+=1}return t.slice(i)});ue=we(function(e,t){return[oe(e,t),ae(e,t)]});le=we(function(e,t){return ue(Le(e,Ae),t)});ce=we(function(e,t){var n,i,r,s,o,a;n=[];i=t.length;for(r=0,s=e.length;r<s;++r){o=r;a=e[r];if(o===i){break}n.push([a,t[o]])}return n});he=we(function(e,t,n){var i,r,s,o,a,u;i=[];r=n.length;for(s=0,o=t.length;s<o;++s){a=s;u=t[s];if(a===r){break}i.push(e(u,n[a]))}return i});fe=function(){var e,t,n,i,r,s,o,a,u,l,c,h=[];t=[];for(n=0,i=arguments.length;n<i;++n){t.push(arguments[n])}e=t;r=undefined;for(n=0,s=e.length;n<s;++n){o=e[n];r<=(a=o.length)||(r=a)}for(n=0;n<r;++n){u=n;l=[];for(c=0,s=e.length;c<s;++c){o=e[c];l.push(o[u])}h.push(l)}return h};pe=function(e){var t,n,i,r,s,o,a,u,l,c=[];n=[];for(i=1,r=arguments.length;i<r;++i){n.push(arguments[i])}t=n;s=undefined;for(i=0,o=t.length;i<o;++i){a=t[i];s<=(u=a.length)||(s=u)}for(i=0;i<s;++i){l=i;c.push(e.apply(null,h()))}return c;function h(){var e,n,i,r=[];for(e=0,i=(n=t).length;e<i;++e){a=n[e];r.push(a[l])}return r}};de=we(function(e,t){if(e<0){return t[t.length+e]}else{return t[e]}});ge=we(function(e,t){var n,i,r,s;for(n=0,i=t.length;n<i;++n){r=n;s=t[n];if(s===e){return r}}});me=we(function(e,t){var n,i,r,s,o=[];for(n=0,i=t.length;n<i;++n){r=n;s=t[n];if(s===e){o.push(r)}}return o});ye=we(function(e,t){var n,i,r,s;for(n=0,i=t.length;n<i;++n){r=n;s=t[n];if(e(s)){return r}}});ve=we(function(e,t){var n,i,r,s,o=[];for(n=0,i=t.length;n<i;++n){r=n;s=t[n];if(e(s)){o.push(r)}}return o});t.exports={each:i,map:r,filter:o,compact:s,reject:a,remove:u,partition:l,find:c,head:h,first:f,tail:p,last:d,initial:g,empty:m,reverse:y,difference:T,intersection:I,union:x,countBy:O,groupBy:M,fold:w,fold1:L,foldl:k,foldl1:A,foldr:E,foldr1:C,unfoldr:S,andList:P,orList:B,any:$,all:U,unique:v,uniqueBy:b,sort:D,sortWith:j,sortBy:F,sum:W,product:Y,mean:z,average:G,concat:R,concatMap:N,flatten:_,maximum:H,minimum:J,maximumBy:q,minimumBy:K,scan:V,scan1:Z,scanl:X,scanl1:Q,scanr:ee,scanr1:te,slice:ne,take:ie,drop:re,splitAt:se,takeWhile:oe,dropWhile:ae,span:ue,breakList:le,zip:ce,zipWith:he,zipAll:fe,zipAllWith:pe,at:de,elemIndex:ge,elemIndices:me,findIndex:ye,findIndices:ve};function we(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}function ke(e,t){var n=-1,i=t.length>>>0;while(++n<i)if(e===t[n])return true;return false}function Le(){var e=arguments;return function(){var t,n;n=e[0].apply(this,arguments);for(t=1;t<e.length;++t){n=e[t](n)}return n}}function Ae(e){return!e}},{}],16:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g,m,y,v,b,w,k,L,A,E,C,S,R,N,_,T,I,x,O,M;i=P(function(e,t){return e>t?e:t});r=P(function(e,t){return e<t?e:t});s=function(e){return-e};o=Math.abs;a=function(e){if(e<0){return-1}else if(e>0){return 1}else{return 0}};u=P(function(e,t){return~~(e/t)});l=P(function(e,t){return e%t});c=P(function(e,t){return Math.floor(e/t)});h=P(function(e,t){var n;return(e%(n=t)+n)%n});f=function(e){return 1/e};p=Math.PI;d=p*2;g=Math.exp;m=Math.sqrt;y=Math.log;v=P(function(e,t){return Math.pow(e,t)});b=Math.sin;w=Math.tan;k=Math.cos;L=Math.asin;A=Math.acos;E=Math.atan;C=P(function(e,t){return Math.atan2(e,t)});S=function(e){return~~e};R=Math.round;N=Math.ceil;_=Math.floor;T=function(e){return e!==e};I=function(e){return e%2===0};x=function(e){return e%2!==0};O=P(function(e,t){var n;e=Math.abs(e);t=Math.abs(t);while(t!==0){n=e%t;e=t;t=n}return e});M=P(function(e,t){return Math.abs(Math.floor(e/O(e,t)*t))});t.exports={max:i,min:r,negate:s,abs:o,signum:a,quot:u,rem:l,div:c,mod:h,recip:f,pi:p,tau:d,exp:g,sqrt:m,ln:y,pow:v,sin:b,tan:w,cos:k,acos:A,asin:L,atan:E,atan2:C,truncate:S,round:R,ceiling:N,floor:_,isItNaN:T,even:I,odd:x,gcd:O,lcm:M};function P(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}},{}],17:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g,m;i=function(e){var t,n,i=[];for(t in e){n=e[t];i.push(n)}return i};r=function(e){var t,n=[];for(t in e){n.push(t)}return n};s=function(e){var t,n,i,r={};for(t=0,n=e.length;t<n;++t){i=e[t];r[i[0]]=i[1]}return r};o=function(e){var t,n,i=[];for(t in e){n=e[t];i.push([t,n])}return i};a=y(function(e,t){var n,i,r,s,o={};for(n=0,i=e.length;n<i;++n){r=n;s=e[n];o[s]=t[r]}return o});u=function(e){var t,n,i,r;t=[];n=[];for(i in e){r=e[i];t.push(i);n.push(r)}return[t,n]};l=function(e){var t;for(t in e){return false}return true};c=y(function(e,t){var n,i;for(n in t){i=t[n];e(i)}return t});h=y(function(e,t){var n,i,r={};for(n in t){i=t[n];r[n]=e(i)}return r});f=function(e){var t,n,i={};for(t in e){n=e[t];if(n){i[t]=n}}return i};p=y(function(e,t){var n,i,r={};for(n in t){i=t[n];if(e(i)){r[n]=i}}return r});d=y(function(e,t){var n,i,r={};for(n in t){i=t[n];if(!e(i)){r[n]=i}}return r});g=y(function(e,t){var n,i,r,s;n={};i={};for(r in t){s=t[r];(e(s)?n:i)[r]=s}return[n,i]});m=y(function(e,t){var n,i;for(n in t){i=t[n];if(e(i)){return i}}});t.exports={values:i,keys:r,pairsToObj:s,objToPairs:o,listsToObj:a,objToLists:u,empty:l,each:c,map:h,filter:p,compact:f,reject:d,partition:g,find:m};function y(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}},{}],18:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l,c,h,f,p,d,g;i=m(function(e,t){return t.split(e)});r=m(function(e,t){return t.join(e)});s=function(e){if(!e.length){return[]}return e.split("\n")};o=function(e){return e.join("\n")};a=function(e){if(!e.length){return[]}return e.split(/[ ]+/)};u=function(e){return e.join(" ")};l=function(e){return e.split("")};c=function(e){return e.join("")};h=function(e){return e.split("").reverse().join("")};f=m(function(e,t){var n,i;n="";for(i=0;i<e;++i){n+=t}return n});p=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};d=function(e){return e.replace(/[-_]+(.)?/g,function(e,t){return(t!=null?t:"").toUpperCase()})};g=function(e){return e.replace(/([^-A-Z])([A-Z]+)/g,function(e,t,n){return t+"-"+(n.length>1?n:n.toLowerCase())}).replace(/^([A-Z]+)/,function(e,t){if(t.length>1){return t+"-"}else{return t.toLowerCase()}})};t.exports={split:i,join:r,lines:s,unlines:o,words:a,unwords:u,chars:l,unchars:c,reverse:h,repeat:f,capitalize:p,camelize:d,dasherize:g};function m(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}},{}],19:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.0
|
|
var i,r,s,o,a,u,l,c,h,f={}.toString;i=e("./Func.js");r=e("./List.js");s=e("./Obj.js");o=e("./Str.js");a=e("./Num.js");u=function(e){return e};l=p(function(e,t){return f.call(t).slice(8,-1)===e});c=p(function(e,t){var n,i=[];for(n=0;n<e;++n){i.push(t)}return i});o.empty=r.empty;o.slice=r.slice;o.take=r.take;o.drop=r.drop;o.splitAt=r.splitAt;o.takeWhile=r.takeWhile;o.dropWhile=r.dropWhile;o.span=r.span;o.breakStr=r.breakList;h={Func:i,List:r,Obj:s,Str:o,Num:a,id:u,isType:l,replicate:c};h.each=r.each;h.map=r.map;h.filter=r.filter;h.compact=r.compact;h.reject=r.reject;h.partition=r.partition;h.find=r.find;h.head=r.head;h.first=r.first;h.tail=r.tail;h.last=r.last;h.initial=r.initial;h.empty=r.empty;h.reverse=r.reverse;h.difference=r.difference;h.intersection=r.intersection;h.union=r.union;h.countBy=r.countBy;h.groupBy=r.groupBy;h.fold=r.fold;h.foldl=r.foldl;h.fold1=r.fold1;h.foldl1=r.foldl1;h.foldr=r.foldr;h.foldr1=r.foldr1;h.unfoldr=r.unfoldr;h.andList=r.andList;h.orList=r.orList;h.any=r.any;h.all=r.all;h.unique=r.unique;h.uniqueBy=r.uniqueBy;h.sort=r.sort;h.sortWith=r.sortWith;h.sortBy=r.sortBy;h.sum=r.sum;h.product=r.product;h.mean=r.mean;h.average=r.average;h.concat=r.concat;h.concatMap=r.concatMap;h.flatten=r.flatten;h.maximum=r.maximum;h.minimum=r.minimum;h.maximumBy=r.maximumBy;h.minimumBy=r.minimumBy;h.scan=r.scan;h.scanl=r.scanl;h.scan1=r.scan1;h.scanl1=r.scanl1;h.scanr=r.scanr;h.scanr1=r.scanr1;h.slice=r.slice;h.take=r.take;h.drop=r.drop;h.splitAt=r.splitAt;h.takeWhile=r.takeWhile;h.dropWhile=r.dropWhile;h.span=r.span;h.breakList=r.breakList;h.zip=r.zip;h.zipWith=r.zipWith;h.zipAll=r.zipAll;h.zipAllWith=r.zipAllWith;h.at=r.at;h.elemIndex=r.elemIndex;h.elemIndices=r.elemIndices;h.findIndex=r.findIndex;h.findIndices=r.findIndices;h.apply=i.apply;h.curry=i.curry;h.flip=i.flip;h.fix=i.fix;h.over=i.over;h.split=o.split;h.join=o.join;h.lines=o.lines;h.unlines=o.unlines;h.words=o.words;h.unwords=o.unwords;h.chars=o.chars;h.unchars=o.unchars;h.repeat=o.repeat;h.capitalize=o.capitalize;h.camelize=o.camelize;h.dasherize=o.dasherize;h.values=s.values;h.keys=s.keys;h.pairsToObj=s.pairsToObj;h.objToPairs=s.objToPairs;h.listsToObj=s.listsToObj;h.objToLists=s.objToLists;h.max=a.max;h.min=a.min;h.negate=a.negate;h.abs=a.abs;h.signum=a.signum;h.quot=a.quot;h.rem=a.rem;h.div=a.div;h.mod=a.mod;h.recip=a.recip;h.pi=a.pi;h.tau=a.tau;h.exp=a.exp;h.sqrt=a.sqrt;h.ln=a.ln;h.pow=a.pow;h.sin=a.sin;h.tan=a.tan;h.cos=a.cos;h.acos=a.acos;h.asin=a.asin;h.atan=a.atan;h.atan2=a.atan2;h.truncate=a.truncate;h.round=a.round;h.ceiling=a.ceiling;h.floor=a.floor;h.isItNaN=a.isItNaN;h.even=a.even;h.odd=a.odd;h.gcd=a.gcd;h.lcm=a.lcm;h.VERSION="1.2.1";t.exports=h;function p(e,t){var n,i=function(r){return e.length>1?function(){var s=r?r.concat():[];n=t?n||this:this;return s.push.apply(s,arguments)<e.length&&arguments.length?i.call(n,s):e.apply(n,s)}:e};return i()}},{"./Func.js":14,"./List.js":15,"./Num.js":16,"./Obj.js":17,"./Str.js":18}],20:[function(e,t,n){
|
|
// shim for using process in browser
|
|
var i=t.exports={};
|
|
// cached from whatever global is present so that test runners that stub it
|
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
// function because try/catches deoptimize in certain engines.
|
|
var r;var s;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=o}}catch(e){r=o}try{if(typeof clearTimeout==="function"){s=clearTimeout}else{s=a}}catch(e){s=a}})();function u(e){if(r===setTimeout){
|
|
//normal enviroments in sane situations
|
|
return setTimeout(e,0)}
|
|
// if setTimeout wasn't available but was latter defined
|
|
if((r===o||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{
|
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
return r(e,0)}catch(t){try{
|
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
return r.call(null,e,0)}catch(t){
|
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
return r.call(this,e,0)}}}function l(e){if(s===clearTimeout){
|
|
//normal enviroments in sane situations
|
|
return clearTimeout(e)}
|
|
// if clearTimeout wasn't available but was latter defined
|
|
if((s===a||!s)&&clearTimeout){s=clearTimeout;return clearTimeout(e)}try{
|
|
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
return s(e)}catch(t){try{
|
|
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
return s.call(null,e)}catch(t){
|
|
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
return s.call(this,e)}}}var c=[];var h=false;var f;var p=-1;function d(){if(!h||!f){return}h=false;if(f.length){c=f.concat(c)}else{p=-1}if(c.length){g()}}function g(){if(h){return}var e=u(d);h=true;var t=c.length;while(t){f=c;c=[];while(++p<t){if(f){f[p].run()}}p=-1;t=c.length}f=null;h=false;l(e)}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}}c.push(new m(e,t));if(c.length===1&&!h){u(g)}};
|
|
// v8 likes predictible objects
|
|
function m(e,t){this.fun=e;this.array=t}m.prototype.run=function(){this.fun.apply(null,this.array)};i.title="browser";i.browser=true;i.env={};i.argv=[];i.version="";// empty string to avoid regexp issues
|
|
i.versions={};function y(){}i.on=y;i.addListener=y;i.once=y;i.off=y;i.removeListener=y;i.removeAllListeners=y;i.emit=y;i.prependListener=y;i.prependOnceListener=y;i.listeners=function(e){return[]};i.binding=function(e){throw new Error("process.binding is not supported")};i.cwd=function(){return"/"};i.chdir=function(e){throw new Error("process.chdir is not supported")};i.umask=function(){return 0}},{}],21:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i=e("./util");var r=Object.prototype.hasOwnProperty;var s=typeof Map!=="undefined";/**
|
|
* A data structure which is a combination of an array and a set. Adding a new
|
|
* member is O(1), testing for membership is O(1), and finding the index of an
|
|
* element is O(1). Removing elements from the set is not supported. Only
|
|
* strings are supported for membership.
|
|
*/
|
|
function o(){this._array=[];this._set=s?new Map:Object.create(null)}/**
|
|
* Static method for creating ArraySet instances from an existing array.
|
|
*/
|
|
o.fromArray=function a(e,t){var n=new o;for(var i=0,r=e.length;i<r;i++){n.add(e[i],t)}return n};/**
|
|
* Return how many unique items are in this ArraySet. If duplicates have been
|
|
* added, than those do not count towards the size.
|
|
*
|
|
* @returns Number
|
|
*/
|
|
o.prototype.size=function u(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length};/**
|
|
* Add the given string to this set.
|
|
*
|
|
* @param String aStr
|
|
*/
|
|
o.prototype.add=function l(e,t){var n=s?e:i.toSetString(e);var o=s?this.has(e):r.call(this._set,n);var a=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(s){this._set.set(e,a)}else{this._set[n]=a}}};/**
|
|
* Is the given string a member of this set?
|
|
*
|
|
* @param String aStr
|
|
*/
|
|
o.prototype.has=function c(e){if(s){return this._set.has(e)}else{var t=i.toSetString(e);return r.call(this._set,t)}};/**
|
|
* What is the index of the given string in the array?
|
|
*
|
|
* @param String aStr
|
|
*/
|
|
o.prototype.indexOf=function h(e){if(s){var t=this._set.get(e);if(t>=0){return t}}else{var n=i.toSetString(e);if(r.call(this._set,n)){return this._set[n]}}throw new Error('"'+e+'" is not in the set.')};/**
|
|
* What is the element at the given index?
|
|
*
|
|
* @param Number aIdx
|
|
*/
|
|
o.prototype.at=function f(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};/**
|
|
* Returns the array representation of this set (which has the proper indices
|
|
* indicated by indexOf). Note that this is a copy of the internal array used
|
|
* for storing the members so that no one can mess with internal state.
|
|
*/
|
|
o.prototype.toArray=function p(){return this._array.slice()};n.ArraySet=o},{"./util":30}],22:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
* Based on the Base 64 VLQ implementation in Closure Compiler:
|
|
* https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
|
|
*
|
|
* Copyright 2011 The Closure Compiler Authors. All rights reserved.
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are
|
|
* met:
|
|
*
|
|
* * Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* * Redistributions in binary form must reproduce the above
|
|
* copyright notice, this list of conditions and the following
|
|
* disclaimer in the documentation and/or other materials provided
|
|
* with the distribution.
|
|
* * Neither the name of Google Inc. nor the names of its
|
|
* contributors may be used to endorse or promote products derived
|
|
* from this software without specific prior written permission.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
var i=e("./base64");
|
|
// A single base 64 digit can contain 6 bits of data. For the base 64 variable
|
|
// length quantities we use in the source map spec, the first bit is the sign,
|
|
// the next four bits are the actual value, and the 6th bit is the
|
|
// continuation bit. The continuation bit tells us whether there are more
|
|
// digits in this value following this digit.
|
|
//
|
|
// Continuation
|
|
// | Sign
|
|
// | |
|
|
// V V
|
|
// 101011
|
|
var r=5;
|
|
// binary: 100000
|
|
var s=1<<r;
|
|
// binary: 011111
|
|
var o=s-1;
|
|
// binary: 100000
|
|
var a=s;/**
|
|
* Converts from a two-complement value to a value where the sign bit is
|
|
* placed in the least significant bit. For example, as decimals:
|
|
* 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
|
|
* 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
|
|
*/
|
|
function u(e){return e<0?(-e<<1)+1:(e<<1)+0}/**
|
|
* Converts to a two-complement value from a value where the sign bit is
|
|
* placed in the least significant bit. For example, as decimals:
|
|
* 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
|
|
* 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
|
|
*/
|
|
function l(e){var t=(e&1)===1;var n=e>>1;return t?-n:n}/**
|
|
* Returns the base 64 VLQ encoded value.
|
|
*/
|
|
n.encode=function c(e){var t="";var n;var s=u(e);do{n=s&o;s>>>=r;if(s>0){
|
|
// There are still more digits in this value, so we must make sure the
|
|
// continuation bit is marked.
|
|
n|=a}t+=i.encode(n)}while(s>0);return t};/**
|
|
* Decodes the next base 64 VLQ value from the given string and returns the
|
|
* value and the rest of the string via the out parameter.
|
|
*/
|
|
n.decode=function h(e,t,n){var s=e.length;var u=0;var c=0;var h,f;do{if(t>=s){throw new Error("Expected more digits in base 64 VLQ value.")}f=i.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}h=!!(f&a);f&=o;u=u+(f<<c);c+=r}while(h);n.value=l(u);n.rest=t}},{"./base64":23}],23:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");/**
|
|
* Encode an integer in the range of 0 to 63 to a single base 64 digit.
|
|
*/
|
|
n.encode=function(e){if(0<=e&&e<i.length){return i[e]}throw new TypeError("Must be between 0 and 63: "+e)};/**
|
|
* Decode a single base 64 character code digit to an integer. Returns -1 on
|
|
* failure.
|
|
*/
|
|
n.decode=function(e){var t=65;// 'A'
|
|
var n=90;// 'Z'
|
|
var i=97;// 'a'
|
|
var r=122;// 'z'
|
|
var s=48;// '0'
|
|
var o=57;// '9'
|
|
var a=43;// '+'
|
|
var u=47;// '/'
|
|
var l=26;var c=52;
|
|
// 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
if(t<=e&&e<=n){return e-t}
|
|
// 26 - 51: abcdefghijklmnopqrstuvwxyz
|
|
if(i<=e&&e<=r){return e-i+l}
|
|
// 52 - 61: 0123456789
|
|
if(s<=e&&e<=o){return e-s+c}
|
|
// 62: +
|
|
if(e==a){return 62}
|
|
// 63: /
|
|
if(e==u){return 63}
|
|
// Invalid base64 digit.
|
|
return-1}},{}],24:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
n.GREATEST_LOWER_BOUND=1;n.LEAST_UPPER_BOUND=2;/**
|
|
* Recursive implementation of binary search.
|
|
*
|
|
* @param aLow Indices here and lower do not contain the needle.
|
|
* @param aHigh Indices here and higher do not contain the needle.
|
|
* @param aNeedle The element being searched for.
|
|
* @param aHaystack The non-empty array being searched.
|
|
* @param aCompare Function which takes two elements and returns -1, 0, or 1.
|
|
* @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
|
|
* 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
* closest element that is smaller than or greater than the one we are
|
|
* searching for, respectively, if the exact element cannot be found.
|
|
*/
|
|
function i(e,t,r,s,o,a){
|
|
// This function terminates when one of the following is true:
|
|
//
|
|
// 1. We find the exact element we are looking for.
|
|
//
|
|
// 2. We did not find the exact element, but we can return the index of
|
|
// the next-closest element.
|
|
//
|
|
// 3. We did not find the exact element, and there is no next-closest
|
|
// element than the one we are searching for, so we return -1.
|
|
var u=Math.floor((t-e)/2)+e;var l=o(r,s[u],true);if(l===0){
|
|
// Found the element we are looking for.
|
|
return u}else if(l>0){
|
|
// Our needle is greater than aHaystack[mid].
|
|
if(t-u>1){
|
|
// The element is in the upper half.
|
|
return i(u,t,r,s,o,a)}
|
|
// The exact needle element was not found in this haystack. Determine if
|
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
if(a==n.LEAST_UPPER_BOUND){return t<s.length?t:-1}else{return u}}else{
|
|
// Our needle is less than aHaystack[mid].
|
|
if(u-e>1){
|
|
// The element is in the lower half.
|
|
return i(e,u,r,s,o,a)}
|
|
// we are in termination case (3) or (2) and return the appropriate thing.
|
|
if(a==n.LEAST_UPPER_BOUND){return u}else{return e<0?-1:e}}}/**
|
|
* This is an implementation of binary search which will always try and return
|
|
* the index of the closest element if there is no exact hit. This is because
|
|
* mappings between original and generated line/col pairs are single points,
|
|
* and there is an implicit region between each of them, so a miss just means
|
|
* that you aren't on the very start of a region.
|
|
*
|
|
* @param aNeedle The element you are looking for.
|
|
* @param aHaystack The array that is being searched.
|
|
* @param aCompare A function which takes the needle and an element in the
|
|
* array and returns -1, 0, or 1 depending on whether the needle is less
|
|
* than, equal to, or greater than the element, respectively.
|
|
* @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
|
|
* 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
* closest element that is smaller than or greater than the one we are
|
|
* searching for, respectively, if the exact element cannot be found.
|
|
* Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
|
|
*/
|
|
n.search=function r(e,t,s,o){if(t.length===0){return-1}var a=i(-1,t.length,e,t,s,o||n.GREATEST_LOWER_BOUND);if(a<0){return-1}
|
|
// We have found either the exact element, or the next-closest element than
|
|
// the one we are searching for. However, there may be more than one such
|
|
// element. Make sure we always return the smallest of these.
|
|
while(a-1>=0){if(s(t[a],t[a-1],true)!==0){break}--a}return a}},{}],25:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2014 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i=e("./util");/**
|
|
* Determine whether mappingB is after mappingA with respect to generated
|
|
* position.
|
|
*/
|
|
function r(e,t){
|
|
// Optimized for most common case
|
|
var n=e.generatedLine;var r=t.generatedLine;var s=e.generatedColumn;var o=t.generatedColumn;return r>n||r==n&&o>=s||i.compareByGeneratedPositionsInflated(e,t)<=0}/**
|
|
* A data structure to provide a sorted view of accumulated mappings in a
|
|
* performance conscious manner. It trades a neglibable overhead in general
|
|
* case for a large speedup in case of mappings being added in order.
|
|
*/
|
|
function s(){this._array=[];this._sorted=true;
|
|
// Serves as infimum
|
|
this._last={generatedLine:-1,generatedColumn:0}}/**
|
|
* Iterate through internal items. This method takes the same arguments that
|
|
* `Array.prototype.forEach` takes.
|
|
*
|
|
* NOTE: The order of the mappings is NOT guaranteed.
|
|
*/
|
|
s.prototype.unsortedForEach=function o(e,t){this._array.forEach(e,t)};/**
|
|
* Add the given source mapping.
|
|
*
|
|
* @param Object aMapping
|
|
*/
|
|
s.prototype.add=function a(e){if(r(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};/**
|
|
* Returns the flat, sorted array of mappings. The mappings are sorted by
|
|
* generated position.
|
|
*
|
|
* WARNING: This method returns internal data without copying, for
|
|
* performance. The return value must NOT be mutated, and should be treated as
|
|
* an immutable borrow. If you want to take ownership, you must make your own
|
|
* copy.
|
|
*/
|
|
s.prototype.toArray=function u(){if(!this._sorted){this._array.sort(i.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};n.MappingList=s},{"./util":30}],26:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
// It turns out that some (most?) JavaScript engines don't self-host
|
|
// `Array.prototype.sort`. This makes sense because C++ will likely remain
|
|
// faster than JS when doing raw CPU-intensive sorting. However, when using a
|
|
// custom comparator function, calling back and forth between the VM's C++ and
|
|
// JIT'd JS is rather slow *and* loses JIT type information, resulting in
|
|
// worse generated code for the comparator function than would be optimal. In
|
|
// fact, when sorting with a comparator, these costs outweigh the benefits of
|
|
// sorting in C++. By using our own JS-implemented Quick Sort (below), we get
|
|
// a ~3500ms mean speed-up in `bench/bench.html`.
|
|
/**
|
|
* Swap the elements indexed by `x` and `y` in the array `ary`.
|
|
*
|
|
* @param {Array} ary
|
|
* The array.
|
|
* @param {Number} x
|
|
* The index of the first item.
|
|
* @param {Number} y
|
|
* The index of the second item.
|
|
*/
|
|
function i(e,t,n){var i=e[t];e[t]=e[n];e[n]=i}/**
|
|
* Returns a random integer within the range `low .. high` inclusive.
|
|
*
|
|
* @param {Number} low
|
|
* The lower bound on the range.
|
|
* @param {Number} high
|
|
* The upper bound on the range.
|
|
*/
|
|
function r(e,t){return Math.round(e+Math.random()*(t-e))}/**
|
|
* The Quick Sort algorithm.
|
|
*
|
|
* @param {Array} ary
|
|
* An array to sort.
|
|
* @param {function} comparator
|
|
* Function to use to compare two items.
|
|
* @param {Number} p
|
|
* Start index of the array
|
|
* @param {Number} r
|
|
* End index of the array
|
|
*/
|
|
function s(e,t,n,o){
|
|
// If our lower bound is less than our upper bound, we (1) partition the
|
|
// array into two pieces and (2) recurse on each half. If it is not, this is
|
|
// the empty array and our base case.
|
|
if(n<o){
|
|
// (1) Partitioning.
|
|
//
|
|
// The partitioning chooses a pivot between `p` and `r` and moves all
|
|
// elements that are less than or equal to the pivot to the before it, and
|
|
// all the elements that are greater than it after it. The effect is that
|
|
// once partition is done, the pivot is in the exact place it will be when
|
|
// the array is put in sorted order, and it will not need to be moved
|
|
// again. This runs in O(n) time.
|
|
// Always choose a random pivot so that an input array which is reverse
|
|
// sorted does not cause O(n^2) running time.
|
|
var a=r(n,o);var u=n-1;i(e,a,o);var l=e[o];
|
|
// Immediately after `j` is incremented in this loop, the following hold
|
|
// true:
|
|
//
|
|
// * Every element in `ary[p .. i]` is less than or equal to the pivot.
|
|
//
|
|
// * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
|
|
for(var c=n;c<o;c++){if(t(e[c],l)<=0){u+=1;i(e,u,c)}}i(e,u+1,c);var h=u+1;
|
|
// (2) Recurse on each half.
|
|
s(e,t,n,h-1);s(e,t,h+1,o)}}/**
|
|
* Sort the given array in-place with the given comparator function.
|
|
*
|
|
* @param {Array} ary
|
|
* An array to sort.
|
|
* @param {function} comparator
|
|
* Function to use to compare two items.
|
|
*/
|
|
n.quickSort=function(e,t){s(e,t,0,e.length-1)}},{}],27:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i=e("./util");var r=e("./binary-search");var s=e("./array-set").ArraySet;var o=e("./base64-vlq");var a=e("./quick-sort").quickSort;function u(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}return n.sections!=null?new h(n,t):new l(n,t)}u.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)};/**
|
|
* The version of the source mapping spec that we are consuming.
|
|
*/
|
|
u.prototype._version=3;
|
|
// `__generatedMappings` and `__originalMappings` are arrays that hold the
|
|
// parsed mapping coordinates from the source map's "mappings" attribute. They
|
|
// are lazily instantiated, accessed via the `_generatedMappings` and
|
|
// `_originalMappings` getters respectively, and we only parse the mappings
|
|
// and create these arrays once queried for a source location. We jump through
|
|
// these hoops because there can be many thousands of mappings, and parsing
|
|
// them is expensive, so we only want to do it if we must.
|
|
//
|
|
// Each object in the arrays is of the form:
|
|
//
|
|
// {
|
|
// generatedLine: The line number in the generated code,
|
|
// generatedColumn: The column number in the generated code,
|
|
// source: The path to the original source file that generated this
|
|
// chunk of code,
|
|
// originalLine: The line number in the original source that
|
|
// corresponds to this chunk of generated code,
|
|
// originalColumn: The column number in the original source that
|
|
// corresponds to this chunk of generated code,
|
|
// name: The name of the original symbol which generated this chunk of
|
|
// code.
|
|
// }
|
|
//
|
|
// All properties except for `generatedLine` and `generatedColumn` can be
|
|
// `null`.
|
|
//
|
|
// `_generatedMappings` is ordered by the generated positions.
|
|
//
|
|
// `_originalMappings` is ordered by the original positions.
|
|
u.prototype.__generatedMappings=null;Object.defineProperty(u.prototype,"_generatedMappings",{configurable:true,enumerable:true,get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});u.prototype.__originalMappings=null;Object.defineProperty(u.prototype,"_originalMappings",{configurable:true,enumerable:true,get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});u.prototype._charIsMappingSeparator=function f(e,t){var n=e.charAt(t);return n===";"||n===","};/**
|
|
* Parse the mappings in a string in to a data structure which we can easily
|
|
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
* `this.__originalMappings` properties).
|
|
*/
|
|
u.prototype._parseMappings=function p(e,t){throw new Error("Subclasses must implement _parseMappings")};u.GENERATED_ORDER=1;u.ORIGINAL_ORDER=2;u.GREATEST_LOWER_BOUND=1;u.LEAST_UPPER_BOUND=2;/**
|
|
* Iterate over each mapping between an original source/line/column and a
|
|
* generated line/column in this source map.
|
|
*
|
|
* @param Function aCallback
|
|
* The function that is called with each mapping.
|
|
* @param Object aContext
|
|
* Optional. If specified, this object will be the value of `this` every
|
|
* time that `aCallback` is called.
|
|
* @param aOrder
|
|
* Either `SourceMapConsumer.GENERATED_ORDER` or
|
|
* `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
|
|
* iterate over the mappings sorted by the generated file's line/column
|
|
* order or the original's source/line/column order, respectively. Defaults to
|
|
* `SourceMapConsumer.GENERATED_ORDER`.
|
|
*/
|
|
u.prototype.eachMapping=function d(e,t,n){var r=t||null;var s=n||u.GENERATED_ORDER;var o;switch(s){case u.GENERATED_ORDER:o=this._generatedMappings;break;case u.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);t=i.computeSourceURL(a,t,this._sourceMapURL);return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,r)};/**
|
|
* Returns all generated line and column information for the original source,
|
|
* line, and column provided. If no column is provided, returns all mappings
|
|
* corresponding to a either the line we are searching for or the next
|
|
* closest line that has any mappings. Otherwise, returns all mappings
|
|
* corresponding to the given line and either the column we are searching for
|
|
* or the next closest column that has any offsets.
|
|
*
|
|
* The only argument is an object with the following properties:
|
|
*
|
|
* - source: The filename of the original source.
|
|
* - line: The line number in the original source. The line number is 1-based.
|
|
* - column: Optional. the column number in the original source.
|
|
* The column number is 0-based.
|
|
*
|
|
* and an array of objects is returned, each with the following properties:
|
|
*
|
|
* - line: The line number in the generated source, or null. The
|
|
* line number is 1-based.
|
|
* - column: The column number in the generated source, or null.
|
|
* The column number is 0-based.
|
|
*/
|
|
u.prototype.allGeneratedPositionsFor=function g(e){var t=i.getArg(e,"line");
|
|
// When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
|
|
// returns the index of the closest mapping less than the needle. By
|
|
// setting needle.originalColumn to 0, we thus find the last mapping for
|
|
// the given line, provided such a mapping exists.
|
|
var n={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};n.source=this._findSourceIndex(n.source);if(n.source<0){return[]}var s=[];var o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===undefined){var u=a.originalLine;
|
|
// Iterate until either we run out of mappings, or we run into
|
|
// a mapping for a different line than the one we found. Since
|
|
// mappings are sorted, this is guaranteed to find all mappings for
|
|
// the line we found.
|
|
while(a&&a.originalLine===u){s.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}else{var l=a.originalColumn;
|
|
// Iterate until either we run out of mappings, or we run into
|
|
// a mapping for a different line than the one we were searching for.
|
|
// Since mappings are sorted, this is guaranteed to find all mappings for
|
|
// the line we are searching for.
|
|
while(a&&a.originalLine===t&&a.originalColumn==l){s.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}}return s};n.SourceMapConsumer=u;/**
|
|
* A BasicSourceMapConsumer instance represents a parsed source map which we can
|
|
* query for information about the original file positions by giving it a file
|
|
* position in the generated source.
|
|
*
|
|
* The first parameter is the raw source map (either as a JSON string, or
|
|
* already parsed to an object). According to the spec, source maps have the
|
|
* following attributes:
|
|
*
|
|
* - version: Which version of the source map spec this map is following.
|
|
* - sources: An array of URLs to the original source files.
|
|
* - names: An array of identifiers which can be referrenced by individual mappings.
|
|
* - sourceRoot: Optional. The URL root from which all sources are relative.
|
|
* - sourcesContent: Optional. An array of contents of the original source files.
|
|
* - mappings: A string of base64 VLQs which contain the actual mappings.
|
|
* - file: Optional. The generated file this source map is associated with.
|
|
*
|
|
* Here is an example source map, taken from the source map spec[0]:
|
|
*
|
|
* {
|
|
* version : 3,
|
|
* file: "out.js",
|
|
* sourceRoot : "",
|
|
* sources: ["foo.js", "bar.js"],
|
|
* names: ["src", "maps", "are", "fun"],
|
|
* mappings: "AA,AB;;ABCDE;"
|
|
* }
|
|
*
|
|
* The second parameter, if given, is a string whose value is the URL
|
|
* at which the source map was found. This URL is used to compute the
|
|
* sources array.
|
|
*
|
|
* [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
|
|
*/
|
|
function l(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}var r=i.getArg(n,"version");var o=i.getArg(n,"sources");
|
|
// Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
|
|
// requires the array) to play nice here.
|
|
var a=i.getArg(n,"names",[]);var u=i.getArg(n,"sourceRoot",null);var l=i.getArg(n,"sourcesContent",null);var c=i.getArg(n,"mappings");var h=i.getArg(n,"file",null);
|
|
// Once again, Sass deviates from the spec and supplies the version as a
|
|
// string rather than a number, so we use loose equality checking here.
|
|
if(r!=this._version){throw new Error("Unsupported version: "+r)}if(u){u=i.normalize(u)}o=o.map(String).map(i.normalize).map(function(e){return u&&i.isAbsolute(u)&&i.isAbsolute(e)?i.relative(u,e):e});
|
|
// Pass `true` below to allow duplicate names and sources. While source maps
|
|
// are intended to be compressed and deduplicated, the TypeScript compiler
|
|
// sometimes generates source maps with duplicates in them. See Github issue
|
|
// #72 and bugzil.la/889492.
|
|
this._names=s.fromArray(a.map(String),true);this._sources=s.fromArray(o,true);this._absoluteSources=this._sources.toArray().map(function(e){return i.computeSourceURL(u,e,t)});this.sourceRoot=u;this.sourcesContent=l;this._mappings=c;this._sourceMapURL=t;this.file=h}l.prototype=Object.create(u.prototype);l.prototype.consumer=u;/**
|
|
* Utility function to find the index of a source. Returns -1 if not
|
|
* found.
|
|
*/
|
|
l.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this._sources.indexOf(t)}
|
|
// Maybe aSource is an absolute URL as returned by |sources|. In
|
|
// this case we can't simply undo the transform.
|
|
var n;for(n=0;n<this._absoluteSources.length;++n){if(this._absoluteSources[n]==e){return n}}return-1};/**
|
|
* Create a BasicSourceMapConsumer from a SourceMapGenerator.
|
|
*
|
|
* @param SourceMapGenerator aSourceMap
|
|
* The source map that will be consumed.
|
|
* @param String aSourceMapURL
|
|
* The URL at which the source map can be found (optional)
|
|
* @returns BasicSourceMapConsumer
|
|
*/
|
|
l.fromSourceMap=function m(e,t){var n=Object.create(l.prototype);var r=n._names=s.fromArray(e._names.toArray(),true);var o=n._sources=s.fromArray(e._sources.toArray(),true);n.sourceRoot=e._sourceRoot;n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot);n.file=e._file;n._sourceMapURL=t;n._absoluteSources=n._sources.toArray().map(function(e){return i.computeSourceURL(n.sourceRoot,e,t)});
|
|
// Because we are modifying the entries (by converting string sources and
|
|
// names to indices into the sources and names ArraySets), we have to make
|
|
// a copy of the entry or else bad things happen. Shared mutable state
|
|
// strikes again! See github issue #191.
|
|
var u=e._mappings.toArray().slice();var h=n.__generatedMappings=[];var f=n.__originalMappings=[];for(var p=0,d=u.length;p<d;p++){var g=u[p];var m=new c;m.generatedLine=g.generatedLine;m.generatedColumn=g.generatedColumn;if(g.source){m.source=o.indexOf(g.source);m.originalLine=g.originalLine;m.originalColumn=g.originalColumn;if(g.name){m.name=r.indexOf(g.name)}f.push(m)}h.push(m)}a(n.__originalMappings,i.compareByOriginalPositions);return n};/**
|
|
* The version of the source mapping spec that we are consuming.
|
|
*/
|
|
l.prototype._version=3;/**
|
|
* The list of original sources.
|
|
*/
|
|
Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});/**
|
|
* Provide the JIT with a nice shape / hidden class.
|
|
*/
|
|
function c(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}/**
|
|
* Parse the mappings in a string in to a data structure which we can easily
|
|
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
* `this.__originalMappings` properties).
|
|
*/
|
|
l.prototype._parseMappings=function y(e,t){var n=1;var r=0;var s=0;var u=0;var l=0;var h=0;var f=e.length;var p=0;var d={};var g={};var m=[];var y=[];var v,b,w,k,L;while(p<f){if(e.charAt(p)===";"){n++;p++;r=0}else if(e.charAt(p)===","){p++}else{v=new c;v.generatedLine=n;
|
|
// Because each offset is encoded relative to the previous one,
|
|
// many segments often have the same encoding. We can exploit this
|
|
// fact by caching the parsed variable length fields of each segment,
|
|
// allowing us to avoid a second parse if we encounter the same
|
|
// segment again.
|
|
for(k=p;k<f;k++){if(this._charIsMappingSeparator(e,k)){break}}b=e.slice(p,k);w=d[b];if(w){p+=b.length}else{w=[];while(p<k){o.decode(e,p,g);L=g.value;p=g.rest;w.push(L)}if(w.length===2){throw new Error("Found a source, but no line and column")}if(w.length===3){throw new Error("Found a source and line, but no column")}d[b]=w}
|
|
// Generated column.
|
|
v.generatedColumn=r+w[0];r=v.generatedColumn;if(w.length>1){
|
|
// Original source.
|
|
v.source=l+w[1];l+=w[1];
|
|
// Original line.
|
|
v.originalLine=s+w[2];s=v.originalLine;
|
|
// Lines are stored 0-based
|
|
v.originalLine+=1;
|
|
// Original column.
|
|
v.originalColumn=u+w[3];u=v.originalColumn;if(w.length>4){
|
|
// Original name.
|
|
v.name=h+w[4];h+=w[4]}}y.push(v);if(typeof v.originalLine==="number"){m.push(v)}}}a(y,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;a(m,i.compareByOriginalPositions);this.__originalMappings=m};/**
|
|
* Find the mapping that best matches the hypothetical "needle" mapping that
|
|
* we are searching for in the given "haystack" of mappings.
|
|
*/
|
|
l.prototype._findMapping=function v(e,t,n,i,s,o){
|
|
// To return the position we are searching for, we must first find the
|
|
// mapping for the given position and then return the opposite position it
|
|
// points to. Because the mappings are sorted, we can use binary search to
|
|
// find the best mapping.
|
|
if(e[n]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[n])}if(e[i]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[i])}return r.search(e,t,s,o)};/**
|
|
* Compute the last column for each generated mapping. The last column is
|
|
* inclusive.
|
|
*/
|
|
l.prototype.computeColumnSpans=function b(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];
|
|
// Mappings do not contain a field for the last generated columnt. We
|
|
// can come up with an optimistic estimate, however, by assuming that
|
|
// mappings are contiguous (i.e. given two consecutive mappings, the
|
|
// first mapping ends where the second one starts).
|
|
if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}
|
|
// The last mapping for each line spans the entire line.
|
|
t.lastGeneratedColumn=Infinity}};/**
|
|
* Returns the original source, line, and column information for the generated
|
|
* source's line and column positions provided. The only argument is an object
|
|
* with the following properties:
|
|
*
|
|
* - line: The line number in the generated source. The line number
|
|
* is 1-based.
|
|
* - column: The column number in the generated source. The column
|
|
* number is 0-based.
|
|
* - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
|
|
* 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
* closest element that is smaller than or greater than the one we are
|
|
* searching for, respectively, if the exact element cannot be found.
|
|
* Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
|
|
*
|
|
* and an object is returned with the following properties:
|
|
*
|
|
* - source: The original source file, or null.
|
|
* - line: The line number in the original source, or null. The
|
|
* line number is 1-based.
|
|
* - column: The column number in the original source, or null. The
|
|
* column number is 0-based.
|
|
* - name: The original identifier, or null.
|
|
*/
|
|
l.prototype.originalPositionFor=function w(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var s=i.getArg(r,"source",null);if(s!==null){s=this._sources.at(s);s=i.computeSourceURL(this.sourceRoot,s,this._sourceMapURL)}var o=i.getArg(r,"name",null);if(o!==null){o=this._names.at(o)}return{source:s,line:i.getArg(r,"originalLine",null),column:i.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};/**
|
|
* Return true if we have the source content for every source in the source
|
|
* map, false otherwise.
|
|
*/
|
|
l.prototype.hasContentsOfAllSources=function k(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null})};/**
|
|
* Returns the original source content. The only argument is the url of the
|
|
* original source file. Returns null if no original source content is
|
|
* available.
|
|
*/
|
|
l.prototype.sourceContentFor=function L(e,t){if(!this.sourcesContent){return null}var n=this._findSourceIndex(e);if(n>=0){return this.sourcesContent[n]}var r=e;if(this.sourceRoot!=null){r=i.relative(this.sourceRoot,r)}var s;if(this.sourceRoot!=null&&(s=i.urlParse(this.sourceRoot))){
|
|
// XXX: file:// URIs and absolute paths lead to unexpected behavior for
|
|
// many users. We can help them out when they expect file:// URIs to
|
|
// behave like it would if they were running a local HTTP server. See
|
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
|
|
var o=r.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o)){return this.sourcesContent[this._sources.indexOf(o)]}if((!s.path||s.path=="/")&&this._sources.has("/"+r)){return this.sourcesContent[this._sources.indexOf("/"+r)]}}
|
|
// This function is used recursively from
|
|
// IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
|
|
// don't want to throw if we can't find the source - we just want to
|
|
// return null, so we provide a flag to exit gracefully.
|
|
if(t){return null}else{throw new Error('"'+r+'" is not in the SourceMap.')}};/**
|
|
* Returns the generated line and column information for the original source,
|
|
* line, and column positions provided. The only argument is an object with
|
|
* the following properties:
|
|
*
|
|
* - source: The filename of the original source.
|
|
* - line: The line number in the original source. The line number
|
|
* is 1-based.
|
|
* - column: The column number in the original source. The column
|
|
* number is 0-based.
|
|
* - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
|
|
* 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
|
|
* closest element that is smaller than or greater than the one we are
|
|
* searching for, respectively, if the exact element cannot be found.
|
|
* Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
|
|
*
|
|
* and an object is returned with the following properties:
|
|
*
|
|
* - line: The line number in the generated source, or null. The
|
|
* line number is 1-based.
|
|
* - column: The column number in the generated source, or null.
|
|
* The column number is 0-based.
|
|
*/
|
|
l.prototype.generatedPositionFor=function A(e){var t=i.getArg(e,"source");t=this._findSourceIndex(t);if(t<0){return{line:null,column:null,lastColumn:null}}var n={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(r>=0){var s=this._originalMappings[r];if(s.source===n.source){return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};n.BasicSourceMapConsumer=l;/**
|
|
* An IndexedSourceMapConsumer instance represents a parsed source map which
|
|
* we can query for information. It differs from BasicSourceMapConsumer in
|
|
* that it takes "indexed" source maps (i.e. ones with a "sections" field) as
|
|
* input.
|
|
*
|
|
* The first parameter is a raw source map (either as a JSON string, or already
|
|
* parsed to an object). According to the spec for indexed source maps, they
|
|
* have the following attributes:
|
|
*
|
|
* - version: Which version of the source map spec this map is following.
|
|
* - file: Optional. The generated file this source map is associated with.
|
|
* - sections: A list of section definitions.
|
|
*
|
|
* Each value under the "sections" field has two fields:
|
|
* - offset: The offset into the original specified at which this section
|
|
* begins to apply, defined as an object with a "line" and "column"
|
|
* field.
|
|
* - map: A source map definition. This source map could also be indexed,
|
|
* but doesn't have to be.
|
|
*
|
|
* Instead of the "map" field, it's also possible to have a "url" field
|
|
* specifying a URL to retrieve a source map from, but that's currently
|
|
* unsupported.
|
|
*
|
|
* Here's an example source map, taken from the source map spec[0], but
|
|
* modified to omit a section which uses the "url" field.
|
|
*
|
|
* {
|
|
* version : 3,
|
|
* file: "app.js",
|
|
* sections: [{
|
|
* offset: {line:100, column:10},
|
|
* map: {
|
|
* version : 3,
|
|
* file: "section.js",
|
|
* sources: ["foo.js", "bar.js"],
|
|
* names: ["src", "maps", "are", "fun"],
|
|
* mappings: "AAAA,E;;ABCDE;"
|
|
* }
|
|
* }],
|
|
* }
|
|
*
|
|
* The second parameter, if given, is a string whose value is the URL
|
|
* at which the source map was found. This URL is used to compute the
|
|
* sources array.
|
|
*
|
|
* [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
|
|
*/
|
|
function h(e,t){var n=e;if(typeof e==="string"){n=i.parseSourceMapInput(e)}var r=i.getArg(n,"version");var o=i.getArg(n,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new s;this._names=new s;var a={line:-1,column:0};this._sections=o.map(function(e){if(e.url){
|
|
// The url field will require support for asynchronicity.
|
|
// See https://github.com/mozilla/source-map/issues/16
|
|
throw new Error("Support for url field in sections not implemented.")}var n=i.getArg(e,"offset");var r=i.getArg(n,"line");var s=i.getArg(n,"column");if(r<a.line||r===a.line&&s<a.column){throw new Error("Section offsets must be ordered and non-overlapping.")}a=n;return{generatedOffset:{
|
|
// The offset fields are 0-based, but we use 1-based indices when
|
|
// encoding/decoding from VLQ.
|
|
generatedLine:r+1,generatedColumn:s+1},consumer:new u(i.getArg(e,"map"),t)}})}h.prototype=Object.create(u.prototype);h.prototype.constructor=u;/**
|
|
* The version of the source mapping spec that we are consuming.
|
|
*/
|
|
h.prototype._version=3;/**
|
|
* The list of original sources.
|
|
*/
|
|
Object.defineProperty(h.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var n=0;n<this._sections[t].consumer.sources.length;n++){e.push(this._sections[t].consumer.sources[n])}}return e}});/**
|
|
* Returns the original source, line, and column information for the generated
|
|
* source's line and column positions provided. The only argument is an object
|
|
* with the following properties:
|
|
*
|
|
* - line: The line number in the generated source. The line number
|
|
* is 1-based.
|
|
* - column: The column number in the generated source. The column
|
|
* number is 0-based.
|
|
*
|
|
* and an object is returned with the following properties:
|
|
*
|
|
* - source: The original source file, or null.
|
|
* - line: The line number in the original source, or null. The
|
|
* line number is 1-based.
|
|
* - column: The column number in the original source, or null. The
|
|
* column number is 0-based.
|
|
* - name: The original identifier, or null.
|
|
*/
|
|
h.prototype.originalPositionFor=function E(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};
|
|
// Find the section containing the generated position we're trying to map
|
|
// to an original position.
|
|
var n=r.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;if(n){return n}return e.generatedColumn-t.generatedOffset.generatedColumn});var s=this._sections[n];if(!s){return{source:null,line:null,column:null,name:null}}return s.consumer.originalPositionFor({line:t.generatedLine-(s.generatedOffset.generatedLine-1),column:t.generatedColumn-(s.generatedOffset.generatedLine===t.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias})};/**
|
|
* Return true if we have the source content for every source in the source
|
|
* map, false otherwise.
|
|
*/
|
|
h.prototype.hasContentsOfAllSources=function C(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};/**
|
|
* Returns the original source content. The only argument is the url of the
|
|
* original source file. Returns null if no original source content is
|
|
* available.
|
|
*/
|
|
h.prototype.sourceContentFor=function S(e,t){for(var n=0;n<this._sections.length;n++){var i=this._sections[n];var r=i.consumer.sourceContentFor(e,true);if(r){return r}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};/**
|
|
* Returns the generated line and column information for the original source,
|
|
* line, and column positions provided. The only argument is an object with
|
|
* the following properties:
|
|
*
|
|
* - source: The filename of the original source.
|
|
* - line: The line number in the original source. The line number
|
|
* is 1-based.
|
|
* - column: The column number in the original source. The column
|
|
* number is 0-based.
|
|
*
|
|
* and an object is returned with the following properties:
|
|
*
|
|
* - line: The line number in the generated source, or null. The
|
|
* line number is 1-based.
|
|
* - column: The column number in the generated source, or null.
|
|
* The column number is 0-based.
|
|
*/
|
|
h.prototype.generatedPositionFor=function R(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];
|
|
// Only consider this section if the requested source is in the list of
|
|
// sources of the consumer.
|
|
if(n.consumer._findSourceIndex(i.getArg(e,"source"))===-1){continue}var r=n.consumer.generatedPositionFor(e);if(r){var s={line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)};return s}}return{line:null,column:null}};/**
|
|
* Parse the mappings in a string in to a data structure which we can easily
|
|
* query (the ordered arrays in the `this.__generatedMappings` and
|
|
* `this.__originalMappings` properties).
|
|
*/
|
|
h.prototype._parseMappings=function N(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var n=0;n<this._sections.length;n++){var r=this._sections[n];var s=r.consumer._generatedMappings;for(var o=0;o<s.length;o++){var u=s[o];var l=r.consumer._sources.at(u.source);l=i.computeSourceURL(r.consumer.sourceRoot,l,this._sourceMapURL);this._sources.add(l);l=this._sources.indexOf(l);var c=null;if(u.name){c=r.consumer._names.at(u.name);this._names.add(c);c=this._names.indexOf(c)}
|
|
// The mappings coming from the consumer for the section have
|
|
// generated positions relative to the start of the section, so we
|
|
// need to offset them to be relative to the start of the concatenated
|
|
// generated file.
|
|
var h={source:l,generatedLine:u.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(r.generatedOffset.generatedLine===u.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:c};this.__generatedMappings.push(h);if(typeof h.originalLine==="number"){this.__originalMappings.push(h)}}}a(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);a(this.__originalMappings,i.compareByOriginalPositions)};n.IndexedSourceMapConsumer=h},{"./array-set":21,"./base64-vlq":22,"./binary-search":24,"./quick-sort":26,"./util":30}],28:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i=e("./base64-vlq");var r=e("./util");var s=e("./array-set").ArraySet;var o=e("./mapping-list").MappingList;/**
|
|
* An instance of the SourceMapGenerator represents a source map which is
|
|
* being built incrementally. You may pass an object with the following
|
|
* properties:
|
|
*
|
|
* - file: The filename of the generated source.
|
|
* - sourceRoot: A root for all relative URLs in this source map.
|
|
*/
|
|
function a(e){if(!e){e={}}this._file=r.getArg(e,"file",null);this._sourceRoot=r.getArg(e,"sourceRoot",null);this._skipValidation=r.getArg(e,"skipValidation",false);this._sources=new s;this._names=new s;this._mappings=new o;this._sourcesContents=null}a.prototype._version=3;/**
|
|
* Creates a new SourceMapGenerator based on a SourceMapConsumer
|
|
*
|
|
* @param aSourceMapConsumer The SourceMap.
|
|
*/
|
|
a.fromSourceMap=function u(e){var t=e.sourceRoot;var n=new a({file:e.file,sourceRoot:t});e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){i.source=e.source;if(t!=null){i.source=r.relative(t,i.source)}i.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){i.name=e.name}}n.addMapping(i)});e.sources.forEach(function(i){var s=i;if(t!==null){s=r.relative(t,i)}if(!n._sources.has(s)){n._sources.add(s)}var o=e.sourceContentFor(i);if(o!=null){n.setSourceContent(i,o)}});return n};/**
|
|
* Add a single mapping from original source line and column to the generated
|
|
* source's line and column for this source map being created. The mapping
|
|
* object should have the following properties:
|
|
*
|
|
* - generated: An object with the generated line and column positions.
|
|
* - original: An object with the original line and column positions.
|
|
* - source: The original source file (relative to the sourceRoot).
|
|
* - name: An optional original token name for this mapping.
|
|
*/
|
|
a.prototype.addMapping=function l(e){var t=r.getArg(e,"generated");var n=r.getArg(e,"original",null);var i=r.getArg(e,"source",null);var s=r.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,n,i,s)}if(i!=null){i=String(i);if(!this._sources.has(i)){this._sources.add(i)}}if(s!=null){s=String(s);if(!this._names.has(s)){this._names.add(s)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};/**
|
|
* Set the source content for a source file.
|
|
*/
|
|
a.prototype.setSourceContent=function c(e,t){var n=e;if(this._sourceRoot!=null){n=r.relative(this._sourceRoot,n)}if(t!=null){
|
|
// Add the source content to the _sourcesContents map.
|
|
// Create a new _sourcesContents map if the property is null.
|
|
if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[r.toSetString(n)]=t}else if(this._sourcesContents){
|
|
// Remove the source file from the _sourcesContents map.
|
|
// If the _sourcesContents map is empty, set the property to null.
|
|
delete this._sourcesContents[r.toSetString(n)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};/**
|
|
* Applies the mappings of a sub-source-map for a specific source file to the
|
|
* source map being generated. Each mapping to the supplied source file is
|
|
* rewritten using the supplied source map. Note: The resolution for the
|
|
* resulting mappings is the minimium of this map and the supplied map.
|
|
*
|
|
* @param aSourceMapConsumer The source map to be applied.
|
|
* @param aSourceFile Optional. The filename of the source file.
|
|
* If omitted, SourceMapConsumer's file property will be used.
|
|
* @param aSourceMapPath Optional. The dirname of the path to the source map
|
|
* to be applied. If relative, it is relative to the SourceMapConsumer.
|
|
* This parameter is needed when the two source maps aren't in the same
|
|
* directory, and the source map to be applied contains relative source
|
|
* paths. If so, those relative source paths need to be rewritten
|
|
* relative to the SourceMapGenerator.
|
|
*/
|
|
a.prototype.applySourceMap=function h(e,t,n){var i=t;
|
|
// If aSourceFile is omitted, we will use the file property of the SourceMap
|
|
if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}i=e.file}var o=this._sourceRoot;
|
|
// Make "sourceFile" relative if an absolute Url is passed.
|
|
if(o!=null){i=r.relative(o,i)}
|
|
// Applying the SourceMap can add and remove items from the sources and
|
|
// the names array.
|
|
var a=new s;var u=new s;
|
|
// Find mappings for the "sourceFile"
|
|
this._mappings.unsortedForEach(function(t){if(t.source===i&&t.originalLine!=null){
|
|
// Check if it can be mapped by the source map, then update the mapping.
|
|
var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(s.source!=null){
|
|
// Copy mapping
|
|
t.source=s.source;if(n!=null){t.source=r.join(n,t.source)}if(o!=null){t.source=r.relative(o,t.source)}t.originalLine=s.line;t.originalColumn=s.column;if(s.name!=null){t.name=s.name}}}var l=t.source;if(l!=null&&!a.has(l)){a.add(l)}var c=t.name;if(c!=null&&!u.has(c)){u.add(c)}},this);this._sources=a;this._names=u;
|
|
// Copy sourcesContents of applied map.
|
|
e.sources.forEach(function(t){var i=e.sourceContentFor(t);if(i!=null){if(n!=null){t=r.join(n,t)}if(o!=null){t=r.relative(o,t)}this.setSourceContent(t,i)}},this)};/**
|
|
* A mapping can have one of the three levels of data:
|
|
*
|
|
* 1. Just the generated position.
|
|
* 2. The Generated position, original position, and original source.
|
|
* 3. Generated and original position, original source, as well as a name
|
|
* token.
|
|
*
|
|
* To maintain consistency, we validate that any new mapping being added falls
|
|
* in to one of these categories.
|
|
*/
|
|
a.prototype._validateMapping=function f(e,t,n,i){
|
|
// When aOriginal is truthy but has empty values for .line and .column,
|
|
// it is most likely a programmer error. In this case we throw a very
|
|
// specific error message to try to guide them the right way.
|
|
// For example: https://github.com/Polymer/polymer-bundler/pull/519
|
|
if(t&&typeof t.line!=="number"&&typeof t.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!i){
|
|
// Case 1.
|
|
return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n){
|
|
// Cases 2 and 3.
|
|
return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:i}))}};/**
|
|
* Serialize the accumulated mappings in to the stream of base 64 VLQs
|
|
* specified by the source map format.
|
|
*/
|
|
a.prototype._serializeMappings=function p(){var e=0;var t=1;var n=0;var s=0;var o=0;var a=0;var u="";var l;var c;var h;var f;var p=this._mappings.toArray();for(var d=0,g=p.length;d<g;d++){c=p[d];l="";if(c.generatedLine!==t){e=0;while(c.generatedLine!==t){l+=";";t++}}else{if(d>0){if(!r.compareByGeneratedPositionsInflated(c,p[d-1])){continue}l+=","}}l+=i.encode(c.generatedColumn-e);e=c.generatedColumn;if(c.source!=null){f=this._sources.indexOf(c.source);l+=i.encode(f-a);a=f;
|
|
// lines are stored 0-based in SourceMap spec version 3
|
|
l+=i.encode(c.originalLine-1-s);s=c.originalLine-1;l+=i.encode(c.originalColumn-n);n=c.originalColumn;if(c.name!=null){h=this._names.indexOf(c.name);l+=i.encode(h-o);o=h}}u+=l}return u};a.prototype._generateSourcesContent=function d(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=r.relative(t,e)}var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)};/**
|
|
* Externalize the source map.
|
|
*/
|
|
a.prototype.toJSON=function g(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};/**
|
|
* Render the source map being generated to a string.
|
|
*/
|
|
a.prototype.toString=function m(){return JSON.stringify(this.toJSON())};n.SourceMapGenerator=a},{"./array-set":21,"./base64-vlq":22,"./mapping-list":25,"./util":30}],29:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
var i=e("./source-map-generator").SourceMapGenerator;var r=e("./util");
|
|
// Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
|
|
// operating systems these days (capturing the result).
|
|
var s=/(\r?\n)/;
|
|
// Newline character code for charCodeAt() comparisons
|
|
var o=10;
|
|
// Private symbol for identifying `SourceNode`s when multiple versions of
|
|
// the source-map library are loaded. This MUST NOT CHANGE across
|
|
// versions!
|
|
var a="$$$isSourceNode$$$";/**
|
|
* SourceNodes provide a way to abstract over interpolating/concatenating
|
|
* snippets of generated JavaScript source code while maintaining the line and
|
|
* column information associated with the original source code.
|
|
*
|
|
* @param aLine The original line number.
|
|
* @param aColumn The original column number.
|
|
* @param aSource The original source's filename.
|
|
* @param aChunks Optional. An array of strings which are snippets of
|
|
* generated JS, or other SourceNodes.
|
|
* @param aName The original identifier.
|
|
*/
|
|
function u(e,t,n,i,r){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=n==null?null:n;this.name=r==null?null:r;this[a]=true;if(i!=null)this.add(i)}/**
|
|
* Creates a SourceNode from generated code and a SourceMapConsumer.
|
|
*
|
|
* @param aGeneratedCode The generated code
|
|
* @param aSourceMapConsumer The SourceMap for the generated code
|
|
* @param aRelativePath Optional. The path that relative sources in the
|
|
* SourceMapConsumer should be relative to.
|
|
*/
|
|
u.fromStringWithSourceMap=function l(e,t,n){
|
|
// The SourceNode we want to fill with the generated code
|
|
// and the SourceMap
|
|
var i=new u;
|
|
// All even indices of this array are one line of the generated code,
|
|
// while all odd indices are the newlines between two adjacent lines
|
|
// (since `REGEX_NEWLINE` captures its match).
|
|
// Processed fragments are accessed by calling `shiftNextLine`.
|
|
var o=e.split(s);var a=0;var l=function(){var e=n();
|
|
// The last line of a file might not have a newline.
|
|
var t=n()||"";return e+t;function n(){return a<o.length?o[a++]:undefined}};
|
|
// We need to remember the position of "remainingLines"
|
|
var c=1,h=0;
|
|
// The generate SourceNodes we need a code range.
|
|
// To extract it current and last mapping is used.
|
|
// Here we store the last mapping.
|
|
var f=null;t.eachMapping(function(e){if(f!==null){
|
|
// We add the code from "lastMapping" to "mapping":
|
|
// First check if there is a new line in between.
|
|
if(c<e.generatedLine){
|
|
// Associate first line with "lastMapping"
|
|
p(f,l());c++;h=0}else{
|
|
// There is no new line in between.
|
|
// Associate the code between "lastGeneratedColumn" and
|
|
// "mapping.generatedColumn" with "lastMapping"
|
|
var t=o[a]||"";var n=t.substr(0,e.generatedColumn-h);o[a]=t.substr(e.generatedColumn-h);h=e.generatedColumn;p(f,n);
|
|
// No more remaining code, continue
|
|
f=e;return}}
|
|
// We add the generated code until the first mapping
|
|
// to the SourceNode without any mapping.
|
|
// Each line is added as separate string.
|
|
while(c<e.generatedLine){i.add(l());c++}if(h<e.generatedColumn){var t=o[a]||"";i.add(t.substr(0,e.generatedColumn));o[a]=t.substr(e.generatedColumn);h=e.generatedColumn}f=e},this);
|
|
// We have processed all mappings.
|
|
if(a<o.length){if(f){
|
|
// Associate the remaining code in the current line with "lastMapping"
|
|
p(f,l())}
|
|
// and add the remaining lines without any mapping
|
|
i.add(o.splice(a).join(""))}
|
|
// Copy sourcesContent into SourceNode
|
|
t.sources.forEach(function(e){var s=t.sourceContentFor(e);if(s!=null){if(n!=null){e=r.join(n,e)}i.setSourceContent(e,s)}});return i;function p(e,t){if(e===null||e.source===undefined){i.add(t)}else{var s=n?r.join(n,e.source):e.source;i.add(new u(e.originalLine,e.originalColumn,s,t,e.name))}}};/**
|
|
* Add a chunk of generated JS to this source node.
|
|
*
|
|
* @param aChunk A string snippet of generated JS code, another instance of
|
|
* SourceNode, or an array where each member is one of those things.
|
|
*/
|
|
u.prototype.add=function c(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[a]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};/**
|
|
* Add a chunk of generated JS to the beginning of this source node.
|
|
*
|
|
* @param aChunk A string snippet of generated JS code, another instance of
|
|
* SourceNode, or an array where each member is one of those things.
|
|
*/
|
|
u.prototype.prepend=function h(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[a]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};/**
|
|
* Walk over the tree of JS snippets in this node and its children. The
|
|
* walking function is called once for each snippet of JS and is passed that
|
|
* snippet and the its original associated source's line/column location.
|
|
*
|
|
* @param aFn The traversal function.
|
|
*/
|
|
u.prototype.walk=function f(e){var t;for(var n=0,i=this.children.length;n<i;n++){t=this.children[n];if(t[a]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};/**
|
|
* Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
|
|
* each of `this.children`.
|
|
*
|
|
* @param aSep The separator.
|
|
*/
|
|
u.prototype.join=function p(e){var t;var n;var i=this.children.length;if(i>0){t=[];for(n=0;n<i-1;n++){t.push(this.children[n]);t.push(e)}t.push(this.children[n]);this.children=t}return this};/**
|
|
* Call String.prototype.replace on the very right-most source snippet. Useful
|
|
* for trimming whitespace from the end of a source node, etc.
|
|
*
|
|
* @param aPattern The pattern to replace.
|
|
* @param aReplacement The thing to replace the pattern with.
|
|
*/
|
|
u.prototype.replaceRight=function d(e,t){var n=this.children[this.children.length-1];if(n[a]){n.replaceRight(e,t)}else if(typeof n==="string"){this.children[this.children.length-1]=n.replace(e,t)}else{this.children.push("".replace(e,t))}return this};/**
|
|
* Set the source content for a source file. This will be added to the SourceMapGenerator
|
|
* in the sourcesContent field.
|
|
*
|
|
* @param aSourceFile The filename of the source file
|
|
* @param aSourceContent The content of the source file
|
|
*/
|
|
u.prototype.setSourceContent=function g(e,t){this.sourceContents[r.toSetString(e)]=t};/**
|
|
* Walk over the tree of SourceNodes. The walking function is called for each
|
|
* source file content and is passed the filename and source content.
|
|
*
|
|
* @param aFn The traversal function.
|
|
*/
|
|
u.prototype.walkSourceContents=function m(e){for(var t=0,n=this.children.length;t<n;t++){if(this.children[t][a]){this.children[t].walkSourceContents(e)}}var i=Object.keys(this.sourceContents);for(var t=0,n=i.length;t<n;t++){e(r.fromSetString(i[t]),this.sourceContents[i[t]])}};/**
|
|
* Return the string representation of this source node. Walks over the tree
|
|
* and concatenates all the various snippets together to one string.
|
|
*/
|
|
u.prototype.toString=function y(){var e="";this.walk(function(t){e+=t});return e};/**
|
|
* Returns the string representation of this source node along with a source
|
|
* map.
|
|
*/
|
|
u.prototype.toStringWithSourceMap=function v(e){var t={code:"",line:1,column:0};var n=new i(e);var r=false;var s=null;var a=null;var u=null;var l=null;this.walk(function(e,i){t.code+=e;if(i.source!==null&&i.line!==null&&i.column!==null){if(s!==i.source||a!==i.line||u!==i.column||l!==i.name){n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})}s=i.source;a=i.line;u=i.column;l=i.name;r=true}else if(r){n.addMapping({generated:{line:t.line,column:t.column}});s=null;r=false}for(var c=0,h=e.length;c<h;c++){if(e.charCodeAt(c)===o){t.line++;t.column=0;
|
|
// Mappings end at eol
|
|
if(c+1===h){s=null;r=false}else if(r){n.addMapping({source:i.source,original:{line:i.line,column:i.column},generated:{line:t.line,column:t.column},name:i.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){n.setSourceContent(e,t)});return{code:t.code,map:n}};n.SourceNode=u},{"./source-map-generator":28,"./util":30}],30:[function(e,t,n){/* -*- Mode: js; js-indent-level: 2; -*- */
|
|
/*
|
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
/**
|
|
* This is a helper function for getting values from parameter/options
|
|
* objects.
|
|
*
|
|
* @param args The object we are extracting values from
|
|
* @param name The name of the property we are getting.
|
|
* @param defaultValue An optional value to return if the property is missing
|
|
* from the object. If this is not specified and the property is missing, an
|
|
* error will be thrown.
|
|
*/
|
|
function i(e,t,n){if(t in e){return e[t]}else if(arguments.length===3){return n}else{throw new Error('"'+t+'" is a required argument.')}}n.getArg=i;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;var s=/^data:.+\,.+$/;function o(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}n.urlParse=o;function a(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}n.urlGenerate=a;/**
|
|
* Normalizes a path, or the path portion of a URL:
|
|
*
|
|
* - Replaces consecutive slashes with one slash.
|
|
* - Removes unnecessary '.' parts.
|
|
* - Removes unnecessary '<dir>/..' parts.
|
|
*
|
|
* Based on code in the Node.js 'path' core module.
|
|
*
|
|
* @param aPath The path or url to normalize.
|
|
*/
|
|
function u(e){var t=e;var i=o(e);if(i){if(!i.path){return e}t=i.path}var r=n.isAbsolute(t);var s=t.split(/\/+/);for(var u,l=0,c=s.length-1;c>=0;c--){u=s[c];if(u==="."){s.splice(c,1)}else if(u===".."){l++}else if(l>0){if(u===""){
|
|
// The first part is blank if the path is absolute. Trying to go
|
|
// above the root is a no-op. Therefore we can remove all '..' parts
|
|
// directly after the root.
|
|
s.splice(c+1,l);l=0}else{s.splice(c,2);l--}}}t=s.join("/");if(t===""){t=r?"/":"."}if(i){i.path=t;return a(i)}return t}n.normalize=u;/**
|
|
* Joins two paths/URLs.
|
|
*
|
|
* @param aRoot The root path or URL.
|
|
* @param aPath The path or URL to be joined with the root.
|
|
*
|
|
* - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
|
|
* scheme-relative URL: Then the scheme of aRoot, if any, is prepended
|
|
* first.
|
|
* - Otherwise aPath is a path. If aRoot is a URL, then its path portion
|
|
* is updated with the result and aRoot is returned. Otherwise the result
|
|
* is returned.
|
|
* - If aPath is absolute, the result is aPath.
|
|
* - Otherwise the two paths are joined with a slash.
|
|
* - Joining for example 'http://' and 'www.example.com' is also supported.
|
|
*/
|
|
function l(e,t){if(e===""){e="."}if(t===""){t="."}var n=o(t);var i=o(e);if(i){e=i.path||"/"}
|
|
// `join(foo, '//www.example.org')`
|
|
if(n&&!n.scheme){if(i){n.scheme=i.scheme}return a(n)}if(n||t.match(s)){return t}
|
|
// `join('http://', 'www.example.com')`
|
|
if(i&&!i.host&&!i.path){i.host=t;return a(i)}var r=t.charAt(0)==="/"?t:u(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=r;return a(i)}return r}n.join=l;n.isAbsolute=function(e){return e.charAt(0)==="/"||r.test(e)};/**
|
|
* Make a path relative to a URL or another path.
|
|
*
|
|
* @param aRoot The root path or URL.
|
|
* @param aPath The path or URL to be made relative to aRoot.
|
|
*/
|
|
function c(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");
|
|
// It is possible for the path to be above the root. In this case, simply
|
|
// checking whether the root is a prefix of the path won't work. Instead, we
|
|
// need to remove components from the root one by one, until either we find
|
|
// a prefix that fits, or we run out of components to remove.
|
|
var n=0;while(t.indexOf(e+"/")!==0){var i=e.lastIndexOf("/");if(i<0){return t}
|
|
// If the only part of the root that is left is the scheme (i.e. http://,
|
|
// file:///, etc.), one or more slashes (/), or simply nothing at all, we
|
|
// have exhausted all components, so the path is not relative to the root.
|
|
e=e.slice(0,i);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++n}
|
|
// Make sure we add a "../" for each component we removed from the root.
|
|
return Array(n+1).join("../")+t.substr(e.length+1)}n.relative=c;var h=function(){var e=Object.create(null);return!("__proto__"in e)}();function f(e){return e}/**
|
|
* Because behavior goes wacky when you set `__proto__` on objects, we
|
|
* have to prefix all the strings in our set with an arbitrary character.
|
|
*
|
|
* See https://github.com/mozilla/source-map/pull/31 and
|
|
* https://github.com/mozilla/source-map/issues/30
|
|
*
|
|
* @param String aStr
|
|
*/
|
|
function p(e){if(g(e)){return"$"+e}return e}n.toSetString=h?f:p;function d(e){if(g(e)){return e.slice(1)}return e}n.fromSetString=h?f:d;function g(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var n=t-10;n>=0;n--){if(e.charCodeAt(n)!==36){return false}}return true}/**
|
|
* Comparator between two mappings where the original positions are compared.
|
|
*
|
|
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
|
* mappings with the same original source/line/column, but different generated
|
|
* line and column the same. Useful when searching for a mapping with a
|
|
* stubbed out mapping.
|
|
*/
|
|
function m(e,t,n){var i=v(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0||n){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0){return i}i=e.generatedLine-t.generatedLine;if(i!==0){return i}return v(e.name,t.name)}n.compareByOriginalPositions=m;/**
|
|
* Comparator between two mappings with deflated source and name indices where
|
|
* the generated positions are compared.
|
|
*
|
|
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
|
* mappings with the same generated line and column, but different
|
|
* source/name/original line and column the same. Useful when searching for a
|
|
* mapping with a stubbed out mapping.
|
|
*/
|
|
function y(e,t,n){var i=e.generatedLine-t.generatedLine;if(i!==0){return i}i=e.generatedColumn-t.generatedColumn;if(i!==0||n){return i}i=v(e.source,t.source);if(i!==0){return i}i=e.originalLine-t.originalLine;if(i!==0){return i}i=e.originalColumn-t.originalColumn;if(i!==0){return i}return v(e.name,t.name)}n.compareByGeneratedPositionsDeflated=y;function v(e,t){if(e===t){return 0}if(e===null){return 1}if(t===null){return-1}if(e>t){return 1}return-1}/**
|
|
* Comparator between two mappings with inflated source and name strings where
|
|
* the generated positions are compared.
|
|
*/
|
|
function b(e,t){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=v(e.source,t.source);if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return v(e.name,t.name)}n.compareByGeneratedPositionsInflated=b;/**
|
|
* Strip any JSON XSSI avoidance prefix from the string (as documented
|
|
* in the source maps specification), and then parse the string as
|
|
* JSON.
|
|
*/
|
|
function w(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}n.parseSourceMapInput=w;/**
|
|
* Compute the URL of a source given the the source root, the source's
|
|
* URL, and the source map's URL.
|
|
*/
|
|
function k(e,t,n){t=t||"";if(e){
|
|
// This follows what Chrome does.
|
|
if(e[e.length-1]!=="/"&&t[0]!=="/"){e+="/"}
|
|
// The spec says:
|
|
// Line 4: An optional source root, useful for relocating source
|
|
// files on a server or removing repeated values in the
|
|
// “sources” entry. This value is prepended to the individual
|
|
// entries in the “source” field.
|
|
t=e+t}
|
|
// Historically, SourceMapConsumer did not take the sourceMapURL as
|
|
// a parameter. This mode is still somewhat supported, which is why
|
|
// this code block is conditional. However, it's preferable to pass
|
|
// the source map URL to SourceMapConsumer, so that this function
|
|
// can implement the source URL resolution algorithm as outlined in
|
|
// the spec. This block is basically the equivalent of:
|
|
// new URL(sourceURL, sourceMapURL).toString()
|
|
// ... except it avoids using URL, which wasn't available in the
|
|
// older releases of node still supported by this library.
|
|
//
|
|
// The spec says:
|
|
// If the sources are not absolute URLs after prepending of the
|
|
// “sourceRoot”, the sources are resolved relative to the
|
|
// SourceMap (like resolving script src in a html document).
|
|
if(n){var i=o(n);if(!i){throw new Error("sourceMapURL could not be parsed")}if(i.path){
|
|
// Strip the last path component, but keep the "/".
|
|
var r=i.path.lastIndexOf("/");if(r>=0){i.path=i.path.substring(0,r+1)}}t=l(a(i),t)}return u(t)}n.computeSourceURL=k},{}],31:[function(e,t,n){/*
|
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
*/
|
|
n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator;n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer;n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":27,"./lib/source-map-generator":28,"./lib/source-node":29}],livescript:[function(e,t,n){
|
|
// Generated by LiveScript 1.6.1
|
|
var i;i=e("./index");i.stab=function(e,t,n){var r;try{i.run(e,{filename:n,map:"embedded"})}catch(s){r=s}if(typeof t=="function"){t(r)}};i.load=function(e,t){var n;n=new XMLHttpRequest;n.open("GET",e,true);if("overrideMimeType"in n){n.overrideMimeType("text/plain")}n.onreadystatechange=function(){var r;if(n.readyState===4){if((r=n.status)===200||r===0){i.stab(n.responseText,t,e)}else{if(typeof t=="function"){t(Error(e+": "+n.status+" "+n.statusText))}}}};n.send(null);return n};i.go=function(){var e,t,n,r,s,o,a;e=/^(?:text\/|application\/)?ls$/i;t=function(e){e&&setTimeout(function(){throw e})};for(n=0,s=(r=document.getElementsByTagName("script")).length;n<s;++n){o=r[n];if(e.test(o.type)){if(a=o.src){i.load(a,t)}else{i.stab(o.innerHTML,t,o.id)}}}};t.exports=i},{"./index":2}]},{},[]);
|