1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Copy the generated output CS2 docs onto master so that GitHub pages can publish them

This commit is contained in:
Geoffrey Booth 2017-02-21 08:35:58 -08:00
parent 91e3f7255c
commit cee1076e1d
29 changed files with 34661 additions and 0 deletions

View file

@ -0,0 +1,319 @@
<!DOCTYPE html>
<html>
<head>
<title>browser.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>browser.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>This <strong>Browser</strong> compatibility layer extends core CoffeeScript functions
to make things work smoothly when compiling code directly in the browser.
We add support for loading remote Coffee scripts via <strong>XHR</strong>, and
<code>text/coffeescript</code> script tags, source maps via data-URLs, and so on.</p>
</div>
<div class="content"><div class='highlight'><pre>
CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span>
CoffeeScript.<span class="hljs-built_in">require</span> = <span class="hljs-built_in">require</span>
compile = CoffeeScript.compile</pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>Use standard JavaScript <code>eval</code> to eval code.</p>
</div>
<div class="content"><div class='highlight'><pre>CoffeeScript.eval = <span class="hljs-function"><span class="hljs-params">(code, options = {})</span> -&gt;</span>
options.bare ?= <span class="hljs-literal">on</span>
eval compile code, options</pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Running code does not provide access to this scope.</p>
</div>
<div class="content"><div class='highlight'><pre>CoffeeScript.run = <span class="hljs-function"><span class="hljs-params">(code, options = {})</span> -&gt;</span>
options.bare = <span class="hljs-literal">on</span>
options.shiftLine = <span class="hljs-literal">on</span>
Function(compile code, options)()</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>If were not in a browser environment, were finished with the public API.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> <span class="hljs-built_in">window</span>?</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Include source maps where possible. If weve got a base64 encoder, a
JSON serializer, and tools for escaping unicode characters, were good to go.
Ported from <a href="https://developer.mozilla.org/en-US/docs/DOM/window.btoa">https://developer.mozilla.org/en-US/docs/DOM/window.btoa</a></p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> btoa? <span class="hljs-keyword">and</span> JSON?
<span class="hljs-function"> <span class="hljs-title">compile</span> = <span class="hljs-params">(code, options = {})</span> -&gt;</span>
options.inlineMap = <span class="hljs-literal">true</span>
CoffeeScript.compile code, options</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Load a remote script from the current domain via XHR.</p>
</div>
<div class="content"><div class='highlight'><pre>CoffeeScript.load = <span class="hljs-function"><span class="hljs-params">(url, callback, options = {}, hold = <span class="hljs-literal">false</span>)</span> -&gt;</span>
options.sourceFiles = [url]
xhr = <span class="hljs-keyword">if</span> <span class="hljs-built_in">window</span>.ActiveXObject
<span class="hljs-keyword">new</span> <span class="hljs-built_in">window</span>.ActiveXObject(<span class="hljs-string">'Microsoft.XMLHTTP'</span>)
<span class="hljs-keyword">else</span>
<span class="hljs-keyword">new</span> <span class="hljs-built_in">window</span>.XMLHttpRequest()
xhr.open <span class="hljs-string">'GET'</span>, url, <span class="hljs-literal">true</span>
xhr.overrideMimeType <span class="hljs-string">'text/plain'</span> <span class="hljs-keyword">if</span> <span class="hljs-string">'overrideMimeType'</span> <span class="hljs-keyword">of</span> xhr
xhr.onreadystatechange = <span class="hljs-function">-&gt;</span>
<span class="hljs-keyword">if</span> xhr.readyState <span class="hljs-keyword">is</span> <span class="hljs-number">4</span>
<span class="hljs-keyword">if</span> xhr.status <span class="hljs-keyword">in</span> [<span class="hljs-number">0</span>, <span class="hljs-number">200</span>]
param = [xhr.responseText, options]
CoffeeScript.run param... <span class="hljs-keyword">unless</span> hold
<span class="hljs-keyword">else</span>
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">"Could not load <span class="hljs-subst">#{url}</span>"</span>
callback param <span class="hljs-keyword">if</span> callback
xhr.send <span class="hljs-literal">null</span></pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Activate CoffeeScript in the browser by having it compile and evaluate
all script tags with a content-type of <code>text/coffeescript</code>.
This happens on page load.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">runScripts</span> = -&gt;</span>
scripts = <span class="hljs-built_in">window</span>.<span class="hljs-built_in">document</span>.getElementsByTagName <span class="hljs-string">'script'</span>
coffeetypes = [<span class="hljs-string">'text/coffeescript'</span>, <span class="hljs-string">'text/literate-coffeescript'</span>]
coffees = (s <span class="hljs-keyword">for</span> s <span class="hljs-keyword">in</span> scripts <span class="hljs-keyword">when</span> s.type <span class="hljs-keyword">in</span> coffeetypes)
index = <span class="hljs-number">0</span>
<span class="hljs-function">
<span class="hljs-title">execute</span> = -&gt;</span>
param = coffees[index]
<span class="hljs-keyword">if</span> param <span class="hljs-keyword">instanceof</span> Array
CoffeeScript.run param...
index++
execute()
<span class="hljs-keyword">for</span> script, i <span class="hljs-keyword">in</span> coffees
<span class="hljs-keyword">do</span> (script, i) -&gt;
options = literate: script.type <span class="hljs-keyword">is</span> coffeetypes[<span class="hljs-number">1</span>]
source = script.src <span class="hljs-keyword">or</span> script.getAttribute(<span class="hljs-string">'data-src'</span>)
<span class="hljs-keyword">if</span> source
options.filename = source
CoffeeScript.load source,
<span class="hljs-function"><span class="hljs-params">(param)</span> -&gt;</span>
coffees[i] = param
execute()
options
<span class="hljs-literal">true</span>
<span class="hljs-keyword">else</span></pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p><code>options.filename</code> defines the filename the source map appears as
in Developer Tools. If a script tag has an <code>id</code>, use that as the
filename; otherwise use <code>coffeescript</code>, or <code>coffeescript1</code> etc.,
leaving the first one unnumbered for the common case that theres
only one CoffeeScript script block to parse.</p>
</div>
<div class="content"><div class='highlight'><pre> options.filename = <span class="hljs-keyword">if</span> script.id <span class="hljs-keyword">and</span> script.id <span class="hljs-keyword">isnt</span> <span class="hljs-string">''</span> <span class="hljs-keyword">then</span> script.id <span class="hljs-keyword">else</span> <span class="hljs-string">"coffeescript<span class="hljs-subst">#{<span class="hljs-keyword">if</span> i <span class="hljs-keyword">isnt</span> <span class="hljs-number">0</span> <span class="hljs-keyword">then</span> i <span class="hljs-keyword">else</span> <span class="hljs-string">''</span>}</span>"</span>
options.sourceFiles = [<span class="hljs-string">'embedded'</span>]
coffees[i] = [script.innerHTML, options]
execute()</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Listen for window load, both in decent browsers and in IE.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> <span class="hljs-built_in">window</span>.addEventListener
<span class="hljs-built_in">window</span>.addEventListener <span class="hljs-string">'DOMContentLoaded'</span>, runScripts, <span class="hljs-literal">no</span>
<span class="hljs-keyword">else</span>
<span class="hljs-built_in">window</span>.attachEvent <span class="hljs-string">'onload'</span>, runScripts</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,345 @@
<!DOCTYPE html>
<html>
<head>
<title>cake.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>cake.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p><code>cake</code> is a simplified version of <a href="http://www.gnu.org/software/make/">Make</a>
(<a href="http://rake.rubyforge.org/">Rake</a>, <a href="http://github.com/280north/jake">Jake</a>)
for CoffeeScript. You define tasks with names and descriptions in a Cakefile,
and can call them from the command line, or invoke them from other tasks.</p>
<p>Running <code>cake</code> with no arguments will print out a list of all the tasks in the
current directorys Cakefile.</p>
</div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>External dependencies.</p>
</div>
<div class="content"><div class='highlight'><pre>fs = <span class="hljs-built_in">require</span> <span class="hljs-string">'fs'</span>
path = <span class="hljs-built_in">require</span> <span class="hljs-string">'path'</span>
helpers = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span>
optparse = <span class="hljs-built_in">require</span> <span class="hljs-string">'./optparse'</span>
CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span></pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Register .coffee extension</p>
</div>
<div class="content"><div class='highlight'><pre>CoffeeScript.register()</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Keep track of the list of defined tasks, the accepted options, and so on.</p>
</div>
<div class="content"><div class='highlight'><pre>tasks = {}
options = {}
switches = []
oparse = <span class="hljs-literal">null</span></pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Mixin the top-level Cake functions for Cakefiles to use directly.</p>
</div>
<div class="content"><div class='highlight'><pre>helpers.extend <span class="hljs-built_in">global</span>,</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Define a Cake task with a short name, an optional sentence description,
and the function to run as the action itself.</p>
</div>
<div class="content"><div class='highlight'><pre> task: <span class="hljs-function"><span class="hljs-params">(name, description, action)</span> -&gt;</span>
[action, description] = [description, action] <span class="hljs-keyword">unless</span> action
tasks[name] = {name, description, action}</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Define an option that the Cakefile accepts. The parsed options hash,
containing all of the command-line options passed, will be made available
as the first argument to the action.</p>
</div>
<div class="content"><div class='highlight'><pre> option: <span class="hljs-function"><span class="hljs-params">(letter, flag, description)</span> -&gt;</span>
switches.push [letter, flag, description]</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Invoke another task in the current Cakefile.</p>
</div>
<div class="content"><div class='highlight'><pre> invoke: <span class="hljs-function"><span class="hljs-params">(name)</span> -&gt;</span>
missingTask name <span class="hljs-keyword">unless</span> tasks[name]
tasks[name].action options</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Run <code>cake</code>. Executes all of the tasks you pass, in order. Note that Nodes
asynchrony may cause tasks to execute in a different order than youd expect.
If no tasks are passed, print the help screen. Keep a reference to the
original directory name, when running Cake tasks from subdirectories.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.run = <span class="hljs-function">-&gt;</span>
<span class="hljs-built_in">global</span>.__originalDirname = fs.realpathSync <span class="hljs-string">'.'</span>
process.chdir cakefileDirectory __originalDirname
args = process.argv[<span class="hljs-number">2.</span>.]
CoffeeScript.run fs.readFileSync(<span class="hljs-string">'Cakefile'</span>).toString(), filename: <span class="hljs-string">'Cakefile'</span>
oparse = <span class="hljs-keyword">new</span> optparse.OptionParser switches
<span class="hljs-keyword">return</span> printTasks() <span class="hljs-keyword">unless</span> args.length
<span class="hljs-keyword">try</span>
options = oparse.parse(args)
<span class="hljs-keyword">catch</span> e
<span class="hljs-keyword">return</span> fatalError <span class="hljs-string">"<span class="hljs-subst">#{e}</span>"</span>
invoke arg <span class="hljs-keyword">for</span> arg <span class="hljs-keyword">in</span> options.arguments</pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Display the list of Cake tasks in a format similar to <code>rake -T</code></p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">printTasks</span> = -&gt;</span>
relative = path.relative <span class="hljs-keyword">or</span> path.resolve
cakefilePath = path.join relative(__originalDirname, process.cwd()), <span class="hljs-string">'Cakefile'</span>
<span class="hljs-built_in">console</span>.log <span class="hljs-string">"<span class="hljs-subst">#{cakefilePath}</span> defines the following tasks:\n"</span>
<span class="hljs-keyword">for</span> name, task <span class="hljs-keyword">of</span> tasks
spaces = <span class="hljs-number">20</span> - name.length
spaces = <span class="hljs-keyword">if</span> spaces &gt; <span class="hljs-number">0</span> <span class="hljs-keyword">then</span> Array(spaces + <span class="hljs-number">1</span>).join(<span class="hljs-string">' '</span>) <span class="hljs-keyword">else</span> <span class="hljs-string">''</span>
desc = <span class="hljs-keyword">if</span> task.description <span class="hljs-keyword">then</span> <span class="hljs-string">"# <span class="hljs-subst">#{task.description}</span>"</span> <span class="hljs-keyword">else</span> <span class="hljs-string">''</span>
<span class="hljs-built_in">console</span>.log <span class="hljs-string">"cake <span class="hljs-subst">#{name}</span><span class="hljs-subst">#{spaces}</span> <span class="hljs-subst">#{desc}</span>"</span>
<span class="hljs-built_in">console</span>.log oparse.help() <span class="hljs-keyword">if</span> switches.length</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Print an error and exit when attempting to use an invalid task/option.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">fatalError</span> = <span class="hljs-params">(message)</span> -&gt;</span>
<span class="hljs-built_in">console</span>.error message + <span class="hljs-string">'\n'</span>
<span class="hljs-built_in">console</span>.log <span class="hljs-string">'To see a list of all tasks/options, run "cake"'</span>
process.exit <span class="hljs-number">1</span>
<span class="hljs-function">
<span class="hljs-title">missingTask</span> = <span class="hljs-params">(task)</span> -&gt;</span> fatalError <span class="hljs-string">"No such task: <span class="hljs-subst">#{task}</span>"</span></pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>When <code>cake</code> is invoked, search in the current and all parent directories
to find the relevant Cakefile.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">cakefileDirectory</span> = <span class="hljs-params">(dir)</span> -&gt;</span>
<span class="hljs-keyword">return</span> dir <span class="hljs-keyword">if</span> fs.existsSync path.join dir, <span class="hljs-string">'Cakefile'</span>
parent = path.normalize path.join dir, <span class="hljs-string">'..'</span>
<span class="hljs-keyword">return</span> cakefileDirectory parent <span class="hljs-keyword">unless</span> parent <span class="hljs-keyword">is</span> dir
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">"Cakefile not found in <span class="hljs-subst">#{process.cwd()}</span>"</span></pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,982 @@
<!DOCTYPE html>
<html>
<head>
<title>coffeescript.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>coffeescript.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>CoffeeScript can be used both on the server, as a command-line compiler based
on Node.js/V8, or to run CoffeeScript directly in the browser. This module
contains the main entry functions for tokenizing, parsing, and compiling
source CoffeeScript into JavaScript.</p>
</div>
<div class="content"><div class='highlight'><pre>
fs = <span class="hljs-built_in">require</span> <span class="hljs-string">'fs'</span>
vm = <span class="hljs-built_in">require</span> <span class="hljs-string">'vm'</span>
path = <span class="hljs-built_in">require</span> <span class="hljs-string">'path'</span>
{Lexer} = <span class="hljs-built_in">require</span> <span class="hljs-string">'./lexer'</span>
{parser} = <span class="hljs-built_in">require</span> <span class="hljs-string">'./parser'</span>
helpers = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span>
SourceMap = <span class="hljs-built_in">require</span> <span class="hljs-string">'./sourcemap'</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>Require <code>package.json</code>, which is two levels above this file, as this file is
evaluated from <code>lib/coffeescript</code>.</p>
</div>
<div class="content"><div class='highlight'><pre>packageJson = <span class="hljs-built_in">require</span> <span class="hljs-string">'../../package.json'</span></pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>The current CoffeeScript version number.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.VERSION = packageJson.version
exports.FILE_EXTENSIONS = [<span class="hljs-string">'.coffee'</span>, <span class="hljs-string">'.litcoffee'</span>, <span class="hljs-string">'.coffee.md'</span>]</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Expose helpers for testing.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.helpers = helpers</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Function that allows for btoa in both nodejs and the browser.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">base64encode</span> = <span class="hljs-params">(src)</span> -&gt;</span> <span class="hljs-keyword">switch</span>
<span class="hljs-keyword">when</span> <span class="hljs-keyword">typeof</span> Buffer <span class="hljs-keyword">is</span> <span class="hljs-string">'function'</span>
Buffer.<span class="hljs-keyword">from</span>(src).toString(<span class="hljs-string">'base64'</span>)
<span class="hljs-keyword">when</span> <span class="hljs-keyword">typeof</span> btoa <span class="hljs-keyword">is</span> <span class="hljs-string">'function'</span></pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>The contents of a <code>&lt;script&gt;</code> block are encoded via UTF-16, so if any extended
characters are used in the block, btoa will fail as it maxes out at UTF-8.
See <a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem">https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem</a>
for the gory details, and for the solution implemented here.</p>
</div>
<div class="content"><div class='highlight'><pre> btoa encodeURIComponent(src).replace <span class="hljs-regexp">/%([0-9A-F]{2})/g</span>, <span class="hljs-function"><span class="hljs-params">(match, p1)</span> -&gt;</span>
String.fromCharCode <span class="hljs-string">'0x'</span> + p1
<span class="hljs-keyword">else</span>
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error(<span class="hljs-string">'Unable to base64 encode inline sourcemap.'</span>)</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Function wrapper to add source file information to SyntaxErrors thrown by the
lexer/parser/compiler.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">withPrettyErrors</span> = <span class="hljs-params">(fn)</span> -&gt;</span>
(code, options = {}) -&gt;
<span class="hljs-keyword">try</span>
fn.call @, code, options
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">if</span> <span class="hljs-keyword">typeof</span> code <span class="hljs-keyword">isnt</span> <span class="hljs-string">'string'</span> <span class="hljs-comment"># Support `CoffeeScript.nodes(tokens)`.</span>
<span class="hljs-keyword">throw</span> helpers.updateSyntaxError err, code, options.filename</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>For each compiled file, save its source in memory in case we need to
recompile it later. We might need to recompile if the first compilation
didnt create a source map (faster) but something went wrong and we need
a stack trace. Assuming that most of the time, code isnt throwing
exceptions, its probably more efficient to compile twice only when we
need a stack trace, rather than always generating a source map even when
its not likely to be used. Save in form of <code>filename</code>: <code>(source)</code></p>
</div>
<div class="content"><div class='highlight'><pre>sources = {}</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Also save source maps if generated, in form of <code>filename</code>: <code>(source map)</code>.</p>
</div>
<div class="content"><div class='highlight'><pre>sourceMaps = {}</pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Compile CoffeeScript code to JavaScript, using the Coffee/Jison compiler.</p>
<p>If <code>options.sourceMap</code> is specified, then <code>options.filename</code> must also be
specified. All options that can be passed to <code>SourceMap#generate</code> may also
be passed here.</p>
<p>This returns a javascript string, unless <code>options.sourceMap</code> is passed,
in which case this returns a <code>{js, v3SourceMap, sourceMap}</code>
object, where sourceMap is a sourcemap.coffee#SourceMap object, handy for
doing programmatic lookups.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.compile = compile = withPrettyErrors (code, options) -&gt;
{merge, extend} = helpers
options = extend {}, options</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Always generate a source map if no filename is passed in, since without a
a filename we have no way to retrieve this source later in the event that
we need to recompile it to get a source map for <code>prepareStackTrace</code>.</p>
</div>
<div class="content"><div class='highlight'><pre> generateSourceMap = options.sourceMap <span class="hljs-keyword">or</span> options.inlineMap <span class="hljs-keyword">or</span> <span class="hljs-keyword">not</span> options.filename?
filename = options.filename <span class="hljs-keyword">or</span> <span class="hljs-string">'&lt;anonymous&gt;'</span>
sources[filename] = code
map = <span class="hljs-keyword">new</span> SourceMap <span class="hljs-keyword">if</span> generateSourceMap
tokens = lexer.tokenize code, options</pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>Pass a list of referenced variables, so that generated variables wont get
the same name.</p>
</div>
<div class="content"><div class='highlight'><pre> options.referencedVars = (
token[<span class="hljs-number">1</span>] <span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> tokens <span class="hljs-keyword">when</span> token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span>
)</pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>Check for import or export; if found, force bare mode.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">unless</span> options.bare? <span class="hljs-keyword">and</span> options.bare <span class="hljs-keyword">is</span> <span class="hljs-literal">yes</span>
<span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> tokens
<span class="hljs-keyword">if</span> token[<span class="hljs-number">0</span>] <span class="hljs-keyword">in</span> [<span class="hljs-string">'IMPORT'</span>, <span class="hljs-string">'EXPORT'</span>]
options.bare = <span class="hljs-literal">yes</span>
<span class="hljs-keyword">break</span>
fragments = parser.parse(tokens).compileToFragments options
currentLine = <span class="hljs-number">0</span>
currentLine += <span class="hljs-number">1</span> <span class="hljs-keyword">if</span> options.header
currentLine += <span class="hljs-number">1</span> <span class="hljs-keyword">if</span> options.shiftLine
currentColumn = <span class="hljs-number">0</span>
js = <span class="hljs-string">""</span>
<span class="hljs-keyword">for</span> fragment <span class="hljs-keyword">in</span> fragments</pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>Update the sourcemap with data from each fragment.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> generateSourceMap</pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<p>Do not include empty, whitespace, or semicolon-only fragments.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> fragment.locationData <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> <span class="hljs-regexp">/^[;\s]*$/</span>.test fragment.code
map.add(
[fragment.locationData.first_line, fragment.locationData.first_column]
[currentLine, currentColumn]
{noReplace: <span class="hljs-literal">true</span>})
newLines = helpers.count fragment.code, <span class="hljs-string">"\n"</span>
currentLine += newLines
<span class="hljs-keyword">if</span> newLines
currentColumn = fragment.code.length - (fragment.code.lastIndexOf(<span class="hljs-string">"\n"</span>) + <span class="hljs-number">1</span>)
<span class="hljs-keyword">else</span>
currentColumn += fragment.code.length</pre></div></div>
</li>
<li id="section-16">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-16">&#182;</a>
</div>
<p>Copy the code from each fragment into the final JavaScript.</p>
</div>
<div class="content"><div class='highlight'><pre> js += fragment.code
<span class="hljs-keyword">if</span> options.header
header = <span class="hljs-string">"Generated by CoffeeScript <span class="hljs-subst">#{@VERSION}</span>"</span>
js = <span class="hljs-string">"// <span class="hljs-subst">#{header}</span>\n<span class="hljs-subst">#{js}</span>"</span>
<span class="hljs-keyword">if</span> generateSourceMap
v3SourceMap = map.generate(options, code)
sourceMaps[filename] = map
<span class="hljs-keyword">if</span> options.inlineMap
encoded = base64encode JSON.stringify v3SourceMap
sourceMapDataURI = <span class="hljs-string">"//# sourceMappingURL=data:application/json;base64,<span class="hljs-subst">#{encoded}</span>"</span>
sourceURL = <span class="hljs-string">"//# sourceURL=<span class="hljs-subst">#{options.filename ? <span class="hljs-string">'coffeescript'</span>}</span>"</span>
js = <span class="hljs-string">"<span class="hljs-subst">#{js}</span>\n<span class="hljs-subst">#{sourceMapDataURI}</span>\n<span class="hljs-subst">#{sourceURL}</span>"</span>
<span class="hljs-keyword">if</span> options.sourceMap
{
js
sourceMap: map
v3SourceMap: JSON.stringify v3SourceMap, <span class="hljs-literal">null</span>, <span class="hljs-number">2</span>
}
<span class="hljs-keyword">else</span>
js</pre></div></div>
</li>
<li id="section-17">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-17">&#182;</a>
</div>
<p>Tokenize a string of CoffeeScript code, and return the array of tokens.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.tokens = withPrettyErrors (code, options) -&gt;
lexer.tokenize code, options</pre></div></div>
</li>
<li id="section-18">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-18">&#182;</a>
</div>
<p>Parse a string of CoffeeScript code or an array of lexed tokens, and
return the AST. You can then compile it by calling <code>.compile()</code> on the root,
or traverse it by using <code>.traverseChildren()</code> with a callback.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.nodes = withPrettyErrors (source, options) -&gt;
<span class="hljs-keyword">if</span> <span class="hljs-keyword">typeof</span> source <span class="hljs-keyword">is</span> <span class="hljs-string">'string'</span>
parser.parse lexer.tokenize source, options
<span class="hljs-keyword">else</span>
parser.parse source</pre></div></div>
</li>
<li id="section-19">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-19">&#182;</a>
</div>
<p>Compile and execute a string of CoffeeScript (on the server), correctly
setting <code>__filename</code>, <code>__dirname</code>, and relative <code>require()</code>.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.run = <span class="hljs-function"><span class="hljs-params">(code, options = {})</span> -&gt;</span>
mainModule = <span class="hljs-built_in">require</span>.main</pre></div></div>
</li>
<li id="section-20">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-20">&#182;</a>
</div>
<p>Set the filename.</p>
</div>
<div class="content"><div class='highlight'><pre> mainModule.filename = process.argv[<span class="hljs-number">1</span>] =
<span class="hljs-keyword">if</span> options.filename <span class="hljs-keyword">then</span> fs.realpathSync(options.filename) <span class="hljs-keyword">else</span> <span class="hljs-string">'&lt;anonymous&gt;'</span></pre></div></div>
</li>
<li id="section-21">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-21">&#182;</a>
</div>
<p>Clear the module cache.</p>
</div>
<div class="content"><div class='highlight'><pre> mainModule.moduleCache <span class="hljs-keyword">and</span>= {}</pre></div></div>
</li>
<li id="section-22">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-22">&#182;</a>
</div>
<p>Assign paths for node_modules loading</p>
</div>
<div class="content"><div class='highlight'><pre> dir = <span class="hljs-keyword">if</span> options.filename?
path.dirname fs.realpathSync options.filename
<span class="hljs-keyword">else</span>
fs.realpathSync <span class="hljs-string">'.'</span>
mainModule.paths = <span class="hljs-built_in">require</span>(<span class="hljs-string">'module'</span>)._nodeModulePaths dir</pre></div></div>
</li>
<li id="section-23">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-23">&#182;</a>
</div>
<p>Compile.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> helpers.isCoffee(mainModule.filename) <span class="hljs-keyword">or</span> <span class="hljs-built_in">require</span>.extensions
answer = compile code, options
code = answer.js ? answer
mainModule._compile code, mainModule.filename</pre></div></div>
</li>
<li id="section-24">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-24">&#182;</a>
</div>
<p>Compile and evaluate a string of CoffeeScript (in a Node.js-like environment).
The CoffeeScript REPL uses this to run the input.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.eval = <span class="hljs-function"><span class="hljs-params">(code, options = {})</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> code = code.trim()
createContext = vm.Script.createContext ? vm.createContext
isContext = vm.isContext ? (ctx) -&gt;
options.sandbox <span class="hljs-keyword">instanceof</span> createContext().constructor
<span class="hljs-keyword">if</span> createContext
<span class="hljs-keyword">if</span> options.sandbox?
<span class="hljs-keyword">if</span> isContext options.sandbox
sandbox = options.sandbox
<span class="hljs-keyword">else</span>
sandbox = createContext()
sandbox[k] = v <span class="hljs-keyword">for</span> own k, v <span class="hljs-keyword">of</span> options.sandbox
sandbox.<span class="hljs-built_in">global</span> = sandbox.root = sandbox.GLOBAL = sandbox
<span class="hljs-keyword">else</span>
sandbox = <span class="hljs-built_in">global</span>
sandbox.__filename = options.filename || <span class="hljs-string">'eval'</span>
sandbox.__dirname = path.dirname sandbox.__filename</pre></div></div>
</li>
<li id="section-25">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-25">&#182;</a>
</div>
<p>define module/require only if they chose not to specify their own</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">unless</span> sandbox <span class="hljs-keyword">isnt</span> <span class="hljs-built_in">global</span> <span class="hljs-keyword">or</span> sandbox.<span class="hljs-built_in">module</span> <span class="hljs-keyword">or</span> sandbox.<span class="hljs-built_in">require</span>
Module = <span class="hljs-built_in">require</span> <span class="hljs-string">'module'</span>
sandbox.<span class="hljs-built_in">module</span> = _module = <span class="hljs-keyword">new</span> Module(options.modulename || <span class="hljs-string">'eval'</span>)
sandbox.<span class="hljs-built_in">require</span> = _require = <span class="hljs-function"><span class="hljs-params">(path)</span> -&gt;</span> Module._load path, _module, <span class="hljs-literal">true</span>
_module.filename = sandbox.__filename
<span class="hljs-keyword">for</span> r <span class="hljs-keyword">in</span> Object.getOwnPropertyNames <span class="hljs-built_in">require</span> <span class="hljs-keyword">when</span> r <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> [<span class="hljs-string">'paths'</span>, <span class="hljs-string">'arguments'</span>, <span class="hljs-string">'caller'</span>]
_require[r] = <span class="hljs-built_in">require</span>[r]</pre></div></div>
</li>
<li id="section-26">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-26">&#182;</a>
</div>
<p>use the same hack node currently uses for their own REPL</p>
</div>
<div class="content"><div class='highlight'><pre> _require.paths = _module.paths = Module._nodeModulePaths process.cwd()
_require.resolve = <span class="hljs-function"><span class="hljs-params">(request)</span> -&gt;</span> Module._resolveFilename request, _module
o = {}
o[k] = v <span class="hljs-keyword">for</span> own k, v <span class="hljs-keyword">of</span> options
o.bare = <span class="hljs-literal">on</span> <span class="hljs-comment"># ensure return value</span>
js = compile code, o
<span class="hljs-keyword">if</span> sandbox <span class="hljs-keyword">is</span> <span class="hljs-built_in">global</span>
vm.runInThisContext js
<span class="hljs-keyword">else</span>
vm.runInContext js, sandbox
exports.register = <span class="hljs-function">-&gt;</span> <span class="hljs-built_in">require</span> <span class="hljs-string">'./register'</span></pre></div></div>
</li>
<li id="section-27">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-27">&#182;</a>
</div>
<p>Throw error with deprecation warning when depending upon implicit <code>require.extensions</code> registration</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> <span class="hljs-built_in">require</span>.extensions
<span class="hljs-keyword">for</span> ext <span class="hljs-keyword">in</span> @FILE_EXTENSIONS <span class="hljs-keyword">then</span> <span class="hljs-keyword">do</span> (ext) -&gt;
<span class="hljs-built_in">require</span>.extensions[ext] ?= <span class="hljs-function">-&gt;</span>
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">"""
Use CoffeeScript.register() or require the coffeescript/register module to require <span class="hljs-subst">#{ext}</span> files.
"""</span>
exports._compileFile = <span class="hljs-function"><span class="hljs-params">(filename, sourceMap = <span class="hljs-literal">no</span>, inlineMap = <span class="hljs-literal">no</span>)</span> -&gt;</span>
raw = fs.readFileSync filename, <span class="hljs-string">'utf8'</span></pre></div></div>
</li>
<li id="section-28">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-28">&#182;</a>
</div>
<p>Strip the Unicode byte order mark, if this file begins with one.</p>
</div>
<div class="content"><div class='highlight'><pre> stripped = <span class="hljs-keyword">if</span> raw.charCodeAt(<span class="hljs-number">0</span>) <span class="hljs-keyword">is</span> <span class="hljs-number">0xFEFF</span> <span class="hljs-keyword">then</span> raw.substring <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> raw
<span class="hljs-keyword">try</span>
answer = compile stripped, {
filename, sourceMap, inlineMap
sourceFiles: [filename]
literate: helpers.isLiterate filename
}
<span class="hljs-keyword">catch</span> err</pre></div></div>
</li>
<li id="section-29">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-29">&#182;</a>
</div>
<p>As the filename and code of a dynamically loaded file will be different
from the original file compiled with CoffeeScript.run, add that
information to error so it can be pretty-printed later.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">throw</span> helpers.updateSyntaxError err, stripped, filename
answer</pre></div></div>
</li>
<li id="section-30">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-30">&#182;</a>
</div>
<p>Instantiate a Lexer for our use here.</p>
</div>
<div class="content"><div class='highlight'><pre>lexer = <span class="hljs-keyword">new</span> Lexer</pre></div></div>
</li>
<li id="section-31">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-31">&#182;</a>
</div>
<p>The real Lexer produces a generic stream of tokens. This object provides a
thin wrapper around it, compatible with the Jison API. We can then pass it
directly as a “Jison lexer”.</p>
</div>
<div class="content"><div class='highlight'><pre>parser.lexer =
lex: <span class="hljs-function">-&gt;</span>
token = parser.tokens[@pos++]
<span class="hljs-keyword">if</span> token
[tag, @yytext, @yylloc] = token
parser.errorToken = token.origin <span class="hljs-keyword">or</span> token
@yylineno = @yylloc.first_line
<span class="hljs-keyword">else</span>
tag = <span class="hljs-string">''</span>
tag
setInput: <span class="hljs-function"><span class="hljs-params">(tokens)</span> -&gt;</span>
parser.tokens = tokens
@pos = <span class="hljs-number">0</span>
upcomingInput: <span class="hljs-function">-&gt;</span>
<span class="hljs-string">""</span></pre></div></div>
</li>
<li id="section-32">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-32">&#182;</a>
</div>
<p>Make all the AST nodes visible to the parser.</p>
</div>
<div class="content"><div class='highlight'><pre>parser.yy = <span class="hljs-built_in">require</span> <span class="hljs-string">'./nodes'</span></pre></div></div>
</li>
<li id="section-33">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-33">&#182;</a>
</div>
<p>Override Jisons default error handling function.</p>
</div>
<div class="content"><div class='highlight'><pre>parser.yy.parseError = <span class="hljs-function"><span class="hljs-params">(message, {token})</span> -&gt;</span></pre></div></div>
</li>
<li id="section-34">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-34">&#182;</a>
</div>
<p>Disregard Jisons message, it contains redundant line number information.
Disregard the token, we take its value directly from the lexer in case
the error is caused by a generated token which might refer to its origin.</p>
</div>
<div class="content"><div class='highlight'><pre> {errorToken, tokens} = parser
[errorTag, errorText, errorLoc] = errorToken
errorText = <span class="hljs-keyword">switch</span>
<span class="hljs-keyword">when</span> errorToken <span class="hljs-keyword">is</span> tokens[tokens.length - <span class="hljs-number">1</span>]
<span class="hljs-string">'end of input'</span>
<span class="hljs-keyword">when</span> errorTag <span class="hljs-keyword">in</span> [<span class="hljs-string">'INDENT'</span>, <span class="hljs-string">'OUTDENT'</span>]
<span class="hljs-string">'indentation'</span>
<span class="hljs-keyword">when</span> errorTag <span class="hljs-keyword">in</span> [<span class="hljs-string">'IDENTIFIER'</span>, <span class="hljs-string">'NUMBER'</span>, <span class="hljs-string">'INFINITY'</span>, <span class="hljs-string">'STRING'</span>, <span class="hljs-string">'STRING_START'</span>, <span class="hljs-string">'REGEX'</span>, <span class="hljs-string">'REGEX_START'</span>]
errorTag.replace(<span class="hljs-regexp">/_START$/</span>, <span class="hljs-string">''</span>).toLowerCase()
<span class="hljs-keyword">else</span>
helpers.nameWhitespaceCharacter errorText</pre></div></div>
</li>
<li id="section-35">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-35">&#182;</a>
</div>
<p>The second argument has a <code>loc</code> property, which should have the location
data for this token. Unfortunately, Jison seems to send an outdated <code>loc</code>
(from the previous token), so we take the location information directly
from the lexer.</p>
</div>
<div class="content"><div class='highlight'><pre> helpers.throwSyntaxError <span class="hljs-string">"unexpected <span class="hljs-subst">#{errorText}</span>"</span>, errorLoc</pre></div></div>
</li>
<li id="section-36">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-36">&#182;</a>
</div>
<p>Based on <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js">http://v8.googlecode.com/svn/branches/bleeding_edge/src/messages.js</a>
Modified to handle sourceMap</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">formatSourcePosition</span> = <span class="hljs-params">(frame, getSourceMapping)</span> -&gt;</span>
filename = <span class="hljs-literal">undefined</span>
fileLocation = <span class="hljs-string">''</span>
<span class="hljs-keyword">if</span> frame.isNative()
fileLocation = <span class="hljs-string">"native"</span>
<span class="hljs-keyword">else</span>
<span class="hljs-keyword">if</span> frame.isEval()
filename = frame.getScriptNameOrSourceURL()
fileLocation = <span class="hljs-string">"<span class="hljs-subst">#{frame.getEvalOrigin()}</span>, "</span> <span class="hljs-keyword">unless</span> filename
<span class="hljs-keyword">else</span>
filename = frame.getFileName()
filename <span class="hljs-keyword">or</span>= <span class="hljs-string">"&lt;anonymous&gt;"</span>
line = frame.getLineNumber()
column = frame.getColumnNumber()</pre></div></div>
</li>
<li id="section-37">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-37">&#182;</a>
</div>
<p>Check for a sourceMap position</p>
</div>
<div class="content"><div class='highlight'><pre> source = getSourceMapping filename, line, column
fileLocation =
<span class="hljs-keyword">if</span> source
<span class="hljs-string">"<span class="hljs-subst">#{filename}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">0</span>]}</span>:<span class="hljs-subst">#{source[<span class="hljs-number">1</span>]}</span>"</span>
<span class="hljs-keyword">else</span>
<span class="hljs-string">"<span class="hljs-subst">#{filename}</span>:<span class="hljs-subst">#{line}</span>:<span class="hljs-subst">#{column}</span>"</span>
functionName = frame.getFunctionName()
isConstructor = frame.isConstructor()
isMethodCall = <span class="hljs-keyword">not</span> (frame.isToplevel() <span class="hljs-keyword">or</span> isConstructor)
<span class="hljs-keyword">if</span> isMethodCall
methodName = frame.getMethodName()
typeName = frame.getTypeName()
<span class="hljs-keyword">if</span> functionName
tp = <span class="hljs-keyword">as</span> = <span class="hljs-string">''</span>
<span class="hljs-keyword">if</span> typeName <span class="hljs-keyword">and</span> functionName.indexOf typeName
tp = <span class="hljs-string">"<span class="hljs-subst">#{typeName}</span>."</span>
<span class="hljs-keyword">if</span> methodName <span class="hljs-keyword">and</span> functionName.indexOf(<span class="hljs-string">".<span class="hljs-subst">#{methodName}</span>"</span>) <span class="hljs-keyword">isnt</span> functionName.length - methodName.length - <span class="hljs-number">1</span>
<span class="hljs-keyword">as</span> = <span class="hljs-string">" [as <span class="hljs-subst">#{methodName}</span>]"</span>
<span class="hljs-string">"<span class="hljs-subst">#{tp}</span><span class="hljs-subst">#{functionName}</span><span class="hljs-subst">#{<span class="hljs-keyword">as</span>}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
<span class="hljs-keyword">else</span>
<span class="hljs-string">"<span class="hljs-subst">#{typeName}</span>.<span class="hljs-subst">#{methodName <span class="hljs-keyword">or</span> <span class="hljs-string">'&lt;anonymous&gt;'</span>}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> isConstructor
<span class="hljs-string">"new <span class="hljs-subst">#{functionName <span class="hljs-keyword">or</span> <span class="hljs-string">'&lt;anonymous&gt;'</span>}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> functionName
<span class="hljs-string">"<span class="hljs-subst">#{functionName}</span> (<span class="hljs-subst">#{fileLocation}</span>)"</span>
<span class="hljs-keyword">else</span>
fileLocation
<span class="hljs-function">
<span class="hljs-title">getSourceMap</span> = <span class="hljs-params">(filename)</span> -&gt;</span>
<span class="hljs-keyword">if</span> sourceMaps[filename]?
sourceMaps[filename]</pre></div></div>
</li>
<li id="section-38">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-38">&#182;</a>
</div>
<p>CoffeeScript compiled in a browser may get compiled with <code>options.filename</code>
of <code>&lt;anonymous&gt;</code>, but the browser may request the stack trace with the
filename of the script file.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> sourceMaps[<span class="hljs-string">'&lt;anonymous&gt;'</span>]?
sourceMaps[<span class="hljs-string">'&lt;anonymous&gt;'</span>]
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> sources[filename]?
answer = compile sources[filename],
filename: filename
sourceMap: <span class="hljs-literal">yes</span>
literate: helpers.isLiterate filename
answer.sourceMap
<span class="hljs-keyword">else</span>
<span class="hljs-literal">null</span></pre></div></div>
</li>
<li id="section-39">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-39">&#182;</a>
</div>
<p>Based on <a href="http://goo.gl/ZTx1p">michaelficarra/CoffeeScriptRedux</a>
NodeJS / V8 have no support for transforming positions in stack traces using
sourceMap, so we must monkey-patch Error to display CoffeeScript source
positions.</p>
</div>
<div class="content"><div class='highlight'><pre>Error.prepareStackTrace = <span class="hljs-function"><span class="hljs-params">(err, stack)</span> -&gt;</span>
<span class="hljs-function"> <span class="hljs-title">getSourceMapping</span> = <span class="hljs-params">(filename, line, column)</span> -&gt;</span>
sourceMap = getSourceMap filename
answer = sourceMap.sourceLocation [line - <span class="hljs-number">1</span>, column - <span class="hljs-number">1</span>] <span class="hljs-keyword">if</span> sourceMap?
<span class="hljs-keyword">if</span> answer? <span class="hljs-keyword">then</span> [answer[<span class="hljs-number">0</span>] + <span class="hljs-number">1</span>, answer[<span class="hljs-number">1</span>] + <span class="hljs-number">1</span>] <span class="hljs-keyword">else</span> <span class="hljs-literal">null</span>
frames = <span class="hljs-keyword">for</span> frame <span class="hljs-keyword">in</span> stack
<span class="hljs-keyword">break</span> <span class="hljs-keyword">if</span> frame.getFunction() <span class="hljs-keyword">is</span> exports.run
<span class="hljs-string">" at <span class="hljs-subst">#{formatSourcePosition frame, getSourceMapping}</span>"</span>
<span class="hljs-string">"<span class="hljs-subst">#{err.toString()}</span>\n<span class="hljs-subst">#{frames.join <span class="hljs-string">'\n'</span>}</span>\n"</span></pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,882 @@
<!DOCTYPE html>
<html>
<head>
<title>command.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>command.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>The <code>coffee</code> utility. Handles command-line compilation of CoffeeScript
into various forms: saved into <code>.js</code> files or printed to stdout
or recompiled every time the source is saved,
printed as a token stream or as the syntax tree, or launch an
interactive REPL.</p>
</div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>External dependencies.</p>
</div>
<div class="content"><div class='highlight'><pre>fs = <span class="hljs-built_in">require</span> <span class="hljs-string">'fs'</span>
path = <span class="hljs-built_in">require</span> <span class="hljs-string">'path'</span>
helpers = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span>
optparse = <span class="hljs-built_in">require</span> <span class="hljs-string">'./optparse'</span>
CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span>
{spawn, exec} = <span class="hljs-built_in">require</span> <span class="hljs-string">'child_process'</span>
{EventEmitter} = <span class="hljs-built_in">require</span> <span class="hljs-string">'events'</span>
useWinPathSep = path.sep <span class="hljs-keyword">is</span> <span class="hljs-string">'\\'</span></pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Allow CoffeeScript to emit Node.js events.</p>
</div>
<div class="content"><div class='highlight'><pre>helpers.extend CoffeeScript, <span class="hljs-keyword">new</span> EventEmitter
<span class="hljs-function">
<span class="hljs-title">printLine</span> = <span class="hljs-params">(line)</span> -&gt;</span> process.stdout.write line + <span class="hljs-string">'\n'</span>
<span class="hljs-function"><span class="hljs-title">printWarn</span> = <span class="hljs-params">(line)</span> -&gt;</span> process.stderr.write line + <span class="hljs-string">'\n'</span>
<span class="hljs-function">
<span class="hljs-title">hidden</span> = <span class="hljs-params">(file)</span> -&gt;</span> <span class="hljs-regexp">/^\.|~$/</span>.test file</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>The help banner that is printed in conjunction with <code>-h</code>/<code>--help</code>.</p>
</div>
<div class="content"><div class='highlight'><pre>BANNER = <span class="hljs-string">'''
Usage: coffee [options] path/to/script.coffee -- [args]
If called without options, `coffee` will run your script.
'''</span></pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>The list of all the valid option flags that <code>coffee</code> knows how to handle.</p>
</div>
<div class="content"><div class='highlight'><pre>SWITCHES = [
[<span class="hljs-string">'-b'</span>, <span class="hljs-string">'--bare'</span>, <span class="hljs-string">'compile without a top-level function wrapper'</span>]
[<span class="hljs-string">'-c'</span>, <span class="hljs-string">'--compile'</span>, <span class="hljs-string">'compile to JavaScript and save as .js files'</span>]
[<span class="hljs-string">'-e'</span>, <span class="hljs-string">'--eval'</span>, <span class="hljs-string">'pass a string from the command line as input'</span>]
[<span class="hljs-string">'-h'</span>, <span class="hljs-string">'--help'</span>, <span class="hljs-string">'display this help message'</span>]
[<span class="hljs-string">'-i'</span>, <span class="hljs-string">'--interactive'</span>, <span class="hljs-string">'run an interactive CoffeeScript REPL'</span>]
[<span class="hljs-string">'-j'</span>, <span class="hljs-string">'--join [FILE]'</span>, <span class="hljs-string">'concatenate the source CoffeeScript before compiling'</span>]
[<span class="hljs-string">'-m'</span>, <span class="hljs-string">'--map'</span>, <span class="hljs-string">'generate source map and save as .js.map files'</span>]
[<span class="hljs-string">'-M'</span>, <span class="hljs-string">'--inline-map'</span>, <span class="hljs-string">'generate source map and include it directly in output'</span>]
[<span class="hljs-string">'-n'</span>, <span class="hljs-string">'--nodes'</span>, <span class="hljs-string">'print out the parse tree that the parser produces'</span>]
[ <span class="hljs-string">'--nodejs [ARGS]'</span>, <span class="hljs-string">'pass options directly to the "node" binary'</span>]
[ <span class="hljs-string">'--no-header'</span>, <span class="hljs-string">'suppress the "Generated by" header'</span>]
[<span class="hljs-string">'-o'</span>, <span class="hljs-string">'--output [DIR]'</span>, <span class="hljs-string">'set the output directory for compiled JavaScript'</span>]
[<span class="hljs-string">'-p'</span>, <span class="hljs-string">'--print'</span>, <span class="hljs-string">'print out the compiled JavaScript'</span>]
[<span class="hljs-string">'-r'</span>, <span class="hljs-string">'--require [MODULE*]'</span>, <span class="hljs-string">'require the given module before eval or REPL'</span>]
[<span class="hljs-string">'-s'</span>, <span class="hljs-string">'--stdio'</span>, <span class="hljs-string">'listen for and compile scripts over stdio'</span>]
[<span class="hljs-string">'-l'</span>, <span class="hljs-string">'--literate'</span>, <span class="hljs-string">'treat stdio as literate style coffeescript'</span>]
[<span class="hljs-string">'-t'</span>, <span class="hljs-string">'--tokens'</span>, <span class="hljs-string">'print out the tokens that the lexer/rewriter produce'</span>]
[<span class="hljs-string">'-v'</span>, <span class="hljs-string">'--version'</span>, <span class="hljs-string">'display the version number'</span>]
[<span class="hljs-string">'-w'</span>, <span class="hljs-string">'--watch'</span>, <span class="hljs-string">'watch scripts for changes and rerun commands'</span>]
]</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Top-level objects shared by all the functions.</p>
</div>
<div class="content"><div class='highlight'><pre>opts = {}
sources = []
sourceCode = []
notSources = {}
watchedDirs = {}
optionParser = <span class="hljs-literal">null</span></pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Run <code>coffee</code> by parsing passed options and determining what action to take.
Many flags cause us to divert before compiling anything. Flags passed after
<code>--</code> will be passed verbatim to your script as arguments in <code>process.argv</code></p>
</div>
<div class="content"><div class='highlight'><pre>exports.run = <span class="hljs-function">-&gt;</span>
parseOptions()</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Make the REPL <em>CLI</em> use the global context so as to (a) be consistent with the
<code>node</code> REPL CLI and, therefore, (b) make packages that modify native prototypes
(such as colors and sugar) work as expected.</p>
</div>
<div class="content"><div class='highlight'><pre> replCliOpts = useGlobal: <span class="hljs-literal">yes</span>
opts.prelude = makePrelude opts.<span class="hljs-built_in">require</span> <span class="hljs-keyword">if</span> opts.<span class="hljs-built_in">require</span>
replCliOpts.prelude = opts.prelude
<span class="hljs-keyword">return</span> forkNode() <span class="hljs-keyword">if</span> opts.nodejs
<span class="hljs-keyword">return</span> usage() <span class="hljs-keyword">if</span> opts.help
<span class="hljs-keyword">return</span> version() <span class="hljs-keyword">if</span> opts.version
<span class="hljs-keyword">return</span> <span class="hljs-built_in">require</span>(<span class="hljs-string">'./repl'</span>).start(replCliOpts) <span class="hljs-keyword">if</span> opts.interactive
<span class="hljs-keyword">return</span> compileStdio() <span class="hljs-keyword">if</span> opts.stdio
<span class="hljs-keyword">return</span> compileScript <span class="hljs-literal">null</span>, opts.arguments[<span class="hljs-number">0</span>] <span class="hljs-keyword">if</span> opts.eval
<span class="hljs-keyword">return</span> <span class="hljs-built_in">require</span>(<span class="hljs-string">'./repl'</span>).start(replCliOpts) <span class="hljs-keyword">unless</span> opts.arguments.length
literals = <span class="hljs-keyword">if</span> opts.run <span class="hljs-keyword">then</span> opts.arguments.splice <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> []
process.argv = process.argv[<span class="hljs-number">0.</span><span class="hljs-number">.1</span>].concat literals
process.argv[<span class="hljs-number">0</span>] = <span class="hljs-string">'coffee'</span>
opts.output = path.resolve opts.output <span class="hljs-keyword">if</span> opts.output
<span class="hljs-keyword">if</span> opts.join
opts.join = path.resolve opts.join
<span class="hljs-built_in">console</span>.error <span class="hljs-string">'''
The --join option is deprecated and will be removed in a future version.
If for some reason it's necessary to share local variables between files,
replace...
$ coffee --compile --join bundle.js -- a.coffee b.coffee c.coffee
with...
$ cat a.coffee b.coffee c.coffee | coffee --compile --stdio &gt; bundle.js
'''</span>
<span class="hljs-keyword">for</span> source <span class="hljs-keyword">in</span> opts.arguments
source = path.resolve source
compilePath source, <span class="hljs-literal">yes</span>, source
<span class="hljs-function">
<span class="hljs-title">makePrelude</span> = <span class="hljs-params">(requires)</span> -&gt;</span>
requires.map (<span class="hljs-built_in">module</span>) -&gt;
[_, name, <span class="hljs-built_in">module</span>] = match <span class="hljs-keyword">if</span> match = <span class="hljs-built_in">module</span>.match(<span class="hljs-regexp">/^(.*)=(.*)$/</span>)
name ||= helpers.baseFileName <span class="hljs-built_in">module</span>, <span class="hljs-literal">yes</span>, useWinPathSep
<span class="hljs-string">"<span class="hljs-subst">#{name}</span> = require('<span class="hljs-subst">#{<span class="hljs-built_in">module</span>}</span>')"</span>
.join <span class="hljs-string">';'</span></pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Compile a path, which could be a script or a directory. If a directory
is passed, recursively compile all .coffee, .litcoffee, and .coffee.md
extension source files in it and all subdirectories.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">compilePath</span> = <span class="hljs-params">(source, topLevel, base)</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> source <span class="hljs-keyword">in</span> sources <span class="hljs-keyword">or</span>
watchedDirs[source] <span class="hljs-keyword">or</span>
<span class="hljs-keyword">not</span> topLevel <span class="hljs-keyword">and</span> (notSources[source] <span class="hljs-keyword">or</span> hidden source)
<span class="hljs-keyword">try</span>
stats = fs.statSync source
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">if</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span>
<span class="hljs-built_in">console</span>.error <span class="hljs-string">"File not found: <span class="hljs-subst">#{source}</span>"</span>
process.exit <span class="hljs-number">1</span>
<span class="hljs-keyword">throw</span> err
<span class="hljs-keyword">if</span> stats.isDirectory()
<span class="hljs-keyword">if</span> path.basename(source) <span class="hljs-keyword">is</span> <span class="hljs-string">'node_modules'</span>
notSources[source] = <span class="hljs-literal">yes</span>
<span class="hljs-keyword">return</span>
<span class="hljs-keyword">if</span> opts.run
compilePath findDirectoryIndex(source), topLevel, base
<span class="hljs-keyword">return</span>
watchDir source, base <span class="hljs-keyword">if</span> opts.watch
<span class="hljs-keyword">try</span>
files = fs.readdirSync source
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">if</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span> <span class="hljs-keyword">then</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">else</span> <span class="hljs-keyword">throw</span> err
<span class="hljs-keyword">for</span> file <span class="hljs-keyword">in</span> files
compilePath (path.join source, file), <span class="hljs-literal">no</span>, base
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> topLevel <span class="hljs-keyword">or</span> helpers.isCoffee source
sources.push source
sourceCode.push <span class="hljs-literal">null</span>
<span class="hljs-keyword">delete</span> notSources[source]
watch source, base <span class="hljs-keyword">if</span> opts.watch
<span class="hljs-keyword">try</span>
code = fs.readFileSync source
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">if</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span> <span class="hljs-keyword">then</span> <span class="hljs-keyword">return</span> <span class="hljs-keyword">else</span> <span class="hljs-keyword">throw</span> err
compileScript(source, code.toString(), base)
<span class="hljs-keyword">else</span>
notSources[source] = <span class="hljs-literal">yes</span>
<span class="hljs-function">
<span class="hljs-title">findDirectoryIndex</span> = <span class="hljs-params">(source)</span> -&gt;</span>
<span class="hljs-keyword">for</span> ext <span class="hljs-keyword">in</span> CoffeeScript.FILE_EXTENSIONS
index = path.join source, <span class="hljs-string">"index<span class="hljs-subst">#{ext}</span>"</span>
<span class="hljs-keyword">try</span>
<span class="hljs-keyword">return</span> index <span class="hljs-keyword">if</span> (fs.statSync index).isFile()
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span>
<span class="hljs-built_in">console</span>.error <span class="hljs-string">"Missing index.coffee or index.litcoffee in <span class="hljs-subst">#{source}</span>"</span>
process.exit <span class="hljs-number">1</span></pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Compile a single source script, containing the given code, according to the
requested options. If evaluating the script directly sets <code>__filename</code>,
<code>__dirname</code> and <code>module.filename</code> to be correct relative to the scripts path.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">compileScript</span> = <span class="hljs-params">(file, input, base = <span class="hljs-literal">null</span>)</span> -&gt;</span>
o = opts
options = compileOptions file, base
<span class="hljs-keyword">try</span>
t = task = {file, input, options}
CoffeeScript.emit <span class="hljs-string">'compile'</span>, task
<span class="hljs-keyword">if</span> o.tokens
printTokens CoffeeScript.tokens t.input, t.options
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.nodes
printLine CoffeeScript.nodes(t.input, t.options).toString().trim()
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.run
CoffeeScript.register()
CoffeeScript.eval opts.prelude, t.options <span class="hljs-keyword">if</span> opts.prelude
CoffeeScript.run t.input, t.options
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.join <span class="hljs-keyword">and</span> t.file <span class="hljs-keyword">isnt</span> o.join
t.input = helpers.invertLiterate t.input <span class="hljs-keyword">if</span> helpers.isLiterate file
sourceCode[sources.indexOf(t.file)] = t.input
compileJoin()
<span class="hljs-keyword">else</span>
compiled = CoffeeScript.compile t.input, t.options
t.output = compiled
<span class="hljs-keyword">if</span> o.map
t.output = compiled.js
t.sourceMap = compiled.v3SourceMap
CoffeeScript.emit <span class="hljs-string">'success'</span>, task
<span class="hljs-keyword">if</span> o.<span class="hljs-built_in">print</span>
printLine t.output.trim()
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> o.compile <span class="hljs-keyword">or</span> o.map
writeJs base, t.file, t.output, options.jsPath, t.sourceMap
<span class="hljs-keyword">catch</span> err
CoffeeScript.emit <span class="hljs-string">'failure'</span>, err, task
<span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> CoffeeScript.listeners(<span class="hljs-string">'failure'</span>).length
message = err?.stack <span class="hljs-keyword">or</span> <span class="hljs-string">"<span class="hljs-subst">#{err}</span>"</span>
<span class="hljs-keyword">if</span> o.watch
printLine message + <span class="hljs-string">'\x07'</span>
<span class="hljs-keyword">else</span>
printWarn message
process.exit <span class="hljs-number">1</span></pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Attach the appropriate listeners to compile scripts incoming over <strong>stdin</strong>,
and write them back to <strong>stdout</strong>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">compileStdio</span> = -&gt;</span>
buffers = []
stdin = process.openStdin()
stdin.<span class="hljs-literal">on</span> <span class="hljs-string">'data'</span>, <span class="hljs-function"><span class="hljs-params">(buffer)</span> -&gt;</span>
buffers.push buffer <span class="hljs-keyword">if</span> buffer
stdin.<span class="hljs-literal">on</span> <span class="hljs-string">'end'</span>, <span class="hljs-function">-&gt;</span>
compileScript <span class="hljs-literal">null</span>, Buffer.concat(buffers).toString()</pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>If all of the source files are done being read, concatenate and compile
them together.</p>
</div>
<div class="content"><div class='highlight'><pre>joinTimeout = <span class="hljs-literal">null</span>
<span class="hljs-function"><span class="hljs-title">compileJoin</span> = -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> opts.join
<span class="hljs-keyword">unless</span> sourceCode.some(<span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span> code <span class="hljs-keyword">is</span> <span class="hljs-literal">null</span>)
clearTimeout joinTimeout
joinTimeout = wait <span class="hljs-number">100</span>, <span class="hljs-function">-&gt;</span>
compileScript opts.join, sourceCode.join(<span class="hljs-string">'\n'</span>), opts.join</pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>Watch a source CoffeeScript file using <code>fs.watch</code>, recompiling it every
time the file is updated. May be used in combination with other options,
such as <code>--print</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">watch</span> = <span class="hljs-params">(source, base)</span> -&gt;</span>
watcher = <span class="hljs-literal">null</span>
prevStats = <span class="hljs-literal">null</span>
compileTimeout = <span class="hljs-literal">null</span>
<span class="hljs-function">
<span class="hljs-title">watchErr</span> = <span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> source <span class="hljs-keyword">in</span> sources
<span class="hljs-keyword">try</span>
rewatch()
compile()
<span class="hljs-keyword">catch</span>
removeSource source, base
compileJoin()
<span class="hljs-function">
<span class="hljs-title">compile</span> = -&gt;</span>
clearTimeout compileTimeout
compileTimeout = wait <span class="hljs-number">25</span>, <span class="hljs-function">-&gt;</span>
fs.stat source, <span class="hljs-function"><span class="hljs-params">(err, stats)</span> -&gt;</span>
<span class="hljs-keyword">return</span> watchErr err <span class="hljs-keyword">if</span> err
<span class="hljs-keyword">return</span> rewatch() <span class="hljs-keyword">if</span> prevStats <span class="hljs-keyword">and</span>
stats.size <span class="hljs-keyword">is</span> prevStats.size <span class="hljs-keyword">and</span>
stats.mtime.getTime() <span class="hljs-keyword">is</span> prevStats.mtime.getTime()
prevStats = stats
fs.readFile source, <span class="hljs-function"><span class="hljs-params">(err, code)</span> -&gt;</span>
<span class="hljs-keyword">return</span> watchErr err <span class="hljs-keyword">if</span> err
compileScript(source, code.toString(), base)
rewatch()
<span class="hljs-function">
<span class="hljs-title">startWatcher</span> = -&gt;</span>
watcher = fs.watch source
.<span class="hljs-literal">on</span> <span class="hljs-string">'change'</span>, compile
.<span class="hljs-literal">on</span> <span class="hljs-string">'error'</span>, <span class="hljs-function"><span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'EPERM'</span>
removeSource source, base
<span class="hljs-function">
<span class="hljs-title">rewatch</span> = -&gt;</span>
watcher?.close()
startWatcher()
<span class="hljs-keyword">try</span>
startWatcher()
<span class="hljs-keyword">catch</span> err
watchErr err</pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>Watch a directory of files for new additions.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">watchDir</span> = <span class="hljs-params">(source, base)</span> -&gt;</span>
watcher = <span class="hljs-literal">null</span>
readdirTimeout = <span class="hljs-literal">null</span>
<span class="hljs-function">
<span class="hljs-title">startWatcher</span> = -&gt;</span>
watcher = fs.watch source
.<span class="hljs-literal">on</span> <span class="hljs-string">'error'</span>, <span class="hljs-function"><span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'EPERM'</span>
stopWatcher()
.<span class="hljs-literal">on</span> <span class="hljs-string">'change'</span>, <span class="hljs-function">-&gt;</span>
clearTimeout readdirTimeout
readdirTimeout = wait <span class="hljs-number">25</span>, <span class="hljs-function">-&gt;</span>
<span class="hljs-keyword">try</span>
files = fs.readdirSync source
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span>
<span class="hljs-keyword">return</span> stopWatcher()
<span class="hljs-keyword">for</span> file <span class="hljs-keyword">in</span> files
compilePath (path.join source, file), <span class="hljs-literal">no</span>, base
<span class="hljs-function">
<span class="hljs-title">stopWatcher</span> = -&gt;</span>
watcher.close()
removeSourceDir source, base
watchedDirs[source] = <span class="hljs-literal">yes</span>
<span class="hljs-keyword">try</span>
startWatcher()
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">is</span> <span class="hljs-string">'ENOENT'</span>
<span class="hljs-function">
<span class="hljs-title">removeSourceDir</span> = <span class="hljs-params">(source, base)</span> -&gt;</span>
<span class="hljs-keyword">delete</span> watchedDirs[source]
sourcesChanged = <span class="hljs-literal">no</span>
<span class="hljs-keyword">for</span> file <span class="hljs-keyword">in</span> sources <span class="hljs-keyword">when</span> source <span class="hljs-keyword">is</span> path.dirname file
removeSource file, base
sourcesChanged = <span class="hljs-literal">yes</span>
compileJoin() <span class="hljs-keyword">if</span> sourcesChanged</pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<p>Remove a file from our source list, and source code cache. Optionally remove
the compiled JS version as well.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">removeSource</span> = <span class="hljs-params">(source, base)</span> -&gt;</span>
index = sources.indexOf source
sources.splice index, <span class="hljs-number">1</span>
sourceCode.splice index, <span class="hljs-number">1</span>
<span class="hljs-keyword">unless</span> opts.join
silentUnlink outputPath source, base
silentUnlink outputPath source, base, <span class="hljs-string">'.js.map'</span>
timeLog <span class="hljs-string">"removed <span class="hljs-subst">#{source}</span>"</span>
<span class="hljs-function">
<span class="hljs-title">silentUnlink</span> = <span class="hljs-params">(path)</span> -&gt;</span>
<span class="hljs-keyword">try</span>
fs.unlinkSync path
<span class="hljs-keyword">catch</span> err
<span class="hljs-keyword">throw</span> err <span class="hljs-keyword">unless</span> err.code <span class="hljs-keyword">in</span> [<span class="hljs-string">'ENOENT'</span>, <span class="hljs-string">'EPERM'</span>]</pre></div></div>
</li>
<li id="section-16">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-16">&#182;</a>
</div>
<p>Get the corresponding output JavaScript path for a source file.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">outputPath</span> = <span class="hljs-params">(source, base, extension=<span class="hljs-string">".js"</span>)</span> -&gt;</span>
basename = helpers.baseFileName source, <span class="hljs-literal">yes</span>, useWinPathSep
srcDir = path.dirname source
<span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> opts.output
dir = srcDir
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> source <span class="hljs-keyword">is</span> base
dir = opts.output
<span class="hljs-keyword">else</span>
dir = path.join opts.output, path.relative base, srcDir
path.join dir, basename + extension</pre></div></div>
</li>
<li id="section-17">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-17">&#182;</a>
</div>
<p>Recursively mkdir, like <code>mkdir -p</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">mkdirp</span> = <span class="hljs-params">(dir, fn)</span> -&gt;</span>
mode = <span class="hljs-number">0</span>o777 &amp; ~process.umask()
<span class="hljs-keyword">do</span> mkdirs = <span class="hljs-function"><span class="hljs-params">(p = dir, fn)</span> -&gt;</span>
fs.exists p, <span class="hljs-function"><span class="hljs-params">(exists)</span> -&gt;</span>
<span class="hljs-keyword">if</span> exists
fn()
<span class="hljs-keyword">else</span>
mkdirs path.dirname(p), <span class="hljs-function">-&gt;</span>
fs.mkdir p, mode, <span class="hljs-function"><span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">return</span> fn err <span class="hljs-keyword">if</span> err
fn()</pre></div></div>
</li>
<li id="section-18">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-18">&#182;</a>
</div>
<p>Write out a JavaScript source file with the compiled code. By default, files
are written out in <code>cwd</code> as <code>.js</code> files with the same name, but the output
directory can be customized with <code>--output</code>.</p>
<p>If <code>generatedSourceMap</code> is provided, this will write a <code>.js.map</code> file into the
same directory as the <code>.js</code> file.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">writeJs</span> = <span class="hljs-params">(base, sourcePath, js, jsPath, generatedSourceMap = <span class="hljs-literal">null</span>)</span> -&gt;</span>
sourceMapPath = outputPath sourcePath, base, <span class="hljs-string">".js.map"</span>
jsDir = path.dirname jsPath
<span class="hljs-function"> <span class="hljs-title">compile</span> = -&gt;</span>
<span class="hljs-keyword">if</span> opts.compile
js = <span class="hljs-string">' '</span> <span class="hljs-keyword">if</span> js.length &lt;= <span class="hljs-number">0</span>
<span class="hljs-keyword">if</span> generatedSourceMap <span class="hljs-keyword">then</span> js = <span class="hljs-string">"<span class="hljs-subst">#{js}</span>\n//# sourceMappingURL=<span class="hljs-subst">#{helpers.baseFileName sourceMapPath, <span class="hljs-literal">no</span>, useWinPathSep}</span>\n"</span>
fs.writeFile jsPath, js, <span class="hljs-function"><span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">if</span> err
printLine err.message
process.exit <span class="hljs-number">1</span>
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> opts.compile <span class="hljs-keyword">and</span> opts.watch
timeLog <span class="hljs-string">"compiled <span class="hljs-subst">#{sourcePath}</span>"</span>
<span class="hljs-keyword">if</span> generatedSourceMap
fs.writeFile sourceMapPath, generatedSourceMap, <span class="hljs-function"><span class="hljs-params">(err)</span> -&gt;</span>
<span class="hljs-keyword">if</span> err
printLine <span class="hljs-string">"Could not write source map: <span class="hljs-subst">#{err.message}</span>"</span>
process.exit <span class="hljs-number">1</span>
fs.exists jsDir, <span class="hljs-function"><span class="hljs-params">(itExists)</span> -&gt;</span>
<span class="hljs-keyword">if</span> itExists <span class="hljs-keyword">then</span> compile() <span class="hljs-keyword">else</span> mkdirp jsDir, compile</pre></div></div>
</li>
<li id="section-19">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-19">&#182;</a>
</div>
<p>Convenience for cleaner setTimeouts.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">wait</span> = <span class="hljs-params">(milliseconds, func)</span> -&gt;</span> setTimeout func, milliseconds</pre></div></div>
</li>
<li id="section-20">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-20">&#182;</a>
</div>
<p>When watching scripts, its useful to log changes with the timestamp.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">timeLog</span> = <span class="hljs-params">(message)</span> -&gt;</span>
<span class="hljs-built_in">console</span>.log <span class="hljs-string">"<span class="hljs-subst">#{(<span class="hljs-keyword">new</span> Date).toLocaleTimeString()}</span> - <span class="hljs-subst">#{message}</span>"</span></pre></div></div>
</li>
<li id="section-21">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-21">&#182;</a>
</div>
<p>Pretty-print a stream of tokens, sans location data.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">printTokens</span> = <span class="hljs-params">(tokens)</span> -&gt;</span>
strings = <span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> tokens
tag = token[<span class="hljs-number">0</span>]
value = token[<span class="hljs-number">1</span>].toString().replace(<span class="hljs-regexp">/\n/</span>, <span class="hljs-string">'\\n'</span>)
<span class="hljs-string">"[<span class="hljs-subst">#{tag}</span> <span class="hljs-subst">#{value}</span>]"</span>
printLine strings.join(<span class="hljs-string">' '</span>)</pre></div></div>
</li>
<li id="section-22">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-22">&#182;</a>
</div>
<p>Use the <a href="optparse.html">OptionParser module</a> to extract all options from
<code>process.argv</code> that are specified in <code>SWITCHES</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">parseOptions</span> = -&gt;</span>
optionParser = <span class="hljs-keyword">new</span> optparse.OptionParser SWITCHES, BANNER
o = opts = optionParser.parse process.argv[<span class="hljs-number">2.</span>.]
o.compile <span class="hljs-keyword">or</span>= !!o.output
o.run = <span class="hljs-keyword">not</span> (o.compile <span class="hljs-keyword">or</span> o.<span class="hljs-built_in">print</span> <span class="hljs-keyword">or</span> o.map)
o.<span class="hljs-built_in">print</span> = !! (o.<span class="hljs-built_in">print</span> <span class="hljs-keyword">or</span> (o.eval <span class="hljs-keyword">or</span> o.stdio <span class="hljs-keyword">and</span> o.compile))</pre></div></div>
</li>
<li id="section-23">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-23">&#182;</a>
</div>
<p>The compile-time options to pass to the CoffeeScript compiler.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">compileOptions</span> = <span class="hljs-params">(filename, base)</span> -&gt;</span>
answer = {
filename
literate: opts.literate <span class="hljs-keyword">or</span> helpers.isLiterate(filename)
bare: opts.bare
header: opts.compile <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> opts[<span class="hljs-string">'no-header'</span>]
sourceMap: opts.map
inlineMap: opts[<span class="hljs-string">'inline-map'</span>]
}
<span class="hljs-keyword">if</span> filename
<span class="hljs-keyword">if</span> base
cwd = process.cwd()
jsPath = outputPath filename, base
jsDir = path.dirname jsPath
answer = helpers.merge answer, {
jsPath
sourceRoot: path.relative jsDir, cwd
sourceFiles: [path.relative cwd, filename]
generatedFile: helpers.baseFileName(jsPath, <span class="hljs-literal">no</span>, useWinPathSep)
}
<span class="hljs-keyword">else</span>
answer = helpers.merge answer,
sourceRoot: <span class="hljs-string">""</span>
sourceFiles: [helpers.baseFileName filename, <span class="hljs-literal">no</span>, useWinPathSep]
generatedFile: helpers.baseFileName(filename, <span class="hljs-literal">yes</span>, useWinPathSep) + <span class="hljs-string">".js"</span>
answer</pre></div></div>
</li>
<li id="section-24">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-24">&#182;</a>
</div>
<p>Start up a new Node.js instance with the arguments in <code>--nodejs</code> passed to
the <code>node</code> binary, preserving the other options.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">forkNode</span> = -&gt;</span>
nodeArgs = opts.nodejs.split <span class="hljs-regexp">/\s+/</span>
args = process.argv[<span class="hljs-number">1.</span>.]
args.splice args.indexOf(<span class="hljs-string">'--nodejs'</span>), <span class="hljs-number">2</span>
p = spawn process.execPath, nodeArgs.concat(args),
cwd: process.cwd()
env: process.env
stdio: [<span class="hljs-number">0</span>, <span class="hljs-number">1</span>, <span class="hljs-number">2</span>]
p.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>, <span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span> process.exit code</pre></div></div>
</li>
<li id="section-25">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-25">&#182;</a>
</div>
<p>Print the <code>--help</code> usage message and exit. Deprecated switches are not
shown.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">usage</span> = -&gt;</span>
printLine (<span class="hljs-keyword">new</span> optparse.OptionParser SWITCHES, BANNER).help()</pre></div></div>
</li>
<li id="section-26">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-26">&#182;</a>
</div>
<p>Print the <code>--version</code> message and exit.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">version</span> = -&gt;</span>
printLine <span class="hljs-string">"CoffeeScript version <span class="hljs-subst">#{CoffeeScript.VERSION}</span>"</span></pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,518 @@
/*--------------------- Typography ----------------------------*/
@font-face {
font-family: 'aller-light';
src: url('public/fonts/aller-light.eot');
src: url('public/fonts/aller-light.eot?#iefix') format('embedded-opentype'),
url('public/fonts/aller-light.woff') format('woff'),
url('public/fonts/aller-light.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'aller-bold';
src: url('public/fonts/aller-bold.eot');
src: url('public/fonts/aller-bold.eot?#iefix') format('embedded-opentype'),
url('public/fonts/aller-bold.woff') format('woff'),
url('public/fonts/aller-bold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'roboto-black';
src: url('public/fonts/roboto-black.eot');
src: url('public/fonts/roboto-black.eot?#iefix') format('embedded-opentype'),
url('public/fonts/roboto-black.woff') format('woff'),
url('public/fonts/roboto-black.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/*--------------------- Layout ----------------------------*/
html { height: 100%; }
body {
font-family: "aller-light";
font-size: 14px;
line-height: 18px;
color: #30404f;
margin: 0; padding: 0;
height:100%;
}
#container { min-height: 100%; }
a {
color: #000;
}
b, strong {
font-weight: normal;
font-family: "aller-bold";
}
p {
margin: 15px 0 0px;
}
.annotation ul, .annotation ol {
margin: 25px 0;
}
.annotation ul li, .annotation ol li {
font-size: 14px;
line-height: 18px;
margin: 10px 0;
}
h1, h2, h3, h4, h5, h6 {
color: #112233;
line-height: 1em;
font-weight: normal;
font-family: "roboto-black";
text-transform: uppercase;
margin: 30px 0 15px 0;
}
h1 {
margin-top: 40px;
}
h2 {
font-size: 1.26em;
}
hr {
border: 0;
background: 1px #ddd;
height: 1px;
margin: 20px 0;
}
pre, tt, code {
font-size: 12px; line-height: 16px;
font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace;
margin: 0; padding: 0;
}
.annotation pre {
display: block;
margin: 0;
padding: 7px 10px;
background: #fcfcfc;
-moz-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
overflow-x: auto;
}
.annotation pre code {
border: 0;
padding: 0;
background: transparent;
}
blockquote {
border-left: 5px solid #ccc;
margin: 0;
padding: 1px 0 1px 1em;
}
.sections blockquote p {
font-family: Menlo, Consolas, Monaco, monospace;
font-size: 12px; line-height: 16px;
color: #999;
margin: 10px 0 0;
white-space: pre-wrap;
}
ul.sections {
list-style: none;
padding:0 0 5px 0;;
margin:0;
}
/*
Force border-box so that % widths fit the parent
container without overlap because of margin/padding.
More Info : http://www.quirksmode.org/css/box.html
*/
ul.sections > li > div {
-moz-box-sizing: border-box; /* firefox */
-ms-box-sizing: border-box; /* ie */
-webkit-box-sizing: border-box; /* webkit */
-khtml-box-sizing: border-box; /* konqueror */
box-sizing: border-box; /* css3 */
}
/*---------------------- Jump Page -----------------------------*/
#jump_to, #jump_page {
margin: 0;
background: white;
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
-webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px;
font: 16px Arial;
cursor: pointer;
text-align: right;
list-style: none;
}
#jump_to a {
text-decoration: none;
}
#jump_to a.large {
display: none;
}
#jump_to a.small {
font-size: 22px;
font-weight: bold;
color: #676767;
}
#jump_to, #jump_wrapper {
position: fixed;
right: 0; top: 0;
padding: 10px 15px;
margin:0;
}
#jump_wrapper {
display: none;
padding:0;
}
#jump_to:hover #jump_wrapper {
display: block;
}
#jump_page_wrapper{
position: fixed;
right: 0;
top: 0;
bottom: 0;
}
#jump_page {
padding: 5px 0 3px;
margin: 0 0 25px 25px;
max-height: 100%;
overflow: auto;
}
#jump_page .source {
display: block;
padding: 15px;
text-decoration: none;
border-top: 1px solid #eee;
}
#jump_page .source:hover {
background: #f5f5ff;
}
#jump_page .source:first-child {
}
/*---------------------- Low resolutions (> 320px) ---------------------*/
@media only screen and (min-width: 320px) {
.pilwrap { display: none; }
ul.sections > li > div {
display: block;
padding:5px 10px 0 10px;
}
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
padding-left: 30px;
}
ul.sections > li > div.content {
overflow-x:auto;
-webkit-box-shadow: inset 0 0 5px #e5e5ee;
box-shadow: inset 0 0 5px #e5e5ee;
border: 1px solid #dedede;
margin:5px 10px 5px 10px;
padding-bottom: 5px;
}
ul.sections > li > div.annotation pre {
margin: 7px 0 7px;
padding-left: 15px;
}
ul.sections > li > div.annotation p tt, .annotation code {
background: #f8f8ff;
border: 1px solid #dedede;
font-size: 12px;
padding: 0 0.2em;
}
}
/*---------------------- (> 481px) ---------------------*/
@media only screen and (min-width: 481px) {
#container {
position: relative;
}
body {
background-color: #F5F5FF;
font-size: 15px;
line-height: 21px;
}
pre, tt, code {
line-height: 18px;
}
p, ul, ol {
margin: 0 0 15px;
}
#jump_to {
padding: 5px 10px;
}
#jump_wrapper {
padding: 0;
}
#jump_to, #jump_page {
font: 10px Arial;
text-transform: uppercase;
}
#jump_page .source {
padding: 5px 10px;
}
#jump_to a.large {
display: inline-block;
}
#jump_to a.small {
display: none;
}
#background {
position: absolute;
top: 0; bottom: 0;
width: 350px;
background: #fff;
border-right: 1px solid #e5e5ee;
z-index: -1;
}
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
padding-left: 40px;
}
ul.sections > li {
white-space: nowrap;
}
ul.sections > li > div {
display: inline-block;
}
ul.sections > li > div.annotation {
max-width: 350px;
min-width: 350px;
min-height: 5px;
padding: 13px;
overflow-x: hidden;
white-space: normal;
vertical-align: top;
text-align: left;
}
ul.sections > li > div.annotation pre {
margin: 15px 0 15px;
padding-left: 15px;
}
ul.sections > li > div.content {
padding: 13px;
vertical-align: top;
border: none;
-webkit-box-shadow: none;
box-shadow: none;
}
.pilwrap {
position: relative;
display: inline;
}
.pilcrow {
font: 12px Arial;
text-decoration: none;
color: #454545;
position: absolute;
top: 3px; left: -20px;
padding: 1px 2px;
opacity: 0;
-webkit-transition: opacity 0.2s linear;
}
.for-h1 .pilcrow {
top: 47px;
}
.for-h2 .pilcrow, .for-h3 .pilcrow, .for-h4 .pilcrow {
top: 35px;
}
ul.sections > li > div.annotation:hover .pilcrow {
opacity: 1;
}
}
/*---------------------- (> 1025px) ---------------------*/
@media only screen and (min-width: 1025px) {
body {
font-size: 16px;
line-height: 24px;
}
#background {
width: 525px;
}
ul.sections > li > div.annotation {
max-width: 525px;
min-width: 525px;
padding: 10px 25px 1px 50px;
}
ul.sections > li > div.content {
padding: 9px 15px 16px 25px;
}
}
/*---------------------- Syntax Highlighting -----------------------------*/
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
/*
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/
pre code {
display: block; padding: 0.5em;
color: #000;
background: #f8f8ff
}
pre .hljs-comment,
pre .hljs-template_comment,
pre .hljs-diff .hljs-header,
pre .hljs-javadoc {
color: #408080;
font-style: italic
}
pre .hljs-keyword,
pre .hljs-assignment,
pre .hljs-literal,
pre .hljs-css .hljs-rule .hljs-keyword,
pre .hljs-winutils,
pre .hljs-javascript .hljs-title,
pre .hljs-lisp .hljs-title,
pre .hljs-subst {
color: #954121;
/*font-weight: bold*/
}
pre .hljs-number,
pre .hljs-hexcolor {
color: #40a070
}
pre .hljs-string,
pre .hljs-tag .hljs-value,
pre .hljs-phpdoc,
pre .hljs-tex .hljs-formula {
color: #219161;
}
pre .hljs-title,
pre .hljs-id {
color: #19469D;
}
pre .hljs-params {
color: #00F;
}
pre .hljs-javascript .hljs-title,
pre .hljs-lisp .hljs-title,
pre .hljs-subst {
font-weight: normal
}
pre .hljs-class .hljs-title,
pre .hljs-haskell .hljs-label,
pre .hljs-tex .hljs-command {
color: #458;
font-weight: bold
}
pre .hljs-tag,
pre .hljs-tag .hljs-title,
pre .hljs-rules .hljs-property,
pre .hljs-django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal
}
pre .hljs-attribute,
pre .hljs-variable,
pre .hljs-instancevar,
pre .hljs-lisp .hljs-body {
color: #008080
}
pre .hljs-regexp {
color: #B68
}
pre .hljs-class {
color: #458;
font-weight: bold
}
pre .hljs-symbol,
pre .hljs-ruby .hljs-symbol .hljs-string,
pre .hljs-ruby .hljs-symbol .hljs-keyword,
pre .hljs-ruby .hljs-symbol .hljs-keymethods,
pre .hljs-lisp .hljs-keyword,
pre .hljs-tex .hljs-special,
pre .hljs-input_number {
color: #990073
}
pre .hljs-builtin,
pre .hljs-constructor,
pre .hljs-built_in,
pre .hljs-lisp .hljs-title {
color: #0086b3
}
pre .hljs-preprocessor,
pre .hljs-pi,
pre .hljs-doctype,
pre .hljs-shebang,
pre .hljs-cdata {
color: #999;
font-weight: bold
}
pre .hljs-deletion {
background: #fdd
}
pre .hljs-addition {
background: #dfd
}
pre .hljs-diff .hljs-change {
background: #0086b3
}
pre .hljs-chunk {
color: #aaa
}
pre .hljs-tex .hljs-formula {
opacity: 0.5;
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,681 @@
<!DOCTYPE html>
<html>
<head>
<title>helpers.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>helpers.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>This file contains the common helper functions that wed like to share among
the <strong>Lexer</strong>, <strong>Rewriter</strong>, and the <strong>Nodes</strong>. Merge objects, flatten
arrays, count characters, that sort of thing.</p>
</div>
<div class="content"><div class='highlight'><pre>
marked = <span class="hljs-built_in">require</span> <span class="hljs-string">'marked'</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>marked.setOptions
renderer: new marked.Renderer()
gfm: true
tables: true
breaks: false
pedantic: false
sanitize: true
smartLists: true
smartypants: false</p>
</div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Peek at the beginning of a given string to see if it matches a sequence.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.starts = <span class="hljs-function"><span class="hljs-params">(string, literal, start)</span> -&gt;</span>
literal <span class="hljs-keyword">is</span> string.substr start, literal.length</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Peek at the end of a given string to see if it matches a sequence.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.ends = <span class="hljs-function"><span class="hljs-params">(string, literal, back)</span> -&gt;</span>
len = literal.length
literal <span class="hljs-keyword">is</span> string.substr string.length - len - (back <span class="hljs-keyword">or</span> <span class="hljs-number">0</span>), len</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Repeat a string <code>n</code> times.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.repeat = repeat = <span class="hljs-function"><span class="hljs-params">(str, n)</span> -&gt;</span></pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Use clever algorithm to have O(log(n)) string concatenation operations.</p>
</div>
<div class="content"><div class='highlight'><pre> res = <span class="hljs-string">''</span>
<span class="hljs-keyword">while</span> n &gt; <span class="hljs-number">0</span>
res += str <span class="hljs-keyword">if</span> n &amp; <span class="hljs-number">1</span>
n &gt;&gt;&gt;= <span class="hljs-number">1</span>
str += str
res</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Trim out all falsy values from an array.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.compact = <span class="hljs-function"><span class="hljs-params">(array)</span> -&gt;</span>
item <span class="hljs-keyword">for</span> item <span class="hljs-keyword">in</span> array <span class="hljs-keyword">when</span> item</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Count the number of occurrences of a string in a string.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.count = <span class="hljs-function"><span class="hljs-params">(string, substr)</span> -&gt;</span>
num = pos = <span class="hljs-number">0</span>
<span class="hljs-keyword">return</span> <span class="hljs-number">1</span>/<span class="hljs-number">0</span> <span class="hljs-keyword">unless</span> substr.length
num++ <span class="hljs-keyword">while</span> pos = <span class="hljs-number">1</span> + string.indexOf substr, pos
num</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Merge objects, returning a fresh copy with attributes from both sides.
Used every time <code>Base#compile</code> is called, to allow properties in the
options hash to propagate down the tree without polluting other branches.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.merge = <span class="hljs-function"><span class="hljs-params">(options, overrides)</span> -&gt;</span>
extend (extend {}, options), overrides</pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Extend a source object with the properties of another object (shallow copy).</p>
</div>
<div class="content"><div class='highlight'><pre>extend = exports.extend = <span class="hljs-function"><span class="hljs-params">(object, properties)</span> -&gt;</span>
<span class="hljs-keyword">for</span> key, val <span class="hljs-keyword">of</span> properties
object[key] = val
object</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Return a flattened version of an array.
Handy for getting a list of <code>children</code> from the nodes.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.flatten = flatten = <span class="hljs-function"><span class="hljs-params">(array)</span> -&gt;</span>
flattened = []
<span class="hljs-keyword">for</span> element <span class="hljs-keyword">in</span> array
<span class="hljs-keyword">if</span> <span class="hljs-string">'[object Array]'</span> <span class="hljs-keyword">is</span> Object::toString.call element
flattened = flattened.concat flatten element
<span class="hljs-keyword">else</span>
flattened.push element
flattened</pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>Delete a key from an object, returning the value. Useful when a node is
looking for a particular method in an options hash.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.del = <span class="hljs-function"><span class="hljs-params">(obj, key)</span> -&gt;</span>
val = obj[key]
<span class="hljs-keyword">delete</span> obj[key]
val</pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>Typical Array::some</p>
</div>
<div class="content"><div class='highlight'><pre>exports.some = Array::some ? (fn) -&gt;
<span class="hljs-keyword">return</span> <span class="hljs-literal">true</span> <span class="hljs-keyword">for</span> e <span class="hljs-keyword">in</span> <span class="hljs-keyword">this</span> <span class="hljs-keyword">when</span> fn e
<span class="hljs-literal">false</span></pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>Simple function for extracting code from Literate CoffeeScript by stripping
out all non-code blocks, producing a string of CoffeeScript code that can
be compiled “normally.”</p>
</div>
<div class="content"><div class='highlight'><pre>exports.invertLiterate = <span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span></pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<p>Create a placeholder for tabs, that isnt used anywhere in <code>code</code>, and then
re-insert the tabs after code extraction.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"> <span class="hljs-title">generateRandomToken</span> = -&gt;</span>
<span class="hljs-string">"<span class="hljs-subst">#{Math.random() * Date.now()}</span>"</span>
<span class="hljs-keyword">while</span> token <span class="hljs-keyword">is</span> <span class="hljs-literal">undefined</span> <span class="hljs-keyword">or</span> code.indexOf(token) <span class="hljs-keyword">isnt</span> <span class="hljs-number">-1</span>
token = generateRandomToken()
code = code.replace <span class="hljs-string">"\t"</span>, token</pre></div></div>
</li>
<li id="section-16">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-16">&#182;</a>
</div>
<p>Parse as markdown, discard everything except code blocks.</p>
</div>
<div class="content"><div class='highlight'><pre> out = <span class="hljs-string">""</span>
<span class="hljs-keyword">for</span> item <span class="hljs-keyword">in</span> marked.lexer code, {}
out += <span class="hljs-string">"<span class="hljs-subst">#{item.text}</span>\n"</span> <span class="hljs-keyword">if</span> item.type <span class="hljs-keyword">is</span> <span class="hljs-string">'code'</span></pre></div></div>
</li>
<li id="section-17">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-17">&#182;</a>
</div>
<p>Put the tabs back in.</p>
</div>
<div class="content"><div class='highlight'><pre> out.replace token, <span class="hljs-string">"\t"</span>
out</pre></div></div>
</li>
<li id="section-18">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-18">&#182;</a>
</div>
<p>Merge two jison-style location data objects together.
If <code>last</code> is not provided, this will simply return <code>first</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">buildLocationData</span> = <span class="hljs-params">(first, last)</span> -&gt;</span>
<span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> last
first
<span class="hljs-keyword">else</span>
first_line: first.first_line
first_column: first.first_column
last_line: last.last_line
last_column: last.last_column</pre></div></div>
</li>
<li id="section-19">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-19">&#182;</a>
</div>
<p>This returns a function which takes an object as a parameter, and if that
object is an AST node, updates that objects locationData.
The object is returned either way.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.addLocationDataFn = <span class="hljs-function"><span class="hljs-params">(first, last)</span> -&gt;</span>
(obj) -&gt;
<span class="hljs-keyword">if</span> ((<span class="hljs-keyword">typeof</span> obj) <span class="hljs-keyword">is</span> <span class="hljs-string">'object'</span>) <span class="hljs-keyword">and</span> (!!obj[<span class="hljs-string">'updateLocationDataIfMissing'</span>])
obj.updateLocationDataIfMissing buildLocationData(first, last)
<span class="hljs-keyword">return</span> obj</pre></div></div>
</li>
<li id="section-20">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-20">&#182;</a>
</div>
<p>Convert jison location data to a string.
<code>obj</code> can be a token, or a locationData.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.locationDataToString = <span class="hljs-function"><span class="hljs-params">(obj)</span> -&gt;</span>
<span class="hljs-keyword">if</span> (<span class="hljs-string">"2"</span> <span class="hljs-keyword">of</span> obj) <span class="hljs-keyword">and</span> (<span class="hljs-string">"first_line"</span> <span class="hljs-keyword">of</span> obj[<span class="hljs-number">2</span>]) <span class="hljs-keyword">then</span> locationData = obj[<span class="hljs-number">2</span>]
<span class="hljs-keyword">else</span> <span class="hljs-keyword">if</span> <span class="hljs-string">"first_line"</span> <span class="hljs-keyword">of</span> obj <span class="hljs-keyword">then</span> locationData = obj
<span class="hljs-keyword">if</span> locationData
<span class="hljs-string">"<span class="hljs-subst">#{locationData.first_line + <span class="hljs-number">1</span>}</span>:<span class="hljs-subst">#{locationData.first_column + <span class="hljs-number">1</span>}</span>-"</span> +
<span class="hljs-string">"<span class="hljs-subst">#{locationData.last_line + <span class="hljs-number">1</span>}</span>:<span class="hljs-subst">#{locationData.last_column + <span class="hljs-number">1</span>}</span>"</span>
<span class="hljs-keyword">else</span>
<span class="hljs-string">"No location data"</span></pre></div></div>
</li>
<li id="section-21">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-21">&#182;</a>
</div>
<p>A <code>.coffee.md</code> compatible version of <code>basename</code>, that returns the file sans-extension.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.baseFileName = <span class="hljs-function"><span class="hljs-params">(file, stripExt = <span class="hljs-literal">no</span>, useWinPathSep = <span class="hljs-literal">no</span>)</span> -&gt;</span>
pathSep = <span class="hljs-keyword">if</span> useWinPathSep <span class="hljs-keyword">then</span> <span class="hljs-regexp">/\\|\//</span> <span class="hljs-keyword">else</span> <span class="hljs-regexp">/\//</span>
parts = file.split(pathSep)
file = parts[parts.length - <span class="hljs-number">1</span>]
<span class="hljs-keyword">return</span> file <span class="hljs-keyword">unless</span> stripExt <span class="hljs-keyword">and</span> file.indexOf(<span class="hljs-string">'.'</span>) &gt;= <span class="hljs-number">0</span>
parts = file.split(<span class="hljs-string">'.'</span>)
parts.pop()
parts.pop() <span class="hljs-keyword">if</span> parts[parts.length - <span class="hljs-number">1</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'coffee'</span> <span class="hljs-keyword">and</span> parts.length &gt; <span class="hljs-number">1</span>
parts.join(<span class="hljs-string">'.'</span>)</pre></div></div>
</li>
<li id="section-22">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-22">&#182;</a>
</div>
<p>Determine if a filename represents a CoffeeScript file.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.isCoffee = <span class="hljs-function"><span class="hljs-params">(file)</span> -&gt;</span> <span class="hljs-regexp">/\.((lit)?coffee|coffee\.md)$/</span>.test file</pre></div></div>
</li>
<li id="section-23">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-23">&#182;</a>
</div>
<p>Determine if a filename represents a Literate CoffeeScript file.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.isLiterate = <span class="hljs-function"><span class="hljs-params">(file)</span> -&gt;</span> <span class="hljs-regexp">/\.(litcoffee|coffee\.md)$/</span>.test file</pre></div></div>
</li>
<li id="section-24">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-24">&#182;</a>
</div>
<p>Throws a SyntaxError from a given location.
The errors <code>toString</code> will return an error message following the “standard”
format <code>&lt;filename&gt;:&lt;line&gt;:&lt;col&gt;: &lt;message&gt;</code> plus the line with the error and a
marker showing where the error is.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.throwSyntaxError = <span class="hljs-function"><span class="hljs-params">(message, location)</span> -&gt;</span>
error = <span class="hljs-keyword">new</span> SyntaxError message
error.location = location
error.toString = syntaxErrorToString</pre></div></div>
</li>
<li id="section-25">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-25">&#182;</a>
</div>
<p>Instead of showing the compilers stacktrace, show our custom error message
(this is useful when the error bubbles up in Node.js applications that
compile CoffeeScript for example).</p>
</div>
<div class="content"><div class='highlight'><pre> error.stack = error.toString()
<span class="hljs-keyword">throw</span> error</pre></div></div>
</li>
<li id="section-26">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-26">&#182;</a>
</div>
<p>Update a compiler SyntaxError with source code information if it didnt have
it already.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.updateSyntaxError = <span class="hljs-function"><span class="hljs-params">(error, code, filename)</span> -&gt;</span></pre></div></div>
</li>
<li id="section-27">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-27">&#182;</a>
</div>
<p>Avoid screwing up the <code>stack</code> property of other errors (i.e. possible bugs).</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> error.toString <span class="hljs-keyword">is</span> syntaxErrorToString
error.code <span class="hljs-keyword">or</span>= code
error.filename <span class="hljs-keyword">or</span>= filename
error.stack = error.toString()
error
<span class="hljs-function">
<span class="hljs-title">syntaxErrorToString</span> = -&gt;</span>
<span class="hljs-keyword">return</span> Error::toString.call @ <span class="hljs-keyword">unless</span> @code <span class="hljs-keyword">and</span> @location
{first_line, first_column, last_line, last_column} = @location
last_line ?= first_line
last_column ?= first_column
filename = @filename <span class="hljs-keyword">or</span> <span class="hljs-string">'[stdin]'</span>
codeLine = @code.split(<span class="hljs-string">'\n'</span>)[first_line]
start = first_column</pre></div></div>
</li>
<li id="section-28">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-28">&#182;</a>
</div>
<p>Show only the first line on multi-line errors.</p>
</div>
<div class="content"><div class='highlight'><pre> end = <span class="hljs-keyword">if</span> first_line <span class="hljs-keyword">is</span> last_line <span class="hljs-keyword">then</span> last_column + <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> codeLine.length
marker = codeLine[...start].replace(<span class="hljs-regexp">/[^\s]/g</span>, <span class="hljs-string">' '</span>) + repeat(<span class="hljs-string">'^'</span>, end - start)</pre></div></div>
</li>
<li id="section-29">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-29">&#182;</a>
</div>
<p>Check to see if were running on a color-enabled TTY.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> process?
colorsEnabled = process.stdout?.isTTY <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> process.env?.NODE_DISABLE_COLORS
<span class="hljs-keyword">if</span> @colorful ? colorsEnabled
<span class="hljs-function"> <span class="hljs-title">colorize</span> = <span class="hljs-params">(str)</span> -&gt;</span> <span class="hljs-string">"\x1B[1;31m<span class="hljs-subst">#{str}</span>\x1B[0m"</span>
codeLine = codeLine[...start] + colorize(codeLine[start...end]) + codeLine[end..]
marker = colorize marker
<span class="hljs-string">"""
<span class="hljs-subst">#{filename}</span>:<span class="hljs-subst">#{first_line + <span class="hljs-number">1</span>}</span>:<span class="hljs-subst">#{first_column + <span class="hljs-number">1</span>}</span>: error: <span class="hljs-subst">#{@message}</span>
<span class="hljs-subst">#{codeLine}</span>
<span class="hljs-subst">#{marker}</span>
"""</span>
exports.nameWhitespaceCharacter = <span class="hljs-function"><span class="hljs-params">(string)</span> -&gt;</span>
<span class="hljs-keyword">switch</span> string
<span class="hljs-keyword">when</span> <span class="hljs-string">' '</span> <span class="hljs-keyword">then</span> <span class="hljs-string">'space'</span>
<span class="hljs-keyword">when</span> <span class="hljs-string">'\n'</span> <span class="hljs-keyword">then</span> <span class="hljs-string">'newline'</span>
<span class="hljs-keyword">when</span> <span class="hljs-string">'\r'</span> <span class="hljs-keyword">then</span> <span class="hljs-string">'carriage return'</span>
<span class="hljs-keyword">when</span> <span class="hljs-string">'\t'</span> <span class="hljs-keyword">then</span> <span class="hljs-string">'tab'</span>
<span class="hljs-keyword">else</span> string</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,129 @@
<!DOCTYPE html>
<html>
<head>
<title>index.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>index.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>Loader for CoffeeScript as a Node.js library.</p>
</div>
<div class="content"><div class='highlight'><pre>exports[key] = val <span class="hljs-keyword">for</span> key, val <span class="hljs-keyword">of</span> <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span></pre></div></div>
</li>
</ul>
</div>
</body>
</html>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,366 @@
<!DOCTYPE html>
<html>
<head>
<title>optparse.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>optparse.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
</div>
<div class="content"><div class='highlight'><pre>{repeat} = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>A simple <strong>OptionParser</strong> class to parse option flags from the command-line.
Use it like so:</p>
<pre><code>parser = <span class="hljs-keyword">new</span> OptionParser switches, helpBanner
options = parser.parse process.argv
</code></pre><p>The first non-option is considered to be the start of the file (and file
option) list, and all subsequent arguments are left unparsed.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.OptionParser = <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">OptionParser</span></span></pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Initialize with a list of valid options, in the form:</p>
<pre><code>[short-flag, long-flag, description]
</code></pre><p>Along with an optional banner for the usage help.</p>
</div>
<div class="content"><div class='highlight'><pre> constructor: <span class="hljs-function"><span class="hljs-params">(rules, @banner)</span> -&gt;</span>
@rules = buildRules rules</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Parse the list of arguments, populating an <code>options</code> object with all of the
specified options, and return it. Options after the first non-option
argument are treated as arguments. <code>options.arguments</code> will be an array
containing the remaining arguments. This is a simpler API than many option
parsers that allow you to attach callback actions for every flag. Instead,
youre responsible for interpreting the options object.</p>
</div>
<div class="content"><div class='highlight'><pre> parse: <span class="hljs-function"><span class="hljs-params">(args)</span> -&gt;</span>
options = arguments: []
skippingArgument = <span class="hljs-literal">no</span>
originalArgs = args
args = normalizeArguments args
<span class="hljs-keyword">for</span> arg, i <span class="hljs-keyword">in</span> args
<span class="hljs-keyword">if</span> skippingArgument
skippingArgument = <span class="hljs-literal">no</span>
<span class="hljs-keyword">continue</span>
<span class="hljs-keyword">if</span> arg <span class="hljs-keyword">is</span> <span class="hljs-string">'--'</span>
pos = originalArgs.indexOf <span class="hljs-string">'--'</span>
options.arguments = options.arguments.concat originalArgs[(pos + <span class="hljs-number">1</span>)..]
<span class="hljs-keyword">break</span>
isOption = !!(arg.match(LONG_FLAG) <span class="hljs-keyword">or</span> arg.match(SHORT_FLAG))</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>the CS option parser is a little odd; options after the first
non-option argument are treated as non-option arguments themselves</p>
</div>
<div class="content"><div class='highlight'><pre> seenNonOptionArg = options.arguments.length &gt; <span class="hljs-number">0</span>
<span class="hljs-keyword">unless</span> seenNonOptionArg
matchedRule = <span class="hljs-literal">no</span>
<span class="hljs-keyword">for</span> rule <span class="hljs-keyword">in</span> @rules
<span class="hljs-keyword">if</span> rule.shortFlag <span class="hljs-keyword">is</span> arg <span class="hljs-keyword">or</span> rule.longFlag <span class="hljs-keyword">is</span> arg
value = <span class="hljs-literal">true</span>
<span class="hljs-keyword">if</span> rule.hasArgument
skippingArgument = <span class="hljs-literal">yes</span>
value = args[i + <span class="hljs-number">1</span>]
options[rule.name] = <span class="hljs-keyword">if</span> rule.isList <span class="hljs-keyword">then</span> (options[rule.name] <span class="hljs-keyword">or</span> []).concat value <span class="hljs-keyword">else</span> value
matchedRule = <span class="hljs-literal">yes</span>
<span class="hljs-keyword">break</span>
<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">"unrecognized option: <span class="hljs-subst">#{arg}</span>"</span> <span class="hljs-keyword">if</span> isOption <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> matchedRule
<span class="hljs-keyword">if</span> seenNonOptionArg <span class="hljs-keyword">or</span> <span class="hljs-keyword">not</span> isOption
options.arguments.push arg
options</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Return the help text for this <strong>OptionParser</strong>, listing and describing all
of the valid options, for <code>--help</code> and such.</p>
</div>
<div class="content"><div class='highlight'><pre> help: <span class="hljs-function">-&gt;</span>
lines = []
lines.unshift <span class="hljs-string">"<span class="hljs-subst">#{@banner}</span>\n"</span> <span class="hljs-keyword">if</span> @banner
<span class="hljs-keyword">for</span> rule <span class="hljs-keyword">in</span> @rules
spaces = <span class="hljs-number">15</span> - rule.longFlag.length
spaces = <span class="hljs-keyword">if</span> spaces &gt; <span class="hljs-number">0</span> <span class="hljs-keyword">then</span> repeat <span class="hljs-string">' '</span>, spaces <span class="hljs-keyword">else</span> <span class="hljs-string">''</span>
letPart = <span class="hljs-keyword">if</span> rule.shortFlag <span class="hljs-keyword">then</span> rule.shortFlag + <span class="hljs-string">', '</span> <span class="hljs-keyword">else</span> <span class="hljs-string">' '</span>
lines.push <span class="hljs-string">' '</span> + letPart + rule.longFlag + spaces + rule.description
<span class="hljs-string">"\n<span class="hljs-subst">#{ lines.join(<span class="hljs-string">'\n'</span>) }</span>\n"</span></pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<h2 id="helpers">Helpers</h2>
</div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
</div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Regex matchers for option flags.</p>
</div>
<div class="content"><div class='highlight'><pre>LONG_FLAG = <span class="hljs-regexp">/^(--\w[\w\-]*)/</span>
SHORT_FLAG = <span class="hljs-regexp">/^(-\w)$/</span>
MULTI_FLAG = <span class="hljs-regexp">/^-(\w{2,})/</span>
OPTIONAL = <span class="hljs-regexp">/\[(\w+(\*?))\]/</span></pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Build and return the list of option rules. If the optional <em>short-flag</em> is
unspecified, leave it out by padding with <code>null</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">buildRules</span> = <span class="hljs-params">(rules)</span> -&gt;</span>
<span class="hljs-keyword">for</span> tuple <span class="hljs-keyword">in</span> rules
tuple.unshift <span class="hljs-literal">null</span> <span class="hljs-keyword">if</span> tuple.length &lt; <span class="hljs-number">3</span>
buildRule tuple...</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Build a rule from a <code>-o</code> short flag, a <code>--output [DIR]</code> long flag, and the
description of what the option does.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">buildRule</span> = <span class="hljs-params">(shortFlag, longFlag, description, options = {})</span> -&gt;</span>
match = longFlag.match(OPTIONAL)
longFlag = longFlag.match(LONG_FLAG)[<span class="hljs-number">1</span>]
{
name: longFlag.substr <span class="hljs-number">2</span>
shortFlag: shortFlag
longFlag: longFlag
description: description
hasArgument: !!(match <span class="hljs-keyword">and</span> match[<span class="hljs-number">1</span>])
isList: !!(match <span class="hljs-keyword">and</span> match[<span class="hljs-number">2</span>])
}</pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>Normalize arguments by expanding merged flags into multiple flags. This allows
you to have <code>-wl</code> be the same as <code>--watch --lint</code>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">normalizeArguments</span> = <span class="hljs-params">(args)</span> -&gt;</span>
args = args[..]
result = []
<span class="hljs-keyword">for</span> arg <span class="hljs-keyword">in</span> args
<span class="hljs-keyword">if</span> match = arg.match MULTI_FLAG
result.push <span class="hljs-string">'-'</span> + l <span class="hljs-keyword">for</span> l <span class="hljs-keyword">in</span> match[<span class="hljs-number">1</span>].split <span class="hljs-string">''</span>
<span class="hljs-keyword">else</span>
result.push arg
result</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,375 @@
/*! normalize.css v2.0.1 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/*
* Corrects `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
display: block;
}
/*
* Corrects `inline-block` display not defined in IE 8/9.
*/
audio,
canvas,
video {
display: inline-block;
}
/*
* Prevents modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/*
* Addresses styling for `hidden` attribute not present in IE 8/9.
*/
[hidden] {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/*
* 1. Sets default font family to sans-serif.
* 2. Prevents iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
/*
* Removes default margin.
*/
body {
margin: 0;
}
/* ==========================================================================
Links
========================================================================== */
/*
* Addresses `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/*
* Improves readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/*
* Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
* Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
}
/*
* Addresses styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/*
* Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/*
* Addresses styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/*
* Addresses styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/*
* Corrects font family set oddly in Safari 5 and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
/*
* Improves readability of pre-formatted text in all browsers.
*/
pre {
white-space: pre;
white-space: pre-wrap;
word-wrap: break-word;
}
/*
* Sets consistent quote types.
*/
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
/*
* Addresses inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/*
* Prevents `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* ==========================================================================
Embedded content
========================================================================== */
/*
* Removes border when inside `a` element in IE 8/9.
*/
img {
border: 0;
}
/*
* Corrects overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* ==========================================================================
Figures
========================================================================== */
/*
* Addresses margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/*
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/*
* 1. Corrects color not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/*
* 1. Corrects font family not being inherited in all browsers.
* 2. Corrects font size not being inherited in all browsers.
* 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
*/
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
/*
* Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/*
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Corrects inability to style clickable `input` types in iOS.
* 3. Improves usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/*
* Re-set default cursor for disabled elements.
*/
button[disabled],
input[disabled] {
cursor: default;
}
/*
* 1. Addresses box sizing set to `content-box` in IE 8/9.
* 2. Removes excess padding in IE 8/9.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/*
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/*
* Removes inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/*
* Removes inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/*
* 1. Removes default vertical scrollbar in IE 8/9.
* 2. Improves readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/*
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

View file

@ -0,0 +1,251 @@
<!DOCTYPE html>
<html>
<head>
<title>register.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>register.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
</div>
<div class="content"><div class='highlight'><pre>CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span>
child_process = <span class="hljs-built_in">require</span> <span class="hljs-string">'child_process'</span>
helpers = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span>
path = <span class="hljs-built_in">require</span> <span class="hljs-string">'path'</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>Load and run a CoffeeScript file for Node, stripping any <code>BOM</code>s.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">loadFile</span> = <span class="hljs-params">(<span class="hljs-built_in">module</span>, filename)</span> -&gt;</span>
answer = CoffeeScript._compileFile filename, <span class="hljs-literal">no</span>, <span class="hljs-literal">yes</span>
<span class="hljs-built_in">module</span>._compile answer, filename</pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>If the installed version of Node supports <code>require.extensions</code>, register
CoffeeScript as an extension.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> <span class="hljs-built_in">require</span>.extensions
<span class="hljs-keyword">for</span> ext <span class="hljs-keyword">in</span> CoffeeScript.FILE_EXTENSIONS
<span class="hljs-built_in">require</span>.extensions[ext] = loadFile</pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Patch Nodes module loader to be able to handle multi-dot extensions.
This is a horrible thing that should not be required.</p>
</div>
<div class="content"><div class='highlight'><pre> Module = <span class="hljs-built_in">require</span> <span class="hljs-string">'module'</span>
<span class="hljs-function">
<span class="hljs-title">findExtension</span> = <span class="hljs-params">(filename)</span> -&gt;</span>
extensions = path.basename(filename).split <span class="hljs-string">'.'</span></pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Remove the initial dot from dotfiles.</p>
</div>
<div class="content"><div class='highlight'><pre> extensions.shift() <span class="hljs-keyword">if</span> extensions[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">''</span></pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Start with the longest possible extension and work our way shortwards.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">while</span> extensions.shift()
curExtension = <span class="hljs-string">'.'</span> + extensions.join <span class="hljs-string">'.'</span>
<span class="hljs-keyword">return</span> curExtension <span class="hljs-keyword">if</span> Module._extensions[curExtension]
<span class="hljs-string">'.js'</span>
Module::load = <span class="hljs-function"><span class="hljs-params">(filename)</span> -&gt;</span>
@filename = filename
@paths = Module._nodeModulePaths path.dirname filename
extension = findExtension filename
Module._extensions[extension](<span class="hljs-keyword">this</span>, filename)
@loaded = <span class="hljs-literal">true</span></pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>If were on Node, patch <code>child_process.fork</code> so that Coffee scripts are able
to fork both CoffeeScript files, and JavaScript files, directly.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">if</span> child_process
{fork} = child_process
binary = <span class="hljs-built_in">require</span>.resolve <span class="hljs-string">'../../bin/coffee'</span>
child_process.fork = <span class="hljs-function"><span class="hljs-params">(path, args, options)</span> -&gt;</span>
<span class="hljs-keyword">if</span> helpers.isCoffee path
<span class="hljs-keyword">unless</span> Array.isArray args
options = args <span class="hljs-keyword">or</span> {}
args = []
args = [path].concat args
path = binary
fork path, args, options</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,624 @@
<!DOCTYPE html>
<html>
<head>
<title>repl.coffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>repl.coffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
</div>
<div class="content"><div class='highlight'><pre>fs = <span class="hljs-built_in">require</span> <span class="hljs-string">'fs'</span>
path = <span class="hljs-built_in">require</span> <span class="hljs-string">'path'</span>
vm = <span class="hljs-built_in">require</span> <span class="hljs-string">'vm'</span>
nodeREPL = <span class="hljs-built_in">require</span> <span class="hljs-string">'repl'</span>
CoffeeScript = <span class="hljs-built_in">require</span> <span class="hljs-string">'./coffeescript'</span>
{merge, updateSyntaxError} = <span class="hljs-built_in">require</span> <span class="hljs-string">'./helpers'</span>
replDefaults =
prompt: <span class="hljs-string">'coffee&gt; '</span>,
historyFile: path.join process.env.HOME, <span class="hljs-string">'.coffee_history'</span> <span class="hljs-keyword">if</span> process.env.HOME
historyMaxInputSize: <span class="hljs-number">10240</span>
eval: <span class="hljs-function"><span class="hljs-params">(input, context, filename, cb)</span> -&gt;</span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>XXX: multiline hack.</p>
</div>
<div class="content"><div class='highlight'><pre> input = input.replace <span class="hljs-regexp">/\uFF00/g</span>, <span class="hljs-string">'\n'</span></pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>Nodes REPL sends the input ending with a newline and then wrapped in
parens. Unwrap all that.</p>
</div>
<div class="content"><div class='highlight'><pre> input = input.replace <span class="hljs-regexp">/^\(([\s\S]*)\n\)$/m</span>, <span class="hljs-string">'$1'</span></pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Nodes REPL v6.9.1+ sends the input wrapped in a try/catch statement.
Unwrap that too.</p>
</div>
<div class="content"><div class='highlight'><pre> input = input.replace <span class="hljs-regexp">/^\s*try\s*{([\s\S]*)}\s*catch.*$/m</span>, <span class="hljs-string">'$1'</span></pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Require AST nodes to do some AST manipulation.</p>
</div>
<div class="content"><div class='highlight'><pre> {Block, Assign, Value, Literal} = <span class="hljs-built_in">require</span> <span class="hljs-string">'./nodes'</span>
<span class="hljs-keyword">try</span></pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Tokenize the clean input.</p>
</div>
<div class="content"><div class='highlight'><pre> tokens = CoffeeScript.tokens input</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Collect referenced variable names just like in <code>CoffeeScript.compile</code>.</p>
</div>
<div class="content"><div class='highlight'><pre> referencedVars = (
token[<span class="hljs-number">1</span>] <span class="hljs-keyword">for</span> token <span class="hljs-keyword">in</span> tokens <span class="hljs-keyword">when</span> token[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">'IDENTIFIER'</span>
)</pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Generate the AST of the tokens.</p>
</div>
<div class="content"><div class='highlight'><pre> ast = CoffeeScript.nodes tokens</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Add assignment to <code>_</code> variable to force the input to be an expression.</p>
</div>
<div class="content"><div class='highlight'><pre> ast = <span class="hljs-keyword">new</span> Block [
<span class="hljs-keyword">new</span> Assign (<span class="hljs-keyword">new</span> Value <span class="hljs-keyword">new</span> Literal <span class="hljs-string">'_'</span>), ast, <span class="hljs-string">'='</span>
]
js = ast.compile {bare: <span class="hljs-literal">yes</span>, locals: Object.keys(context), referencedVars}
cb <span class="hljs-literal">null</span>, runInContext js, context, filename
<span class="hljs-keyword">catch</span> err</pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>ASTs <code>compile</code> does not add source code information to syntax errors.</p>
</div>
<div class="content"><div class='highlight'><pre> updateSyntaxError err, input
cb err
<span class="hljs-function">
<span class="hljs-title">runInContext</span> = <span class="hljs-params">(js, context, filename)</span> -&gt;</span>
<span class="hljs-keyword">if</span> context <span class="hljs-keyword">is</span> <span class="hljs-built_in">global</span>
vm.runInThisContext js, filename
<span class="hljs-keyword">else</span>
vm.runInContext js, context, filename
<span class="hljs-function">
<span class="hljs-title">addMultilineHandler</span> = <span class="hljs-params">(repl)</span> -&gt;</span>
{rli, inputStream, outputStream} = repl</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>Node 0.11.12 changed API, prompt is now _prompt.</p>
</div>
<div class="content"><div class='highlight'><pre> origPrompt = repl._prompt ? repl.prompt
multiline =
enabled: <span class="hljs-literal">off</span>
initialPrompt: origPrompt.replace <span class="hljs-regexp">/^[^&gt; ]*/</span>, <span class="hljs-function"><span class="hljs-params">(x)</span> -&gt;</span> x.replace <span class="hljs-regexp">/./g</span>, <span class="hljs-string">'-'</span>
prompt: origPrompt.replace <span class="hljs-regexp">/^[^&gt; ]*&gt;?/</span>, <span class="hljs-function"><span class="hljs-params">(x)</span> -&gt;</span> x.replace <span class="hljs-regexp">/./g</span>, <span class="hljs-string">'.'</span>
buffer: <span class="hljs-string">''</span></pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>Proxy nodes line listener</p>
</div>
<div class="content"><div class='highlight'><pre> nodeLineListener = rli.listeners(<span class="hljs-string">'line'</span>)[<span class="hljs-number">0</span>]
rli.removeListener <span class="hljs-string">'line'</span>, nodeLineListener
rli.<span class="hljs-literal">on</span> <span class="hljs-string">'line'</span>, <span class="hljs-function"><span class="hljs-params">(cmd)</span> -&gt;</span>
<span class="hljs-keyword">if</span> multiline.enabled
multiline.buffer += <span class="hljs-string">"<span class="hljs-subst">#{cmd}</span>\n"</span>
rli.setPrompt multiline.prompt
rli.prompt <span class="hljs-literal">true</span>
<span class="hljs-keyword">else</span>
rli.setPrompt origPrompt
nodeLineListener cmd
<span class="hljs-keyword">return</span></pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>Handle Ctrl-v</p>
</div>
<div class="content"><div class='highlight'><pre> inputStream.<span class="hljs-literal">on</span> <span class="hljs-string">'keypress'</span>, <span class="hljs-function"><span class="hljs-params">(char, key)</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">unless</span> key <span class="hljs-keyword">and</span> key.ctrl <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> key.meta <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> key.shift <span class="hljs-keyword">and</span> key.name <span class="hljs-keyword">is</span> <span class="hljs-string">'v'</span>
<span class="hljs-keyword">if</span> multiline.enabled</pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>allow arbitrarily switching between modes any time before multiple lines are entered</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">unless</span> multiline.buffer.match <span class="hljs-regexp">/\n/</span>
multiline.enabled = <span class="hljs-keyword">not</span> multiline.enabled
rli.setPrompt origPrompt
rli.prompt <span class="hljs-literal">true</span>
<span class="hljs-keyword">return</span></pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<p>no-op unless the current line is empty</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> rli.line? <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> rli.line.match <span class="hljs-regexp">/^\s*$/</span></pre></div></div>
</li>
<li id="section-16">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-16">&#182;</a>
</div>
<p>eval, print, loop</p>
</div>
<div class="content"><div class='highlight'><pre> multiline.enabled = <span class="hljs-keyword">not</span> multiline.enabled
rli.line = <span class="hljs-string">''</span>
rli.cursor = <span class="hljs-number">0</span>
rli.output.cursorTo <span class="hljs-number">0</span>
rli.output.clearLine <span class="hljs-number">1</span></pre></div></div>
</li>
<li id="section-17">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-17">&#182;</a>
</div>
<p>XXX: multiline hack</p>
</div>
<div class="content"><div class='highlight'><pre> multiline.buffer = multiline.buffer.replace <span class="hljs-regexp">/\n/g</span>, <span class="hljs-string">'\uFF00'</span>
rli.emit <span class="hljs-string">'line'</span>, multiline.buffer
multiline.buffer = <span class="hljs-string">''</span>
<span class="hljs-keyword">else</span>
multiline.enabled = <span class="hljs-keyword">not</span> multiline.enabled
rli.setPrompt multiline.initialPrompt
rli.prompt <span class="hljs-literal">true</span>
<span class="hljs-keyword">return</span></pre></div></div>
</li>
<li id="section-18">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-18">&#182;</a>
</div>
<p>Store and load command history from a file</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">addHistory</span> = <span class="hljs-params">(repl, filename, maxSize)</span> -&gt;</span>
lastLine = <span class="hljs-literal">null</span>
<span class="hljs-keyword">try</span></pre></div></div>
</li>
<li id="section-19">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-19">&#182;</a>
</div>
<p>Get file info and at most maxSize of command history</p>
</div>
<div class="content"><div class='highlight'><pre> stat = fs.statSync filename
size = Math.min maxSize, stat.size</pre></div></div>
</li>
<li id="section-20">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-20">&#182;</a>
</div>
<p>Read last <code>size</code> bytes from the file</p>
</div>
<div class="content"><div class='highlight'><pre> readFd = fs.openSync filename, <span class="hljs-string">'r'</span>
buffer = Buffer.alloc size
fs.readSync readFd, buffer, <span class="hljs-number">0</span>, size, stat.size - size
fs.closeSync readFd</pre></div></div>
</li>
<li id="section-21">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-21">&#182;</a>
</div>
<p>Set the history on the interpreter</p>
</div>
<div class="content"><div class='highlight'><pre> repl.rli.history = buffer.toString().split(<span class="hljs-string">'\n'</span>).reverse()</pre></div></div>
</li>
<li id="section-22">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-22">&#182;</a>
</div>
<p>If the history file was truncated we should pop off a potential partial line</p>
</div>
<div class="content"><div class='highlight'><pre> repl.rli.history.pop() <span class="hljs-keyword">if</span> stat.size &gt; maxSize</pre></div></div>
</li>
<li id="section-23">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-23">&#182;</a>
</div>
<p>Shift off the final blank newline</p>
</div>
<div class="content"><div class='highlight'><pre> repl.rli.history.shift() <span class="hljs-keyword">if</span> repl.rli.history[<span class="hljs-number">0</span>] <span class="hljs-keyword">is</span> <span class="hljs-string">''</span>
repl.rli.historyIndex = <span class="hljs-number">-1</span>
lastLine = repl.rli.history[<span class="hljs-number">0</span>]
fd = fs.openSync filename, <span class="hljs-string">'a'</span>
repl.rli.addListener <span class="hljs-string">'line'</span>, <span class="hljs-function"><span class="hljs-params">(code)</span> -&gt;</span>
<span class="hljs-keyword">if</span> code <span class="hljs-keyword">and</span> code.length <span class="hljs-keyword">and</span> code <span class="hljs-keyword">isnt</span> <span class="hljs-string">'.history'</span> <span class="hljs-keyword">and</span> code <span class="hljs-keyword">isnt</span> <span class="hljs-string">'.exit'</span> <span class="hljs-keyword">and</span> lastLine <span class="hljs-keyword">isnt</span> code</pre></div></div>
</li>
<li id="section-24">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-24">&#182;</a>
</div>
<p>Save the latest command in the file</p>
</div>
<div class="content"><div class='highlight'><pre> fs.writeSync fd, <span class="hljs-string">"<span class="hljs-subst">#{code}</span>\n"</span>
lastLine = code
repl.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>, <span class="hljs-function">-&gt;</span> fs.closeSync fd</pre></div></div>
</li>
<li id="section-25">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-25">&#182;</a>
</div>
<p>Add a command to show the history stack</p>
</div>
<div class="content"><div class='highlight'><pre> repl.commands[getCommandId(repl, <span class="hljs-string">'history'</span>)] =
help: <span class="hljs-string">'Show command history'</span>
action: <span class="hljs-function">-&gt;</span>
repl.outputStream.write <span class="hljs-string">"<span class="hljs-subst">#{repl.rli.history[..].reverse().join <span class="hljs-string">'\n'</span>}</span>\n"</span>
repl.displayPrompt()
<span class="hljs-function">
<span class="hljs-title">getCommandId</span> = <span class="hljs-params">(repl, commandName)</span> -&gt;</span></pre></div></div>
</li>
<li id="section-26">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-26">&#182;</a>
</div>
<p>Node 0.11 changed API, a command such as .help is now stored as help</p>
</div>
<div class="content"><div class='highlight'><pre> commandsHaveLeadingDot = repl.commands[<span class="hljs-string">'.help'</span>]?
<span class="hljs-keyword">if</span> commandsHaveLeadingDot <span class="hljs-keyword">then</span> <span class="hljs-string">".<span class="hljs-subst">#{commandName}</span>"</span> <span class="hljs-keyword">else</span> commandName
<span class="hljs-built_in">module</span>.exports =
start: <span class="hljs-function"><span class="hljs-params">(opts = {})</span> -&gt;</span>
[major, minor, build] = process.versions.node.split(<span class="hljs-string">'.'</span>).map (n) -&gt; parseInt(n)
<span class="hljs-keyword">if</span> major &lt; <span class="hljs-number">6</span>
<span class="hljs-built_in">console</span>.warn <span class="hljs-string">"Node 6+ required for CoffeeScript REPL"</span>
process.exit <span class="hljs-number">1</span>
CoffeeScript.register()
process.argv = [<span class="hljs-string">'coffee'</span>].concat process.argv[<span class="hljs-number">2.</span>.]
opts = merge replDefaults, opts
repl = nodeREPL.start opts
runInContext opts.prelude, repl.context, <span class="hljs-string">'prelude'</span> <span class="hljs-keyword">if</span> opts.prelude
repl.<span class="hljs-literal">on</span> <span class="hljs-string">'exit'</span>, <span class="hljs-function">-&gt;</span> repl.outputStream.write <span class="hljs-string">'\n'</span> <span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> repl.rli.closed
addMultilineHandler repl
addHistory repl, opts.historyFile, opts.historyMaxInputSize <span class="hljs-keyword">if</span> opts.historyFile</pre></div></div>
</li>
<li id="section-27">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-27">&#182;</a>
</div>
<p>Adapt help inherited from the node REPL</p>
</div>
<div class="content"><div class='highlight'><pre> repl.commands[getCommandId(repl, <span class="hljs-string">'load'</span>)].help = <span class="hljs-string">'Load code from a file into this REPL session'</span>
repl</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,398 @@
<!DOCTYPE html>
<html>
<head>
<title>scope.litcoffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>scope.litcoffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>The <strong>Scope</strong> class regulates lexical scoping within CoffeeScript. As you
generate code, you create a tree of scopes in the same shape as the nested
function bodies. Each scope knows about the variables declared within it,
and has a reference to its parent enclosing scope. In this way, we know which
variables are new and need to be declared with <code>var</code>, and which are shared
with external scopes.</p>
</div>
<div class="content"><div class='highlight'><pre>exports.Scope = <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Scope</span></span></pre></div></div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>Initialize a scope with its parent, for lookups up the chain,
as well as a reference to the <strong>Block</strong> node it belongs to, which is
where it should declare its variables, a reference to the function that
it belongs to, and a list of variables referenced in the source code
and therefore should be avoided when generating variables.</p>
</div>
<div class="content"><div class='highlight'><pre> constructor: <span class="hljs-function"><span class="hljs-params">(@parent, @expressions, @method, @referencedVars)</span> -&gt;</span>
@variables = [{name: <span class="hljs-string">'arguments'</span>, type: <span class="hljs-string">'arguments'</span>}]
@positions = {}
@utilities = {} <span class="hljs-keyword">unless</span> @parent</pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<p>The <code>@root</code> is the top-level <strong>Scope</strong> object for a given file.</p>
</div>
<div class="content"><div class='highlight'><pre> @root = @parent?.root ? <span class="hljs-keyword">this</span></pre></div></div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Adds a new variable or overrides an existing one.</p>
</div>
<div class="content"><div class='highlight'><pre> add: <span class="hljs-function"><span class="hljs-params">(name, type, immediate)</span> -&gt;</span>
<span class="hljs-keyword">return</span> @parent.add name, type, immediate <span class="hljs-keyword">if</span> @shared <span class="hljs-keyword">and</span> <span class="hljs-keyword">not</span> immediate
<span class="hljs-keyword">if</span> Object::hasOwnProperty.call @positions, name
@variables[@positions[name]].type = type
<span class="hljs-keyword">else</span>
@positions[name] = @variables.push({name, type}) - <span class="hljs-number">1</span></pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>When <code>super</code> is called, we need to find the name of the current method were
in, so that we know how to invoke the same method of the parent class. This
can get complicated if super is being called from an inner function.
<code>namedMethod</code> will walk up the scope tree until it either finds the first
function object that has a name filled in, or bottoms out.</p>
</div>
<div class="content"><div class='highlight'><pre> namedMethod: <span class="hljs-function">-&gt;</span>
<span class="hljs-keyword">return</span> @method <span class="hljs-keyword">if</span> @method?.name <span class="hljs-keyword">or</span> !@parent
@parent.namedMethod()</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Look up a variable name in lexical scope, and declare it if it does not
already exist.</p>
</div>
<div class="content"><div class='highlight'><pre> find: <span class="hljs-function"><span class="hljs-params">(name, type = <span class="hljs-string">'var'</span>)</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-literal">yes</span> <span class="hljs-keyword">if</span> @check name
@add name, type
<span class="hljs-literal">no</span></pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<p>Reserve a variable name as originating from a function parameter for this
scope. No <code>var</code> required for internal references.</p>
</div>
<div class="content"><div class='highlight'><pre> parameter: <span class="hljs-function"><span class="hljs-params">(name)</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> @shared <span class="hljs-keyword">and</span> @parent.check name, <span class="hljs-literal">yes</span>
@add name, <span class="hljs-string">'param'</span></pre></div></div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Just check to see if a variable has already been declared, without reserving,
walks up to the root scope.</p>
</div>
<div class="content"><div class='highlight'><pre> check: <span class="hljs-function"><span class="hljs-params">(name)</span> -&gt;</span>
!!(@type(name) <span class="hljs-keyword">or</span> @parent?.check(name))</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Generate a temporary variable name at the given index.</p>
</div>
<div class="content"><div class='highlight'><pre> temporary: <span class="hljs-function"><span class="hljs-params">(name, index, single=<span class="hljs-literal">false</span>)</span> -&gt;</span>
<span class="hljs-keyword">if</span> single
startCode = name.charCodeAt(<span class="hljs-number">0</span>)
endCode = <span class="hljs-string">'z'</span>.charCodeAt(<span class="hljs-number">0</span>)
diff = endCode - startCode
newCode = startCode + index % (diff + <span class="hljs-number">1</span>)
letter = String.fromCharCode(newCode)
num = index <span class="hljs-regexp">//</span> (diff + <span class="hljs-number">1</span>)
<span class="hljs-string">"<span class="hljs-subst">#{letter}</span><span class="hljs-subst">#{num <span class="hljs-keyword">or</span> <span class="hljs-string">''</span>}</span>"</span>
<span class="hljs-keyword">else</span>
<span class="hljs-string">"<span class="hljs-subst">#{name}</span><span class="hljs-subst">#{index <span class="hljs-keyword">or</span> <span class="hljs-string">''</span>}</span>"</span></pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Gets the type of a variable.</p>
</div>
<div class="content"><div class='highlight'><pre> type: <span class="hljs-function"><span class="hljs-params">(name)</span> -&gt;</span>
<span class="hljs-keyword">return</span> v.type <span class="hljs-keyword">for</span> v <span class="hljs-keyword">in</span> @variables <span class="hljs-keyword">when</span> v.name <span class="hljs-keyword">is</span> name
<span class="hljs-literal">null</span></pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>If we need to store an intermediate result, find an available name for a
compiler-generated variable. <code>_var</code>, <code>_var2</code>, and so on…</p>
</div>
<div class="content"><div class='highlight'><pre> freeVariable: <span class="hljs-function"><span class="hljs-params">(name, options={})</span> -&gt;</span>
index = <span class="hljs-number">0</span>
<span class="hljs-keyword">loop</span>
temp = @temporary name, index, options.single
<span class="hljs-keyword">break</span> <span class="hljs-keyword">unless</span> @check(temp) <span class="hljs-keyword">or</span> temp <span class="hljs-keyword">in</span> @root.referencedVars
index++
@add temp, <span class="hljs-string">'var'</span>, <span class="hljs-literal">yes</span> <span class="hljs-keyword">if</span> options.reserve ? <span class="hljs-literal">true</span>
temp</pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>Ensure that an assignment is made at the top of this scope
(or at the top-level scope, if requested).</p>
</div>
<div class="content"><div class='highlight'><pre> assign: <span class="hljs-function"><span class="hljs-params">(name, value)</span> -&gt;</span>
@add name, {value, assigned: <span class="hljs-literal">yes</span>}, <span class="hljs-literal">yes</span>
@hasAssignments = <span class="hljs-literal">yes</span></pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>Does this scope have any declared variables?</p>
</div>
<div class="content"><div class='highlight'><pre> hasDeclarations: <span class="hljs-function">-&gt;</span>
!!@declaredVariables().length</pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>Return the list of variables first declared in this scope.</p>
</div>
<div class="content"><div class='highlight'><pre> declaredVariables: <span class="hljs-function">-&gt;</span>
(v.name <span class="hljs-keyword">for</span> v <span class="hljs-keyword">in</span> @variables <span class="hljs-keyword">when</span> v.type <span class="hljs-keyword">is</span> <span class="hljs-string">'var'</span>).sort()</pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<p>Return the list of assignments that are supposed to be made at the top
of this scope.</p>
</div>
<div class="content"><div class='highlight'><pre> assignedVariables: <span class="hljs-function">-&gt;</span>
<span class="hljs-string">"<span class="hljs-subst">#{v.name}</span> = <span class="hljs-subst">#{v.type.value}</span>"</span> <span class="hljs-keyword">for</span> v <span class="hljs-keyword">in</span> @variables <span class="hljs-keyword">when</span> v.type.assigned</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,523 @@
<!DOCTYPE html>
<html>
<head>
<title>sourcemap.litcoffee</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<link rel="stylesheet" media="all" href="docco.css" />
</head>
<body>
<div id="container">
<div id="background"></div>
<ul id="jump_to">
<li>
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
<a class="small" href="javascript:void(0);">+</a>
<div id="jump_wrapper">
<div id="jump_page_wrapper">
<div id="jump_page">
<a class="source" href="browser.html">
browser.coffee
</a>
<a class="source" href="cake.html">
cake.coffee
</a>
<a class="source" href="coffeescript.html">
coffeescript.coffee
</a>
<a class="source" href="command.html">
command.coffee
</a>
<a class="source" href="grammar.html">
grammar.coffee
</a>
<a class="source" href="helpers.html">
helpers.coffee
</a>
<a class="source" href="index.html">
index.coffee
</a>
<a class="source" href="lexer.html">
lexer.coffee
</a>
<a class="source" href="nodes.html">
nodes.coffee
</a>
<a class="source" href="optparse.html">
optparse.coffee
</a>
<a class="source" href="register.html">
register.coffee
</a>
<a class="source" href="repl.html">
repl.coffee
</a>
<a class="source" href="rewriter.html">
rewriter.coffee
</a>
<a class="source" href="scope.html">
scope.litcoffee
</a>
<a class="source" href="sourcemap.html">
sourcemap.litcoffee
</a>
</div>
</div>
</li>
</ul>
<ul class="sections">
<li id="title">
<div class="annotation">
<h1>sourcemap.litcoffee</h1>
</div>
</li>
<li id="section-1">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
<p>Source maps allow JavaScript runtimes to match running JavaScript back to
the original source code that corresponds to it. This can be minified
JavaScript, but in our case, were concerned with mapping pretty-printed
JavaScript back to CoffeeScript.</p>
<p>In order to produce maps, we must keep track of positions (line number, column number)
that originated every node in the syntax tree, and be able to generate a
<a href="https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit">map file</a>
— which is a compact, VLQ-encoded representation of the JSON serialization
of this information — to write out alongside the generated JavaScript.</p>
<h2 id="linemap">LineMap</h2>
</div>
</li>
<li id="section-2">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-2">&#182;</a>
</div>
<p>A <strong>LineMap</strong> object keeps track of information about original line and column
positions for a single line of output JavaScript code.
<strong>SourceMaps</strong> are implemented in terms of <strong>LineMaps</strong>.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">LineMap</span></span>
constructor: <span class="hljs-function"><span class="hljs-params">(@line)</span> -&gt;</span>
@columns = []
add: <span class="hljs-function"><span class="hljs-params">(column, [sourceLine, sourceColumn], options={})</span> -&gt;</span>
<span class="hljs-keyword">return</span> <span class="hljs-keyword">if</span> @columns[column] <span class="hljs-keyword">and</span> options.noReplace
@columns[column] = {line: @line, column, sourceLine, sourceColumn}
sourceLocation: <span class="hljs-function"><span class="hljs-params">(column)</span> -&gt;</span>
column-- <span class="hljs-keyword">until</span> (mapping = @columns[column]) <span class="hljs-keyword">or</span> (column &lt;= <span class="hljs-number">0</span>)
mapping <span class="hljs-keyword">and</span> [mapping.sourceLine, mapping.sourceColumn]</pre></div></div>
</li>
<li id="section-3">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-3">&#182;</a>
</div>
<h2 id="sourcemap">SourceMap</h2>
</div>
</li>
<li id="section-4">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-4">&#182;</a>
</div>
<p>Maps locations in a single generated JavaScript file back to locations in
the original CoffeeScript source file.</p>
<p>This is intentionally agnostic towards how a source map might be represented on
disk. Once the compiler is ready to produce a “v3”-style source map, we can walk
through the arrays of line and column buffer to produce it.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SourceMap</span></span>
constructor: <span class="hljs-function">-&gt;</span>
@lines = []</pre></div></div>
</li>
<li id="section-5">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-5">&#182;</a>
</div>
<p>Adds a mapping to this SourceMap. <code>sourceLocation</code> and <code>generatedLocation</code>
are both <code>[line, column]</code> arrays. If <code>options.noReplace</code> is true, then if there
is already a mapping for the specified <code>line</code> and <code>column</code>, this will have no
effect.</p>
</div>
<div class="content"><div class='highlight'><pre> add: <span class="hljs-function"><span class="hljs-params">(sourceLocation, generatedLocation, options = {})</span> -&gt;</span>
[line, column] = generatedLocation
lineMap = (@lines[line] <span class="hljs-keyword">or</span>= <span class="hljs-keyword">new</span> LineMap(line))
lineMap.add column, sourceLocation, options</pre></div></div>
</li>
<li id="section-6">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-6">&#182;</a>
</div>
<p>Look up the original position of a given <code>line</code> and <code>column</code> in the generated
code.</p>
</div>
<div class="content"><div class='highlight'><pre> sourceLocation: <span class="hljs-function"><span class="hljs-params">([line, column])</span> -&gt;</span>
line-- <span class="hljs-keyword">until</span> (lineMap = @lines[line]) <span class="hljs-keyword">or</span> (line &lt;= <span class="hljs-number">0</span>)
lineMap <span class="hljs-keyword">and</span> lineMap.sourceLocation column</pre></div></div>
</li>
<li id="section-7">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-7">&#182;</a>
</div>
<h2 id="v3-sourcemap-generation">V3 SourceMap Generation</h2>
</div>
</li>
<li id="section-8">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-8">&#182;</a>
</div>
<p>Builds up a V3 source map, returning the generated JSON as a string.
<code>options.sourceRoot</code> may be used to specify the sourceRoot written to the source
map. Also, <code>options.sourceFiles</code> and <code>options.generatedFile</code> may be passed to
set “sources” and “file”, respectively.</p>
</div>
<div class="content"><div class='highlight'><pre> generate: <span class="hljs-function"><span class="hljs-params">(options = {}, code = <span class="hljs-literal">null</span>)</span> -&gt;</span>
writingline = <span class="hljs-number">0</span>
lastColumn = <span class="hljs-number">0</span>
lastSourceLine = <span class="hljs-number">0</span>
lastSourceColumn = <span class="hljs-number">0</span>
needComma = <span class="hljs-literal">no</span>
buffer = <span class="hljs-string">""</span>
<span class="hljs-keyword">for</span> lineMap, lineNumber <span class="hljs-keyword">in</span> @lines <span class="hljs-keyword">when</span> lineMap
<span class="hljs-keyword">for</span> mapping <span class="hljs-keyword">in</span> lineMap.columns <span class="hljs-keyword">when</span> mapping
<span class="hljs-keyword">while</span> writingline &lt; mapping.line
lastColumn = <span class="hljs-number">0</span>
needComma = <span class="hljs-literal">no</span>
buffer += <span class="hljs-string">";"</span>
writingline++</pre></div></div>
</li>
<li id="section-9">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-9">&#182;</a>
</div>
<p>Write a comma if weve already written a segment on this line.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> needComma
buffer += <span class="hljs-string">","</span>
needComma = <span class="hljs-literal">no</span></pre></div></div>
</li>
<li id="section-10">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<p>Write the next segment. Segments can be 1, 4, or 5 values. If just one, then it
is a generated column which doesnt match anything in the source code.</p>
<p>The starting column in the generated source, relative to any previous recorded
column for the current line:</p>
</div>
<div class="content"><div class='highlight'><pre> buffer += @encodeVlq mapping.column - lastColumn
lastColumn = mapping.column</pre></div></div>
</li>
<li id="section-11">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-11">&#182;</a>
</div>
<p>The index into the list of sources:</p>
</div>
<div class="content"><div class='highlight'><pre> buffer += @encodeVlq <span class="hljs-number">0</span></pre></div></div>
</li>
<li id="section-12">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-12">&#182;</a>
</div>
<p>The starting line in the original source, relative to the previous source line.</p>
</div>
<div class="content"><div class='highlight'><pre> buffer += @encodeVlq mapping.sourceLine - lastSourceLine
lastSourceLine = mapping.sourceLine</pre></div></div>
</li>
<li id="section-13">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-13">&#182;</a>
</div>
<p>The starting column in the original source, relative to the previous column.</p>
</div>
<div class="content"><div class='highlight'><pre> buffer += @encodeVlq mapping.sourceColumn - lastSourceColumn
lastSourceColumn = mapping.sourceColumn
needComma = <span class="hljs-literal">yes</span></pre></div></div>
</li>
<li id="section-14">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-14">&#182;</a>
</div>
<p>Produce the canonical JSON object format for a “v3” source map.</p>
</div>
<div class="content"><div class='highlight'><pre> v3 =
version: <span class="hljs-number">3</span>
file: options.generatedFile <span class="hljs-keyword">or</span> <span class="hljs-string">''</span>
sourceRoot: options.sourceRoot <span class="hljs-keyword">or</span> <span class="hljs-string">''</span>
sources: options.sourceFiles <span class="hljs-keyword">or</span> [<span class="hljs-string">''</span>]
names: []
mappings: buffer
v3.sourcesContent = [code] <span class="hljs-keyword">if</span> options.inlineMap
v3</pre></div></div>
</li>
<li id="section-15">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-15">&#182;</a>
</div>
<h2 id="base64-vlq-encoding">Base64 VLQ Encoding</h2>
</div>
</li>
<li id="section-16">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-16">&#182;</a>
</div>
<p>Note that SourceMap VLQ encoding is “backwards”. MIDI-style VLQ encoding puts
the most-significant-bit (MSB) from the original value into the MSB of the VLQ
encoded value (see <a href="http://en.wikipedia.org/wiki/File:Uintvar_coding.svg">Wikipedia</a>).
SourceMap VLQ does things the other way around, with the least significat four
bits of the original value encoded into the first byte of the VLQ encoded value.</p>
</div>
<div class="content"><div class='highlight'><pre> VLQ_SHIFT = <span class="hljs-number">5</span>
VLQ_CONTINUATION_BIT = <span class="hljs-number">1</span> &lt;&lt; VLQ_SHIFT <span class="hljs-comment"># 0010 0000</span>
VLQ_VALUE_MASK = VLQ_CONTINUATION_BIT - <span class="hljs-number">1</span> <span class="hljs-comment"># 0001 1111</span>
encodeVlq: <span class="hljs-function"><span class="hljs-params">(value)</span> -&gt;</span>
answer = <span class="hljs-string">''</span></pre></div></div>
</li>
<li id="section-17">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-17">&#182;</a>
</div>
<p>Least significant bit represents the sign.</p>
</div>
<div class="content"><div class='highlight'><pre> signBit = <span class="hljs-keyword">if</span> value &lt; <span class="hljs-number">0</span> <span class="hljs-keyword">then</span> <span class="hljs-number">1</span> <span class="hljs-keyword">else</span> <span class="hljs-number">0</span></pre></div></div>
</li>
<li id="section-18">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-18">&#182;</a>
</div>
<p>The next bits are the actual value.</p>
</div>
<div class="content"><div class='highlight'><pre> valueToEncode = (Math.abs(value) &lt;&lt; <span class="hljs-number">1</span>) + signBit</pre></div></div>
</li>
<li id="section-19">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-19">&#182;</a>
</div>
<p>Make sure we encode at least one character, even if valueToEncode is 0.</p>
</div>
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">while</span> valueToEncode <span class="hljs-keyword">or</span> <span class="hljs-keyword">not</span> answer
nextChunk = valueToEncode &amp; VLQ_VALUE_MASK
valueToEncode = valueToEncode &gt;&gt; VLQ_SHIFT
nextChunk |= VLQ_CONTINUATION_BIT <span class="hljs-keyword">if</span> valueToEncode
answer += @encodeBase64 nextChunk
answer</pre></div></div>
</li>
<li id="section-20">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-20">&#182;</a>
</div>
<h2 id="regular-base64-encoding">Regular Base64 Encoding</h2>
</div>
</li>
<li id="section-21">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-21">&#182;</a>
</div>
</div>
<div class="content"><div class='highlight'><pre> BASE64_CHARS = <span class="hljs-string">'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'</span>
encodeBase64: <span class="hljs-function"><span class="hljs-params">(value)</span> -&gt;</span>
BASE64_CHARS[value] <span class="hljs-keyword">or</span> <span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> Error <span class="hljs-string">"Cannot Base64 encode value: <span class="hljs-subst">#{value}</span>"</span></pre></div></div>
</li>
<li id="section-22">
<div class="annotation">
<div class="pilwrap ">
<a class="pilcrow" href="#section-22">&#182;</a>
</div>
<p>Our API for source maps is just the <code>SourceMap</code> class.</p>
</div>
<div class="content"><div class='highlight'><pre><span class="hljs-built_in">module</span>.exports = SourceMap</pre></div></div>
</li>
</ul>
</div>
</body>
</html>

View file

@ -0,0 +1,457 @@
/**
* CoffeeScript Compiler v2.0.0-alpha1
* http://coffeescript.org
*
* Copyright 2011, Jeremy Ashkenas
* Released under the MIT License
*/
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(q,ra,ua){if(ua.get||ua.set)throw new TypeError("ES3 does not support getters and setters.");q!=Array.prototype&&q!=Object.prototype&&(q[ra]=ua.value)};$jscomp.getGlobal=function(q){return"undefined"!=typeof window&&window===q?q:"undefined"!=typeof global&&null!=global?global:q};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(q){return $jscomp.SYMBOL_PREFIX+(q||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var q=$jscomp.global.Symbol.iterator;q||(q=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[q]&&$jscomp.defineProperty(Array.prototype,q,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
$jscomp.arrayIterator=function(q){var ra=0;return $jscomp.iteratorPrototype(function(){return ra<q.length?{done:!1,value:q[ra++]}:{done:!0}})};$jscomp.iteratorPrototype=function(q){$jscomp.initSymbolIterator();q={next:q};q[$jscomp.global.Symbol.iterator]=function(){return this};return q};$jscomp.makeIterator=function(q){$jscomp.initSymbolIterator();var ra=q[Symbol.iterator];return ra?ra.call(q):$jscomp.arrayIterator(q)};
$jscomp.arrayFromIterator=function(q){for(var ra,ua=[];!(ra=q.next()).done;)ua.push(ra.value);return ua};$jscomp.arrayFromIterable=function(q){return q instanceof Array?q:$jscomp.arrayFromIterator($jscomp.makeIterator(q))};$jscomp.inherits=function(q,ra){function ua(){}ua.prototype=ra.prototype;q.prototype=new ua;q.prototype.constructor=q;for(var k in ra)if(Object.defineProperties){var xa=Object.getOwnPropertyDescriptor(ra,k);xa&&Object.defineProperty(q,k,xa)}else q[k]=ra[k]};
$jscomp.checkStringArgs=function(q,ra,ua){if(null==q)throw new TypeError("The 'this' value for String.prototype."+ua+" must not be null or undefined");if(ra instanceof RegExp)throw new TypeError("First argument to String.prototype."+ua+" must not be a regular expression");return q+""};
$jscomp.polyfill=function(q,ra,ua,k){if(ra){ua=$jscomp.global;q=q.split(".");for(k=0;k<q.length-1;k++){var xa=q[k];xa in ua||(ua[xa]={});ua=ua[xa]}q=q[q.length-1];k=ua[q];ra=ra(k);ra!=k&&null!=ra&&$jscomp.defineProperty(ua,q,{configurable:!0,writable:!0,value:ra})}};
$jscomp.polyfill("String.prototype.repeat",function(q){return q?q:function(q){var ua=$jscomp.checkStringArgs(this,null,"repeat");if(0>q||1342177279<q)throw new RangeError("Invalid count value");q|=0;for(var k="";q;)if(q&1&&(k+=ua),q>>>=1)ua+=ua;return k}},"es6-impl","es3");$jscomp.findInternal=function(q,ra,ua){q instanceof String&&(q=String(q));for(var k=q.length,xa=0;xa<k;xa++){var sa=q[xa];if(ra.call(ua,sa,xa,q))return{i:xa,v:sa}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(q){return q?q:function(q,ua){return $jscomp.findInternal(this,q,ua).v}},"es6-impl","es3");$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(q,ra){$jscomp.initSymbolIterator();q instanceof String&&(q+="");var ua=0,k={next:function(){if(ua<q.length){var xa=ua++;return{value:ra(xa,q[xa]),done:!1}}k.next=function(){return{done:!0,value:void 0}};return k.next()}};k[Symbol.iterator]=function(){return k};return k};
$jscomp.polyfill("Array.prototype.keys",function(q){return q?q:function(){return $jscomp.iteratorFromArray(this,function(q){return q})}},"es6-impl","es3");
(function(q){var ra=function(){function q(k){return q[k]}q["../../package.json"]={name:"coffeescript",description:"Unfancy JavaScript",keywords:["javascript","language","coffeescript","compiler"],author:"Jeremy Ashkenas",version:"2.0.0-alpha1",license:"MIT",engines:{node:"\x3e\x3d7.2.1"},directories:{lib:"./lib/coffeescript"},main:"./lib/coffeescript/coffeescript",bin:{coffee:"./bin/coffee",cake:"./bin/cake"},files:["bin","lib","register.js","repl.js"],preferGlobal:!0,scripts:{test:"node ./bin/cake test",
"test-harmony":"node --harmony ./bin/cake test"},homepage:"http://coffeescript.org",bugs:"https://github.com/jashkenas/coffeescript/issues",repository:{type:"git",url:"git://github.com/jashkenas/coffeescript.git"},devDependencies:{docco:"~0.7.0","google-closure-compiler-js":"^20170124.0.0","highlight.js":"~9.9.0",jison:"\x3e\x3d0.4.17",marked:"^0.3.6",underscore:"~1.8.3"},dependencies:{marked:"~0.3.6"}};q.marked=function(){var k={},q={exports:k};(function(){function sa(a){this.tokens=[];this.tokens.links=
{};this.options=a||D.defaults;this.rules=w.normal;this.options.gfm&&(this.rules=this.options.tables?w.tables:w.gfm)}function ha(l,c){this.options=c||D.defaults;this.links=l;this.rules=z.normal;this.renderer=this.options.renderer||new a;this.renderer.options=this.options;if(!this.links)throw Error("Tokens array requires a `links` property.");this.options.gfm?this.rules=this.options.breaks?z.breaks:z.gfm:this.options.pedantic&&(this.rules=z.pedantic)}function a(a){this.options=a||{}}function g(l){this.tokens=
[];this.token=null;this.options=l||D.defaults;this.options.renderer=this.options.renderer||new a;this.renderer=this.options.renderer;this.renderer.options=this.options}function ta(a,c){return a.replace(c?/&/g:/&(?!#?\w+;)/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#39;")}function m(a){return a.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(a,l){l=l.toLowerCase();return"colon"===l?":":"#"===l.charAt(0)?"x"===l.charAt(1)?String.fromCharCode(parseInt(l.substring(2),
16)):String.fromCharCode(+l.substring(1)):""})}function c(a,c){a=a.source;c=c||"";return function B(l,e){if(!l)return new RegExp(a,c);e=e.source||e;e=e.replace(/(^|[^\[])\^/g,"$1");a=a.replace(l,e);return B}}function e(){}function y(a){for(var l=1,c,e;l<arguments.length;l++)for(e in c=arguments[l],c)Object.prototype.hasOwnProperty.call(c,e)&&(a[e]=c[e]);return a}function D(a,c,e){if(e||"function"===typeof c){e||(e=c,c=null);c=y({},D.defaults,c||{});var l=c.highlight,E,p,A=0;try{E=sa.lex(a,c)}catch(n){return e(n)}p=
E.length;var h=function(a){if(a)return c.highlight=l,e(a);var h;try{h=g.parse(E,c)}catch(t){a=t}c.highlight=l;return a?e(a):e(null,h)};if(!l||3>l.length)return h();delete c.highlight;if(!p)return h();for(;A<E.length;A++)(function(a){return"code"!==a.type?--p||h():l(a.text,a.lang,function(l,c){if(l)return h(l);if(null==c||c===a.text)return--p||h();a.text=c;a.escaped=!0;--p||h()})})(E[A])}else try{return c&&(c=y({},D.defaults,c)),g.parse(sa.lex(a,c),c)}catch(n){n.message+="\nPlease report this to https://github.com/chjj/marked.";
if((c||D.defaults).silent)return"\x3cp\x3eAn error occured:\x3c/p\x3e\x3cpre\x3e"+ta(n.message+"",!0)+"\x3c/pre\x3e";throw n;}}var w={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:e,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:e,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,
def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:e,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/,bullet:/(?:[*+-]|\d+\.)/,item:/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/};w.item=c(w.item,"gm")(/bull/g,w.bullet)();w.list=c(w.list)(/bull/g,w.bullet)("hr","\\n+(?\x3d\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?\x3d"+w.def.source+")")();w.blockquote=c(w.blockquote)("def",w.def)();w._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";
w.html=c(w.html)("comment",/\x3c!--[\s\S]*?--\x3e/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,w._tag)();w.paragraph=c(w.paragraph)("hr",w.hr)("heading",w.heading)("lheading",w.lheading)("blockquote",w.blockquote)("tag","\x3c"+w._tag)("def",w.def)();w.normal=y({},w);w.gfm=y({},w.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});w.gfm.paragraph=c(w.paragraph)("(?!",
"(?!"+w.gfm.fences.source.replace("\\1","\\2")+"|"+w.list.source.replace("\\1","\\3")+"|")();w.tables=y({},w.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});sa.rules=w;sa.lex=function(a,c){return(new sa(c)).lex(a)};sa.prototype.lex=function(a){a=a.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(a,!0)};sa.prototype.token=function(a,c,e){a=
a.replace(/^ +$/gm,"");for(var l,g,p,E,h,n,u;a;){if(p=this.rules.newline.exec(a))a=a.substring(p[0].length),1<p[0].length&&this.tokens.push({type:"space"});if(p=this.rules.code.exec(a))a=a.substring(p[0].length),p=p[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?p:p.replace(/\n+$/,"")});else if(p=this.rules.fences.exec(a))a=a.substring(p[0].length),this.tokens.push({type:"code",lang:p[2],text:p[3]||""});else if(p=this.rules.heading.exec(a))a=a.substring(p[0].length),
this.tokens.push({type:"heading",depth:p[1].length,text:p[2]});else if(c&&(p=this.rules.nptable.exec(a))){a=a.substring(p[0].length);h={type:"table",header:p[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:p[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:p[3].replace(/\n$/,"").split("\n")};for(n=0;n<h.align.length;n++)/^ *-+: *$/.test(h.align[n])?h.align[n]="right":/^ *:-+: *$/.test(h.align[n])?h.align[n]="center":/^ *:-+ *$/.test(h.align[n])?h.align[n]="left":h.align[n]=null;for(n=0;n<h.cells.length;n++)h.cells[n]=
h.cells[n].split(/ *\| */);this.tokens.push(h)}else if(p=this.rules.lheading.exec(a))a=a.substring(p[0].length),this.tokens.push({type:"heading",depth:"\x3d"===p[2]?1:2,text:p[1]});else if(p=this.rules.hr.exec(a))a=a.substring(p[0].length),this.tokens.push({type:"hr"});else if(p=this.rules.blockquote.exec(a))a=a.substring(p[0].length),this.tokens.push({type:"blockquote_start"}),p=p[0].replace(/^ *> ?/gm,""),this.token(p,c,!0),this.tokens.push({type:"blockquote_end"});else if(p=this.rules.list.exec(a)){a=
a.substring(p[0].length);E=p[2];this.tokens.push({type:"list_start",ordered:1<E.length});p=p[0].match(this.rules.item);l=!1;u=p.length;for(n=0;n<u;n++)h=p[n],g=h.length,h=h.replace(/^ *([*+-]|\d+\.) +/,""),~h.indexOf("\n ")&&(g-=h.length,h=this.options.pedantic?h.replace(/^ {1,4}/gm,""):h.replace(new RegExp("^ {1,"+g+"}","gm"),"")),this.options.smartLists&&n!==u-1&&(g=w.bullet.exec(p[n+1])[0],E===g||1<E.length&&1<g.length||(a=p.slice(n+1).join("\n")+a,n=u-1)),g=l||/\n\n(?!\s*$)/.test(h),n!==u-1&&
(l="\n"===h.charAt(h.length-1),g||(g=l)),this.tokens.push({type:g?"loose_item_start":"list_item_start"}),this.token(h,!1,e),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(p=this.rules.html.exec(a))a=a.substring(p[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===p[1]||"script"===p[1]||"style"===p[1]),text:p[0]});else if(!e&&c&&(p=this.rules.def.exec(a)))a=a.substring(p[0].length),this.tokens.links[p[1].toLowerCase()]=
{href:p[2],title:p[3]};else if(c&&(p=this.rules.table.exec(a))){a=a.substring(p[0].length);h={type:"table",header:p[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:p[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:p[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(n=0;n<h.align.length;n++)/^ *-+: *$/.test(h.align[n])?h.align[n]="right":/^ *:-+: *$/.test(h.align[n])?h.align[n]="center":/^ *:-+ *$/.test(h.align[n])?h.align[n]="left":h.align[n]=null;for(n=0;n<h.cells.length;n++)h.cells[n]=h.cells[n].replace(/^ *\| *| *\| *$/g,
"").split(/ *\| */);this.tokens.push(h)}else if(c&&(p=this.rules.paragraph.exec(a)))a=a.substring(p[0].length),this.tokens.push({type:"paragraph",text:"\n"===p[1].charAt(p[1].length-1)?p[1].slice(0,-1):p[1]});else if(p=this.rules.text.exec(a))a=a.substring(p[0].length),this.tokens.push({type:"text",text:p[0]});else if(a)throw Error("Infinite loop on byte: "+a.charCodeAt(0));}return this.tokens};var z={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:e,tag:/^\x3c!--[\s\S]*?--\x3e|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,
link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:e,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/,_inside:/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,_href:/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/};z.link=c(z.link)("inside",z._inside)("href",z._href)();z.reflink=
c(z.reflink)("inside",z._inside)();z.normal=y({},z);z.pedantic=y({},z.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});z.gfm=y({},z.normal,{escape:c(z.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:c(z.text)("]|","~]|")("|","|https?://|")()});z.breaks=y({},z.gfm,{br:c(z.br)("{2,}","*")(),text:c(z.gfm.text)("{2,}","*")()});ha.rules=z;ha.output=function(a,
c,e){return(new ha(c,e)).output(a)};ha.prototype.output=function(a){for(var c="",e,l;a;)if(l=this.rules.escape.exec(a))a=a.substring(l[0].length),c+=l[1];else if(l=this.rules.autolink.exec(a))a=a.substring(l[0].length),"@"===l[2]?(e=":"===l[1].charAt(6)?this.mangle(l[1].substring(7)):this.mangle(l[1]),l=this.mangle("mailto:")+e):l=e=ta(l[1]),c+=this.renderer.link(l,null,e);else if(!this.inLink&&(l=this.rules.url.exec(a)))a=a.substring(l[0].length),l=e=ta(l[1]),c+=this.renderer.link(l,null,e);else if(l=
this.rules.tag.exec(a))!this.inLink&&/^<a /i.test(l[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(l[0])&&(this.inLink=!1),a=a.substring(l[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(l[0]):ta(l[0]):l[0];else if(l=this.rules.link.exec(a))a=a.substring(l[0].length),this.inLink=!0,c+=this.outputLink(l,{href:l[2],title:l[3]}),this.inLink=!1;else if((l=this.rules.reflink.exec(a))||(l=this.rules.nolink.exec(a)))a=a.substring(l[0].length),e=(l[2]||l[1]).replace(/\s+/g,
" "),(e=this.links[e.toLowerCase()])&&e.href?(this.inLink=!0,c+=this.outputLink(l,e),this.inLink=!1):(c+=l[0].charAt(0),a=l[0].substring(1)+a);else if(l=this.rules.strong.exec(a))a=a.substring(l[0].length),c+=this.renderer.strong(this.output(l[2]||l[1]));else if(l=this.rules.em.exec(a))a=a.substring(l[0].length),c+=this.renderer.em(this.output(l[2]||l[1]));else if(l=this.rules.code.exec(a))a=a.substring(l[0].length),c+=this.renderer.codespan(ta(l[2],!0));else if(l=this.rules.br.exec(a))a=a.substring(l[0].length),
c+=this.renderer.br();else if(l=this.rules.del.exec(a))a=a.substring(l[0].length),c+=this.renderer.del(this.output(l[1]));else if(l=this.rules.text.exec(a))a=a.substring(l[0].length),c+=this.renderer.text(ta(this.smartypants(l[0])));else if(a)throw Error("Infinite loop on byte: "+a.charCodeAt(0));return c};ha.prototype.outputLink=function(a,c){var l=ta(c.href);c=c.title?ta(c.title):null;return"!"!==a[0].charAt(0)?this.renderer.link(l,c,this.output(a[1])):this.renderer.image(l,c,ta(a[1]))};ha.prototype.smartypants=
function(a){return this.options.smartypants?a.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):a};ha.prototype.mangle=function(a){if(!this.options.mangle)return a;for(var c="",l=a.length,e=0,g;e<l;e++)g=a.charCodeAt(e),.5<Math.random()&&(g="x"+g.toString(16)),c+="\x26#"+g+";";return c};a.prototype.code=function(a,c,e){if(this.options.highlight){var l=
this.options.highlight(a,c);null!=l&&l!==a&&(e=!0,a=l)}return c?'\x3cpre\x3e\x3ccode class\x3d"'+this.options.langPrefix+ta(c,!0)+'"\x3e'+(e?a:ta(a,!0))+"\n\x3c/code\x3e\x3c/pre\x3e\n":"\x3cpre\x3e\x3ccode\x3e"+(e?a:ta(a,!0))+"\n\x3c/code\x3e\x3c/pre\x3e"};a.prototype.blockquote=function(a){return"\x3cblockquote\x3e\n"+a+"\x3c/blockquote\x3e\n"};a.prototype.html=function(a){return a};a.prototype.heading=function(a,c,e){return"\x3ch"+c+' id\x3d"'+this.options.headerPrefix+e.toLowerCase().replace(/[^\w]+/g,
"-")+'"\x3e'+a+"\x3c/h"+c+"\x3e\n"};a.prototype.hr=function(){return this.options.xhtml?"\x3chr/\x3e\n":"\x3chr\x3e\n"};a.prototype.list=function(a,c){c=c?"ol":"ul";return"\x3c"+c+"\x3e\n"+a+"\x3c/"+c+"\x3e\n"};a.prototype.listitem=function(a){return"\x3cli\x3e"+a+"\x3c/li\x3e\n"};a.prototype.paragraph=function(a){return"\x3cp\x3e"+a+"\x3c/p\x3e\n"};a.prototype.table=function(a,c){return"\x3ctable\x3e\n\x3cthead\x3e\n"+a+"\x3c/thead\x3e\n\x3ctbody\x3e\n"+c+"\x3c/tbody\x3e\n\x3c/table\x3e\n"};a.prototype.tablerow=
function(a){return"\x3ctr\x3e\n"+a+"\x3c/tr\x3e\n"};a.prototype.tablecell=function(a,c){var e=c.header?"th":"td";return(c.align?"\x3c"+e+' style\x3d"text-align:'+c.align+'"\x3e':"\x3c"+e+"\x3e")+a+"\x3c/"+e+"\x3e\n"};a.prototype.strong=function(a){return"\x3cstrong\x3e"+a+"\x3c/strong\x3e"};a.prototype.em=function(a){return"\x3cem\x3e"+a+"\x3c/em\x3e"};a.prototype.codespan=function(a){return"\x3ccode\x3e"+a+"\x3c/code\x3e"};a.prototype.br=function(){return this.options.xhtml?"\x3cbr/\x3e":"\x3cbr\x3e"};
a.prototype.del=function(a){return"\x3cdel\x3e"+a+"\x3c/del\x3e"};a.prototype.link=function(a,c,e){if(this.options.sanitize){try{var l=decodeURIComponent(m(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(J){return""}if(0===l.indexOf("javascript:")||0===l.indexOf("vbscript:"))return""}a='\x3ca href\x3d"'+a+'"';c&&(a+=' title\x3d"'+c+'"');return a+("\x3e"+e+"\x3c/a\x3e")};a.prototype.image=function(a,c,e){a='\x3cimg src\x3d"'+a+'" alt\x3d"'+e+'"';c&&(a+=' title\x3d"'+c+'"');return a+=this.options.xhtml?
"/\x3e":"\x3e"};a.prototype.text=function(a){return a};g.parse=function(a,c,e){return(new g(c,e)).parse(a)};g.prototype.parse=function(a){this.inline=new ha(a.links,this.options,this.renderer);this.tokens=a.reverse();for(a="";this.next();)a+=this.tok();return a};g.prototype.next=function(){return this.token=this.tokens.pop()};g.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};g.prototype.parseText=function(){for(var a=this.token.text;"text"===this.peek().type;)a+="\n"+this.next().text;
return this.inline.output(a)};g.prototype.tok=function(){switch(this.token.type){case "space":return"";case "hr":return this.renderer.hr();case "heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case "code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case "table":var a="",c="",e,g,y,p;y="";for(e=0;e<this.token.header.length;e++)y+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,
align:this.token.align[e]});a+=this.renderer.tablerow(y);for(e=0;e<this.token.cells.length;e++){g=this.token.cells[e];y="";for(p=0;p<g.length;p++)y+=this.renderer.tablecell(this.inline.output(g[p]),{header:!1,align:this.token.align[p]});c+=this.renderer.tablerow(y)}return this.renderer.table(a,c);case "blockquote_start":for(c="";"blockquote_end"!==this.next().type;)c+=this.tok();return this.renderer.blockquote(c);case "list_start":c="";for(a=this.token.ordered;"list_end"!==this.next().type;)c+=this.tok();
return this.renderer.list(c,a);case "list_item_start":for(c="";"list_item_end"!==this.next().type;)c+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(c);case "loose_item_start":for(c="";"list_item_end"!==this.next().type;)c+=this.tok();return this.renderer.listitem(c);case "html":return c=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text),this.renderer.html(c);case "paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));
case "text":return this.renderer.paragraph(this.parseText())}};e.exec=e;D.options=D.setOptions=function(a){y(D.defaults,a);return D};D.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1};D.Parser=g;D.parser=g.parse;D.Renderer=a;D.Lexer=sa;D.lexer=sa.lex;D.InlineLexer=ha;D.inlineLexer=ha.output;D.parse=D;"undefined"!==typeof q&&"object"===typeof k?q.exports=
D:"function"===typeof define&&define.amd?define(function(){return D}):this.marked=D}).call(function(){return this||("undefined"!==typeof window?window:global)}());return q.exports}();q["./helpers"]=function(){var k={};(function(){var xa,sa,ha,a,g,ta,m;a=q("marked");k.starts=function(a,e,g){return e===a.substr(g,e.length)};k.ends=function(a,e,g){var c;c=e.length;return e===a.substr(a.length-c-(g||0),c)};k.repeat=ta=function(a,e){var c;for(c="";0<e;)e&1&&(c+=a),e>>>=1,a+=a;return c};k.compact=function(a){var c,
g,m,k;k=[];c=0;for(m=a.length;c<m;c++)(g=a[c])&&k.push(g);return k};k.count=function(a,e){var c,g;c=g=0;if(!e.length)return 1/0;for(;g=1+a.indexOf(e,g);)c++;return c};k.merge=function(a,e){return sa(sa({},a),e)};sa=k.extend=function(a,e){var c,g;for(c in e)g=e[c],a[c]=g;return a};k.flatten=ha=function(a){var c,g,m,k;g=[];m=0;for(k=a.length;m<k;m++)c=a[m],"[object Array]"===Object.prototype.toString.call(c)?g=g.concat(ha(c)):g.push(c);return g};k.del=function(a,e){var c;c=a[e];delete a[e];return c};
k.some=null!=(g=Array.prototype.some)?g:function(a){var c,g,m;g=0;for(m=this.length;g<m;g++)if(c=this[g],a(c))return!0;return!1};k.invertLiterate=function(c){var e,g,m,k,z;for(e=function(){return""+Math.random()*Date.now()};void 0===z||-1!==c.indexOf(z);)z=e();c=c.replace("\t",z);e="";k=a.lexer(c,{});c=0;for(m=k.length;c<m;c++)g=k[c],"code"===g.type&&(e+=g.text+"\n");e.replace(z,"\t");return e};xa=function(a,e){return e?{first_line:a.first_line,first_column:a.first_column,last_line:e.last_line,last_column:e.last_column}:
a};k.addLocationDataFn=function(a,e){return function(c){"object"===typeof c&&c.updateLocationDataIfMissing&&c.updateLocationDataIfMissing(xa(a,e));return c}};k.locationDataToString=function(a){var c;"2"in a&&"first_line"in a[2]?c=a[2]:"first_line"in a&&(c=a);return c?c.first_line+1+":"+(c.first_column+1)+"-"+(c.last_line+1+":"+(c.last_column+1)):"No location data"};k.baseFileName=function(a,e,g){e=void 0===e?!1:e;a=a.split((void 0===g?0:g)?/\\|\//:/\//);a=a[a.length-1];if(!(e&&0<=a.indexOf(".")))return a;
a=a.split(".");a.pop();"coffee"===a[a.length-1]&&1<a.length&&a.pop();return a.join(".")};k.isCoffee=function(a){return/\.((lit)?coffee|coffee\.md)$/.test(a)};k.isLiterate=function(a){return/\.(litcoffee|coffee\.md)$/.test(a)};k.throwSyntaxError=function(a,e){a=new SyntaxError(a);a.location=e;a.toString=m;a.stack=a.toString();throw a;};k.updateSyntaxError=function(a,e,g){a.toString===m&&(a.code||(a.code=e),a.filename||(a.filename=g),a.stack=a.toString());return a};m=function(){var a,e,g,m,k,z,l,E,
A,B;if(!this.code||!this.location)return Error.prototype.toString.call(this);a=this.location;z=a.first_line;k=a.first_column;g=a.last_line;l=a.last_column;null==g&&(g=z);null==l&&(l=k);m=this.filename||"[stdin]";a=this.code.split("\n")[z];g=z===g?l+1:a.length;l=a.slice(0,k).replace(/[^\s]/g," ")+ta("^",g-k);"undefined"!==typeof process&&null!==process&&(e=(null!=(E=process.stdout)?E.isTTY:void 0)&&!(null!=(A=process.env)&&A.NODE_DISABLE_COLORS));if(null!=(B=this.colorful)?B:e)e=function(a){return"\u001b[1;31m"+
a+"\u001b[0m"},a=a.slice(0,k)+e(a.slice(k,g))+a.slice(g),l=e(l);return m+":"+(z+1)+":"+(k+1)+": error: "+this.message+"\n"+a+"\n"+l};k.nameWhitespaceCharacter=function(a){switch(a){case " ":return"space";case "\n":return"newline";case "\r":return"carriage return";case "\t":return"tab";default:return a}}}).call(this);return k}();q["./rewriter"]=function(){var k={};(function(){var q,sa,ha,a,g,ta,m,c,e,y,D,w,z,l,E,A,B,J,p=[].indexOf||function(a){for(var c=0,e=this.length;c<e;c++)if(c in this&&this[c]===
a)return c;return-1};l=function(a,c,e){a=[a,c];a.generated=!0;e&&(a.origin=e);return a};k.Rewriter=function(){var k=function(){};k.prototype.rewrite=function(a){this.tokens=a;this.removeLeadingNewlines();this.closeOpenCalls();this.closeOpenIndexes();this.normalizeLines();this.tagPostfixConditionals();this.addImplicitBracesAndParens();this.addLocationDataToGeneratedTokens();this.fixOutdentLocationData();return this.tokens};k.prototype.scanTokens=function(a){var c,h,e;e=this.tokens;for(c=0;h=e[c];)c+=
a.call(this,h,c,e);return!0};k.prototype.detectEnd=function(c,e,u){var h,n,l,r,k;k=this.tokens;for(h=0;r=k[c];){if(0===h&&e.call(this,r,c))return u.call(this,r,c);if(!r||0>h)return u.call(this,r,c-1);(n=r[0],0<=p.call(g,n))?h+=1:(l=r[0],0<=p.call(a,l))&&--h;c+=1}return c-1};k.prototype.removeLeadingNewlines=function(){var a,c,e,g,l;g=this.tokens;a=c=0;for(e=g.length;c<e&&(l=g[a][0],"TERMINATOR"===l);a=++c);if(a)return this.tokens.splice(0,a)};k.prototype.closeOpenCalls=function(){var a,c;c=function(a,
c){var h;return")"===(h=a[0])||"CALL_END"===h||"OUTDENT"===a[0]&&")"===this.tag(c-1)};a=function(a,c){return this.tokens["OUTDENT"===a[0]?c-1:c][0]="CALL_END"};return this.scanTokens(function(h,e){"CALL_START"===h[0]&&this.detectEnd(e+1,c,a);return 1})};k.prototype.closeOpenIndexes=function(){var a,c;c=function(a,c){var h;return"]"===(h=a[0])||"INDEX_END"===h};a=function(a,c){return a[0]="INDEX_END"};return this.scanTokens(function(h,e){"INDEX_START"===h[0]&&this.detectEnd(e+1,c,a);return 1})};k.prototype.indexOfTag=
function(a,c){for(var h=[],e=1;e<arguments.length;++e)h[e-1]=arguments[e];var g,n,l,k;g=n=e=0;for(l=h.length;0<=l?n<l:n>l;g=0<=l?++n:--n){for(;"HERECOMMENT"===this.tag(a+g+e);)e+=2;if(null!=h[g]&&("string"===typeof h[g]&&(h[g]=[h[g]]),k=this.tag(a+g+e),0>p.call(h[g],k)))return-1}return a+g+e-1};k.prototype.looksObjectish=function(c){var e;if(-1<this.indexOfTag(c,"@",null,":")||-1<this.indexOfTag(c,null,":"))return!0;c=this.indexOfTag(c,g);return-1<c&&(e=null,this.detectEnd(c+1,function(c){var e;return e=
c[0],0<=p.call(a,e)},function(a,c){return e=c}),":"===this.tag(e+1))?!0:!1};k.prototype.findTagsBackwards=function(c,e){var h,n,l,k,r,m,y;for(h=[];0<=c&&(h.length||(k=this.tag(c),0>p.call(e,k))&&((r=this.tag(c),0>p.call(g,r))||this.tokens[c].generated)&&(m=this.tag(c),0>p.call(D,m)));)(n=this.tag(c),0<=p.call(a,n))&&h.push(this.tag(c)),(l=this.tag(c),0<=p.call(g,l))&&h.length&&h.pop(),--c;return y=this.tag(c),0<=p.call(e,y)};k.prototype.addImplicitBracesAndParens=function(){var h,n;h=[];n=null;return this.scanTokens(function(u,
t,k){var x,r,H,y,w,A,z,E,q,B,G,C,ha,F,J,S,V,K;K=u[0];B=(G=0<t?k[t-1]:[])[0];q=(t<k.length-1?k[t+1]:[])[0];J=function(){return h[h.length-1]};S=t;H=function(a){return t-S+a};y=function(){var a,c;return null!=(a=J())?null!=(c=a[2])?c.ours:void 0:void 0};w=function(){var a;return y()&&"("===(null!=(a=J())?a[0]:void 0)};z=function(){var a;return y()&&"{"===(null!=(a=J())?a[0]:void 0)};A=function(){var a;return y&&"CONTROL"===(null!=(a=J())?a[0]:void 0)};V=function(a){var c;c=null!=a?a:t;h.push(["(",c,
{ours:!0}]);k.splice(c,0,l("CALL_START","("));if(null==a)return t+=1};x=function(){h.pop();k.splice(t,0,l("CALL_END",")",["","end of input",u[2]]));return t+=1};E=function(a,c){var e;e=null!=a?a:t;h.push(["{",e,{sameLine:!0,startsLine:void 0===c?!0:c,ours:!0}]);c=new String("{");c.generated=!0;k.splice(e,0,l("{",c,u));if(null==a)return t+=1};r=function(a){a=null!=a?a:t;h.pop();k.splice(a,0,l("}","}",u));return t+=1};if(w()&&("IF"===K||"TRY"===K||"FINALLY"===K||"CATCH"===K||"CLASS"===K||"SWITCH"===
K))return h.push(["CONTROL",t,{ours:!0}]),H(1);if("INDENT"===K&&y()){if("\x3d\x3e"!==B&&"-\x3e"!==B&&"["!==B&&"("!==B&&","!==B&&"{"!==B&&"TRY"!==B&&"ELSE"!==B&&"\x3d"!==B)for(;w();)x();A()&&h.pop();h.push([K,t]);return H(1)}if(0<=p.call(g,K))return h.push([K,t]),H(1);if(0<=p.call(a,K)){for(;y();)w()?x():z()?r():h.pop();n=h.pop()}if((0<=p.call(c,K)&&u.spaced||"?"===K&&0<t&&!k[t-1].spaced)&&(0<=p.call(ta,q)||0<=p.call(e,q)&&(null==(C=k[t+1])||!C.spaced)&&(null==(ha=k[t+1])||!ha.newLine)))return"?"===
K&&(K=u[0]="FUNC_EXIST"),V(t+1),H(2);if(0<=p.call(c,K)&&-1<this.indexOfTag(t+1,"INDENT")&&this.looksObjectish(t+2)&&!this.findTagsBackwards(t,"CLASS EXTENDS IF CATCH SWITCH LEADING_WHEN FOR WHILE UNTIL".split(" ")))return V(t+1),h.push(["INDENT",t+2]),H(3);if(":"===K){for(r=function(){var c;switch(!1){case c=this.tag(t-1),0>p.call(a,c):return n[1];case "@"!==this.tag(t-2):return t-2;default:return t-1}}.call(this);"HERECOMMENT"===this.tag(r-2);)r-=2;this.insideForDeclaration="FOR"===q;A=0===r||(F=
this.tag(r-1),0<=p.call(D,F))||k[r-1].newLine;if(J()&&(z=J(),F=z[0],G=z[1],("{"===F||"INDENT"===F&&"{"===this.tag(G-1))&&(A||","===this.tag(r-1)||"{"===this.tag(r-1))))return H(1);E(r,!!A);return H(2)}z()&&0<=p.call(D,K)&&(J()[2].sameLine=!1);E="OUTDENT"===B||G.newLine;if(0<=p.call(m,K)||0<=p.call(sa,K)&&E)for(;y();)if(E=J(),F=E[0],G=E[1],F=E[2],E=F.sameLine,A=F.startsLine,w()&&","!==B)x();else if(z()&&!this.insideForDeclaration&&E&&"TERMINATOR"!==K&&":"!==B)r();else if(!z()||"TERMINATOR"!==K||","===
B||A&&this.looksObjectish(t+1))break;else{if("HERECOMMENT"===q)return H(1);r()}if(!(","!==K||this.looksObjectish(t+1)||!z()||this.insideForDeclaration||"TERMINATOR"===q&&this.looksObjectish(t+2)))for(q="OUTDENT"===q?1:0;z();)r(t+q);return H(1)})};k.prototype.addLocationDataToGeneratedTokens=function(){return this.scanTokens(function(a,c,e){var h,g,n;if(a[2]||!a.generated&&!a.explicit)return 1;"{"===a[0]&&(h=null!=(n=e[c+1])?n[2]:void 0)?(g=h.first_line,h=h.first_column):(h=null!=(g=e[c-1])?g[2]:void 0)?
(g=h.last_line,h=h.last_column):g=h=0;a[2]={first_line:g,first_column:h,last_line:g,last_column:h};return 1})};k.prototype.fixOutdentLocationData=function(){return this.scanTokens(function(a,c,e){if(!("OUTDENT"===a[0]||a.generated&&"CALL_END"===a[0]||a.generated&&"}"===a[0]))return 1;c=e[c-1][2];a[2]={first_line:c.last_line,first_column:c.last_column,last_line:c.last_line,last_column:c.last_column};return 1})};k.prototype.normalizeLines=function(){var a,c,e,g,l;l=e=g=null;c=function(a,c){var e,g,
h,n;return";"!==a[1]&&(e=a[0],0<=p.call(w,e))&&!("TERMINATOR"===a[0]&&(g=this.tag(c+1),0<=p.call(ha,g)))&&!("ELSE"===a[0]&&"THEN"!==l)&&!!("CATCH"!==(h=a[0])&&"FINALLY"!==h||"-\x3e"!==l&&"\x3d\x3e"!==l)||(n=a[0],0<=p.call(sa,n))&&this.tokens[c-1].newLine};a=function(a,c){return this.tokens.splice(","===this.tag(c-1)?c-1:c,0,g)};return this.scanTokens(function(h,n,k){var t,m,u;h=h[0];if("TERMINATOR"===h){if("ELSE"===this.tag(n+1)&&"OUTDENT"!==this.tag(n-1))return k.splice.apply(k,[].concat([n,1],$jscomp.arrayFromIterable(this.indentation()))),
1;if(t=this.tag(n+1),0<=p.call(ha,t))return k.splice(n,1),0}if("CATCH"===h)for(t=m=1;2>=m;t=++m)if("OUTDENT"===(u=this.tag(n+t))||"TERMINATOR"===u||"FINALLY"===u)return k.splice.apply(k,[].concat([n+t,0],$jscomp.arrayFromIterable(this.indentation()))),2+t;0<=p.call(z,h)&&"INDENT"!==this.tag(n+1)&&("ELSE"!==h||"IF"!==this.tag(n+1))&&(l=h,u=this.indentation(k[n]),e=u[0],g=u[1],"THEN"===l&&(e.fromThen=!0),k.splice(n+1,0,e),this.detectEnd(n+2,c,a),"THEN"===h&&k.splice(n,1));return 1})};k.prototype.tagPostfixConditionals=
function(){var a,c,e;e=null;c=function(a,c){a=a[0];c=this.tokens[c-1][0];return"TERMINATOR"===a||"INDENT"===a&&0>p.call(z,c)};a=function(a,c){if("INDENT"!==a[0]||a.generated&&!a.fromThen)return e[0]="POST_"+e[0]};return this.scanTokens(function(h,g){if("IF"!==h[0])return 1;e=h;this.detectEnd(g+1,c,a);return 1})};k.prototype.indentation=function(a){var c,e;c=["INDENT",2];e=["OUTDENT",2];a?(c.generated=e.generated=!0,c.origin=e.origin=a):c.explicit=e.explicit=!0;return[c,e]};k.prototype.tag=function(a){var c;
return null!=(c=this.tokens[a])?c[0]:void 0};k.prototype.generate=l;return k}();q=[["(",")"],["[","]"],["{","}"],["INDENT","OUTDENT"],["CALL_START","CALL_END"],["PARAM_START","PARAM_END"],["INDEX_START","INDEX_END"],["STRING_START","STRING_END"],["REGEX_START","REGEX_END"]];k.INVERSES=y={};g=[];a=[];E=0;for(B=q.length;E<B;E++)J=q[E],A=J[0],J=J[1],g.push(y[J]=A),a.push(y[A]=J);ha=["CATCH","THEN","ELSE","FINALLY"].concat(a);c="IDENTIFIER PROPERTY SUPER ) CALL_END ] INDEX_END @ THIS".split(" ");ta="IDENTIFIER PROPERTY NUMBER INFINITY NAN STRING STRING_START REGEX REGEX_START JS NEW PARAM_START CLASS IF TRY SWITCH THIS UNDEFINED NULL BOOL UNARY YIELD AWAIT UNARY_MATH SUPER THROW @ -\x3e \x3d\x3e [ ( { -- ++".split(" ");
e=["+","-"];m="POST_IF FOR WHILE UNTIL WHEN BY LOOP TERMINATOR".split(" ");z="ELSE -\x3e \x3d\x3e TRY FINALLY THEN".split(" ");w="TERMINATOR CATCH FINALLY ELSE OUTDENT LEADING_WHEN".split(" ");D=["TERMINATOR","INDENT","OUTDENT"];sa=[".","?.","::","?::"]}).call(this);return k}();q["./lexer"]=function(){var k={};(function(){var xa,sa,ha,a,g,ta,m,c,e,y,D,w,z,l,E,A,B,J,p,ra,h,n,u,t,H,x,r,W,T,Q,R,M,U,O,P,G,C,Z,F,ca,S,V,K,aa,ba,Y,X,ua,Na,za,la,ma,I,ja,da,oa,ia,ka,pa,ea=[].indexOf||function(a){for(var c=
0,e=this.length;c<e;c++)if(c in this&&this[c]===a)return c;return-1};ia=q("./rewriter");Z=ia.Rewriter;h=ia.INVERSES;ia=q("./helpers");ma=ia.count;ka=ia.repeat;I=ia.invertLiterate;pa=ia.throwSyntaxError;var N=function(){};N.prototype.tokenize=function(a,c){c=void 0===c?{}:c;var e,g,h,qa;this.literate=c.literate;this.outdebt=this.indebt=this.baseIndent=this.indent=0;this.indents=[];this.indentLiteral="";this.ends=[];this.tokens=[];this.exportSpecifierList=this.seenExport=this.seenImport=this.seenFor=
!1;this.chunkLine=c.line||0;this.chunkColumn=c.column||0;a=this.clean(a);for(h=0;this.chunk=a.slice(h);)if(e=this.identifierToken()||this.commentToken()||this.whitespaceToken()||this.lineToken()||this.stringToken()||this.numberToken()||this.regexToken()||this.jsToken()||this.literalToken(),qa=this.getLineAndColumnFromChunk(e),this.chunkLine=qa[0],this.chunkColumn=qa[1],h+=e,c.untilBalanced&&0===this.ends.length)return{tokens:this.tokens,index:h};this.closeIndentation();(g=this.ends.pop())&&this.error("missing "+
g.tag,g.origin[2]);return!1===c.rewrite?this.tokens:(new Z).rewrite(this.tokens)};N.prototype.clean=function(a){a.charCodeAt(0)===xa&&(a=a.slice(1));a=a.replace(/\r/g,"").replace(X,"");la.test(a)&&(a="\n"+a,this.chunkLine--);this.literate&&(a=I(a));return a};N.prototype.identifierToken=function(){var c,e,h,l,n,k,p,m,t,r,x;if(!(e=B.exec(this.chunk)))return 0;n=e[0];h=e[1];e=e[2];l=h.length;k=void 0;if("own"===h&&"FOR"===this.tag())return this.token("OWN",h),h.length;if("from"===h&&"YIELD"===this.tag())return this.token("FROM",
h),h.length;if("as"===h&&this.seenImport){if("*"===this.value())this.tokens[this.tokens.length-1][0]="IMPORT_ALL";else if(p=this.value(),0<=ea.call(ta,p))this.tokens[this.tokens.length-1][0]="IDENTIFIER";if("DEFAULT"===(m=this.tag())||"IMPORT_ALL"===m||"IDENTIFIER"===m)return this.token("AS",h),h.length}if("as"===h&&this.seenExport&&"IDENTIFIER"===this.tag())return this.token("AS",h),h.length;if("default"===h&&this.seenExport)return this.token("DEFAULT",h),h.length;p=this.tokens;p=p[p.length-1];x=
e||null!=p&&("."===(t=p[0])||"?."===t||"::"===t||"?::"===t||!p.spaced&&"@"===p[0])?"PROPERTY":"IDENTIFIER";"IDENTIFIER"!==x||!(0<=ea.call(u,h)||0<=ea.call(ta,h))||this.exportSpecifierList&&0<=ea.call(ta,h)?"IDENTIFIER"===x&&this.seenFor&&"from"===h&&ja(p)&&(x="FORFROM",this.seenFor=!1):(x=h.toUpperCase(),"WHEN"===x&&(r=this.tag(),0<=ea.call(H,r))?x="LEADING_WHEN":"FOR"===x?this.seenFor=!0:"UNLESS"===x?x="IF":"IMPORT"===x?this.seenImport=!0:"EXPORT"===x?this.seenExport=!0:0<=ea.call(ua,x)?x="UNARY":
0<=ea.call(G,x)&&("INSTANCEOF"!==x&&this.seenFor?(x="FOR"+x,this.seenFor=!1):(x="RELATION","!"===this.value()&&(k=this.tokens.pop(),h="!"+h))));"IDENTIFIER"===x&&0<=ea.call(C,h)&&this.error("reserved word '"+h+"'",{length:h.length});"PROPERTY"!==x&&(0<=ea.call(a,h)&&(c=h,h=g[h]),x=function(){switch(h){case "!":return"UNARY";case "\x3d\x3d":case "!\x3d":return"COMPARE";case "true":case "false":return"BOOL";case "break":case "continue":case "debugger":return"STATEMENT";case "\x26\x26":case "||":return h;
default:return x}}());t=this.token(x,h,0,l);c&&(t.origin=[x,c,t[2]]);k&&(c=[k[2].first_line,k[2].first_column],t[2].first_line=c[0],t[2].first_column=c[1]);e&&(c=n.lastIndexOf(":"),this.token(":",":",c,e.length));return n.length};N.prototype.numberToken=function(){var a,c,e;if(!(c=Q.exec(this.chunk)))return 0;e=c[0];c=e.length;switch(!1){case !/^0[BOX]/.test(e):this.error("radix prefix in '"+e+"' must be lowercase",{offset:1});break;case !/^(?!0x).*E/.test(e):this.error("exponential notation in '"+
e+"' must be indicated with a lowercase 'e'",{offset:e.indexOf("E")});break;case !/^0\d*[89]/.test(e):this.error("decimal literal '"+e+"' must not be prefixed with '0'",{length:c});break;case !/^0\d+/.test(e):this.error("octal literal '"+e+"' must be prefixed with '0o'",{length:c})}a=function(){switch(e.charAt(1)){case "b":return 2;case "o":return 8;case "x":return 16;default:return null}}();a=null!=a?parseInt(e.slice(2),a):parseFloat(e);this.token(Infinity===a?"INFINITY":"NUMBER",e,0,c);return c};
N.prototype.stringToken=function(){var a=this,c,e,h,g,l,n,k,p,m,u,x,r;m=(ba.exec(this.chunk)||[])[0];if(!m)return 0;this.tokens.length&&"from"===this.value()&&(this.seenImport||this.seenExport)&&(this.tokens[this.tokens.length-1][0]="FROM");h=function(){switch(m){case "'":return aa;case '"':return V;case "'''":return z;case '"""':return D}}();g=3===m.length;h=this.matchWithInterpolations(h,m);r=h.tokens;l=h.index;c=r.length-1;h=m.charAt(0);if(g){k=null;for(g=function(){var a,c,e;e=[];n=a=0;for(c=
r.length;a<c;n=++a)x=r[n],"NEOSTRING"===x[0]&&e.push(x[1]);return e}().join("#{}");e=w.exec(g);)if(e=e[1],null===k||0<(u=e.length)&&u<k.length)k=e;k&&(p=RegExp("\\n"+k,"g"));this.mergeInterpolationTokens(r,{delimiter:h},function(e,h){e=a.formatString(e);p&&(e=e.replace(p,"\n"));0===h&&(e=e.replace(t,""));h===c&&(e=e.replace(Y,""));return e})}else this.mergeInterpolationTokens(r,{delimiter:h},function(e,h){e=a.formatString(e);return e=e.replace(ca,function(a,g){return 0===h&&0===g||h===c&&g+a.length===
e.length?"":" "})});return l};N.prototype.commentToken=function(){var a,c,e;if(!(e=this.chunk.match(m)))return 0;a=e[0];if(c=e[1])(e=y.exec(a))&&this.error("block comments cannot contain "+e[0],{offset:e.index,length:e[0].length}),0<=c.indexOf("\n")&&(c=c.replace(RegExp("\\n"+ka(" ",this.indent),"g"),"\n")),this.token("HERECOMMENT",c,0,a.length);return a.length};N.prototype.jsToken=function(){var a,c;if("`"!==this.chunk.charAt(0)||!(a=A.exec(this.chunk)||n.exec(this.chunk)))return 0;c=a[1].replace(/\\+(`|$)/g,
function(a){return a.slice(-Math.ceil(a.length/2))});this.token("JS",c,0,a[0].length);return a[0].length};N.prototype.regexToken=function(){var a,c,e,h,g,n,k,p;switch(!1){case !(c=P.exec(this.chunk)):this.error("regular expressions cannot begin with "+c[2],{offset:c.index+c[1].length});break;case !(c=this.matchWithInterpolations(l,"///")):p=c.tokens;g=c.index;break;case !(c=U.exec(this.chunk)):k=c[0];a=c[1];c=c[2];this.validateEscapes(a,{isRegex:!0,offsetInChunk:1});g=k.length;n=this.tokens;if(n=
n[n.length-1])if(n.spaced&&(e=n[0],0<=ea.call(sa,e))){if(!c||M.test(k))return 0}else if(h=n[0],0<=ea.call(T,h))return 0;c||this.error("missing / (unclosed regex)");break;default:return 0}h=O.exec(this.chunk.slice(g))[0];e=g+h.length;c=this.makeToken("REGEX",null,0,e);switch(!1){case !!za.test(h):this.error("invalid regular expression flags "+h,{offset:g,length:h.length});break;case !(k||1===p.length):null==a&&(a=this.formatHeregex(p[0][1]));this.token("REGEX",""+this.makeDelimitedLiteral(a,{delimiter:"/"})+
h,0,e,c);break;default:this.token("REGEX_START","(",0,0,c),this.token("IDENTIFIER","RegExp",0,0),this.token("CALL_START","(",0,0),this.mergeInterpolationTokens(p,{delimiter:'"',double:!0},this.formatHeregex),h&&(this.token(",",",",g-1,0),this.token("STRING",'"'+h+'"',g-1,h.length)),this.token(")",")",e-1,0),this.token("REGEX_END",")",e-1,0)}return e};N.prototype.lineToken=function(){var a,c,e,h,g;if(!(c=W.exec(this.chunk)))return 0;c=c[0];this.seenFor=!1;g=c.length-1-c.lastIndexOf("\n");h=this.unfinished();
e=0<g?c.slice(-g):"";if(!/^(.?)\1*$/.exec(e))return this.error("mixed indentation",{offset:c.length}),c.length;a=Math.min(e.length,this.indentLiteral.length);if(e.slice(0,a)!==this.indentLiteral.slice(0,a))return this.error("indentation mismatch",{offset:c.length}),c.length;if(g-this.indebt===this.indent)return h?this.suppressNewlines():this.newlineToken(0),c.length;if(g>this.indent){if(h)return this.indebt=g-this.indent,this.suppressNewlines(),c.length;if(!this.tokens.length)return this.baseIndent=
this.indent=g,this.indentLiteral=e,c.length;a=g-this.indent+this.outdebt;this.token("INDENT",a,c.length-g,g);this.indents.push(a);this.ends.push({tag:"OUTDENT"});this.outdebt=this.indebt=0;this.indent=g;this.indentLiteral=e}else g<this.baseIndent?this.error("missing indentation",{offset:c.length}):(this.indebt=0,this.outdentToken(this.indent-g,h,c.length));return c.length};N.prototype.outdentToken=function(a,c,e){var h,g,n,l;for(h=this.indent-a;0<a;)(n=this.indents[this.indents.length-1])?n===this.outdebt?
(a-=this.outdebt,this.outdebt=0):n<this.outdebt?(this.outdebt-=n,a-=n):(g=this.indents.pop()+this.outdebt,e&&(l=this.chunk[e],0<=ea.call(J,l))&&(h-=g-a,a=g),this.outdebt=0,this.pair("OUTDENT"),this.token("OUTDENT",a,0,e),a-=g):a=0;g&&(this.outdebt-=a);for(;";"===this.value();)this.tokens.pop();"TERMINATOR"===this.tag()||c||this.token("TERMINATOR","\n",e,0);this.indent=h;this.indentLiteral=this.indentLiteral.slice(0,h);return this};N.prototype.whitespaceToken=function(){var a,c;if(!(a=la.exec(this.chunk))&&
"\n"!==this.chunk.charAt(0))return 0;c=this.tokens;(c=c[c.length-1])&&(c[a?"spaced":"newLine"]=!0);return a?a[0].length:0};N.prototype.newlineToken=function(a){for(;";"===this.value();)this.tokens.pop();"TERMINATOR"!==this.tag()&&this.token("TERMINATOR","\n",a,0);return this};N.prototype.suppressNewlines=function(){"\\"===this.value()&&this.tokens.pop();return this};N.prototype.literalToken=function(){var a,g,n,l,k,m,t,u;(a=R.exec(this.chunk))?(a=a[0],ha.test(a)&&this.tagParameters()):a=this.chunk.charAt(0);
u=a;l=this.tokens;if((l=l[l.length-1])&&0<=ea.call([].concat(["\x3d"],$jscomp.arrayFromIterable(e)),a)&&(t=!1,"\x3d"!==a||"||"!==(n=l[1])&&"\x26\x26"!==n||l.spaced||(l[0]="COMPOUND_ASSIGN",l[1]+="\x3d",l=this.tokens[this.tokens.length-2],t=!0),l&&"PROPERTY"!==l[0]&&(n=null!=(g=l.origin)?g:l,(g=da(l[1],n[1]))&&this.error(g,n[2])),t))return a.length;"{"===a&&"EXPORT"===(null!=l?l[0]:void 0)?this.exportSpecifierList=!0:this.exportSpecifierList&&"}"===a&&(this.exportSpecifierList=!1);if(";"===a)this.seenFor=
this.seenImport=this.seenExport=!1,u="TERMINATOR";else if("*"===a&&"EXPORT"===l[0])u="EXPORT_ALL";else if(0<=ea.call(r,a))u="MATH";else if(0<=ea.call(c,a))u="COMPARE";else if(0<=ea.call(e,a))u="COMPOUND_ASSIGN";else if(0<=ea.call(ua,a))u="UNARY";else if(0<=ea.call(Na,a))u="UNARY_MATH";else if(0<=ea.call(F,a))u="SHIFT";else if("?"===a&&null!=l&&l.spaced)u="BIN?";else if(l&&!l.spaced)if("("===a&&(k=l[0],0<=ea.call(sa,k)))"?"===l[0]&&(l[0]="FUNC_EXIST"),u="CALL_START";else if("["===a&&(m=l[0],0<=ea.call(p,
m)))switch(u="INDEX_START",l[0]){case "?":l[0]="INDEX_SOAK"}k=this.makeToken(u,a);switch(a){case "(":case "{":case "[":this.ends.push({tag:h[a],origin:k});break;case ")":case "}":case "]":this.pair(a)}this.tokens.push(k);return a.length};N.prototype.tagParameters=function(){var a,c,e,h;if(")"!==this.tag())return this;c=[];h=this.tokens;a=h.length;for(h[--a][0]="PARAM_END";e=h[--a];)switch(e[0]){case ")":c.push(e);break;case "(":case "CALL_START":if(c.length)c.pop();else return"("===e[0]&&(e[0]="PARAM_START"),
this}return this};N.prototype.closeIndentation=function(){return this.outdentToken(this.indent)};N.prototype.matchWithInterpolations=function(a,c){var e,h,g,l,n,k,p,m;m=[];n=c.length;if(this.chunk.slice(0,n)!==c)return null;for(p=this.chunk.slice(n);;){l=a.exec(p)[0];this.validateEscapes(l,{isRegex:"/"===c.charAt(0),offsetInChunk:n});m.push(this.makeToken("NEOSTRING",l,n));p=p.slice(l.length);n+=l.length;if("#{"!==p.slice(0,2))break;e=this.getLineAndColumnFromChunk(n+1);l=e[0];e=e[1];e=(new N).tokenize(p.slice(1),
{line:l,column:e,untilBalanced:!0});l=e.tokens;h=e.index;h+=1;k=l[0];e=l[l.length-1];k[0]=k[1]="(";e[0]=e[1]=")";e.origin=["","end of interpolation",e[2]];"TERMINATOR"===(null!=(g=l[1])?g[0]:void 0)&&l.splice(1,1);m.push(["TOKENS",l]);p=p.slice(h);n+=h}p.slice(0,c.length)!==c&&this.error("missing "+c,{length:c.length});a=m[0];g=m[m.length-1];a[2].first_column-=c.length;"\n"===g[1].substr(-1)?(g[2].last_line+=1,g[2].last_column=c.length-1):g[2].last_column+=c.length;0===g[1].length&&--g[2].last_column;
return{tokens:m,index:n+c.length}};N.prototype.mergeInterpolationTokens=function(a,c,e){var h,g,l,n,k,p,m,t,u,x,r;1<a.length&&(t=this.token("STRING_START","(",0,0));l=this.tokens.length;n=k=0;for(p=a.length;k<p;n=++k){u=a[n];h=u[0];r=u[1];switch(h){case "TOKENS":if(2===r.length)continue;m=r[0];x=r;break;case "NEOSTRING":h=e(u[1],n);if(0===h.length)if(0===n)g=this.tokens.length;else continue;2===n&&null!=g&&this.tokens.splice(g,2);u[0]="STRING";u[1]=this.makeDelimitedLiteral(h,c);m=u;x=[u]}this.tokens.length>
l&&(n=this.token("+","+"),n[2]={first_line:m[2].first_line,first_column:m[2].first_column,last_line:m[2].first_line,last_column:m[2].first_column});this.tokens.push.apply(this.tokens,[].concat($jscomp.arrayFromIterable(x)))}if(t)return a=a[a.length-1],t.origin=["STRING",null,{first_line:t[2].first_line,first_column:t[2].first_column,last_line:a[2].last_line,last_column:a[2].last_column}],t=this.token("STRING_END",")"),t[2]={first_line:a[2].last_line,first_column:a[2].last_column,last_line:a[2].last_line,
last_column:a[2].last_column}};N.prototype.pair=function(a){var c;c=this.ends;c=c[c.length-1];return a!==(c=null!=c?c.tag:void 0)?("OUTDENT"!==c&&this.error("unmatched "+a),c=this.indents,c=c[c.length-1],this.outdentToken(c,!0),this.pair(a)):this.ends.pop()};N.prototype.getLineAndColumnFromChunk=function(a){var c,e;if(0===a)return[this.chunkLine,this.chunkColumn];e=a>=this.chunk.length?this.chunk:this.chunk.slice(0,+(a-1)+1||9E9);a=ma(e,"\n");c=this.chunkColumn;0<a?(c=e.split("\n"),c=c[c.length-1],
c=c.length):c+=e.length;return[this.chunkLine+a,c]};N.prototype.makeToken=function(a,c,e,h){e=void 0===e?0:e;h=void 0===h?c.length:h;var g,l;g={};l=this.getLineAndColumnFromChunk(e);g.first_line=l[0];g.first_column=l[1];e=this.getLineAndColumnFromChunk(e+(0<h?h-1:0));g.last_line=e[0];g.last_column=e[1];return[a,c,g]};N.prototype.token=function(a,c,e,h,g){a=this.makeToken(a,c,e,h);g&&(a.origin=g);this.tokens.push(a);return a};N.prototype.tag=function(){var a;a=this.tokens;a=a[a.length-1];return null!=
a?a[0]:void 0};N.prototype.value=function(){var a;a=this.tokens;a=a[a.length-1];return null!=a?a[1]:void 0};N.prototype.unfinished=function(){var a;return x.test(this.chunk)||"\\"===(a=this.tag())||"."===a||"?."===a||"?::"===a||"UNARY"===a||"MATH"===a||"UNARY_MATH"===a||"+"===a||"-"===a||"**"===a||"SHIFT"===a||"RELATION"===a||"COMPARE"===a||"\x26"===a||"^"===a||"|"===a||"\x26\x26"===a||"||"===a||"BIN?"===a||"THROW"===a||"EXTENDS"===a};N.prototype.formatString=function(a){return a.replace(K,"$1")};
N.prototype.formatHeregex=function(a){return a.replace(E,"$1$2")};N.prototype.validateEscapes=function(a,c){c=void 0===c?{}:c;var e,h,g,l,n;if(h=ra.exec(a))if(h[0],a=h[1],g=h[2],e=h[3],n=h[4],!c.isRegex||!g||"0"===g.charAt(0))return e="\\"+(g||e||n),this.error((g?"octal escape sequences are not allowed":"invalid escape sequence")+" "+e,{offset:(null!=(l=c.offsetInChunk)?l:0)+h.index+a.length,length:e.length})};N.prototype.makeDelimitedLiteral=function(a,c){c=void 0===c?{}:c;""===a&&"/"===c.delimiter&&
(a="(?:)");a=a.replace(RegExp("(\\\\\\\\)|(\\\\0(?\x3d[1-7]))|\\\\?("+c.delimiter+")|\\\\?(?:(\\n)|(\\r)|(\\u2028)|(\\u2029))|(\\\\.)","g"),function(a,e,h,g,l,n,k,p,m){switch(!1){case !e:return c.double?e+e:e;case !h:return"\\x00";case !g:return"\\"+g;case !l:return"\\n";case !n:return"\\r";case !k:return"\\u2028";case !p:return"\\u2029";case !m:return c.double?"\\"+m:m}});return""+c.delimiter+a+c.delimiter};N.prototype.error=function(a,c){c=void 0===c?{}:c;var e,h,g,l,n;c="first_line"in c?c:(l=this.getLineAndColumnFromChunk(null!=
(g=c.offset)?g:0),h=l[0],e=l[1],l,{first_line:h,first_column:e,last_column:e+(null!=(n=c.length)?n:1)-1});return pa(a,c)};k.Lexer=N;da=function(a,c){c=void 0===c?a:c;switch(!1){case 0>ea.call([].concat($jscomp.arrayFromIterable(u),$jscomp.arrayFromIterable(ta)),a):return"keyword '"+c+"' can't be assigned";case 0>ea.call(S,a):return"'"+c+"' can't be assigned";case 0>ea.call(C,a):return"reserved word '"+c+"' can't be assigned";default:return!1}};k.isUnassignable=da;ja=function(a){var c;return"IDENTIFIER"===
a[0]?("from"===a[1]&&(a[1][0]="IDENTIFIER",!0),!0):"FOR"===a[0]?!1:"{"===(c=a[1])||"["===c||","===c||":"===c?!1:!0};u="true false null this new delete typeof in instanceof return throw break continue debugger yield await if else switch for while do try catch finally class extends super import export default".split(" ");ta="undefined Infinity NaN then unless until loop of by when".split(" ");g={and:"\x26\x26",or:"||",is:"\x3d\x3d",isnt:"!\x3d",not:"!",yes:"true",no:"false",on:"true",off:"false"};a=
function(){var a;a=[];for(oa in g)a.push(oa);return a}();ta=ta.concat(a);C="case function var void with const let enum native implements interface package private protected public static".split(" ");S=["arguments","eval"];k.JS_FORBIDDEN=u.concat(C).concat(S);xa=65279;B=/^(?!\d)((?:(?!\s)[$\w\x7f-\uffff])+)([^\n\S]*:(?!:))?/;Q=/^0b[01]+|^0o[0-7]+|^0x[\da-f]+|^\d*\.?\d+(?:e[+-]?\d+)?/i;R=/^(?:[-=]>|[-+*\/%<>&|^!?=]=|>>>=?|([-+:])\1|([&|<>*\/%])\2=?|\?(\.|::)|\.{2,3})/;la=/^[^\n\S]+/;m=/^###([^#][\s\S]*?)(?:###[^\n\S]*|###$)|^(?:\s*#(?!##[^#]).*)+/;
ha=/^[-=]>/;W=/^(?:\n[^\n\S]*)+/;n=/^`(?!``)((?:[^`\\]|\\[\s\S])*)`/;A=/^```((?:[^`\\]|\\[\s\S]|`(?!``))*)```/;ba=/^(?:'''|"""|'|")/;aa=/^(?:[^\\']|\\[\s\S])*/;V=/^(?:[^\\"#]|\\[\s\S]|\#(?!\{))*/;z=/^(?:[^\\']|\\[\s\S]|'(?!''))*/;D=/^(?:[^\\"#]|\\[\s\S]|"(?!"")|\#(?!\{))*/;K=/((?:\\\\)+)|\\[^\S\n]*\n\s*/g;ca=/\s*\n\s*/g;w=/\n+([^\n\S]*)(?=\S)/g;U=/^\/(?!\/)((?:[^[\/\n\\]|\\[^\n]|\[(?:\\[^\n]|[^\]\n\\])*\])*)(\/)?/;O=/^\w*/;za=/^(?!.*(.).*\1)[imgy]*$/;l=/^(?:[^\\\/#]|\\[\s\S]|\/(?!\/\/)|\#(?!\{))*/;
E=/((?:\\\\)+)|\\(\s)|\s+(?:#.*)?/g;P=/^(\/|\/{3}\s*)(\*)/;M=/^\/=?\s/;y=/\*\//;x=/^\s*(?:,|\??\.(?![.\d])|::)/;ra=/((?:^|[^\\])(?:\\\\)*)\\(?:(0[0-7]|[1-7])|(x(?![\da-fA-F]{2}).{0,2})|(u(?![\da-fA-F]{4}).{0,4}))/;t=/^[^\n\S]*\n/;Y=/\n[^\n\S]*$/;X=/\s+$/;e="-\x3d +\x3d /\x3d *\x3d %\x3d ||\x3d \x26\x26\x3d ?\x3d \x3c\x3c\x3d \x3e\x3e\x3d \x3e\x3e\x3e\x3d \x26\x3d ^\x3d |\x3d **\x3d //\x3d %%\x3d".split(" ");ua=["NEW","TYPEOF","DELETE","DO"];Na=["!","~"];F=["\x3c\x3c","\x3e\x3e","\x3e\x3e\x3e"];c=
"\x3d\x3d !\x3d \x3c \x3e \x3c\x3d \x3e\x3d".split(" ");r=["*","/","%","//","%%"];G=["IN","OF","INSTANCEOF"];sa="IDENTIFIER PROPERTY ) ] ? @ THIS SUPER".split(" ");p=sa.concat("NUMBER INFINITY NAN STRING STRING_END REGEX REGEX_END BOOL NULL UNDEFINED } ::".split(" "));T=p.concat(["++","--"]);H=["INDENT","OUTDENT","TERMINATOR"];J=[")","}","]"]}).call(this);return k}();q["./parser"]=function(){var k={},xa={exports:k},sa=function(){function k(){this.yy={}}var a=function(a,v,L,d){L=L||{};for(d=a.length;d--;L[a[d]]=
v);return L},g=[1,22],q=[1,52],m=[1,86],c=[1,82],e=[1,87],y=[1,88],D=[1,84],w=[1,85],z=[1,60],l=[1,62],E=[1,63],A=[1,64],B=[1,65],J=[1,66],p=[1,53],sa=[1,40],h=[1,54],n=[1,34],u=[1,71],t=[1,72],H=[1,33],x=[1,81],r=[1,50],W=[1,55],T=[1,56],Q=[1,69],R=[1,70],M=[1,68],U=[1,45],O=[1,51],P=[1,67],G=[1,76],C=[1,77],Z=[1,78],F=[1,79],ca=[1,49],S=[1,75],V=[1,36],K=[1,37],aa=[1,38],ba=[1,39],Y=[1,41],X=[1,42],xa=[1,89],ua=[1,6,34,44,134],za=[1,104],la=[1,92],ma=[1,91],I=[1,90],ja=[1,93],da=[1,94],oa=[1,95],
ia=[1,96],ka=[1,97],pa=[1,98],ea=[1,99],N=[1,100],qa=[1,101],va=[1,102],na=[1,103],ra=[1,107],wa=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],Qa=[2,170],Xa=[1,113],Ha=[1,118],Ya=[1,114],cb=[1,115],Ra=[1,116],Ia=[1,119],Fa=[1,112],Ea=[1,6,34,44,134,136,138,142,159],Ba=[1,6,33,34,42,43,44,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,
177],Sa=[2,98],Ta=[2,77],db=[1,129],Ja=[1,134],Ma=[1,135],Ca=[1,137],ga=[1,141],fa=[1,139],Ua=[1,6,33,34,42,43,44,57,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],ya=[2,95],gb=[1,6,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],eb=[2,29],fb=[1,167],Oa=[2,65],hb=[1,175],Za=[1,187],Ga=[1,189],mb=[1,184],La=[1,191],Ka=[1,6,33,34,42,43,44,57,
68,73,76,87,88,89,90,91,92,95,99,101,116,117,118,123,125,134,136,137,138,142,143,159,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],nb=[2,117],ob=[1,6,33,34,42,43,44,60,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],Va=[1,6,33,34,42,43,44,48,60,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],ib=[1,
239],pb=[42,43,117],qb=[1,249],b=[1,248],v=[2,75],L=[1,259],d=[6,33,34,68,73],f=[6,33,34,57,68,73,76],Wa=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,162,163,167,168,169,170,171,172,173,174,175,176,177],Da=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,162,163,167,169,170,171,172,173,174,175,176,177],rb=[42,43,87,88,90,91,92,95,116,117],vb=[1,279],Pa=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159],$a=[2,64],wb=[1,291],jb=[1,293],
Hb=[1,298],sb=[1,300],Sb=[2,191],Ib=[1,6,33,34,42,43,44,57,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,149,150,151,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],xb=[1,309],ab=[6,33,34,73,118,123],Tb=[1,6,33,34,42,43,44,57,60,68,73,76,87,88,89,90,91,92,95,99,101,116,117,118,123,125,134,136,137,138,142,143,149,150,151,159,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],Ub=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,143,159],kb=[1,
6,33,34,44,68,73,76,89,99,118,123,125,134,137,143,159],yb=[149,150,151],zb=[73,149,150,151],Ab=[6,33,99],Vb=[1,321],Aa=[6,33,34,73,99],Wb=[6,33,34,60,73,99],Jb=[6,33,34,57,60,73,99],Xb=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,162,163,169,170,171,172,173,174,175,176,177],lb=[1,6,33,34,44,48,68,73,76,87,88,89,90,91,92,95,99,116,117,118,123,125,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],Yb=[14,30,36,40,42,43,46,47,50,51,52,53,54,55,
63,64,65,66,70,71,86,89,97,100,102,110,120,121,122,128,132,133,136,138,140,142,152,158,160,161,162,163,164,165],Zb=[2,180],bb=[6,33,34],tb=[2,76],$b=[1,336],ac=[1,337],bc=[1,6,33,34,44,68,73,76,89,99,118,123,125,130,131,134,136,137,138,142,143,154,156,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],Bb=[34,154,156],cc=[1,6,34,44,68,73,76,89,99,118,123,125,134,137,143,159],Cb=[1,363],Kb=[1,369],Lb=[1,6,34,44,134,159],ub=[2,90],Db=[1,379],Eb=[1,380],dc=[1,6,33,34,44,68,73,76,89,99,118,123,
125,134,136,137,138,142,143,154,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],Mb=[1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,138,142,143,159],ec=[1,392],fc=[1,393],Nb=[6,33,34,99],gc=[6,33,34,73],Ob=[1,6,33,34,44,68,73,76,89,99,118,123,125,130,134,136,137,138,142,143,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],hc=[33,73],Fb=[1,420],Gb=[1,421],Pb=[1,427],Qb=[1,428],ic={trace:function(){},yy:{},symbols_:{error:2,Root:3,Body:4,Line:5,TERMINATOR:6,Expression:7,Statement:8,
FuncDirective:9,YieldReturn:10,AwaitReturn:11,Return:12,Comment:13,STATEMENT:14,Import:15,Export:16,Value:17,Invocation:18,Code:19,Operation:20,Assign:21,If:22,Try:23,While:24,For:25,Switch:26,Class:27,Throw:28,Yield:29,YIELD:30,FROM:31,Block:32,INDENT:33,OUTDENT:34,Identifier:35,IDENTIFIER:36,Property:37,PROPERTY:38,AlphaNumeric:39,NUMBER:40,String:41,STRING:42,STRING_START:43,STRING_END:44,Regex:45,REGEX:46,REGEX_START:47,REGEX_END:48,Literal:49,JS:50,UNDEFINED:51,NULL:52,BOOL:53,INFINITY:54,NAN:55,
Assignable:56,"\x3d":57,AssignObj:58,ObjAssignable:59,":":60,SimpleObjAssignable:61,ThisProperty:62,RETURN:63,AWAIT:64,HERECOMMENT:65,PARAM_START:66,ParamList:67,PARAM_END:68,FuncGlyph:69,"-\x3e":70,"\x3d\x3e":71,OptComma:72,",":73,Param:74,ParamVar:75,"...":76,Array:77,Object:78,Splat:79,SimpleAssignable:80,Accessor:81,Parenthetical:82,Range:83,This:84,Super:85,SUPER:86,".":87,INDEX_START:88,INDEX_END:89,"?.":90,"::":91,"?::":92,Index:93,IndexValue:94,INDEX_SOAK:95,Slice:96,"{":97,AssignList:98,
"}":99,CLASS:100,EXTENDS:101,IMPORT:102,ImportDefaultSpecifier:103,ImportNamespaceSpecifier:104,ImportSpecifierList:105,ImportSpecifier:106,AS:107,DEFAULT:108,IMPORT_ALL:109,EXPORT:110,ExportSpecifierList:111,EXPORT_ALL:112,ExportSpecifier:113,OptFuncExist:114,Arguments:115,FUNC_EXIST:116,CALL_START:117,CALL_END:118,ArgList:119,THIS:120,"@":121,"[":122,"]":123,RangeDots:124,"..":125,Arg:126,SimpleArgs:127,TRY:128,Catch:129,FINALLY:130,CATCH:131,THROW:132,"(":133,")":134,WhileSource:135,WHILE:136,
WHEN:137,UNTIL:138,Loop:139,LOOP:140,ForBody:141,FOR:142,BY:143,ForStart:144,ForSource:145,ForVariables:146,OWN:147,ForValue:148,FORIN:149,FOROF:150,FORFROM:151,SWITCH:152,Whens:153,ELSE:154,When:155,LEADING_WHEN:156,IfBlock:157,IF:158,POST_IF:159,UNARY:160,UNARY_MATH:161,"-":162,"+":163,"--":164,"++":165,"?":166,MATH:167,"**":168,SHIFT:169,COMPARE:170,"\x26":171,"^":172,"|":173,"\x26\x26":174,"||":175,"BIN?":176,RELATION:177,COMPOUND_ASSIGN:178,$accept:0,$end:1},terminals_:{2:"error",6:"TERMINATOR",
14:"STATEMENT",30:"YIELD",31:"FROM",33:"INDENT",34:"OUTDENT",36:"IDENTIFIER",38:"PROPERTY",40:"NUMBER",42:"STRING",43:"STRING_START",44:"STRING_END",46:"REGEX",47:"REGEX_START",48:"REGEX_END",50:"JS",51:"UNDEFINED",52:"NULL",53:"BOOL",54:"INFINITY",55:"NAN",57:"\x3d",60:":",63:"RETURN",64:"AWAIT",65:"HERECOMMENT",66:"PARAM_START",68:"PARAM_END",70:"-\x3e",71:"\x3d\x3e",73:",",76:"...",86:"SUPER",87:".",88:"INDEX_START",89:"INDEX_END",90:"?.",91:"::",92:"?::",95:"INDEX_SOAK",97:"{",99:"}",100:"CLASS",
101:"EXTENDS",102:"IMPORT",107:"AS",108:"DEFAULT",109:"IMPORT_ALL",110:"EXPORT",112:"EXPORT_ALL",116:"FUNC_EXIST",117:"CALL_START",118:"CALL_END",120:"THIS",121:"@",122:"[",123:"]",125:"..",128:"TRY",130:"FINALLY",131:"CATCH",132:"THROW",133:"(",134:")",136:"WHILE",137:"WHEN",138:"UNTIL",140:"LOOP",142:"FOR",143:"BY",147:"OWN",149:"FORIN",150:"FOROF",151:"FORFROM",152:"SWITCH",154:"ELSE",156:"LEADING_WHEN",158:"IF",159:"POST_IF",160:"UNARY",161:"UNARY_MATH",162:"-",163:"+",164:"--",165:"++",166:"?",
167:"MATH",168:"**",169:"SHIFT",170:"COMPARE",171:"\x26",172:"^",173:"|",174:"\x26\x26",175:"||",176:"BIN?",177:"RELATION",178:"COMPOUND_ASSIGN"},productions_:[0,[3,0],[3,1],[4,1],[4,3],[4,2],[5,1],[5,1],[5,1],[9,1],[9,1],[8,1],[8,1],[8,1],[8,1],[8,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[29,1],[29,2],[29,3],[32,2],[32,3],[35,1],[37,1],[39,1],[39,1],[41,1],[41,3],[45,1],[45,3],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[49,1],[21,3],[21,4],[21,5],[58,
1],[58,3],[58,5],[58,3],[58,5],[58,1],[61,1],[61,1],[61,1],[59,1],[59,1],[12,2],[12,1],[10,3],[10,2],[11,3],[11,2],[13,1],[19,5],[19,2],[69,1],[69,1],[72,0],[72,1],[67,0],[67,1],[67,3],[67,4],[67,6],[74,1],[74,2],[74,3],[74,1],[75,1],[75,1],[75,1],[75,1],[79,2],[80,1],[80,2],[80,2],[80,1],[56,1],[56,1],[56,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[85,3],[85,4],[81,2],[81,2],[81,2],[81,2],[81,1],[81,1],[93,3],[93,2],[94,1],[94,1],[78,4],[98,0],[98,1],[98,3],[98,4],[98,6],[27,1],[27,2],[27,3],[27,
4],[27,2],[27,3],[27,4],[27,5],[15,2],[15,4],[15,4],[15,5],[15,7],[15,6],[15,9],[105,1],[105,3],[105,4],[105,4],[105,6],[106,1],[106,3],[106,1],[106,3],[103,1],[104,3],[16,3],[16,5],[16,2],[16,4],[16,5],[16,6],[16,3],[16,4],[16,7],[111,1],[111,3],[111,4],[111,4],[111,6],[113,1],[113,3],[113,3],[113,1],[18,3],[18,3],[18,3],[18,3],[114,0],[114,1],[115,2],[115,4],[84,1],[84,1],[62,2],[77,2],[77,4],[124,1],[124,1],[83,5],[96,3],[96,2],[96,2],[96,1],[119,1],[119,3],[119,4],[119,4],[119,6],[126,1],[126,
1],[126,1],[127,1],[127,3],[23,2],[23,3],[23,4],[23,5],[129,3],[129,3],[129,2],[28,2],[82,3],[82,5],[135,2],[135,4],[135,2],[135,4],[24,2],[24,2],[24,2],[24,1],[139,2],[139,2],[25,2],[25,2],[25,2],[141,2],[141,4],[141,2],[144,2],[144,3],[148,1],[148,1],[148,1],[148,1],[146,1],[146,3],[145,2],[145,2],[145,4],[145,4],[145,4],[145,6],[145,6],[145,2],[145,4],[26,5],[26,7],[26,4],[26,6],[153,1],[153,2],[155,3],[155,4],[157,3],[157,5],[22,1],[22,3],[22,3],[22,3],[20,2],[20,2],[20,2],[20,2],[20,2],[20,2],
[20,2],[20,2],[20,2],[20,2],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,3],[20,5],[20,4],[20,3]],performAction:function(a,v,L,d,c,f,b){a=f.length-1;switch(c){case 1:return this.$=d.addLocationDataFn(b[a],b[a])(new d.Block);case 2:return this.$=f[a];case 3:this.$=d.addLocationDataFn(b[a],b[a])(d.Block.wrap([f[a]]));break;case 4:this.$=d.addLocationDataFn(b[a-2],b[a])(f[a-2].push(f[a]));break;case 5:this.$=f[a-1];break;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:case 25:case 26:case 27:case 28:case 37:case 42:case 44:case 58:case 59:case 60:case 61:case 62:case 63:case 75:case 76:case 86:case 87:case 88:case 89:case 94:case 95:case 98:case 102:case 103:case 111:case 191:case 192:case 194:case 224:case 225:case 243:case 249:this.$=
f[a];break;case 13:this.$=d.addLocationDataFn(b[a],b[a])(new d.StatementLiteral(f[a]));break;case 29:this.$=d.addLocationDataFn(b[a],b[a])(new d.Op(f[a],new d.Value(new d.Literal(""))));break;case 30:case 253:case 254:case 257:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op(f[a-1],f[a]));break;case 31:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Op(f[a-2].concat(f[a-1]),f[a]));break;case 32:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Block);break;case 33:case 112:this.$=d.addLocationDataFn(b[a-
2],b[a])(f[a-1]);break;case 34:this.$=d.addLocationDataFn(b[a],b[a])(new d.IdentifierLiteral(f[a]));break;case 35:this.$=d.addLocationDataFn(b[a],b[a])(new d.PropertyName(f[a]));break;case 36:this.$=d.addLocationDataFn(b[a],b[a])(new d.NumberLiteral(f[a]));break;case 38:this.$=d.addLocationDataFn(b[a],b[a])(new d.StringLiteral(f[a]));break;case 39:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.StringWithInterpolations(f[a-1]));break;case 40:this.$=d.addLocationDataFn(b[a],b[a])(new d.RegexLiteral(f[a]));
break;case 41:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.RegexWithInterpolations(f[a-1].args));break;case 43:this.$=d.addLocationDataFn(b[a],b[a])(new d.PassthroughLiteral(f[a]));break;case 45:this.$=d.addLocationDataFn(b[a],b[a])(new d.UndefinedLiteral);break;case 46:this.$=d.addLocationDataFn(b[a],b[a])(new d.NullLiteral);break;case 47:this.$=d.addLocationDataFn(b[a],b[a])(new d.BooleanLiteral(f[a]));break;case 48:this.$=d.addLocationDataFn(b[a],b[a])(new d.InfinityLiteral(f[a]));break;case 49:this.$=
d.addLocationDataFn(b[a],b[a])(new d.NaNLiteral);break;case 50:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Assign(f[a-2],f[a]));break;case 51:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Assign(f[a-3],f[a]));break;case 52:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Assign(f[a-4],f[a-1]));break;case 53:case 91:case 96:case 97:case 99:case 100:case 101:case 226:case 227:this.$=d.addLocationDataFn(b[a],b[a])(new d.Value(f[a]));break;case 54:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Assign(d.addLocationDataFn(b[a-
2])(new d.Value(f[a-2])),f[a],"object",{operatorToken:d.addLocationDataFn(b[a-1])(new d.Literal(f[a-1]))}));break;case 55:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Assign(d.addLocationDataFn(b[a-4])(new d.Value(f[a-4])),f[a-1],"object",{operatorToken:d.addLocationDataFn(b[a-3])(new d.Literal(f[a-3]))}));break;case 56:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Assign(d.addLocationDataFn(b[a-2])(new d.Value(f[a-2])),f[a],null,{operatorToken:d.addLocationDataFn(b[a-1])(new d.Literal(f[a-1]))}));
break;case 57:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Assign(d.addLocationDataFn(b[a-4])(new d.Value(f[a-4])),f[a-1],null,{operatorToken:d.addLocationDataFn(b[a-3])(new d.Literal(f[a-3]))}));break;case 64:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Return(f[a]));break;case 65:this.$=d.addLocationDataFn(b[a],b[a])(new d.Return);break;case 66:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.YieldReturn(f[a]));break;case 67:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.YieldReturn);break;case 68:this.$=
d.addLocationDataFn(b[a-2],b[a])(new d.AwaitReturn(f[a]));break;case 69:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.AwaitReturn);break;case 70:this.$=d.addLocationDataFn(b[a],b[a])(new d.Comment(f[a]));break;case 71:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Code(f[a-3],f[a],f[a-1]));break;case 72:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Code([],f[a],f[a-1]));break;case 73:this.$=d.addLocationDataFn(b[a],b[a])("func");break;case 74:this.$=d.addLocationDataFn(b[a],b[a])("boundfunc");break;
case 77:case 117:this.$=d.addLocationDataFn(b[a],b[a])([]);break;case 78:case 118:case 137:case 157:case 186:case 228:this.$=d.addLocationDataFn(b[a],b[a])([f[a]]);break;case 79:case 119:case 138:case 158:case 187:this.$=d.addLocationDataFn(b[a-2],b[a])(f[a-2].concat(f[a]));break;case 80:case 120:case 139:case 159:case 188:this.$=d.addLocationDataFn(b[a-3],b[a])(f[a-3].concat(f[a]));break;case 81:case 121:case 141:case 161:case 190:this.$=d.addLocationDataFn(b[a-5],b[a])(f[a-5].concat(f[a-2]));break;
case 82:this.$=d.addLocationDataFn(b[a],b[a])(new d.Param(f[a]));break;case 83:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Param(f[a-1],null,!0));break;case 84:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Param(f[a-2],f[a]));break;case 85:case 193:this.$=d.addLocationDataFn(b[a],b[a])(new d.Expansion);break;case 90:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Splat(f[a-1]));break;case 92:this.$=d.addLocationDataFn(b[a-1],b[a])(f[a-1].add(f[a]));break;case 93:this.$=d.addLocationDataFn(b[a-1],
b[a])(new d.Value(f[a-1],[].concat(f[a])));break;case 104:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Super(d.addLocationDataFn(b[a])(new d.Access(f[a]))));break;case 105:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Super(d.addLocationDataFn(b[a-1])(new d.Index(f[a-1]))));break;case 106:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Access(f[a]));break;case 107:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Access(f[a],"soak"));break;case 108:this.$=d.addLocationDataFn(b[a-1],b[a])([d.addLocationDataFn(b[a-
1])(new d.Access(new d.PropertyName("prototype"))),d.addLocationDataFn(b[a])(new d.Access(f[a]))]);break;case 109:this.$=d.addLocationDataFn(b[a-1],b[a])([d.addLocationDataFn(b[a-1])(new d.Access(new d.PropertyName("prototype"),"soak")),d.addLocationDataFn(b[a])(new d.Access(f[a]))]);break;case 110:this.$=d.addLocationDataFn(b[a],b[a])(new d.Access(new d.PropertyName("prototype")));break;case 113:this.$=d.addLocationDataFn(b[a-1],b[a])(d.extend(f[a],{soak:!0}));break;case 114:this.$=d.addLocationDataFn(b[a],
b[a])(new d.Index(f[a]));break;case 115:this.$=d.addLocationDataFn(b[a],b[a])(new d.Slice(f[a]));break;case 116:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Obj(f[a-2],f[a-3].generated));break;case 122:this.$=d.addLocationDataFn(b[a],b[a])(new d.Class);break;case 123:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Class(null,null,f[a]));break;case 124:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Class(null,f[a]));break;case 125:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Class(null,f[a-1],f[a]));
break;case 126:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Class(f[a]));break;case 127:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Class(f[a-1],null,f[a]));break;case 128:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Class(f[a-2],f[a]));break;case 129:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Class(f[a-3],f[a-1],f[a]));break;case 130:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.ImportDeclaration(null,f[a]));break;case 131:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.ImportDeclaration(new d.ImportClause(f[a-
2],null),f[a]));break;case 132:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.ImportDeclaration(new d.ImportClause(null,f[a-2]),f[a]));break;case 133:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.ImportDeclaration(new d.ImportClause(null,new d.ImportSpecifierList([])),f[a]));break;case 134:this.$=d.addLocationDataFn(b[a-6],b[a])(new d.ImportDeclaration(new d.ImportClause(null,new d.ImportSpecifierList(f[a-4])),f[a]));break;case 135:this.$=d.addLocationDataFn(b[a-5],b[a])(new d.ImportDeclaration(new d.ImportClause(f[a-
4],f[a-2]),f[a]));break;case 136:this.$=d.addLocationDataFn(b[a-8],b[a])(new d.ImportDeclaration(new d.ImportClause(f[a-7],new d.ImportSpecifierList(f[a-4])),f[a]));break;case 140:case 160:case 173:case 189:this.$=d.addLocationDataFn(b[a-3],b[a])(f[a-2]);break;case 142:this.$=d.addLocationDataFn(b[a],b[a])(new d.ImportSpecifier(f[a]));break;case 143:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ImportSpecifier(f[a-2],f[a]));break;case 144:this.$=d.addLocationDataFn(b[a],b[a])(new d.ImportSpecifier(new d.Literal(f[a])));
break;case 145:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ImportSpecifier(new d.Literal(f[a-2]),f[a]));break;case 146:this.$=d.addLocationDataFn(b[a],b[a])(new d.ImportDefaultSpecifier(f[a]));break;case 147:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ImportNamespaceSpecifier(new d.Literal(f[a-2]),f[a]));break;case 148:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList([])));break;case 149:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList(f[a-
2])));break;case 150:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.ExportNamedDeclaration(f[a]));break;case 151:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.ExportNamedDeclaration(new d.Assign(f[a-2],f[a],null,{moduleDeclaration:"export"})));break;case 152:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.ExportNamedDeclaration(new d.Assign(f[a-3],f[a],null,{moduleDeclaration:"export"})));break;case 153:this.$=d.addLocationDataFn(b[a-5],b[a])(new d.ExportNamedDeclaration(new d.Assign(f[a-4],f[a-1],null,
{moduleDeclaration:"export"})));break;case 154:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ExportDefaultDeclaration(f[a]));break;case 155:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.ExportAllDeclaration(new d.Literal(f[a-2]),f[a]));break;case 156:this.$=d.addLocationDataFn(b[a-6],b[a])(new d.ExportNamedDeclaration(new d.ExportSpecifierList(f[a-4]),f[a]));break;case 162:this.$=d.addLocationDataFn(b[a],b[a])(new d.ExportSpecifier(f[a]));break;case 163:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ExportSpecifier(f[a-
2],f[a]));break;case 164:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.ExportSpecifier(f[a-2],new d.Literal(f[a])));break;case 165:this.$=d.addLocationDataFn(b[a],b[a])(new d.ExportSpecifier(new d.Literal(f[a])));break;case 166:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.TaggedTemplateCall(f[a-2],f[a],f[a-1]));break;case 167:case 168:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Call(f[a-2],f[a],f[a-1]));break;case 169:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.SuperCall(d.addLocationDataFn(b[a-
2])(new d.Super),f[a],f[a-1]));break;case 170:this.$=d.addLocationDataFn(b[a],b[a])(!1);break;case 171:this.$=d.addLocationDataFn(b[a],b[a])(!0);break;case 172:this.$=d.addLocationDataFn(b[a-1],b[a])([]);break;case 174:case 175:this.$=d.addLocationDataFn(b[a],b[a])(new d.Value(new d.ThisLiteral));break;case 176:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Value(d.addLocationDataFn(b[a-1])(new d.ThisLiteral),[d.addLocationDataFn(b[a])(new d.Access(f[a]))],"this"));break;case 177:this.$=d.addLocationDataFn(b[a-
1],b[a])(new d.Arr([]));break;case 178:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Arr(f[a-2]));break;case 179:this.$=d.addLocationDataFn(b[a],b[a])("inclusive");break;case 180:this.$=d.addLocationDataFn(b[a],b[a])("exclusive");break;case 181:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Range(f[a-3],f[a-1],f[a-2]));break;case 182:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Range(f[a-2],f[a],f[a-1]));break;case 183:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Range(f[a-1],null,f[a]));break;case 184:this.$=
d.addLocationDataFn(b[a-1],b[a])(new d.Range(null,f[a],f[a-1]));break;case 185:this.$=d.addLocationDataFn(b[a],b[a])(new d.Range(null,null,f[a]));break;case 195:this.$=d.addLocationDataFn(b[a-2],b[a])([].concat(f[a-2],f[a]));break;case 196:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Try(f[a]));break;case 197:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Try(f[a-1],f[a][0],f[a][1]));break;case 198:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Try(f[a-2],null,null,f[a]));break;case 199:this.$=d.addLocationDataFn(b[a-
4],b[a])(new d.Try(f[a-3],f[a-2][0],f[a-2][1],f[a]));break;case 200:this.$=d.addLocationDataFn(b[a-2],b[a])([f[a-1],f[a]]);break;case 201:this.$=d.addLocationDataFn(b[a-2],b[a])([d.addLocationDataFn(b[a-1])(new d.Value(f[a-1])),f[a]]);break;case 202:this.$=d.addLocationDataFn(b[a-1],b[a])([null,f[a]]);break;case 203:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Throw(f[a]));break;case 204:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Parens(f[a-1]));break;case 205:this.$=d.addLocationDataFn(b[a-4],
b[a])(new d.Parens(f[a-2]));break;case 206:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.While(f[a]));break;case 207:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.While(f[a-2],{guard:f[a]}));break;case 208:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.While(f[a],{invert:!0}));break;case 209:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.While(f[a-2],{invert:!0,guard:f[a]}));break;case 210:this.$=d.addLocationDataFn(b[a-1],b[a])(f[a-1].addBody(f[a]));break;case 211:case 212:this.$=d.addLocationDataFn(b[a-
1],b[a])(f[a].addBody(d.addLocationDataFn(b[a-1])(d.Block.wrap([f[a-1]]))));break;case 213:this.$=d.addLocationDataFn(b[a],b[a])(f[a]);break;case 214:this.$=d.addLocationDataFn(b[a-1],b[a])((new d.While(d.addLocationDataFn(b[a-1])(new d.BooleanLiteral("true")))).addBody(f[a]));break;case 215:this.$=d.addLocationDataFn(b[a-1],b[a])((new d.While(d.addLocationDataFn(b[a-1])(new d.BooleanLiteral("true")))).addBody(d.addLocationDataFn(b[a])(d.Block.wrap([f[a]]))));break;case 216:case 217:this.$=d.addLocationDataFn(b[a-
1],b[a])(new d.For(f[a-1],f[a]));break;case 218:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.For(f[a],f[a-1]));break;case 219:this.$=d.addLocationDataFn(b[a-1],b[a])({source:d.addLocationDataFn(b[a])(new d.Value(f[a]))});break;case 220:this.$=d.addLocationDataFn(b[a-3],b[a])({source:d.addLocationDataFn(b[a-2])(new d.Value(f[a-2])),step:f[a]});break;case 221:d=d.addLocationDataFn(b[a-1],b[a]);f[a].own=f[a-1].own;f[a].ownTag=f[a-1].ownTag;f[a].name=f[a-1][0];f[a].index=f[a-1][1];this.$=d(f[a]);break;
case 222:this.$=d.addLocationDataFn(b[a-1],b[a])(f[a]);break;case 223:c=d.addLocationDataFn(b[a-2],b[a]);f[a].own=!0;f[a].ownTag=d.addLocationDataFn(b[a-1])(new d.Literal(f[a-1]));this.$=c(f[a]);break;case 229:this.$=d.addLocationDataFn(b[a-2],b[a])([f[a-2],f[a]]);break;case 230:this.$=d.addLocationDataFn(b[a-1],b[a])({source:f[a]});break;case 231:this.$=d.addLocationDataFn(b[a-1],b[a])({source:f[a],object:!0});break;case 232:this.$=d.addLocationDataFn(b[a-3],b[a])({source:f[a-2],guard:f[a]});break;
case 233:this.$=d.addLocationDataFn(b[a-3],b[a])({source:f[a-2],guard:f[a],object:!0});break;case 234:this.$=d.addLocationDataFn(b[a-3],b[a])({source:f[a-2],step:f[a]});break;case 235:this.$=d.addLocationDataFn(b[a-5],b[a])({source:f[a-4],guard:f[a-2],step:f[a]});break;case 236:this.$=d.addLocationDataFn(b[a-5],b[a])({source:f[a-4],step:f[a-2],guard:f[a]});break;case 237:this.$=d.addLocationDataFn(b[a-1],b[a])({source:f[a],from:!0});break;case 238:this.$=d.addLocationDataFn(b[a-3],b[a])({source:f[a-
2],guard:f[a],from:!0});break;case 239:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Switch(f[a-3],f[a-1]));break;case 240:this.$=d.addLocationDataFn(b[a-6],b[a])(new d.Switch(f[a-5],f[a-3],f[a-1]));break;case 241:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Switch(null,f[a-1]));break;case 242:this.$=d.addLocationDataFn(b[a-5],b[a])(new d.Switch(null,f[a-3],f[a-1]));break;case 244:this.$=d.addLocationDataFn(b[a-1],b[a])(f[a-1].concat(f[a]));break;case 245:this.$=d.addLocationDataFn(b[a-2],b[a])([[f[a-
1],f[a]]]);break;case 246:this.$=d.addLocationDataFn(b[a-3],b[a])([[f[a-2],f[a-1]]]);break;case 247:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.If(f[a-1],f[a],{type:f[a-2]}));break;case 248:this.$=d.addLocationDataFn(b[a-4],b[a])(f[a-4].addElse(d.addLocationDataFn(b[a-2],b[a])(new d.If(f[a-1],f[a],{type:f[a-2]}))));break;case 250:this.$=d.addLocationDataFn(b[a-2],b[a])(f[a-2].addElse(f[a]));break;case 251:case 252:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.If(f[a],d.addLocationDataFn(b[a-2])(d.Block.wrap([f[a-
2]])),{type:f[a-1],statement:!0}));break;case 255:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("-",f[a]));break;case 256:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("+",f[a]));break;case 258:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("--",f[a]));break;case 259:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("++",f[a]));break;case 260:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("--",f[a-1],null,!0));break;case 261:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Op("++",f[a-1],null,
!0));break;case 262:this.$=d.addLocationDataFn(b[a-1],b[a])(new d.Existence(f[a-1]));break;case 263:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Op("+",f[a-2],f[a]));break;case 264:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Op("-",f[a-2],f[a]));break;case 265:case 266:case 267:case 268:case 269:case 270:case 271:case 272:case 273:case 274:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Op(f[a-1],f[a-2],f[a]));break;case 275:b=d.addLocationDataFn(b[a-2],b[a]);f="!"===f[a-1].charAt(0)?(new d.Op(f[a-
1].slice(1),f[a-2],f[a])).invert():new d.Op(f[a-1],f[a-2],f[a]);this.$=b(f);break;case 276:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Assign(f[a-2],f[a],f[a-1]));break;case 277:this.$=d.addLocationDataFn(b[a-4],b[a])(new d.Assign(f[a-4],f[a-1],f[a-3]));break;case 278:this.$=d.addLocationDataFn(b[a-3],b[a])(new d.Assign(f[a-3],f[a],f[a-2]));break;case 279:this.$=d.addLocationDataFn(b[a-2],b[a])(new d.Extends(f[a-2],f[a]))}},table:[{1:[2,1],3:1,4:2,5:3,7:4,8:5,9:6,10:25,11:26,12:20,13:21,14:g,15:23,
16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:q,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:sa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{1:[3]},{1:[2,2],6:xa},a(ua,[2,3]),a(ua,[2,6],{144:80,135:105,
141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(ua,[2,7],{144:80,135:108,141:109,136:G,138:C,142:F,159:ra}),a(ua,[2,8]),a(wa,[2,16],{114:110,81:111,93:117,42:Qa,43:Qa,117:Qa,87:Xa,88:Ha,90:Ya,91:cb,92:Ra,95:Ia,116:Fa}),a(wa,[2,17],{93:117,114:120,81:121,87:Xa,88:Ha,90:Ya,91:cb,92:Ra,95:Ia,116:Fa,117:Qa}),a(wa,[2,18]),a(wa,[2,19]),a(wa,[2,20]),a(wa,[2,21]),a(wa,[2,22]),a(wa,[2,23]),a(wa,[2,24]),a(wa,[2,25]),a(wa,[2,
26]),a(wa,[2,27]),a(wa,[2,28]),a(Ea,[2,11]),a(Ea,[2,12]),a(Ea,[2,13]),a(Ea,[2,14]),a(Ea,[2,15]),a(ua,[2,9]),a(ua,[2,10]),a(Ba,Sa,{57:[1,122]}),a(Ba,[2,99]),a(Ba,[2,100]),a(Ba,[2,101]),a(Ba,[2,102]),a(Ba,[2,103]),{87:[1,124],88:[1,125],114:123,116:Fa,117:Qa},a([6,33,68,73],Ta,{67:126,74:127,75:128,35:130,62:131,77:132,78:133,36:m,76:db,97:x,121:Ja,122:Ma}),{32:136,33:Ca},{7:138,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,
36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:142,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,
42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:143,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,
49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:144,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,
54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:145,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,
63:[1,146],64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{17:148,18:149,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:150,62:74,77:57,78:58,80:147,82:29,83:30,84:31,85:32,86:H,97:x,120:Q,121:R,122:M,133:P},{17:148,18:149,35:73,36:m,39:59,40:c,41:83,42:e,
43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:150,62:74,77:57,78:58,80:151,82:29,83:30,84:31,85:32,86:H,97:x,120:Q,121:R,122:M,133:P},a(Ua,ya,{101:[1,155],164:[1,152],165:[1,153],178:[1,154]}),a(wa,[2,249],{154:[1,156]}),{32:157,33:Ca},{32:158,33:Ca},a(wa,[2,213]),{32:159,33:Ca},{7:160,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:[1,161],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,
53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(gb,[2,122],{49:28,82:29,83:30,84:31,85:32,77:57,78:58,39:59,45:61,35:73,62:74,41:83,17:148,18:149,56:150,32:162,80:164,33:Ca,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,86:H,97:x,101:[1,163],120:Q,121:R,
122:M,133:P}),{7:165,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a([1,6,34,
44,134,136,138,142,159,166,167,168,169,170,171,172,173,174,175,176,177],eb,{17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,7:166,14:g,30:ga,31:fb,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:[1,168],64:fa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,140:Z,152:ca,
158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X}),a(Ea,Oa,{17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,7:169,14:g,30:ga,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:fa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,140:Z,152:ca,158:S,160:V,161:K,162:aa,163:ba,
164:Y,165:X}),a([1,6,33,34,44,73,99,134,136,138,142,159],[2,70]),{35:174,36:m,41:170,42:e,43:y,97:[1,173],103:171,104:172,109:hb},{27:177,35:178,36:m,97:[1,176],100:r,108:[1,179],112:[1,180]},a(Ua,[2,96]),a(Ua,[2,97]),a(Ba,[2,42]),a(Ba,[2,43]),a(Ba,[2,44]),a(Ba,[2,45]),a(Ba,[2,46]),a(Ba,[2,47]),a(Ba,[2,48]),a(Ba,[2,49]),{4:181,5:3,7:4,8:5,9:6,10:25,11:26,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:q,33:[1,182],35:73,36:m,39:59,40:c,41:83,
42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:sa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:183,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:Za,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,
46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,119:185,120:Q,121:R,122:M,123:mb,126:186,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Ba,[2,174]),a(Ba,[2,175],{37:190,38:La}),{33:[2,73]},{33:[2,74]},a(Ka,[2,91]),a(Ka,[2,94]),{7:192,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,
21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:193,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,
25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:194,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,
29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:196,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,32:195,33:Ca,
35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{35:201,36:m,62:202,77:203,78:204,83:197,97:x,121:Ja,122:M,146:198,147:[1,199],148:200},{145:205,149:[1,206],150:[1,207],151:[1,208]},a([6,33,73,
99],nb,{41:83,98:209,58:210,59:211,61:212,13:213,39:214,35:215,37:216,62:217,36:m,38:La,40:c,42:e,43:y,65:h,121:Ja}),a(ob,[2,36]),a(ob,[2,37]),a(Ba,[2,40]),{17:148,18:218,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:150,62:74,77:57,78:58,80:219,82:29,83:30,84:31,85:32,86:H,97:x,120:Q,121:R,122:M,133:P},a([1,6,31,33,34,42,43,44,57,60,68,73,76,87,88,89,90,91,92,95,99,101,107,116,117,118,123,125,134,136,137,138,142,143,149,150,151,159,162,163,164,165,166,
167,168,169,170,171,172,173,174,175,176,177,178],[2,34]),a(Va,[2,38]),{4:220,5:3,7:4,8:5,9:6,10:25,11:26,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:q,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:sa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,
144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(ua,[2,5],{7:4,8:5,9:6,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,10:25,11:26,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,5:221,14:g,30:q,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:sa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,136:G,
138:C,140:Z,142:F,152:ca,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X}),a(wa,[2,262]),{7:222,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,
152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:223,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,
161:K,162:aa,163:ba,164:Y,165:X},{7:224,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,
165:X},{7:225,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:226,8:140,12:20,
13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:227,8:140,12:20,13:21,14:g,15:23,16:24,
17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:228,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,
22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:229,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,
26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:230,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,
30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:231,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,
40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:232,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,
46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:233,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,
52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:234,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,
62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:235,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,
66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(wa,[2,212]),a(wa,[2,217]),{7:236,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,
65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(wa,[2,211]),a(wa,[2,216]),{41:237,42:e,43:y,115:238,117:ib},a(Ka,[2,92]),a(pb,[2,171]),{37:240,38:La},{37:241,38:La},a(Ka,[2,110],{37:242,38:La}),{37:243,38:La},a(Ka,[2,111]),{7:245,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,
24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:qb,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,94:244,96:246,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,124:247,125:b,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{88:Ha,93:250,95:Ia},{115:251,117:ib},a(Ka,[2,93]),{6:[1,253],7:252,8:140,
12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:[1,254],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{115:255,117:ib},{37:256,
38:La},{7:257,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a([6,33],v,{72:260,
68:[1,258],73:L}),a(d,[2,78]),a(d,[2,82],{57:[1,262],76:[1,261]}),a(d,[2,85]),a(f,[2,86]),a(f,[2,87]),a(f,[2,88]),a(f,[2,89]),{37:190,38:La},{7:263,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:Za,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,119:185,120:Q,
121:R,122:M,123:mb,126:186,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(wa,[2,72]),{4:265,5:3,7:4,8:5,9:6,10:25,11:26,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:q,34:[1,264],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:sa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,
86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Wa,[2,253],{144:80,135:105,141:106,166:I}),{7:145,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,
83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{135:108,136:G,138:C,141:109,142:F,144:80,159:ra},a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,166,167,168,169,170,171,172,173,174,175,176,177],eb,{17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,
69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,7:166,14:g,30:ga,31:fb,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:fa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,140:Z,152:ca,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X}),a(Da,[2,254],{144:80,135:105,141:106,166:I,168:da}),a(Da,[2,255],{144:80,135:105,141:106,166:I,168:da}),a(Da,[2,256],{144:80,135:105,141:106,166:I,168:da}),a(Wa,[2,257],
{144:80,135:105,141:106,166:I}),a(ua,[2,69],{17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,7:266,14:g,30:ga,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:fa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,136:Oa,138:Oa,142:Oa,159:Oa,140:Z,152:ca,158:S,160:V,161:K,
162:aa,163:ba,164:Y,165:X}),a(wa,[2,258],{42:ya,43:ya,87:ya,88:ya,90:ya,91:ya,92:ya,95:ya,116:ya,117:ya}),a(pb,Qa,{114:110,81:111,93:117,87:Xa,88:Ha,90:Ya,91:cb,92:Ra,95:Ia,116:Fa}),{81:121,87:Xa,88:Ha,90:Ya,91:cb,92:Ra,93:117,95:Ia,114:120,116:Fa,117:Qa},a(rb,Sa),a(wa,[2,259],{42:ya,43:ya,87:ya,88:ya,90:ya,91:ya,92:ya,95:ya,116:ya,117:ya}),a(wa,[2,260]),a(wa,[2,261]),{6:[1,269],7:267,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,
33:[1,268],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:270,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,
39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{32:271,33:Ca,158:[1,272]},a(wa,[2,196],{129:273,130:[1,274],131:[1,275]}),a(wa,[2,210]),a(wa,[2,218]),{33:[1,276],135:105,136:G,138:C,141:106,142:F,144:80,
159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},{153:277,155:278,156:vb},a(wa,[2,123]),{7:280,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,
133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(gb,[2,126],{32:281,33:Ca,42:ya,43:ya,87:ya,88:ya,90:ya,91:ya,92:ya,95:ya,116:ya,117:ya,101:[1,282]}),a(Pa,[2,203],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Pa,[2,30],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:283,8:140,
12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(ua,[2,67],{17:7,18:8,19:9,20:10,21:11,
22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,7:284,14:g,30:ga,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:fa,65:h,66:n,70:u,71:t,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,136:Oa,138:Oa,142:Oa,159:Oa,140:Z,152:ca,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X}),a(Ea,$a,{144:80,135:105,141:106,162:la,
163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Ea,[2,130]),{31:[1,285],73:[1,286]},{31:[1,287]},{33:wb,35:292,36:m,99:[1,288],105:289,106:290,108:jb},a([31,73],[2,146]),{107:[1,294]},{33:Hb,35:299,36:m,99:[1,295],108:sb,111:296,113:297},a(Ea,[2,150]),{57:[1,301]},{7:302,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,
52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{31:[1,303]},{6:xa,134:[1,304]},{4:305,5:3,7:4,8:5,9:6,10:25,11:26,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:q,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,
46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:sa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a([6,33,73,123],Sb,{144:80,135:105,141:106,124:306,76:[1,307],125:b,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),
a(Ib,[2,177]),a([6,33,123],v,{72:308,73:xb}),a(ab,[2,186]),{7:263,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:Za,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,119:310,120:Q,121:R,122:M,126:186,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,
142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(ab,[2,192]),a(ab,[2,193]),a(Tb,[2,176]),a(Tb,[2,35]),{32:311,33:Ca,135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(Ub,[2,206],{144:80,135:105,141:106,136:G,137:[1,312],138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Ub,[2,208],{144:80,135:105,141:106,136:G,137:[1,
313],138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(wa,[2,214]),a(kb,[2,215],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,159,162,163,166,167,168,169,170,171,172,173,174,175,176,177],[2,219],{143:[1,314]}),a(yb,[2,222]),{35:201,36:m,62:202,77:203,78:204,97:x,121:Ja,122:Ma,146:315,
148:200},a(yb,[2,228],{73:[1,316]}),a(zb,[2,224]),a(zb,[2,225]),a(zb,[2,226]),a(zb,[2,227]),a(wa,[2,221]),{7:317,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,
141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:318,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,
157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:319,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,
162:aa,163:ba,164:Y,165:X},a(Ab,v,{72:320,73:Vb}),a(Aa,[2,118]),a(Aa,[2,53],{60:[1,322]}),a(Wb,[2,62],{57:[1,323]}),a(Aa,[2,58]),a(Wb,[2,63]),a(Jb,[2,59]),a(Jb,[2,60]),a(Jb,[2,61]),{48:[1,324],81:121,87:Xa,88:Ha,90:Ya,91:cb,92:Ra,93:117,95:Ia,114:120,116:Fa,117:Qa},a(rb,ya),{6:xa,44:[1,325]},a(ua,[2,4]),a(Xb,[2,263],{144:80,135:105,141:106,166:I,167:ja,168:da}),a(Xb,[2,264],{144:80,135:105,141:106,166:I,167:ja,168:da}),a(Da,[2,265],{144:80,135:105,141:106,166:I,168:da}),a(Da,[2,266],{144:80,135:105,
141:106,166:I,168:da}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,169,170,171,172,173,174,175,176,177],[2,267],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,170,171,172,173,174,175,176],[2,268],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,171,172,173,174,175,176],[2,269],{144:80,135:105,
141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,172,173,174,175,176],[2,270],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,173,174,175,176],[2,271],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,
142,143,159,174,175,176],[2,272],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,175,176],[2,273],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,176],[2,274],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,
173:ea,174:N,175:qa,177:na}),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,143,159,170,171,172,173,174,175,176,177],[2,275],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa}),a(kb,[2,252],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(kb,[2,251],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,
177:na}),a(lb,[2,166]),a(lb,[2,167]),{7:263,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:Za,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,118:[1,326],119:327,120:Q,121:R,122:M,126:186,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,
152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Ka,[2,106]),a(Ka,[2,107]),a(Ka,[2,108]),a(Ka,[2,109]),{89:[1,328]},{76:qb,89:[2,114],124:329,125:b,135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},{89:[2,115]},{7:330,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,
50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,89:[2,185],97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Yb,[2,179]),a(Yb,Zb),a(Ka,[2,113]),a(lb,[2,168]),a(Pa,[2,50],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:331,8:140,
12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:332,8:140,12:20,13:21,14:g,15:23,
16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(lb,[2,169]),a(Ba,[2,104]),{89:[1,333],135:105,136:G,138:C,
141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},{69:334,70:u,71:t},a(bb,tb,{75:128,35:130,62:131,77:132,78:133,74:335,36:m,76:db,97:x,121:Ja,122:Ma}),{6:$b,33:ac},a(d,[2,83]),{7:338,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,
70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(ab,Sb,{144:80,135:105,141:106,76:[1,339],136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(bc,[2,32]),{6:xa,34:[1,340]},a(ua,[2,68],{144:80,135:105,141:106,136:$a,138:$a,142:$a,159:$a,162:la,163:ma,
166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Pa,[2,276],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:341,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,
83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:342,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,
97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Pa,[2,279],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(wa,[2,250]),{7:343,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,
50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(wa,[2,197],{130:[1,344]}),{32:345,33:Ca},{32:348,33:Ca,35:346,36:m,78:347,97:x},{153:349,155:278,156:vb},{34:[1,350],154:[1,351],155:352,156:vb},a(Bb,[2,243]),{7:354,8:140,12:20,13:21,14:g,15:23,16:24,17:7,
18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,127:353,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(cc,[2,124],{144:80,135:105,141:106,32:355,33:Ca,136:G,138:C,
142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(wa,[2,127]),{7:356,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,
139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Pa,[2,31],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(ua,[2,66],{144:80,135:105,141:106,136:$a,138:$a,142:$a,159:$a,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{41:357,42:e,43:y},{97:[1,359],104:358,109:hb},{41:360,42:e,43:y},{31:[1,361]},a(Ab,v,{72:362,73:Cb}),a(Aa,[2,137]),
{33:wb,35:292,36:m,105:364,106:290,108:jb},a(Aa,[2,142],{107:[1,365]}),a(Aa,[2,144],{107:[1,366]}),{35:367,36:m},a(Ea,[2,148]),a(Ab,v,{72:368,73:Kb}),a(Aa,[2,157]),{33:Hb,35:299,36:m,108:sb,111:370,113:297},a(Aa,[2,162],{107:[1,371]}),a(Aa,[2,165]),{6:[1,373],7:372,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:[1,374],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,
65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Lb,[2,154],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{41:375,42:e,43:y},a(Ba,[2,204]),{6:xa,34:[1,376]},{7:377,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,
20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a([14,30,36,40,42,43,46,47,50,51,52,53,54,55,63,64,65,66,70,71,86,97,100,102,110,
120,121,122,128,132,133,136,138,140,142,152,158,160,161,162,163,164,165],Zb,{6:ub,33:ub,73:ub,123:ub}),{6:Db,33:Eb,123:[1,378]},a([6,33,34,118,123],tb,{17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,12:20,13:21,15:23,16:24,56:27,49:28,82:29,83:30,84:31,85:32,69:35,80:43,157:44,135:46,139:47,141:48,77:57,78:58,39:59,45:61,35:73,62:74,144:80,41:83,8:140,79:188,7:263,126:381,14:g,30:ga,36:m,40:c,42:e,43:y,46:D,47:w,50:z,51:l,52:E,53:A,54:B,55:J,63:p,64:fa,65:h,66:n,70:u,71:t,
76:Ga,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,136:G,138:C,140:Z,142:F,152:ca,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X}),a(bb,v,{72:382,73:xb}),a(dc,[2,247]),{7:383,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,
102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:384,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,
122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:385,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,
135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(yb,[2,223]),{35:201,36:m,62:202,77:203,78:204,97:x,121:Ja,122:Ma,148:386},a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,138,142,159],[2,230],{144:80,135:105,141:106,137:[1,387],143:[1,388],162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Mb,[2,231],{144:80,135:105,141:106,137:[1,389],162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,
171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Mb,[2,237],{144:80,135:105,141:106,137:[1,390],162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{6:ec,33:fc,99:[1,391]},a(Nb,tb,{41:83,59:211,61:212,13:213,39:214,35:215,37:216,62:217,58:394,36:m,38:La,40:c,42:e,43:y,65:h,121:Ja}),{7:395,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:[1,396],35:73,36:m,39:59,40:c,41:83,42:e,43:y,
45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:397,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:[1,398],35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,
47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Ba,[2,41]),a(Va,[2,39]),a(lb,[2,172]),a([6,33,118],v,{72:399,73:xb}),a(Ka,[2,112]),{7:400,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,
29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,89:[2,183],97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{89:[2,184],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,
173:ea,174:N,175:qa,176:va,177:na},a(Pa,[2,51],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{34:[1,401],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(Ba,[2,105]),{32:402,33:Ca},a(d,[2,79]),{35:130,36:m,62:131,74:403,75:128,76:db,77:132,78:133,97:x,121:Ja,122:Ma},a(gc,Ta,{74:127,75:128,35:130,62:131,77:132,78:133,67:404,36:m,
76:db,97:x,121:Ja,122:Ma}),a(d,[2,84],{144:80,135:105,141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(ab,ub),a(bc,[2,33]),{34:[1,405],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(Pa,[2,278],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{32:406,
33:Ca,135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},{32:407,33:Ca},a(wa,[2,198]),{32:408,33:Ca},{32:409,33:Ca},a(Ob,[2,202]),{34:[1,410],154:[1,411],155:352,156:vb},a(wa,[2,241]),{32:412,33:Ca},a(Bb,[2,244]),{32:413,33:Ca,73:[1,414]},a(hc,[2,194],{144:80,135:105,141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(wa,[2,
125]),a(cc,[2,128],{144:80,135:105,141:106,32:415,33:Ca,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Ea,[2,131]),{31:[1,416]},{33:wb,35:292,36:m,105:417,106:290,108:jb},a(Ea,[2,132]),{41:418,42:e,43:y},{6:Fb,33:Gb,99:[1,419]},a(Nb,tb,{35:292,106:422,36:m,108:jb}),a(bb,v,{72:423,73:Cb}),{35:424,36:m},{35:425,36:m},{31:[2,147]},{6:Pb,33:Qb,99:[1,426]},a(Nb,tb,{35:299,113:429,36:m,108:sb}),a(bb,v,{72:430,73:Kb}),{35:431,36:m,108:[1,
432]},a(Lb,[2,151],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:433,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,
122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:434,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,
135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Ea,[2,155]),{134:[1,435]},{123:[1,436],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(Ib,[2,178]),{7:263,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,
52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,126:437,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:263,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,33:Za,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,
51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,76:Ga,77:57,78:58,79:188,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,119:438,120:Q,121:R,122:M,126:186,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(ab,[2,187]),{6:Db,33:Eb,34:[1,439]},a(kb,[2,207],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,
177:na}),a(kb,[2,209],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(kb,[2,220],{144:80,135:105,141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(yb,[2,229]),{7:440,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,
47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:441,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,
53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:442,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,
63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:443,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,
70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Ib,[2,116]),{13:213,35:215,36:m,37:216,38:La,39:214,40:c,41:83,42:e,43:y,58:444,59:211,61:212,62:217,65:h,121:Ja},a(gc,nb,{41:83,58:210,59:211,61:212,13:213,39:214,35:215,37:216,62:217,98:445,36:m,38:La,40:c,42:e,43:y,65:h,121:Ja}),a(Aa,[2,119]),a(Aa,[2,54],{144:80,135:105,
141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:446,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,
136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(Aa,[2,56],{144:80,135:105,141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{7:447,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,
66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{6:Db,33:Eb,118:[1,448]},{89:[2,182],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(wa,[2,52]),a(wa,[2,71]),a(d,[2,80]),a(bb,v,{72:449,73:L}),a(wa,[2,277]),a(dc,[2,
248]),a(wa,[2,199]),a(Ob,[2,200]),a(Ob,[2,201]),a(wa,[2,239]),{32:450,33:Ca},{34:[1,451]},a(Bb,[2,245],{6:[1,452]}),{7:453,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,
139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},a(wa,[2,129]),{41:454,42:e,43:y},a(Ab,v,{72:455,73:Cb}),a(Ea,[2,133]),{31:[1,456]},{35:292,36:m,106:457,108:jb},{33:wb,35:292,36:m,105:458,106:290,108:jb},a(Aa,[2,138]),{6:Fb,33:Gb,34:[1,459]},a(Aa,[2,143]),a(Aa,[2,145]),a(Ea,[2,149],{31:[1,460]}),{35:299,36:m,108:sb,113:461},{33:Hb,35:299,36:m,108:sb,111:462,113:297},a(Aa,[2,158]),{6:Pb,33:Qb,34:[1,463]},a(Aa,[2,163]),a(Aa,[2,164]),a(Lb,[2,152],{144:80,135:105,
141:106,136:G,138:C,142:F,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),{34:[1,464],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(Ba,[2,205]),a(Ba,[2,181]),a(ab,[2,188]),a(bb,v,{72:465,73:xb}),a(ab,[2,189]),a([1,6,33,34,44,68,73,76,89,99,118,123,125,134,136,137,138,142,159],[2,232],{144:80,135:105,141:106,143:[1,466],162:la,163:ma,166:I,167:ja,168:da,
169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Mb,[2,234],{144:80,135:105,141:106,137:[1,467],162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Pa,[2,233],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Pa,[2,238],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Aa,[2,120]),a(bb,v,
{72:468,73:Vb}),{34:[1,469],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},{34:[1,470],135:105,136:G,138:C,141:106,142:F,144:80,159:za,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na},a(lb,[2,173]),{6:$b,33:ac,34:[1,471]},{34:[1,472]},a(wa,[2,242]),a(Bb,[2,246]),a(hc,[2,195],{144:80,135:105,141:106,136:G,138:C,142:F,159:za,162:la,163:ma,166:I,167:ja,168:da,
169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Ea,[2,135]),{6:Fb,33:Gb,99:[1,473]},{41:474,42:e,43:y},a(Aa,[2,139]),a(bb,v,{72:475,73:Cb}),a(Aa,[2,140]),{41:476,42:e,43:y},a(Aa,[2,159]),a(bb,v,{72:477,73:Kb}),a(Aa,[2,160]),a(Ea,[2,153]),{6:Db,33:Eb,34:[1,478]},{7:479,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,
63:p,64:fa,65:h,66:n,69:35,70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{7:480,8:140,12:20,13:21,14:g,15:23,16:24,17:7,18:8,19:9,20:10,21:11,22:12,23:13,24:14,25:15,26:16,27:17,28:18,29:19,30:ga,35:73,36:m,39:59,40:c,41:83,42:e,43:y,45:61,46:D,47:w,49:28,50:z,51:l,52:E,53:A,54:B,55:J,56:27,62:74,63:p,64:fa,65:h,66:n,69:35,
70:u,71:t,77:57,78:58,80:43,82:29,83:30,84:31,85:32,86:H,97:x,100:r,102:W,110:T,120:Q,121:R,122:M,128:U,132:O,133:P,135:46,136:G,138:C,139:47,140:Z,141:48,142:F,144:80,152:ca,157:44,158:S,160:V,161:K,162:aa,163:ba,164:Y,165:X},{6:ec,33:fc,34:[1,481]},a(Aa,[2,55]),a(Aa,[2,57]),a(d,[2,81]),a(wa,[2,240]),{31:[1,482]},a(Ea,[2,134]),{6:Fb,33:Gb,34:[1,483]},a(Ea,[2,156]),{6:Pb,33:Qb,34:[1,484]},a(ab,[2,190]),a(Pa,[2,235],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,
173:ea,174:N,175:qa,176:va,177:na}),a(Pa,[2,236],{144:80,135:105,141:106,162:la,163:ma,166:I,167:ja,168:da,169:oa,170:ia,171:ka,172:pa,173:ea,174:N,175:qa,176:va,177:na}),a(Aa,[2,121]),{41:485,42:e,43:y},a(Aa,[2,141]),a(Aa,[2,161]),a(Ea,[2,136])],defaultActions:{71:[2,73],72:[2,74],246:[2,115],367:[2,147]},parseError:function(a,d){if(d.recoverable)this.trace(a);else{var b=function(a,d){this.message=a;this.hash=d};b.prototype=Error;throw new b(a,d);}},parse:function(a){var d=[0],b=[null],f=[],v=this.table,
L="",c=0,e=0,h=0,g=f.slice.call(arguments,1),l=Object.create(this.lexer),Wa={},n;for(n in this.yy)Object.prototype.hasOwnProperty.call(this.yy,n)&&(Wa[n]=this.yy[n]);l.setInput(a,Wa);Wa.lexer=l;Wa.parser=this;"undefined"==typeof l.yylloc&&(l.yylloc={});n=l.yylloc;f.push(n);var k=l.options&&l.options.ranges;this.parseError="function"===typeof Wa.parseError?Wa.parseError:Object.getPrototypeOf(this).parseError;for(var Da,p,m,u,t={},x,r;;){m=d[d.length-1];if(this.defaultActions[m])u=this.defaultActions[m];
else{if(null===Da||"undefined"==typeof Da)Da=l.lex()||1,"number"!==typeof Da&&(Da=this.symbols_[Da]||Da);u=v[m]&&v[m][Da]}if("undefined"===typeof u||!u.length||!u[0]){var rb;r=[];for(x in v[m])this.terminals_[x]&&2<x&&r.push("'"+this.terminals_[x]+"'");rb=l.showPosition?"Parse error on line "+(c+1)+":\n"+l.showPosition()+"\nExpecting "+r.join(", ")+", got '"+(this.terminals_[Da]||Da)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==Da?"end of input":"'"+(this.terminals_[Da]||Da)+"'");this.parseError(rb,
{text:l.match,token:this.terminals_[Da]||Da,line:l.yylineno,loc:n,expected:r})}if(u[0]instanceof Array&&1<u.length)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+Da);switch(u[0]){case 1:d.push(Da);b.push(l.yytext);f.push(l.yylloc);d.push(u[1]);Da=null;p?(Da=p,p=null):(e=l.yyleng,L=l.yytext,c=l.yylineno,n=l.yylloc,0<h&&h--);break;case 2:r=this.productions_[u[1]][1];t.$=b[b.length-r];t._$={first_line:f[f.length-(r||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-
(r||1)].first_column,last_column:f[f.length-1].last_column};k&&(t._$.range=[f[f.length-(r||1)].range[0],f[f.length-1].range[1]]);m=this.performAction.apply(t,[L,e,c,Wa,u[1],b,f].concat(g));if("undefined"!==typeof m)return m;r&&(d=d.slice(0,-2*r),b=b.slice(0,-1*r),f=f.slice(0,-1*r));d.push(this.productions_[u[1]][0]);b.push(t.$);f.push(t._$);u=v[d[d.length-2]][d[d.length-1]];d.push(u);break;case 3:return!0}}}};k.prototype=ic;ic.Parser=k;return new k}();"undefined"!==typeof q&&"undefined"!==typeof k&&
(k.parser=sa,k.Parser=sa.Parser,k.parse=function(){return sa.parse.apply(sa,arguments)},k.main=function(ha){ha[1]||(console.log("Usage: "+ha[0]+" FILE"),process.exit(1));var a="",g=q("fs");"undefined"!==typeof g&&null!==g&&(a=g.readFileSync(q("path").normalize(ha[1]),"utf8"));return k.parser.parse(a)},"undefined"!==typeof xa&&q.main===xa&&k.main(process.argv.slice(1)));return xa.exports}();q["./scope"]=function(){var k={};(function(){var q=[].indexOf||function(k){for(var a=0,g=this.length;a<g;a++)if(a in
this&&this[a]===k)return a;return-1},sa=function(k,a,g,q){var m,c;this.parent=k;this.expressions=a;this.method=g;this.referencedVars=q;this.variables=[{name:"arguments",type:"arguments"}];this.positions={};this.parent||(this.utilities={});this.root=null!=(m=null!=(c=this.parent)?c.root:void 0)?m:this};sa.prototype.add=function(k,a,g){return this.shared&&!g?this.parent.add(k,a,g):Object.prototype.hasOwnProperty.call(this.positions,k)?this.variables[this.positions[k]].type=a:this.positions[k]=this.variables.push({name:k,
type:a})-1};sa.prototype.namedMethod=function(){var k;return null!=(k=this.method)&&k.name||!this.parent?this.method:this.parent.namedMethod()};sa.prototype.find=function(k,a){a=void 0===a?"var":a;if(this.check(k))return!0;this.add(k,a);return!1};sa.prototype.parameter=function(k){if(!this.shared||!this.parent.check(k,!0))return this.add(k,"param")};sa.prototype.check=function(k){var a;return!!(this.type(k)||null!=(a=this.parent)&&a.check(k))};sa.prototype.temporary=function(k,a,g){return(void 0===
g?0:g)?(g=k.charCodeAt(0),k=122-g,g=String.fromCharCode(g+a%(k+1)),a=Math.floor(a/(k+1)),""+g+(a||"")):""+k+(a||"")};sa.prototype.type=function(k){var a,g,q,m;q=this.variables;a=0;for(g=q.length;a<g;a++)if(m=q[a],m.name===k)return m.type;return null};sa.prototype.freeVariable=function(k,a){a=void 0===a?{}:a;var g,ha,m;for(g=0;;){m=this.temporary(k,g,a.single);if(!(this.check(m)||0<=q.call(this.root.referencedVars,m)))break;g++}(null!=(ha=a.reserve)?ha:1)&&this.add(m,"var",!0);return m};sa.prototype.assign=
function(k,a){this.add(k,{value:a,assigned:!0},!0);return this.hasAssignments=!0};sa.prototype.hasDeclarations=function(){return!!this.declaredVariables().length};sa.prototype.declaredVariables=function(){var k,a,g,q,m;q=this.variables;m=[];a=0;for(g=q.length;a<g;a++)k=q[a],"var"===k.type&&m.push(k.name);return m.sort()};sa.prototype.assignedVariables=function(){var k,a,g,q,m;g=this.variables;q=[];k=0;for(a=g.length;k<a;k++)m=g[k],m.type.assigned&&q.push(m.name+" \x3d "+m.type.value);return q};k.Scope=
sa}).call(this);return k}();q["./nodes"]=function(){var k={};(function(){var xa,sa,ha,a,g,ta,m,c,e,y,D,w,z,l,E,A,B,J,p,ua,h,n,u,t,H,x,r,W,T,Q,R,M,U,O,P,G,C,Z,F,ca,S,V,K,aa,ba,Y,X,ra,Na,za,la,ma,I,ja,da,oa,ia,ka,pa,ea,N,qa,va,na,Rb,wa,Qa,Xa,Ha,Ya,cb,Ra,Ia,Fa=[].indexOf||function(a){for(var b=0,L=this.length;b<L;b++)if(b in this&&this[b]===a)return b;return-1},Ea=[].slice;Error.stackTraceLimit=Infinity;S=q("./scope").Scope;Xa=q("./lexer");na=Xa.isUnassignable;ua=Xa.JS_FORBIDDEN;Ha=q("./helpers");ia=
Ha.compact;ea=Ha.flatten;pa=Ha.extend;wa=Ha.merge;ka=Ha.del;oa=Ha.addLocationDataFn;Rb=Ha.locationDataToString;cb=Ha.throwSyntaxError;k.extend=pa;k.addLocationDataFn=oa;da=function(){return!0};M=function(){return!1};Na=function(){return this};R=function(){this.negated=!this.negated;return this};var Ba=function(a,v){var b;this.code=""+v;this.locationData=null!=a?a.locationData:void 0;this.type=(null!=a?null!=(b=a.constructor)?b.name:void 0:void 0)||"unknown"};Ba.prototype.toString=function(){return""+
this.code+(this.locationData?": "+Rb(this.locationData):"")};k.CodeFragment=Ba;N=function(a){var b,L,d,f;f=[];L=0;for(d=a.length;L<d;L++)b=a[L],f.push(b.code);return f.join("")};k.Base=a=function(){var a=function(){};a.prototype.compile=function(a,b){return N(this.compileToFragments(a,b))};a.prototype.compileToFragments=function(a,b){a=pa({},a);b&&(a.level=b);b=this.unfoldSoak(a)||this;b.tab=a.indent;return a.level!==x&&b.isStatement(a)?b.compileClosure(a):b.compileNode(a)};a.prototype.compileClosure=
function(a){var b,d,f,v,e;(f=this.jumps())&&f.error("cannot use a pure statement in an expression");a.sharedScope=!0;f=new c([],g.wrap([this]));b=[];if(this.contains(function(a){return a instanceof X}))f.bound=!0;else if((d=this.contains(qa))||this.contains(va))b=[new za],d?(d="apply",b.push(new A("arguments"))):d="call",f=new I(f,[new xa(new C(d))]);a=(new ta(f,b)).compileNode(a);switch(!1){case !(f.isGenerator||null!=(v=f.base)&&v.isGenerator):a.unshift(this.makeCode("(yield* "));a.push(this.makeCode(")"));
break;case !(f.isAsync||null!=(e=f.base)&&e.isAsync):a.unshift(this.makeCode("(await ")),a.push(this.makeCode(")"))}return a};a.prototype.cache=function(a,b,d){var f;if(null!=d?d(this):this.shouldCache())return d=new A(a.scope.freeVariable("ref")),f=new ha(d,this),b?[f.compileToFragments(a,b),[this.makeCode(d.value)]]:[f,d];d=b?this.compileToFragments(a,b):this;return[d,d]};a.prototype.hoist=function(){var a,b,d;this.hoisted=!0;d=new E(this);a=this.compileNode;b=this.compileToFragments;this.compileNode=
function(b){return d.update(a,b)};this.compileToFragments=function(a){return d.update(b,a)};return d};a.prototype.cacheToCodeFragments=function(a){return[N(a[0]),N(a[1])]};a.prototype.makeReturn=function(a){var b;b=this.unwrapAll();return a?new ta(new r(a+".push"),[b]):new F(b)};a.prototype.contains=function(a){var b;b=void 0;this.traverseChildren(!1,function(d){if(a(d))return b=d,!1});return b};a.prototype.lastNonComment=function(a){var b;for(b=a.length;b--;)if(!(a[b]instanceof e))return a[b];return null};
a.prototype.toString=function(a,b){a=void 0===a?"":a;b=void 0===b?this.constructor.name:b;var d;d="\n"+a+b;this.soak&&(d+="?");this.eachChild(function(b){return d+=b.toString(a+ra)});return d};a.prototype.eachChild=function(a){var b,d,f,v,c,e,h;if(!this.children)return this;e=this.children;d=0;for(v=e.length;d<v;d++)if(b=e[d],this[b])for(h=ea([this[b]]),f=0,c=h.length;f<c;f++)if(b=h[f],!1===a(b))return this;return this};a.prototype.traverseChildren=function(a,b){return this.eachChild(function(d){if(!1!==
b(d))return d.traverseChildren(a,b)})};a.prototype.replaceInContext=function(a,b){var d,f,v,L,c,e,h,g;if(!this.children)return!1;g=this.children;L=0;for(e=g.length;L<e;L++)if(d=g[L],f=this[d])if(Array.isArray(f))for(v=c=0,h=f.length;c<h;v=++c){d=f[v];if(a(d))return[].splice.apply(f,[v,v-v+1].concat(a=b(d,this))),a,!0;if(d.replaceInContext(a,b))return!0}else{if(a(f))return this[d]=b(f,this),!0;if(f.replaceInContext(a,b))return!0}};a.prototype.invert=function(){return new O("!",this)};a.prototype.unwrapAll=
function(){var a;for(a=this;a!==(a=a.unwrap()););return a};a.prototype.updateLocationDataIfMissing=function(a){if(this.locationData)return this;this.locationData=a;return this.eachChild(function(b){return b.updateLocationDataIfMissing(a)})};a.prototype.error=function(a){return cb(a,this.locationData)};a.prototype.makeCode=function(a){return new Ba(this,a)};a.prototype.wrapInBraces=function(a){return[].concat(this.makeCode("("),a,this.makeCode(")"))};a.prototype.joinFragmentArrays=function(a,b){var d,
f,L,v,c;d=[];L=v=0;for(c=a.length;v<c;L=++v)f=a[L],L&&d.push(this.makeCode(b)),d=d.concat(f);return d};a.prototype.children=[];a.prototype.isStatement=M;a.prototype.jumps=M;a.prototype.shouldCache=da;a.prototype.isChainable=M;a.prototype.isAssignable=M;a.prototype.isNumber=M;a.prototype.unwrap=Na;a.prototype.unfoldSoak=M;a.prototype.assigns=M;return a}();var Sa=function(b){var v;v=a.call(this)||this;v.source=b;v.options={};v.targetFragments={fragments:[]};return v};$jscomp.inherits(Sa,a);Sa.expand=
function(a){var b,L,d;for(L=d=a.length-1;0<=d;L=d+=-1)b=a[L],b.fragments&&([].splice.apply(a,[L,L-L+1].concat(b=this.expand(b.fragments))),b);return a};Sa.prototype.isStatement=function(a){return this.source.isStatement(a)};Sa.prototype.update=function(a,v){return this.targetFragments.fragments=a.call(this.source,wa(v,this.options))};Sa.prototype.compileToFragments=function(a,v){this.options.indent=a.indent;this.options.level=null!=v?v:a.level;return[this.targetFragments]};Sa.prototype.compileNode=
function(a){return this.compileToFragments(a)};Sa.prototype.compileClosure=function(a){return this.compileToFragments(a)};k.HoistTarget=E=Sa;k.Block=g=function(){var b=function(b){var L;L=a.call(this)||this;L.expressions=ia(ea(b||[]));return L};$jscomp.inherits(b,a);b.prototype.push=function(a){this.expressions.push(a);return this};b.prototype.pop=function(){return this.expressions.pop()};b.prototype.unshift=function(a){this.expressions.unshift(a);return this};b.prototype.unwrap=function(){return 1===
this.expressions.length?this.expressions[0]:this};b.prototype.isEmpty=function(){return!this.expressions.length};b.prototype.isStatement=function(a){var b,d,f,v;v=this.expressions;d=0;for(f=v.length;d<f;d++)if(b=v[d],b.isStatement(a))return!0;return!1};b.prototype.jumps=function(a){var b,d,f,v;v=this.expressions;d=0;for(f=v.length;d<f;d++)if(b=v[d],b=b.jumps(a))return b};b.prototype.makeReturn=function(a){var b,d;for(d=this.expressions.length;d--;)if(b=this.expressions[d],!(b instanceof e)){this.expressions[d]=
b.makeReturn(a);b instanceof F&&!b.expression&&this.expressions.splice(d,1);break}return this};b.prototype.compileToFragments=function(b,L){b=void 0===b?{}:b;return b.scope?a.prototype.compileToFragments.call(this,b,L):this.compileRoot(b)};b.prototype.compileNode=function(a){var L,d,f,v,c,e,h;this.tab=a.indent;h=a.level===x;d=[];e=this.expressions;f=L=0;for(v=e.length;L<v;f=++L)c=e[f],c=c.unwrapAll(),c=c.unfoldSoak(a)||c,c instanceof b?d.push(c.compileNode(a)):c.hoisted?c.compileToFragments(a):h?
(c.front=!0,f=c.compileToFragments(a),c.isStatement(a)||(f.unshift(this.makeCode(""+this.tab)),f.push(this.makeCode(";"))),d.push(f)):d.push(c.compileToFragments(a,u));if(h)return this.spaced?[].concat(this.joinFragmentArrays(d,"\n\n"),this.makeCode("\n")):this.joinFragmentArrays(d,"\n");L=d.length?this.joinFragmentArrays(d,", "):[this.makeCode("void 0")];return 1<d.length&&a.level>=u?this.wrapInBraces(L):L};b.prototype.compileRoot=function(a){var b,d,f,v,c;a.indent=a.bare?"":ra;a.level=x;this.spaced=
!0;a.scope=new S(null,this,null,null!=(f=a.referencedVars)?f:[]);c=a.locals||[];f=0;for(d=c.length;f<d;f++)v=c[f],a.scope.parameter(v);f=[];if(!a.bare){var h;h=this.expressions;d=[];b=v=0;for(c=h.length;v<c;b=++v){b=h[b];if(!(b.unwrap()instanceof e))break;d.push(b)}v=this.expressions.slice(d.length);this.expressions=d;d.length&&(f=this.compileNode(wa(a,{indent:""})),f.push(this.makeCode("\n")));this.expressions=v}d=this.compileWithDeclarations(a);E.expand(d);return a.bare?d:[].concat(f,this.makeCode("(function() {\n"),
d,this.makeCode("\n}).call(this);\n"))};b.prototype.compileWithDeclarations=function(a){var b,d,f,v,c,h;f=[];h=this.expressions;v=c=0;for(b=h.length;c<b&&(d=h[v],d=d.unwrap(),d instanceof e||d instanceof r);v=++c);a=wa(a,{level:x});v&&(d=this.expressions.splice(v,9E9),f=[this.spaced,!1],c=f[0],this.spaced=f[1],c=[this.compileNode(a),c],f=c[0],this.spaced=c[1],this.expressions=d);d=this.compileNode(a);c=a.scope;c.expressions===this&&(b=a.scope.hasDeclarations(),a=c.hasAssignments,b||a?(v&&f.push(this.makeCode("\n")),
f.push(this.makeCode(this.tab+"var ")),b&&f.push(this.makeCode(c.declaredVariables().join(", "))),a&&(b&&f.push(this.makeCode(",\n"+(this.tab+ra))),f.push(this.makeCode(c.assignedVariables().join(",\n"+(this.tab+ra))))),f.push(this.makeCode(";\n"+(this.spaced?"\n":"")))):f.length&&d.length&&f.push(this.makeCode("\n")));return f.concat(d)};b.wrap=function(a){return 1===a.length&&a[0]instanceof b?a[0]:new b(a)};b.prototype.children=["expressions"];return b}();k.Literal=r=function(){var b=function(b){var L;
L=a.call(this)||this;L.value=b;return L};$jscomp.inherits(b,a);b.prototype.assigns=function(a){return a===this.value};b.prototype.compileNode=function(a){return[this.makeCode(this.value)]};b.prototype.toString=function(){return" "+(this.isStatement()?a.prototype.toString.call(this):this.constructor.name)+": "+this.value};b.prototype.shouldCache=M;return b}();var Ta=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(Ta,r);k.NumberLiteral=Ta;var db=function(a){return Ta.apply(this,arguments)||
this};$jscomp.inherits(db,Ta);db.prototype.compileNode=function(){return[this.makeCode("2e308")]};k.InfinityLiteral=db;var Ja=function(){return Ta.call(this,"NaN")||this};$jscomp.inherits(Ja,Ta);Ja.prototype.compileNode=function(a){var b;b=[this.makeCode("0/0")];return a.level>=t?this.wrapInBraces(b):b};k.NaNLiteral=Ja;var Ma=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(Ma,r);k.StringLiteral=Ma;var Ca=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(Ca,r);k.RegexLiteral=
Ca;var ga=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(ga,r);k.PassthroughLiteral=ga;k.IdentifierLiteral=A=function(){var a=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(a,r);a.prototype.isAssignable=da;return a}();k.PropertyName=C=function(){var a=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(a,r);a.prototype.isAssignable=da;return a}();k.StatementLiteral=aa=function(){var a=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(a,
r);a.prototype.jumps=function(a){if("break"===this.value&&!(null!=a&&a.loop||null!=a&&a.block)||"continue"===this.value&&(null==a||!a.loop))return this};a.prototype.compileNode=function(a){return[this.makeCode(""+this.tab+this.value+";")]};a.prototype.isStatement=da;a.prototype.makeReturn=Na;return a}();var fa=function(){return r.call(this,"this")||this};$jscomp.inherits(fa,r);fa.prototype.compileNode=function(a){var b;a=null!=(b=a.scope.method)&&b.bound?a.scope.method.context:this.value;return[this.makeCode(a)]};
k.ThisLiteral=za=fa;var Ua=function(){return r.call(this,"undefined")||this};$jscomp.inherits(Ua,r);Ua.prototype.compileNode=function(a){return[this.makeCode(a.level>=h?"(void 0)":"void 0")]};k.UndefinedLiteral=Ua;var ya=function(){return r.call(this,"null")||this};$jscomp.inherits(ya,r);k.NullLiteral=ya;var gb=function(a){return r.apply(this,arguments)||this};$jscomp.inherits(gb,r);k.BooleanLiteral=gb;k.Return=F=function(){var b=function(b){var L;L=a.call(this)||this;L.expression=b;return L};$jscomp.inherits(b,
a);b.prototype.compileToFragments=function(v,L){var d,f;d=null!=(f=this.expression)?f.makeReturn():void 0;return!d||d instanceof b?a.prototype.compileToFragments.call(this,v,L):d.compileToFragments(v,L)};b.prototype.compileNode=function(a){var b;b=[];b.push(this.makeCode(this.tab+("return"+(this.expression?" ":""))));this.expression&&(b=b.concat(this.expression.compileToFragments(a,H)));b.push(this.makeCode(";"));return b};b.prototype.children=["expression"];b.prototype.isStatement=da;b.prototype.makeReturn=
Na;b.prototype.jumps=Na;return b}();var eb=function(a){return F.apply(this,arguments)||this};$jscomp.inherits(eb,F);eb.prototype.compileNode=function(a){null==a.scope.parent&&this.error("yield can only occur inside functions");return F.prototype.compileNode.call(this,a)};k.YieldReturn=eb;var fb=function(a){return F.apply(this,arguments)||this};$jscomp.inherits(fb,F);fb.prototype.compileNode=function(a){null==a.scope.parent&&this.error("await can only occur inside functions");return F.prototype.compileNode.call(this,
a)};k.AwaitReturn=fb;k.Value=I=function(){var b=function(v,L,d){var f;if(!L&&v instanceof b)return v;f=a.call(this)||this;f.base=v;f.properties=L||[];d&&(f[d]=!0);return f};$jscomp.inherits(b,a);b.prototype.add=function(a){this.properties=this.properties.concat(a);return this};b.prototype.hasProperties=function(){return!!this.properties.length};b.prototype.bareLiteral=function(a){return!this.properties.length&&this.base instanceof a};b.prototype.isArray=function(){return this.bareLiteral(sa)};b.prototype.isRange=
function(){return this.bareLiteral(Z)};b.prototype.shouldCache=function(){return this.hasProperties()||this.base.shouldCache()};b.prototype.isAssignable=function(){return this.hasProperties()||this.base.isAssignable()};b.prototype.isNumber=function(){return this.bareLiteral(Ta)};b.prototype.isString=function(){return this.bareLiteral(Ma)};b.prototype.isRegex=function(){return this.bareLiteral(Ca)};b.prototype.isUndefined=function(){return this.bareLiteral(Ua)};b.prototype.isNull=function(){return this.bareLiteral(ya)};
b.prototype.isBoolean=function(){return this.bareLiteral(gb)};b.prototype.isAtomic=function(){var a,b,d,f;f=this.properties.concat(this.base);a=0;for(b=f.length;a<b;a++)if(d=f[a],d.soak||d instanceof ta)return!1;return!0};b.prototype.isNotCallable=function(){return this.isNumber()||this.isString()||this.isRegex()||this.isArray()||this.isRange()||this.isSplice()||this.isObject()||this.isUndefined()||this.isNull()||this.isBoolean()};b.prototype.isStatement=function(a){return!this.properties.length&&
this.base.isStatement(a)};b.prototype.assigns=function(a){return!this.properties.length&&this.base.assigns(a)};b.prototype.jumps=function(a){return!this.properties.length&&this.base.jumps(a)};b.prototype.isObject=function(a){return this.properties.length?!1:this.base instanceof U&&(!a||this.base.generated)};b.prototype.isSplice=function(){var a;a=this.properties;return a[a.length-1]instanceof V};b.prototype.looksStatic=function(a){var b;return(this["this"]||this.base instanceof za||this.base.value===
a)&&1===this.properties.length&&"prototype"!==(null!=(b=this.properties[0].name)?b.value:void 0)};b.prototype.unwrap=function(){return this.properties.length?this:this.base};b.prototype.cacheReference=function(a){var L,d,f,c;L=this.properties;f=L[L.length-1];if(2>this.properties.length&&!this.base.shouldCache()&&(null==f||!f.shouldCache()))return[this,this];L=new b(this.base,this.properties.slice(0,-1));L.shouldCache()&&(d=new A(a.scope.freeVariable("base")),L=new b(new G(new ha(d,L))));if(!f)return[L,
d];f.shouldCache()&&(c=new A(a.scope.freeVariable("name")),f=new p(new ha(c,f.index)),c=new p(c));return[L.add(f),new b(d||L.base,[c||f])]};b.prototype.compileNode=function(a){var b,d,f,c,v;this.base.front=this.front;v=this.properties;b=this.base.compileToFragments(a,v.length?h:null);v.length&&ca.test(N(b))&&b.push(this.makeCode("."));d=0;for(f=v.length;d<f;d++)c=v[d],b.push.apply(b,[].concat($jscomp.arrayFromIterable(c.compileToFragments(a))));return b};b.prototype.unfoldSoak=function(a){var L=this;
return null!=this.unfoldedSoak?this.unfoldedSoak:this.unfoldedSoak=function(){var d,f,c,v,e;if(f=L.base.unfoldSoak(a))return f.body.properties.push.apply(f.body.properties,[].concat($jscomp.arrayFromIterable(L.properties))),f;e=L.properties;f=d=0;for(c=e.length;d<c;f=++d)if(v=e[f],v.soak)return v.soak=!1,d=new b(L.base,L.properties.slice(0,f)),c=new b(L.base,L.properties.slice(f)),d.shouldCache()&&(f=new A(a.scope.freeVariable("ref")),d=new G(new ha(f,d)),c.base=f),new B(new D(d),c,{soak:!0});return!1}()};
b.prototype.children=["base","properties"];return b}();k.Comment=e=function(){var b=function(b){var L;L=a.call(this)||this;L.comment=b;return L};$jscomp.inherits(b,a);b.prototype.compileNode=function(a,b){var d;d=this.comment.replace(/^(\s*)#(?=\s)/gm,"$1 *");d="/*"+Qa(d,this.tab)+(0<=Fa.call(d,"\n")?"\n"+this.tab:"")+" */";(b||a.level)===x&&(d=a.indent+d);return[this.makeCode("\n"),this.makeCode(d)]};b.prototype.isStatement=da;b.prototype.makeReturn=Na;return b}();k.Call=ta=function(){var b=function(b,
L,d){var f;L=void 0===L?[]:L;f=a.call(this)||this;f.variable=b;f.args=L;f.soak=d;f.isNew=!1;f.variable instanceof I&&f.variable.isNotCallable()&&f.variable.error("literal is not a function");return f};$jscomp.inherits(b,a);b.prototype.updateLocationDataIfMissing=function(b){var L,d;this.locationData&&this.needsUpdatedStartLocation&&(this.locationData.first_line=b.first_line,this.locationData.first_column=b.first_column,L=(null!=(d=this.variable)?d.base:void 0)||this.variable,L.needsUpdatedStartLocation&&
(this.variable.locationData.first_line=b.first_line,this.variable.locationData.first_column=b.first_column,L.updateLocationDataIfMissing(b)),delete this.needsUpdatedStartLocation);return a.prototype.updateLocationDataIfMissing.call(this,b)};b.prototype.newInstance=function(){var a,L;a=(null!=(L=this.variable)?L.base:void 0)||this.variable;a instanceof b&&!a.isNew?a.newInstance():this.isNew=!0;this.needsUpdatedStartLocation=!0;return this};b.prototype.unfoldSoak=function(a){var L,d,f,c,v;if(this.soak){if(this.variable instanceof
Y)L=new r(this.variable.compile(a)),d=new I(L),null==this.variable.accessor&&this.variable.error("Unsupported reference to 'super'");else{if(d=Ra(a,this,"variable"))return d;d=(new I(this.variable)).cacheReference(a);L=d[0];d=d[1]}d=new b(d,this.args);d.isNew=this.isNew;L=new r("typeof "+L.compile(a)+' \x3d\x3d\x3d "function"');return new B(L,new I(d),{soak:!0})}L=this;for(f=[];;)if(L.variable instanceof b)f.push(L),L=L.variable;else{if(!(L.variable instanceof I))break;f.push(L);if(!((L=L.variable.base)instanceof
b))break}v=f.reverse();f=0;for(c=v.length;f<c;f++)L=v[f],d&&(L.variable instanceof b?L.variable=d:L.variable.base=d),d=Ra(a,L,"variable");return d};b.prototype.compileNode=function(a){var b,d,f,c,v,e;null!=(f=this.variable)&&(f.front=this.front);f=[];e=this.args;d=c=0;for(v=e.length;c<v;d=++c)b=e[d],d&&f.push(this.makeCode(", ")),f.push.apply(f,[].concat($jscomp.arrayFromIterable(b.compileToFragments(a,u))));b=[];this.isNew&&(this.variable instanceof Y&&this.variable.error("Unsupported reference to 'super'"),
b.push(this.makeCode("new ")));b.push.apply(b,[].concat($jscomp.arrayFromIterable(this.variable.compileToFragments(a,h))));b.push.apply(b,[].concat([this.makeCode("(")],$jscomp.arrayFromIterable(f),[this.makeCode(")")]));return b};b.prototype.children=["variable","args"];return b}();k.SuperCall=X=function(){var a=function(a){return ta.apply(this,arguments)||this};$jscomp.inherits(a,ta);a.prototype.isStatement=function(a){var b;return(null!=(b=this.expressions)?b.length:void 0)&&a.level===x};a.prototype.compileNode=
function(a){var b,d,f;if(null==(d=this.expressions)||!d.length)return ta.prototype.compileNode.call(this,a);f=new r(N(ta.prototype.compileNode.call(this,a)));d=new g(this.expressions.slice());a.level>x&&(b=f.cache(a,null,da),f=b[0],b=b[1],d.push(b));d.unshift(f);return d.compileToFragments(a,a.level===x?a.level:u)};a.prototype.children=ta.prototype.children.concat(["expressions"]);return a}();k.Super=Y=function(){var b=function(b){var c;c=a.call(this)||this;c.accessor=b;return c};$jscomp.inherits(b,
a);b.prototype.compileNode=function(a){var b,d;b=a.scope.namedMethod();null!=b&&b.isMethod||this.error("cannot use super outside of an instance method");this.inCtor=!!b.ctor;if(!this.inCtor&&null==this.accessor){b=b.name;if(b.shouldCache()||b instanceof p&&b.index.isAssignable())d=new A(a.scope.parent.freeVariable("name")),b.index=new ha(d,b.index);this.accessor=null!=d?new p(d):b}return(new I(new r("super"),this.accessor?[this.accessor]:[])).compileToFragments(a)};b.prototype.children=["accessor"];
return b}();var Oa=function(a){a=void 0===a?[]:a;return ta.call(this,new I(new A("RegExp")),a,!1)||this};$jscomp.inherits(Oa,ta);k.RegexWithInterpolations=Oa;var hb=function(a,c,L){c instanceof Ma&&(c=new ba(g.wrap([new I(c)])));return ta.call(this,a,[c],L)||this};$jscomp.inherits(hb,ta);hb.prototype.compileNode=function(a){return this.variable.compileToFragments(a,h).concat(this.args[0].compileToFragments(a,u))};k.TaggedTemplateCall=hb;k.Extends=function(){var b=function(b,c){var d;d=a.call(this)||
this;d.child=b;d.parent=c;return d};$jscomp.inherits(b,a);b.prototype.compileToFragments=function(a){return(new ta(new I(new r(Ia("extend",a))),[this.child,this.parent])).compileToFragments(a)};b.prototype.children=["child","parent"];return b}();k.Access=xa=function(){var b=function(b,c){var d;d=a.call(this)||this;d.name=b;d.soak="soak"===c;return d};$jscomp.inherits(b,a);b.prototype.compileToFragments=function(a){var b,d;a=this.name.compileToFragments(a);b=this.name.unwrap();return b instanceof C?
(d=b.value,0<=Fa.call(ua,d))?[].concat([this.makeCode('["')],$jscomp.arrayFromIterable(a),[this.makeCode('"]')]):[].concat([this.makeCode(".")],$jscomp.arrayFromIterable(a)):[].concat([this.makeCode("[")],$jscomp.arrayFromIterable(a),[this.makeCode("]")])};b.prototype.children=["name"];b.prototype.shouldCache=M;return b}();k.Index=p=function(){var b=function(b){var c;c=a.call(this)||this;c.index=b;return c};$jscomp.inherits(b,a);b.prototype.compileToFragments=function(a){return[].concat(this.makeCode("["),
this.index.compileToFragments(a,H),this.makeCode("]"))};b.prototype.shouldCache=function(){return this.index.shouldCache()};b.prototype.children=["index"];return b}();k.Range=Z=function(){var b=function(b,c,d){var f;f=a.call(this)||this;f.from=b;f.to=c;f.exclusive="exclusive"===d;f.equals=f.exclusive?"":"\x3d";return f};$jscomp.inherits(b,a);b.prototype.compileVariables=function(a){var b,d;a=wa(a,{top:!0});d=ka(a,"shouldCache");b=this.cacheToCodeFragments(this.from.cache(a,u,d));this.fromC=b[0];this.fromVar=
b[1];b=this.cacheToCodeFragments(this.to.cache(a,u,d));this.toC=b[0];this.toVar=b[1];if(b=ka(a,"step"))a=this.cacheToCodeFragments(b.cache(a,u,d)),this.step=a[0],this.stepVar=a[1];this.fromNum=this.from.isNumber()?Number(this.fromVar):null;this.toNum=this.to.isNumber()?Number(this.toVar):null;return this.stepNum=null!=b&&b.isNumber()?Number(this.stepVar):null};b.prototype.compileNode=function(a){var b,d,f,c,v,e,h,g,l,k;this.fromVar||this.compileVariables(a);if(!a.index)return this.compileArray(a);
e=null!=this.fromNum&&null!=this.toNum;v=ka(a,"index");h=(a=ka(a,"name"))&&a!==v;k=v+" \x3d "+this.fromC;this.toC!==this.toVar&&(k+=", "+this.toC);this.step!==this.stepVar&&(k+=", "+this.step);c=[v+" \x3c"+this.equals,v+" \x3e"+this.equals];d=c[0];c=c[1];d=null!=this.stepNum?0<this.stepNum?d+" "+this.toVar:c+" "+this.toVar:e?(g=[this.fromNum,this.toNum],f=g[0],l=g[1],g,f<=l?d+" "+l:c+" "+l):(b=this.stepVar?this.stepVar+" \x3e 0":this.fromVar+" \x3c\x3d "+this.toVar,b+" ? "+d+" "+this.toVar+" : "+
c+" "+this.toVar);b=this.stepVar?v+" +\x3d "+this.stepVar:e?h?f<=l?"++"+v:"--"+v:f<=l?v+"++":v+"--":h?b+" ? ++"+v+" : --"+v:b+" ? "+v+"++ : "+v+"--";h&&(k=a+" \x3d "+k);h&&(b=a+" \x3d "+b);return[this.makeCode(k+"; "+d+"; "+b)]};b.prototype.compileArray=function(a){var b,d,f,c,v,e,h,g,l;if((d=null!=this.fromNum&&null!=this.toNum)&&20>=Math.abs(this.fromNum-this.toNum))return b=function(){g=[];for(var a=e=this.fromNum,d=this.toNum;e<=d?a<=d:a>=d;e<=d?a++:a--)g.push(a);return g}.apply(this),this.exclusive&&
b.pop(),[this.makeCode("["+b.join(", ")+"]")];c=this.tab+ra;f=a.scope.freeVariable("i",{single:!0});h=a.scope.freeVariable("results");v="\n"+c+h+" \x3d [];";d?(a.index=f,d=N(this.compileNode(a))):(l=f+" \x3d "+this.fromC+(this.toC!==this.toVar?", "+this.toC:""),d=this.fromVar+" \x3c\x3d "+this.toVar,d="var "+l+"; "+d+" ? "+f+" \x3c"+this.equals+" "+this.toVar+" : "+f+" \x3e"+this.equals+" "+this.toVar+"; "+d+" ? "+f+"++ : "+f+"--");f="{ "+h+".push("+f+"); }\n"+c+"return "+h+";\n"+a.indent;a=function(a){return null!=
a?a.contains(qa):void 0};if(a(this.from)||a(this.to))b=", arguments";return[this.makeCode("(function() {"+v+"\n"+c+"for ("+d+")"+f+"}).apply(this"+(null!=b?b:"")+")")]};b.prototype.children=["from","to"];return b}();k.Slice=V=function(){var b=function(b){var c;c=a.call(this)||this;c.range=b;return c};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,f,c,v;b=this.range;c=b.to;f=(b=b.from)&&b.compileToFragments(a,H)||[this.makeCode("0")];c&&(b=c.compileToFragments(a,H),d=N(b),this.range.exclusive||
-1!==+d)&&(v=", "+(this.range.exclusive?d:c.isNumber()?""+(+d+1):(b=c.compileToFragments(a,h),"+"+N(b)+" + 1 || 9e9")));return[this.makeCode(".slice("+N(f)+(v||"")+")")]};b.prototype.children=["range"];return b}();k.Obj=U=function(){var b=function(b,c){var d;c=void 0===c?!1:c;d=a.call(this)||this;d.generated=c;d.objects=d.properties=b||[];return d};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,f,c,v,h,g,l,k,n;k=this.properties;if(this.generated)for(b=0,f=k.length;b<f;b++)v=k[b],
v instanceof I&&v.error("cannot have an implicit value in an implicit object");f=a.indent+=ra;g=this.lastNonComment(this.properties);b=[];b.push(this.makeCode("{"+(0===k.length?"}":"\n")));d=v=0;for(l=k.length;v<l;d=++v)h=k[d],c=d===k.length-1?"":h===g||h instanceof e?"\n":",\n",d=h instanceof e?"":f,h instanceof ha&&("object"!==h.context&&h.operatorToken.error("unexpected "+h.operatorToken.value),h.variable instanceof I&&h.variable.hasProperties()&&h.variable.error("invalid object key")),h instanceof
I&&h["this"]&&(h=new ha(h.properties[0].name,h,"object")),h instanceof e||h instanceof ha||(h.shouldCache()?(n=h.base.cache(a),h=n[0],n=n[1],h instanceof A&&(h=new C(h.value)),h=new ha(h,n,"object")):h=new ha(h,h,"object")),d&&b.push(this.makeCode(d)),b.push.apply(b,[].concat($jscomp.arrayFromIterable(h.compileToFragments(a,x)))),c&&b.push(this.makeCode(c));0!==k.length&&b.push(this.makeCode("\n"+this.tab+"}"));return this.front?this.wrapInBraces(b):b};b.prototype.assigns=function(a){var b,d,f,c;
c=this.properties;b=0;for(d=c.length;b<d;b++)if(f=c[b],f.assigns(a))return!0;return!1};b.prototype.children=["properties"];return b}();k.Arr=sa=function(){var b=function(b){var c;c=a.call(this)||this;c.objects=b||[];return c};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,f,c,v;if(!this.objects.length)return[this.makeCode("[]")];a.indent+=ra;b=[];var e;v=this.objects;e=[];f=0;for(c=v.length;f<c;f++)d=v[f],e.push(d.compileToFragments(a,u));f=c=0;for(v=e.length;c<v;f=++c)d=e[f],f&&
b.push(this.makeCode(", ")),b.push.apply(b,[].concat($jscomp.arrayFromIterable(d)));0<=N(b).indexOf("\n")?(b.unshift(this.makeCode("[\n"+a.indent)),b.push(this.makeCode("\n"+this.tab+"]"))):(b.unshift(this.makeCode("[")),b.push(this.makeCode("]")));return b};b.prototype.assigns=function(a){var b,d,f,c;c=this.objects;b=0;for(d=c.length;b<d;b++)if(f=c[b],f.assigns(a))return!0;return!1};b.prototype.children=["objects"];return b}();k.Class=m=function(){var b=function(b,c,d){var f;d=void 0===d?new g:d;
f=a.call(this)||this;f.variable=b;f.parent=c;f.body=d;return f};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d;this.name=this.determineName();b=this.walkBody();this.parent instanceof I&&!this.parent.hasProperties()&&(d=this.parent.base.value);this.hasNameClash=null!=this.name&&this.name===d;b||this.hasNameClash?(this.compileNode=this.compileClassDeclaration,d=(new y(this,b)).compileToFragments(a),this.compileNode=this.constructor.prototype.compileNode):(d=this.compileClassDeclaration(a),
null==this.name&&a.level===x&&(d=this.wrapInBraces(d)));return this.variable?(b=new ha(this.variable,new r(""),null,{moduleDeclaration:this.moduleDeclaration}),[].concat($jscomp.arrayFromIterable(b.compileToFragments(a)),$jscomp.arrayFromIterable(d))):d};b.prototype.compileClassDeclaration=function(a){var b;(this.externalCtor||this.boundMethods.length)&&null==this.ctor&&(this.ctor=this.makeDefaultConstructor());null!=(b=this.ctor)&&(b.noReturn=!0);this.boundMethods.length&&this.proxyBoundMethods(a);
a.indent+=ra;b=[];b.push(this.makeCode("class "));this.name&&b.push(this.makeCode(this.name+" "));this.parent&&b.push.apply(b,[].concat([this.makeCode("extends ")],$jscomp.arrayFromIterable(this.parent.compileToFragments(a)),[this.makeCode(" ")]));b.push(this.makeCode("{"));this.body.isEmpty()||(this.body.spaced=!0,b.push(this.makeCode("\n")),b.push.apply(b,[].concat($jscomp.arrayFromIterable(this.body.compileToFragments(a,x)))),b.push(this.makeCode("\n"+this.tab)));b.push(this.makeCode("}"));return b};
b.prototype.determineName=function(){var a,b;if(!this.variable)return null;b=this.variable.properties;b=(a=b[b.length-1])?a instanceof xa&&a.name:this.variable.base;if(!(b instanceof A||b instanceof C))return null;b=b.value;a||(a=na(b))&&this.variable.error(a);return 0<=Fa.call(ua,b)?"_"+b:b};b.prototype.walkBody=function(){var a,b,d,f,h,l,k,n,m,p,u,t,r;this.ctor=null;this.boundMethods=[];k=[];f=this.body.expressions;l=0;t=f.slice();n=0;for(m=t.length;n<m;n++)if(d=t[n],d instanceof I&&d.isObject(!0)){p=
d.base.properties;h=[];r=b=0;for(u=function(){if(b>r)return h.push(new I(new U(p.slice(r,b),!0)))};a=p[b];)(a=this.addInitializerExpression(a))?(u(),h.push(a),k.push(a),r=b+1):k[k.length-1]instanceof e&&(h.pop(),k.pop(),r--),b++;u();[].splice.apply(f,[l,l-l+1].concat(h));h;l+=h.length}else(a=this.addInitializerExpression(d))?(k.push(a),f[l]=a):k[k.length-1]instanceof e&&k.pop(),l+=1;l=0;for(n=k.length;l<n;l++)m=k[l],m instanceof c&&(m.ctor?(this.ctor&&m.error("Cannot define more than one constructor in a class"),
this.ctor=m):m.bound&&m.isStatic?m.context=this.name:m.bound&&(this.boundMethods.push(m.name),m.bound=!1));if(k.length!==f.length)return this.body.expressions=function(){var a,b,f;f=[];a=0;for(b=k.length;a<b;a++)d=k[a],f.push(d.hoist());return f}(),new g(f)};b.prototype.addInitializerExpression=function(a){switch(!1){case !(a instanceof e):return a;case !this.validInitializerMethod(a):return this.addInitializerMethod(a);default:return null}};b.prototype.validInitializerMethod=function(a){return a instanceof
ha&&a.value instanceof c?"object"!==a.context||a.variable.hasProperties()?a.variable.looksStatic(this.name)&&(this.name||!a.value.bound):!0:!1};b.prototype.addInitializerMethod=function(a){var b;b=a.variable;a=a.value;a.isMethod=!0;a.isStatic=b.looksStatic(this.name);a.isStatic?a.name=b.properties[0]:(b=b.base,a.name=new (b.shouldCache()?p:xa)(b),a.name.updateLocationDataIfMissing(b.locationData),"constructor"===b.value&&(a.ctor=this.parent?"derived":"base"),a.bound&&a.ctor&&a.error("Cannot define a constructor as a bound function"));
return a};b.prototype.makeDefaultConstructor=function(){var a,b,d;d=this.addInitializerMethod(new ha(new I(new C("constructor")),new c));this.body.unshift(d);this.parent&&d.body.push(new X(new Y,[new K(new A("arguments"))]));this.externalCtor&&(b=new I(this.externalCtor,[new xa(new C("apply"))]),a=[new za,new A("arguments")],d.body.push(new ta(b,a)),d.body.makeReturn());return d};b.prototype.proxyBoundMethods=function(a){var b,d=this.ctor,f,c,e;c=this.boundMethods;e=[];for(f=c.length-1;0<=f;f+=-1)b=
c[f],b=(new I(new za,[b])).compile(a),e.push(new r(b+" \x3d "+Ia("bind",a)+"("+b+", this)"));d.thisAssignments=e;return null};b.prototype.children=["variable","parent","body"];return b}();k.ExecutableClassBody=y=function(){var b=function(b,c){var d;c=void 0===c?new g:c;d=a.call(this)||this;d["class"]=b;d.body=c;return d};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,f,e,v,h;(f=this.body.jumps())&&f.error("Class bodies cannot contain pure statements");(d=this.body.contains(qa))&&
d.error("Class bodies shouldn't reference arguments");this.name=null!=(e=this["class"].name)?e:this.defaultClassVariableName;d=this.walkBody();this.setContext();f=new A(this.name);b=[];h=new c([],this.body);e=new G(new ta(h,b));this.body.spaced=!0;a.classScope=h.makeScope(a.scope);this["class"].hasNameClash&&(v=new A(a.classScope.freeVariable("superClass")),h.params.push(new P(v)),b.push(this["class"].parent),this["class"].parent=v);this.externalCtor&&(b=new A(a.classScope.freeVariable("ctor",{reserve:!1})),
this["class"].externalCtor=b,this.externalCtor.variable.base=b);this.name!==this["class"].name?this.body.expressions.unshift(new ha(new A(this.name),this["class"])):this.body.expressions.unshift(this["class"]);this.body.expressions.unshift.apply(this.body.expressions,[].concat($jscomp.arrayFromIterable(d)));this.body.push(f);return e.compileToFragments(a)};b.prototype.walkBody=function(){var a=this,b,d,f;b=[];for(f=0;(d=this.body.expressions[f])&&(d instanceof e||d instanceof I&&d.isString());)d.hoisted?
f++:b.push.apply(b,[].concat($jscomp.arrayFromIterable(this.body.expressions.splice(f,1))));this.traverseChildren(!1,function(b){var d,f,c,e,v,h;if(b instanceof m||b instanceof E)return!1;d=!0;if(b instanceof g){h=b.expressions;f=c=0;for(e=h.length;c<e;f=++c)v=h[f],v instanceof I&&v.isObject(!0)?(d=!1,b.expressions[f]=a.addProperties(v.base.properties)):v instanceof ha&&v.variable.looksStatic(a.name)&&(v.value.isStatic=!0);b.expressions=ea(b.expressions)}return d});return b};b.prototype.setContext=
function(){var a=this;return this.body.traverseChildren(!1,function(b){if(b instanceof za)return b.value=a.name;if(b instanceof c&&b.bound)return b.context=a.name})};b.prototype.addProperties=function(a){var b,d,f,v,h,g;g=[];v=0;for(h=a.length;v<h;v++)b=a[v],d=b.variable,d=null!=d?d.base:void 0,f=b.value,delete b.context,b instanceof e||("constructor"===d.value?(f instanceof c&&d.error("constructors must be defined at the top level of a class body"),b=this.externalCtor=new ha(new I,f)):b.variable["this"]?
b.value instanceof c&&(b.value.isStatic=!0):(d=new (d.shouldCache()?p:xa)(d),f=new xa(new C("prototype")),d=new I(new za,[f,d]),b.variable=d)),g.push(b);return ia(g)};b.prototype.children=["class","body"];b.prototype.defaultClassVariableName="_Class";return b}();k.ModuleDeclaration=W=function(){var b=function(b,c){var d;d=a.call(this)||this;d.clause=b;d.source=c;d.checkSource();return d};$jscomp.inherits(b,a);b.prototype.checkSource=function(){if(null!=this.source&&this.source instanceof ba)return this.source.error("the name of the module to be imported from must be an uninterpolated string")};
b.prototype.checkScope=function(a,b){if(0!==a.indent.length)return this.error(b+" statements must be at top-level scope")};b.prototype.children=["clause","source"];b.prototype.isStatement=da;b.prototype.jumps=Na;b.prototype.makeReturn=Na;return b}();var Za=function(a){return W.apply(this,arguments)||this};$jscomp.inherits(Za,W);Za.prototype.compileNode=function(a){var b,c;this.checkScope(a,"import");a.importedSymbols=[];b=[];b.push(this.makeCode(this.tab+"import "));null!=this.clause&&b.push.apply(b,
[].concat($jscomp.arrayFromIterable(this.clause.compileNode(a))));null!=(null!=(c=this.source)?c.value:void 0)&&(null!==this.clause&&b.push(this.makeCode(" from ")),b.push(this.makeCode(this.source.value)));b.push(this.makeCode(";"));return b};k.ImportDeclaration=Za;k.ImportClause=function(){var b=function(b,c){var d;d=a.call(this)||this;d.defaultBinding=b;d.namedImports=c;return d};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b;b=[];null!=this.defaultBinding&&(b.push.apply(b,[].concat($jscomp.arrayFromIterable(this.defaultBinding.compileNode(a)))),
null!=this.namedImports&&b.push(this.makeCode(", ")));null!=this.namedImports&&b.push.apply(b,[].concat($jscomp.arrayFromIterable(this.namedImports.compileNode(a))));return b};b.prototype.children=["defaultBinding","namedImports"];return b}();var Ga=function(a){return W.apply(this,arguments)||this};$jscomp.inherits(Ga,W);Ga.prototype.compileNode=function(a){var b,c;this.checkScope(a,"export");b=[];b.push(this.makeCode(this.tab+"export "));this instanceof z&&b.push(this.makeCode("default "));this instanceof
z||!(this.clause instanceof ha||this.clause instanceof m)||(this.clause instanceof m&&!this.clause.variable&&this.clause.error("anonymous classes cannot be exported"),b.push(this.makeCode("var ")),this.clause.moduleDeclaration="export");b=null!=this.clause.body&&this.clause.body instanceof g?b.concat(this.clause.compileToFragments(a,x)):b.concat(this.clause.compileNode(a));null!=(null!=(c=this.source)?c.value:void 0)&&b.push(this.makeCode(" from "+this.source.value));b.push(this.makeCode(";"));return b};
k.ExportDeclaration=Ga;var mb=function(a){return Ga.apply(this,arguments)||this};$jscomp.inherits(mb,Ga);k.ExportNamedDeclaration=mb;var La=function(a){return Ga.apply(this,arguments)||this};$jscomp.inherits(La,Ga);k.ExportDefaultDeclaration=z=La;var Ka=function(a){return Ga.apply(this,arguments)||this};$jscomp.inherits(Ka,Ga);k.ExportAllDeclaration=Ka;k.ModuleSpecifierList=Q=function(){var b=function(b){var c;c=a.call(this)||this;c.specifiers=b;return c};$jscomp.inherits(b,a);b.prototype.compileNode=
function(a){var b,d,f,c,e;b=[];a.indent+=ra;var h;e=this.specifiers;h=[];f=0;for(c=e.length;f<c;f++)d=e[f],h.push(d.compileToFragments(a,u));if(0!==this.specifiers.length){b.push(this.makeCode("{\n"+a.indent));f=c=0;for(e=h.length;c<e;f=++c)d=h[f],f&&b.push(this.makeCode(",\n"+a.indent)),b.push.apply(b,[].concat($jscomp.arrayFromIterable(d)));b.push(this.makeCode("\n}"))}else b.push(this.makeCode("{}"));return b};b.prototype.children=["specifiers"];return b}();var nb=function(a){return Q.apply(this,
arguments)||this};$jscomp.inherits(nb,Q);k.ImportSpecifierList=nb;var ob=function(a){return Q.apply(this,arguments)||this};$jscomp.inherits(ob,Q);k.ExportSpecifierList=ob;k.ModuleSpecifier=T=function(){var b=function(b,c,d){var f;f=a.call(this)||this;f.original=b;f.alias=c;f.moduleDeclarationType=d;f.identifier=null!=f.alias?f.alias.value:f.original.value;return f};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){a.scope.find(this.identifier,this.moduleDeclarationType);a=[];a.push(this.makeCode(this.original.value));
null!=this.alias&&a.push(this.makeCode(" as "+this.alias.value));return a};b.prototype.children=["original","alias"];return b}();var Va=function(a,c){return T.call(this,a,c,"import")||this};$jscomp.inherits(Va,T);Va.prototype.compileNode=function(a){var b;(b=this.identifier,0<=Fa.call(a.importedSymbols,b))||a.scope.check(this.identifier)?this.error("'"+this.identifier+"' has already been declared"):a.importedSymbols.push(this.identifier);return T.prototype.compileNode.call(this,a)};k.ImportSpecifier=
Va;var ib=function(a){return Va.apply(this,arguments)||this};$jscomp.inherits(ib,Va);k.ImportDefaultSpecifier=ib;var pb=function(a){return Va.apply(this,arguments)||this};$jscomp.inherits(pb,Va);k.ImportNamespaceSpecifier=pb;var qb=function(a,c){return T.call(this,a,c,"export")||this};$jscomp.inherits(qb,T);k.ExportSpecifier=qb;k.Assign=ha=function(){var b=function(b,c,d,f){var e;f=void 0===f?{}:f;e=a.call(this)||this;e.variable=b;e.value=c;e.context=d;e.param=f.param;e.subpattern=f.subpattern;e.operatorToken=
f.operatorToken;e.moduleDeclaration=f.moduleDeclaration;return e};$jscomp.inherits(b,a);b.prototype.isStatement=function(a){return(null!=a?a.level:void 0)===x&&null!=this.context&&(this.moduleDeclaration||0<=Fa.call(this.context,"?"))};b.prototype.checkAssignability=function(a,b){if(Object.prototype.hasOwnProperty.call(a.scope.positions,b.value)&&"import"===a.scope.variables[a.scope.positions[b.value]].type)return b.error("'"+b.value+"' is read-only")};b.prototype.assigns=function(a){return this["object"===
this.context?"value":"variable"].assigns(a)};b.prototype.unfoldSoak=function(a){return Ra(a,this,"variable")};b.prototype.compileNode=function(a){var b,d,f,e,h,v,g;if(d=this.variable instanceof I){if(this.variable.isArray()||this.variable.isObject())return this.compilePatternMatch(a);if(this.variable.isSplice())return this.compileSplice(a);if("||\x3d"===(e=this.context)||"\x26\x26\x3d"===e||"?\x3d"===e)return this.compileConditional(a);if("**\x3d"===(h=this.context)||"//\x3d"===h||"%%\x3d"===h)return this.compileSpecialMath(a)}this.value instanceof
c&&(this.value.isStatic?this.value.name=this.variable.properties[0]:2<=(null!=(v=this.variable.properties)?v.length:void 0)&&(h=this.variable.properties,3<=h.length?Ea.call(h,0,f=h.length-2):f=0,e=h[f++],f=h[f++],"prototype"===(null!=(g=e.name)?g.value:void 0)&&(this.value.name=f)));this.context||(g=this.variable.unwrapAll(),g.isAssignable()||this.variable.error("'"+this.variable.compile(a)+"' can't be assigned"),"function"===typeof g.hasProperties&&g.hasProperties()||(this.moduleDeclaration?(this.checkAssignability(a,
g),a.scope.add(g.value,this.moduleDeclaration)):this.param?a.scope.add(g.value,"var"):(this.checkAssignability(a,g),a.scope.find(g.value))));g=this.value.compileToFragments(a,u);d&&this.variable.base instanceof U&&(this.variable.front=!0);d=this.variable.compileToFragments(a,u);if("object"===this.context){if(this.variable.shouldCache())d.unshift(this.makeCode("[")),d.push(this.makeCode("]"));else if(b=N(d),0<=Fa.call(ua,b))d.unshift(this.makeCode('"')),d.push(this.makeCode('"'));return d.concat(this.makeCode(": "),
g)}b=d.concat(this.makeCode(" "+(this.context||"\x3d")+" "),g);return a.level<=u?b:this.wrapInBraces(b)};b.prototype.compilePatternMatch=function(a){var c,d,f,e,h,v,g,l,k,n,m,q,H,y,z,B;y=a.level===x;l=this.value;q=this.variable.base.objects;if(!(H=q.length))return d=l.compileToFragments(a),a.level>=t?this.wrapInBraces(d):d;m=q[0];1===H&&m instanceof w&&m.error("Destructuring assignment has no target");v=this.variable.isObject();if(y&&1===H&&!(m instanceof K))return f=null,m instanceof b&&"object"===
m.context?(d=m,e=d.variable,h=e.base,m=d.value,m instanceof b&&(f=m.value,m=m.variable)):(m instanceof b&&(f=m.value,m=m.variable),h=v?m["this"]?m.properties[0].name:new C(m.unwrap().value):new Ta(0)),c=h.unwrap()instanceof C,l=new I(l),l.properties.push(new (c?xa:p)(h)),(n=na(m.unwrap().value))&&m.error(n),f&&(l=new O("?",l,f)),(new b(m,l,null,{param:this.param})).compileToFragments(a,x);z=l.compileToFragments(a,u);B=N(z);d=[];e=!1;l.unwrap()instanceof A&&!this.variable.assigns(B)||(d.push([].concat([this.makeCode((f=
a.scope.freeVariable("ref"))+" \x3d ")],$jscomp.arrayFromIterable(z))),z=[this.makeCode(f)],B=f);f=l=0;for(k=q.length;l<k;f=++l){m=q[f];h=f;if(!e&&m instanceof K)n=m.name.unwrap().value,m=m.unwrap(),h=H+" \x3c\x3d "+B+".length ? "+Ia("slice",a)+".call("+B+", "+f,(c=H-f-1)?(g=a.scope.freeVariable("i",{single:!0}),h+=", "+g+" \x3d "+B+".length - "+c+") : ("+g+" \x3d "+f+", [])"):h+=") : []",h=new r(h),e=g+"++";else if(!e&&m instanceof w){if(c=H-f-1)1===c?e=B+".length - 1":(g=a.scope.freeVariable("i",
{single:!0}),h=new r(g+" \x3d "+B+".length - "+c),e=g+"++",d.push(h.compileToFragments(a,u)));continue}else(m instanceof K||m instanceof w)&&m.error("multiple splats/expansions are disallowed in an assignment"),f=null,m instanceof b&&"object"===m.context?(h=m.variable,h=h.base,m=m.value,m instanceof b&&(f=m.value,m=m.variable)):(m instanceof b&&(f=m.value,m=m.variable),h=v?m["this"]?m.properties[0].name:new C(m.unwrap().value):new r(e||h)),n=m.unwrap().value,c=h.unwrap()instanceof C,h=new I(new r(B),
[new (c?xa:p)(h)]),f&&(h=new O("?",h,f));null!=n&&(n=na(n))&&m.error(n);d.push((new b(m,h,null,{param:this.param,subpattern:!0})).compileToFragments(a,u))}y||this.subpattern||d.push(z);d=this.joinFragmentArrays(d,", ");return a.level<u?d:this.wrapInBraces(d)};b.prototype.compileConditional=function(a){var c,d;d=this.variable.cacheReference(a);c=d[0];d=d[1];c.properties.length||!(c.base instanceof r)||c.base instanceof za||a.scope.check(c.base.value)||this.variable.error('the variable "'+c.base.value+
"\" can't be assigned with "+this.context+" because it has not been declared before");if(0<=Fa.call(this.context,"?"))return a.isExistentialEquals=!0,(new B(new D(c),d,{type:"if"})).addElse(new b(d,this.value,"\x3d")).compileToFragments(a);c=(new O(this.context.slice(0,-1),c,new b(d,this.value,"\x3d"))).compileToFragments(a);return a.level<=u?c:this.wrapInBraces(c)};b.prototype.compileSpecialMath=function(a){var c,d;d=this.variable.cacheReference(a);c=d[0];d=d[1];return(new b(c,new O(this.context.slice(0,
-1),d,this.value))).compileToFragments(a)};b.prototype.compileSplice=function(a){var b,d,f,c,e,g;c=this.variable.properties.pop().range;f=c.from;b=c.to;d=c.exclusive;g=this.variable.compile(a);f?(e=this.cacheToCodeFragments(f.cache(a,t)),c=e[0],e=e[1]):c=e="0";b?null!=f&&f.isNumber()&&b.isNumber()?(b=b.compile(a)-e,d||(b+=1)):(b=b.compile(a,h)+" - "+e,d||(b+=" + 1")):b="9e9";d=this.value.cache(a,u);f=d[0];d=d[1];b=[].concat(this.makeCode("[].splice.apply("+g+", ["+c+", "+b+"].concat("),f,this.makeCode(")), "),
d);return a.level>x?this.wrapInBraces(b):b};b.prototype.children=["variable","value"];return b}();k.Code=c=function(){var b=function(b,c,d){var f;f=a.call(this)||this;f.params=b||[];f.body=c||new g;f.bound="boundfunc"===d;f.isGenerator=!1;f.isAsync=!1;f.isMethod=!1;f.body.traverseChildren(!1,function(a){if(a instanceof O&&a.isYield()||a instanceof eb)f.isGenerator=!0;if(a instanceof O&&a.isAwait()||a instanceof fb)f.isAsync=!0;if(f.isGenerator&&f.isAsync)return a.error("function can't contain both yield and await")});
return f};$jscomp.inherits(b,a);b.prototype.isStatement=function(){return this.isMethod};b.prototype.makeScope=function(a){return new S(a,this.body,this)};b.prototype.compileNode=function(a){var b,d,f,c,e,g,v,l,k,n,m,p,u,t,r,x,q,H,y;this.ctor&&(this.isAsync&&this.name.error("Class constructor may not be async"),this.isGenerator&&this.name.error("Class constructor may not be a generator"));this.bound&&(null!=(b=a.scope.method)&&b.bound&&(this.context=a.scope.method.context),this.context||(this.context=
"this"));a.scope=ka(a,"classScope")||this.makeScope(a.scope);a.scope.shared=ka(a,"sharedScope");a.indent+=ra;delete a.bare;delete a.isExistentialEquals;b=[];c=[];y=null!=(g=null!=(e=this.thisAssignments)?e.slice():void 0)?g:[];q=[];e=g=!1;x=[];this.eachParamName(function(b,d,c){0<=Fa.call(x,b)&&d.error("multiple parameters named '"+b+"'");x.push(b);if(d["this"])return b=d.properties[0].name.value,0<=Fa.call(ua,b)&&(b="_"+b),b=new A(a.scope.freeVariable(b)),c.renameParam(d,b),y.push(new ha(d,b))});
H=this.params;f=l=0;for(n=H.length;l<n;f=++l)if(r=H[f],r.splat||r instanceof w)g?r.error("only one splat or expansion parameter is allowed per function definition"):r instanceof w&&1===this.params.length&&r.error("an expansion parameter cannot be the only parameter in a function definition"),g=!0,r.splat?(b.push(f=r.asReference(a)),m=N(f.compileNode(a)),r.shouldCache()&&c.push(new ha(new I(r.name),f,"\x3d",{param:!0}))):(m=a.scope.freeVariable("args"),b.push(new I(new A(m)))),a.scope.parameter(m);
else{if(r.shouldCache()||e)e=r.assignedInBody=!0,null!=r.value?(f=new O("\x3d\x3d",r,new Ua),v=new ha(new I(r.name),r.value,"\x3d",{param:!0}),c.push(new B(f,v))):c.push(new ha(new I(r.name),r.asReference(a),"\x3d",{param:!0}));g?(q.push(r),null==r.value||r.shouldCache()||(f=new O("\x3d\x3d",r,new Ua),v=new ha(new I(r.name),r.value,"\x3d"),c.push(new B(f,v))),null!=(null!=(k=r.name)?k.value:void 0)&&a.scope.add(r.name.value,"var",!0)):(f=r.shouldCache()?r.asReference(a):null==r.value||r.assignedInBody?
r:new ha(new I(r.name),r.value,"\x3d"),a.scope.parameter(N((null!=r.value?r:f).compileToFragments(a))),b.push(f))}0!==q.length&&c.unshift(new ha(new I(new sa([].concat([new K(new A(m))],$jscomp.arrayFromIterable(function(){var b,d,c;c=[];b=0;for(d=q.length;b<d;b++)r=q[b],c.push(r.asReference(a));return c}())))),new I(new A(m))));k=this.body.isEmpty();this.expandCtorSuper(y)||this.body.expressions.unshift.apply(this.body.expressions,[].concat($jscomp.arrayFromIterable(y)));this.body.expressions.unshift.apply(this.body.expressions,
[].concat($jscomp.arrayFromIterable(c)));k||this.noReturn||this.body.makeReturn();u=[];this.isMethod&&this.isStatic&&u.push("static");this.isAsync&&u.push("async");this.isMethod||this.bound?this.isGenerator&&u.push("*"):u.push("function"+(this.isGenerator?"*":""));c=[this.makeCode("(")];f=k=0;for(m=b.length;k<m;f=++k)r=b[f],f&&c.push(this.makeCode(", ")),g&&f===b.length-1&&c.push(this.makeCode("...")),c.push.apply(c,[].concat($jscomp.arrayFromIterable(r.compileToFragments(a))));c.push(this.makeCode(")"));
this.body.isEmpty()||(d=this.body.compileWithDeclarations(a));this.isMethod&&(t=[a.scope,a.scope.parent],b=t[0],a.scope=t[1],t=this.name.compileToFragments(a),"."===t[0].code&&t.shift(),a.scope=b);b=this.joinFragmentArrays(function(){var a,b,d;d=[];a=0;for(b=u.length;a<b;a++)p=u[a],d.push(this.makeCode(p));return d}.call(this)," ");u.length&&t&&b.push(this.makeCode(" "));t&&b.push.apply(b,[].concat($jscomp.arrayFromIterable(t)));b.push.apply(b,[].concat($jscomp.arrayFromIterable(c)));this.bound&&
!this.isMethod&&b.push(this.makeCode(" \x3d\x3e"));b.push(this.makeCode(" {"));null!=d&&d.length&&b.push.apply(b,[].concat([this.makeCode("\n")],$jscomp.arrayFromIterable(d),[this.makeCode("\n"+this.tab)]));b.push(this.makeCode("}"));return this.isMethod?[].concat([this.makeCode(this.tab)],$jscomp.arrayFromIterable(b)):this.front||a.level>=h?this.wrapInBraces(b):b};b.prototype.eachParamName=function(a){var b,d,c,e,h;e=this.params;h=[];b=0;for(d=e.length;b<d;b++)c=e[b],h.push(c.eachName(a));return h};
b.prototype.traverseChildren=function(b,c){if(b)return a.prototype.traverseChildren.call(this,b,c)};b.prototype.replaceInContext=function(b,c){return this.bound?a.prototype.replaceInContext.call(this,b,c):!1};b.prototype.expandCtorSuper=function(a){var b=this,d,c,e;if(!this.ctor)return!1;this.eachSuperCall(g.wrap(this.params),function(a){return a.error("'super' is not allowed in constructor parameter defaults")});e=this.eachSuperCall(this.body,function(d){"base"===b.ctor&&d.error("'super' is only allowed in derived class constructors");
return d.expressions=a});d=a.length&&a.length!==(null!=(c=this.thisAssignments)?c.length:void 0);"derived"===this.ctor&&!e&&d&&(d=a[0].variable,d.error("Can't use @params in derived class constructors without calling super"));return e};b.prototype.eachSuperCall=function(a,c){var d=this,f;f=!1;a.traverseChildren(!0,function(a){a instanceof X?(f=!0,c(a)):a instanceof za&&"derived"===d.ctor&&!f&&a.error("Can't reference 'this' before calling super in derived class constructors");return!(a instanceof
X)&&(!(a instanceof b)||a.bound)});return f};b.prototype.children=["params","body"];b.prototype.jumps=M;return b}();k.Param=P=function(){var b=function(b,c,d){var f;f=a.call(this)||this;f.name=b;f.value=c;f.splat=d;(b=na(f.name.unwrapAll().value))&&f.name.error(b);f.name instanceof U&&f.name.generated&&(b=f.name.objects[0].operatorToken,b.error("unexpected "+b.value));return f};$jscomp.inherits(b,a);b.prototype.compileToFragments=function(a){return this.name.compileToFragments(a,u)};b.prototype.asReference=
function(a){var b;if(this.reference)return this.reference;b=this.name;b["this"]?(b=b.properties[0].name.value,0<=Fa.call(ua,b)&&(b="_"+b),b=new A(a.scope.freeVariable(b))):b.shouldCache()&&(b=new A(a.scope.freeVariable("arg")));b=new I(b);b.updateLocationDataIfMissing(this.locationData);return this.reference=b};b.prototype.shouldCache=function(){return this.name.shouldCache()};b.prototype.eachName=function(a,b){b=void 0===b?this.name:b;var d=this,c,e,h,g;c=function(b){return a("@"+b.properties[0].name.value,
b,d)};if(b instanceof r)return a(b.value,b,this);if(b instanceof I)return c(b);b=null!=(e=b.objects)?e:[];e=0;for(h=b.length;e<h;e++)g=b[e],g instanceof ha&&null==g.context&&(g=g.variable),g instanceof ha?(g.value instanceof ha&&(g=g.value),this.eachName(a,g.value.unwrap())):g instanceof K?(g=g.name.unwrap(),a(g.value,g,this)):g instanceof I?g.isArray()||g.isObject()?this.eachName(a,g.base):g["this"]?c(g):a(g.base.value,g.base,this):g instanceof w||g.error("illegal parameter "+g.compile())};b.prototype.renameParam=
function(a,b){return this.replaceInContext(function(b){return b===a},function(a,c){return c instanceof U?(c=a,a["this"]&&(c=a.properties[0].name),new ha(new I(c),b,"object")):b})};b.prototype.children=["name","value"];return b}();k.Splat=K=function(){var b=function(b){var c;c=a.call(this)||this;c.name=b.compile?b:new r(b);return c};$jscomp.inherits(b,a);b.prototype.assigns=function(a){return this.name.assigns(a)};b.prototype.compileToFragments=function(a){return[].concat([this.makeCode("...")],$jscomp.arrayFromIterable(this.name.compileToFragments(a)))};
b.prototype.unwrap=function(){return this.name};b.prototype.children=["name"];b.prototype.isAssignable=da;return b}();k.Expansion=w=function(){var b=function(b){return a.apply(this,arguments)||this};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){return this.error("Expansion must be used inside a destructuring assignment or parameter list")};b.prototype.asReference=function(a){return this};b.prototype.eachName=function(a){};b.prototype.shouldCache=M;return b}();k.While=ja=function(){var b=
function(b,c){var d;d=a.call(this)||this;d.condition=null!=c&&c.invert?b.invert():b;d.guard=null!=c?c.guard:void 0;return d};$jscomp.inherits(b,a);b.prototype.makeReturn=function(b){if(b)return a.prototype.makeReturn.call(this,b);this.returns=!this.jumps({loop:!0});return this};b.prototype.addBody=function(a){this.body=a;return this};b.prototype.jumps=function(){var a,b,d,c;a=this.body.expressions;if(!a.length)return!1;b=0;for(c=a.length;b<c;b++)if(d=a[b],d=d.jumps({loop:!0}))return d;return!1};b.prototype.compileNode=
function(a){var b,d,c;a.indent+=ra;c="";b=this.body;b.isEmpty()?b=this.makeCode(""):(this.returns&&(b.makeReturn(d=a.scope.freeVariable("results")),c=""+this.tab+d+" \x3d [];\n"),this.guard&&(1<b.expressions.length?b.expressions.unshift(new B((new G(this.guard)).invert(),new aa("continue"))):this.guard&&(b=g.wrap([new B(this.guard,b)]))),b=[].concat(this.makeCode("\n"),b.compileToFragments(a,x),this.makeCode("\n"+this.tab)));a=[].concat(this.makeCode(c+this.tab+"while ("),this.condition.compileToFragments(a,
H),this.makeCode(") {"),b,this.makeCode("}"));this.returns&&a.push(this.makeCode("\n"+this.tab+"return "+d+";"));return a};b.prototype.children=["condition","guard","body"];b.prototype.isStatement=da;return b}();k.Op=O=function(){var b,e,g=function(d,f,e,h){var l;if("in"===d)return new J(f,e);if("do"===d)return g.prototype.generateDo(f);if("new"===d){if(f instanceof ta&&!f["do"]&&!f.isNew)return f.newInstance();if(f instanceof c&&f.bound||f["do"])f=new G(f)}l=a.call(this)||this;l.operator=b[d]||d;
l.first=f;l.second=e;l.flip=!!h;return l};$jscomp.inherits(g,a);g.prototype.isNumber=function(){var a;return this.isUnary()&&("+"===(a=this.operator)||"-"===a)&&this.first instanceof I&&this.first.isNumber()};g.prototype.isAwait=function(){return"await"===this.operator};g.prototype.isYield=function(){var a;return"yield"===(a=this.operator)||"yield*"===a};g.prototype.isUnary=function(){return!this.second};g.prototype.shouldCache=function(){return!this.isNumber()};g.prototype.isChainable=function(){var a;
return"\x3c"===(a=this.operator)||"\x3e"===a||"\x3e\x3d"===a||"\x3c\x3d"===a||"\x3d\x3d\x3d"===a||"!\x3d\x3d"===a};g.prototype.invert=function(){var a,b,c;if(this.isChainable()&&this.first.isChainable()){a=!0;for(b=this;b&&b.operator;)a&&(a=b.operator in e),b=b.first;if(!a)return(new G(this)).invert();for(b=this;b&&b.operator;)b.invert=!b.invert,b.operator=e[b.operator],b=b.first;return this}return(b=e[this.operator])?(this.operator=b,this.first.unwrap()instanceof g&&this.first.invert(),this):this.second?
(new G(this)).invert():"!"===this.operator&&(a=this.first.unwrap())instanceof g&&("!"===(c=a.operator)||"in"===c||"instanceof"===c)?a:new g("!",this)};g.prototype.unfoldSoak=function(a){var b;return("++"===(b=this.operator)||"--"===b||"delete"===b)&&Ra(a,this,"first")};g.prototype.generateDo=function(a){var b,d,e,h,g;h=[];g=(a instanceof ha&&(b=a.value.unwrap())instanceof c?b:a).params||[];b=0;for(d=g.length;b<d;b++)e=g[b],e.value?(h.push(e.value),delete e.value):h.push(e);a=new ta(a,h);a["do"]=!0;
return a};g.prototype.compileNode=function(a){var b,d;b=this.isChainable()&&this.first.isChainable();b||(this.first.front=this.front);"delete"===this.operator&&a.scope.check(this.first.unwrapAll().value)&&this.error("delete operand may not be argument or var");("--"===(d=this.operator)||"++"===d)&&(d=na(this.first.unwrapAll().value))&&this.first.error(d);if(this.isYield()||this.isAwait())return this.compileContinuation(a);if(this.isUnary())return this.compileUnary(a);if(b)return this.compileChain(a);
switch(this.operator){case "?":return this.compileExistence(a);case "**":return this.compilePower(a);case "//":return this.compileFloorDivision(a);case "%%":return this.compileModulo(a);default:return b=this.first.compileToFragments(a,t),d=this.second.compileToFragments(a,t),b=[].concat(b,this.makeCode(" "+this.operator+" "),d),a.level<=t?b:this.wrapInBraces(b)}};g.prototype.compileChain=function(a){var b;b=this.first.second.cache(a);this.first.second=b[0];b=b[1];a=this.first.compileToFragments(a,
t).concat(this.makeCode(" "+(this.invert?"\x26\x26":"||")+" "),b.compileToFragments(a),this.makeCode(" "+this.operator+" "),this.second.compileToFragments(a,t));return this.wrapInBraces(a)};g.prototype.compileExistence=function(a){var b,d;this.first.shouldCache()?(d=new A(a.scope.freeVariable("ref")),b=new G(new ha(d,this.first))):d=b=this.first;return(new B(new D(b),d,{type:"if"})).addElse(this.second).compileToFragments(a)};g.prototype.compileUnary=function(a){var b,d,c;d=[];b=this.operator;d.push([this.makeCode(b)]);
if("!"===b&&this.first instanceof D)return this.first.negated=!this.first.negated,this.first.compileToFragments(a);if(a.level>=h)return(new G(this)).compileToFragments(a);c="+"===b||"-"===b;("new"===b||"typeof"===b||"delete"===b||c&&this.first instanceof g&&this.first.operator===b)&&d.push([this.makeCode(" ")]);if(c&&this.first instanceof g||"new"===b&&this.first.isStatement(a))this.first=new G(this.first);d.push(this.first.compileToFragments(a,t));this.flip&&d.reverse();return this.joinFragmentArrays(d,
"")};g.prototype.compileContinuation=function(a){var b,d,c,e;d=[];b=this.operator;null==a.scope.parent&&this.error(this.operator+" can only occur inside functions");null!=(c=a.scope.method)&&c.bound&&a.scope.method.isGenerator&&this.error("yield cannot occur inside bound (fat arrow) functions");0<=Fa.call(Object.keys(this.first),"expression")&&!(this.first instanceof la)?null!=this.first.expression&&d.push(this.first.expression.compileToFragments(a,t)):(a.level>=H&&d.push([this.makeCode("(")]),d.push([this.makeCode(b)]),
""!==(null!=(e=this.first.base)?e.value:void 0)&&d.push([this.makeCode(" ")]),d.push(this.first.compileToFragments(a,t)),a.level>=H&&d.push([this.makeCode(")")]));return this.joinFragmentArrays(d,"")};g.prototype.compilePower=function(a){var b;b=new I(new A("Math"),[new xa(new C("pow"))]);return(new ta(b,[this.first,this.second])).compileToFragments(a)};g.prototype.compileFloorDivision=function(a){var b,d;d=new I(new A("Math"),[new xa(new C("floor"))]);b=this.second.shouldCache()?new G(this.second):
this.second;b=new g("/",this.first,b);return(new ta(d,[b])).compileToFragments(a)};g.prototype.compileModulo=function(a){var b;b=new I(new r(Ia("modulo",a)));return(new ta(b,[this.first,this.second])).compileToFragments(a)};g.prototype.toString=function(b){return a.prototype.toString.call(this,b,this.constructor.name+" "+this.operator)};b={"\x3d\x3d":"\x3d\x3d\x3d","!\x3d":"!\x3d\x3d",of:"in",yieldfrom:"yield*"};e={"!\x3d\x3d":"\x3d\x3d\x3d","\x3d\x3d\x3d":"!\x3d\x3d"};g.prototype.children=["first",
"second"];return g}();k.In=J=function(){var b=function(b,c){var d;d=a.call(this)||this;d.object=b;d.array=c;return d};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,c,e,h;if(this.array instanceof I&&this.array.isArray()&&this.array.base.objects.length){h=this.array.base.objects;d=0;for(c=h.length;d<c;d++)if(e=h[d],e instanceof K){b=!0;break}if(!b)return this.compileOrTest(a)}return this.compileLoopTest(a)};b.prototype.compileOrTest=function(a){var b,d,c,e,g,l,k,n,m,v;b=this.object.cache(a,
t);m=b[0];k=b[1];d=this.negated?[" !\x3d\x3d "," \x26\x26 "]:[" \x3d\x3d\x3d "," || "];b=d[0];d=d[1];v=[];n=this.array.base.objects;c=g=0;for(l=n.length;g<l;c=++g)e=n[c],c&&v.push(this.makeCode(d)),v=v.concat(c?k:m,this.makeCode(b),e.compileToFragments(a,h));return a.level<t?v:this.wrapInBraces(v)};b.prototype.compileLoopTest=function(a){var b,d,c;b=this.object.cache(a,u);c=b[0];d=b[1];b=[].concat(this.makeCode(Ia("indexOf",a)+".call("),this.array.compileToFragments(a,u),this.makeCode(", "),d,this.makeCode(") "+
(this.negated?"\x3c 0":"\x3e\x3d 0")));if(N(c)===N(d))return b;b=c.concat(this.makeCode(", "),b);return a.level<u?b:this.wrapInBraces(b)};b.prototype.toString=function(b){return a.prototype.toString.call(this,b,this.constructor.name+(this.negated?"!":""))};b.prototype.children=["object","array"];b.prototype.invert=R;return b}();k.Try=function(){var b=function(b,c,d,f){var e;e=a.call(this)||this;e.attempt=b;e.errorVariable=c;e.recovery=d;e.ensure=f;return e};$jscomp.inherits(b,a);b.prototype.jumps=
function(a){var b;return this.attempt.jumps(a)||(null!=(b=this.recovery)?b.jumps(a):void 0)};b.prototype.makeReturn=function(a){this.attempt&&(this.attempt=this.attempt.makeReturn(a));this.recovery&&(this.recovery=this.recovery.makeReturn(a));return this};b.prototype.compileNode=function(a){var b,d,c,e,h;a.indent+=ra;h=this.attempt.compileToFragments(a,x);b=this.recovery?(d=a.scope.freeVariable("error",{reserve:!1}),e=new A(d),this.errorVariable?(c=na(this.errorVariable.unwrapAll().value),c?this.errorVariable.error(c):
void 0,this.recovery.unshift(new ha(this.errorVariable,e))):void 0,[].concat(this.makeCode(" catch ("),e.compileToFragments(a),this.makeCode(") {\n"),this.recovery.compileToFragments(a,x),this.makeCode("\n"+this.tab+"}"))):this.ensure||this.recovery?[]:(d=a.scope.freeVariable("error",{reserve:!1}),[this.makeCode(" catch ("+d+") {}")]);a=this.ensure?[].concat(this.makeCode(" finally {\n"),this.ensure.compileToFragments(a,x),this.makeCode("\n"+this.tab+"}")):[];return[].concat(this.makeCode(this.tab+
"try {\n"),h,this.makeCode("\n"+this.tab+"}"),b,a)};b.prototype.children=["attempt","recovery","ensure"];b.prototype.isStatement=da;return b}();k.Throw=la=function(){var b=function(b){var c;c=a.call(this)||this;c.expression=b;return c};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){return[].concat(this.makeCode(this.tab+"throw "),this.expression.compileToFragments(a),this.makeCode(";"))};b.prototype.children=["expression"];b.prototype.isStatement=da;b.prototype.jumps=M;b.prototype.makeReturn=
Na;return b}();k.Existence=D=function(){var b=function(b){var c;c=a.call(this)||this;c.expression=b;return c};$jscomp.inherits(b,a);b.prototype.compileNode=function(a){var b,d,c;this.expression.front=this.front;c=this.expression.compile(a,t);this.expression.unwrap()instanceof A&&!a.scope.check(c)?(d=this.negated?["\x3d\x3d\x3d","||"]:["!\x3d\x3d","\x26\x26"],b=d[0],d=d[1],c="typeof "+c+" "+b+' "undefined" '+d+" "+c+" "+b+" null"):c=c+" "+(this.negated?"\x3d\x3d":"!\x3d")+" null";return[this.makeCode(a.level<=
n?c:"("+c+")")]};b.prototype.children=["expression"];b.prototype.invert=R;return b}();k.Parens=G=function(){var b=function(b){var c;c=a.call(this)||this;c.body=b;return c};$jscomp.inherits(b,a);b.prototype.unwrap=function(){return this.body};b.prototype.shouldCache=function(){return this.body.shouldCache()};b.prototype.compileNode=function(a){var b,d;b=this.body.unwrap();if(b instanceof I&&b.isAtomic())return b.front=this.front,b.compileToFragments(a);d=b.compileToFragments(a,H);return a.level<t&&
(b instanceof O||b instanceof ta||b instanceof l&&b.returns)?d:this.wrapInBraces(d)};b.prototype.children=["body"];return b}();k.StringWithInterpolations=ba=function(){var b=function(b){var c;c=a.call(this)||this;c.body=b;return c};$jscomp.inherits(b,a);b.prototype.unwrap=function(){return this};b.prototype.shouldCache=function(){return this.body.shouldCache()};b.prototype.compileNode=function(a){var b,d,c,e,h;c=this.body.unwrap();d=[];c.traverseChildren(!1,function(a){if(a instanceof Ma)d.push(a);
else if(a instanceof G)return d.push(a),!1;return!0});c=[];c.push(this.makeCode("`"));e=0;for(h=d.length;e<h;e++)b=d[e],b instanceof Ma?(b=b.value.slice(1,-1),b=b.replace(/(\\*)(`|\$\{)/g,function(a,b,d){return 0===b.length%2?b+"\\"+d:a}),c.push(this.makeCode(b))):(c.push(this.makeCode("${")),c.push.apply(c,[].concat($jscomp.arrayFromIterable(b.compileToFragments(a,H)))),c.push(this.makeCode("}")));c.push(this.makeCode("`"));return c};b.prototype.children=["body"];return b}();k.For=l=function(){var a=
function(a,b){var d;d=ja.call(this)||this;d.source=b.source;d.guard=b.guard;d.step=b.step;d.name=b.name;d.index=b.index;d.body=g.wrap([a]);d.own=!!b.own;d.object=!!b.object;d.from=!!b.from;d.from&&d.index&&d.index.error("cannot use index with for-from");d.own&&!d.object&&b.ownTag.error("cannot use own with for-"+(d.from?"from":"in"));d.object&&(a=[d.index,d.name],d.name=a[0],d.index=a[1]);d.index instanceof I&&!d.index.isAssignable()&&d.index.error("index cannot be a pattern matching expression");
d.range=d.source instanceof I&&d.source.base instanceof Z&&!d.source.properties.length&&!d.from;d.pattern=d.name instanceof I;d.range&&d.index&&d.index.error("indexes do not apply to range loops");d.range&&d.pattern&&d.name.error("cannot pattern match over range loops");d.returns=!1;return d};$jscomp.inherits(a,ja);a.prototype.compileNode=function(a){var b,d,c,e,h,l,k,n,m,p,v,t,q,H,y,z,w,E,D,C,M;b=g.wrap([this.body]);m=b.expressions;m=m[m.length-1];(null!=m?m.jumps():void 0)instanceof F&&(this.returns=
!1);y=this.range?this.source.base:this.source;c=a.scope;this.pattern||(n=this.name&&this.name.compile(a,u));m=this.index&&this.index.compile(a,u);n&&!this.pattern&&c.find(n);!m||this.index instanceof I||c.find(m);this.returns&&(k=c.freeVariable("results"));this.from?this.pattern&&(v=c.freeVariable("x",{single:!0})):v=this.object&&m||c.freeVariable("i",{single:!0});t=(this.range||this.from)&&n||m||v;q=t!==v?t+" \x3d ":"";this.step&&!this.range&&(m=this.cacheToCodeFragments(this.step.cache(a,u,Ya)),
h=m[0],D=m[1],this.step.isNumber()&&(E=Number(D)));this.pattern&&(n=v);l=m=M="";p=this.tab+ra;this.range?e=y.compileToFragments(wa(a,{index:v,name:n,step:this.step,shouldCache:Ya})):(C=this.source.compile(a,u),!n&&!this.own||this.source.unwrap()instanceof A||(l+=""+this.tab+(y=c.freeVariable("ref"))+" \x3d "+C+";\n",C=y),!n||this.pattern||this.from||(H=n+" \x3d "+C+"["+t+"]"),this.object||this.from||(h!==D&&(l+=""+this.tab+h+";\n"),n=0>E,this.step&&null!=E&&n||(d=c.freeVariable("len")),e=""+q+v+" \x3d 0, "+
d+" \x3d "+C+".length",h=""+q+v+" \x3d "+C+".length - 1",d=v+" \x3c "+d,c=v+" \x3e\x3d 0",this.step?(null!=E?n&&(d=c,e=h):(d=D+" \x3e 0 ? "+d+" : "+c,e="("+D+" \x3e 0 ? ("+e+") : "+h+")"),v=v+" +\x3d "+D):v=""+(t!==v?"++"+v:v+"++"),e=[this.makeCode(e+"; "+d+"; "+q+v)]));this.returns&&(z=""+this.tab+k+" \x3d [];\n",w="\n"+this.tab+"return "+k+";",b.makeReturn(k));this.guard&&(1<b.expressions.length?b.expressions.unshift(new B((new G(this.guard)).invert(),new aa("continue"))):this.guard&&(b=g.wrap([new B(this.guard,
b)])));this.pattern&&b.expressions.unshift(new ha(this.name,this.from?new A(t):new r(C+"["+t+"]")));k=[].concat(this.makeCode(l),this.pluckDirectCall(a,b));H&&(M="\n"+p+H+";");this.object?(e=[this.makeCode(t+" in "+C)],this.own&&(m="\n"+p+"if (!"+Ia("hasProp",a)+".call("+C+", "+t+")) continue;")):this.from&&(e=[this.makeCode(t+" of "+C)]);(a=b.compileToFragments(wa(a,{indent:p}),x))&&0<a.length&&(a=[].concat(this.makeCode("\n"),a,this.makeCode("\n")));return[].concat(k,this.makeCode(""+(z||"")+this.tab+
"for ("),e,this.makeCode(") {"+m+M),a,this.makeCode(this.tab+"}"+(w||"")))};a.prototype.pluckDirectCall=function(a,b){var d,f,e,h,g,l,k,n,m,p,v,r,t,u,q;f=[];m=b.expressions;g=l=0;for(k=m.length;l<k;g=++l)if(e=m[g],e=e.unwrapAll(),e instanceof ta&&(q=null!=(p=e.variable)?p.unwrapAll():void 0,q instanceof c||q instanceof I&&(null!=(v=q.base)?v.unwrapAll():void 0)instanceof c&&1===q.properties.length&&("call"===(r=null!=(t=q.properties[0].name)?t.value:void 0)||"apply"===r)))h=(null!=(u=q.base)?u.unwrapAll():
void 0)||q,n=new A(a.scope.freeVariable("fn")),d=new I(n),q.base&&(d=[d,q],q.base=d[0],d=d[1]),b.expressions[g]=new ta(d,e.args),f=f.concat(this.makeCode(this.tab),(new ha(n,h)).compileToFragments(a,x),this.makeCode(";\n"));return f};a.prototype.children=["body","source","guard","step"];return a}();k.Switch=function(){var b=function(b,c,d){var f;f=a.call(this)||this;f.subject=b;f.cases=c;f.otherwise=d;return f};$jscomp.inherits(b,a);b.prototype.jumps=function(a){a=void 0===a?{block:!0}:a;var b,d,
c,e,h;e=this.cases;d=0;for(c=e.length;d<c;d++)if(b=e[d],b=b[1],b=b.jumps(a))return b;return null!=(h=this.otherwise)?h.jumps(a):void 0};b.prototype.makeReturn=function(a){var b,d,c,e,h;e=this.cases;b=0;for(d=e.length;b<d;b++)c=e[b],c[1].makeReturn(a);a&&(this.otherwise||(this.otherwise=new g([new r("void 0")])));null!=(h=this.otherwise)&&h.makeReturn(a);return this};b.prototype.compileNode=function(a){var b,d,c,e,h,g,l,k,n,m,p,t,u;l=a.indent+ra;k=a.indent=l+ra;g=[].concat(this.makeCode(this.tab+"switch ("),
this.subject?this.subject.compileToFragments(a,H):this.makeCode("false"),this.makeCode(") {\n"));t=this.cases;h=n=0;for(m=t.length;n<m;h=++n){b=t[h];e=b[0];b=b[1];u=ea([e]);e=0;for(p=u.length;e<p;e++)c=u[e],this.subject||(c=c.invert()),g=g.concat(this.makeCode(l+"case "),c.compileToFragments(a,H),this.makeCode(":\n"));0<(d=b.compileToFragments(a,x)).length&&(g=g.concat(d,this.makeCode("\n")));if(h===this.cases.length-1&&!this.otherwise)break;h=this.lastNonComment(b.expressions);h instanceof F||h instanceof
r&&h.jumps()&&"debugger"!==h.value||g.push(c.makeCode(k+"break;\n"))}this.otherwise&&this.otherwise.expressions.length&&g.push.apply(g,[].concat([this.makeCode(l+"default:\n")],$jscomp.arrayFromIterable(this.otherwise.compileToFragments(a,x)),[this.makeCode("\n")]));g.push(this.makeCode(this.tab+"}"));return g};b.prototype.children=["subject","cases","otherwise"];b.prototype.isStatement=da;return b}();k.If=B=function(){var b=function(b,c,d){var f;d=void 0===d?{}:d;f=a.call(this)||this;f.body=c;f.condition=
"unless"===d.type?b.invert():b;f.elseBody=null;f.isChain=!1;f.soak=d.soak;return f};$jscomp.inherits(b,a);b.prototype.bodyNode=function(){var a;return null!=(a=this.body)?a.unwrap():void 0};b.prototype.elseBodyNode=function(){var a;return null!=(a=this.elseBody)?a.unwrap():void 0};b.prototype.addElse=function(a){this.isChain?this.elseBodyNode().addElse(a):(this.isChain=a instanceof b,this.elseBody=this.ensureBlock(a),this.elseBody.updateLocationDataIfMissing(a.locationData));return this};b.prototype.isStatement=
function(a){var b;return(null!=a?a.level:void 0)===x||this.bodyNode().isStatement(a)||(null!=(b=this.elseBodyNode())?b.isStatement(a):void 0)};b.prototype.jumps=function(a){var b;return this.body.jumps(a)||(null!=(b=this.elseBody)?b.jumps(a):void 0)};b.prototype.compileNode=function(a){return this.isStatement(a)?this.compileStatement(a):this.compileExpression(a)};b.prototype.makeReturn=function(a){a&&(this.elseBody||(this.elseBody=new g([new r("void 0")])));this.body&&(this.body=new g([this.body.makeReturn(a)]));
this.elseBody&&(this.elseBody=new g([this.elseBody.makeReturn(a)]));return this};b.prototype.ensureBlock=function(a){return a instanceof g?a:new g([a])};b.prototype.compileStatement=function(a){var c,d,f,e;c=ka(a,"chainChild");if(ka(a,"isExistentialEquals"))return(new b(this.condition.invert(),this.elseBodyNode(),{type:"if"})).compileToFragments(a);e=a.indent+ra;f=this.condition.compileToFragments(a,H);d=this.ensureBlock(this.body).compileToFragments(wa(a,{indent:e}));d=[].concat(this.makeCode("if ("),
f,this.makeCode(") {\n"),d,this.makeCode("\n"+this.tab+"}"));c||d.unshift(this.makeCode(this.tab));if(!this.elseBody)return d;c=d.concat(this.makeCode(" else "));this.isChain?(a.chainChild=!0,c=c.concat(this.elseBody.unwrap().compileToFragments(a,x))):c=c.concat(this.makeCode("{\n"),this.elseBody.compileToFragments(wa(a,{indent:e}),x),this.makeCode("\n"+this.tab+"}"));return c};b.prototype.compileExpression=function(a){var b,d,c;c=this.condition.compileToFragments(a,n);d=this.bodyNode().compileToFragments(a,
u);b=this.elseBodyNode()?this.elseBodyNode().compileToFragments(a,u):[this.makeCode("void 0")];b=c.concat(this.makeCode(" ? "),d,this.makeCode(" : "),b);return a.level>=n?this.wrapInBraces(b):b};b.prototype.unfoldSoak=function(){return this.soak&&this};b.prototype.children=["condition","body","elseBody"];return b}();ma={extend:function(a){return"function(child, parent) { for (var key in parent) { if ("+Ia("hasProp",a)+".call(parent, key)) child[key] \x3d parent[key]; } function ctor() { this.constructor \x3d child; } ctor.prototype \x3d parent.prototype; child.prototype \x3d new ctor(); return child; }"},
bind:function(){return"function(fn, me){ return function(){ return fn.apply(me, arguments); }; }"},indexOf:function(){return"[].indexOf || function(item) { for (var i \x3d 0, l \x3d this.length; i \x3c l; i++) { if (i in this \x26\x26 this[i] \x3d\x3d\x3d item) return i; } return -1; }"},modulo:function(){return"function(a, b) { return (+a % (b \x3d +b) + b) % b; }"},hasProp:function(){return"{}.hasOwnProperty"},slice:function(){return"[].slice"}};x=1;H=2;u=3;n=4;t=5;h=6;ra=" ";ca=/^[+-]?\d+$/;Ia=
function(a,c){var b,d;d=c.scope.root;if(a in d.utilities)return d.utilities[a];b=d.freeVariable(a);d.assign(b,ma[a](c));return d.utilities[a]=b};Qa=function(a,c){a=a.replace(/\n/g,"$\x26"+c);return a.replace(/\s+$/,"")};qa=function(a){return a instanceof A&&"arguments"===a.value};va=function(a){return a instanceof za||a instanceof c&&a.bound};Ya=function(a){return a.shouldCache()||("function"===typeof a.isAssignable?a.isAssignable():void 0)};Ra=function(a,c,e){if(a=c[e].unfoldSoak(a))return c[e]=
a.body,a.body=new I(c),a}}).call(this);return k}();q["./sourcemap"]=function(){var k={};(function(){var q=function(k){this.line=k;this.columns=[]};q.prototype.add=function(k,q,a){var g;g=q[0];q=q[1];void 0===a&&(a={});if(!this.columns[k]||!a.noReplace)return this.columns[k]={line:this.line,column:k,sourceLine:g,sourceColumn:q}};q.prototype.sourceLocation=function(k){for(var q;!((q=this.columns[k])||0>=k);)k--;return q&&[q.sourceLine,q.sourceColumn]};k=function(){var k,ha,a,g,ta=function(){this.lines=
[]};ta.prototype.add=function(a,c,e){e=void 0===e?{}:e;var g,k;k=c[0];c=c[1];return((g=this.lines)[k]||(g[k]=new q(k))).add(c,a,e)};ta.prototype.sourceLocation=function(a){var c,e;c=a[0];for(a=a[1];!((e=this.lines[c])||0>=c);)c--;return e&&e.sourceLocation(a)};ta.prototype.generate=function(a,c){a=void 0===a?{}:a;c=void 0===c?null:c;var e,g,k,m,q,l,E,A,B,J,p,ha,h;q=l=m=h=0;J=!1;e="";p=this.lines;k=g=0;for(E=p.length;g<E;k=++g)if(k=p[k])for(ha=k.columns,k=0,A=ha.length;k<A;k++)if(B=ha[k]){for(;h<B.line;)m=
0,J=!1,e+=";",h++;J&&(e+=",");e+=this.encodeVlq(B.column-m);m=B.column;e+=this.encodeVlq(0);e+=this.encodeVlq(B.sourceLine-l);l=B.sourceLine;e+=this.encodeVlq(B.sourceColumn-q);q=B.sourceColumn;J=!0}e={version:3,file:a.generatedFile||"",sourceRoot:a.sourceRoot||"",sources:a.sourceFiles||[""],names:[],mappings:e};a.inlineMap&&(e.sourcesContent=[c]);return e};ta.prototype.encodeVlq=function(k){var c,e;c="";for(e=(Math.abs(k)<<1)+(0>k?1:0);e||!c;)k=e&g,(e>>=a)&&(k|=ha),c+=this.encodeBase64(k);return c};
ta.prototype.encodeBase64=function(a){var c;if(!(c=k[a]))throw Error("Cannot Base64 encode value: "+a);return c};a=5;ha=1<<a;g=ha-1;k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return ta}()}).call(this);return k}();q["./coffeescript"]=function(){var k={};(function(){var ra,sa,ha,a,g,ta,m,c,e,y,D,w,z,l,E,A,B,J,p,ua={}.hasOwnProperty;c=q("fs");p=q("vm");E=q("path");ra=q("./lexer").Lexer;l=q("./parser").parser;y=q("./helpers");sa=q("./sourcemap");g=q("../../package.json");k.VERSION=
g.version;k.FILE_EXTENSIONS=[".coffee",".litcoffee",".coffee.md"];k.helpers=y;ha=function(a){switch(!1){case "function"!==typeof Buffer:return Buffer.from(a).toString("base64");case "function"!==typeof btoa:return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(a,c){return String.fromCharCode("0x"+c)}));default:throw Error("Unable to base64 encode inline sourcemap.");}};g=function(a){return function(c,e){e=void 0===e?{}:e;try{return a.call(this,c,e)}catch(t){if("string"!==typeof c)throw t;
throw y.updateSyntaxError(t,c,e.filename);}}};J={};B={};k.compile=a=g(function(a,c){var e,h,g,k,n,m,p,q,A,w,E,D,P;g=y.extend;c=g({},c);m=c.sourceMap||c.inlineMap||null==c.filename;g=c.filename||"\x3canonymous\x3e";J[g]=a;m&&(w=new sa);h=z.tokenize(a,c);k=c;A=[];n=0;for(p=h.length;n<p;n++)e=h[n],"IDENTIFIER"===e[0]&&A.push(e[1]);k.referencedVars=A;if(null==c.bare||!0!==c.bare)for(k=0,n=h.length;k<n;k++)if(e=h[k],"IMPORT"===(q=e[0])||"EXPORT"===q){c.bare=!0;break}n=l.parse(h).compileToFragments(c);
h=0;c.header&&(h+=1);c.shiftLine&&(h+=1);e=0;q="";p=0;for(A=n.length;p<A;p++)k=n[p],m&&(k.locationData&&!/^[;\s]*$/.test(k.code)&&w.add([k.locationData.first_line,k.locationData.first_column],[h,e],{noReplace:!0}),E=y.count(k.code,"\n"),h+=E,e=E?k.code.length-(k.code.lastIndexOf("\n")+1):e+k.code.length),q+=k.code;c.header&&(e="Generated by CoffeeScript "+this.VERSION,q="// "+e+"\n"+q);m&&(P=w.generate(c,a),B[g]=w);c.inlineMap&&(a=ha(JSON.stringify(P)),g="//# sourceURL\x3d"+(null!=(D=c.filename)?
D:"coffeescript"),q=q+"\n"+("//# sourceMappingURL\x3ddata:application/json;base64,"+a)+"\n"+g);return c.sourceMap?{js:q,sourceMap:w,v3SourceMap:JSON.stringify(P,null,2)}:q});k.tokens=g(function(a,c){return z.tokenize(a,c)});k.nodes=g(function(a,c){return"string"===typeof a?l.parse(z.tokenize(a,c)):l.parse(a)});k.run=function(e,g){g=void 0===g?{}:g;var h,k,l;k=q.main;k.filename=process.argv[1]=g.filename?c.realpathSync(g.filename):"\x3canonymous\x3e";k.moduleCache&&(k.moduleCache={});h=null!=g.filename?
E.dirname(c.realpathSync(g.filename)):c.realpathSync(".");k.paths=q("module")._nodeModulePaths(h);if(!y.isCoffee(k.filename)||q.extensions)e=a(e,g),e=null!=(l=e.js)?l:e;return k._compile(e,k.filename)};k.eval=function(c,e){e=void 0===e?{}:e;var h,g,k,l,m,n,y,z,A,w;if(c=c.trim()){l=null!=(m=p.Script.createContext)?m:p.createContext;m=null!=(k=p.isContext)?k:function(a){return e.sandbox instanceof l().constructor};if(l){if(null!=e.sandbox){if(m(e.sandbox))w=e.sandbox;else for(n in w=l(),m=e.sandbox,
m)ua.call(m,n)&&(k=m[n],w[n]=k);w.global=w.root=w.GLOBAL=w}else w=global;w.__filename=e.filename||"eval";w.__dirname=E.dirname(w.__filename);if(w===global&&!w.module&&!w.require){h=q("module");w.module=g=new h(e.modulename||"eval");w.require=k=function(a){return h._load(a,g,!0)};g.filename=w.__filename;A=Object.getOwnPropertyNames(q);m=0;for(y=A.length;m<y;m++)z=A[m],"paths"!==z&&"arguments"!==z&&"caller"!==z&&(k[z]=q[z]);k.paths=g.paths=h._nodeModulePaths(process.cwd());k.resolve=function(a){return h._resolveFilename(a,
g)}}}m={};for(n in e)ua.call(e,n)&&(k=e[n],m[n]=k);m.bare=!0;c=a(c,m);return w===global?p.runInThisContext(c):p.runInContext(c,w)}};k.register=function(){return q("./register")};if(q.extensions)for(A=this.FILE_EXTENSIONS,ta=function(a){var c;return null!=(c=q.extensions)[a]?c[a]:c[a]=function(){throw Error("Use CoffeeScript.register() or require the coffeescript/register module to require "+a+" files.");}},D=0,w=A.length;D<w;D++)g=A[D],ta(g);k._compileFile=function(e,g,k){g=void 0===g?!1:g;k=void 0===
k?!1:k;var h,l;l=c.readFileSync(e,"utf8");l=65279===l.charCodeAt(0)?l.substring(1):l;try{h=a(l,{filename:e,sourceMap:g,inlineMap:k,sourceFiles:[e],literate:y.isLiterate(e)})}catch(x){throw y.updateSyntaxError(x,l,e);}return h};z=new ra;l.lexer={lex:function(){var a,c;(c=l.tokens[this.pos++])?(a=c[0],this.yytext=c[1],this.yylloc=c[2],l.errorToken=c.origin||c,this.yylineno=this.yylloc.first_line):a="";return a},setInput:function(a){l.tokens=a;return this.pos=0},upcomingInput:function(){return""}};l.yy=
q("./nodes");l.yy.parseError=function(a,c){var e,h,g,k;g=l.errorToken;k=l.tokens;e=g[0];h=g[1];a=g[2];h=function(){switch(!1){case g!==k[k.length-1]:return"end of input";case "INDENT"!==e&&"OUTDENT"!==e:return"indentation";case "IDENTIFIER"!==e&&"NUMBER"!==e&&"INFINITY"!==e&&"STRING"!==e&&"STRING_START"!==e&&"REGEX"!==e&&"REGEX_START"!==e:return e.replace(/_START$/,"").toLowerCase();default:return y.nameWhitespaceCharacter(h)}}();return y.throwSyntaxError("unexpected "+h,a)};m=function(a,c){var e,
g,h,k;a.isNative()?e="native":(a.isEval()?(g=a.getScriptNameOrSourceURL())||a.getEvalOrigin():g=a.getFileName(),g||(g="\x3canonymous\x3e"),h=a.getLineNumber(),e=a.getColumnNumber(),e=(c=c(g,h,e))?g+":"+c[0]+":"+c[1]:g+":"+h+":"+e);g=a.getFunctionName();h=a.isConstructor();if(a.isToplevel()||h)return h?"new "+(g||"\x3canonymous\x3e")+" ("+e+")":g?g+" ("+e+")":e;h=a.getMethodName();k=a.getTypeName();return g?(c=a="",k&&g.indexOf(k)&&(c=k+"."),h&&g.indexOf("."+h)!==g.length-h.length-1&&(a=" [as "+h+
"]"),""+c+g+a+" ("+e+")"):k+"."+(h||"\x3canonymous\x3e")+" ("+e+")"};e=function(c){return null!=B[c]?B[c]:null!=B["\x3canonymous\x3e"]?B["\x3canonymous\x3e"]:null!=J[c]?(c=a(J[c],{filename:c,sourceMap:!0,literate:y.isLiterate(c)}),c.sourceMap):null};Error.prepareStackTrace=function(a,c){var g,h,l;l=function(a,c,g){var h;a=e(a);null!=a&&(h=a.sourceLocation([c-1,g-1]));return null!=h?[h[0]+1,h[1]+1]:null};h=function(){var a,e,h;h=[];a=0;for(e=c.length;a<e;a++){g=c[a];if(g.getFunction()===k.run)break;
h.push(" at "+m(g,l))}return h}();return a.toString()+"\n"+h.join("\n")+"\n"}}).call(this);return k}();q["./browser"]=function(){(function(){var k,ra,sa,ha=[].indexOf||function(a){for(var g=0,k=this.length;g<k;g++)if(g in this&&this[g]===a)return g;return-1};k=q("./coffeescript");k.require=q;ra=k.compile;k.eval=function(a,g){g=void 0===g?{}:g;null==g.bare&&(g.bare=!0);return eval(ra(a,g))};k.run=function(a,g){g=void 0===g?{}:g;g.bare=!0;g.shiftLine=!0;return Function(ra(a,g))()};"undefined"!==
typeof window&&null!==window&&("undefined"!==typeof btoa&&null!==btoa&&"undefined"!==typeof JSON&&null!==JSON&&(ra=function(a,g){g=void 0===g?{}:g;g.inlineMap=!0;return k.compile(a,g)}),k.load=function(a,g,q,m){q=void 0===q?{}:q;m=void 0===m?!1:m;var c;q.sourceFiles=[a];c=window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLHTTP"):new window.XMLHttpRequest;c.open("GET",a,!0);"overrideMimeType"in c&&c.overrideMimeType("text/plain");c.onreadystatechange=function(){var e;if(4===c.readyState){if(0===
(e=c.status)||200===e)e=[c.responseText,q],m||k.run.apply(k,[].concat($jscomp.arrayFromIterable(e)));else throw Error("Could not load "+a);if(g)return g(e)}};return c.send(null)},sa=function(){var a,g,q,m,c,e,y,D,w,z,l;l=window.document.getElementsByTagName("script");g=["text/coffeescript","text/literate-coffeescript"];a=function(){var a,c,e,k;k=[];a=0;for(c=l.length;a<c;a++)w=l[a],(e=w.type,0<=ha.call(g,e))&&k.push(w);return k}();e=0;q=function(){var c;c=a[e];if(c instanceof Array)return k.run.apply(k,
[].concat($jscomp.arrayFromIterable(c))),e++,q()};m=function(c,e){var l,m;l={literate:c.type===g[1]};if(m=c.src||c.getAttribute("data-src"))return l.filename=m,k.load(m,function(c){a[e]=c;return q()},l,!0);l.filename=c.id&&""!==c.id?c.id:"coffeescript"+(0!==e?e:"");l.sourceFiles=["embedded"];return a[e]=[c.innerHTML,l]};c=y=0;for(D=a.length;y<D;c=++y)z=a[c],m(z,c);return q()},window.addEventListener?window.addEventListener("DOMContentLoaded",sa,!1):window.attachEvent("onload",sa))}).call(this);return{}}();
return q["./coffeescript"]}();"function"===typeof define&&define.amd?define(function(){return ra}):q.CoffeeScript=ra})(this);

3989
docs/v2/index.html Normal file

File diff suppressed because it is too large Load diff

12627
docs/v2/test.html Normal file

File diff suppressed because it is too large Load diff