vue-bokeh
Version:
A wrapper around bokehjs embedded
7 lines • 179 kB
JavaScript
!function(){var define=void 0;return function(e,t,n){if("undefined"==typeof Bokeh)throw new Error("Cannot find Bokeh. You have to load it prior to loading plugins.");var i=Bokeh._;for(var r in e)Bokeh.require.modules[r]=e[r];for(var s=0;s<n.length;s++){var o=Bokeh.require(n[s]);i.isObject(o.models)&&Bokeh.Models.register_locations(o.models),i.extend(Bokeh,i.omit(o,"models"))}}({"compiler/main":[function(e,t,n){var i,r;i=e("coffee-script"),r=e("eco")},{"coffee-script":"coffee-script",eco:"eco/lib/index"}],"browserify/lib/_empty":[function(e,t,n){},{}],"browserify/node_modules/path-browserify/index":[function(e,t,n){(function(e){
// Copyright Joyent, Inc. and other Node contributors.
// distribute, sublicense, and/or sell copies of the Software, and to permit
// The above copyright notice and this permission notice shall be included
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
function t(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s=function(e){return r.exec(e).slice(1)};n.resolve=function(){for(var n="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o=s>=0?arguments[s]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(n=o+"/"+n,r="/"===o.charAt(0))}return n=t(i(n.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),s="/"===o(e,-1);return e=t(i(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&s&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function i(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var r=i(e.split("/")),s=i(t.split("/")),o=Math.min(r.length,s.length),a=o,c=0;c<o;c++)if(r[c]!==s[c]){a=c;break}for(var l=[],c=a;c<r.length;c++)l.push("..");return l=l.concat(s.slice(a)),l.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=s(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},n.basename=function(e,t){var n=s(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return s(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:"_process"}],_process:[function(e,t,n){function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(u===setTimeout)return setTimeout(e,0);if((u===i||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?m=d.concat(m):b=-1,m.length&&c())}function c(){if(!g){var e=s(a);g=!0;for(var t=m.length;t;){for(d=m,m=[];++b<t;)d&&d[b].run();b=-1,t=m.length}d=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function h(){}var u,p,f=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:i}catch(e){u=i}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,m=[],g=!1,b=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||g||s(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=h,f.addListener=h,f.once=h,f.off=h,f.removeListener=h,f.removeAllListeners=h,f.emit=h,f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],"browserify/node_modules/vm-browserify/index":[function(require,module,exports){function Context(){}var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){return this instanceof Script?void(this.code=e):new Script(e)};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var n=t.contentWindow,i=n.eval,r=n.execScript;!i&&r&&(r.call(n,"null"),i=n.eval),forEach(Object_keys(e),function(t){n[t]=e[t]}),forEach(globals,function(t){e[t]&&(n[t]=e[t])});var s=Object_keys(n),o=i.call(n,this.code);return forEach(Object_keys(n),function(t){(t in e||indexOf(s,t)===-1)&&(e[t]=n[t])}),forEach(globals,function(t){t in e||defineProp(e,t,n[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),n=this.runInContext(t);return forEach(Object_keys(t),function(n){e[n]=t[n]}),n},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var n=Script(t);return n[e].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(n){t[n]=e[n]}),t}},{indexof:"browserify/node_modules/vm-browserify/node_modules/indexof/index"}],"browserify/node_modules/vm-browserify/node_modules/indexof/index":[function(e,t,n){var i=[].indexOf;t.exports=function(e,t){if(i)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],"coffee-script":[function(e,t,n){(function(t,i){(function(){var r,s,o,a,c,l,h,u,p,f,d,m,g,b,y,v,k,w,T={}.hasOwnProperty,C=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};if(h=e("fs"),k=e("vm"),b=e("path"),r=e("./lexer").Lexer,g=e("./parser").parser,p=e("./helpers"),s=e("./sourcemap"),n.VERSION="1.10.0",n.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"],n.helpers=p,w=function(e){return function(t,n){var i,r;null==n&&(n={});try{return e.call(this,t,n)}catch(r){if(i=r,"string"!=typeof t)throw i;throw p.updateSyntaxError(i,t,n.filename)}}},n.compile=a=w(function(e,t){var n,i,r,o,a,c,l,h,u,f,d,b,y,v,k;for(b=p.merge,o=p.extend,t=o({},t),t.sourceMap&&(d=new s),k=m.tokenize(e,t),t.referencedVars=function(){var e,t,n;for(n=[],e=0,t=k.length;e<t;e++)v=k[e],v.variable&&n.push(v[1]);return n}(),c=g.parse(k).compileToFragments(t),r=0,t.header&&(r+=1),t.shiftLine&&(r+=1),i=0,u="",h=0,f=c.length;h<f;h++)a=c[h],t.sourceMap&&(a.locationData&&!/^[;\s]*$/.test(a.code)&&d.add([a.locationData.first_line,a.locationData.first_column],[r,i],{noReplace:!0}),y=p.count(a.code,"\n"),r+=y,y?i=a.code.length-(a.code.lastIndexOf("\n")+1):i+=a.code.length),u+=a.code;return t.header&&(l="Generated by CoffeeScript "+this.VERSION,u="// "+l+"\n"+u),t.sourceMap?(n={js:u},n.sourceMap=d,n.v3SourceMap=d.generate(t,e),n):u}),n.tokens=w(function(e,t){return m.tokenize(e,t)}),n.nodes=w(function(e,t){return"string"==typeof e?g.parse(m.tokenize(e,t)):g.parse(e)}),n.run=function(n,i){var r,s,o,c;return null==i&&(i={}),o=e.main,o.filename=t.argv[1]=i.filename?h.realpathSync(i.filename):".",o.moduleCache&&(o.moduleCache={}),s=i.filename?b.dirname(h.realpathSync(i.filename)):h.realpathSync("."),o.paths=e("module")._nodeModulePaths(s),p.isCoffee(o.filename)&&!e.extensions||(r=a(n,i),n=null!=(c=r.js)?c:r),o._compile(n,o.filename)},n.eval=function(n,r){var s,o,c,l,h,u,p,f,d,m,g,y,v,w,C,E,x;if(null==r&&(r={}),n=n.trim()){if(l=null!=(y=k.Script.createContext)?y:k.createContext,u=null!=(v=k.isContext)?v:function(e){return r.sandbox instanceof l().constructor},l){if(null!=r.sandbox){if(u(r.sandbox))E=r.sandbox;else{E=l(),w=r.sandbox;for(f in w)T.call(w,f)&&(x=w[f],E[f]=x)}E.global=E.root=E.GLOBAL=E}else E=i;if(E.__filename=r.filename||"eval",E.__dirname=b.dirname(E.__filename),E===i&&!E.module&&!E.require){for(s=e("module"),E.module=o=new s(r.modulename||"eval"),E.require=c=function(e){return s._load(e,o,!0)},o.filename=E.__filename,C=Object.getOwnPropertyNames(e),h=0,d=C.length;h<d;h++)g=C[h],"paths"!==g&&"arguments"!==g&&"caller"!==g&&(c[g]=e[g]);c.paths=o.paths=s._nodeModulePaths(t.cwd()),c.resolve=function(e){return s._resolveFilename(e,o)}}}m={};for(f in r)T.call(r,f)&&(x=r[f],m[f]=x);return m.bare=!0,p=a(n,m),E===i?k.runInThisContext(p):k.runInContext(p,E)}},n.register=function(){return e("./register")},e.extensions)for(y=this.FILE_EXTENSIONS,f=0,d=y.length;f<d;f++)c=y[f],null==(o=e.extensions)[c]&&(o[c]=function(){throw new Error("Use CoffeeScript.register() or require the coffee-script/register module to require "+c+" files.")});n._compileFile=function(e,t){var n,i,r,s,o;null==t&&(t=!1),s=h.readFileSync(e,"utf8"),o=65279===s.charCodeAt(0)?s.substring(1):s;try{n=a(o,{filename:e,sourceMap:t,literate:p.isLiterate(e)})}catch(r){throw i=r,p.updateSyntaxError(i,o,e)}return n},m=new r,g.lexer={lex:function(){var e,t;return t=g.tokens[this.pos++],t?(e=t[0],this.yytext=t[1],this.yylloc=t[2],g.errorToken=t.origin||t,this.yylineno=this.yylloc.first_line):e="",e},setInput:function(e){return g.tokens=e,this.pos=0},upcomingInput:function(){return""}},g.yy=e("./nodes"),g.yy.parseError=function(e,t){var n,i,r,s,o,a;return o=t.token,s=g.errorToken,a=g.tokens,i=s[0],r=s[1],n=s[2],r=function(){switch(!1){case s!==a[a.length-1]:return"end of input";case"INDENT"!==i&&"OUTDENT"!==i:return"indentation";case"IDENTIFIER"!==i&&"NUMBER"!==i&&"STRING"!==i&&"STRING_START"!==i&&"REGEX"!==i&&"REGEX_START"!==i:return i.replace(/_START$/,"").toLowerCase();default:return p.nameWhitespaceCharacter(r)}}(),p.throwSyntaxError("unexpected "+r,n)},l=function(e,t){var n,i,r,s,o,a,c,l,h,u,p,f;return s=void 0,r="",e.isNative()?r="native":(e.isEval()?(s=e.getScriptNameOrSourceURL(),s||(r=e.getEvalOrigin()+", ")):s=e.getFileName(),s||(s="<anonymous>"),l=e.getLineNumber(),i=e.getColumnNumber(),u=t(s,l,i),r=u?s+":"+u[0]+":"+u[1]:s+":"+l+":"+i),o=e.getFunctionName(),a=e.isConstructor(),c=!(e.isToplevel()||a),c?(h=e.getMethodName(),f=e.getTypeName(),o?(p=n="",f&&o.indexOf(f)&&(p=f+"."),h&&o.indexOf("."+h)!==o.length-h.length-1&&(n=" [as "+h+"]"),""+p+o+n+" ("+r+")"):f+"."+(h||"<anonymous>")+" ("+r+")"):a?"new "+(o||"<anonymous>")+" ("+r+")":o?o+" ("+r+")":r},v={},u=function(e){var t,i;if(v[e])return v[e];if(i=null!=b?b.extname(e):void 0,!(C.call(n.FILE_EXTENSIONS,i)<0))return t=n._compileFile(e,!0),v[e]=t.sourceMap},Error.prepareStackTrace=function(e,t){var i,r,s;return s=function(e,t,n){var i,r;return r=u(e),r&&(i=r.sourceLocation([t-1,n-1])),i?[i[0]+1,i[1]+1]:null},r=function(){var e,r,o;for(o=[],e=0,r=t.length;e<r&&(i=t[e],i.getFunction()!==n.run);e++)o.push(" at "+l(i,s));return o}(),e.toString()+"\n"+r.join("\n")+"\n"}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./helpers":"coffee-script/lib/coffee-script/helpers","./lexer":"coffee-script/lib/coffee-script/lexer","./nodes":"coffee-script/lib/coffee-script/nodes","./parser":"coffee-script/lib/coffee-script/parser","./register":"coffee-script/lib/coffee-script/register","./sourcemap":"coffee-script/lib/coffee-script/sourcemap",_process:"_process",fs:"browserify/lib/_empty",module:"browserify/lib/_empty",path:"browserify/node_modules/path-browserify/index",vm:"browserify/node_modules/vm-browserify/index"}],"coffee-script/lib/coffee-script/helpers":[function(e,t,n){(function(e){(function(){var t,i,r,s,o,a;n.starts=function(e,t,n){return t===e.substr(n,t.length)},n.ends=function(e,t,n){var i;return i=t.length,t===e.substr(e.length-i-(n||0),i)},n.repeat=o=function(e,t){var n;for(n="";t>0;)1&t&&(n+=e),t>>>=1,e+=e;return n},n.compact=function(e){var t,n,i,r;for(r=[],t=0,i=e.length;t<i;t++)n=e[t],n&&r.push(n);return r},n.count=function(e,t){var n,i;if(n=i=0,!t.length)return 1/0;for(;i=1+e.indexOf(t,i);)n++;return n},n.merge=function(e,t){return i(i({},e),t)},i=n.extend=function(e,t){var n,i;for(n in t)i=t[n],e[n]=i;return e},n.flatten=r=function(e){var t,n,i,s;for(n=[],i=0,s=e.length;i<s;i++)t=e[i],"[object Array]"===Object.prototype.toString.call(t)?n=n.concat(r(t)):n.push(t);return n},n.del=function(e,t){var n;return n=e[t],delete e[t],n},n.some=null!=(s=Array.prototype.some)?s:function(e){var t,n,i;for(n=0,i=this.length;n<i;n++)if(t=this[n],e(t))return!0;return!1},n.invertLiterate=function(e){var t,n,i;return i=!0,n=function(){var n,r,s,o;for(s=e.split("\n"),o=[],n=0,r=s.length;n<r;n++)t=s[n],i&&/^([ ]{4}|[ ]{0,3}\t)/.test(t)?o.push(t):(i=/^\s*$/.test(t))?o.push(t):o.push("# "+t);return o}(),n.join("\n")},t=function(e,t){return t?{first_line:e.first_line,first_column:e.first_column,last_line:t.last_line,last_column:t.last_column}:e},n.addLocationDataFn=function(e,n){return function(i){return"object"==typeof i&&i.updateLocationDataIfMissing&&i.updateLocationDataIfMissing(t(e,n)),i}},n.locationDataToString=function(e){var t;return"2"in e&&"first_line"in e[2]?t=e[2]:"first_line"in e&&(t=e),t?t.first_line+1+":"+(t.first_column+1)+"-"+(t.last_line+1+":"+(t.last_column+1)):"No location data"},n.baseFileName=function(e,t,n){var i,r;return null==t&&(t=!1),null==n&&(n=!1),r=n?/\\|\//:/\//,i=e.split(r),e=i[i.length-1],t&&e.indexOf(".")>=0?(i=e.split("."),i.pop(),"coffee"===i[i.length-1]&&i.length>1&&i.pop(),i.join(".")):e},n.isCoffee=function(e){return/\.((lit)?coffee|coffee\.md)$/.test(e)},n.isLiterate=function(e){return/\.(litcoffee|coffee\.md)$/.test(e)},n.throwSyntaxError=function(e,t){var n;throw n=new SyntaxError(e),n.location=t,n.toString=a,n.stack=n.toString(),n},n.updateSyntaxError=function(e,t,n){return e.toString===a&&(e.code||(e.code=t),e.filename||(e.filename=n),e.stack=e.toString()),e},a=function(){var t,n,i,r,s,a,c,l,h,u,p,f,d,m,g;return this.code&&this.location?(p=this.location,c=p.first_line,a=p.first_column,h=p.last_line,l=p.last_column,null==h&&(h=c),null==l&&(l=a),s=this.filename||"[stdin]",t=this.code.split("\n")[c],g=a,r=c===h?l+1:t.length,u=t.slice(0,g).replace(/[^\s]/g," ")+o("^",r-g),"undefined"!=typeof e&&null!==e&&(i=(null!=(f=e.stdout)?f.isTTY:void 0)&&!(null!=(d=e.env)?d.NODE_DISABLE_COLORS:void 0)),(null!=(m=this.colorful)?m:i)&&(n=function(e){return"[1;31m"+e+"[0m"},t=t.slice(0,g)+n(t.slice(g,r))+t.slice(r),u=n(u)),s+":"+(c+1)+":"+(a+1)+": error: "+this.message+"\n"+t+"\n"+u):Error.prototype.toString.call(this)},n.nameWhitespaceCharacter=function(e){switch(e){case" ":return"space";case"\n":return"newline";case"\r":return"carriage return";case"\t":return"tab";default:return e}}}).call(this)}).call(this,e("_process"))},{_process:"_process"}],"coffee-script/lib/coffee-script/lexer":[function(e,t,n){(function(){var t,i,r,s,o,a,c,l,h,u,p,f,d,m,g,b,y,v,k,w,T,C,E,x,F,N,_,L,S,D,R,A,I,O,$,j,M,B,P,V,U,G,H,W,Y,X,q,z,K,J,Q,Z,ee,te,ne,ie,re,se,oe,ae,ce,le,he,ue,pe=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};ae=e("./rewriter"),U=ae.Rewriter,T=ae.INVERSES,ce=e("./helpers"),ie=ce.count,he=ce.starts,ne=ce.compact,le=ce.repeat,re=ce.invertLiterate,oe=ce.locationDataToString,ue=ce.throwSyntaxError,n.Lexer=S=function(){function e(){}return e.prototype.tokenize=function(e,t){var n,i,r,s;for(null==t&&(t={}),this.literate=t.literate,this.indent=0,this.baseIndent=0,this.indebt=0,this.outdebt=0,this.indents=[],this.ends=[],this.tokens=[],this.seenFor=!1,this.chunkLine=t.line||0,this.chunkColumn=t.column||0,e=this.clean(e),r=0;this.chunk=e.slice(r);)if(n=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken(),s=this.getLineAndColumnFromChunk(n),this.chunkLine=s[0],this.chunkColumn=s[1],r+=n,t.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:r};return this.closeIndentation(),(i=this.ends.pop())&&this.error("missing "+i.tag,i.origin[2]),t.rewrite===!1?this.tokens:(new U).rewrite(this.tokens)},e.prototype.clean=function(e){return e.charCodeAt(0)===t&&(e=e.slice(1)),e=e.replace(/\r/g,"").replace(J,""),te.test(e)&&(e="\n"+e,this.chunkLine--),this.literate&&(e=re(e)),e},e.prototype.identifierToken=function(){var e,t,n,i,r,s,l,h,u,p,f,d,m,g,b,v;return(h=y.exec(this.chunk))?(l=h[0],r=h[1],t=h[2],s=r.length,u=void 0,"own"===r&&"FOR"===this.tag()?(this.token("OWN",r),r.length):"from"===r&&"YIELD"===this.tag()?(this.token("FROM",r),r.length):(f=this.tokens,p=f[f.length-1],i=t||null!=p&&("."===(d=p[0])||"?."===d||"::"===d||"?::"===d||!p.spaced&&"@"===p[0]),b="IDENTIFIER",!i&&(pe.call(x,r)>=0||pe.call(c,r)>=0)&&(b=r.toUpperCase(),"WHEN"===b&&(m=this.tag(),pe.call(N,m)>=0)?b="LEADING_WHEN":"FOR"===b?this.seenFor=!0:"UNLESS"===b?b="IF":pe.call(Q,b)>=0?b="UNARY":pe.call(P,b)>=0&&("INSTANCEOF"!==b&&this.seenFor?(b="FOR"+b,this.seenFor=!1):(b="RELATION","!"===this.value()&&(u=this.tokens.pop(),r="!"+r)))),pe.call(E,r)>=0&&(i?(b="IDENTIFIER",r=new String(r),r.reserved=!0):pe.call(V,r)>=0&&this.error("reserved word '"+r+"'",{length:r.length})),i||(pe.call(o,r)>=0&&(e=r,r=a[r]),b=function(){switch(r){case"!":return"UNARY";case"==":case"!=":return"COMPARE";case"&&":case"||":return"LOGIC";case"true":case"false":return"BOOL";case"break":case"continue":return"STATEMENT";default:return b}}()),v=this.token(b,r,0,s),e&&(v.origin=[b,e,v[2]]),v.variable=!i,u&&(g=[u[2].first_line,u[2].first_column],v[2].first_line=g[0],v[2].first_column=g[1]),t&&(n=l.lastIndexOf(":"),this.token(":",":",n,t.length)),l.length)):0},e.prototype.numberToken=function(){var e,t,n,i,r;return(n=I.exec(this.chunk))?(i=n[0],t=i.length,/^0[BOX]/.test(i)?this.error("radix prefix in '"+i+"' must be lowercase",{offset:1}):/E/.test(i)&&!/^0x/.test(i)?this.error("exponential notation in '"+i+"' must be indicated with a lowercase 'e'",{offset:i.indexOf("E")}):/^0\d*[89]/.test(i)?this.error("decimal literal '"+i+"' must not be prefixed with '0'",{length:t}):/^0\d+/.test(i)&&this.error("octal literal '"+i+"' must be prefixed with '0o'",{length:t}),(r=/^0o([0-7]+)/.exec(i))&&(i="0x"+parseInt(r[1],8).toString(16)),(e=/^0b([01]+)/.exec(i))&&(i="0x"+parseInt(e[1],2).toString(16)),this.token("NUMBER",i,0,t),t):0},e.prototype.stringToken=function(){var e,t,n,i,r,s,o,a,c,l,h,u,p,g,b,y;if(h=(z.exec(this.chunk)||[])[0],!h)return 0;if(g=function(){switch(h){case"'":return q;case'"':return Y;case"'''":return m;case'"""':return f}}(),s=3===h.length,u=this.matchWithInterpolations(g,h),y=u.tokens,r=u.index,e=y.length-1,n=h.charAt(0),s){for(a=null,i=function(){var e,t,n;for(n=[],o=e=0,t=y.length;e<t;o=++e)b=y[o],"NEOSTRING"===b[0]&&n.push(b[1]);return n}().join("#{}");l=d.exec(i);)t=l[1],(null===a||0<(p=t.length)&&p<a.length)&&(a=t);a&&(c=RegExp("^"+a,"gm")),this.mergeInterpolationTokens(y,{delimiter:n},function(t){return function(n,i){return n=t.formatString(n),0===i&&(n=n.replace(F,"")),i===e&&(n=n.replace(K,"")),c&&(n=n.replace(c,"")),n}}(this))}else this.mergeInterpolationTokens(y,{delimiter:n},function(t){return function(n,i){return n=t.formatString(n),n=n.replace(H,function(t,r){return 0===i&&0===r||i===e&&r+t.length===n.length?"":" "})}}(this));return r},e.prototype.commentToken=function(){var e,t,n;return(n=this.chunk.match(l))?(e=n[0],t=n[1],t&&((n=p.exec(e))&&this.error("block comments cannot contain "+n[0],{offset:n.index,length:n[0].length}),t.indexOf("\n")>=0&&(t=t.replace(RegExp("\\n"+le(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",t,0,e.length)),e.length):0},e.prototype.jsToken=function(){var e,t;return"`"===this.chunk.charAt(0)&&(e=C.exec(this.chunk))?(this.token("JS",(t=e[0]).slice(1,-1),0,t.length),t.length):0},e.prototype.regexToken=function(){var e,t,n,i,s,o,a,c,l,h,u,p,f;switch(!1){case!(o=B.exec(this.chunk)):this.error("regular expressions cannot begin with "+o[2],{offset:o.index+o[1].length});break;case!(o=this.matchWithInterpolations(g,"///")):f=o.tokens,s=o.index;break;case!(o=j.exec(this.chunk)):if(p=o[0],e=o[1],t=o[2],this.validateEscapes(e,{isRegex:!0,offsetInChunk:1}),s=p.length,l=this.tokens,c=l[l.length-1],c)if(c.spaced&&(h=c[0],pe.call(r,h)>=0)){if(!t||$.test(p))return 0}else if(u=c[0],pe.call(A,u)>=0)return 0;t||this.error("missing / (unclosed regex)");break;default:return 0}switch(i=M.exec(this.chunk.slice(s))[0],n=s+i.length,a=this.makeToken("REGEX",null,0,n),!1){case!!ee.test(i):this.error("invalid regular expression flags "+i,{offset:s,length:i.length});break;case!(p||1===f.length):null==e&&(e=this.formatHeregex(f[0][1])),this.token("REGEX",""+this.makeDelimitedLiteral(e,{delimiter:"/"})+i,0,n,a);break;default:this.token("REGEX_START","(",0,0,a),this.token("IDENTIFIER","RegExp",0,0),this.token("CALL_START","(",0,0),this.mergeInterpolationTokens(f,{delimiter:'"',"double":!0},this.formatHeregex),i&&(this.token(",",",",s,0),this.token("STRING",'"'+i+'"',s,i.length)),this.token(")",")",n,0),this.token("REGEX_END",")",n,0)}return n},e.prototype.lineToken=function(){var e,t,n,i,r;if(!(n=R.exec(this.chunk)))return 0;if(t=n[0],this.seenFor=!1,r=t.length-1-t.lastIndexOf("\n"),i=this.unfinished(),r-this.indebt===this.indent)return i?this.suppressNewlines():this.newlineToken(0),t.length;if(r>this.indent){if(i)return this.indebt=r-this.indent,this.suppressNewlines(),t.length;if(!this.tokens.length)return this.baseIndent=this.indent=r,t.length;e=r-this.indent+this.outdebt,this.token("INDENT",e,t.length-r,r),this.indents.push(e),this.ends.push({tag:"OUTDENT"}),this.outdebt=this.indebt=0,this.indent=r}else r<this.baseIndent?this.error("missing indentation",{offset:t.length}):(this.indebt=0,this.outdentToken(this.indent-r,i,t.length));return t.length},e.prototype.outdentToken=function(e,t,n){var i,r,s,o;for(i=this.indent-e;e>0;)s=this.indents[this.indents.length-1],s?s===this.outdebt?(e-=this.outdebt,this.outdebt=0):s<this.outdebt?(this.outdebt-=s,e-=s):(r=this.indents.pop()+this.outdebt,n&&(o=this.chunk[n],pe.call(v,o)>=0)&&(i-=r-e,e=r),this.outdebt=0,this.pair("OUTDENT"),this.token("OUTDENT",e,0,n),e-=r):e=0;for(r&&(this.outdebt-=e);";"===this.value();)this.tokens.pop();return"TERMINATOR"===this.tag()||t||this.token("TERMINATOR","\n",n,0),this.indent=i,this},e.prototype.whitespaceToken=function(){var e,t,n,i;return(e=te.exec(this.chunk))||(t="\n"===this.chunk.charAt(0))?(i=this.tokens,n=i[i.length-1],n&&(n[e?"spaced":"newLine"]=!0),e?e[0].length:0):0},e.prototype.newlineToken=function(e){for(;";"===this.value();)this.tokens.pop();return"TERMINATOR"!==this.tag()&&this.token("TERMINATOR","\n",e,0),this},e.prototype.suppressNewlines=function(){return"\\"===this.value()&&this.tokens.pop(),this},e.prototype.literalToken=function(){var e,t,n,i,o,a,c,l,p,f;if((e=O.exec(this.chunk))?(f=e[0],s.test(f)&&this.tagParameters()):f=this.chunk.charAt(0),l=f,n=this.tokens,t=n[n.length-1],"="===f&&t&&(!t[1].reserved&&(i=t[1],pe.call(E,i)>=0)&&(t.origin&&(t=t.origin),this.error("reserved word '"+t[1]+"' can't be assigned",t[2])),"||"===(o=t[1])||"&&"===o))return t[0]="COMPOUND_ASSIGN",t[1]+="=",f.length;if(";"===f)this.seenFor=!1,l="TERMINATOR";else if(pe.call(D,f)>=0)l="MATH";else if(pe.call(h,f)>=0)l="COMPARE";else if(pe.call(u,f)>=0)l="COMPOUND_ASSIGN";else if(pe.call(Q,f)>=0)l="UNARY";else if(pe.call(Z,f)>=0)l="UNARY_MATH";else if(pe.call(G,f)>=0)l="SHIFT";else if(pe.call(L,f)>=0||"?"===f&&(null!=t?t.spaced:void 0))l="LOGIC";else if(t&&!t.spaced)if("("===f&&(a=t[0],pe.call(r,a)>=0))"?"===t[0]&&(t[0]="FUNC_EXIST"),l="CALL_START";else if("["===f&&(c=t[0],pe.call(k,c)>=0))switch(l="INDEX_START",t[0]){case"?":t[0]="INDEX_SOAK"}switch(p=this.makeToken(l,f),f){case"(":case"{":case"[":this.ends.push({tag:T[f],origin:p});break;case")":case"}":case"]":this.pair(f)}return this.tokens.push(p),f.length},e.prototype.tagParameters=function(){var e,t,n,i;if(")"!==this.tag())return this;for(t=[],i=this.tokens,e=i.length,i[--e][0]="PARAM_END";n=i[--e];)switch(n[0]){case")":t.push(n);break;case"(":case"CALL_START":if(!t.length)return"("===n[0]?(n[0]="PARAM_START",this):this;t.pop()}return this},e.prototype.closeIndentation=function(){return this.outdentToken(this.indent)},e.prototype.matchWithInterpolations=function(t,n){var i,r,s,o,a,c,l,h,u,p,f,d,m,g,b;if(b=[],h=n.length,this.chunk.slice(0,h)!==n)return null;for(m=this.chunk.slice(h);;){if(g=t.exec(m)[0],this.validateEscapes(g,{isRegex:"/"===n.charAt(0),offsetInChunk:h}),b.push(this.makeToken("NEOSTRING",g,h)),m=m.slice(g.length),h+=g.length,"#{"!==m.slice(0,2))break;p=this.getLineAndColumnFromChunk(h+1),c=p[0],r=p[1],f=(new e).tokenize(m.slice(1),{line:c,column:r,untilBalanced:!0}),l=f.tokens,o=f.index,o+=1,u=l[0],i=l[l.length-1],u[0]=u[1]="(",i[0]=i[1]=")",i.origin=["","end of interpolation",i[2]],"TERMINATOR"===(null!=(d=l[1])?d[0]:void 0)&&l.splice(1,1),b.push(["TOKENS",l]),m=m.slice(o),h+=o}return m.slice(0,n.length)!==n&&this.error("missing "+n,{length:n.length}),s=b[0],a=b[b.length-1],s[2].first_column-=n.length,a[2].last_column+=n.length,0===a[1].length&&(a[2].last_column-=1),{tokens:b,index:h+n.length}},e.prototype.mergeInterpolationTokens=function(e,t,n){var i,r,s,o,a,c,l,h,u,p,f,d,m,g,b,y;for(e.length>1&&(u=this.token("STRING_START","(",0,0)),s=this.tokens.length,o=a=0,l=e.length;a<l;o=++a){switch(g=e[o],m=g[0],y=g[1],m){case"TOKENS":if(2===y.length)continue;h=y[0],b=y;break;case"NEOSTRING":if(i=n(g[1],o),0===i.length){if(0!==o)continue;r=this.tokens.length}2===o&&null!=r&&this.tokens.splice(r,2),g[0]="STRING",g[1]=this.makeDelimitedLiteral(i,t),h=g,b=[g]}this.tokens.length>s&&(p=this.token("+","+"),p[2]={first_line:h[2].first_line,first_column:h[2].first_column,last_line:h[2].first_line,last_column:h[2].first_column}),(f=this.tokens).push.apply(f,b)}if(u)return c=e[e.length-1],u.origin=["STRING",null,{first_line:u[2].first_line,first_column:u[2].first_column,last_line:c[2].last_line,last_column:c[2].last_column}],d=this.token("STRING_END",")"),d[2]={first_line:c[2].last_line,first_column:c[2].last_column,last_line:c[2].last_line,last_column:c[2].last_column}},e.prototype.pair=function(e){var t,n,i,r,s;return i=this.ends,n=i[i.length-1],e!==(s=null!=n?n.tag:void 0)?("OUTDENT"!==s&&this.error("unmatched "+e),r=this.indents,t=r[r.length-1],this.outdentToken(t,!0),this.pair(e)):this.ends.pop()},e.prototype.getLineAndColumnFromChunk=function(e){var t,n,i,r,s;return 0===e?[this.chunkLine,this.chunkColumn]:(s=e>=this.chunk.length?this.chunk:this.chunk.slice(0,+(e-1)+1||9e9),i=ie(s,"\n"),t=this.chunkColumn,i>0?(r=s.split("\n"),n=r[r.length-1],t=n.length):t+=s.length,[this.chunkLine+i,t])},e.prototype.makeToken=function(e,t,n,i){var r,s,o,a,c;return null==n&&(n=0),null==i&&(i=t.length),s={},o=this.getLineAndColumnFromChunk(n),s.first_line=o[0],s.first_column=o[1],r=Math.max(0,i-1),a=this.getLineAndColumnFromChunk(n+r),s.last_line=a[0],s.last_column=a[1],c=[e,t,s]},e.prototype.token=function(e,t,n,i,r){var s;return s=this.makeToken(e,t,n,i),r&&(s.origin=r),this.tokens.push(s),s},e.prototype.tag=function(){var e,t;return e=this.tokens,t=e[e.length-1],null!=t?t[0]:void 0},e.prototype.value=function(){var e,t;return e=this.tokens,t=e[e.length-1],null!=t?t[1]:void 0},e.prototype.unfinished=function(){var e;return _.test(this.chunk)||"\\"===(e=this.tag())||"."===e||"?."===e||"?::"===e||"UNARY"===e||"MATH"===e||"UNARY_MATH"===e||"+"===e||"-"===e||"YIELD"===e||"**"===e||"SHIFT"===e||"RELATION"===e||"COMPARE"===e||"LOGIC"===e||"THROW"===e||"EXTENDS"===e},e.prototype.formatString=function(e){return e.replace(X,"$1")},e.prototype.formatHeregex=function(e){return e.replace(b,"$1$2")},e.prototype.validateEscapes=function(e,t){var n,i,r,s,o,a,c,l;if(null==t&&(t={}),s=w.exec(e),s&&(s[0],n=s[1],a=s[2],i=s[3],l=s[4],!t.isRegex||!a||"0"===a.charAt(0)))return o=a?"octal escape sequences are not allowed":"invalid escape sequence",r="\\"+(a||i||l),this.error(o+" "+r,{offset:(null!=(c=t.offsetInChunk)?c:0)+s.index+n.length,length:r.length})},e.prototype.makeDelimitedLiteral=function(e,t){var n;return null==t&&(t={}),""===e&&"/"===t.delimiter&&(e="(?:)"),n=RegExp("(\\\\\\\\)|(\\\\0(?=[1-7]))|\\\\?("+t.delimiter+")|\\\\?(?:(\\n)|(\\r)|(\\u2028)|(\\u2029))|(\\\\.)","g"),e=e.replace(n,function(e,n,i,r,s,o,a,c,l){switch(!1){case!n:return t["double"]?n+n:n;case!i:return"\\x00";case!r:return"\\"+r;case!s:return"\\n";case!o:return"\\r";case!a:return"\\u2028";case!c:return"\\u2029";case!l:return t["double"]?"\\"+l:l}}),""+t.delimiter+e+t.delimiter},e.prototype.error=function(e,t){var n,i,r,s,o,a;return null==t&&(t={}),r="first_line"in t?t:(o=this.getLineAndColumnFromChunk(null!=(s=t.offset)?s:0),i=o[0],n=o[1],o,{first_line:i,first_column:n,last_column:n+(null!=(a=t.length)?a:1)-1}),ue(e,r)},e}(),x=["true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","yield","if","else","switch","for","while","do","try","catch","finally","class","extends","super"],c=["undefined","then","unless","until","loop","of","by","when"],a={and:"&&",or:"||",is:"==",isnt:"!=",not:"!",yes:"true",no:"false",on:"true",off:"false"},o=function(){var e;e=[];for(se in a)e.push(se);return e}(),c=c.concat(o),V=["case","default","function","var","void","with","const","let","enum","export","import","native","implements","interface","package","private","protected","public","static"],W=["arguments","eval","yield*"],E=x.concat(V).concat(W),n.RESERVED=V.concat(x).concat(c).concat(W),n.STRICT_PROSCRIBED=W,t=65279,y=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/,I=/^0b[01]+|^0o[0-7]+|^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i,O=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/,te=/^[^\n\S]+/,l=/^###([^#][\s\S]*?)(?:###[^\n\S]*|###$)|^(?:\s*#(?!##[^#]).*)+/,s=/^[-=]>/,R=/^(?:\n[^\n\S]*)+/,C=/^`[^\\`]*(?:\\.[^\\`]*)*`/,z=/^(?:'''|"""|'|")/,q=/^(?:[^\\']|\\[\s\S])*/,Y=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/,m=/^(?:[^\\']|\\[\s\S]|'(?!''))*/,f=/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/,X=/((?:\\\\)+)|\\[^\S\n]*\n\s*/g,H=/\s*\n\s*/g,d=/\n+([^\n\S]*)(?=\S)/g,j=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/,M=/^\w*/,ee=/^(?!.*(.).*\1)[imgy]*$/,g=/^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/,b=/((?:\\\\)+)|\\(\s)|\s+(?:#.*)?/g,B=/^(\/|\/{3}\s*)(\*)/,$=/^\/=?\s/,p=/\*\//,_=/^\s*(?:,|\??\.(?![.\d])|::)/,w=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u(?![\da-fA-F]{4}).{0,4}))/,F=/^[^\n\S]*\n/,K=/\n[^\n\S]*$/,J=/\s+$/,u=["-=","+=","/=","*=","%=","||=","&&=","?=","<<=",">>=",">>>=","&=","^=","|=","**=","//=","%%="],Q=["NEW","TYPEOF","DELETE","DO"],Z=["!","~"],L=["&&","||","&","|","^"],G=["<<",">>",">>>"],h=["==","!=","<",">","<=",">="],D=["*","/","%","//","%%"],P=["IN","OF","INSTANCEOF"],i=["TRUE","FALSE"],r=["IDENTIFIER",")","]","?","@","THIS","SUPER"],k=r.concat(["NUMBER","STRING","STRING_END","REGEX","REGEX_END","BOOL","NULL","UNDEFINED","}","::"]),A=k.concat(["++","--"]),N=["INDENT","OUTDENT","TERMINATOR"],v=[")","}","]"]}).call(this)},{"./helpers":"coffee-script/lib/coffee-script/helpers","./rewriter":"coffee-script/lib/coffee-script/rewriter"}],"coffee-script/lib/coffee-script/nodes":[function(e,t,n){(function(){var t,i,r,s,o,a,c,l,h,u,p,f,d,m,g,b,y,v,k,w,T,C,E,x,F,N,_,L,S,D,R,A,I,O,$,j,M,B,P,V,U,G,H,W,Y,X,q,z,K,J,Q,Z,ee,te,ne,ie,re,se,oe,ae,ce,le,he,ue,pe,fe,de,me,ge,be,ye,ve,ke,we=function(e,t){function n(){this.constructor=e}for(var i in t)Te.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Te={}.hasOwnProperty,Ce=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;
return-1},Ee=[].slice;Error.stackTraceLimit=1/0,U=e("./scope").Scope,de=e("./lexer"),j=de.RESERVED,V=de.STRICT_PROSCRIBED,me=e("./helpers"),te=me.compact,se=me.flatten,re=me.extend,ue=me.merge,ne=me.del,be=me.starts,ie=me.ends,ge=me.some,ee=me.addLocationDataFn,he=me.locationDataToString,ye=me.throwSyntaxError,n.extend=re,n.addLocationDataFn=ee,Z=function(){return!0},D=function(){return!1},X=function(){return this},S=function(){return this.negated=!this.negated,this},n.CodeFragment=h=function(){function e(e,t){var n;this.code=""+t,this.locationData=null!=e?e.locationData:void 0,this.type=(null!=e&&null!=(n=e.constructor)?n.name:void 0)||"unknown"}return e.prototype.toString=function(){return""+this.code+(this.locationData?": "+he(this.locationData):"")},e}(),oe=function(e){var t;return function(){var n,i,r;for(r=[],n=0,i=e.length;n<i;n++)t=e[n],r.push(t.code);return r}().join("")},n.Base=s=function(){function e(){}return e.prototype.compile=function(e,t){return oe(this.compileToFragments(e,t))},e.prototype.compileToFragments=function(e,t){var n;return e=re({},e),t&&(e.level=t),n=this.unfoldSoak(e)||this,n.tab=e.indent,e.level!==_&&n.isStatement(e)?n.compileClosure(e):n.compileNode(e)},e.prototype.compileClosure=function(e){var n,i,r,s,c,h,u;return(s=this.jumps())&&s.error("cannot use a pure statement in an expression"),e.sharedScope=!0,r=new l([],o.wrap([this])),n=[],((i=this.contains(ce))||this.contains(le))&&(n=[new L("this")],i?(c="apply",n.push(new L("arguments"))):c="call",r=new J(r,[new t(new L(c))])),h=new a(r,n).compileNode(e),(r.isGenerator||(null!=(u=r.base)?u.isGenerator:void 0))&&(h.unshift(this.makeCode("(yield* ")),h.push(this.makeCode(")"))),h},e.prototype.cache=function(e,t,n){var i,s,o;return i=null!=n?n(this):this.isComplex(),i?(s=new L(e.scope.freeVariable("ref")),o=new r(s,this),t?[o.compileToFragments(e,t),[this.makeCode(s.value)]]:[o,s]):(s=t?this.compileToFragments(e,t):this,[s,s])},e.prototype.cacheToCodeFragments=function(e){return[oe(e[0]),oe(e[1])]},e.prototype.makeReturn=function(e){var t;return t=this.unwrapAll(),e?new a(new L(e+".push"),[t]):new B(t)},e.prototype.contains=function(e){var t;return t=void 0,this.traverseChildren(!1,function(n){if(e(n))return t=n,!1}),t},e.prototype.lastNonComment=function(e){var t;for(t=e.length;t--;)if(!(e[t]instanceof u))return e[t];return null},e.prototype.toString=function(e,t){var n;return null==e&&(e=""),null==t&&(t=this.constructor.name),n="\n"+e+t,this.soak&&(n+="?"),this.eachChild(function(t){return n+=t.toString(e+Y)}),n},e.prototype.eachChild=function(e){var t,n,i,r,s,o,a,c;if(!this.children)return this;for(a=this.children,i=0,s=a.length;i<s;i++)if(t=a[i],this[t])for(c=se([this[t]]),r=0,o=c.length;r<o;r++)if(n=c[r],e(n)===!1)return this;return this},e.prototype.traverseChildren=function(e,t){return this.eachChild(function(n){var i;if(i=t(n),i!==!1)return n.traverseChildren(e,t)})},e.prototype.invert=function(){return new I("!",this)},e.prototype.unwrapAll=function(){var e;for(e=this;e!==(e=e.unwrap()););return e},e.prototype.children=[],e.prototype.isStatement=D,e.prototype.jumps=D,e.prototype.isComplex=Z,e.prototype.isChainable=D,e.prototype.isAssignable=D,e.prototype.unwrap=X,e.prototype.unfoldSoak=D,e.prototype.assigns=D,e.prototype.updateLocationDataIfMissing=function(e){return this.locationData?this:(this.locationData=e,this.eachChild(function(t){return t.updateLocationDataIfMissing(e)}))},e.prototype.error=function(e){return ye(e,this.locationData)},e.prototype.makeCode=function(e){return new h(this,e)},e.prototype.wrapInBraces=function(e){return[].concat(this.makeCode("("),e,this.makeCode(")"))},e.prototype.joinFragmentArrays=function(e,t){var n,i,r,s,o;for(n=[],r=s=0,o=e.length;s<o;r=++s)i=e[r],r&&n.push(this.makeCode(t)),n=n.concat(i);return n},e}(),n.Block=o=function(e){function t(e){this.expressions=te(se(e||[]))}return we(t,e),t.prototype.children=["expressions"],t.prototype.push=function(e){return this.expressions.push(e),this},t.prototype.pop=function(){return this.expressions.pop()},t.prototype.unshift=function(e){return this.expressions.unshift(e),this},t.prototype.unwrap=function(){return 1===this.expressions.length?this.expressions[0]:this},t.prototype.isEmpty=function(){return!this.expressions.length},t.prototype.isStatement=function(e){var t,n,i,r;for(r=this.expressions,n=0,i=r.length;n<i;n++)if(t=r[n],t.isStatement(e))return!0;return!1},t.prototype.jumps=function(e){var t,n,i,r,s;for(s=this.expressions,n=0,r=s.length;n<r;n++)if(t=s[n],i=t.jumps(e))return i},t.prototype.makeReturn=function(e){var t,n;for(n=this.expressions.length;n--;)if(t=this.expressions[n],!(t instanceof u)){this.expressions[n]=t.makeReturn(e),t instanceof B&&!t.expression&&this.expressions.splice(n,1);break}return this},t.prototype.compileToFragments=function(e,n){return null==e&&(e={}),e.scope?t.__super__.compileToFragments.call(this,e,n):this.compileRoot(e)},t.prototype.compileNode=function(e){var n,i,r,s,o,a,c,l,h;for(this.tab=e.indent,h=e.level===_,i=[],l=this.expressions,s=o=0,a=l.length;o<a;s=++o)c=l[s],c=c.unwrapAll(),c=c.unfoldSoak(e)||c,c instanceof t?i.push(c.compileNode(e)):h?(c.front=!0,r=c.compileToFragments(e),c.isStatement(e)||(r.unshift(this.makeCode(""+this.tab)),r.push(this.makeCode(";"))),i.push(r)):i.push(c.compileToFragments(e,x));return h?this.spaced?[].concat(this.joinFragmentArrays(i,"\n\n"),this.makeCode("\n")):this.joinFragmentArrays(i,"\n"):(n=i.length?this.joinFragmentArrays(i,", "):[this.makeCode("void 0")],i.length>1&&e.level>=x?this.wrapInBraces(n):n)},t.prototype.compileRoot=function(e){var t,n,i,r,s,o,a,c,l,h,p;for(e.indent=e.bare?"":Y,e.level=_,this.spaced=!0,e.scope=new U(null,this,null,null!=(l=e.referencedVars)?l:[]),h=e.locals||[],r=0,s=h.length;r<s;r++)o=h[r],e.scope.parameter(o);return a=[],e.bare||(c=function(){var e,n,r,s;for(r=this.expressions,s=[],i=e=0,n=r.length;e<n&&(t=r[i],t.unwrap()instanceof u);i=++e)s.push(t);return s}.call(this),p=this.expressions.slice(c.length),this.expressions=c,c.length&&(a=this.compileNode(ue(e,{indent:""})),a.push(this.makeCode("\n"))),this.expressions=p),n=this.compileWithDeclarations(e),e.bare?n:[].concat(a,this.makeCode("(function() {\n"),n,this.makeCode("\n}).call(this);\n"))},t.prototype.compileWithDeclarations=function(e){var t,n,i,r,s,o,a,c,l,h,p,f,d,m;for(r=[],c=[],l=this.expressions,s=o=0,a=l.length;o<a&&(i=l[s],i=i.unwrap(),i instanceof u||i instanceof L);s=++o);return e=ue(e,{level:_}),s&&(f=this.expressions.splice(s,9e9),h=[this.spaced,!1],m=h[0],this.spaced=h[1],p=[this.compileNode(e),m],r=p[0],this.spaced=p[1],this.expressions=f),c=this.compileNode(e),d=e.scope,d.expressions===this&&(n=e.scope.hasDeclarations(),t=d.hasAssignments,n||t?(s&&r.push(this.makeCode("\n")),r.push(this.makeCode(this.tab+"var ")),n&&r.push(this.makeCode(d.declaredVariables().join(", "))),t&&(n&&r.push(this.makeCode(",\n"+(this.tab+Y))),r.push(this.makeCode(d.assignedVariables().join(",\n"+(this.tab+Y))))),r.push(this.makeCode(";\n"+(this.spaced?"\n":"")))):r.length&&c.length&&r.push(this.makeCode("\n"))),r.concat(c)},t.wrap=function(e){return 1===e.length&&e[0]instanceof t?e[0]:new t(e)},t}(s),n.Literal=L=function(e){function t(e){this.value=e}return we(t,e),t.prototype.makeReturn=function(){return this.isStatement()?this:t.__super__.makeReturn.apply(this,arguments)},t.prototype.isAssignable=function(){return b.test(this.value)},t.prototype.isStatement=function(){var e;return"break"===(e=this.value)||"continue"===e||"debugger"===e},t.prototype.isComplex=D,t.prototype.assigns=function(e){return e===this.value},t.prototype.jumps=function(e){return("break"!==this.value||(null!=e?e.loop:void 0)||(null!=e?e.block:void 0))&&("continue"!==this.value||(null!=e?e.loop:void 0))?void 0:this},t.prototype.compileNode=function(e){var t,n,i;return n="this"===this.value?(null!=(i=e.scope.method)?i.bound:void 0)?e.scope.method.context:this.value:this.value.reserved?'"'+this.value+'"':this.value,t=this.isStatement()?""+this.tab+n+";":n,[this.makeCode(t)]},t.prototype.toString=function(){return' "'+this.value+'"'},t}(s),n.Undefined=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return we(t,e),t.prototype.isAssignable=D,t.prototype.isComplex=D,t.prototype.compileNode=function(e){return[this.makeCode(e.level>=C?"(void 0)":"void 0")]},t}(s),n.Null=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return we(t,e),t.prototype.isAssignable=D,t.prototype.isComplex=D,t.prototype.compileNode=function(){return[this.makeCode("null")]},t}(s),n.Bool=function(e){function t(e){this.val=e}return we(t,e),t.prototype.isAssignable=D,t.prototype.isComplex=D,t.prototype.compileNode=function(){return[this.makeCode(this.val)]},t}(s),n.Return=B=function(e){function t(e){this.expression=e}return we(t,e),t.prototype.children=["expression"],t.prototype.isStatement=Z,t.prototype.makeReturn=X,t.prototype.jumps=X,t.prototype.compileToFragments=function(e,n){var i,r;return i=null!=(r=this.expression)?r.makeReturn():void 0,!i||i instanceof t?t.__super__.compileToFragments.call(this,e,n):i.compileToFragments(e,n)},t.prototype.compileNode=function(e){var t,n,i;return t=[],n=null!=(i=this.expression)&&"function"==typeof i.isYieldReturn?i.isYieldReturn():void 0,n||t.push(this.makeCode(this.tab+("return"+(this.expression?" ":"")))),this.expression&&(t=t.concat(this.expression.compileToFragments(e,N))),n||t.push(this.makeCode(";")),t},t}(s),n.Value=J=function(e){function t(e,n,i){return!n&&e instanceof t?e:(this.base=e,this.properties=n||[],i&&(this[i]=!0),this)}return we(t,e),t.prototype.children=["base","properties"],t.prototype.add=function(e){return this.properties=this.properties.concat(e),this},t.prototype.hasProperties=function(){return!!this.properties.length},t.prototype.bareLiteral=function(e){return!this.properties.length&&this.base instanceof e},t.prototype.isArray=function(){return this.bareLiteral(i)},t.prototype.isRange=function(){return this.bareLiteral(M)},t.prototype.isComplex=function(){return this.hasProperties()||this.base.isComplex()},t.prototype.isAssignable=function(){return this.hasProperties()||this.base.isAssignable()},t.prototype.isSimpleNumber=function(){return this.bareLiteral(L)&&P.test(this.base.value)},t.prototype.isString=function(){return this.bareLiteral(L)&&v.test(this.base.value)},t.prototype.isRegex=function(){return this.bareLiteral(L)&&y.test(this.base.value)},t.prototype.isAtomic=function(){var e,t,n,i;for(i=this.properties.concat(this.base),e=0,t=i.length;e<t;e++)if(n=i[e],n.soak||n instanceof a)return!1;return!0},t.prototype.isNotCallable=function(){return this.isSimpleNumber()||this.isString()||this.isRegex()||this.isArray()||this.isRange()||this.isSplice()||this.isObject()},t.prototype.isStatement=function(e){return!this.properties.length&&this.base.isStatement(e)},t.prototype.assigns=function(e){return!this.properties.length&&this.base.assigns(e)},t.prototype.jumps=function(e){return!this.properties.length&&this.base.jumps(e)},t.prototype.isObject=function(e){return!this.properties.length&&(this.base instanceof A&&(!e||this.base.generated))},t.prototype.isSplice=function(){var e,t;return t=this.properties,e=t[t.length-1],e instanceof G},t.prototype.looksStatic=function(e){var t;return this.base.value===e&&1===this.properties.length&&"prototype"!==(null!=(t=this.properties[0].name)?t.value:void 0)},t.prototype.unwrap=function(){return this.properties.length?this:this.base},t.prototype.cacheReference=function(e){var n,i,s,o,a;return a=this.properties,s=a[a.length-1],this.properties.length<2&&!this.base.isComplex()&&!(null!=s?s.isComplex():void 0)?[this,this]:(n=new t(this.base,this.properties.slice(0,-1)),n.isComplex()&&(i=new L(e.scope.freeVariable("base")),n=new t(new $(new r(i,n)))),s?(s.isComplex()&&(o=new L(e.scope.freeVariable("name")),s=new T(new r(o,s.index)),o=new T(o)),[n.add(s),new t(i||n.base,[o||s])]):[n,i])},t.prototype.compileNode=function(e){var t,n,i,r,s;for(this.base.front=this.front,s=this.properties,t=this.base.compileToFragments(e,s.length?C:null),(this.base instanceof $||s.length)&&P.test(oe(t))&&t.push(this.makeCode(".")),n=0,i=s.length;n<i;n++)r=s[n],t.push.apply(t,r.compileToFragments(e));return t},t.prototype.unfoldSoak=function(e){return null!=this.unfoldedSoak?this.unfoldedSoak:this.unfoldedSoak=function(n){return function(){var i,s,o,a,c,l,h,u,f,d;if(o=n.base.unfoldSoak(e))return(u=o.body.properties).push.apply(u,n.properties),o;for(f=n.properties,s=a=0,c=f.length;a<c;s=++a)if(l=f[s],l.soak)return l.soak=!1,i=new t(n.base,n.properties.slice(0,s)),d=new t(n.base,n.properties.slice(s)),i.isComplex()&&(h=new L(e.scope.freeVariable("ref")),i=new $(new r(h,i)),d.base=h),new k(new p(i),d,{soak:!0});return!1}}(this)()},t}(s),n.Comment=u=function(e){function t(e){this.comment=e}return we(t,e),t.prototype.isStatement=Z,t.prototype.makeReturn=X,t.prototype.compileNode=function(e,t){var n,i;return i=this.comment.replace(/^(\s*)#(?=\s)/gm,"$1 *"),n="/*"+pe(i,this.tab)+(Ce.call(i,"\n")>=0?"\n"+this.tab:"")+" */",(t||e.level)===_&&(n=e.indent+n),[this.makeCode("\n"),this.makeCode(n)]},t}(s),n.Call=a=function(e){function n(e,t,n){this.args=null!=t?t:[],this.soak=n,this.isNew=!1,this.isSuper="super"===e,this.variable=this.isSuper?null:e,e instanceof J&&e.isNotCallable()&&e.error("literal is not a function")}return we(n,e),n.prototype.children=["variable","args"],n.prototype.newInstance=function(){var e,t;return e=(null!=(t=this.variable)?t.base:void 0)||this.variable,e instanceof n&&!e.isNew?e.newInstance():this.isNew=!0,this},n.prototype.superReference=function(e){var n,i,s,o,a,c,l,h;return a=e.scope.namedMethod(),(null!=a?a.klass:void 0)?(o=a.klass,c=a.name,h=a.variable,o.isComplex()&&(s=new L(e.scope.parent.freeVariable("base")),i=new J(new $(new r(s,o))),h.base=i,h.properties.splice(0,o.properties.length)),(c.isComplex()||c instanceof T&&c.index.isAssignable())&&(l=new L(e.scope.parent.freeVariable("name")),c=new T(new r(l,c.index)),h.properties.pop(),h.properties.push(c)),n=[new t(new L("__super__"))],a["static"]&&n.push(new t(new L("constructor"))),n.push(null!=l?new T(l):c),new J(null!=s?s:o,n).compile(e)):(null!=a?a.ctor:void 0)?a.name+".__super__.constructor":this.error("cannot call super outside of an instance method.")},n.prototype.superThis=function(e){var t;return t=e.scope.method,t&&!t.klass&&t.context||"this"},n.prototype.unfoldSoak=function(e){var t,i,r,s,o,a,c,l,h;if(this.soak){if(this.variable){if(i=ve(e,this,"variable"))return i;c=new J(this.variable).cacheReference(e),s=c[0],h=c[1]}else s=new L(this.superReference(e)),h=new J(s);return h=new n(h,this.args),h.isNew=this.isNew,s=new L("typeof "+s.compile(e)+' === "function"'),new k(s,new J(h),{soak:!0})}for(t=this,a=[];;)if(t.variable instanceof n)a.push(t),t=t.variable;else{if(!(t.variable instanceof J))break;if(a.push(t),!((t=t.variable.base)instanceof n))break}for(l=a.reverse(),r=0,o=l.length;r<o;r++)t=l[r],i&&(t.variable instanceof n?t.variable=i:t.variable.base=i),i=ve(e,t,"variable");return i},n.prototype.compileNode=function(e){var t,n,i,r,s,o,a,c,l,h;if(null!=(l=this.variable)&&(l.front=this.front),r=H.compileSplattedArray(e,this.args,!0),r.length)return this.compileSplat(e,r);for(i=[],h=this.args,n=o=0,a=h.length;o<a;n=++o)t=h[n],n&&i.push(this.makeCode(", ")),i.push.apply(i,t.compileToFragments(e,x));return s=[],this.isSuper?(c=this.superReference(e)+(".call("+this.superThis(e)),i.length&&(c+=", "),s.push(this.makeCode(c))):(this.isNew&&s.push(this.makeCode("new ")),s.push.apply(s,this.variable.compileToFragments(e,C)),s.push(this.makeCode("("))),s.push.apply(s,i),s.push(this.makeCode(")")),s},n.prototype.compileSplat=function(e,t){var n,i,r,s,o,a;return this.isSuper?[].concat(this.makeCode(this.superReference(e)+".apply("+this.superThis(e)+", "),t,this.makeCode(")")):this.isNew?(s=this.tab+Y,[].concat(this.makeCode("(function(func, args, ctor) {\n"+s+"ctor.prototype = func.prototype;\n"+s+"var child = new ctor, result = func.apply(child, args);\n"+s+"return Object(result) === result ? result : child;\n"+this.tab+"})("),this.variable.compileToFragments(e,x),this.makeCode(", "),t,this.makeCode(", function(){})"))):(n=[],i=new J(this.variable),(o=i.properties.pop())&&i.isComplex()?(a=e.scope.freeVariable("ref"),n=n.concat(this.makeCode("("+a+" = "),i.compileToFragments(e,x),this.makeCode(")"),o.compileToFragments(e))):(r=i.compileToFragments(e,C),P.test(oe(r))&&(r=this.wrapInBraces(r)),o?(a=oe(r),r.push.apply(r,o.compileToFragments(e))):a="null",n=n.concat(r)),n=n.concat(this.makeCode(".apply("+a+", "),t,this.makeCode(")")))},n}(s),n.Extends=d=function(e){function t(e,t){this.child=e,this.parent=t}return we(t,e),t.prototype.children=["child","parent"],t.prototype.compileToFragments=function(e){return new a(new J(new L(ke("extend",e))),[this.child,this.parent]).compileToFragments(e)},t}(s),n.Access=t=function(e){function t(e,t){this.name=e,this.name.asKey=!0,this.soak="soak"===t}return we(t,e),t.prototype.children=["name"],t.prototype.compileToFragments=function(e)