move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
authorymh <ymh.work@gmail.com>
Fri, 16 May 2014 09:23:11 +0200
changeset 290 8a6eb26ac87f
parent 289 32e5f491ba1d
child 291 8cafab7c4b18
move client build to Grunt and relocate it into client folder. Adjust server to work with the new build.
.hgignore
client/Gruntfile.js
client/js/build-renderer.js
client/js/header.js
client/js/main.js
client/js/paper-renderer.js
client/js/require-utils.js
client/package.json
client/test/publish-test-min.html
client/test/test-readonly-body-dist-min.html
client/test/test-readonly-body-dist.html
client/test/test-readonly-body.html
client/test/test-readonly-div-resize.html
client/test/test-writable-bins-div.html
client/test/test-writable-bins.html
client/test/test-writable-simple-dist.html
client/test/test-writable-simple-div.html
client/test/test-writable-simple.html
sbin/build/client.xml
sbin/build/compil.bat
sbin/build/compil.sh
sbin/build/minify.bat
sbin/build/minify.sh
sbin/build/renderer.build.js
sbin/res/ant-contrib.jar
sbin/res/ant/bin/ant
sbin/res/ant/bin/ant.bat
sbin/res/ant/bin/ant.cmd
sbin/res/ant/bin/antRun
sbin/res/ant/bin/antRun.bat
sbin/res/ant/bin/antRun.pl
sbin/res/ant/bin/antenv.cmd
sbin/res/ant/bin/complete-ant-cmd.pl
sbin/res/ant/bin/envset.cmd
sbin/res/ant/bin/lcp.bat
sbin/res/ant/bin/runant.pl
sbin/res/ant/bin/runant.py
sbin/res/ant/bin/runrc.cmd
sbin/res/ant/lib/README
sbin/res/ant/lib/ant-antlr.jar
sbin/res/ant/lib/ant-antlr.pom
sbin/res/ant/lib/ant-apache-bcel.jar
sbin/res/ant/lib/ant-apache-bcel.pom
sbin/res/ant/lib/ant-apache-bsf.jar
sbin/res/ant/lib/ant-apache-bsf.pom
sbin/res/ant/lib/ant-apache-log4j.jar
sbin/res/ant/lib/ant-apache-log4j.pom
sbin/res/ant/lib/ant-apache-oro.jar
sbin/res/ant/lib/ant-apache-oro.pom
sbin/res/ant/lib/ant-apache-regexp.jar
sbin/res/ant/lib/ant-apache-regexp.pom
sbin/res/ant/lib/ant-apache-resolver.jar
sbin/res/ant/lib/ant-apache-resolver.pom
sbin/res/ant/lib/ant-apache-xalan2.jar
sbin/res/ant/lib/ant-apache-xalan2.pom
sbin/res/ant/lib/ant-commons-logging.jar
sbin/res/ant/lib/ant-commons-logging.pom
sbin/res/ant/lib/ant-commons-net.jar
sbin/res/ant/lib/ant-commons-net.pom
sbin/res/ant/lib/ant-jai.jar
sbin/res/ant/lib/ant-jai.pom
sbin/res/ant/lib/ant-javamail.jar
sbin/res/ant/lib/ant-javamail.pom
sbin/res/ant/lib/ant-jdepend.jar
sbin/res/ant/lib/ant-jdepend.pom
sbin/res/ant/lib/ant-jmf.jar
sbin/res/ant/lib/ant-jmf.pom
sbin/res/ant/lib/ant-jsch.jar
sbin/res/ant/lib/ant-jsch.pom
sbin/res/ant/lib/ant-junit.jar
sbin/res/ant/lib/ant-junit.pom
sbin/res/ant/lib/ant-junit4.jar
sbin/res/ant/lib/ant-junit4.pom
sbin/res/ant/lib/ant-launcher.jar
sbin/res/ant/lib/ant-launcher.pom
sbin/res/ant/lib/ant-netrexx.jar
sbin/res/ant/lib/ant-netrexx.pom
sbin/res/ant/lib/ant-parent.pom
sbin/res/ant/lib/ant-swing.jar
sbin/res/ant/lib/ant-swing.pom
sbin/res/ant/lib/ant-testutil.jar
sbin/res/ant/lib/ant-testutil.pom
sbin/res/ant/lib/ant.jar
sbin/res/ant/lib/ant.pom
sbin/res/ant/lib/libraries.properties
sbin/res/compiler.jar
sbin/res/jquery-1.3.2.externs.js
sbin/res/jslint-wrapper.js
sbin/res/jslint.js
sbin/res/r.js
sbin/res/rhino.jar
server/pom.xml
server/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html
server/src/main/webapp/WEB-INF/templates/renkanProjectPublish.html
server/src/main/webapp/static/js/config.js
server/src/main/webapp/static/lib/dojo/_firebug/firebug.js
server/src/main/webapp/static/lib/dojo/_firebug/firebug.js.uncompressed.js
server/src/main/webapp/static/lib/dojo/cookie.js
server/src/main/webapp/static/lib/dojo/dojo.js
server/src/main/webapp/static/lib/dojo/regexp.js
--- a/.hgignore	Wed May 14 14:52:34 2014 +0200
+++ b/.hgignore	Fri May 16 09:23:11 2014 +0200
@@ -10,4 +10,6 @@
 ^standalone/renkan/img$
 ^standalone/renkan/js$
 ^standalone/renkan/lib$
-^build$
\ No newline at end of file
+^build$
+^client/node_modules$
+^client/dist$
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/Gruntfile.js	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,132 @@
+
+module.exports = function(grunt) {
+
+  'use strict';
+
+  var renkan_src = [
+      'js/main.js',
+      'js/models.js',
+      'js/defaults.js',
+      'js/i18n.js',
+      'js/full-json.js',
+      'js/ldtjson-bin.js',
+      'js/list-bin.js',
+      'js/wikipedia-bin.js',
+      'dist/js/paper-renderer.js'
+  ];
+
+  var renkan_banner = grunt.file.read('js/header.js').toString() +
+      '\n/*! <%= pkg.name %> - v<%= pkg.version %> - Copyright © IRI ' +
+      '<%= grunt.template.today("yyyy") %> */\n\n';
+
+  // Project configuration.
+  grunt.initConfig({
+    pkg: grunt.file.readJSON('package.json'),
+    requirejs: {
+      renderer: {
+        options: {
+          baseUrl: "js/",
+          name: "build-renderer",
+          out: "dist/js/paper-renderer.js",
+          optimize: "none",
+          beautify: true,
+          paths: {
+            requtils: "require-utils",
+            jquery: "empty:",
+            underscore: "empty:"
+          }
+        }
+      }
+    },
+    uglify: {
+      options: {
+        banner: renkan_banner,
+        sourceMap: true,
+        sourceMapIncludeSources: true
+      },
+      renkan: {
+        files : {
+          'dist/js/renkan.min.js' : renkan_src
+        }
+      }
+    },
+    concat: {
+      options: {
+        banner: renkan_banner
+      },
+      renkan: {
+        files : {
+          'dist/js/renkan.js' : renkan_src
+        }
+      }
+    },
+    clean: {
+      options: {
+        force: true
+      },
+      renderer: ["dist/js/paper-renderer.js"],
+      renkan: ["dist/"],
+    },
+    cssmin: {
+      options: {
+        banner: renkan_banner
+      },
+      renkan: {
+        expand: true,
+        cwd: 'css/',
+        src: ['*.css'],
+        dest: 'dist/css',
+        ext: '.min.css'
+      }
+    },
+    copy: {
+      renkan: {
+        files: [
+          {expand: true, cwd: '', src: ['img/*'], dest: 'dist/', filter: 'isFile'},
+          {expand: true, cwd: '', src: ['data/properties.json'], dest: 'dist/', filter: 'isFile'},
+          {expand: true, cwd: '', src: ['lib/**'], dest: 'dist/'}
+         ]
+       },
+       renkan_css: {
+         options: {
+           process: function (content, srcpath) {
+             return grunt.template.process(renkan_banner) + content;
+           }
+         },
+         files: [{expand: true, cwd: '', src: ['css/*'], dest: 'dist/', filter: 'isFile'}]
+       }
+    },
+    jshint: {
+      options: {
+        reporter: require('jshint-stylish')
+      },
+      all: ['Gruntfile.js', 'js/**/*.js']
+    },
+    connect: {
+        server: {
+          options: {
+            port: 9001,
+            base: '.',
+            keepalive: true,
+            useAvailablePort: true,
+            debug: true
+          }
+        }
+    }
+  });
+
+  // Load the plugin that provides the "uglify" task.
+  grunt.loadNpmTasks('grunt-contrib-requirejs');
+  grunt.loadNpmTasks('grunt-contrib-uglify');
+  grunt.loadNpmTasks('grunt-contrib-concat');
+  grunt.loadNpmTasks('grunt-contrib-clean');
+  grunt.loadNpmTasks('grunt-contrib-cssmin');
+  grunt.loadNpmTasks('grunt-contrib-copy');
+  grunt.loadNpmTasks('grunt-contrib-jshint');
+  grunt.loadNpmTasks('grunt-contrib-connect');
+
+  // Default task(s).
+  grunt.registerTask('default', ['requirejs', 'concat', 'uglify', 'cssmin', 'copy', 'clean:renderer']);
+
+
+};
--- a/client/js/build-renderer.js	Wed May 14 14:52:34 2014 +0200
+++ b/client/js/build-renderer.js	Fri May 16 09:23:11 2014 +0200
@@ -1,13 +1,16 @@
 /* main-require.js */
 "use strict";
 //Load modules and use them
-require.config({
-    paths: {
-        'jquery':'../lib/jquery.min',
-        'underscore':'../lib/underscore-min',
-        'requtils':'../js/require-utils'
-    }
-});
+if( typeof require.config === "function" ) {
+    require.config({
+        paths: {
+            'jquery':'../lib/jquery.min',
+            'underscore':'../lib/underscore-min',
+            'requtils':'require-utils'
+        }
+    });
+}
+
 require(['renderer/baserepresentation',
          'renderer/basebutton',
          'renderer/noderepr',
@@ -36,7 +39,7 @@
         Rkns.Renderer = {};
     }
     var Renderer = Rkns.Renderer;
-    
+
     Renderer._BaseRepresentation = BaseRepresentation;
     Renderer._BaseButton = BaseButton;
     Renderer.Node = NodeRepr;
@@ -57,6 +60,6 @@
     Renderer.EdgeRevertButton = EdgeRevertButton;
     Renderer.MiniFrame = MiniFrame;
     Renderer.Scene = Scene;
-    
+
     startRenkan();
-});
\ No newline at end of file
+});
--- a/client/js/header.js	Wed May 14 14:52:34 2014 +0200
+++ b/client/js/header.js	Fri May 16 09:23:11 2014 +0200
@@ -1,4 +1,4 @@
-/* 
+/*! 
  *    _____            _               
  *   |  __ \          | |              
  *   | |__) |___ _ __ | | ____ _ _ __  
@@ -21,4 +21,4 @@
  *  
  *  The fact that you are presently reading this means that you have had
  *  knowledge of the CeCILL-C license and that you accept its terms.
-*/
\ No newline at end of file
+ */
\ No newline at end of file
--- a/client/js/main.js	Wed May 14 14:52:34 2014 +0200
+++ b/client/js/main.js	Fri May 16 09:23:11 2014 +0200
@@ -13,8 +13,6 @@
 var $ = Rkns.$ = root.jQuery;
 var _ = Rkns._ = root._;
 
-Rkns.VERSION = '0.2.3';
-
 Rkns.pickerColors = ["#8f1919", "#a80000", "#d82626", "#ff0000", "#e87c7c", "#ff6565", "#f7d3d3", "#fecccc",
     "#8f5419", "#a85400", "#d87f26", "#ff7f00", "#e8b27c", "#ffb265", "#f7e5d3", "#fee5cc",
     "#8f8f19", "#a8a800", "#d8d826", "#feff00", "#e8e87c", "#feff65", "#f7f7d3", "#fefecc",
--- a/client/js/paper-renderer.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2679 +0,0 @@
-/* paper-renderer.js */
-"use strict";
-
-(function(root) {
-
-    var Rkns = root.Rkns,
-    _ = Rkns._,
-    $ = Rkns.$;
-
-    /* Rkns.Renderer Object */
-
-    /* This object contains constants, utility functions and classes for Renkan's Graph Manipulation GUI */
-
-    var Renderer = Rkns.Renderer = {};
-
-    /* Rkns.Renderer._BaseRepresentation Class */
-
-    /* In Renkan, a "Representation" is a sort of ViewModel (in the MVVM paradigm) and bridges the gap between
-     * models (written with Backbone.js) and the view (written with Paper.js)
-     * Renkan's representations all inherit from Rkns.Renderer._BaseRepresentation '*/
-
-    var _BaseRepresentation = Renderer._BaseRepresentation = function(_renderer, _model) {
-        if (typeof _renderer !== "undefined") {
-            this.renderer = _renderer;
-            this.renkan = _renderer.renkan;
-            this.project = _renderer.renkan.project;
-            this.options = _renderer.renkan.options;
-            this.model = _model;
-            if (this.model) {
-                var _this = this;
-                this._changeBinding = function() {
-                    _this.redraw();
-                };
-                this._removeBinding = function() {
-                    _renderer.removeRepresentation(_this);
-                    _(function() {
-                        _renderer.redraw();
-                    }).defer();
-                };
-                this._selectBinding = function() {
-                    _this.select();
-                };
-                this._unselectBinding = function() {
-                    _this.unselect();
-                };
-                this.model.on("change", this._changeBinding );
-                this.model.on("remove", this._removeBinding );
-                this.model.on("select", this._selectBinding );
-                this.model.on("unselect", this._unselectBinding );
-            }
-        }
-    };
-
-    /* Rkns.Renderer._BaseRepresentation Methods */
-
-    _(_BaseRepresentation.prototype).extend({
-        _super: function(_func) {
-            return _BaseRepresentation.prototype[_func].apply(this, Array.prototype.slice.call(arguments, 1));
-        },
-        redraw: function() {},
-        moveTo: function() {},
-        show: function() {},
-        hide: function() {},
-        select: function() {
-            if (this.model) {
-                this.model.trigger("selected");
-            }
-        },
-        unselect: function() {
-            if (this.model) {
-                this.model.trigger("unselected");
-            }
-        },
-        highlight: function() {},
-        unhighlight: function() {},
-        mousedown: function() {},
-        mouseup: function() {
-            if (this.model) {
-                this.model.trigger("clicked");
-            }
-        },
-        destroy: function() {
-            if (this.model) {
-                this.model.off("change", this._changeBinding );
-                this.model.off("remove", this._removeBinding );
-                this.model.off("select", this._selectBinding );
-                this.model.off("unselect", this._unselectBinding );
-            }
-        }
-    });
-
-    /* End of Rkns.Renderer._BaseRepresentation Class */
-
-    /* Rkns.Renderer._BaseButton Class */
-
-    /* BaseButton is extended by contextual buttons that appear when hovering on nodes and edges */
-
-    var _BaseButton = Renderer._BaseButton = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(_BaseButton.prototype).extend({
-        moveTo: function(_pos) {
-            this.sector.moveTo(_pos);
-        },
-        show: function() {
-            this.sector.show();
-        },
-        hide: function() {
-            this.sector.hide();
-        },
-        select: function() {
-            this.sector.select();
-        },
-        unselect: function(_newTarget) {
-            this.sector.unselect();
-            if (!_newTarget || (_newTarget !== this.source_representation && _newTarget.source_representation !== this.source_representation)) {
-                this.source_representation.unselect();
-            }
-        },
-        destroy: function() {
-            this.sector.destroy();
-        }
-    });
-
-    /* End of Rkns.Renderer._BaseButton Class */
-
-    /* Rkns.Renderer.Node Class */
-
-    /* The representation for the node : A circle, with an image inside and a text label underneath.
-     * The circle and the image are drawn on canvas and managed by Paper.js.
-     * The text label is an HTML node, managed by jQuery. */
-
-    var NodeRepr = Renderer.Node = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(NodeRepr.prototype).extend({
-        _init: function() {
-            this.renderer.node_layer.activate();
-            this.type = "Node";
-            this.circle = new paper.Path.Circle([0, 0], 1);
-            this.circle.__representation = this;
-            if (this.options.show_node_circles) {
-                this.circle.strokeWidth = this.options.node_stroke_width;
-                this.h_ratio = 1;
-            } else {
-                this.h_ratio = 0;
-            }
-            this.title = $('<div class="Rk-Label">').appendTo(this.renderer.labels_$);
-            if (this.options.editor_mode) {
-                this.normal_buttons = [
-                                       new NodeEditButton(this.renderer, null),
-                                       new NodeRemoveButton(this.renderer, null),
-                                       new NodeLinkButton(this.renderer, null),
-                                       new NodeEnlargeButton(this.renderer, null),
-                                       new NodeShrinkButton(this.renderer, null)
-                                       ];
-                this.pending_delete_buttons = [
-                                               new NodeRevertButton(this.renderer, null)
-                                               ];
-                this.all_buttons = this.normal_buttons.concat(this.pending_delete_buttons);
-                for (var i = 0; i < this.all_buttons.length; i++) {
-                    this.all_buttons[i].source_representation = this;
-                }
-                this.active_buttons = [];
-            } else {
-                this.active_buttons = this.all_buttons = [];
-            }
-            this.last_circle_radius = 1;
-
-            if (this.renderer.minimap) {
-                this.renderer.minimap.node_layer.activate();
-                this.minimap_circle = new paper.Path.Circle([0, 0], 1);
-                this.minimap_circle.__representation = this.renderer.minimap.miniframe.__representation;
-                this.renderer.minimap.node_group.addChild(this.minimap_circle);
-            }
-        },
-        redraw: function(_dontRedrawEdges) {
-            var _model_coords = new paper.Point(this.model.get("position")),
-            _baseRadius = this.options.node_size_base * Math.exp((this.model.get("size") || 0) * Rkns.Utils._NODE_SIZE_STEP);
-            if (!this.is_dragging || !this.paper_coords) {
-                this.paper_coords = this.renderer.toPaperCoords(_model_coords);
-            }
-            this.circle_radius = _baseRadius * this.renderer.scale;
-            if (this.last_circle_radius !== this.circle_radius) {
-                this.all_buttons.forEach(function(b) {
-                    b.setSectorSize();
-                });
-                this.circle.scale(this.circle_radius / this.last_circle_radius);
-                if (this.node_image) {
-                    this.node_image.scale(this.circle_radius / this.last_circle_radius);
-                }
-            }
-            this.circle.position = this.paper_coords;
-            if (this.node_image) {
-                this.node_image.position = this.paper_coords.subtract(this.image_delta.multiply(this.circle_radius));
-            }
-            this.last_circle_radius = this.circle_radius;
-
-            var old_act_btn = this.active_buttons;
-
-            var opacity = 1;
-            if (this.model.get("delete_scheduled")) {
-                opacity = .5;
-                this.active_buttons = this.pending_delete_buttons;
-                this.circle.dashArray = [2,2];
-            } else {
-                opacity = 1;
-                this.active_buttons = this.normal_buttons;
-                this.circle.dashArray = null;
-            }
-
-            if (this.selected && this.renderer.isEditable()) {
-                if (old_act_btn !== this.active_buttons) {
-                    old_act_btn.forEach(function(b) {
-                        b.hide();
-                    });
-                }
-                this.active_buttons.forEach(function(b) {
-                    b.show();
-                });
-            }
-
-            if (this.node_image) {
-                this.node_image.opacity = this.highlighted ? opacity * .5 : (opacity - .01);
-            }
-
-            this.circle.fillColor = this.highlighted ? this.options.highlighted_node_fill_color : this.options.node_fill_color;
-
-            this.circle.opacity = this.options.show_node_circles ? opacity : .01;
-
-            var _text = this.model.get("title") || this.renkan.translate(this.options.label_untitled_nodes) || "";
-            _text = Rkns.Utils.shortenText(_text, this.options.node_label_max_length);
-
-            if (typeof this.highlighted === "object") {
-                this.title.html(this.highlighted.replace(_(_text).escape(),'<span class="Rk-Highlighted">$1</span>'));
-            } else {
-                this.title.text(_text);
-            }
-
-            this.title.css({
-                left: this.paper_coords.x,
-                top: this.paper_coords.y + this.circle_radius * this.h_ratio + this.options.node_label_distance,
-                opacity: opacity
-            });
-            var _color = this.model.get("color") || (this.model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan)).get("color");
-            this.circle.strokeColor = _color;
-            var _pc = this.paper_coords;
-            this.all_buttons.forEach(function(b) {
-                b.moveTo(_pc);
-            });
-            var lastImage = this.img;
-            this.img = this.model.get("image");
-            if (this.img && this.img !== lastImage) {
-                this.showImage();
-            }
-            if (this.node_image && !this.img) {
-                this.node_image.remove();
-                delete this.node_image;
-            }
-
-            if (this.renderer.minimap) {
-                this.minimap_circle.fillColor = _color;
-                var minipos = this.renderer.toMinimapCoords(_model_coords),
-                miniradius = this.renderer.minimap.scale * _baseRadius,
-                minisize = new paper.Size([miniradius, miniradius]);
-                this.minimap_circle.fitBounds(minipos.subtract(minisize), minisize.multiply(2));
-            }
-
-            if (!_dontRedrawEdges) {
-                var _this = this;
-                _.each(
-                        this.project.get("edges").filter(
-                                function (ed) {
-                                    return ((ed.get("to") === _this.model) || (ed.get("from") === _this.model));
-                                }
-                        ),
-                        function(edge, index, list) {
-                            var repr = _this.renderer.getRepresentationByModel(edge);
-                            if (repr && typeof repr.from_representation !== "undefined" && typeof repr.from_representation.paper_coords !== "undefined" && typeof repr.to_representation !== "undefined" && typeof repr.to_representation.paper_coords !== "undefined") {
-                                repr.redraw();
-                            }
-                        }
-                );
-            }
-
-        },
-        showImage: function() {
-            var _image = null;
-            if (typeof this.renderer.image_cache[this.img] === "undefined") {
-                _image = new Image();
-                this.renderer.image_cache[this.img] = _image;
-                _image.src = this.img;
-            } else {
-                _image = this.renderer.image_cache[this.img];
-            }
-            if (_image.width) {
-                if (this.node_image) {
-                    this.node_image.remove();
-                }
-                this.renderer.node_layer.activate();
-                var width = _image.width,
-                height = _image.height,
-                clipPath = this.model.get("clip_path"),
-                hasClipPath = (typeof clipPath !== "undefined" && clipPath),
-                _clip = null,
-                baseRadius = null,
-                centerPoint = null;
-
-                if (hasClipPath) {
-                    _clip = new paper.Path();
-                    var instructions = clipPath.match(/[a-z][^a-z]+/gi) || [],
-                    lastCoords = [0,0],
-                    minX = Infinity,
-                    minY = Infinity,
-                    maxX = -Infinity,
-                    maxY = -Infinity;
-
-                    var transformCoords = function(tabc, relative) {
-                        var newCoords = tabc.slice(1).map(function(v, k) {
-                            var res = parseFloat(v),
-                            isY = k % 2;
-                            if (isY) {
-                                res = ( res - .5 ) * height;
-                            } else {
-                                res = ( res - .5 ) * width;
-                            }
-                            if (relative) {
-                                res += lastCoords[isY];
-                            }
-                            if (isY) {
-                                minY = Math.min(minY, res);
-                                maxY = Math.max(maxY, res);
-                            } else {
-                                minX = Math.min(minX, res);
-                                maxX = Math.max(maxX, res);
-                            }
-                            return res;
-                        });
-                        lastCoords = newCoords.slice(-2);
-                        return newCoords;
-                    };
-
-                    instructions.forEach(function(instr) {
-                        var coords = instr.match(/([a-z]|[0-9.-]+)/ig) || [""];
-                        switch(coords[0]) {
-                        case "M":
-                            _clip.moveTo(transformCoords(coords));
-                            break;
-                        case "m":
-                            _clip.moveTo(transformCoords(coords, true));
-                            break;
-                        case "L":
-                            _clip.lineTo(transformCoords(coords));
-                            break;
-                        case "l":
-                            _clip.lineTo(transformCoords(coords, true));
-                            break;
-                        case "C":
-                            _clip.cubicCurveTo(transformCoords(coords));
-                            break;
-                        case "c":
-                            _clip.cubicCurveTo(transformCoords(coords, true));
-                            break;
-                        case "Q":
-                            _clip.quadraticCurveTo(transformCoords(coords));
-                            break;
-                        case "q":
-                            _clip.quadraticCurveTo(transformCoords(coords, true));
-                            break;
-                        }
-                    });
-
-                    baseRadius = Math[this.options.node_images_fill_mode ? "min" : "max"](maxX - minX, maxY - minY) / 2;
-                    centerPoint = new paper.Point((maxX + minX) / 2, (maxY + minY) / 2);
-                    if (!this.options.show_node_circles) {
-                        this.h_ratio = (maxY - minY) / (2 * baseRadius);
-                    }
-                } else {
-                    baseRadius = Math[this.options.node_images_fill_mode ? "min" : "max"](width, height) / 2;
-                    centerPoint = new paper.Point(0,0);
-                    if (!this.options.show_node_circles) {
-                        this.h_ratio = height / (2 * baseRadius);
-                    }
-                }
-                var _raster = new paper.Raster(_image);
-                _raster.locked = true; // Disable mouse events on icon
-                if (hasClipPath) {
-                    _raster = new paper.Group(_clip, _raster);
-                    _raster.opacity = .99;
-                    /* This is a workaround to allow clipping at group level
-                     * If opacity was set to 1, paper.js would merge all clipping groups in one (known bug).
-                     */
-                    _raster.clipped = true;
-                    _clip.__representation = this;
-                }
-                if (this.options.clip_node_images) {
-                    var _circleClip = new paper.Path.Circle(centerPoint, baseRadius);
-                    _raster = new paper.Group(_circleClip, _raster);
-                    _raster.opacity = .99;
-                    _raster.clipped = true;
-                    _circleClip.__representation = this;
-                }
-                this.image_delta = centerPoint.divide(baseRadius);
-                this.node_image = _raster;
-                this.node_image.__representation = _this;
-                this.node_image.scale(this.circle_radius / baseRadius);
-                this.node_image.position = this.paper_coords.subtract(this.image_delta.multiply(this.circle_radius));
-                this.redraw();
-                this.renderer.throttledPaperDraw();
-            } else {
-                var _this = this;
-                $(_image).on("load", function() {
-                    _this.showImage();
-                });
-            }
-        },
-        paperShift: function(_delta) {
-            if (this.options.editor_mode) {
-                if (!this.renkan.read_only) {
-                    this.is_dragging = true;
-                    this.paper_coords = this.paper_coords.add(_delta);
-                    this.redraw();
-                }
-            } else {
-                this.renderer.paperShift(_delta);
-            }
-        },
-        openEditor: function() {
-            this.renderer.removeRepresentationsOfType("editor");
-            var _editor = this.renderer.addRepresentation("NodeEditor",null);
-            _editor.source_representation = this;
-            _editor.draw();
-        },
-        select: function() {
-            this.selected = true;
-            this.circle.strokeWidth = this.options.selected_node_stroke_width;
-            if (this.renderer.isEditable()) {
-                this.active_buttons.forEach(function(b) {
-                    b.show();
-                });
-            }
-            var _uri = this.model.get("uri");
-            if (_uri) {
-                $('.Rk-Bin-Item').each(function() {
-                    var _el = $(this);
-                    if (_el.attr("data-uri") == _uri) {
-                        _el.addClass("selected");
-                    }
-                });
-            }
-            if (!this.options.editor_mode) {
-                this.openEditor();
-            }
-
-            if (this.renderer.minimap) {
-                this.minimap_circle.strokeWidth = this.options.minimap_highlight_weight;
-                this.minimap_circle.strokeColor = this.options.minimap_highlight_color;
-            }
-            this._super("select");
-        },
-        unselect: function(_newTarget) {
-            if (!_newTarget || _newTarget.source_representation !== this) {
-                this.selected = false;
-                this.all_buttons.forEach(function(b) {
-                    b.hide();
-                });
-                this.circle.strokeWidth = this.options.node_stroke_width;
-                $('.Rk-Bin-Item').removeClass("selected");
-                if (this.renderer.minimap) {
-                    this.minimap_circle.strokeColor = undefined;
-                }
-                this._super("unselect");
-            }
-        },
-        highlight: function(textToReplace) {
-            var hlvalue = textToReplace || true;
-            if (this.highlighted === hlvalue) {
-                return;
-            }
-            this.highlighted = hlvalue;
-            this.redraw();
-            this.renderer.throttledPaperDraw();
-        },
-        unhighlight: function() {
-            if (!this.highlighted) {
-                return;
-            }
-            this.highlighted = false;
-            this.redraw();
-            this.renderer.throttledPaperDraw();
-        },
-        saveCoords: function() {
-            var _coords = this.renderer.toModelCoords(this.paper_coords),
-            _data = {
-                position: {
-                    x: _coords.x,
-                    y: _coords.y
-                }
-            };
-            if (this.renderer.isEditable()) {
-                this.model.set(_data);
-            }
-        },
-        mousedown: function(_event, _isTouch) {
-            if (_isTouch) {
-                this.renderer.unselectAll();
-                this.select();
-            }
-        },
-        mouseup: function(_event, _isTouch) {
-            if (this.renderer.is_dragging && this.renderer.isEditable()) {
-                this.saveCoords();
-            } else {
-                if (!_isTouch && !this.model.get("delete_scheduled")) {
-                    this.openEditor();
-                }
-                this.model.trigger("clicked");
-            }
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-            this.is_dragging = false;
-        },
-        destroy: function(_event) {
-            this._super("destroy");
-            this.all_buttons.forEach(function(b) {
-                b.destroy();
-            });
-            this.circle.remove();
-            this.title.remove();
-            if (this.renderer.minimap) {
-                this.minimap_circle.remove();
-            }
-            if (this.node_image) {
-                this.node_image.remove();
-            }
-        }
-    });
-
-    /* */
-
-    var Edge = Renderer.Edge = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(Edge.prototype).extend({
-        _init: function() {
-            this.renderer.edge_layer.activate();
-            this.type = "Edge";
-            this.from_representation = this.renderer.getRepresentationByModel(this.model.get("from"));
-            this.to_representation = this.renderer.getRepresentationByModel(this.model.get("to"));
-            this.bundle = this.renderer.addToBundles(this);
-            this.line = new paper.Path();
-            this.line.add([0,0],[0,0],[0,0]);
-            this.line.__representation = this;
-            this.line.strokeWidth = this.options.edge_stroke_width;
-            this.arrow = new paper.Path();
-            this.arrow.add(
-                    [ 0, 0 ],
-                    [ this.options.edge_arrow_length, this.options.edge_arrow_width / 2 ],
-                    [ 0, this.options.edge_arrow_width ]
-            );
-            this.arrow.__representation = this;
-            this.text = $('<div class="Rk-Label Rk-Edge-Label">').appendTo(this.renderer.labels_$);
-            this.arrow_angle = 0;
-            if (this.options.editor_mode) {
-                this.normal_buttons = [
-                                       new EdgeEditButton(this.renderer, null),
-                                       new EdgeRemoveButton(this.renderer, null)
-                                       ];
-                this.pending_delete_buttons = [
-                                               new EdgeRevertButton(this.renderer, null)
-                                               ];
-                this.all_buttons = this.normal_buttons.concat(this.pending_delete_buttons);
-                for (var i = 0; i < this.all_buttons.length; i++) {
-                    this.all_buttons[i].source_representation = this;
-                }
-                this.active_buttons = [];
-            } else {
-                this.active_buttons = this.all_buttons = [];
-            }
-
-            if (this.renderer.minimap) {
-                this.renderer.minimap.edge_layer.activate();
-                this.minimap_line = new paper.Path();
-                this.minimap_line.add([0,0],[0,0]);
-                this.minimap_line.__representation = this.renderer.minimap.miniframe.__representation;
-                this.minimap_line.strokeWidth = 1;
-            }
-        },
-        redraw: function() {
-            var from = this.model.get("from"),
-            to = this.model.get("to");
-            if (!from || !to) {
-                return;
-            }
-            this.from_representation = this.renderer.getRepresentationByModel(from);
-            this.to_representation = this.renderer.getRepresentationByModel(to);
-            if (typeof this.from_representation === "undefined" || typeof this.to_representation === "undefined") {
-                return;
-            }
-            var _p0a = this.from_representation.paper_coords,
-            _p1a = this.to_representation.paper_coords,
-            _v = _p1a.subtract(_p0a),
-            _r = _v.length,
-            _u = _v.divide(_r),
-            _ortho = new paper.Point([- _u.y, _u.x]),
-            _group_pos = this.bundle.getPosition(this),
-            _delta = _ortho.multiply( this.options.edge_gap_in_bundles * _group_pos ),
-            _p0b = _p0a.add(_delta), /* Adding a 4 px difference */
-            _p1b = _p1a.add(_delta), /* to differentiate bundled links */
-            _a = _v.angle,
-            _textdelta = _ortho.multiply(this.options.edge_label_distance),
-            _handle = _v.divide(3),
-            _color = this.model.get("color") || this.model.get("color") || (this.model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan)).get("color"),
-            opacity = 1;
-
-            if (this.model.get("delete_scheduled") || this.from_representation.model.get("delete_scheduled") || this.to_representation.model.get("delete_scheduled")) {
-                opacity = .5;
-                this.line.dashArray = [2, 2];
-            } else {
-                opacity = 1;
-                this.line.dashArray = null;
-            }
-
-            var old_act_btn = this.active_buttons;
-
-            this.active_buttons = this.model.get("delete_scheduled") ? this.pending_delete_buttons : this.normal_buttons;
-
-            if (this.selected && this.renderer.isEditable() && old_act_btn !== this.active_buttons) {
-                old_act_btn.forEach(function(b) {
-                    b.hide();
-                });
-                this.active_buttons.forEach(function(b) {
-                    b.show();
-                });
-            }
-
-            this.paper_coords = _p0b.add(_p1b).divide(2);
-            this.line.strokeColor = _color;
-            this.line.opacity = opacity;
-            this.line.segments[0].point = _p0a;
-            this.line.segments[1].point = this.paper_coords;
-            this.line.segments[1].handleIn = _handle.multiply(-1);
-            this.line.segments[1].handleOut = _handle;
-            this.line.segments[2].point = _p1a;
-            this.arrow.rotate(_a - this.arrow_angle);
-            this.arrow.fillColor = _color;
-            this.arrow.opacity = opacity;
-            this.arrow.position = this.paper_coords;
-            this.arrow_angle = _a;
-            if (_a > 90) {
-                _a -= 180;
-                _textdelta = _textdelta.multiply(-1);
-            }
-            if (_a < -90) {
-                _a += 180;
-                _textdelta = _textdelta.multiply(-1);
-            }
-            var _text = this.model.get("title") || this.renkan.translate(this.options.label_untitled_edges) || "";
-            _text = Rkns.Utils.shortenText(_text, this.options.node_label_max_length);
-            this.text.text(_text);
-            var _textpos = this.paper_coords.add(_textdelta);
-            this.text.css({
-                left: _textpos.x,
-                top: _textpos.y,
-                transform: "rotate(" + _a + "deg)",
-                "-moz-transform": "rotate(" + _a + "deg)",
-                "-webkit-transform": "rotate(" + _a + "deg)",
-                opacity: opacity
-            });
-            this.text_angle = _a;
-
-            var _pc = this.paper_coords;
-            this.all_buttons.forEach(function(b) {
-                b.moveTo(_pc);
-            });
-
-            if (this.renderer.minimap) {
-                this.minimap_line.strokeColor = _color;
-                this.minimap_line.segments[0].point = this.renderer.toMinimapCoords(new paper.Point(this.from_representation.model.get("position")));
-                this.minimap_line.segments[1].point = this.renderer.toMinimapCoords(new paper.Point(this.to_representation.model.get("position")));
-            }
-        },
-        openEditor: function() {
-            this.renderer.removeRepresentationsOfType("editor");
-            var _editor = this.renderer.addRepresentation("EdgeEditor",null);
-            _editor.source_representation = this;
-            _editor.draw();
-        },
-        select: function() {
-            this.selected = true;
-            this.line.strokeWidth = this.options.selected_edge_stroke_width;
-            if (this.renderer.isEditable()) {
-                this.active_buttons.forEach(function(b) {
-                    b.show();
-                });
-            }
-            if (!this.options.editor_mode) {
-                this.openEditor();
-            }
-            this._super("select");
-        },
-        unselect: function(_newTarget) {
-            if (!_newTarget || _newTarget.source_representation !== this) {
-                this.selected = false;
-                if (this.options.editor_mode) {
-                    this.all_buttons.forEach(function(b) {
-                        b.hide();
-                    });
-                }
-                this.line.strokeWidth = this.options.edge_stroke_width;
-                this._super("unselect");
-            }
-        },
-        mousedown: function(_event, _isTouch) {
-            if (_isTouch) {
-                this.renderer.unselectAll();
-                this.select();
-            }
-        },
-        mouseup: function(_event, _isTouch) {
-            if (!this.renkan.read_only && this.renderer.is_dragging) {
-                this.from_representation.saveCoords();
-                this.to_representation.saveCoords();
-                this.from_representation.is_dragging = false;
-                this.to_representation.is_dragging = false;
-            } else {
-                if (!_isTouch) {
-                    this.openEditor();
-                }
-                this.model.trigger("clicked");
-            }
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-        },
-        paperShift: function(_delta) {
-            if (this.options.editor_mode) {
-                if (!this.options.read_only) {
-                    this.from_representation.paperShift(_delta);
-                    this.to_representation.paperShift(_delta);
-                }
-            } else {
-                this.renderer.paperShift(_delta);
-            }
-        },
-        destroy: function() {
-            this._super("destroy");
-            this.line.remove();
-            this.arrow.remove();
-            this.text.remove();
-            if (this.renderer.minimap) {
-                this.minimap_line.remove();
-            }
-            this.all_buttons.forEach(function(b) {
-                b.destroy();
-            });
-            var _this = this;
-            this.bundle.edges = _(this.bundle.edges).reject(function(_edge) {
-                return _this === _edge;
-            });
-        }
-    });
-
-    /* */
-
-    var TempEdge = Renderer.TempEdge = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(TempEdge.prototype).extend({
-        _init: function() {
-            this.renderer.edge_layer.activate();
-            this.type = "Temp-edge";
-
-            var _color = (this.project.get("users").get(this.renkan.current_user) || Rkns.Utils._USER_PLACEHOLDER(this.renkan)).get("color");
-            this.line = new paper.Path();
-            this.line.strokeColor = _color;
-            this.line.dashArray = [4, 2];
-            this.line.strokeWidth = this.options.selected_edge_stroke_width;
-            this.line.add([0,0],[0,0]);
-            this.line.__representation = this;
-            this.arrow = new paper.Path();
-            this.arrow.fillColor = _color;
-            this.arrow.add(
-                    [ 0, 0 ],
-                    [ this.options.edge_arrow_length, this.options.edge_arrow_width / 2 ],
-                    [ 0, this.options.edge_arrow_width ]
-            );
-            this.arrow.__representation = this;
-            this.arrow_angle = 0;
-        },
-        redraw: function() {
-            var _p0 = this.from_representation.paper_coords,
-            _p1 = this.end_pos,
-            _a = _p1.subtract(_p0).angle,
-            _c = _p0.add(_p1).divide(2);
-            this.line.segments[0].point = _p0;
-            this.line.segments[1].point = _p1;
-            this.arrow.rotate(_a - this.arrow_angle);
-            this.arrow.position = _c;
-            this.arrow_angle = _a;
-        },
-        paperShift: function(_delta) {
-            if (!this.renderer.isEditable()) {
-                this.renderer.removeRepresentation(_this);
-                paper.view.draw();
-                return;
-            }
-            this.end_pos = this.end_pos.add(_delta);
-            var _hitResult = paper.project.hitTest(this.end_pos);
-            this.renderer.findTarget(_hitResult);
-            this.redraw();
-        },
-        mouseup: function(_event, _isTouch) {
-            var _hitResult = paper.project.hitTest(_event.point),
-            _model = this.from_representation.model,
-            _endDrag = true;
-            if (_hitResult && typeof _hitResult.item.__representation !== "undefined") {
-                var _target = _hitResult.item.__representation;
-                if (_target.type.substr(0,4) === "Node") {
-                    var _destmodel = _target.model || _target.source_representation.model;
-                    if (_model !== _destmodel) {
-                        var _data = {
-                                id: Rkns.Utils.getUID('edge'),
-                                created_by: this.renkan.current_user,
-                                from: _model,
-                                to: _destmodel
-                        };
-                        if (this.renderer.isEditable()) {
-                            this.project.addEdge(_data);
-                        }
-                    }
-                }
-
-                if (_model === _target.model || (_target.source_representation && _target.source_representation.model === _model)) {
-                    _endDrag = false;
-                    this.renderer.is_dragging = true;
-                }
-            }
-            if (_endDrag) {
-                this.renderer.click_target = null;
-                this.renderer.is_dragging = false;
-                this.renderer.removeRepresentation(this);
-                paper.view.draw();
-            }
-        },
-        destroy: function() {
-            this.arrow.remove();
-            this.line.remove();
-        }
-    });
-
-    /* */
-
-    var _BaseEditor = Renderer._BaseEditor = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(_BaseEditor.prototype).extend({
-        _init: function() {
-            this.renderer.buttons_layer.activate();
-            this.type = "editor";
-            this.editor_block = new paper.Path();
-            var _pts = _(_.range(8)).map(function() {return [0,0];});
-            this.editor_block.add.apply(this.editor_block, _pts);
-            this.editor_block.strokeWidth = this.options.tooltip_border_width;
-            this.editor_block.strokeColor = this.options.tooltip_border_color;
-            this.editor_block.opacity = .8;
-            this.editor_$ = $('<div>')
-            .appendTo(this.renderer.editor_$)
-            .css({
-                position: "absolute",
-                opacity: .8
-            })
-            .hide();
-        },
-        destroy: function() {
-            this.editor_block.remove();
-            this.editor_$.remove();
-        }
-    });
-
-    /* */
-
-    var NodeEditor = Renderer.NodeEditor = Rkns.Utils.inherit(_BaseEditor);
-
-    _(NodeEditor.prototype).extend({
-        template: _.template(
-                '<h2><span class="Rk-CloseX">&times;</span><%-renkan.translate("Edit Node")%></span></h2>'
-                + '<p><label><%-renkan.translate("Title:")%></label><input class="Rk-Edit-Title" type="text" value="<%-node.title%>"/></p>'
-                + '<% if (options.show_node_editor_uri) { %><p><label><%-renkan.translate("URI:")%></label><input class="Rk-Edit-URI" type="text" value="<%-node.uri%>"/><a class="Rk-Edit-Goto" href="<%-node.uri%>" target="_blank"></a></p><% } %>'
-                + '<% if (options.show_node_editor_description) { %><p><label><%-renkan.translate("Description:")%></label><textarea class="Rk-Edit-Description"><%-node.description%></textarea></p><% } %>'
-                + '<% if (options.show_node_editor_size) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("Size:")%></span><a href="#" class="Rk-Edit-Size-Down">-</a><span class="Rk-Edit-Size-Value"><%-node.size%></span><a href="#" class="Rk-Edit-Size-Up">+</a></p><% } %>'
-                + '<% if (options.show_node_editor_color) { %><div class="Rk-Editor-p"><span class="Rk-Editor-Label"><%-renkan.translate("Node color:")%></span><div class="Rk-Edit-ColorPicker-Wrapper"><span class="Rk-Edit-Color" style="background:<%-node.color%>;"><span class="Rk-Edit-ColorTip"></span></span>'
-                + '<%= renkan.colorPicker %><span class="Rk-Edit-ColorPicker-Text"><%- renkan.translate("Choose color") %></span></div></div><% } %>'
-                + '<% if (options.show_node_editor_image) { %><div class="Rk-Edit-ImgWrap"><div class="Rk-Edit-ImgPreview"><img src="<%-node.image || node.image_placeholder%>" />'
-                + '<% if (node.clip_path) { %><svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewbox="0 0 1 1" preserveAspectRatio="none"><path style="stroke-width: .02; stroke:red; fill-opacity:.3; fill:red;" d="<%- node.clip_path %>"/></svg><% }%>'
-                + '</div></div><p><label><%-renkan.translate("Image URL:")%></label><input class="Rk-Edit-Image" type="text" value="<%-node.image%>"/></p>'
-                + '<p><label><%-renkan.translate("Choose Image File:")%></label><input class="Rk-Edit-Image-File" type="file" accept="image/*"/></p><% } %>'    
-                + '<% if (options.show_node_editor_creator && node.has_creator) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span> <span class="Rk-UserColor" style="background:<%-node.created_by_color%>;"></span><%- shortenText(node.created_by_title, 25) %></p><% } %>'
-        ),
-        readOnlyTemplate: _.template(
-                '<h2><span class="Rk-CloseX">&times;</span><% if (options.show_node_tooltip_color) { %><span class="Rk-UserColor" style="background:<%-node.color%>;"></span><% } %>'
-                + '<span class="Rk-Display-Title"><% if (node.uri) { %><a href="<%-node.uri%>" target="_blank"><% } %><%-node.title%><% if (node.uri) { %></a><% } %></span></h2>'
-                + '<% if (node.uri && options.show_node_tooltip_uri) { %><p class="Rk-Display-URI"><a href="<%-node.uri%>" target="_blank"><%-node.short_uri%></a></p><% } %>'
-                + '<% if (options.show_node_tooltip_description) { %><p class="Rk-Display-Description"><%-node.description%></p><% } %>'
-                + '<% if (node.image && options.show_node_tooltip_image) { %><img class="Rk-Display-ImgPreview" src="<%-node.image%>" /><% } %>'
-                + '<% if (node.has_creator && options.show_node_tooltip_creator) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span><span class="Rk-UserColor" style="background:<%-node.created_by_color%>;"></span><%- shortenText(node.created_by_title, 25) %></p><% } %>'
-        ),
-        draw: function() {
-            var _model = this.source_representation.model,
-            _created_by = _model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan),
-            _template = (this.renderer.isEditable() ? this.template : this.readOnlyTemplate ),
-            _image_placeholder = this.options.static_url + "img/image-placeholder.png",
-            _size = (_model.get("size") || 0);
-            this.editor_$
-            .html(_template({
-                node: {
-                    has_creator: !!_model.get("created_by"),
-                    title: _model.get("title"),
-                    uri: _model.get("uri"),
-                    short_uri:  Rkns.Utils.shortenText((_model.get("uri") || "").replace(/^(https?:\/\/)?(www\.)?/,'').replace(/\/$/,''),40),
-                    description: _model.get("description"),
-                    image: _model.get("image") || "",
-                    image_placeholder: _image_placeholder,
-                    color: _model.get("color") || _created_by.get("color"),
-                    clip_path: _model.get("clip_path") || false,
-                    created_by_color: _created_by.get("color"),
-                    created_by_title: _created_by.get("title"),
-                    size: (_size > 0 ? "+" : "") + _size
-                },
-                renkan: this.renkan,
-                options: this.options,
-                shortenText: Rkns.Utils.shortenText
-            }));
-            this.redraw();
-            var _this = this,
-            closeEditor = function() {
-                _this.renderer.removeRepresentation(_this);
-                paper.view.draw();
-            };
-
-            this.editor_$.find(".Rk-CloseX").click(closeEditor);
-
-            this.editor_$.find(".Rk-Edit-Goto").click(function() {
-                if (!_model.get("uri")) {
-                    return false;
-                }
-            });
-
-            if (this.renderer.isEditable()) {
-
-                var onFieldChange = _(function() {
-                    _(function() {
-                        if (_this.renderer.isEditable()) {
-                            var _data = {
-                                    title: _this.editor_$.find(".Rk-Edit-Title").val()
-                            };
-                            if (_this.options.show_node_editor_uri) {
-                                _data.uri = _this.editor_$.find(".Rk-Edit-URI").val();
-                                _this.editor_$.find(".Rk-Edit-Goto").attr("href",_data.uri || "#");
-                            }
-                            if (_this.options.show_node_editor_image) {
-                                _data.image = _this.editor_$.find(".Rk-Edit-Image").val();
-                                _this.editor_$.find(".Rk-Edit-ImgPreview").attr("src", _data.image || _image_placeholder);
-                            }
-                            if (_this.options.show_node_editor_description) {
-                                _data.description = _this.editor_$.find(".Rk-Edit-Description").val();
-                            }
-                            _model.set(_data);
-                            _this.redraw();
-                        } else {
-                            closeEditor();
-                        }
-
-                    }).defer();
-                }).throttle(500);
-
-                this.editor_$.on("keyup", function(_e) {
-                    if (_e.keyCode === 27) {
-                        closeEditor();
-                    }
-                });
-
-                this.editor_$.find("input, textarea").on("change keyup paste", onFieldChange);
-
-                this.editor_$.find(".Rk-Edit-Image-File").change(function() {
-                    if (this.files.length) {
-                        var f = this.files[0],
-                        fr = new FileReader();
-                        if (f.type.substr(0,5) !== "image") {
-                            alert(_this.renkan.translate("This file is not an image"));
-                            return;
-                        }
-                        if (f.size > (_this.options.uploaded_image_max_kb * 1024)) {
-                            alert(_this.renkan.translate("Image size must be under ") + _this.options.uploaded_image_max_kb + _this.renkan.translate("KB"));
-                            return;
-                        }
-                        fr.onload = function(e) {
-                            _this.editor_$.find(".Rk-Edit-Image").val(e.target.result);
-                            onFieldChange();
-                        };
-                        fr.readAsDataURL(f);
-                    }
-                });
-                this.editor_$.find(".Rk-Edit-Title")[0].focus();
-
-                var _picker = _this.editor_$.find(".Rk-Edit-ColorPicker");
-
-                this.editor_$.find(".Rk-Edit-ColorPicker-Wrapper").hover(
-                        function(_e) {
-                            _e.preventDefault();
-                            _picker.show();
-                        },
-                        function(_e) {
-                            _e.preventDefault();
-                            _picker.hide();
-                        }
-                );
-
-                _picker.find("li").hover(
-                        function(_e) {
-                            _e.preventDefault();
-                            _this.editor_$.find(".Rk-Edit-Color").css("background", $(this).attr("data-color"));
-                        },
-                        function(_e) {
-                            _e.preventDefault();
-                            _this.editor_$.find(".Rk-Edit-Color").css("background", _model.get("color") || (_model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(_this.renkan)).get("color"));
-                        }
-                ).click(function(_e) {
-                    _e.preventDefault();
-                    if (_this.renderer.isEditable()) {
-                        _model.set("color", $(this).attr("data-color"));
-                        _picker.hide();
-                        paper.view.draw();
-                    } else {
-                        closeEditor();
-                    }
-                });
-
-                var shiftSize = function(n) {
-                    if (_this.renderer.isEditable()) {
-                        var _newsize = n+(_model.get("size") || 0);
-                        _this.editor_$.find(".Rk-Edit-Size-Value").text((_newsize > 0 ? "+" : "") + _newsize);
-                        _model.set("size", _newsize);
-                        paper.view.draw();
-                    } else {
-                        closeEditor();
-                    }
-                };
-
-                this.editor_$.find(".Rk-Edit-Size-Down").click(function() {
-                    shiftSize(-1);
-                    return false;
-                });
-                this.editor_$.find(".Rk-Edit-Size-Up").click(function() {
-                    shiftSize(1);
-                    return false;
-                });
-            } else {
-                if (typeof this.source_representation.highlighted === "object") {
-                    var titlehtml = this.source_representation.highlighted.replace(_(_model.get("title")).escape(),'<span class="Rk-Highlighted">$1</span>');
-                    this.editor_$.find(".Rk-Display-Title" + (_model.get("uri") ? " a" : "")).html(titlehtml);
-                    if (this.options.show_node_tooltip_description) {
-                        this.editor_$.find(".Rk-Display-Description").html(this.source_representation.highlighted.replace(_(_model.get("description")).escape(),'<span class="Rk-Highlighted">$1</span>'));
-                    }
-                }
-            }
-            this.editor_$.find("img").load(function() {
-                _this.redraw();
-            });
-        },
-        redraw: function() {
-            var _coords = this.source_representation.paper_coords;
-            Rkns.Utils.drawEditBox(this.options, _coords, this.editor_block, this.source_representation.circle_radius * .75, this.editor_$);
-            this.editor_$.show();
-            paper.view.draw();
-        }
-    });
-
-    /* */
-
-    var EdgeEditor = Renderer.EdgeEditor = Rkns.Utils.inherit(_BaseEditor);
-
-    _(EdgeEditor.prototype).extend({
-        template: _.template(
-                '<h2><span class="Rk-CloseX">&times;</span><%-renkan.translate("Edit Edge")%></span></h2>'
-                + '<p><label><%-renkan.translate("Title:")%></label><input class="Rk-Edit-Title" type="text" value="<%-edge.title%>"/></p>'
-                + '<% if (options.show_edge_editor_uri) { %><p><label><%-renkan.translate("URI:")%></label><input class="Rk-Edit-URI" type="text" value="<%-edge.uri%>"/><a class="Rk-Edit-Goto" href="<%-edge.uri%>" target="_blank"></a></p>'
-                + '<% if (options.properties.length) { %><p><label><%-renkan.translate("Choose from vocabulary:")%></label><select class="Rk-Edit-Vocabulary">'
-                + '<% _(options.properties).each(function(ontology) { %><option class="Rk-Edit-Vocabulary-Class" value=""><%- renkan.translate(ontology.label) %></option>'
-                + '<% _(ontology.properties).each(function(property) { var uri = ontology["base-uri"] + property.uri; %><option class="Rk-Edit-Vocabulary-Property" value="<%- uri %>'
-                + '"<% if (uri === edge.uri) { %> selected<% } %>><%- renkan.translate(property.label) %></option>'
-                + '<% }) %><% }) %></select></p><% } } %>'
-                + '<% if (options.show_edge_editor_color) { %><div class="Rk-Editor-p"><span class="Rk-Editor-Label"><%-renkan.translate("Edge color:")%></span><div class="Rk-Edit-ColorPicker-Wrapper"><span class="Rk-Edit-Color" style="background:<%-edge.color%>;"><span class="Rk-Edit-ColorTip"></span></span>'
-                + '<%= renkan.colorPicker %><span class="Rk-Edit-ColorPicker-Text"><%- renkan.translate("Choose color") %></span></div></div><% } %>'
-                + '<% if (options.show_edge_editor_direction) { %><p><span class="Rk-Edit-Direction"><%- renkan.translate("Change edge direction") %></span></p><% } %>'
-                + '<% if (options.show_edge_editor_nodes) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("From:")%></span><span class="Rk-UserColor" style="background:<%-edge.from_color%>;"></span><%- shortenText(edge.from_title, 25) %></p>'
-                + '<p><span class="Rk-Editor-Label"><%-renkan.translate("To:")%></span><span class="Rk-UserColor" style="background:<%-edge.to_color%>;"></span><%- shortenText(edge.to_title, 25) %></p><% } %>'
-                + '<% if (options.show_edge_editor_creator && edge.has_creator) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span><span class="Rk-UserColor" style="background:<%-edge.created_by_color%>;"></span><%- shortenText(edge.created_by_title, 25) %></p><% } %>'
-        ),
-        readOnlyTemplate: _.template(
-                '<h2><span class="Rk-CloseX">&times;</span><% if (options.show_edge_tooltip_color) { %><span class="Rk-UserColor" style="background:<%-edge.color%>;"></span><% } %>'
-                + '<span class="Rk-Display-Title"><% if (edge.uri) { %><a href="<%-edge.uri%>" target="_blank"><% } %><%-edge.title%><% if (edge.uri) { %></a><% } %></span></h2>'
-                + '<% if (options.show_edge_tooltip_uri && edge.uri) { %><p class="Rk-Display-URI"><a href="<%-edge.uri%>" target="_blank"><%-edge.short_uri%></a></p><% } %>'
-                + '<p><%-edge.description%></p>'
-                + '<% if (options.show_edge_tooltip_nodes) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("From:")%></span><span class="Rk-UserColor" style="background:<%-edge.from_color%>;"></span><%- shortenText(edge.from_title, 25) %></p>'
-                + '<p><span class="Rk-Editor-Label"><%-renkan.translate("To:")%></span><span class="Rk-UserColor" style="background:<%-edge.to_color%>;"></span><%- shortenText(edge.to_title, 25) %></p><% } %>'
-                + '<% if (options.show_edge_tooltip_creator && edge.has_creator) { %><p><span class="Rk-Editor-Label"><%-renkan.translate("Created by:")%></span><span class="Rk-UserColor" style="background:<%-edge.created_by_color%>;"></span><%- shortenText(edge.created_by_title, 25) %></p><% } %>'
-        ),
-        draw: function() {
-            var _model = this.source_representation.model,
-            _from_model = _model.get("from"),
-            _to_model = _model.get("to"),
-            _created_by = _model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan),
-            _template = (this.renderer.isEditable() ? this.template : this.readOnlyTemplate);
-            this.editor_$
-            .html(_template({
-                edge: {
-                    has_creator: !!_model.get("created_by"),
-                    title: _model.get("title"),
-                    uri: _model.get("uri"),
-                    short_uri:  Rkns.Utils.shortenText((_model.get("uri") || "").replace(/^(https?:\/\/)?(www\.)?/,'').replace(/\/$/,''),40),
-                    description: _model.get("description"),
-                    color: _model.get("color") || _created_by.get("color"),
-                    from_title: _from_model.get("title"),
-                    to_title: _to_model.get("title"),
-                    from_color: _from_model.get("color") || (_from_model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan)).get("color"),
-                    to_color: _to_model.get("color") || (_to_model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(this.renkan)).get("color"),
-                    created_by_color: _created_by.get("color"),
-                    created_by_title: _created_by.get("title")
-                },
-                renkan: this.renkan,
-                shortenText: Rkns.Utils.shortenText,
-                options: this.options
-            }));
-            this.redraw();
-            var _this = this,
-            closeEditor = function() {
-                _this.renderer.removeRepresentation(_this);
-                paper.view.draw();
-            };
-            this.editor_$.find(".Rk-CloseX").click(closeEditor);
-            this.editor_$.find(".Rk-Edit-Goto").click(function() {
-                if (!_model.get("uri")) {
-                    return false;
-                }
-            });
-
-            if (this.renderer.isEditable()) {
-
-                var onFieldChange = _(function() {
-                    _(function() {
-                        if (_this.renderer.isEditable()) {
-                            var _data = {
-                                    title: _this.editor_$.find(".Rk-Edit-Title").val()
-                            };
-                            if (_this.options.show_edge_editor_uri) {
-                                _data.uri = _this.editor_$.find(".Rk-Edit-URI").val();
-                            }
-                            _this.editor_$.find(".Rk-Edit-Goto").attr("href",_data.uri || "#");
-                            _model.set(_data);
-                            paper.view.draw();
-                        } else {
-                            closeEditor();
-                        }
-                    }).defer();
-                }).throttle(500);
-
-                this.editor_$.on("keyup", function(_e) {
-                    if (_e.keyCode === 27) {
-                        closeEditor();
-                    }
-                });
-
-                this.editor_$.find("input").on("keyup change paste", onFieldChange);
-
-                this.editor_$.find(".Rk-Edit-Vocabulary").change(function() {
-                    var e = $(this),
-                    v = e.val();
-                    if (v) {
-                        _this.editor_$.find(".Rk-Edit-Title").val(e.find(":selected").text());
-                        _this.editor_$.find(".Rk-Edit-URI").val(v);
-                        onFieldChange();
-                    }
-                });
-                this.editor_$.find(".Rk-Edit-Direction").click(function() {
-                    if (_this.renderer.isEditable()) {
-                        _model.set({
-                            from: _model.get("to"),
-                            to: _model.get("from")
-                        });
-                        _this.draw();
-                    } else {
-                        closeEditor();
-                    }
-                });
-
-                var _picker = _this.editor_$.find(".Rk-Edit-ColorPicker");
-
-                this.editor_$.find(".Rk-Edit-ColorPicker-Wrapper").hover(
-                        function(_e) {
-                            _e.preventDefault();
-                            _picker.show();
-                        },
-                        function(_e) {
-                            _e.preventDefault();
-                            _picker.hide();
-                        }
-                );
-
-                _picker.find("li").hover(
-                        function(_e) {
-                            _e.preventDefault();
-                            _this.editor_$.find(".Rk-Edit-Color").css("background", $(this).attr("data-color"));
-                        },
-                        function(_e) {
-                            _e.preventDefault();
-                            _this.editor_$.find(".Rk-Edit-Color").css("background", _model.get("color") || (_model.get("created_by") || Rkns.Utils._USER_PLACEHOLDER(_this.renkan)).get("color"));
-                        }
-                ).click(function(_e) {
-                    _e.preventDefault();
-                    if (_this.renderer.isEditable()) {
-                        _model.set("color", $(this).attr("data-color"));
-                        _picker.hide();
-                        paper.view.draw();
-                    } else {
-                        closeEditor();
-                    }
-                });
-            }
-        },
-        redraw: function() {
-            var _coords = this.source_representation.paper_coords;
-            Rkns.Utils.drawEditBox(this.options, _coords, this.editor_block, 5, this.editor_$);
-            this.editor_$.show();
-            paper.view.draw();
-        }
-    });
-
-    /* */
-
-    var _NodeButton = Renderer._NodeButton = Rkns.Utils.inherit(_BaseButton);
-
-    _(_NodeButton.prototype).extend({
-        setSectorSize: function() {
-            var sectorInner = this.source_representation.circle_radius;
-            if (sectorInner !== this.lastSectorInner) {
-                if (this.sector) {
-                    this.sector.destroy();
-                }
-                this.sector = this.renderer.drawSector(
-                        this, 1 + sectorInner,
-                        Rkns.Utils._NODE_BUTTON_WIDTH + sectorInner,
-                        this.startAngle,
-                        this.endAngle,
-                        1,
-                        this.imageName,
-                        this.renkan.translate(this.text)
-                );
-                this.lastSectorInner = sectorInner;
-            }
-        }
-    });
-
-    /* */
-
-    var NodeEditButton = Renderer.NodeEditButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeEditButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-edit-button";
-            this.lastSectorInner = 0;
-            this.startAngle = -135;
-            this.endAngle = -45;
-            this.imageName = "edit";
-            this.text = "Edit";
-        },
-        mouseup: function() {
-            if (!this.renderer.is_dragging) {
-                this.source_representation.openEditor();
-            }
-        }
-    });
-
-    /* */
-
-    var NodeRemoveButton = Renderer.NodeRemoveButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeRemoveButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-remove-button";
-            this.lastSectorInner = 0;
-            this.startAngle = 0;
-            this.endAngle = 90;
-            this.imageName = "remove";
-            this.text = "Remove";
-        },
-        mouseup: function() {
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-            this.renderer.removeRepresentationsOfType("editor");
-            if (this.renderer.isEditable()) {
-                if (this.options.element_delete_delay) {
-                    var delid = Rkns.Utils.getUID("delete");
-                    this.renderer.delete_list.push({
-                        id: delid,
-                        time: new Date().valueOf() + this.options.element_delete_delay
-                    });
-                    this.source_representation.model.set("delete_scheduled", delid);
-                } else {
-                    if (confirm(this.renkan.translate('Do you really wish to remove node ') + '"' + this.source_representation.model.get("title") + '"?')) {
-                        this.project.removeNode(this.source_representation.model);
-                    }
-                }
-            }
-        }
-    });
-
-    /* */
-
-    var NodeRevertButton = Renderer.NodeRevertButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeRevertButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-revert-button";
-            this.lastSectorInner = 0;
-            this.startAngle = -135;
-            this.endAngle = 135;
-            this.imageName = "revert";
-            this.text = "Cancel deletion";
-        },
-        mouseup: function() {
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-            if (this.renderer.isEditable()) {
-                this.source_representation.model.unset("delete_scheduled");
-            }
-        }
-    });
-
-    /* */
-
-    var NodeLinkButton = Renderer.NodeLinkButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeLinkButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-link-button";
-            this.lastSectorInner = 0;
-            this.startAngle = 90;
-            this.endAngle = 180;
-            this.imageName = "link";
-            this.text = "Link to another node";
-        },
-        mousedown: function(_event, _isTouch) {
-            if (this.renderer.isEditable()) {
-                var _off = this.renderer.canvas_$.offset(),
-                _point = new paper.Point([
-                                          _event.pageX - _off.left,
-                                          _event.pageY - _off.top
-                                          ]);
-                this.renderer.click_target = null;
-                this.renderer.removeRepresentationsOfType("editor");
-                this.renderer.addTempEdge(this.source_representation, _point);
-            }
-        }
-    });
-
-    /* */
-
-    var NodeEnlargeButton = Renderer.NodeEnlargeButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeEnlargeButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-enlarge-button";
-            this.lastSectorInner = 0;
-            this.startAngle = -45;
-            this.endAngle = 0;
-            this.imageName = "enlarge";
-            this.text = "Enlarge";
-        },
-        mouseup: function() {
-            var _newsize = 1 + (this.source_representation.model.get("size") || 0);
-            this.source_representation.model.set("size", _newsize);
-            this.source_representation.select();
-            this.select();
-            paper.view.draw();
-        }
-    });
-
-    /* */
-
-    var NodeShrinkButton = Renderer.NodeShrinkButton = Rkns.Utils.inherit(_NodeButton);
-
-    _(NodeShrinkButton.prototype).extend({
-        _init: function() {
-            this.type = "Node-shrink-button";
-            this.lastSectorInner = 0;
-            this.startAngle = -180;
-            this.endAngle = -135;
-            this.imageName = "shrink";
-            this.text = "Shrink";
-        },
-        mouseup: function() {
-            var _newsize = -1 + (this.source_representation.model.get("size") || 0);
-            this.source_representation.model.set("size", _newsize);
-            this.source_representation.select();
-            this.select();
-            paper.view.draw();
-        }
-    });
-
-    /* */
-
-    var EdgeEditButton = Renderer.EdgeEditButton = Rkns.Utils.inherit(_BaseButton);
-
-    _(EdgeEditButton.prototype).extend({
-        _init: function() {
-            this.type = "Edge-edit-button";
-            this.sector = this.renderer.drawSector(this, Rkns.Utils._EDGE_BUTTON_INNER, Rkns.Utils._EDGE_BUTTON_OUTER, -270, -90, 1, "edit", this.renkan.translate("Edit"));
-        },
-        mouseup: function() {
-            if (!this.renderer.is_dragging) {
-                this.source_representation.openEditor();
-            }
-        }
-    });
-
-    /* */
-
-    var EdgeRemoveButton = Renderer.EdgeRemoveButton = Rkns.Utils.inherit(_BaseButton);
-
-    _(EdgeRemoveButton.prototype).extend({
-        _init: function() {
-            this.type = "Edge-remove-button";
-            this.sector = this.renderer.drawSector(this, Rkns.Utils._EDGE_BUTTON_INNER, Rkns.Utils._EDGE_BUTTON_OUTER, -90, 90, 1, "remove", this.renkan.translate("Remove"));
-        },
-        mouseup: function() {
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-            this.renderer.removeRepresentationsOfType("editor");
-            if (this.renderer.isEditable()) {
-                if (this.options.element_delete_delay) {
-                    var delid = Rkns.Utils.getUID("delete");
-                    this.renderer.delete_list.push({
-                        id: delid,
-                        time: new Date().valueOf() + this.options.element_delete_delay
-                    });
-                    this.source_representation.model.set("delete_scheduled", delid);
-                } else {
-                    if (confirm(this.renkan.translate('Do you really wish to remove edge ') + '"' + this.source_representation.model.get("title") + '"?')) {
-                        this.project.removeEdge(this.source_representation.model);
-                    }
-                }
-            }
-        }
-    });
-
-    /* */
-
-    var EdgeRevertButton = Renderer.EdgeRevertButton = Rkns.Utils.inherit(_BaseButton);
-
-    _(EdgeRevertButton.prototype).extend({
-        _init: function() {
-            this.type = "Edge-revert-button";
-            this.sector = this.renderer.drawSector(this, Rkns.Utils._EDGE_BUTTON_INNER, Rkns.Utils._EDGE_BUTTON_OUTER, -135, 135, 1, "revert", this.renkan.translate("Cancel deletion"));
-        },
-        mouseup: function() {
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-            if (this.renderer.isEditable()) {
-                this.source_representation.model.unset("delete_scheduled");
-            }
-        }
-    });
-
-    /* */
-
-    var MiniFrame = Renderer.MiniFrame = Rkns.Utils.inherit(_BaseRepresentation);
-
-    _(MiniFrame.prototype).extend({
-        paperShift: function(_delta) {
-            this.renderer.offset = this.renderer.offset.subtract(_delta.divide(this.renderer.minimap.scale).multiply(this.renderer.scale));
-            this.renderer.redraw();
-        },
-        mouseup: function(_delta) {
-            this.renderer.click_target = null;
-            this.renderer.is_dragging = false;
-        }
-    });
-
-    /* */
-
-    var Scene = Renderer.Scene = function(_renkan) {
-        this.renkan = _renkan;
-        this.$ = $(".Rk-Render");
-        this.representations = [];
-        this.$.html(this.template(_renkan));
-        this.onStatusChange();
-        this.canvas_$ = this.$.find(".Rk-Canvas");
-        this.labels_$ = this.$.find(".Rk-Labels");
-        this.editor_$ = this.$.find(".Rk-Editor");
-        this.notif_$ = this.$.find(".Rk-Notifications");
-        paper.setup(this.canvas_$[0]);
-        this.scale = 1;
-        this.initialScale = 1;
-        this.offset = paper.view.center;
-        this.totalScroll = 0;
-        this.mouse_down = false;
-        this.click_target = null;
-        this.selected_target = null;
-        this.edge_layer = new paper.Layer();
-        this.node_layer = new paper.Layer();
-        this.buttons_layer = new paper.Layer();
-        this.delete_list = [];
-
-        if (_renkan.options.show_minimap) {
-            this.minimap = {
-                    background_layer: new paper.Layer(),
-                    edge_layer: new paper.Layer(),
-                    node_layer: new paper.Layer(),
-                    node_group: new paper.Group(),
-                    size: new paper.Size( _renkan.options.minimap_width, _renkan.options.minimap_height )
-            };
-
-            this.minimap.background_layer.activate();
-            this.minimap.topleft = paper.view.bounds.bottomRight.subtract(this.minimap.size);
-            this.minimap.rectangle = new paper.Path.Rectangle(this.minimap.topleft.subtract([2,2]), this.minimap.size.add([4,4]));
-            this.minimap.rectangle.fillColor = _renkan.options.minimap_background_color;
-            this.minimap.rectangle.strokeColor = _renkan.options.minimap_border_color;
-            this.minimap.rectangle.strokeWidth = 4;
-            this.minimap.offset = new paper.Point(this.minimap.size.divide(2));
-            this.minimap.scale = .1;
-
-            this.minimap.node_layer.activate();
-            this.minimap.cliprectangle = new paper.Path.Rectangle(this.minimap.topleft, this.minimap.size);
-            this.minimap.node_group.addChild(this.minimap.cliprectangle);
-            this.minimap.node_group.clipped = true;
-            this.minimap.miniframe = new paper.Path.Rectangle(this.minimap.topleft, this.minimap.size);
-            this.minimap.node_group.addChild(this.minimap.miniframe);
-            this.minimap.miniframe.fillColor = '#c0c0ff';
-            this.minimap.miniframe.opacity = .3;
-            this.minimap.miniframe.strokeColor = '#000080';
-            this.minimap.miniframe.strokeWidth = 3;
-            this.minimap.miniframe.__representation = new MiniFrame(this, null);
-        }
-
-        this.throttledPaperDraw = _(function() {
-            paper.view.draw();
-        }).throttle(100);
-
-        this.bundles = [];
-        this.click_mode = false;
-
-        var _this = this,
-        _allowScroll = true,
-        _originalScale = 1,
-        _zooming = false,
-        _lastTapX = 0,
-        _lastTapY = 0;
-
-        this.image_cache = {};
-        this.icon_cache = {};
-
-        ['edit', 'remove', 'link', 'enlarge', 'shrink', 'revert' ].forEach(function(imgname) {
-            var img = new Image();
-            img.src = _renkan.options.static_url + 'img/' + imgname + '.png';
-            _this.icon_cache[imgname] = img;
-        });
-        
-        var throttledMouseMove = _.throttle(function(_event, _isTouch) {
-            _this.onMouseMove(_event, _isTouch);
-        }, Rkns.Utils._MOUSEMOVE_RATE);
-
-        this.canvas_$.on({
-            mousedown: function(_event) {
-                _event.preventDefault();
-                _this.onMouseDown(_event, false);
-            },
-            mousemove: function(_event) {
-                _event.preventDefault();
-                throttledMouseMove(_event, false);
-            },
-            mouseup: function(_event) {
-                _event.preventDefault();
-                _this.onMouseUp(_event, false);
-            },
-            mousewheel: function(_event, _delta) {
-                if(_renkan.options.zoom_on_scroll) {
-                    _event.preventDefault();
-                    if (_allowScroll) {
-                        _this.onScroll(_event, _delta);
-                    }
-                }
-            },
-            touchstart: function(_event) {
-                _event.preventDefault();
-                var _touches = _event.originalEvent.touches[0];
-                if (
-                        _renkan.options.allow_double_click
-                        && new Date() - _lastTap < Rkns.Utils._DOUBLETAP_DELAY
-                        && ( Math.pow(_lastTapX - _touches.pageX, 2) + Math.pow(_lastTapY - _touches.pageY, 2) < Rkns.Utils._DOUBLETAP_DISTANCE )
-                ) {
-                    _lastTap = 0;
-                    _this.onDoubleClick(_touches);
-                } else {
-                    _lastTap = new Date();
-                    _lastTapX = _touches.pageX;
-                    _lastTapY = _touches.pageY;
-                    _originalScale = _this.scale;
-                    _zooming = false;
-                    _this.onMouseDown(_touches, true);
-                }
-            },
-            touchmove: function(_event) {
-                _event.preventDefault();
-                _lastTap = 0;
-                if (_event.originalEvent.touches.length == 1) {
-                    _this.onMouseMove(_event.originalEvent.touches[0], true);
-                } else {
-                    if (!_zooming) {
-                        _this.onMouseUp(_event.originalEvent.touches[0], true);
-                        _this.click_target = null;
-                        _this.is_dragging = false;
-                        _zooming = true;
-                    }
-                    if (_event.originalEvent.scale === "undefined") {
-                        return;
-                    }
-                    var _newScale = _event.originalEvent.scale * _originalScale,
-                    _scaleRatio = _newScale / _this.scale,
-                    _newOffset = new paper.Point([
-                                                  _this.canvas_$.width(),
-                                                  _this.canvas_$.height()
-                                                  ]).multiply( .5 * ( 1 - _scaleRatio ) ).add(_this.offset.multiply( _scaleRatio ));
-                    _this.setScale(_newScale, _newOffset);
-                }
-            },
-            touchend: function(_event) {
-                _event.preventDefault();
-                _this.onMouseUp(_event.originalEvent.changedTouches[0], true);
-            },
-            dblclick: function(_event) {
-                _event.preventDefault();
-                if (_renkan.options.allow_double_click) {
-                    _this.onDoubleClick(_event);
-                }
-            },
-            mouseleave: function(_event) {
-                _event.preventDefault();
-                _this.onMouseUp(_event, false);
-                _this.click_target = null;
-                _this.is_dragging = false;
-            },
-            dragover: function(_event) {
-                _event.preventDefault();
-            },
-            dragenter: function(_event) {
-                _event.preventDefault();
-                _allowScroll = false;
-            },
-            dragleave: function(_event) {
-                _event.preventDefault();
-                _allowScroll = true;
-            },
-            drop: function(_event) {
-                _event.preventDefault();
-                _allowScroll = true;
-                var res = {};
-                _(_event.originalEvent.dataTransfer.types).each(function(t) {
-                    try {
-                        res[t] = _event.originalEvent.dataTransfer.getData(t);
-                    } catch(e) {}
-                });
-                var text = _event.originalEvent.dataTransfer.getData("Text");
-                if (typeof text === "string") {
-                    switch(text[0]) {
-                    case "{":
-                    case "[":
-                        try {
-                            var data = JSON.parse(text);
-                            _(res).extend(data);
-                        }
-                        catch(e) {
-                            if (!res["text/plain"]) {
-                                res["text/plain"] = text;
-                            }
-                        }
-                        break;
-                    case "<":
-                        if (!res["text/html"]) {
-                            res["text/html"] = text;
-                        }
-                        break;
-                    default:
-                        if (!res["text/plain"]) {
-                            res["text/plain"] = text;
-                        }
-                    }
-                }
-                var url = _event.originalEvent.dataTransfer.getData("URL");
-                if (url && !res["text/uri-list"]) {
-                    res["text/uri-list"] = url;
-                }
-                _this.dropData(res, _event.originalEvent);
-            }
-        });
-
-        var bindClick = function(selector, fname) {
-            _this.$.find(selector).click(function(evt) {
-                _this[fname](evt);
-                return false;
-            });
-        };
-
-        bindClick(".Rk-ZoomOut", "zoomOut");
-        bindClick(".Rk-ZoomIn", "zoomIn");
-        bindClick(".Rk-ZoomFit", "autoScale");
-        this.$.find(".Rk-ZoomSave").click( function() {
-            // Save scale and offset point
-            _this.renkan.project.addView( { zoom_level:_this.scale, offset_x:_this.offset.x, offset_y:_this.offset.y } );
-        });
-        this.$.find(".Rk-ZoomSetSaved").click( function() {
-            var view = _this.renkan.project.get("views").last();
-            if(view){
-                _this.setScale(view.get("zoom_level"), new paper.Point(view.get("offset_x"), view.get("offset_y")));
-            }
-        });
-        if(this.renkan.read_only && !isNaN(parseInt(this.renkan.options.default_view))){
-            this.$.find(".Rk-ZoomSetSaved").show();
-        }
-        this.$.find(".Rk-CurrentUser").mouseenter(
-                function() { _this.$.find(".Rk-UserList").slideDown(); }
-        );
-        this.$.find(".Rk-Users").mouseleave(
-                function() { _this.$.find(".Rk-UserList").slideUp(); }
-        );
-        bindClick(".Rk-FullScreen-Button", "fullScreen");
-        bindClick(".Rk-AddNode-Button", "addNodeBtn");
-        bindClick(".Rk-AddEdge-Button", "addEdgeBtn");
-        bindClick(".Rk-Save-Button", "save");
-        bindClick(".Rk-Open-Button", "open");
-        this.$.find(".Rk-Bookmarklet-Button")
-        .attr("href","javascript:" + Rkns.Utils._BOOKMARKLET_CODE(_renkan))
-        .click(function(){
-            _this.notif_$
-            .text(_renkan.translate("Drag this button to your bookmark bar. When on a third-party website, click it to enable drag-and-drop from the website to Renkan."))
-            .fadeIn()
-            .delay(5000)
-            .fadeOut();
-            return false;
-        });
-        this.$.find(".Rk-TopBar-Button").mouseover(function() {
-            $(this).find(".Rk-TopBar-Tooltip").show();
-        }).mouseout(function() {
-            $(this).find(".Rk-TopBar-Tooltip").hide();
-        });
-        bindClick(".Rk-Fold-Bins", "foldBins");
-
-        paper.view.onResize = function(_event) {
-            // Because of paper bug which does not calculate the good height (and width a fortiori)
-            // We have to update manually the canvas's height
-            paper.view._viewSize.height =  _event.size.height = _this.canvas_$.parent().height();
-
-            if (_this.minimap) {
-                _this.minimap.topleft = paper.view.bounds.bottomRight.subtract(_this.minimap.size);
-                _this.minimap.rectangle.fitBounds(_this.minimap.topleft.subtract([2,2]), _this.minimap.size.add([4,4]));
-                _this.minimap.cliprectangle.fitBounds(_this.minimap.topleft, _this.minimap.size);
-            }
-            _this.redraw();
-        };
-
-        var _thRedraw = _.throttle(function() {
-            _this.redraw();
-        },50);
-
-        this.addRepresentations("Node", this.renkan.project.get("nodes"));
-        this.addRepresentations("Edge", this.renkan.project.get("edges"));
-        this.renkan.project.on("change:title", function() {
-            _this.$.find(".Rk-PadTitle").val(_renkan.project.get("title"));
-        });
-
-        this.$.find(".Rk-PadTitle").on("keyup input paste", function() {
-            _renkan.project.set({"title": $(this).val()});
-        });
-
-        var _thRedrawUsers = _.throttle(function() {
-            _this.redrawUsers();
-        }, 100);
-
-        _thRedrawUsers();
-
-        // register model events
-        this.renkan.project.on("add:users remove:users", _thRedrawUsers);
-
-        this.renkan.project.on("add:views remove:views", function(_node) {
-            if(_this.renkan.project.get('views').length > 0) {
-                _this.$.find(".Rk-ZoomSetSaved").show();
-            }
-            else {
-                _this.$.find(".Rk-ZoomSetSaved").hide();
-            }
-        });
-
-        this.renkan.project.on("add:nodes", function(_node) {
-            _this.addRepresentation("Node", _node);
-            _thRedraw();
-        });
-        this.renkan.project.on("add:edges", function(_edge) {
-            _this.addRepresentation("Edge", _edge);
-            _thRedraw();
-        });
-        this.renkan.project.on("change:title", function(_model, _title) {
-            var el = _this.$.find(".Rk-PadTitle");
-            if (el.is("input")) {
-                if (el.val() !== _title) {
-                    el.val(_title);
-                }
-            } else {
-                el.text(_title);
-            }
-        });
-
-        if (_renkan.options.size_bug_fix) {
-            var _delay = (
-                    typeof _renkan.options.size_bug_fix === "number"
-                        ? _renkan.options.size_bug_fix
-                                : 500
-            );
-            window.setTimeout(
-                    function() {
-                        _this.fixSize(true);
-                    },
-                    _delay
-            );
-        }
-
-        if (_renkan.options.force_resize) {
-            $(window).resize(function() {
-                _this.fixSize(false);
-            });
-        }
-
-        if (_renkan.options.show_user_list && _renkan.options.user_color_editable) {
-            var $cpwrapper = this.$.find(".Rk-Users .Rk-Edit-ColorPicker-Wrapper"),
-            $cplist = this.$.find(".Rk-Users .Rk-Edit-ColorPicker");
-
-            $cpwrapper.hover(
-                    function(_e) {
-                        if (_this.isEditable()) {
-                            _e.preventDefault();
-                            $cplist.show();
-                        }
-                    },
-                    function(_e) {
-                        _e.preventDefault();
-                        $cplist.hide();
-                    }
-            );
-
-            $cplist.find("li").mouseenter(
-                    function(_e) {
-                        if (_this.isEditable()) {
-                            _e.preventDefault();
-                            _this.$.find(".Rk-CurrentUser-Color").css("background", $(this).attr("data-color"));
-                        }
-                    }
-            );
-        }
-
-        if (_renkan.options.show_search_field) {
-
-            var lastval = '';
-
-            this.$.find(".Rk-GraphSearch-Field").on("keyup change paste input", function() {
-                var $this = $(this),
-                val = $this.val();
-                if (val === lastval) {
-                    return;
-                }
-                lastval = val;
-                if (val.length < 2) {
-                    _renkan.project.get("nodes").each(function(n) {
-                        _this.getRepresentationByModel(n).unhighlight();
-                    });
-                } else {
-                    var rxs = Rkns.Utils.regexpFromTextOrArray(val);
-                    _renkan.project.get("nodes").each(function(n) {
-                        if (rxs.test(n.get("title")) || rxs.test(n.get("description"))) {
-                            _this.getRepresentationByModel(n).highlight(rxs);
-                        } else {
-                            _this.getRepresentationByModel(n).unhighlight(); 
-                        }
-                    });
-                }
-            });
-        }
-
-        this.redraw();
-
-        window.setInterval(function() {
-            var _now = new Date().valueOf();
-            _this.delete_list.forEach(function(d) {
-                if (_now >= d.time) {
-                    var el = _renkan.project.get("nodes").findWhere({"delete_scheduled":d.id});
-                    if (el) {
-                        project.removeNode(el);
-                    }
-                    el = _renkan.project.get("edges").findWhere({"delete_scheduled":d.id});
-                    if (el) {
-                        project.removeEdge(el);
-                    }
-                }
-            });
-            _this.delete_list = _this.delete_list.filter(function(d) {
-                return _renkan.project.get("nodes").findWhere({"delete_scheduled":d.id}) || _renkan.project.get("edges").findWhere({"delete_scheduled":d.id});
-            });
-        }, 500);
-
-        if (this.minimap) {
-            window.setInterval(function() {
-                _this.rescaleMinimap();
-            }, 2000);
-        }
-
-    };
-
-    _(Scene.prototype).extend({
-        template: _.template(
-                '<% if (options.show_top_bar) { %><div class="Rk-TopBar"><% if (!options.editor_mode) { %><h2 class="Rk-PadTitle"><%- project.get("title") || translate("Untitled project")%></h2>'
-                + '<% } else { %><input type="text" class="Rk-PadTitle" value="<%- project.get("title") || "" %>" placeholder="<%-translate("Untitled project")%>" /><% } %>'
-                + '<% if (options.show_user_list) { %><div class="Rk-Users"><div class="Rk-CurrentUser"><div class="Rk-Edit-ColorPicker-Wrapper"><span class="Rk-CurrentUser-Color"><% if (options.user_color_editable) { %><span class="Rk-Edit-ColorTip"></span><% } %></span>'
-                + '<% if (options.user_color_editable) { print(colorPicker) } %></div><span class="Rk-CurrentUser-Name">&lt;unknown user&gt;</span></div><ul class="Rk-UserList"></ul></div><% } %>'
-                + '<% if (options.home_button_url) {%><div class="Rk-TopBar-Separator"></div><a class="Rk-TopBar-Button Rk-Home-Button" href="<%- options.home_button_url %>"><div class="Rk-TopBar-Tooltip"><div class="Rk-TopBar-Tooltip-Contents">'
-                + '<%- translate(options.home_button_title) %></div></div></a><% } %>'
-                + '<% if (options.show_fullscreen_button) { %><div class="Rk-TopBar-Separator"></div><div class="Rk-TopBar-Button Rk-FullScreen-Button"><div class="Rk-TopBar-Tooltip"><div class="Rk-TopBar-Tooltip-Contents"><%-translate("Full Screen")%></div></div></div><% } %>'
-                + '<% if (options.editor_mode) { %>'
-                + '<% if (options.show_addnode_button) { %><div class="Rk-TopBar-Separator"></div><div class="Rk-TopBar-Button Rk-AddNode-Button"><div class="Rk-TopBar-Tooltip">'
-                + '<div class="Rk-TopBar-Tooltip-Contents"><%-translate("Add Node")%></div></div></div><% } %>'
-                + '<% if (options.show_addedge_button) { %><div class="Rk-TopBar-Separator"></div><div class="Rk-TopBar-Button Rk-AddEdge-Button"><div class="Rk-TopBar-Tooltip">'
-                + '<div class="Rk-TopBar-Tooltip-Contents"><%-translate("Add Edge")%></div></div></div><% } %>'
-                + '<% if (options.show_save_button) { %><div class="Rk-TopBar-Separator"></div><div class="Rk-TopBar-Button Rk-Save-Button"><div class="Rk-TopBar-Tooltip"><div class="Rk-TopBar-Tooltip-Contents"> </div></div></div><% } %>'
-                + '<% if (options.show_open_button) { %><div class="Rk-TopBar-Separator"></div><div class="Rk-TopBar-Button Rk-Open-Button"><div class="Rk-TopBar-Tooltip"><div class="Rk-TopBar-Tooltip-Contents"><%-translate("Open Project")%></div></div></div><% } %>'
-                + '<% if (options.show_bookmarklet) { %><div class="Rk-TopBar-Separator"></div><a class="Rk-TopBar-Button Rk-Bookmarklet-Button" href="#"><div class="Rk-TopBar-Tooltip"><div class="Rk-TopBar-Tooltip-Contents">'
-                + '<%-translate("Renkan \'Drag-to-Add\' bookmarklet")%></div></div></a><% } %>'
-                + '<div class="Rk-TopBar-Separator"></div><% }; if (options.show_search_field) { %>'
-                + '<form action="#" class="Rk-GraphSearch-Form"><input type="search" class="Rk-GraphSearch-Field" placeholder="<%- translate("Search in graph") %>" /></form><div class="Rk-TopBar-Separator"></div><% } %></div><% } %>'
-                + '<div class="Rk-Editing-Space<% if (!options.show_top_bar) { %> Rk-Editing-Space-Full<% } %>">'
-                + '<div class="Rk-Labels"></div><canvas class="Rk-Canvas" resize></canvas><div class="Rk-Notifications"></div><div class="Rk-Editor">'
-                + '<% if (options.show_bins) { %><div class="Rk-Fold-Bins">&laquo;</div><% } %>'
-                + '<div class="Rk-ZoomButtons"><div class="Rk-ZoomIn" title="<%-translate("Zoom In")%>"></div><div class="Rk-ZoomFit" title="<%-translate("Zoom Fit")%>"></div><div class="Rk-ZoomOut" title="<%-translate("Zoom Out")%>"></div>'
-                + '<% if (options.editor_mode) { %><div class="Rk-ZoomSave" title="<%-translate("Zoom Save")%>"></div><% } %>'
-                + '<% if (options.editor_mode || !isNaN(parseInt(options.default_view))) { %><div class="Rk-ZoomSetSaved" title="<%-translate("View saved zoom")%>"></div><% } %></div>'
-                + '</div></div>'
-        ),
-        fixSize: function(_autoscale) {
-            var w = this.$.width(),
-            h = this.$.height();
-            if (this.renkan.options.show_top_bar) {
-                h -= this.$.find(".Rk-TopBar").height();
-            }
-            this.canvas_$.attr({
-                width: w,
-                height: h
-            });
-
-            paper.view.viewSize = new paper.Size([w, h]);
-
-            if (_autoscale) {
-                // If _autoscale, we get the initial view (zoom+offset) set in the project datas.
-                if(this.renkan.read_only && !isNaN(parseInt(this.renkan.options.default_view))){
-                    this.autoScale(this.renkan.project.get("views")[parseInt(this.renkan.options.default_view)]);
-                }
-                else{
-                    this.autoScale();
-                }
-            }
-        },
-        drawSector: function(_repr, _inR, _outR, _startAngle, _endAngle, _padding, _imgname, _caption) {
-            var _options = this.renkan.options,
-            _startRads = _startAngle * Math.PI / 180,
-            _endRads = _endAngle * Math.PI / 180,
-            _img = this.icon_cache[_imgname],
-            _startdx = - Math.sin(_startRads),
-            _startdy = Math.cos(_startRads),
-            _startXIn = Math.cos(_startRads) * _inR + _padding * _startdx,
-            _startYIn = Math.sin(_startRads) * _inR + _padding * _startdy,
-            _startXOut = Math.cos(_startRads) * _outR + _padding * _startdx,
-            _startYOut = Math.sin(_startRads) * _outR + _padding * _startdy,
-            _enddx = - Math.sin(_endRads),
-            _enddy = Math.cos(_endRads),
-            _endXIn = Math.cos(_endRads) * _inR - _padding * _enddx,
-            _endYIn = Math.sin(_endRads) * _inR - _padding * _enddy,
-            _endXOut = Math.cos(_endRads) * _outR - _padding * _enddx,
-            _endYOut = Math.sin(_endRads) * _outR - _padding * _enddy,
-            _centerR = (_inR + _outR)/2,
-            _centerRads = (_startRads + _endRads) / 2,
-            _centerX = Math.cos(_centerRads) * _centerR,
-            _centerY = Math.sin(_centerRads) * _centerR,
-            _centerXIn = Math.cos(_centerRads) * _inR,
-            _centerXOut = Math.cos(_centerRads) * _outR,
-            _centerYIn = Math.sin(_centerRads) * _inR,
-            _centerYOut = Math.sin(_centerRads) * _outR,
-            _textX = Math.cos(_centerRads) * (_outR + 3),
-            _textY = Math.sin(_centerRads) * (_outR + _options.buttons_label_font_size) + _options.buttons_label_font_size / 2;
-            this.buttons_layer.activate();
-            var _path = new paper.Path();
-            _path.add([_startXIn, _startYIn]);
-            _path.arcTo([_centerXIn, _centerYIn], [_endXIn, _endYIn]);
-            _path.lineTo([_endXOut,  _endYOut]);
-            _path.arcTo([_centerXOut, _centerYOut], [_startXOut, _startYOut]);
-            _path.fillColor = _options.buttons_background;
-            _path.opacity = .5;
-            _path.closed = true;
-            _path.__representation = _repr;
-            var _text = new paper.PointText(_textX,_textY);
-            _text.characterStyle = {
-                    fontSize: _options.buttons_label_font_size,
-                    fillColor: _options.buttons_label_color
-            };
-            if (_textX > 2) {
-                _text.paragraphStyle.justification = 'left';
-            } else if (_textX < -2) {
-                _text.paragraphStyle.justification = 'right';
-            } else {
-                _text.paragraphStyle.justification = 'center';
-            }
-            _text.visible = false;
-            var _visible = false,
-            _restPos = new paper.Point(-200, -200),
-            _grp = new paper.Group([_path, _text]),
-            _delta = _grp.position,
-            _imgdelta = new paper.Point([_centerX, _centerY]),
-            _currentPos = new paper.Point(0,0);
-            _text.content = _caption;
-            _grp.visible = false;
-            _grp.position = _restPos;
-            var _res = {
-                    show: function() {
-                        _visible = true;
-                        _grp.position = _currentPos.add(_delta);
-                        _grp.visible = true;
-                    },
-                    moveTo: function(_point) {
-                        _currentPos = _point;
-                        if (_visible) {
-                            _grp.position = _point.add(_delta);
-                        }
-                    },
-                    hide: function() {
-                        _visible = false;
-                        _grp.visible = false;
-                        _grp.position = _restPos;
-                    },
-                    select: function() {
-                        _path.opacity = .8;
-                        _text.visible = true;
-                    },
-                    unselect: function() {
-                        _path.opacity = .5;
-                        _text.visible = false;
-                    },
-                    destroy: function() {
-                        _grp.remove();
-                    }
-            };
-            var showImage = function() {
-                var _raster = new paper.Raster(_img);
-                _raster.position = _imgdelta.add(_grp.position).subtract(_delta);
-                _raster.locked = true; // Disable mouse events on icon
-                _grp.addChild(_raster);
-            };
-            if (_img.width) {
-                showImage();
-            } else {
-                $(_img).on("load",showImage);
-            }
-
-            return _res;
-        },
-        addToBundles: function(_edgeRepr) {
-            var _bundle = _(this.bundles).find(function(_bundle) {
-                return ( 
-                        ( _bundle.from === _edgeRepr.from_representation && _bundle.to === _edgeRepr.to_representation )
-                        || ( _bundle.from === _edgeRepr.to_representation && _bundle.to === _edgeRepr.from_representation )
-                );
-            });
-            if (typeof _bundle !== "undefined") {
-                _bundle.edges.push(_edgeRepr);
-            } else {
-                _bundle = {
-                        from: _edgeRepr.from_representation,
-                        to: _edgeRepr.to_representation,
-                        edges: [ _edgeRepr ],
-                        getPosition: function(_er) {
-                            var _dir = (_er.from_representation === this.from) ? 1 : -1;
-                            return _dir * ( _(this.edges).indexOf(_er) - (this.edges.length - 1) / 2 );
-                        }
-                };
-                this.bundles.push(_bundle);
-            }
-            return _bundle;
-        },
-        isEditable: function() {
-            return (this.renkan.options.editor_mode && !this.renkan.read_only);
-        },
-        onStatusChange: function() {
-            var savebtn = this.$.find(".Rk-Save-Button"),
-            tip = savebtn.find(".Rk-TopBar-Tooltip-Contents");
-            if (this.renkan.read_only) {
-                savebtn.removeClass("disabled Rk-Save-Online").addClass("Rk-Save-ReadOnly");
-                tip.text(this.renkan.translate("Connection lost"));
-            } else {
-                if (this.renkan.options.snapshot_mode) {
-                    savebtn.removeClass("Rk-Save-ReadOnly Rk-Save-Online");
-                    tip.text(this.renkan.translate("Save Project"));
-                } else {
-                    savebtn.removeClass("disabled Rk-Save-ReadOnly").addClass("Rk-Save-Online");
-                    tip.text(this.renkan.translate("Auto-save enabled"));
-                }
-            }
-            this.redrawUsers();
-        },
-        setScale: function(_newScale, _offset) {
-            if ((_newScale/this.initialScale) > Rkns.Utils._MIN_SCALE && (_newScale/this.initialScale) < Rkns.Utils._MAX_SCALE) {
-                this.scale = _newScale;
-                if (_offset) {
-                    this.offset = _offset;
-                }
-                this.redraw();
-            }
-        },
-        autoScale: function(force_view) {
-            var nodes = this.renkan.project.get("nodes");
-            if (nodes.length > 1) {
-                var _xx = nodes.map(function(_node) { return _node.get("position").x; }),
-                _yy = nodes.map(function(_node) { return _node.get("position").y; }),
-                _minx = Math.min.apply(Math, _xx),
-                _miny = Math.min.apply(Math, _yy),
-                _maxx = Math.max.apply(Math, _xx),
-                _maxy = Math.max.apply(Math, _yy);
-                var _scale = Math.min( (paper.view.size.width - 2 * this.renkan.options.autoscale_padding) / (_maxx - _minx), (paper.view.size.height - 2 * this.renkan.options.autoscale_padding) / (_maxy - _miny));
-                this.initialScale = _scale;
-                // Override calculated scale if asked
-                if((typeof force_view !== "undefined") && parseFloat(force_view.zoom_level)>0 && parseFloat(force_view.offset_x)>0 && parseFloat(force_view.offset_y)>0){
-                    this.setScale(parseFloat(force_view.zoom_level), new paper.Point(parseFloat(force_view.offset_x), parseFloat(force_view.offset_y)));
-                }
-                else{
-                    this.setScale(_scale, paper.view.center.subtract(new paper.Point([(_maxx + _minx) / 2, (_maxy + _miny) / 2]).multiply(_scale)));
-                }
-            }
-            if (nodes.length === 1) {
-                this.setScale(1, paper.view.center.subtract(new paper.Point([nodes.at(0).get("position").x, nodes.at(0).get("position").y])));
-            }
-        },
-        redrawMiniframe: function() {
-            var topleft = this.toMinimapCoords(this.toModelCoords(new paper.Point([0,0]))),
-            bottomright = this.toMinimapCoords(this.toModelCoords(paper.view.bounds.bottomRight));
-            this.minimap.miniframe.fitBounds(topleft, bottomright);
-        },
-        rescaleMinimap: function() {
-            var nodes = this.renkan.project.get("nodes");
-            if (nodes.length > 1) {
-                var _xx = nodes.map(function(_node) { return _node.get("position").x; }),
-                _yy = nodes.map(function(_node) { return _node.get("position").y; }),
-                _minx = Math.min.apply(Math, _xx),
-                _miny = Math.min.apply(Math, _yy),
-                _maxx = Math.max.apply(Math, _xx),
-                _maxy = Math.max.apply(Math, _yy);
-                var _scale = Math.min(
-                        this.scale * .8 * this.renkan.options.minimap_width / paper.view.bounds.width,
-                        this.scale * .8 * this.renkan.options.minimap_height / paper.view.bounds.height,
-                        ( this.renkan.options.minimap_width - 2 * this.renkan.options.minimap_padding ) / (_maxx - _minx),
-                        ( this.renkan.options.minimap_height - 2 * this.renkan.options.minimap_padding ) / (_maxy - _miny)
-                );
-                this.minimap.offset = this.minimap.size.divide(2).subtract(new paper.Point([(_maxx + _minx) / 2, (_maxy + _miny) / 2]).multiply(_scale));
-                this.minimap.scale = _scale;
-            }
-            if (nodes.length === 1) {
-                this.minimap.scale = .1;
-                this.minimap.offset = this.minimap.size.divide(2).subtract(new paper.Point([nodes.at(0).get("position").x, nodes.at(0).get("position").y]).multiply(this.minimap.scale));
-            }
-            this.redraw();
-        },
-        toPaperCoords: function(_point) {
-            return _point.multiply(this.scale).add(this.offset);
-        },
-        toMinimapCoords: function(_point) {
-            return _point.multiply(this.minimap.scale).add(this.minimap.offset).add(this.minimap.topleft);
-        },
-        toModelCoords: function(_point) {
-            return _point.subtract(this.offset).divide(this.scale);
-        },
-        addRepresentation: function(_type, _model) {
-            var _repr = new Renderer[_type](this, _model);
-            console.log("REPR RENKAN",_repr);
-            console.log("REPR RENKAN",Renderer[_type]);
-            this.representations.push(_repr);
-            return _repr;
-        },
-        addRepresentations: function(_type, _collection) {
-            var _this = this;
-            _collection.forEach(function(_model) {
-                _this.addRepresentation(_type, _model);
-            });
-        },
-        userTemplate: _.template(
-                '<li class="Rk-User"><span class="Rk-UserColor" style="background:<%=background%>;"></span><%=name%></li>'
-        ),
-        redrawUsers: function() {
-            if (!this.renkan.options.show_user_list) {
-                return;
-            }
-            var allUsers = [].concat((this.renkan.project.current_user_list || {}).models || [], (this.renkan.project.get("users") || {}).models || []),
-            ulistHtml = '',
-            $userpanel = this.$.find(".Rk-Users"),
-            $name = $userpanel.find(".Rk-CurrentUser-Name"),
-            $cpitems = $userpanel.find(".Rk-Edit-ColorPicker li"),
-            $colorsquare = $userpanel.find(".Rk-CurrentUser-Color"),
-            _this = this;
-            $name.off("click").text(this.renkan.translate("<unknown user>"));
-            $cpitems.off("mouseleave click");
-            allUsers.forEach(function(_user) {
-                if (_user.get("_id") === _this.renkan.current_user) {
-                    $name.text(_user.get("title"));
-                    $colorsquare.css("background", _user.get("color"));
-                    if (_this.isEditable()) {
-
-                        if (_this.renkan.options.user_name_editable) {
-                            $name.click(function() {
-                                var $this = $(this),
-                                $input = $('<input>').val(_user.get("title")).blur(function() {
-                                    _user.set("title", $(this).val());
-                                    _this.redrawUsers();
-                                    _this.redraw();
-                                });
-                                $this.empty().html($input);
-                                $input.select();
-                            });
-                        }
-
-                        if (_this.renkan.options.user_color_editable) {
-                            $cpitems.click(
-                                    function(_e) {
-                                        _e.preventDefault();
-                                        if (_this.isEditable()) {
-                                            _user.set("color", $(this).attr("data-color"));
-                                        }
-                                        $(this).parent().hide();
-                                    }
-                            ).mouseleave(function() {
-                                $colorsquare.css("background", _user.get("color"));
-                            });
-                        }
-                    }
-
-                } else {
-                    ulistHtml += _this.userTemplate({
-                        name: _user.get("title"),
-                        background: _user.get("color")
-                    });
-                }
-            });
-            $userpanel.find(".Rk-UserList").html(ulistHtml);
-        },
-        removeRepresentation: function(_representation) {
-            _representation.destroy();
-            this.representations = _(this.representations).reject(
-                    function(_repr) {
-                        return _repr == _representation;
-                    }
-            );
-        },
-        getRepresentationByModel: function(_model) {
-            if (!_model) {
-                return undefined;
-            }
-            return _(this.representations).find(function(_repr) {
-                return _repr.model === _model;
-            });
-        },
-        removeRepresentationsOfType: function(_type) {
-            var _representations = _(this.representations).filter(function(_repr) {
-                return _repr.type == _type;
-            }),
-            _this = this;
-            _(_representations).each(function(_repr) {
-                _this.removeRepresentation(_repr);
-            });
-        },
-        highlightModel: function(_model) {
-            var _repr = this.getRepresentationByModel(_model);
-            if (_repr) {
-                _repr.highlight();
-            }
-        },
-        unhighlightAll: function(_model) {
-            _(this.representations).each(function(_repr) {
-                _repr.unhighlight();
-            });
-        },
-        unselectAll: function(_model) {
-            _(this.representations).each(function(_repr) {
-                _repr.unselect();
-            });
-        },
-        redraw: function() {
-            _(this.representations).each(function(_representation) {
-                _representation.redraw(true);
-            });
-            if (this.minimap) {
-                this.redrawMiniframe();
-            }
-            paper.view.draw();
-        },
-        addTempEdge: function(_from, _point) {
-            var _tmpEdge = this.addRepresentation("TempEdge",null);
-            _tmpEdge.end_pos = _point;
-            _tmpEdge.from_representation = _from;
-            _tmpEdge.redraw();
-            this.click_target = _tmpEdge;
-        },
-        findTarget: function(_hitResult) {
-            if (_hitResult && typeof _hitResult.item.__representation !== "undefined") {
-                var _newTarget = _hitResult.item.__representation;
-                if (this.selected_target !== _hitResult.item.__representation) {
-                    if (this.selected_target) {
-                        this.selected_target.unselect(_newTarget);
-                    }
-                    _newTarget.select(this.selected_target);
-                    this.selected_target = _newTarget;
-                }
-            } else {
-                if (this.selected_target) {
-                    this.selected_target.unselect();
-                }
-                this.selected_target = null;
-            }
-        },
-        paperShift: function(_delta) {
-            this.offset = this.offset.add(_delta);
-            this.redraw();
-        },
-        onMouseMove: function(_event) {
-            var _off = this.canvas_$.offset(),
-            _point = new paper.Point([
-                                      _event.pageX - _off.left,
-                                      _event.pageY - _off.top
-                                      ]),
-                                      _delta = _point.subtract(this.last_point);
-            this.last_point = _point;
-            if (!this.is_dragging && this.mouse_down && _delta.length > Rkns.Utils._MIN_DRAG_DISTANCE) {
-                this.is_dragging = true;
-            }
-            var _hitResult = paper.project.hitTest(_point);
-            if (this.is_dragging) {
-                if (this.click_target && typeof this.click_target.paperShift === "function") {
-                    this.click_target.paperShift(_delta);
-                } else {
-                    this.paperShift(_delta);
-                }
-            } else {
-                this.findTarget(_hitResult);
-            }
-            paper.view.draw();
-        },
-        onMouseDown: function(_event, _isTouch) {
-            var _off = this.canvas_$.offset(),
-            _point = new paper.Point([
-                                      _event.pageX - _off.left,
-                                      _event.pageY - _off.top
-                                      ]);
-            this.last_point = _point;
-            this.mouse_down = true;
-            if (!this.click_target || this.click_target.type !== "Temp-edge") {
-                this.removeRepresentationsOfType("editor");
-                this.is_dragging = false;
-                var _hitResult = paper.project.hitTest(_point);
-                if (_hitResult && typeof _hitResult.item.__representation !== "undefined") {
-                    this.click_target = _hitResult.item.__representation;
-                    this.click_target.mousedown(_event, _isTouch);
-                } else {
-                    this.click_target = null;
-                    if (this.isEditable() && this.click_mode === Rkns.Utils._CLICKMODE_ADDNODE) {
-                        var _coords = this.toModelCoords(_point),
-                        _data = {
-                            id: Rkns.Utils.getUID('node'),
-                            created_by: this.renkan.current_user,
-                            position: {
-                                x: _coords.x,
-                                y: _coords.y
-                            }
-                        };
-                        _node = this.renkan.project.addNode(_data);
-                        this.getRepresentationByModel(_node).openEditor();
-                    }
-                }
-            }
-            if (this.click_mode) {
-                if (this.isEditable() && this.click_mode === Rkns.Utils._CLICKMODE_STARTEDGE && this.click_target && this.click_target.type === "Node") {
-                    this.removeRepresentationsOfType("editor");
-                    this.addTempEdge(this.click_target, _point);
-                    this.click_mode = Rkns.Utils._CLICKMODE_ENDEDGE;
-                    this.notif_$.fadeOut(function() {
-                        $(this).html(this.renkan.translate("Click on a second node to complete the edge")).fadeIn();
-                    });
-                } else {
-                    this.notif_$.hide();
-                    this.click_mode = false;
-                }
-            }
-            paper.view.draw();
-        },
-        onMouseUp: function(_event, _isTouch) {
-            this.mouse_down = false;
-            if (this.click_target) {
-                var _off = this.canvas_$.offset();
-                this.click_target.mouseup(
-                        {
-                            point: new paper.Point([
-                                                    _event.pageX - _off.left,
-                                                    _event.pageY - _off.top
-                                                    ])
-                        },
-                        _isTouch
-                );
-            } else {
-                this.click_target = null;
-                this.is_dragging = false;
-                if (_isTouch) {
-                    this.unselectAll();
-                }
-            }
-            paper.view.draw();
-        },
-        onScroll: function(_event, _scrolldelta) {
-            this.totalScroll += _scrolldelta;
-            if (Math.abs(this.totalScroll) >= 1) {
-                var _off = this.canvas_$.offset(),
-                _delta = new paper.Point([
-                                          _event.pageX - _off.left,
-                                          _event.pageY - _off.top
-                                          ]).subtract(this.offset).multiply( Math.SQRT2 - 1 );
-                if (this.totalScroll > 0) {
-                    this.setScale( this.scale * Math.SQRT2, this.offset.subtract(_delta) );
-                } else {
-                    this.setScale( this.scale * Math.SQRT1_2, this.offset.add(_delta.divide(Math.SQRT2)));
-                }
-                this.totalScroll = 0;
-            }
-        },
-        onDoubleClick: function(_event) {
-            if (!this.isEditable()) {
-                return;
-            }
-            var _off = this.canvas_$.offset(),
-            _point = new paper.Point([
-                                      _event.pageX - _off.left,
-                                      _event.pageY - _off.top
-                                      ]);
-            var _hitResult = paper.project.hitTest(_point);
-            if (this.isEditable() && (!_hitResult || typeof _hitResult.item.__representation === "undefined")) {
-                var _coords = this.toModelCoords(_point),
-                _data = {
-                    id: Rkns.Utils.getUID('node'),
-                    created_by: this.renkan.current_user,
-                    position: {
-                        x: _coords.x,
-                        y: _coords.y
-                    }
-                },
-                _node = this.renkan.project.addNode(_data);
-                this.getRepresentationByModel(_node).openEditor();
-            }
-            paper.view.draw();
-        },
-        defaultDropHandler: function(_data) {
-            var newNode = {};
-            switch(_data["text/x-iri-specific-site"]) {
-            case "twitter":
-                var snippet = $('<div>').html(_data["text/x-iri-selected-html"]),
-                tweetdiv = snippet.find(".tweet");
-                newNode.title = this.renkan.translate("Tweet by ") + tweetdiv.attr("data-name");
-                newNode.uri = "http://twitter.com/" + tweetdiv.attr("data-screen-name") + "/status/" + tweetdiv.attr("data-tweet-id");
-                newNode.image = tweetdiv.find(".avatar").attr("src");
-                newNode.description = tweetdiv.find(".js-tweet-text:first").text();
-                break;
-            case "google":
-                var snippet = $('<div>').html(_data["text/x-iri-selected-html"]);
-                newNode.title = snippet.find("h3:first").text().trim();
-                newNode.uri = snippet.find("h3 a").attr("href");
-                newNode.description = snippet.find(".st:first").text().trim();
-                break;
-            case undefined:
-            default:
-                if (_data["text/x-iri-source-uri"]) {
-                    newNode.uri = _data["text/x-iri-source-uri"];
-                }
-            if (_data["text/plain"] || _data["text/x-iri-selected-text"]) {
-                newNode.description = (_data["text/plain"] || _data["text/x-iri-selected-text"]).replace(/[\s\n]+/gm,' ').trim();
-            }
-            if (_data["text/html"] || _data["text/x-iri-selected-html"]) {
-                var snippet = $('<div>').html(_data["text/html"] || _data["text/x-iri-selected-html"]);
-                var _svgimgs = snippet.find("image");
-                if (_svgimgs.length) {
-                    newNode.image = _svgimgs.attr("xlink:href");
-                }
-                var _svgpaths = snippet.find("path");
-                if (_svgpaths.length) {
-                    newNode.clipPath = _svgpaths.attr("d");
-                }
-                var _imgs = snippet.find("img");
-                if (_imgs.length) {
-                    newNode.image = _imgs[0].src;
-                }
-                var _as = snippet.find("a");
-                if (_as.length) {
-                    newNode.uri = _as[0].href;
-                }
-                newNode.title = snippet.find("[title]").attr("title") || newNode.title;
-                newNode.description = snippet.text().replace(/[\s\n]+/gm,' ').trim();
-            }
-            if (_data["text/uri-list"]) {
-                newNode.uri = _data["text/uri-list"];
-            }
-            if (_data["text/x-moz-url"] && !newNode.title) {
-                newNode.title = (_data["text/x-moz-url"].split("\n")[1] || "").trim();
-                if (newNode.title === newNode.uri) {
-                    newNode.title = false;
-                }
-            }
-            if (_data["text/x-iri-source-title"] && !newNode.title) {
-                newNode.title = _data["text/x-iri-source-title"];
-            }
-            if (_data["text/html"] || _data["text/x-iri-selected-html"]) {
-                var snippet = $('<div>').html(_data["text/html"] || _data["text/x-iri-selected-html"]);
-                newNode.image = snippet.find("[data-image]").attr("data-image") || newNode.image;
-                newNode.uri = snippet.find("[data-uri]").attr("data-uri") || newNode.uri;
-                newNode.title = snippet.find("[data-title]").attr("data-title") || newNode.title;
-                newNode.description = snippet.find("[data-description]").attr("data-description") || newNode.description;
-                newNode.clipPath = snippet.find("[data-clip-path]").attr("data-clip-path") || newNode.clipPath;
-            }
-            }
-
-            if(typeof this.renkan.options.drop_enhancer === "function"){
-                newNode = this.renkan.options.drop_enhancer(newNode, _data);
-            }
-            return newNode;
-
-        },
-        dropData: function(_data, _event) {
-            if (!this.isEditable()) {
-                return;
-            }
-            if (_data["text/json"] || _data["application/json"]) {
-                try {
-                    var jsondata = JSON.parse(_data["text/json"] || _data["application/json"]);
-                    _(_data).extend(jsondata);
-                }
-                catch(e) {}
-            }
-
-            var newNode = (typeof this.renkan.options.drop_handler === "undefined")?this.defaultDropHandler(_data):this.renkan.options.drop_handler(_data);
-
-            if (!newNode.title) {
-                newNode.title = this.renkan.translate("Dragged resource");
-            }
-            var fields = ["title", "description", "uri", "image"];
-            for (var i = 0; i < fields.length; i++) {
-                var f = fields[i];
-                if (_data["text/x-iri-" + f] || _data[f]) {
-                    newNode[f] = _data["text/x-iri-" + f] || _data[f];
-                }
-                if (newNode[f] === "none" || newNode[f] === "null") {
-                    newNode[f] = undefined;
-                }
-            }
-            var _off = this.canvas_$.offset(),
-            _point = new paper.Point([
-                                      _event.pageX - _off.left,
-                                      _event.pageY - _off.top
-                                      ]),
-                                      _coords = this.toModelCoords(_point),
-                                      _nodedata = {
-                id: Rkns.Utils.getUID('node'),
-                created_by: this.renkan.current_user,
-                uri: newNode.uri || "",
-                title: newNode.title || "",
-                description: newNode.description || "",
-                image: newNode.image || "",
-                color: newNode.color || undefined,
-                clip_path: newNode.clipPath || undefined,
-                position: {
-                    x: _coords.x,
-                    y: _coords.y
-                }
-            };
-            var _node = this.renkan.project.addNode(_nodedata),
-            _repr = this.getRepresentationByModel(_node);
-            if (_event.type === "drop") {
-                _repr.openEditor();
-            }
-        },
-        fullScreen: function() {
-            var _isFull = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen,
-            _el = this.renkan.$[0],
-            _requestMethods = ["requestFullScreen","mozRequestFullScreen","webkitRequestFullScreen"],
-            _cancelMethods = ["cancelFullScreen","mozCancelFullScreen","webkitCancelFullScreen"];
-            if (_isFull) {
-                for (var i = 0; i < _cancelMethods.length; i++) {
-                    if (typeof document[_cancelMethods[i]] === "function") {
-                        document[_cancelMethods[i]]();
-                        break;
-                    }
-                }
-            } else {
-                for (var i = 0; i < _requestMethods.length; i++) {
-                    if (typeof _el[_requestMethods[i]] === "function") {
-                        _el[_requestMethods[i]]();
-                        break;
-                    }
-                }
-            }
-        },
-        zoomOut: function() {
-            var _newScale = this.scale * Math.SQRT1_2,
-            _offset = new paper.Point([
-                                       this.canvas_$.width(),
-                                       this.canvas_$.height()
-                                       ]).multiply( .5 * ( 1 - Math.SQRT1_2 ) ).add(this.offset.multiply( Math.SQRT1_2 ));
-            this.setScale( _newScale, _offset );
-        },
-        zoomIn: function() {
-            var _newScale = this.scale * Math.SQRT2,
-            _offset = new paper.Point([
-                                       this.canvas_$.width(),
-                                       this.canvas_$.height()
-                                       ]).multiply( .5 * ( 1 - Math.SQRT2 ) ).add(this.offset.multiply( Math.SQRT2 ));
-            this.setScale( _newScale, _offset );
-        },
-        addNodeBtn: function() {
-            if (this.click_mode === Rkns.Utils._CLICKMODE_ADDNODE) {
-                this.click_mode = false;
-                this.notif_$.hide();
-            } else {
-                this.click_mode = Rkns.Utils._CLICKMODE_ADDNODE;
-                this.notif_$.text(this.renkan.translate("Click on the background canvas to add a node")).fadeIn();
-            }
-            return false;
-        },
-        addEdgeBtn: function() {
-            if (this.click_mode === Rkns.Utils._CLICKMODE_STARTEDGE || this.click_mode === Rkns.Utils._CLICKMODE_ENDEDGE) {
-                this.click_mode = false;
-                this.notif_$.hide();
-            } else {
-                this.click_mode = Rkns.Utils._CLICKMODE_STARTEDGE;
-                this.notif_$.text(this.renkan.translate("Click on a first node to start the edge")).fadeIn();
-            }
-            return false;
-        },
-        foldBins: function() {
-            var foldBinsButton = this.$.find(".Rk-Fold-Bins"),
-            bins = this.renkan.$.find(".Rk-Bins");
-            if (bins.offset().left < 0) {
-                bins.animate({left: 0},250);
-                var _this = this;
-                this.$.animate({left: 300},250,function() {
-                    var w = _this.$.width();
-                    paper.view.viewSize = new paper.Size([w, _this.canvas_$.height()]);
-                });
-                foldBinsButton.html("&laquo;");
-            } else {
-                bins.animate({left: -300},250);
-                var _this = this;
-                this.$.animate({left: 0},250,function() {
-                    var w = _this.$.width();
-                    paper.view.viewSize = new paper.Size([w, _this.canvas_$.height()]);
-                });
-                foldBinsButton.html("&raquo;");
-            }
-        },
-        save: function() { },
-        open: function() { }
-    });
-})(window);
-
-/* END paper-renderer.js */
--- a/client/js/require-utils.js	Wed May 14 14:52:34 2014 +0200
+++ b/client/js/require-utils.js	Fri May 16 09:23:11 2014 +0200
@@ -7,6 +7,6 @@
         getRenderer: function(){
             return window.Rkns.Renderer;
         }
-    }
+    };
     
 });
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/package.json	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,23 @@
+{
+  "name": "renkan",
+  "version": "0.7.8",
+  "description": "Renkan client application",
+  "repository": {
+    "type": "hg",
+    "url": "https://www.iri.centrepompidou.fr/dev/hg/renkan"
+  },
+  "devDependencies": {
+    "grunt-cli": "^0.1.13",
+    "grunt": "^0.4.5",
+    "grunt-contrib-jshint": "^0.10.0",
+    "grunt-contrib-uglify": "^0.4.0",
+    "grunt-contrib-requirejs": "^0.4.4",
+    "grunt-contrib-clean": "^0.5.0",
+    "grunt-contrib-concat": "^0.4.0",
+    "grunt-contrib-cssmin": "^0.9.0",
+    "grunt-contrib-copy": "^0.5.0",
+    "jshint-stylish": "^0.2.0",
+    "grunt-contrib-connect": "^0.7.1"
+  },
+  "author": "IRI"
+}
--- a/client/test/publish-test-min.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/publish-test-min.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/test/test-readonly-body-dist-min.html	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="fr">
+    <head>
+        <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+        <title>RENKAN test in read-only mode : body 100%</title>
+        <meta name="description" content="" />
+        <meta name="author" content="Institut de Recherche et d'Innovation" />
+        <script src="../dist/lib/jquery.min.js"></script>
+        <script src="../dist/lib/jquery.mousewheel.min.js"></script>
+        <script src="../dist/lib/underscore-min.js"></script>
+        <script src="../dist/lib/backbone.js"></script>
+        <script src="../dist/lib/backbone-relational.js"></script>
+        <script src="../dist/lib/paper.js"></script>
+        <script src="../dist/lib/require.js"></script>
+        <script src="../dist/js/renkan.min.js"></script>
+        <script type="text/javascript">
+            function startRenkan(){
+            	var _renkan = new Rkns.Renkan({
+                    editor_mode: false,
+                    show_bins: false,
+                    static_url: "../"
+                });
+                Rkns.jsonIO(_renkan, {
+                    url: "../data/example-cinema.json"
+                });
+            };
+        </script>
+        <link rel="stylesheet" href="../dist/css/renkan.min.css" />
+        <style type="text/css">
+        </style>
+    </head>
+
+    <body>
+        <div id="renkan"></div>
+    </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/test/test-readonly-body-dist.html	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="fr">
+    <head>
+        <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+        <title>RENKAN test in read-only mode : body 100%</title>
+        <meta name="description" content="" />
+        <meta name="author" content="Institut de Recherche et d'Innovation" />
+        <script src="../dist/lib/jquery.min.js"></script>
+        <script src="../dist/lib/jquery.mousewheel.min.js"></script>
+        <script src="../dist/lib/underscore-min.js"></script>
+        <script src="../dist/lib/backbone.js"></script>
+        <script src="../dist/lib/backbone-relational.js"></script>
+        <script src="../dist/lib/paper.js"></script>
+        <script src="../dist/lib/require.js"></script>
+        <script src="../dist/js/renkan.js"></script>
+        <script type="text/javascript">
+            function startRenkan(){
+            	var _renkan = new Rkns.Renkan({
+                    editor_mode: false,
+                    show_bins: false,
+                    static_url: "../"
+                });
+                Rkns.jsonIO(_renkan, {
+                    url: "../data/example-cinema.json"
+                });
+            };
+        </script>
+        <link rel="stylesheet" href="../dist/css/renkan.css" />
+        <style type="text/css">
+        </style>
+    </head>
+
+    <body>
+        <div id="renkan"></div>
+    </body>
+</html>
--- a/client/test/test-readonly-body.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-readonly-body.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- a/client/test/test-readonly-div-resize.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-readonly-div-resize.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- a/client/test/test-writable-bins-div.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-writable-bins-div.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- a/client/test/test-writable-bins.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-writable-bins.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
         function startRenkan(){
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/test/test-writable-simple-dist.html	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang="fr">
+    <head>
+        <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+        <title>Test de Rendu RENKAN</title>
+        <meta name="description" content="" />
+        <meta name="author" content="Institut de Recherche et d'Innovation" />
+        <script src="../dist/lib/jquery.min.js"></script>
+        <script src="../dist/lib/jquery.mousewheel.min.js"></script>
+        <script src="../dist/lib/underscore-min.js"></script>
+        <script src="../dist/lib/backbone.js"></script>
+        <script src="../dist/lib/backbone-relational.js"></script>
+        <script src="../dist/lib/paper.js"></script>
+        <script src="../dist/lib/require.js"></script>
+        <script src="../dist/js/renkan.js"></script>
+        <script type="text/javascript">
+            function startRenkan(){
+            	var _renkan = new Rkns.Renkan({
+                    /*property_files: [ "data/properties.json" ],
+                    user_id: "u-iri",
+                    language: "fr",
+                    node_fill_color: false*/
+                	show_bins: false,
+                    static_url: "../"
+                });
+                Rkns.jsonIO(_renkan, {
+                    url: "../data/simple-persist.php"
+                });
+            };
+        </script>
+        <link rel="stylesheet" href="../css/renkan.css" />
+    </head>
+
+    <body>
+        <div id="renkan"></div>
+    </body>
+</html>
--- a/client/test/test-writable-simple-div.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-writable-simple-div.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- a/client/test/test-writable-simple.html	Wed May 14 14:52:34 2014 +0200
+++ b/client/test/test-writable-simple.html	Fri May 16 09:23:11 2014 +0200
@@ -12,7 +12,14 @@
         <script src="../lib/backbone.js"></script>
         <script src="../lib/backbone-relational.js"></script>
         <script src="../lib/paper.js"></script>
-        <script src="../../build/renkan.js"></script>
+        <script src="../js/main.js"></script>
+        <script src="../js/models.js"></script>
+        <script src="../js/defaults.js"></script>
+        <script src="../js/i18n.js"></script>
+        <script src="../js/full-json.js"></script>
+        <script src="../js/ldtjson-bin.js"></script>
+        <script src="../js/list-bin.js"></script>
+        <script src="../js/wikipedia-bin.js"></script>
         <script data-main="../js/build-renderer.js" src="../lib/require.js"></script>
         <script type="text/javascript">
             function startRenkan(){
--- a/sbin/build/client.xml	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." default="makeall">
-
-    <taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask">
-        <classpath>
-            <pathelement location="../res/compiler.jar" />
-        </classpath>
-    </taskdef>
-    <taskdef resource="net/sf/antcontrib/antlib.xml">
-        <classpath>
-            <pathelement location="../res/ant-contrib.jar"/>
-        </classpath>
-    </taskdef>
-    <delete dir="${basedir}/../../build" />
-    <mkdir  dir="${basedir}/../../build" />
-    
-    <target name="makeall" depends="concatenate" />
-
-    <target name="concatenate">
-        <concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/renkan.js">
-            <filelist dir="../../client/js" files="header.js main.js models.js defaults.js i18n.js full-json.js ldtjson-bin.js list-bin.js wikipedia-bin.js" />
-            <filterchain>
-                <deletecharacters chars="&#xFEFF;" />
-            </filterchain>
-        </concat>
-    </target>
-    
-    <target name="minify" depends="concatenate">
-        <jscomp compilationLevel="simple" warning="quiet" debug="false"
-        output="../../build/renkan.min.raw.js">
-            <externs dir="${basedir}/../../client/lib">
-                <file name="jquery.js" />
-                <file name="jquery-ui.js" />
-                <file name="backbone.js" />
-            	<file name="backbone-relational.js" />
-            	<file name="jquery.mousewheel.js" />
-            	<file name="paper.js" />
-            	<file name="underscore.js" />
-            </externs>
-            <sources dir="${basedir}/../../build">
-                <file name="renkan.js" />
-            </sources>
-        </jscomp>
-        <concat destfile="../../build/renkan.min.js"
-        append="false">
-            <filelist dir="../../client/js/" files="header.js" />
-            <filelist dir="../../build/" files="renkan.min.raw.js" />
-        </concat>
-        <delete file="../../build/renkan.min.raw.js" />
-    </target>
-    <property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>
-    <property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/>
-    <property name="jslint.js" value="${basedir}/../res/jslint.js"/>
-    <target name="jslint" description="Run jslint on the files" depends="concatenate">
-        <apply executable="java" parallel="false">
-            <filelist dir="../../build">
-                <file name="renkan.js"/>
-            </filelist>
-            <arg line="-jar"/>
-            <arg path="${rhino.jar}"/>
-            <arg path="${jslint-wrapper.js}"/>
-            <arg path="${jslint.js}"/>
-        </apply>
-    </target>
-</project>
--- a/sbin/build/compil.bat	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-..\res\ant\bin\ant.bat -f client.xml
--- a/sbin/build/compil.sh	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-#!/bin/sh
-sh ../res/ant/bin/ant -f client.xml
--- a/sbin/build/minify.bat	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-..\res\ant\bin\ant.bat -f client.xml minify
\ No newline at end of file
--- a/sbin/build/minify.sh	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-#!/bin/sh
-sh ../res/ant/bin/ant -f client.xml minify
\ No newline at end of file
--- a/sbin/build/renderer.build.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-({
-    baseUrl: "../../client/js/",
-    name: "../../client/js/build-renderer",
-    out: "../../client/js/renderer-built.js",
-    paths: {
-        requtils: "require-utils",
-        jquery: "empty:",
-        underscore: "empty:"
-    }
-})
\ No newline at end of file
Binary file sbin/res/ant-contrib.jar has changed
--- a/sbin/res/ant/bin/ant	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,335 +0,0 @@
-#! /bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Extract launch and ant arguments, (see details below).
-ant_exec_args=
-no_config=false
-use_jikes_default=false
-ant_exec_debug=false
-show_help=false
-for arg in "$@" ; do
-  if [ "$arg" = "--noconfig" ] ; then
-    no_config=true
-  elif [ "$arg" = "--usejikes" ] ; then
-    use_jikes_default=true
-  elif [ "$arg" = "--execdebug" ] ; then
-    ant_exec_debug=true
-  elif [ my"$arg" = my"--h"  -o my"$arg" = my"--help"  ] ; then
-    show_help=true
-    ant_exec_args="$ant_exec_args -h"
-  else
-    if [  my"$arg" = my"-h"  -o  my"$arg" = my"-help" ] ; then
-      show_help=true
-    fi
-    ant_exec_args="$ant_exec_args \"$arg\""
-  fi
-done
-
-# Source/default ant configuration
-if $no_config ; then
-  rpm_mode=false
-  usejikes=$use_jikes_default
-else
-  # load system-wide ant configuration (ONLY if ANT_HOME has NOT been set)
-  if [ -z "$ANT_HOME" -o "$ANT_HOME" = "/usr/share/ant" ]; then
-      if [ -f "/etc/ant.conf" ] ; then
-          . /etc/ant.conf
-      fi
-  fi
-
-  # load user ant configuration
-  if [ -f "$HOME/.ant/ant.conf" ] ; then
-    . $HOME/.ant/ant.conf
-  fi
-  if [ -f "$HOME/.antrc" ] ; then
-    . "$HOME/.antrc"
-  fi
-
-  # provide default configuration values
-  if [ -z "$rpm_mode" ] ; then
-    rpm_mode=false
-  fi
-  if [ -z "$usejikes" ] ; then
-    usejikes=$use_jikes_default
-  fi
-fi
-
-# Setup Java environment in rpm mode
-if $rpm_mode ; then
-  if [ -f /usr/share/java-utils/java-functions ] ; then
-    . /usr/share/java-utils/java-functions
-    set_jvm
-    set_javacmd
-  fi
-fi
-
-# OS specific support.  $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false;
-case "`uname`" in
-  CYGWIN*) cygwin=true ;;
-  Darwin*) darwin=true
-           if [ -z "$JAVA_HOME" ] ; then
-             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
-           fi
-           ;;
-  MINGW*) mingw=true ;;
-esac
-
-if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then
-  ## resolve links - $0 may be a link to ant's home
-  PRG="$0"
-  progname=`basename "$0"`
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
-    else
-    PRG=`dirname "$PRG"`"/$link"
-    fi
-  done
-
-  ANT_HOME=`dirname "$PRG"`/..
-
-  # make it fully qualified
-  ANT_HOME=`cd "$ANT_HOME" > /dev/null && pwd`
-fi
-
-# For Cygwin and Mingw, ensure paths are in UNIX format before
-# anything is touched
-if $cygwin ; then
-  [ -n "$ANT_HOME" ] &&
-    ANT_HOME=`cygpath --unix "$ANT_HOME"`
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-if $mingw ; then
-  [ -n "$ANT_HOME" ] &&
-    ANT_HOME="`(cd "$ANT_HOME"; pwd)`"
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-fi
-
-# set ANT_LIB location
-ANT_LIB="${ANT_HOME}/lib"
-
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    # IBM's JDK on AIX uses strange locations for the executables
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-      JAVACMD="$JAVA_HOME/jre/sh/java"
-    elif [ -x "$JAVA_HOME/jre/bin/java" ] ; then
-      JAVACMD="$JAVA_HOME/jre/bin/java"
-    else
-      JAVACMD="$JAVA_HOME/bin/java"
-    fi
-  else
-    JAVACMD=`which java 2> /dev/null `
-    if [ -z "$JAVACMD" ] ; then
-        JAVACMD=java
-    fi
-  fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly."
-  echo "  We cannot execute $JAVACMD"
-  exit 1
-fi
-
-# Build local classpath using just the launcher in non-rpm mode or
-# use the Jpackage helper in rpm mode with basic and default jars
-# specified in the ant.conf configuration. Because the launcher is
-# used, libraries linked in ANT_HOME/lib will also be included, but this
-# is discouraged as it is not java-version safe. A user should
-# request optional jars and their dependencies via the OPT_JAR_LIST
-# variable
-if $rpm_mode && [ -x /usr/bin/build-classpath ] ; then
-  LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)"
-
-  # If no optional jars have been specified then build the default list
-  if [ -z "$OPT_JAR_LIST" ] ; then
-    for file in /etc/ant.d/*; do
-      if [ -f "$file" ]; then
-        case "$file" in
-        *~) ;;
-        *#*) ;;
-        *.rpmsave) ;;
-        *.rpmnew) ;;
-        *)
-          for dep in `cat "$file"`; do
-            case "$OPT_JAR_LIST" in
-            *"$dep"*) ;;
-            *) OPT_JAR_LIST="$OPT_JAR_LIST${OPT_JAR_LIST:+ }$dep"
-            esac
-          done
-        esac
-      fi
-    done
-  fi
-
-  # If the user requested to try to add some other jars to the classpath
-  if [ -n "$OPT_JAR_LIST" ] ; then
-    _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)"
-    if [ -n "$_OPTCLASSPATH" ] ; then 
-      LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH"
-    fi
-  fi
-
-  # Explicitly add javac path to classpath, assume JAVA_HOME set
-  # properly in rpm mode
-  if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
-    LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar"
-  fi
-  if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then
-    LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip"
-  fi
-
-  # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be
-  # user CLASSPATH first and ant-found jars after.
-  # In that case, the user CLASSPATH will override ant-found jars
-  #
-  # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
-  # with ant-found jars first and user CLASSPATH after
-  if [ -n "$CLASSPATH" ] ; then
-    # merge local and specified classpath 
-    if [ -z "$LOCALCLASSPATH" ] ; then 
-      LOCALCLASSPATH="$CLASSPATH"
-    elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
-      LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
-    else
-      LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
-    fi
-
-    # remove class path from launcher -cp option
-    CLASSPATH=""
-  fi
-else
-  # not using rpm_mode; use launcher to determine classpaths
-  if [ -z "$LOCALCLASSPATH" ] ; then
-      LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar
-  else
-      LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH
-  fi
-fi
-
-if [ -n "$JAVA_HOME" ] ; then
-  # OSX hack to make Ant work with jikes
-  if $darwin ; then
-    OSXHACK="${JAVA_HOME}/../Classes"
-    if [ -d "${OSXHACK}" ] ; then
-      for i in "${OSXHACK}"/*.jar
-      do
-        JIKESPATH="$JIKESPATH:$i"
-      done
-    fi
-  fi
-fi
-
-# Allow Jikes support (off by default)
-if $usejikes; then
-  ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes"
-fi
-
-# For Cygwin, switch paths to appropriate format before running java
-# For PATHs convert to unix format first, then to windows format to ensure
-# both formats are supported. Probably this will fail on directories with ;
-# in the name in the path. Let's assume that paths containing ; are more
-# rare than windows style paths on cygwin.
-if $cygwin; then
-  if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
-    format=mixed
-  else
-    format=windows
-  fi
-  [ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --$format "$ANT_HOME"`
-  ANT_LIB=`cygpath --$format "$ANT_LIB"`
-  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
-  LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
-  LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
-  if [ -n "$CLASSPATH" ] ; then
-    CP_TEMP=`cygpath --path --unix "$CLASSPATH"`
-    CLASSPATH=`cygpath --path --$format "$CP_TEMP"`
-  fi
-  CYGHOME=`cygpath --$format "$HOME"`
-fi
-
-# Show script help if requested
-if $show_help ; then
-  echo $0 '[script options] [options] [target [target2 [target3] ..]]'
-  echo 'Script Options:'
-  echo '  --help, --h            print this message and ant help'
-  echo '  --noconfig             suppress sourcing of /etc/ant.conf,'
-  echo '                         $HOME/.ant/ant.conf, and $HOME/.antrc'
-  echo '                         configuration files'
-  echo '  --usejikes             enable use of jikes by default, unless'
-  echo '                         set explicitly in configuration files'
-  echo '  --execdebug            print ant exec line generated by this'
-  echo '                         launch script'
-  echo '  '
-fi
-# add a second backslash to variables terminated by a backslash under cygwin
-if $cygwin; then
-  case "$ANT_HOME" in
-    *\\ )
-    ANT_HOME="$ANT_HOME\\"
-    ;;
-  esac
-  case "$CYGHOME" in
-    *\\ )
-    CYGHOME="$CYGHOME\\"
-    ;;
-  esac
-  case "$JIKESPATH" in
-    *\\ )
-    JIKESPATH="$JIKESPATH\\"
-    ;;
-  esac
-  case "$LOCALCLASSPATH" in
-    *\\ )
-    LOCALCLASSPATH="$LOCALCLASSPATH\\"
-    ;;
-  esac
-  case "$CLASSPATH" in
-    *\\ )
-    CLASSPATH="$CLASSPATH\\"
-    ;;
-  esac
-fi
-# Execute ant using eval/exec to preserve spaces in paths,
-# java options, and ant args
-ant_sys_opts=
-if [ -n "$CYGHOME" ]; then
-  if [ -n "$JIKESPATH" ]; then
-    ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\""
-  else
-    ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\""
-  fi
-else
-  if [ -n "$JIKESPATH" ]; then
-    ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\""
-  fi
-fi
-ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\""
-if $ant_exec_debug ; then
-    echo $ant_exec_command $ant_exec_args
-fi
-eval $ant_exec_command "$ant_exec_args"
--- a/sbin/res/ant/bin/ant.bat	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,218 +0,0 @@
-@echo off
-
-REM  Licensed to the Apache Software Foundation (ASF) under one or more
-REM  contributor license agreements.  See the NOTICE file distributed with
-REM  this work for additional information regarding copyright ownership.
-REM  The ASF licenses this file to You under the Apache License, Version 2.0
-REM  (the "License"); you may not use this file except in compliance with
-REM  the License.  You may obtain a copy of the License at
-REM 
-REM      http://www.apache.org/licenses/LICENSE-2.0
-REM 
-REM  Unless required by applicable law or agreed to in writing, software
-REM  distributed under the License is distributed on an "AS IS" BASIS,
-REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM  See the License for the specific language governing permissions and
-REM  limitations under the License.
-
-REM This is an inordinately troublesome piece of code, particularly because it
-REM tries to work on both Win9x and WinNT-based systems. If we could abandon '9x
-REM support, things would be much easier, but sadly, it is not yet time.
-REM Be cautious about editing this, and only add WinNT specific stuff in code that
-REM only runs on WinNT.
-
-if "%HOME%"=="" goto homeDrivePathPre
-if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
-
-:homeDrivePathPre
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePre
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePre
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_pre.bat"
-
-:userProfilePre
-if "%USERPROFILE%"=="" goto alpha
-if "%USERPROFILE%"=="%HOME%" goto alpha
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto alpha
-if exist "%USERPROFILE%\antrc_pre.bat" call "%USERPROFILE%\antrc_pre.bat"
-
-:alpha
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-if "%ANT_HOME%"=="" goto setDefaultAntHome
-
-:stripAntHome
-if not _%ANT_HOME:~-1%==_\ goto checkClasspath
-set ANT_HOME=%ANT_HOME:~0,-1%
-goto stripAntHome
-
-:setDefaultAntHome
-rem %~dp0 is expanded pathname of the current script under NT
-set ANT_HOME=%~dp0..
-
-:checkClasspath
-set _USE_CLASSPATH=yes
-rem CLASSPATH must not be used if it is equal to ""
-if "%CLASSPATH%"=="""" set _USE_CLASSPATH=no
-if "%CLASSPATH%"=="" set _USE_CLASSPATH=no
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-set ANT_CMD_LINE_ARGS=
-:setupArgs
-if ""%1""=="""" goto doneStart
-if ""%1""==""-noclasspath"" goto clearclasspath
-set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
-shift
-goto setupArgs
-
-rem here is there is a -noclasspath in the options
-:clearclasspath
-set _USE_CLASSPATH=no
-shift
-goto setupArgs
-
-rem This label provides a place for the argument list loop to break out
-rem and for NT handling to skip to.
-
-:doneStart
-
-if "%_USE_CLASSPATH%"=="no" goto findAntHome
-
-:stripClasspath
-if not _%CLASSPATH:~-1%==_\ goto findAntHome
-set CLASSPATH=%CLASSPATH:~0,-1%
-goto stripClasspath
-
-:findAntHome
-rem find ANT_HOME if it does not exist due to either an invalid value passed
-rem by the user or the %0 problem on Windows 9x
-if exist "%ANT_HOME%\lib\ant.jar" goto checkJava
-
-rem check for ant in Program Files
-if not exist "%ProgramFiles%\ant" goto checkSystemDrive
-set ANT_HOME=%ProgramFiles%\ant
-goto checkJava
-
-:checkSystemDrive
-rem check for ant in root directory of system drive
-if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
-set ANT_HOME=%SystemDrive%\ant
-goto checkJava
-
-:checkCDrive
-rem check for ant in C:\ant for Win9X users
-if not exist C:\ant\lib\ant.jar goto noAntHome
-set ANT_HOME=C:\ant
-goto checkJava
-
-:noAntHome
-echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME.
-goto end
-
-:checkJava
-set _JAVACMD=%JAVACMD%
-
-if "%JAVA_HOME%" == "" goto noJavaHome
-if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
-if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
-goto checkJikes
-
-:noJavaHome
-if "%_JAVACMD%" == "" set _JAVACMD=java.exe
-
-:checkJikes
-if not "%JIKESPATH%"=="" goto runAntWithJikes
-
-:runAnt
-if "%_USE_CLASSPATH%"=="no" goto runAntNoClasspath
-:runAntWithClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntNoClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntWithJikes
-
-if not _%JIKESPATH:~-1%==_\ goto checkJikesAndClasspath
-set JIKESPATH=%JIKESPATH:~0,-1%
-goto runAntWithJikes
-
-:checkJikesAndClasspath
-
-if "%_USE_CLASSPATH%"=="no" goto runAntWithJikesNoClasspath
-
-:runAntWithJikesAndClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS%  -cp "%CLASSPATH%" %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:runAntWithJikesNoClasspath
-"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS%
-rem Check the error code of the Ant build
-if not "%OS%"=="Windows_NT" goto onError
-set ANT_ERROR=%ERRORLEVEL%
-goto end
-
-:onError
-rem Windows 9x way of checking the error code.  It matches via brute force.
-for %%i in (1 10 100) do set err%%i=
-for %%i in (0 1 2) do if errorlevel %%i00 set err100=%%i
-if %err100%==2 goto onError200
-if %err100%==0 set err100=
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%%i0 set err10=%%i
-if "%err100%"=="" if %err10%==0 set err10=
-:onError1
-for %%i in (0 1 2 3 4 5 6 7 8 9) do if errorlevel %err100%%err10%%%i set err1=%%i
-goto onErrorEnd
-:onError200
-for %%i in (0 1 2 3 4 5) do if errorlevel 2%%i0 set err10=%%i
-if err10==5 for %%i in (0 1 2 3 4 5) do if errorlevel 25%%i set err1=%%i
-if not err10==5 goto onError1
-:onErrorEnd
-set ANT_ERROR=%err100%%err10%%err1%
-for %%i in (1 10 100) do set err%%i=
-
-:end
-rem bug ID 32069: resetting an undefined env variable changes the errorlevel.
-if not "%_JAVACMD%"=="" set _JAVACMD=
-if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS=
-
-if "%ANT_ERROR%"=="0" goto mainEnd
-
-goto omega
-
-:mainEnd
-
-rem If there were no errors, we run the post script.
-if "%OS%"=="Windows_NT" @endlocal
-if "%OS%"=="WINNT" @endlocal
-
-if "%HOME%"=="" goto homeDrivePathPost
-if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
-
-:homeDrivePathPost
-if "%HOMEDRIVE%%HOMEPATH%"=="" goto userProfilePost
-if "%HOMEDRIVE%%HOMEPATH%"=="%HOME%" goto userProfilePost
-if exist "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat" call "%HOMEDRIVE%%HOMEPATH%\antrc_post.bat"
-
-:userProfilePost
-if "%USERPROFILE%"=="" goto omega
-if "%USERPROFILE%"=="%HOME%" goto omega
-if "%USERPROFILE%"=="%HOMEDRIVE%%HOMEPATH%" goto omega
-if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat"
-
-:omega
-
-exit /b %ANT_ERROR%
--- a/sbin/res/ant/bin/ant.cmd	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,93 +0,0 @@
-/* 
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
- 
-    Run ant
-*/
-
-'@echo off'
-parse arg mode envarg '::' antarg
-
-if mode\='.' & mode\='..' & mode\='/' then do
-  envarg = mode envarg
-  mode = ''
-end
-
-if antarg = '' then do
-  antarg = envarg
-  envarg = ''
-end
-
-x = setlocal()
-
-env="OS2ENVIRONMENT"
-antenv = _getenv_('antenv')
-if _testenv_() = 0 then interpret 'call "' || antenv || '"' '"' || envarg || '"'
-
-if mode = '' then mode = _getenv_('ANT_MODE' '..')
-if mode \= '/' then do
-  runrc = _getenv_('runrc')
-  antrc = _getenv_('antrc' 'antrc.cmd')
-  if mode = '..' then mode = '-r'
-  else mode = ''
-  interpret 'call "' || runrc || '"' antrc '"' || mode || '"'
-end
-
-if _testenv_() = 0 then do
-  say 'Ant environment is not set properly'
-  x = endlocal()
-  exit 16
-end
-
-settings = '-Dant.home=' || ANT_HOME '-Djava.home=' || JAVA_HOME
-
-java = _getenv_('javacmd' 'java')
-opts = value('ANT_OPTS',,env)
-args = value('ANT_ARGS',,env)
-lcp = value('LOCALCLASSPATH',,env)
-cp = value('CLASSPATH',,env)
-if value('ANT_USE_CP',,env) \= '' then do
-  if lcp \= '' & right(lcp, 1) \= ';' then lcp = lcp || ';'
-  lcp = lcp || cp
-  'SET CLASSPATH='
-end
-if lcp\='' then lcp = '-classpath' lcp
-
-cmd = java opts lcp '-jar' ANT_HOME ||'\lib\ant-launcher.jar' settings args antarg
-launcher = stream(ANT_HOME ||'\lib\ant-launcher.jar', 'C', 'query exists')
-if launcher = '' then entry = 'org.apache.tools.ant.Main'
-else entry = 'org.apache.tools.ant.launch.Launcher'
-java opts lcp entry settings args antarg
-
-x = endlocal()
-
-return rc
-
-_testenv_: procedure expose env ANT_HOME JAVA_HOME
-ANT_HOME = value('ANT_HOME',,env)
-if ANT_HOME = '' then return 0
-JAVA_HOME = value('JAVA_HOME',,env)
-if JAVA_HOME = '' then return 0
-cp = translate(value('CLASSPATH',,env))
-if pos(translate(ANT_HOME), cp) = 0 then return 0
-if pos(translate(JAVA_HOME), cp) = 0 then return 0
-return 1
-
-_getenv_: procedure expose env
-parse arg envar default
-if default = '' then default = envar
-var = value(translate(envar),,env)
-if var = '' then var = default
-return var
--- a/sbin/res/ant/bin/antRun	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#! /bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# Args: DIR command
-cd "$1"
-CMD="$2"
-shift
-shift
-
-exec "$CMD" "$@"
--- a/sbin/res/ant/bin/antRun.bat	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-@echo off
-
-REM  Licensed to the Apache Software Foundation (ASF) under one or more
-REM  contributor license agreements.  See the NOTICE file distributed with
-REM  this work for additional information regarding copyright ownership.
-REM  The ASF licenses this file to You under the Apache License, Version 2.0
-REM  (the "License"); you may not use this file except in compliance with
-REM  the License.  You may obtain a copy of the License at
-REM 
-REM      http://www.apache.org/licenses/LICENSE-2.0
-REM 
-REM  Unless required by applicable law or agreed to in writing, software
-REM  distributed under the License is distributed on an "AS IS" BASIS,
-REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM  See the License for the specific language governing permissions and
-REM  limitations under the License.
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="WINNT" @setlocal
-
-if ""%1""=="""" goto runCommand
-
-rem Change drive and directory to %1
-if "%OS%"=="Windows_NT" goto nt_cd
-if "%OS%"=="WINNT" goto nt_cd
-cd ""%1""
-goto end_cd
-:nt_cd
-cd /d ""%1""
-:end_cd
-shift
-
-rem Slurp the command line arguments. This loop allows for an unlimited number
-rem of arguments (up to the command line limit, anyway).
-set ANT_RUN_CMD=%1
-if ""%1""=="""" goto runCommand
-shift
-:loop
-if ""%1""=="""" goto runCommand
-set ANT_RUN_CMD=%ANT_RUN_CMD% %1
-shift
-goto loop
-
-:runCommand
-rem echo %ANT_RUN_CMD%
-%ANT_RUN_CMD%
-
-if "%OS%"=="Windows_NT" @endlocal
-if "%OS%"=="WINNT" @endlocal
-
--- a/sbin/res/ant/bin/antRun.pl	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-#!/usr/bin/perl
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-#######################################################################
-#
-# antRun.pl
-#
-# wrapper script for invoking commands on a platform with Perl installed
-# this is akin to antRun.bat, and antRun the SH script 
-#
-# created:         2001-10-18
-# author:          Jeff Tulley jtulley@novell.com 
-#######################################################################
-#be fussy about variables
-use strict;
-
-#turn warnings on during dev; generates a few spurious uninitialised var access warnings
-#use warnings;
-
-#and set $debug to 1 to turn on trace info (currently unused)
-my $debug=1;
-
-#######################################################################
-# change drive and directory to "%1"
-my $ANT_RUN_CMD = @ARGV[0];
-
-# assign current run command to "%2"
-chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n";
-if ($^O eq "NetWare") {
-    # There is a bug in Perl 5 on NetWare, where chdir does not
-    # do anything.  On NetWare, the following path-prefixed form should 
-    # always work. (afaict)
-    $ANT_RUN_CMD .= "/".@ARGV[1];
-}
-else {
-    $ANT_RUN_CMD = @ARGV[1];
-}
-
-# dispose of the first two arguments, leaving only the command's args.
-shift;
-shift;
-
-# run the command
-my $returnValue = system $ANT_RUN_CMD, @ARGV;
-if ($returnValue eq 0) {
-    exit 0;
-}
-else {
-    # only 0 and 1 are widely recognized as exit values
-    # so change the exit value to 1
-    exit 1;
-}
--- a/sbin/res/ant/bin/antenv.cmd	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,98 +0,0 @@
-/* 
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-*/
-
-'@echo off'
-call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
-call SysLoadFuncs
-
-/* Prepare the parameters for later use */
-parse arg argv
-mode = ''
-args = ''
-opts = ''
-cp = ''
-lcp = ''
-
-do i = 1 to words(argv)
-  param = word(argv, i)
-  select
-    when param='-lcp' then mode = 'l'
-    when param='-cp' | param='-classpath' then mode = 'c'
-    when abbrev('-opts', param, 4) then mode = 'o'
-    when abbrev('-args', param, 4) then mode = 'a'
-  otherwise
-    select
-      when mode = 'a' then args = space(args param, 1)
-      when mode = 'c' then cp = space(cp param, 1)
-      when mode = 'l' then lcp = space(lcp param, 1)
-      when mode = 'o' then opts = space(opts param, 1)
-    otherwise
-      say 'Option' param 'ignored'
-    end
-  end
-end
-
-env="OS2ENVIRONMENT"
-antconf = _getenv_('antconf' 'antconf.cmd')
-runrc = _getenv_('runrc')
-interpret 'call "' || runrc || '"' '"' || antconf || '"' 'ETC'
-ANT_HOME = value('ANT_HOME',,env)
-JAVA_HOME = value('JAVA_HOME',,env)
-classpath = value('CLASSPATH',,env)
-classes = stream(JAVA_HOME || "\lib\classes.zip", "C", "QUERY EXISTS")
-if classes \= '' then classpath = prepend(classpath classes)
-classes = stream(JAVA_HOME || "\lib\tools.jar", "C", "QUERY EXISTS")
-if classes \= '' then classpath = prepend(classpath classes)
-
-classpath = prepend(classpath ANT_HOME || '\lib\ant-launcher.jar')
-'SET CLASSPATH=' || classpath
-
-/* Setting classpathes, options and arguments */
-envset = _getenv_('envset')
-if cp\=''   then interpret 'call "' || envset || '"' '"; CLASSPATH"' '"' || cp || '"'
-if lcp\=''  then interpret 'call "' || envset || '"' '"; LOCALCLASSPATH"' '"' || lcp || '"'
-if opts\='' then interpret 'call "' || envset || '"' '"-D ANT_OPTS"' '"' || opts || '"'
-if args\='' then interpret 'call "' || envset || '"' '"ANT_ARGS"' '"' || args || '"'
-
-exit 0
-
-addpath: procedure
-parse arg path elem
-if elem = '' then do
-  if path\='' & right(path, 1)\=';' then path = path || ';'
-  return path
-end
-if substr(path, length(path)) = ';' then glue = ''
-else glue = ';'
-if pos(translate(elem), translate(path)) = 0 then path = path || glue || elem || ';'
-return path
-
-prepend: procedure
-parse arg path elem
-if elem = '' then do
-  if path\='' & right(path, 1)\=';' then path = path || ';'
-  return path
-end
-if pos(translate(elem), translate(path)) = 0 then path = elem || ';' || path
-return path
-
-_getenv_: procedure expose env
-parse arg envar default
-if default = '' then default = envar
-var = value(translate(envar),,env)
-if var = '' then var = default
-return var
--- a/sbin/res/ant/bin/complete-ant-cmd.pl	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,114 +0,0 @@
-#!/usr/bin/perl
-#
-#  Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-# A script to allow Bash or Z-Shell to complete an Ant command-line.  
-#
-# To install for Bash 2.0 or better, add the following to ~/.bashrc:
-# 
-#     $ complete -C complete-ant-cmd ant build.sh
-#
-# To install for Z-Shell 2.5 or better, add the following to ~/.zshrc:
-#
-#     function ant_complete () {
-#         local args_line args
-#         read -l args_line
-#         set -A args $args_line
-#         set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1)
-#     }
-#     compctl -K ant_complete ant build.sh
-#     
-# @author Mike Williams <mikew@cortexebusiness.com.au>
-
-my $cmdLine = $ENV{'COMP_LINE'};
-my $antCmd = $ARGV[0];
-my $word = $ARGV[1];
-
-my @completions;
-if ($word =~ /^-/) {
-    list( restrict( $word, getArguments() ));
-} elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) {
-    list( getBuildFiles($word) );
-} else {
-    list( restrict( $word, getTargets() ));
-}
-
-exit(0);
-
-sub list {
-    for (@_) {
-        print "$_\n";
-    }
-}
-
-sub restrict {
-    my ($word, @completions) = @_;
-    grep( /^\Q$word\E/, @completions );
-}
-
-sub getArguments {
-    qw(-buildfile -debug -emacs -f -find -help -listener -logfile 
-       -logger -projecthelp -quiet -verbose -version); 
-}
-
-
-sub getBuildFiles {
-    my ($word) = @_;
-    grep( /\.xml$/, glob( "$word*" ));
-}
-
-sub getTargets {
-
-    # Look for build-file
-    my $buildFile = 'build.xml';
-    if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) {
-        $buildFile = $2;
-    }
-    return () unless (-f $buildFile);
-
-    # Run "ant -projecthelp" to list targets.  Keep a cache of results in a
-    # cache-file.
-    my $cacheFile = $buildFile;
-    $cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|;
-    if ((!-e $cacheFile) || (-z $cacheFile) || (-M $buildFile) < (-M $cacheFile)) {
-        open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n";
-        open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return(); 
-        my %targets;
-        while( <HELP> ) {
-            if (/^\s+(\S+)/) {
-                $targets{$1}++;
-            }
-        }
-        my @targets = sort keys %targets;
-        for (@targets) { print CACHE "$_\n"; }
-        return @targets;
-    }
-    
-    # Read the target-cache
-    open( CACHE, $cacheFile ) || die "can\'t read $cacheFile: $!\n";
-    my @targets;
-    while (<CACHE>) {
-        chop;
-        s/\r$//;  # for Cygwin
-        push( @targets, $_ );
-    }
-    close( CACHE );
-    @targets;
-
-}
-
-
-
--- a/sbin/res/ant/bin/envset.cmd	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,131 +0,0 @@
-/*
-
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-SET environment variables
-First optional parameter:
-   ;     parameters are considered parts of a path variable, semicolons are
-         appended to each element if not already present
-   -D    parameters are properties for Java or Makefile etc., -D will be
-         prepended and the parameters will be separated by a space
-   =D    the same as above but equal sign is not required
-   ,     parameters should be comma separated in the environment variable
-   -     parameters should be separated by the next parameter
-   Other values mean that the first parameter is missing and the environment
-   variable will be set to the space separated parameters
-
-Second parameter: name of the environment variable
-
-Next parameters: values
-; implies that the equal sign is considered a part of the parameter and is
-not interpreted
-
--D requires parameters in the form name=value. If the equal sign is not found,
-the parameters are changed to name=expanded_name
-
-Other options have optional equal sign. If it is found, only the part after
-the equal sign will be oprionally expanded.
-
-If the parameter is the minus sign, the next parameter will not be expanded.
-If the parameter is a single dot, it will be replaced with the value of the
-environment variable as it existed before envset was invoked.
-
-For other parameters the batch looks for the environment variable with the
-same name (in uppercase). If it is found, it forms the expanded_name. If
-the environment variable with such a name does not exist, the expanded_name
-will hold the parameter name without case conversion.
-*/
-
-parse arg mode envar args
-
-equal = 0
-sep = ' '
-
-/* Parse command line parameters */
-select
-  when mode='-' then do
-    sep = envar
-    parse var args envar args
-  end
-  when mode=';' then do
-    sep = ''
-    equal = -1
-  end
-  when mode='-D' then equal = 1
-  when mode='=D' then mode = '-D'
-  when mode=',' then sep = ','
-otherwise
-  args = envar args
-  envar = mode
-  mode = ''
-end
-
-env = 'OS2ENVIRONMENT'
-envar = translate(envar)
-orig = value(envar,,env)
-newval = ''
-expand = 1
-
-/* for each parameter... */
-do i = 1 to words(args)
-  if expand > 0 & word(args, i) = '-' then expand = 0
-  else call addval word(args, i)
-end
-
-/* Optionally enclose path variable by quotes */
-if mode = ';' & pos(' ', newval) > 0 then newval = '"' || newval || '"'
-
-/* Set the new value, 'SET' cannot be used since it does not allow '=' */
-x = value(envar, newval, env)
-exit 0
-
-addval: procedure expose sep equal orig expand newval mode env
-parse arg var
-
-if var = '.' then expvar = orig
-else do
-  if equal >= 0 then do
-    parse var var name '=' val
-    if val = '' then var = name
-    else var = val
-  end
-  if expand = 0 then expvar = var
-  else expvar = value(translate(var),,env)
-  if expvar = '' then expvar = var
-  if equal >= 0 then do
-    if val = '' then do
-      parse var expvar key '=' val
-      if val <> '' then name = key
-      else do
-        if equal > 0 then val = key
-        else name = key
-      end
-    end
-    else val = expvar
-    if pos(' ', val) > 0 | pos('=', val) > 0 then val = '"' || val || '"'
-    if val = '' then expvar = name
-    else expvar = name || '=' || val
-  end
-  if mode = '-D' then expvar = '-D' || expvar
-  if mode = ';' then do
-    if right(expvar, 1) <> ';' then expvar = expvar || ';'
-  end
-end
-
-if newval = '' then newval = expvar
-else newval = newval || sep || expvar
-expand = 1
-return
--- a/sbin/res/ant/bin/lcp.bat	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-REM
-REM  Licensed to the Apache Software Foundation (ASF) under one or more
-REM  contributor license agreements.  See the NOTICE file distributed with
-REM  this work for additional information regarding copyright ownership.
-REM  The ASF licenses this file to You under the Apache License, Version 2.0
-REM  (the "License"); you may not use this file except in compliance with
-REM  the License.  You may obtain a copy of the License at
-REM 
-REM      http://www.apache.org/licenses/LICENSE-2.0
-REM 
-REM  Unless required by applicable law or agreed to in writing, software
-REM  distributed under the License is distributed on an "AS IS" BASIS,
-REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM  See the License for the specific language governing permissions and
-REM  limitations under the License.
-REM
-REM
-
-set _CLASSPATHCOMPONENT=%1
-if ""%1""=="""" goto gotAllArgs
-shift
-
-:argCheck
-if ""%1""=="""" goto gotAllArgs
-set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
-shift
-goto argCheck
-
-:gotAllArgs
-set LOCALCLASSPATH=%LOCALCLASSPATH%;%_CLASSPATHCOMPONENT%
-
--- a/sbin/res/ant/bin/runant.pl	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,153 +0,0 @@
-#!/usr/bin/perl
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-#######################################################################
-#
-# runant.pl
-#
-# wrapper script for invoking ant in a platform with Perl installed
-# this may include cgi-bin invocation, which is considered somewhat daft.
-# (slo: that should be a separate file which can be derived from this
-# and returns the XML formatted output)
-#
-# the code is not totally portable due to classpath and directory splitting
-# issues. oops. (NB, use File::Spec::Functions  will help and the code is
-# structured for the catfile() call, but because of perl version funnies
-# the code is not included. 
-#
-# created:         2000-8-24
-# author:          Steve Loughran steve_l@sourceforge.net
-#######################################################################
-#
-# Assumptions:
-#
-# - the "java" executable/script is on the command path
-# - ANT_HOME has been set
-# - target platform uses ":" as classpath separator or perl indicates it is dos/win32
-# - target platform uses "/" as directory separator.
-
-#be fussy about variables
-use strict;
-
-#platform specifics (disabled)
-#use File::Spec::Functions;
-
-#turn warnings on during dev; generates a few spurious uninitialised var access warnings
-#use warnings;
-
-#and set $debug to 1 to turn on trace info
-my $debug=1;
-
-#######################################################################
-#
-# check to make sure environment is setup
-#
-
-my $HOME = $ENV{ANT_HOME};
-if ($HOME eq "")
-        {
-    die "\n\nANT_HOME *MUST* be set!\n\n";
-        }
-
-my $JAVACMD = $ENV{JAVACMD};
-$JAVACMD = "java" if $JAVACMD eq "";
-
-my $onnetware = 0;
-if ($^O eq "NetWare")
-{
-  $onnetware = 1;
-}
-
-my $oncygwin = ($^O eq "cygwin");
-
-#ISSUE: what java wants to split up classpath varies from platform to platform 
-#and perl is not too hot at hinting which box it is on.
-#here I assume ":" 'cept on win32, dos, and netware. Add extra tests here as needed.
-my $s=":";
-if(($^O eq "MSWin32") || ($^O eq "dos") || ($^O eq "cygwin") ||
-   ($onnetware == 1))
-        {
-        $s=";";
-        }
-
-#build up standard classpath
-my $localpath = "$HOME/lib/ant-launcher.jar";
-#set JVM options and Ant arguments, if any
-my @ANT_OPTS=split(" ", $ENV{ANT_OPTS});
-my @ANT_ARGS=split(" ", $ENV{ANT_ARGS});
-
-#jikes
-if($ENV{JIKESPATH} ne "")
-        {
-        push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}";
-        }
-
-#construct arguments to java
-my @ARGS;
-push @ARGS, @ANT_OPTS;
-
-my $CYGHOME = "";
-
-my $classpath=$ENV{CLASSPATH};
-if ($oncygwin == 1) {
-  $localpath = `cygpath --path --windows $localpath`;
-  chomp ($localpath);
-  if (! $classpath eq "")
-  {
-    $classpath = `cygpath --path --windows "$classpath"`;
-    chomp ($classpath);
-  }
-  $HOME = `cygpath --path --windows $HOME`;
-  chomp ($HOME);
-  $CYGHOME = `cygpath --path --windows $ENV{HOME}`;
-  chomp ($CYGHOME);
-}
-push @ARGS, "-classpath", "$localpath";
-push @ARGS, "-Dant.home=$HOME";
-if ( ! $CYGHOME eq "" )
-{
-  push @ARGS, "-Dcygwin.user.home=\"$CYGHOME\""
-}
-push @ARGS, "org.apache.tools.ant.launch.Launcher", @ANT_ARGS;
-push @ARGS, @ARGV;
-if (! $classpath eq "")
-{
-  if ($onnetware == 1)
-  {
-    # make classpath literally $CLASSPATH
-    # this is to avoid pushing us over the 512 character limit
-    # even skip the ; - that is already in $localpath
-    push @ARGS, "-lib", "\$CLASSPATH";
-  }
-  else
-  {
-    push @ARGS, "-lib", "$classpath";
-  }
-}
-print "\n $JAVACMD @ARGS\n\n" if ($debug);
-
-my $returnValue = system $JAVACMD, @ARGS;
-if ($returnValue eq 0)
-        {
-        exit 0;
-        }
-else
-        {
-        # only 0 and 1 are widely recognized as exit values
-        # so change the exit value to 1
-        exit 1;
-        }
--- a/sbin/res/ant/bin/runant.py	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,102 +0,0 @@
-#!/usr/bin/python
-# Licensed to the Apache Software Foundation (ASF) under one or more
-#  contributor license agreements.  See the NOTICE file distributed with
-#  this work for additional information regarding copyright ownership.
-#  The ASF licenses this file to You under the Apache License, Version 2.0
-#  (the "License"); you may not use this file except in compliance with
-#  the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing, software
-#  distributed under the License is distributed on an "AS IS" BASIS,
-#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#  See the License for the specific language governing permissions and
-#  limitations under the License.
-#
-
-"""
-
- runant.py
-
-    This script is a translation of the runant.pl written by Steve Loughran.
-    It runs ant with/out arguments, it should be quite portable (thanks to
-    the python os library)
-    This script has been tested with Python2.0/Win2K
-
- created:         2001-04-11
- author:          Pierre Dittgen pierre.dittgen@criltelecom.com
-
- Assumptions:
-
- - the "java" executable/script is on the command path
-"""
-import os, os.path, string, sys
-
-# Change it to 1 to get extra debug information
-debug = 0
-
-#######################################################################
-
-# If ANT_HOME is not set default to script's parent directory
-if os.environ.has_key('ANT_HOME'):
-    ANT_HOME = os.environ['ANT_HOME']
-else:
-    ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
-
-# set ANT_LIB location
-ANT_LIB = os.path.join(ANT_HOME, 'lib')
-
-# set JAVACMD (check variables JAVACMD and JAVA_HOME)
-JAVACMD = None
-if not os.environ.has_key('JAVACMD'):
-    if os.environ.has_key('JAVA_HOME'):
-        if not os.path.exists(os.environ['JAVA_HOME']):
-            print "Warning: JAVA_HOME is not defined correctly."
-        else:
-            JAVACMD = os.path.join(os.environ['JAVA_HOME'], 'bin', 'java')
-    else:
-        print "Warning: JAVA_HOME not set."
-else:
-    JAVACMD = os.environ['JAVACMD']
-if not JAVACMD:
-    JAVACMD = 'java'
-
-launcher_jar = os.path.join(ANT_LIB, 'ant-launcher.jar')
-if not os.path.exists(launcher_jar):
-    print 'Warning: Unable to locate ant-launcher.jar. Expected to find it in %s' % \
-        ANT_LIB
-
-# Build up standard classpath (LOCALCLASSPATH)
-LOCALCLASSPATH = launcher_jar
-if os.environ.has_key('LOCALCLASSPATH'):
-    LOCALCLASSPATH += os.pathsep + os.environ['LOCALCLASSPATH']
-
-ANT_OPTS = ""
-if os.environ.has_key('ANT_OPTS'):
-    ANT_OPTS = os.environ['ANT_OPTS']
-
-OPTS = ""
-if os.environ.has_key('JIKESPATH'):
-    OPTS = '-Djikes.class.path=\"%s\"' % os.environ['JIKESPATH']
-
-ANT_ARGS = ""
-if os.environ.has_key('ANT_ARGS'):
-    ANT_ARGS = os.environ['ANT_ARGS']
-
-CLASSPATH = ""
-if os.environ.has_key('CLASSPATH'):
-    CLASSPATH = "-lib " + os.environ['CLASSPATH']
-
-# Builds the commandline
-cmdline = ('%s %s -classpath %s -Dant.home=%s %s ' + \
-    'org.apache.tools.ant.launch.Launcher %s %s %s') \
-     % (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \
-        CLASSPATH, string.join(sys.argv[1:], ' '))
-
-if debug:
-    print '\n%s\n\n' % (cmdline)
-sys.stdout.flush()
-
-# Run the biniou!
-os.system(cmdline)
--- a/sbin/res/ant/bin/runrc.cmd	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-/* 
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-   Run RC file, name is in the first arg, second arg is either PATH
-   ENV  or -r or nothing 
-*/
-
-parse arg name path rest
-
-if name = '' then do
-  say 'RC file name is missing'
-  exit 1
-end
-
-if rest \= '' then do
-  say 'Too many parameters'
-  exit 1
-end
-
-call runit name path
-exit 0
-
-runit: procedure
-parse arg name path dir
-
-if path \= '' & path \= '-r' then do
-  dir = value(translate(path),,'OS2ENVIRONMENT')
-  if dir = '' then return
-  dir = translate(dir, '\', '/') /* change UNIX-like path to OS/2 */
-end
-
-if dir = '' then dir = directory()
-
-if path = '-r' then do /* recursive call */
-  subdir = filespec('path', dir)
-  if subdir \= '\' then do
-    subdir = left(subdir, length(subdir)-1)
-    call runit name path filespec('drive', dir) || subdir
-  end
-end
-
-/* Look for the file and run it */
-if right(dir, 1) \= '\' then dir = dir || '\'
-rcfile = stream(dir || name, 'c', 'query exists')
-if rcfile \= '' then interpret 'call "' || rcfile || '"'
-
-return
--- a/sbin/res/ant/lib/README	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-Please refer to the Ant manual under Installing Ant / Library
-Dependencies for a list of the jar requirements for various optional
-tasks and features.
Binary file sbin/res/ant/lib/ant-antlr.jar has changed
--- a/sbin/res/ant/lib/ant-antlr.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-antlr</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + ANTLR</name>
-  <description>antlr specific task.
-    The implementation forks a java process, therefore the antlr jar file is only needed at runtime</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <optional>true</optional>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <!-- add a dependency with antlr 2.7.2 consistent with libraries.properties antlr 2.7.6 is also available on ibiblio-->
-      <groupId>antlr</groupId>
-      <artifactId>antlr</artifactId>
-      <version>2.7.2</version>
-      <optional>true</optional>
-      <scope>runtime</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/ANTLR*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-bcel.jar has changed
--- a/sbin/res/ant/lib/ant-apache-bcel.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-bcel</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + BCEL</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>bcel</groupId>
-      <artifactId>bcel</artifactId>
-      <version>5.1</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/filters/util/JavaClassHelper*</include>
-            <include>org/apache/tools/ant/util/depend/bcel/*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-bsf.jar has changed
--- a/sbin/res/ant/lib/ant-apache-bsf.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-bsf</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + BSF</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>bsf</groupId>
-      <artifactId>bsf</artifactId>
-      <version>2.4.0</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/Script*</include>
-            <include>org/apache/tools/ant/taskdefs/optional/script/**</include>
-            <include>org/apache/tools/ant/types/optional/*Script*</include>
-            <include>org/apache/tools/ant/util/Script*</include>
-            <include>org/apache/tools/ant/util/optional/Script*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-log4j.jar has changed
--- a/sbin/res/ant/lib/ant-apache-log4j.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-log4j</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Log4J</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>log4j</groupId>
-      <artifactId>log4j</artifactId>
-      <version>1.2.13</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/listener/Log4jListener*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-oro.jar has changed
--- a/sbin/res/ant/lib/ant-apache-oro.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-oro</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Apache Oro</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>oro</groupId>
-      <artifactId>oro</artifactId>
-      <version>2.0.8</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/util/regexp/JakartaOro*</include>
-            <include>org/apache/tools/ant/taskdefs/optional/perforce/*</include>
-          </includes>
-          <testIncludes>
-            <include>org/apache/tools/ant/taskdefs/optional/perforce/*</include>
-          </testIncludes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-regexp.jar has changed
--- a/sbin/res/ant/lib/ant-apache-regexp.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-regexp</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Apache Regexp</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>regexp</groupId>
-      <artifactId>regexp</artifactId>
-      <version>1.3</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/util/regexp/JakartaRegexp*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-  
-</project>
Binary file sbin/res/ant/lib/ant-apache-resolver.jar has changed
--- a/sbin/res/ant/lib/ant-apache-resolver.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-resolver</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Apache Resolver</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>xml-resolver</groupId>
-      <artifactId>xml-resolver</artifactId>
-      <version>1.1</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/types/resolver/**</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-apache-xalan2.jar has changed
--- a/sbin/res/ant/lib/ant-apache-xalan2.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-apache-xalan2</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Xalan 2</name>
-  <description>contains Xalan2-specific features</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>xalan</groupId>
-      <artifactId>xalan</artifactId>
-      <version>2.7.1</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>create-timestamp-file</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <mkdir dir="${project.build.outputDirectory}"/>
-                <copy todir="${project.build.outputDirectory}/org/apache/tools/ant/taskdefs/optional/junit/xsl">
-                  <fileset dir="${project.build.sourceDirectory}/../etc">
-                    <include name="junit-frames.xsl"/>
-                    <include name="junit-noframes.xsl"/>
-                  </fileset>
-                </copy>              
-              </tasks>
-            </configuration>
-          </execution>
-
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-commons-logging.jar has changed
--- a/sbin/res/ant/lib/ant-commons-logging.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-commons-logging</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Commons Logging</name>
-  <description>Ant Listener based on commons-logging</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging-api</artifactId>
-      <version>1.0.4</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/tlistener/CommonsLoggingListener*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-commons-net.jar has changed
--- a/sbin/res/ant/lib/ant-commons-net.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-commons-net</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Commons Net</name>
-  <description>ftp, rexec and telnet tasks</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-net</groupId>
-      <artifactId>commons-net</artifactId>
-      <version>1.4.0</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/net/FTP*</include>
-            <include>org/apache/tools/ant/taskdefs/optional/net/RExec*</include>
-            <include>org/apache/tools/ant/taskdefs/optional/net/TelnetTask*</include>
-          </includes>
-          <testIncludes>
-            <include>org/apache/tools/ant/taskdefs/optional/net/FTP*</include>
-          </testIncludes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-jai.jar has changed
--- a/sbin/res/ant/lib/ant-jai.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-jai</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JAI</name>
-  <description>image task and corresponding types.
-  </description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.media</groupId>
-      <artifactId>jai-core</artifactId>
-      <version>1.1.3</version>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.media</groupId>
-      <artifactId>jai-codec</artifactId>
-      <version>1.1.3</version>
-    </dependency>
-  </dependencies>
-  <repositories>
-      <repository>
-          <id>jboss</id>
-          <name>JBoss</name>
-          <url>http://repository.jboss.org/maven2/</url>
-      </repository>
-  </repositories>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/image/*</include>
-            <include>org/apache/tools/ant/types/optional/image/*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-javamail.jar has changed
--- a/sbin/res/ant/lib/ant-javamail.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-javamail</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JavaMail</name>
-  <description>implementation of the mail task based on javamail.
-    Required to send emails to SMTP servers using user/password combinations
-  or to send mail over SSL</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.mail</groupId>
-      <artifactId>mail</artifactId>
-      <version>1.4</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>activation</artifactId>
-      <version>1.1</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies> 
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/email/MimeMailer*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-jdepend.jar has changed
--- a/sbin/res/ant/lib/ant-jdepend.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-jdepend</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JDepend</name>
-  <description>task jdepend invoking the jdepend parser. There is also a version 2.9.1 of the
-    jdepend parser available on the maven repository</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>jdepend</groupId>
-      <artifactId>jdepend</artifactId>
-      <version>2.7</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/jdepend/*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-jmf.jar has changed
--- a/sbin/res/ant/lib/ant-jmf.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-jmf</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JMF</name>
-  <description>contains the sound task and a soundplayer listener
-    download the dependency from http://java.sun.com/products/java-media/jmf/</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/sound/*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-  </project>
Binary file sbin/res/ant/lib/ant-jsch.jar has changed
--- a/sbin/res/ant/lib/ant-jsch.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-jsch</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JSch</name>
-  <description>contains the sshexec and scp tasks
-  jsch 0.1.29 might not be available from maven</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.jcraft</groupId>
-      <artifactId>jsch</artifactId>
-      <version>0.1.42</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/ssh/*</include>
-          </includes>
-          <testIncludes>
-            <include>org/apache/tools/ant/taskdefs/optional/ssh/*</include>
-          </testIncludes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-junit.jar has changed
--- a/sbin/res/ant/lib/ant-junit.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-junit</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JUnit</name>
-  <description>contains the junit and junirreport tasks</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>create-timestamp-file</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <mkdir dir="${project.build.outputDirectory}"/>
-                <copy todir="${project.build.outputDirectory}/org/apache/tools/ant/taskdefs/optional/junit/xsl">
-                  <fileset dir="${project.build.sourceDirectory}/../etc">
-                    <include name="junit-frames.xsl"/>
-                    <include name="junit-noframes.xsl"/>
-                  </fileset>
-                </copy>              
-              </tasks>
-            </configuration>
-          </execution>
-
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/junit/*</include>
-          </includes>
-          <excludes>
-            <exclude>org/apache/tools/ant/taskdefs/optional/junit/JUnit4TestMethodAdapter*</exclude>
-          </excludes>
-          <testIncludes>
-            <include>org/apache/tools/ant/taskdefs/optional/junit/</include>
-          </testIncludes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-junit4.jar has changed
--- a/sbin/res/ant/lib/ant-junit4.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-junit4</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + JUnit 4</name>
-  <description>contains JUnit 4.x support</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.8.1</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/junit/JUnit4TestMethodAdapter*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-launcher.jar has changed
--- a/sbin/res/ant/lib/ant-launcher.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-launcher</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant Launcher</name>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/launch/*.java</include>
-          </includes>
-
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/ant-launcher/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/ant-launcher/testcases</testOutputDirectory>
-    <directory>../../../../target/ant-launcher</directory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-netrexx.jar has changed
--- a/sbin/res/ant/lib/ant-netrexx.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-netrexx</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + NetRexx</name>
-  <description>NetRexxC task
-    dependency can be downloaded from http://www.ibm.com/software/awdtools/netrexx/download.html</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-    <!-- Processed too early, before maven-antrun-plugin gets a chance to work:
-    <dependency>
-      <groupId>com.ibm.netrexx</groupId>
-      <artifactId>netrexx</artifactId>
-      <version>2.0.5</version>
-      <scope>system</scope>
-      <systemPath>${basedir}/../../../../lib/optional/NetRexxC.jar</systemPath>
-    </dependency>
-    -->
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/NetRexxC*</include>
-          </includes>
-          <!-- Need to use this rather than system scope as above: -->
-          <compilerArguments>
-            <extdirs>${basedir}/../../../../lib/optional</extdirs>
-          </compilerArguments>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <version>1.4</version>
-        <executions>
-          <execution>
-            <phase>validate</phase>
-            <configuration>
-              <tasks>
-                <ant dir="${basedir}/../../../.." antfile="fetch.xml" target="netrexx">
-                  <property name="dest" value="optional"/>
-                </ant>
-              </tasks>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-</project>
--- a/sbin/res/ant/lib/ant-parent.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-parent</artifactId>
-  <version>1.8.2</version>
-  <packaging>pom</packaging>
-  <description>master POM</description>
-  <licenses>
-    <license>
-      <name>The Apache Software License, Version 2.0</name>
-      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-      <distribution>repo</distribution>
-    </license>
-  </licenses>
-  <name>Apache Ant</name>
-  <url>http://ant.apache.org/</url>
-  <inceptionYear>2000</inceptionYear>
-  <organization>
-    <name>The Apache Software Foundation</name>
-    <url>http://www.apache.org/</url>
-  </organization>
-  <distributionManagement>
-    <!-- Null out inherited apache distribution repo by default -->
-    <repository>
-      <id>dummy</id>
-      <name>Dummy to avoid accidental deploys</name>
-      <url></url>
-    </repository>
-  </distributionManagement>
-  <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/ant/core/trunk</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/ant/core/trunk</developerConnection>
-    <url>http://svn.apache.org/repos/asf/ant/core/trunk</url>
-  </scm>
-  <ciManagement>
-    <system>hudson</system>
-    <url>https://hudson.apache.org/hudson/job/Ant_BuildFromPOMs/</url>
-  </ciManagement>
-  <mailingLists>
-    <mailingList>
-      <name>Ant Developers List</name>
-      <subscribe>dev-subscribe@ant.apache.org</subscribe>
-      <unsubscribe>dev-unsubscribe@ant.apache.org</unsubscribe>
-      <post>dev@ant.apache.org</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/ant-dev</archive>
-    </mailingList>
-    <mailingList>
-      <name>Ant Users List</name>
-      <subscribe>user-subscribe@ant.apache.org</subscribe>
-      <unsubscribe>user-unsubscribe@ant.apache.org</unsubscribe>
-      <post>user@ant.apache.org</post>
-      <archive>http://mail-archives.apache.org/mod_mbox/ant-user</archive>
-    </mailingList>
-  </mailingLists>
-  <issueManagement>
-    <system>bugzilla</system>
-    <url>http://issues.apache.org/bugzilla/</url>
-  </issueManagement>
-  <modules>
-    <module>ant</module>
-    <module>ant-antlr</module>
-    <module>ant-apache-bcel</module>
-    <module>ant-apache-bsf</module>
-    <module>ant-apache-log4j</module>
-    <module>ant-apache-oro</module>
-    <module>ant-apache-regexp</module>
-    <module>ant-apache-resolver</module>
-    <module>ant-apache-xalan2</module>
-    <module>ant-commons-logging</module>
-    <module>ant-commons-net</module>
-    <module>ant-jai</module>
-    <module>ant-javamail</module>
-    <module>ant-jdepend</module>
-    <module>ant-jmf</module>
-    <module>ant-jsch</module>
-    <module>ant-junit</module>
-    <module>ant-junit4</module>
-    <module>ant-launcher</module>
-    <module>ant-netrexx</module>
-    <module>ant-swing</module>
-    <module>ant-testutil</module>
-  </modules>
-  <dependencies>
-     <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.2</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <sourceDirectory>../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../target/classes</outputDirectory>
-    <testOutputDirectory>../../../target/testcases</testOutputDirectory>
-  </build>
-</project>
Binary file sbin/res/ant/lib/ant-swing.jar has changed
--- a/sbin/res/ant/lib/ant-swing.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-swing</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant + Swing</name>
-  <description>a listener and a splash task based on Swing</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/taskdefs/optional/splash/*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/testcases</testSourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/${project.artifactId}/testcases</testOutputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-  
-</project>
Binary file sbin/res/ant/lib/ant-testutil.jar has changed
--- a/sbin/res/ant/lib/ant-testutil.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant-testutil</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant Test Utilities</name>
-  <description>test utility classes</description>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-     <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <includes>
-            <include>org/apache/tools/ant/BuildFileTest*</include>
-            <include>org/apache/tools/ant/util/regexp/RegexpMatcherTest*</include>
-            <include>org/apache/tools/ant/util/regexp/RegexpTest*</include>
-            <include>org/apache/tools/ant/taskdefs/optional/AbstractXSLTLiaisonTest*</include>
-            <include>org/apache/tools/ant/types/AbstractFileSetTest*</include>
-          </includes>
-        </configuration>
-      </plugin>
-    </plugins>
-    <sourceDirectory>../../../../src/tests/junit</sourceDirectory>
-    <outputDirectory>../../../../target/${project.artifactId}/classes</outputDirectory>
-    <directory>../../../../target/${project.artifactId}</directory>
-  </build>
-  
-</project>
Binary file sbin/res/ant/lib/ant.jar has changed
--- a/sbin/res/ant/lib/ant.pom	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,222 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-   Licensed to the Apache Software Foundation (ASF) under one or more
-   contributor license agreements.  See the NOTICE file distributed with
-   this work for additional information regarding copyright ownership.
-   The ASF licenses this file to You under the Apache License, Version 2.0
-   (the "License"); you may not use this file except in compliance with
-   the License.  You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
--->
-<!--
-  This POM has been created manually by the Ant Development Team.
-  Please contact us if you are not satisfied with the data contained in this POM.
-  URL : http://ant.apache.org
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.apache.ant</groupId>
-    <artifactId>ant-parent</artifactId>
-    <relativePath>../pom.xml</relativePath>
-    <version>1.8.2</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ant</groupId>
-  <artifactId>ant</artifactId>
-  <version>1.8.2</version>
-  <name>Apache Ant Core</name>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.ant</groupId>
-      <artifactId>ant-launcher</artifactId>
-      <version>1.8.2</version>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <filters>
-      <filter>../../../../target/ant/.build.timestamp.properties</filter>
-    </filters>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration> </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>create-timestamp-file</id>
-            <phase>generate-resources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <tstamp/>
-                <mkdir dir="${project.build.directory}"/>
-                <touch file="${project.build.directory}/.build.timestamp.properties"/>
-                <echo file="${project.build.directory}/.build.timestamp.properties" append="false"
-                  message="TODAY=${TODAY}"/>
-              </tasks>
-            </configuration>
-          </execution>
-          <execution>
-            <id>delete-timestamp-file</id>
-            <phase>clean</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <delete file="${project.build.directory}/.build.timestamp.properties"/>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.4</source>
-          <target>1.4</target>
-          <excludes>
-            <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
-            <exclude>org/apache/tools/ant/types/resolver/**</exclude>
-            <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
-            <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
-            <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
-            <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
-            <exclude>org/apache/tools/ant/launch/**</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/net/RExec*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/net/TelnetTask*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/perforce/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/junit/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/image/*</exclude>
-            <exclude>org/apache/tools/ant/types/optional/image/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/Script*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/script/**</exclude>
-            <exclude>org/apache/tools/ant/types/optional/*Script*</exclude>
-            <exclude>org/apache/tools/ant/util/ScriptRunner.java</exclude>
-            <exclude>org/apache/tools/ant/util/optional/ScriptRunner.java</exclude>
-            <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
-            <exclude>org/apache/tools/ant/util/depend/bcel/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/NetRexxC*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/Xalan2TraceSupport*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/jdepend/*</exclude>
-          </excludes>
-          <testExcludes>
-            <exclude>org/apache/tools/ant/filters/util/JavaClassHelper*</exclude>
-            <exclude>org/apache/tools/ant/types/resolver/**</exclude>
-            <exclude>org/apache/tools/ant/util/Script*</exclude>
-            <exclude>org/apache/tools/ant/listener/Log4jListener*</exclude>
-            <exclude>org/apache/tools/ant/listener/CommonsLoggingListener*</exclude>
-            <exclude>org/apache/tools/ant/util/regexp/JakartaRegexp*</exclude>
-            <exclude>org/apache/tools/ant/util/regexp/JakartaOro*</exclude>
-            <exclude>org/apache/tools/ant/util/regexp/Jdk14Regexp*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/email/MimeMailer*</exclude>
-            <exclude>org/apache/tools/ant/launch/**</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/StyleTest*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/junit/</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/net/FTP*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/ssh/*</exclude>
-            <exclude>org/apache/tools/ant/taskdefs/optional/perforce/*</exclude>
-          </testExcludes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <omitBasedir>true</omitBasedir>
-          <systemProperties>
-            <property>
-              <name>ant.home</name>
-              <value>${env.ANT_HOME}</value>
-            </property>
-            <property>
-              <name>build.tests</name>
-              <value>../../../../target/ant/testcases</value>
-            </property>
-            <property>
-              <name>build.tests.value</name>
-              <value>../../../../target/ant/testcases</value>
-            </property>
-            <property>
-              <name>offline</name>
-              <value>true</value>
-            </property>
-            <property>
-              <name>root</name>
-              <value>../../../..</value>
-            </property>
-          </systemProperties>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-report-plugin</artifactId>
-      </plugin>
-    </plugins>
-    <resources>
-      <resource>
-        <directory>../../../../src/main</directory>
-        <filtering>true</filtering>
-        <includes>
-          <include>org/apache/tools/ant/taskdefs/default.properties</include>
-          <include>org/apache/tools/ant/types/default.properties</include>
-          <include>org/apache/tools/ant/taskdefs/default.properties</include>
-          <include>org/apache/tools/ant/types/conditions/antlib.xml</include>
-          <include>org/apache/tools/ant/defaultManifest.mf</include>
-          <include>org/apache/tools/ant/version.txt</include>
-        </includes>
-      </resource>
-      <resource>
-        <directory>../../../../src/resources</directory>
-        <filtering>true</filtering>
-        <includes>
-          <include>**/antlib.xml</include>
-        </includes>
-      </resource>
-      <resource>
-        <directory>../../../../docs</directory>
-        <filtering>false</filtering>
-        <includes>
-          <include>images/ant_logo_large.gif</include>
-        </includes>
-      </resource>
-    </resources>
-    <testResources>
-      <testResource>
-        <directory>../../../../src/etc/testcases</directory>
-        <filtering>true</filtering>
-      </testResource>
-      <testResource>
-        <directory>../../../../src/main</directory>
-        <filtering>true</filtering>
-        <excludes>
-          <exclude>**/*.java</exclude>
-        </excludes>
-      </testResource>
-    </testResources>
-    <sourceDirectory>../../../../src/main</sourceDirectory>
-    <testSourceDirectory>../../../../src/tests/junit</testSourceDirectory>
-    <outputDirectory>../../../../target/ant/classes</outputDirectory>
-    <testOutputDirectory>../../../../target/ant/testcases</testOutputDirectory>
-    <directory>../../../../target/ant</directory>
-  </build>
-</project>
--- a/sbin/res/ant/lib/libraries.properties	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#this file declares the libraries for use in 
-#a given release of the components
-
-#if you change this, change the checksum to match
-m2.version=2.0.4
-m2.url=http://ibiblio.org/maven2/
-m2.artifact-name=maven-artifact-ant
-m2.jar.name=${m2.artifact-name}-${m2.version}-dep.jar
-#this is the URL of the antlib library, that is pulled down for everything else.
-m2.antlib.url=${m2.url}/org/apache/maven/${m2.artifact-name}/${m2.version}/${m2.jar.name}
-#this is the sha1 checksum of the artifact
-m2.sha1.checksum=4e7ddfdb91600e9b59bb965ff8eef2f06015df50
-
-# Repository to use by default for fetching dependencies.
-m2.repo=http://repo1.maven.org/maven2/
-
-#versions of different libraries. Please keep in alphabetical order, except
-#when a specific dependency forces them to be out-of-order
-antlr.version=2.7.7
-bcel.version=5.1
-bsf.version=2.4.0
-bsh.version=2.0b4
-bsh-core.version=${bsh.version}
-commons-net.version=1.4.1
-commons-logging.version=1.1
-commons-logging-api.version=${commons-logging.version}
-jai-core.version=1.1.3
-jai-codec.version=1.1.3
-jasper-compiler.version=4.1.36
-jasper-runtime.version=${jasper-compiler.version}
-jdepend.version=2.9.1
-jruby.version=0.9.8
-junit.version=4.8.1
-jsch.version=0.1.42
-jython.version=2.1
-#log4j 1.2.15 requires JMS and a few other Sun jars that are not in the m2 repo
-log4j.version=1.2.14
-#js is the javascript implementation of the rhino project
-#17R1 is compiled with Java5 so we can't use the jar when building with JDK 1.4
-js.version=1.6R7
-oro.version=2.0.8
-regexp.version=1.3
-servlet-api.version=2.3
-which.version=1.0
-xalan.version=2.7.1
-xml-resolver.version=1.2
-mail.version=1.4
-#paired
-jacl.version=1.2.6
-tcljava.version=${jacl.version}
Binary file sbin/res/compiler.jar has changed
--- a/sbin/res/jquery-1.3.2.externs.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,715 +0,0 @@
-/*
- * Copyright 2009 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview Externs for jQuery 1.3.2.
- * The externs defined here are in the order of the jQuery documentation pages.
- * Note that some functions use different return types depending on the number
- * of parameters passed in. In this cases, you may need to annotate the type
- * of the result in your code, so the JSCompiler understands which type you're
- * expecting. For example:
- *    <code>var elt = /** @type {Element} * / (foo.get(0));</code>
- * @see http://docs.jquery.com/
-*
- */
-
-/**
- * @param {string|Node|Element|Array.<Element>|Function} arg
- * @param {(jQueryObject|Document)=} opt_arg
- * @return {jQueryObject}
- */
-var $ = function(arg, opt_arg) {};
-
-var jQuery = {};
-
-/** @constructor */
-function jQueryObject() {};
-
-
-// http://docs.jquery.com/Core - Object accessors
-
-/**
- * @param {Function} callback
- * @return {jQueryObject}
- */
-jQueryObject.prototype.each = function(callback) {};
-
-/** @return {number} */
-jQueryObject.prototype.size = function() {};
-
-/** @type {number} */
-jQueryObject.prototype.length;
-
-/** @return {string} */
-jQueryObject.prototype.selector = function() {};
-
-/** @return {Element} */
-jQueryObject.prototype.context = function() {};
-
-/**
- * @param {number=} opt_index
- * @return {Element|Array.<Element>}
- */
-jQueryObject.prototype.get = function(opt_index) {};
-
-/**
- * @param {Element|jQueryObject} subject
- * @return {number}
- */
-jQueryObject.prototype.index = function(subject) {};
-
-
-// http://docs.jquery.com/Core - Data
-
-/**
- * @param {string} name
- * @param {string=} opt_value
- * @return {*}
- */
-jQueryObject.prototype.data = function(name, opt_value) {};
-
-/**
- * @param {string} name
- * @return {jQueryObject}
- */
-jQueryObject.prototype.removeData = function(name) {};
-
-/**
- * @param {(string|Function|Array.<Function>)=} opt_arg1
- * @param {(Function|Array.<Function>)=} opt_arg2
- * @return {Array.<Function>|jQueryObject}
- */
-jQueryObject.prototype.queue = function(opt_arg1, opt_arg2) {};
-
-/**
- * @param {string=} opt_name
- * @return {jQueryObject}
- */
-jQueryObject.prototype.dequeue = function(opt_name) {};
-
-
-// http://docs.jquery.com/Attributes - Attr
-
-/**
- * @param {string|Object} nameOrProperties
- * @param {*=} opt_value
- * @return {Object|jQueryObject}
- */
-jQueryObject.prototype.attr = function(nameOrProperties, opt_value) {};
-
-/**
- * @param {string} name
- * @return {jQueryObject}
- */
-jQueryObject.prototype.removeAttr = function(name) {};
-
-
-// http://docs.jquery.com/Attributes - Class
-
-/**
- * @param {string} klass
- * @return {jQueryObject}
- */
-jQueryObject.prototype.addClass = function(klass) {};
-
-/**
- * @param {string} klass
- * @return {boolean}
- */
-jQueryObject.prototype.hasClass = function(klass) {};
-
-/**
- * @param {string=} opt_klass
- * @return {jQueryObject}
- */
-jQueryObject.prototype.removeClass = function(opt_klass) {};
-
-/**
- * @param {string} klass
- * @param {boolean=} opt_switch
- * @return {jQueryObject}
- */
-jQueryObject.prototype.toggleClass = function(klass, opt_switch) {};
-
-
-// http://docs.jquery.com/Attributes - HTML, Text, Value
-
-/**
- * @param {string} opt_val
- * @return {string|jQueryObject}
- */
-jQueryObject.prototype.html = function(opt_val) {};
-
-/**
- * @param {string=} opt_val
- * @return {string|jQueryObject}
- */
-jQueryObject.prototype.text = function(opt_val) {};
-
-/**
- * @param {string|Array.<string>} opt_val
- * @return {string|Array|jQueryObject}
- */
-jQueryObject.prototype.val = function(opt_val) {};
-
-
-// http://docs.jquery.com/Traversing - Filtering
-
-/**
- * @param {number} index
- * @return {jQueryObject}
- */
-jQueryObject.prototype.eq = function(index) {};
-
-/**
- * @param {string|Function} arg
- * @return {jQueryObject}
- */
-jQueryObject.prototype.filter = function(arg) {};
-
-/**
- * @param {string} expr
- * @return {boolean}
- */
-jQueryObject.prototype.is = function(expr) {};
-
-/**
- * @param {Function} callback
- * @return {jQueryObject}
- */
-jQueryObject.prototype.map = function(callback) {};
-
-/**
- * @param {string} expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.not = function(expr) {};
-
-/**
- * @param {number} start
- * @param {number=} opt_end
- * @return {jQueryObject}
- */
-jQueryObject.prototype.slice = function(start, opt_end) {};
-
-
-// http://docs.jquery.com/Traversing - Finding, Chaining
-
-/**
- * @param {string|Element|Array.<Element>} expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.add = function(expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.children = function(opt_expr) {};
-
-/**
- * @param {string} expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.closest = function(expr) {};
-
-/**
- * @return {jQueryObject}
- */
-jQueryObject.prototype.contents = function() {};
-
-/**
- * @param {string} expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.find = function(expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.next = function(opt_expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.nextAll = function(opt_expr) {};
-
-/**
- * @return {jQueryObject}
- */
-jQueryObject.prototype.offsetParent = function() {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.parent = function(opt_expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.parents = function(opt_expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.prev = function(opt_expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.prevAll = function(opt_expr) {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.siblings = function(opt_expr) {};
-
-/**
- * @return {jQueryObject}
- */
-jQueryObject.prototype.andSelf = function() {};
-
-/**
- * @return {jQueryObject}
- */
-jQueryObject.prototype.end = function() {};
-
-
-// http://docs.jquery.com/Manipulation
-
-/**
- * @param {string|Node|Element|jQueryObject} content
- * @return {jQueryObject}
- */
-jQueryObject.prototype.append = function(content) {};
-
-/**
- * @param {string} selector
- * @return {jQueryObject}
- */
-jQueryObject.prototype.appendTo = function(selector) {};
-
-/**
- * @param {string|Node|Element|jQueryObject} content
- * @return {jQueryObject}
- */
-jQueryObject.prototype.prepend = function(content) {};
-
-/**
- * @param {string} selector
- * @return {jQueryObject}
- */
-jQueryObject.prototype.prependTo = function(selector) {};
-
-/**
- * @param {string|Node|Element|jQueryObject} content
- * @return {jQueryObject}
- */
-jQueryObject.prototype.after = function(content) {};
-
-/**
- * @param {string|Node|Element|jQueryObject} content
- * @return {jQueryObject}
- */
-jQueryObject.prototype.before = function(content) {};
-
-/**
- * @param {string} selector
- * @return {jQueryObject}
- */
-jQueryObject.prototype.insertAfter = function(selector) {};
-
-/**
- * @param {string} selector
- * @return {jQueryObject}
- */
-jQueryObject.prototype.insertBefore = function(selector) {};
-
-/**
- * @param {string|Element} arg
- * @return {jQueryObject}
- */
-jQueryObject.prototype.wrap = function(arg) {};
-
-/**
- * @param {string|Element} arg
- * @return {jQueryObject}
- */
-jQueryObject.prototype.wrapAll = function(arg) {};
-
-/**
- * @param {string|Element} arg
- * @return {jQueryObject}
- */
-jQueryObject.prototype.wrapInner = function(arg) {};
-
-/**
- * @param {string|Node|Element|jQueryObject} content
- * @return {jQueryObject}
- */
-jQueryObject.prototype.replaceWith = function(content) {};
-
-/**
- * @param {string} selector
- * @return {jQueryObject}
- */
-jQueryObject.prototype.replaceAll = function(selector) {};
-
-/**
- * @return {jQueryObject}
- */
-jQueryObject.prototype.empty = function() {};
-
-/**
- * @param {string=} opt_expr
- * @return {jQueryObject}
- */
-jQueryObject.prototype.remove = function(opt_expr) {};
-
-/**
- * @param {boolean=} opt_cloneEvents
- * @return {jQueryObject}
- */
-jQueryObject.prototype.clone = function(opt_cloneEvents) {};
-
-
-// http://docs.jquery.com/CSS
-
-/**
- * @param {string|Object} nameOrProperties
- * @param {(string|number|Function)=} opt_value
- * @return {Object|jQueryObject|string}
- */
-jQueryObject.prototype.css = function(nameOrProperties, opt_value) {};
-
-/**
- * @return {Object}
- */
-jQueryObject.prototype.offset = function() {};
-
-/**
- * @return {Object}
- */
-jQueryObject.prototype.position = function() {};
-
-/**
- * @param {number=} opt_val
- * @return {number|jQueryObject}
- */
-jQueryObject.prototype.scrollTop = function(opt_val) {};
-
-/**
- * @param {number=} opt_val
- * @return {number|jQueryObject}
- */
-jQueryObject.prototype.scrollLeft = function(opt_val) {};
-
-/**
- * @param {number=} opt_val
- * @return {number|jQueryObject}
- */
-jQueryObject.prototype.height = function(opt_val) {};
-
-/**
- * @param {number=} opt_val
- * @return {number|jQueryObject}
- */
-jQueryObject.prototype.width = function(opt_val) {};
-
-/**
- * @return {number}
- */
-jQueryObject.prototype.innerHeight = function() {};
-
-/**
- * @return {number}
- */
-jQueryObject.prototype.innerWidth = function() {};
-
-/**
- * @param {boolean=} opt_margin
- * @return {number}
- */
-jQueryObject.prototype.outerHeight = function(opt_margin) {};
-
-/**
- * @param {boolean=} opt_margin
- * @return {number}
- */
-jQueryObject.prototype.outerWidth = function(opt_margin) {};
-
-
-// http://docs.jquery.com/Events
-
-/**
- * @param {string} type
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.live = function(type, fn) {};
-
-/**
- * @param {string=} opt_type
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.die = function(opt_type, opt_fn) {};
-
-/**
- * @param {Function} over
- * @param {Function} out
- * @return {jQueryObject}
- */
-jQueryObject.prototype.hover = function(over, out) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.blur = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.change = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.click = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.dblclick = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.error = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.focus = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.keydown = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.keypress = function(opt_fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.keyup = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.load = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mousedown = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mouseenter = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mouseleave = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mousemove = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mouseout = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mouseover = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.mouseup = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.resize = function(fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.scroll = function(fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.select = function(opt_fn) {};
-
-/**
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.submit = function(opt_fn) {};
-
-/**
- * @param {Function} fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.unload = function(fn) {};
-
-
-// http://docs.jquery.com/Effects
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.show = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.hide = function(opt_speed, opt_fn) {};
-
-/**
- * toggle() is defined as both an event and an effect... sigh.
- * @param {(Function|boolean|number|string)=} opt_arg1
- * @param {Function=} opt_fn2
- * @param {...Function} var_args
- * @return {jQueryObject}
- */
-jQueryObject.prototype.toggle = function(opt_arg1, opt_fn2, var_args) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.slideDown = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.slideUp = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.slideToggle = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.fadeIn = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.fadeOut = function(opt_speed, opt_fn) {};
-
-/**
- * @param {(number|string)=} opt_speed
- * @param {number=} opt_opacity
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.fadeTo = function(opt_speed, opt_opacity, opt_fn) {};
-
-/**
- * @param {Object} params
- * @param {(number|string|Object)=} opt_durationOrOptions
- * @param {string=} opt_easing
- * @param {Function=} opt_fn
- * @return {jQueryObject}
- */
-jQueryObject.prototype.animate = function(
-    params, opt_durationOrOptions, opt_easing, opt_fn) {};
-
-/**
- * @param {boolean} opt_clearQueue
- * @param {boolean} opt_gotoEnd
- * @return {jQueryObject}
- */
-jQueryObject.prototype.stop = function(opt_clearQueue, opt_gotoEnd) {};
-
-jQuery.fx = {};
-
-/** @type {boolean} */
-jQuery.fx.off;
-
-// http://docs.jquery.com/Utilities
-
-/**
- * @param {number|string|Object} value
- * @param {Array} array
- * @return {number}
- */
-jQueryObject.prototype.inArray = function(value, array) {};
--- a/sbin/res/jslint-wrapper.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-/* source comes from a similar jquery script */
-/* run it like this :  java -jar rhino.jar jslint-wrapper.js file.js */
-
-
-if (arguments.length == 1) {
-  jslint = "jslint.js"
-  srcfile = arguments[0];
-} else if (arguments.length != 2) {
-  print("jslint-wrapper jslint.js myfile.js");
-  quit();
-} else {
-  var jslint = arguments[0];
-  var srcfile = arguments[1];
-}
-
-src = readFile(srcfile, "utf8");
-load(jslint);
-  
-JSLINT(src, { browser: true, forin: true, maxerr: 5 });
-
-//All of the following are known issues that we think are 'ok'
-//(in contradiction with JSLint) more information here:
-//http://docs.jquery.com/JQuery_Core_Style_Guidelines
-var ok = {
-	"Expected an identifier and instead saw 'undefined' (a reserved word).": true,
-	"Use '===' to compare with 'null'.": true,
-	"Use '!==' to compare with 'null'.": true,
-	"Expected an assignment or function call and instead saw an expression.": true,
-	"Expected a 'break' statement before 'case'.": true,
-	"'e' is already defined.": true,
-  "Expected exactly one space between 'function' and '('": true
-};
-
-var e = JSLINT.errors, found = 0, w;
-
-for ( var i = 0; i < e.length; i++ ) {
-	w = e[i];
-
-	if ( !ok[ w.reason ] ) {
-		found++;
-		print( "\n" + w.evidence + "\n" );
-		print( "    Problem at line " + w.line + " character " + w.character + ": " + w.reason );
-	}
-}
-
-if ( found > 0 ) {
-	print( "\n" + found + " Error(s) found.\n" );
-
-} else {
-	print( "JSLint check passed.\n" );
-}
--- a/sbin/res/jslint.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6917 +0,0 @@
-// jslint.js
-// 2011-10-17
-
-// Copyright (c) 2002 Douglas Crockford  (www.JSLint.com)
-
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-
-// The Software shall be used for Good, not Evil.
-
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-// SOFTWARE.
-
-// WARNING: JSLint will hurt your feelings.
-
-// JSLINT is a global function. It takes two parameters.
-
-//     var myResult = JSLINT(source, option);
-
-// The first parameter is either a string or an array of strings. If it is a
-// string, it will be split on '\n' or '\r'. If it is an array of strings, it
-// is assumed that each string represents one line. The source can be a
-// JavaScript text, or HTML text, or a JSON text, or a CSS text.
-
-// The second parameter is an optional object of options that control the
-// operation of JSLINT. Most of the options are booleans: They are all
-// optional and have a default value of false. One of the options, predef,
-// can be an array of names, which will be used to declare global variables,
-// or an object whose keys are used as global names, with a boolean value
-// that determines if they are assignable.
-
-// If it checks out, JSLINT returns true. Otherwise, it returns false.
-
-// If false, you can inspect JSLINT.errors to find out the problems.
-// JSLINT.errors is an array of objects containing these properties:
-
-//  {
-//      line      : The line (relative to 0) at which the lint was found
-//      character : The character (relative to 0) at which the lint was found
-//      reason    : The problem
-//      evidence  : The text line in which the problem occurred
-//      raw       : The raw message before the details were inserted
-//      a         : The first detail
-//      b         : The second detail
-//      c         : The third detail
-//      d         : The fourth detail
-//  }
-
-// If a stopping error was found, a null will be the last element of the
-// JSLINT.errors array. A stopping error means that JSLint was not confident
-// enough to continue. It does not necessarily mean that the error was
-// especially heinous.
-
-// You can request a Function Report, which shows all of the functions
-// and the parameters and vars that they use. This can be used to find
-// implied global variables and other problems. The report is in HTML and
-// can be inserted in an HTML <body>.
-
-//     var myReport = JSLINT.report(errors_only);
-
-// If errors_only is true, then the report will be limited to only errors.
-
-// You can request a data structure that contains JSLint's results.
-
-//     var myData = JSLINT.data();
-
-// It returns a structure with this form:
-
-//     {
-//         errors: [
-//             {
-//                 line: NUMBER,
-//                 character: NUMBER,
-//                 reason: STRING,
-//                 evidence: STRING
-//             }
-//         ],
-//         functions: [
-//             {
-//                 name: STRING,
-//                 line: NUMBER,
-//                 last: NUMBER,
-//                 params: [
-//                     {
-//                         string: STRING
-//                     }
-//                 ],
-//                 closure: [
-//                     STRING
-//                 ],
-//                 var: [
-//                     STRING
-//                 ],
-//                 exception: [
-//                     STRING
-//                 ],
-//                 outer: [
-//                     STRING
-//                 ],
-//                 unused: [
-//                     STRING
-//                 ],
-//                 undef: [
-//                     STRING
-//                 ],
-//                 global: [
-//                     STRING
-//                 ],
-//                 label: [
-//                     STRING
-//                 ]
-//             }
-//         ],
-//         globals: [
-//             STRING
-//         ],
-//         member: {
-//             STRING: NUMBER
-//         },
-//         urls: [
-//             STRING
-//         ],
-//         json: BOOLEAN
-//     }
-
-// Empty arrays will not be included.
-
-// You can obtain the parse tree that JSLint constructed while parsing. The
-// latest tree is kept in JSLINT.tree. A nice stringication can be produced
-// with
-
-//     JSON.stringify(JSLINT.tree, [
-//         'string',  'arity', 'name',  'first',
-//         'second', 'third', 'block', 'else'
-//     ], 4));
-
-// JSLint provides three directives. They look like slashstar comments, and
-// allow for setting options, declaring global variables, and establishing a
-// set of allowed property names.
-
-// These directives respect function scope.
-
-// The jslint directive is a special comment that can set one or more options.
-// The current option set is
-
-//     adsafe     true, if ADsafe rules should be enforced
-//     bitwise    true, if bitwise operators should be allowed
-//     browser    true, if the standard browser globals should be predefined
-//     cap        true, if upper case HTML should be allowed
-//     confusion  true, if types can be used inconsistently
-//     'continue' true, if the continuation statement should be tolerated
-//     css        true, if CSS workarounds should be tolerated
-//     debug      true, if debugger statements should be allowed
-//     devel      true, if logging should be allowed (console, alert, etc.)
-//     eqeq       true, if == should be allowed
-//     es5        true, if ES5 syntax should be allowed
-//     evil       true, if eval should be allowed
-//     forin      true, if for in statements need not filter
-//     fragment   true, if HTML fragments should be allowed
-//     indent     the indentation factor
-//     maxerr     the maximum number of errors to allow
-//     maxlen     the maximum length of a source line
-//     newcap     true, if constructor names capitalization is ignored
-//     node       true, if Node.js globals should be predefined
-//     nomen      true, if names may have dangling _
-//     on         true, if HTML event handlers should be allowed
-//     passfail   true, if the scan should stop on first error
-//     plusplus   true, if increment/decrement should be allowed
-//     properties true, if all property names must be declared with /*properties*/
-//     regexp     true, if the . should be allowed in regexp literals
-//     rhino      true, if the Rhino environment globals should be predefined
-//     undef      true, if variables can be declared out of order
-//     unparam    true, if unused parameters should be tolerated
-//     safe       true, if use of some browser features should be restricted
-//     sloppy     true, if the 'use strict'; pragma is optional
-//     sub        true, if all forms of subscript notation are tolerated
-//     vars       true, if multiple var statements per function should be allowed
-//     white      true, if sloppy whitespace is tolerated
-//     widget     true  if the Yahoo Widgets globals should be predefined
-//     windows    true, if MS Windows-specific globals should be predefined
-
-// For example:
-
-/*jslint
-    evil: true, nomen: true, regexp: true
-*/
-
-// The properties directive declares an exclusive list of property names.
-// Any properties named in the program that are not in the list will
-// produce a warning.
-
-// For example:
-
-/*properties
-    '\b': string, '\t': string, '\n': string, '\f': string, '\r': string,
-    '!=': boolean, '!==': boolean, '"': string, '%': boolean, '\'': string,
-    '(begin)', '(breakage)': number, '(complexity)', '(confusion)': boolean,
-    '(context)': object, '(error)', '(identifier)', '(line)': number,
-    '(loopage)': number, '(name)', '(old_property_type)', '(params)',
-    '(scope)': object, '(token)', '(vars)', '(verb)', '*': boolean,
-    '+': boolean, '-': boolean, '/': *, '<': boolean, '<=': boolean,
-    '==': boolean, '===': boolean, '>': boolean, '>=': boolean,
-    ADSAFE: boolean, Array, Date, E: string, Function, LN10: string,
-    LN2: string, LOG10E: string, LOG2E: string, MAX_VALUE: string,
-    MIN_VALUE: string, NEGATIVE_INFINITY: string, Object, PI: string,
-    POSITIVE_INFINITY: string, SQRT1_2: string, SQRT2: string, '\\': string,
-    a: object, a_label: string, a_not_allowed: string, a_not_defined: string,
-    a_scope: string, abbr: object, acronym: object, address: object, adsafe,
-    adsafe_a: string, adsafe_autocomplete: string, adsafe_bad_id: string,
-    adsafe_div: string, adsafe_fragment: string, adsafe_go: string,
-    adsafe_html: string, adsafe_id: string, adsafe_id_go: string,
-    adsafe_lib: string, adsafe_lib_second: string, adsafe_missing_id: string,
-    adsafe_name_a: string, adsafe_placement: string, adsafe_prefix_a: string,
-    adsafe_script: string, adsafe_source: string, adsafe_subscript_a: string,
-    adsafe_tag: string, all: boolean, already_defined: string, and: string,
-    applet: object, apply: string, approved: array, area: object,
-    arity: string, article: object, aside: object, assign: boolean,
-    assign_exception: string, assignment_function_expression: string,
-    at: number, attribute_case_a: string, audio: object, autocomplete: string,
-    avoid_a: string, b: *, background: array, 'background-attachment': array,
-    'background-color': array, 'background-image': array,
-    'background-position': array, 'background-repeat': array,
-    bad_assignment: string, bad_color_a: string, bad_constructor: string,
-    bad_entity: string, bad_html: string, bad_id_a: string, bad_in_a: string,
-    bad_invocation: string, bad_name_a: string, bad_new: string,
-    bad_number: string, bad_operand: string, bad_style: string,
-    bad_type: string, bad_url_a: string, bad_wrap: string, base: object,
-    bdo: object, big: object, bind: string, bitwise: boolean, block: array,
-    blockquote: object, body: object, border: array, 'border-bottom': array,
-    'border-bottom-color', 'border-bottom-left-radius',
-    'border-bottom-right-radius', 'border-bottom-style': array,
-    'border-bottom-width', 'border-collapse': array, 'border-color': array,
-    'border-left': array, 'border-left-color', 'border-left-style': array,
-    'border-left-width', 'border-radius', 'border-right': array,
-    'border-right-color', 'border-right-style': array, 'border-right-width',
-    'border-spacing': array, 'border-style': array, 'border-top': array,
-    'border-top-color', 'border-top-left-radius', 'border-top-right-radius',
-    'border-top-style': array, 'border-top-width', 'border-width': array,
-    bottom: array, br: object, braille: boolean, browser: boolean,
-    button: object, c, call: string, canvas: object, cap, caption: object,
-    'caption-side': array, ceil: string, center: object, charAt: *,
-    charCodeAt: *, character, cite: object, clear: array, clip: array, closure,
-    cm: boolean, code: object, col: object, colgroup: object, color,
-    combine_var: string, command: object, concat: string,
-    conditional_assignment: string, confusing_a: string,
-    confusing_regexp: string, confusion: boolean, constructor: string,
-    constructor_name_a: string, content: array, continue, control_a: string,
-    'counter-increment': array, 'counter-reset': array, create: *, css: string,
-    cursor: array, d, dangerous_comment: string, dangling_a: string,
-    data: function object, datalist: object, dd: object, debug,
-    defineProperties: string, defineProperty: string, del: object,
-    deleted: string, details: object, devel: boolean, dfn: object,
-    dialog: object, dir: object, direction: array, display: array,
-    disrupt: boolean, div: object, dl: object, dt: object, duplicate_a: string,
-    edge: string, edition: string, else, em: *, embed: object,
-    embossed: boolean, empty: boolean, 'empty-cells': array,
-    empty_block: string, empty_case: string, empty_class: string,
-    entityify: function, eqeq, errors: array, es5: string, eval, every: string,
-    evidence, evil: string, ex: boolean, exception, exec: *,
-    expected_a: string, expected_a_at_b_c: string, expected_a_b: string,
-    expected_a_b_from_c_d: string, expected_at_a: string,
-    expected_attribute_a: string, expected_attribute_value_a: string,
-    expected_class_a: string, expected_fraction_a: string,
-    expected_id_a: string, expected_identifier_a: string,
-    expected_identifier_a_reserved: string, expected_lang_a: string,
-    expected_linear_a: string, expected_media_a: string,
-    expected_name_a: string, expected_nonstandard_style_attribute: string,
-    expected_number_a: string, expected_operator_a: string,
-    expected_percent_a: string, expected_positive_a: string,
-    expected_pseudo_a: string, expected_selector_a: string,
-    expected_small_a: string, expected_space_a_b: string,
-    expected_string_a: string, expected_style_attribute: string,
-    expected_style_pattern: string, expected_tagname_a: string,
-    expected_type_a: string, f: string, fieldset: object, figure: object,
-    filter: *, first: *, flag, float: array, floor: *, font: *, 'font-family',
-    'font-size': array, 'font-size-adjust': array, 'font-stretch': array,
-    'font-style': array, 'font-variant': array, 'font-weight': array,
-    footer: object, for, forEach: *, for_if: string, forin, form: object,
-    fragment, frame: object, frameset: object, freeze: string, from: number,
-    fromCharCode: function, fud: function, funct: object, function,
-    function_block: string, function_eval: string, function_loop: string,
-    function_statement: string, function_strict: string, functions: array,
-    getDate: string, getDay: string, getFullYear: string, getHours: string,
-    getMilliseconds: string, getMinutes: string, getMonth: string,
-    getOwnPropertyDescriptor: string, getOwnPropertyNames: string,
-    getPrototypeOf: string, getSeconds: string, getTime: string,
-    getTimezoneOffset: string, getUTCDate: string, getUTCDay: string,
-    getUTCFullYear: string, getUTCHours: string, getUTCMilliseconds: string,
-    getUTCMinutes: string, getUTCMonth: string, getUTCSeconds: string,
-    getYear: string, global, globals, h1: object, h2: object, h3: object,
-    h4: object, h5: object, h6: object, handheld: boolean, hasOwnProperty: *,
-    head: object, header: object, height: array, hgroup: object, hr: object,
-    'hta:application': object, html: *, html_confusion_a: string,
-    html_handlers: string, i: object, id: string, identifier: boolean,
-    identifier_function: string, iframe: object, img: object, immed: boolean,
-    implied_evil: string, in, indent: number, indexOf: *, infix_in: string,
-    init: function, input: object, ins: object, insecure_a: string,
-    isAlpha: function, isArray: function boolean, isDigit: function,
-    isExtensible: string, isFrozen: string, isNaN: string,
-    isPrototypeOf: string, isSealed: string, join: *, jslint: function boolean,
-    json: boolean, kbd: object, keygen: object, keys: *, label: object,
-    label_a_b: string, labeled: boolean, lang: string, lastIndex: string,
-    lastIndexOf: *, lbp: number, leading_decimal_a: string, led: function,
-    left: array, legend: object, length: *, 'letter-spacing': array,
-    li: object, lib: boolean, line: number, 'line-height': array, link: object,
-    'list-style': array, 'list-style-image': array,
-    'list-style-position': array, 'list-style-type': array, map: *,
-    margin: array, 'margin-bottom', 'margin-left', 'margin-right',
-    'margin-top', mark: object, 'marker-offset': array, match: function,
-    'max-height': array, 'max-width': array, maxerr: number,
-    maxlen: number, member: object, menu: object, message, meta: object,
-    meter: object, 'min-height': function, 'min-width': function,
-    missing_a: string, missing_a_after_b: string, missing_option: string,
-    missing_property: string, missing_space_a_b: string, missing_url: string,
-    missing_use_strict: string, mixed: string, mm: boolean, mode: string,
-    move_invocation: string, move_var: string, n: string, name: string,
-    name_function: string, nav: object, nested_comment: string,
-    newcap: boolean, node: boolean, noframes: object, nomen, noscript: object,
-    not: string, not_a_constructor: string, not_a_defined: string,
-    not_a_function: string, not_a_label: string, not_a_scope: string,
-    not_greater: string, now: string, nud: function, number: number,
-    object: object, ol: object, on, opacity, open: boolean, optgroup: object,
-    option: object, outer: regexp, outline: array, 'outline-color': array,
-    'outline-style': array, 'outline-width', output: object, overflow: array,
-    'overflow-x': array, 'overflow-y': array, p: object, padding: array,
-    'padding-bottom': function, 'padding-left': function,
-    'padding-right': function, 'padding-top': function,
-    'page-break-after': array, 'page-break-before': array, param: object,
-    parameter_a_get_b: string, parameter_set_a: string, params: array,
-    paren: boolean, parent: string, parse: string, passfail, pc: boolean,
-    plusplus, pop: *, position: array, postscript: boolean, pre: object,
-    predef, preventExtensions: string, print: boolean, progress: object,
-    projection: boolean, properties: boolean, propertyIsEnumerable: string,
-    prototype: string, pt: boolean, push: *, px: boolean, q: object, quote,
-    quotes: array, r: string, radix: string, range: function, raw,
-    read_only: string, reason, redefinition_a: string, reduce: string,
-    reduceRight: string, regexp, replace: function, report: function,
-    reserved: boolean, reserved_a: string, reverse: string, rhino: boolean,
-    right: array, rp: object, rt: object, ruby: object, safe: boolean,
-    samp: object, scanned_a_b: string, screen: boolean, script: object,
-    seal: string, search: function, second: *, section: object, select: object,
-    setDate: string, setDay: string, setFullYear: string, setHours: string,
-    setMilliseconds: string, setMinutes: string, setMonth: string,
-    setSeconds: string, setTime: string, setTimezoneOffset: string,
-    setUTCDate: string, setUTCDay: string, setUTCFullYear: string,
-    setUTCHours: string, setUTCMilliseconds: string, setUTCMinutes: string,
-    setUTCMonth: string, setUTCSeconds: string, setYear: string, shift: *,
-    slash_equal: string, slice: string, sloppy, small: object, some: string,
-    sort: *, source: object, span: object, speech: boolean, splice: string,
-    split: function, src, statement_block: string, stopping: string,
-    strange_loop: string, strict: string, string: string, stringify: string,
-    strong: object, style: *, styleproperty: regexp, sub: object,
-    subscript: string, substr: *, substring: string, sup: object,
-    supplant: function, t: string, table: object, 'table-layout': array,
-    tag_a_in_b: string, tbody: object, td: object, test: *,
-    'text-align': array, 'text-decoration': array, 'text-indent': function,
-    'text-shadow': array, 'text-transform': array, textarea: object,
-    tfoot: object, th: object, thead: object, third: array, thru: number,
-    time: object, title: object, toDateString: string, toExponential: string,
-    toFixed: string, toISOString: string, toJSON: string,
-    toLocaleDateString: string, toLocaleLowerCase: string,
-    toLocaleString: string, toLocaleTimeString: string,
-    toLocaleUpperCase: string, toLowerCase: *, toPrecision: string,
-    toString: function, toTimeString: string, toUTCString: string,
-    toUpperCase: *, token: function, too_long: string, too_many: string,
-    top: array, tr: object, trailing_decimal_a: string, tree: string,
-    trim: string, tt: object, tty: boolean, tv: boolean, type: string,
-    type_confusion_a_b: string, u: object, ul: object, unclosed: string,
-    unclosed_comment: string, unclosed_regexp: string, undef: boolean,
-    undefined, unescaped_a: string, unexpected_a: string,
-    unexpected_char_a_b: string, unexpected_comment: string,
-    unexpected_property_a: string, unexpected_space_a_b: string,
-    'unicode-bidi': array, unnecessary_initialize: string,
-    unnecessary_use: string, unparam, unreachable_a_b: string,
-    unrecognized_style_attribute_a: string, unrecognized_tag_a: string,
-    unsafe: string, unshift: string, unused: array, url: string, urls: array,
-    use_array: string, use_braces: string, use_charAt: string,
-    use_object: string, use_or: string, use_param: string,
-    used_before_a: string, valueOf: string, var: object, var_a_not: string,
-    vars, 'vertical-align': array, video: object, visibility: array,
-    warn: boolean, was: object, weird_assignment: string,
-    weird_condition: string, weird_new: string, weird_program: string,
-    weird_relation: string, weird_ternary: string, white: boolean,
-    'white-space': array, widget: boolean, width: array, windows: boolean,
-    'word-spacing': array, 'word-wrap': array, wrap: boolean,
-    wrap_immediate: string, wrap_regexp: string, write_is_wrong: string,
-    writeable: boolean, 'z-index': array
-*/
-
-// The global directive is used to declare global variables that can
-// be accessed by the program. If a declaration is true, then the variable
-// is writeable. Otherwise, it is read-only.
-
-// We build the application inside a function so that we produce only a single
-// global variable. That function will be invoked immediately, and its return
-// value is the JSLINT function itself. That function is also an object that
-// can contain data and other functions.
-
-var JSLINT = (function () {
-    'use strict';
-
-    function array_to_object(array, value) {
-
-// Make an object from an array of keys and a common value.
-
-        var i, length = array.length, object = {};
-        for (i = 0; i < length; i += 1) {
-            object[array[i]] = value;
-        }
-        return object;
-    }
-
-
-    var adsafe_id,      // The widget's ADsafe id.
-        adsafe_may,     // The widget may load approved scripts.
-        adsafe_top,     // At the top of the widget script.
-        adsafe_went,    // ADSAFE.go has been called.
-        anonname,       // The guessed name for anonymous functions.
-        approved,       // ADsafe approved urls.
-
-// These are operators that should not be used with the ! operator.
-
-        bang = {
-            '<'  : true,
-            '<=' : true,
-            '==' : true,
-            '===': true,
-            '!==': true,
-            '!=' : true,
-            '>'  : true,
-            '>=' : true,
-            '+'  : true,
-            '-'  : true,
-            '*'  : true,
-            '/'  : true,
-            '%'  : true
-        },
-
-// These are property names that should not be permitted in the safe subset.
-
-        banned = array_to_object([
-            'arguments', 'callee', 'caller', 'constructor', 'eval', 'prototype',
-            'stack', 'unwatch', 'valueOf', 'watch'
-        ], true),
-        begin,          // The root token
-
-// browser contains a set of global names that are commonly provided by a
-// web browser environment.
-
-        browser = array_to_object([
-            'clearInterval', 'clearTimeout', 'document', 'event', 'frames',
-            'history', 'Image', 'localStorage', 'location', 'name', 'navigator',
-            'Option', 'parent', 'screen', 'sessionStorage', 'setInterval',
-            'setTimeout', 'Storage', 'window', 'XMLHttpRequest'
-        ], false),
-
-// bundle contains the text messages.
-
-        bundle = {
-            a_label: "'{a}' is a statement label.",
-            a_not_allowed: "'{a}' is not allowed.",
-            a_not_defined: "'{a}' is not defined.",
-            a_scope: "'{a}' used out of scope.",
-            adsafe_a: "ADsafe violation: '{a}'.",
-            adsafe_autocomplete: "ADsafe autocomplete violation.",
-            adsafe_bad_id: "ADSAFE violation: bad id.",
-            adsafe_div: "ADsafe violation: Wrap the widget in a div.",
-            adsafe_fragment: "ADSAFE: Use the fragment option.",
-            adsafe_go: "ADsafe violation: Misformed ADSAFE.go.",
-            adsafe_html: "Currently, ADsafe does not operate on whole HTML " +
-                "documents. It operates on <div> fragments and .js files.",
-            adsafe_id: "ADsafe violation: id does not match.",
-            adsafe_id_go: "ADsafe violation: Missing ADSAFE.id or ADSAFE.go.",
-            adsafe_lib: "ADsafe lib violation.",
-            adsafe_lib_second: "ADsafe: The second argument to lib must be a function.",
-            adsafe_missing_id: "ADSAFE violation: missing ID_.",
-            adsafe_name_a: "ADsafe name violation: '{a}'.",
-            adsafe_placement: "ADsafe script placement violation.",
-            adsafe_prefix_a: "ADsafe violation: An id must have a '{a}' prefix",
-            adsafe_script: "ADsafe script violation.",
-            adsafe_source: "ADsafe unapproved script source.",
-            adsafe_subscript_a: "ADsafe subscript '{a}'.",
-            adsafe_tag: "ADsafe violation: Disallowed tag '{a}'.",
-            already_defined: "'{a}' is already defined.",
-            and: "The '&&' subexpression should be wrapped in parens.",
-            assign_exception: "Do not assign to the exception parameter.",
-            assignment_function_expression: "Expected an assignment or " +
-                "function call and instead saw an expression.",
-            attribute_case_a: "Attribute '{a}' not all lower case.",
-            avoid_a: "Avoid '{a}'.",
-            bad_assignment: "Bad assignment.",
-            bad_color_a: "Bad hex color '{a}'.",
-            bad_constructor: "Bad constructor.",
-            bad_entity: "Bad entity.",
-            bad_html: "Bad HTML string",
-            bad_id_a: "Bad id: '{a}'.",
-            bad_in_a: "Bad for in variable '{a}'.",
-            bad_invocation: "Bad invocation.",
-            bad_name_a: "Bad name: '{a}'.",
-            bad_new: "Do not use 'new' for side effects.",
-            bad_number: "Bad number '{a}'.",
-            bad_operand: "Bad operand.",
-            bad_style: "Bad style.",
-            bad_type: "Bad type.",
-            bad_url_a: "Bad url '{a}'.",
-            bad_wrap: "Do not wrap function literals in parens unless they " +
-                "are to be immediately invoked.",
-            combine_var: "Combine this with the previous 'var' statement.",
-            conditional_assignment: "Expected a conditional expression and " +
-                "instead saw an assignment.",
-            confusing_a: "Confusing use of '{a}'.",
-            confusing_regexp: "Confusing regular expression.",
-            constructor_name_a: "A constructor name '{a}' should start with " +
-                "an uppercase letter.",
-            control_a: "Unexpected control character '{a}'.",
-            css: "A css file should begin with @charset 'UTF-8';",
-            dangling_a: "Unexpected dangling '_' in '{a}'.",
-            dangerous_comment: "Dangerous comment.",
-            deleted: "Only properties should be deleted.",
-            duplicate_a: "Duplicate '{a}'.",
-            empty_block: "Empty block.",
-            empty_case: "Empty case.",
-            empty_class: "Empty class.",
-            es5: "This is an ES5 feature.",
-            evil: "eval is evil.",
-            expected_a: "Expected '{a}'.",
-            expected_a_b: "Expected '{a}' and instead saw '{b}'.",
-            expected_a_b_from_c_d: "Expected '{a}' to match '{b}' from line " +
-                "{c} and instead saw '{d}'.",
-            expected_at_a: "Expected an at-rule, and instead saw @{a}.",
-            expected_a_at_b_c: "Expected '{a}' at column {b}, not column {c}.",
-            expected_attribute_a: "Expected an attribute, and instead saw [{a}].",
-            expected_attribute_value_a: "Expected an attribute value and " +
-                "instead saw '{a}'.",
-            expected_class_a: "Expected a class, and instead saw .{a}.",
-            expected_fraction_a: "Expected a number between 0 and 1 and " +
-                "instead saw '{a}'",
-            expected_id_a: "Expected an id, and instead saw #{a}.",
-            expected_identifier_a: "Expected an identifier and instead saw '{a}'.",
-            expected_identifier_a_reserved: "Expected an identifier and " +
-                "instead saw '{a}' (a reserved word).",
-            expected_linear_a: "Expected a linear unit and instead saw '{a}'.",
-            expected_lang_a: "Expected a lang code, and instead saw :{a}.",
-            expected_media_a: "Expected a CSS media type, and instead saw '{a}'.",
-            expected_name_a: "Expected a name and instead saw '{a}'.",
-            expected_nonstandard_style_attribute: "Expected a non-standard " +
-                "style attribute and instead saw '{a}'.",
-            expected_number_a: "Expected a number and instead saw '{a}'.",
-            expected_operator_a: "Expected an operator and instead saw '{a}'.",
-            expected_percent_a: "Expected a percentage and instead saw '{a}'",
-            expected_positive_a: "Expected a positive number and instead saw '{a}'",
-            expected_pseudo_a: "Expected a pseudo, and instead saw :{a}.",
-            expected_selector_a: "Expected a CSS selector, and instead saw {a}.",
-            expected_small_a: "Expected a small positive integer and instead saw '{a}'",
-            expected_space_a_b: "Expected exactly one space between '{a}' and '{b}'.",
-            expected_string_a: "Expected a string and instead saw {a}.",
-            expected_style_attribute: "Excepted a style attribute, and instead saw '{a}'.",
-            expected_style_pattern: "Expected a style pattern, and instead saw '{a}'.",
-            expected_tagname_a: "Expected a tagName, and instead saw {a}.",
-            expected_type_a: "Expected a type, and instead saw {a}.",
-            for_if: "The body of a for in should be wrapped in an if " +
-                "statement to filter unwanted properties from the prototype.",
-            function_block: "Function statements should not be placed in blocks. " +
-                "Use a function expression or move the statement to the top of " +
-                "the outer function.",
-            function_eval: "The Function constructor is eval.",
-            function_loop: "Don't make functions within a loop.",
-            function_statement: "Function statements are not invocable. " +
-                "Wrap the whole function invocation in parens.",
-            function_strict: "Use the function form of 'use strict'.",
-            html_confusion_a: "HTML confusion in regular expression '<{a}'.",
-            html_handlers: "Avoid HTML event handlers.",
-            identifier_function: "Expected an identifier in an assignment " +
-                "and instead saw a function invocation.",
-            implied_evil: "Implied eval is evil. Pass a function instead of a string.",
-            infix_in: "Unexpected 'in'. Compare with undefined, or use the " +
-                "hasOwnProperty method instead.",
-            insecure_a: "Insecure '{a}'.",
-            isNaN: "Use the isNaN function to compare with NaN.",
-            label_a_b: "Label '{a}' on '{b}' statement.",
-            lang: "lang is deprecated.",
-            leading_decimal_a: "A leading decimal point can be confused with a dot: '.{a}'.",
-            missing_a: "Missing '{a}'.",
-            missing_a_after_b: "Missing '{a}' after '{b}'.",
-            missing_option: "Missing option value.",
-            missing_property: "Missing property name.",
-            missing_space_a_b: "Missing space between '{a}' and '{b}'.",
-            missing_url: "Missing url.",
-            missing_use_strict: "Missing 'use strict' statement.",
-            mixed: "Mixed spaces and tabs.",
-            move_invocation: "Move the invocation into the parens that " +
-                "contain the function.",
-            move_var: "Move 'var' declarations to the top of the function.",
-            name_function: "Missing name in function statement.",
-            nested_comment: "Nested comment.",
-            not: "Nested not.",
-            not_a_constructor: "Do not use {a} as a constructor.",
-            not_a_defined: "'{a}' has not been fully defined yet.",
-            not_a_function: "'{a}' is not a function.",
-            not_a_label: "'{a}' is not a label.",
-            not_a_scope: "'{a}' is out of scope.",
-            not_greater: "'{a}' should not be greater than '{b}'.",
-            parameter_a_get_b: "Unexpected parameter '{a}' in get {b} function.",
-            parameter_set_a: "Expected parameter (value) in set {a} function.",
-            radix: "Missing radix parameter.",
-            read_only: "Read only.",
-            redefinition_a: "Redefinition of '{a}'.",
-            reserved_a: "Reserved name '{a}'.",
-            scanned_a_b: "{a} ({b}% scanned).",
-            slash_equal: "A regular expression literal can be confused with '/='.",
-            statement_block: "Expected to see a statement and instead saw a block.",
-            stopping: "Stopping. ",
-            strange_loop: "Strange loop.",
-            strict: "Strict violation.",
-            subscript: "['{a}'] is better written in dot notation.",
-            tag_a_in_b: "A '<{a}>' must be within '<{b}>'.",
-            too_long: "Line too long.",
-            too_many: "Too many errors.",
-            trailing_decimal_a: "A trailing decimal point can be confused " +
-                "with a dot: '.{a}'.",
-            type: "type is unnecessary.",
-            type_confusion_a_b: "Type confusion: {a} and {b}.",
-            unclosed: "Unclosed string.",
-            unclosed_comment: "Unclosed comment.",
-            unclosed_regexp: "Unclosed regular expression.",
-            unescaped_a: "Unescaped '{a}'.",
-            unexpected_a: "Unexpected '{a}'.",
-            unexpected_char_a_b: "Unexpected character '{a}' in {b}.",
-            unexpected_comment: "Unexpected comment.",
-            unexpected_property_a: "Unexpected /*property*/ '{a}'.",
-            unexpected_space_a_b: "Unexpected space between '{a}' and '{b}'.",
-            unnecessary_initialize: "It is not necessary to initialize '{a}' " +
-                "to 'undefined'.",
-            unnecessary_use: "Unnecessary 'use strict'.",
-            unreachable_a_b: "Unreachable '{a}' after '{b}'.",
-            unrecognized_style_attribute_a: "Unrecognized style attribute '{a}'.",
-            unrecognized_tag_a: "Unrecognized tag '<{a}>'.",
-            unsafe: "Unsafe character.",
-            url: "JavaScript URL.",
-            use_array: "Use the array literal notation [].",
-            use_braces: "Spaces are hard to count. Use {{a}}.",
-            use_charAt: "Use the charAt method.",
-            use_object: "Use the object literal notation {}.",
-            use_or: "Use the || operator.",
-            use_param: "Use a named parameter.",
-            used_before_a: "'{a}' was used before it was defined.",
-            var_a_not: "Variable {a} was not declared correctly.",
-            weird_assignment: "Weird assignment.",
-            weird_condition: "Weird condition.",
-            weird_new: "Weird construction. Delete 'new'.",
-            weird_program: "Weird program.",
-            weird_relation: "Weird relation.",
-            weird_ternary: "Weird ternary.",
-            wrap_immediate: "Wrap an immediate function invocation in parentheses " +
-                "to assist the reader in understanding that the expression " +
-                "is the result of a function, and not the function itself.",
-            wrap_regexp: "Wrap the /regexp/ literal in parens to " +
-                "disambiguate the slash operator.",
-            write_is_wrong: "document.write can be a form of eval."
-        },
-        comments_off,
-        css_attribute_data,
-        css_any,
-
-        css_colorData = array_to_object([
-            "aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
-            "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
-            "burlywood", "cadetblue", "chartreuse", "chocolate", "coral",
-            "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue",
-            "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki",
-            "darkmagenta", "darkolivegreen", "darkorange", "darkorchid",
-            "darkred", "darksalmon", "darkseagreen", "darkslateblue",
-            "darkslategray", "darkturquoise", "darkviolet", "deeppink",
-            "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite",
-            "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold",
-            "goldenrod", "gray", "green", "greenyellow", "honeydew", "hotpink",
-            "indianred", "indigo", "ivory", "khaki", "lavender",
-            "lavenderblush", "lawngreen", "lemonchiffon", "lightblue",
-            "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgreen",
-            "lightpink", "lightsalmon", "lightseagreen", "lightskyblue",
-            "lightslategray", "lightsteelblue", "lightyellow", "lime",
-            "limegreen", "linen", "magenta", "maroon", "mediumaquamarine",
-            "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen",
-            "mediumslateblue", "mediumspringgreen", "mediumturquoise",
-            "mediumvioletred", "midnightblue", "mintcream", "mistyrose",
-            "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab",
-            "orange", "orangered", "orchid", "palegoldenrod", "palegreen",
-            "paleturquoise", "palevioletred", "papayawhip", "peachpuff",
-            "peru", "pink", "plum", "powderblue", "purple", "red", "rosybrown",
-            "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen",
-            "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray",
-            "snow", "springgreen", "steelblue", "tan", "teal", "thistle",
-            "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke",
-            "yellow", "yellowgreen",
-
-            "activeborder", "activecaption", "appworkspace", "background",
-            "buttonface", "buttonhighlight", "buttonshadow", "buttontext",
-            "captiontext", "graytext", "highlight", "highlighttext",
-            "inactiveborder", "inactivecaption", "inactivecaptiontext",
-            "infobackground", "infotext", "menu", "menutext", "scrollbar",
-            "threeddarkshadow", "threedface", "threedhighlight",
-            "threedlightshadow", "threedshadow", "window", "windowframe",
-            "windowtext"
-        ], true),
-
-        css_border_style,
-        css_break,
-
-        css_lengthData = {
-            '%': true,
-            'cm': true,
-            'em': true,
-            'ex': true,
-            'in': true,
-            'mm': true,
-            'pc': true,
-            'pt': true,
-            'px': true
-        },
-
-        css_media,
-        css_overflow,
-
-        descapes = {
-            'b': '\b',
-            't': '\t',
-            'n': '\n',
-            'f': '\f',
-            'r': '\r',
-            '"': '"',
-            '/': '/',
-            '\\': '\\'
-        },
-
-        devel = array_to_object([
-            'alert', 'confirm', 'console', 'Debug', 'opera', 'prompt', 'WSH'
-        ], false),
-        directive,
-        escapes = {
-            '\b': '\\b',
-            '\t': '\\t',
-            '\n': '\\n',
-            '\f': '\\f',
-            '\r': '\\r',
-            '\'': '\\\'',
-            '"' : '\\"',
-            '/' : '\\/',
-            '\\': '\\\\'
-        },
-
-        funct,          // The current function, including the labels used in
-                        // the function, as well as (breakage), (complexity),
-                        // (context), (loopage), (name), (params), (token),
-                        // (vars), (verb)
-
-        functionicity = [
-            'closure', 'exception', 'global', 'label', 'outer', 'undef',
-            'unused', 'var'
-        ],
-
-        functions,      // All of the functions
-        global_funct,   // The global body
-        global_scope,   // The global scope
-        html_tag = {
-            a:        {},
-            abbr:     {},
-            acronym:  {},
-            address:  {},
-            applet:   {},
-            area:     {empty: true, parent: ' map '},
-            article:  {},
-            aside:    {},
-            audio:    {},
-            b:        {},
-            base:     {empty: true, parent: ' head '},
-            bdo:      {},
-            big:      {},
-            blockquote: {},
-            body:     {parent: ' html noframes '},
-            br:       {empty: true},
-            button:   {},
-            canvas:   {parent: ' body p div th td '},
-            caption:  {parent: ' table '},
-            center:   {},
-            cite:     {},
-            code:     {},
-            col:      {empty: true, parent: ' table colgroup '},
-            colgroup: {parent: ' table '},
-            command:  {parent: ' menu '},
-            datalist: {},
-            dd:       {parent: ' dl '},
-            del:      {},
-            details:  {},
-            dialog:   {},
-            dfn:      {},
-            dir:      {},
-            div:      {},
-            dl:       {},
-            dt:       {parent: ' dl '},
-            em:       {},
-            embed:    {},
-            fieldset: {},
-            figure:   {},
-            font:     {},
-            footer:   {},
-            form:     {},
-            frame:    {empty: true, parent: ' frameset '},
-            frameset: {parent: ' html frameset '},
-            h1:       {},
-            h2:       {},
-            h3:       {},
-            h4:       {},
-            h5:       {},
-            h6:       {},
-            head:     {parent: ' html '},
-            header:   {},
-            hgroup:   {},
-            hr:       {empty: true},
-            'hta:application':
-                      {empty: true, parent: ' head '},
-            html:     {parent: '*'},
-            i:        {},
-            iframe:   {},
-            img:      {empty: true},
-            input:    {empty: true},
-            ins:      {},
-            kbd:      {},
-            keygen:   {},
-            label:    {},
-            legend:   {parent: ' details fieldset figure '},
-            li:       {parent: ' dir menu ol ul '},
-            link:     {empty: true, parent: ' head '},
-            map:      {},
-            mark:     {},
-            menu:     {},
-            meta:     {empty: true, parent: ' head noframes noscript '},
-            meter:    {},
-            nav:      {},
-            noframes: {parent: ' html body '},
-            noscript: {parent: ' body head noframes '},
-            object:   {},
-            ol:       {},
-            optgroup: {parent: ' select '},
-            option:   {parent: ' optgroup select '},
-            output:   {},
-            p:        {},
-            param:    {empty: true, parent: ' applet object '},
-            pre:      {},
-            progress: {},
-            q:        {},
-            rp:       {},
-            rt:       {},
-            ruby:     {},
-            samp:     {},
-            script:   {empty: true, parent: ' body div frame head iframe p pre span '},
-            section:  {},
-            select:   {},
-            small:    {},
-            span:     {},
-            source:   {},
-            strong:   {},
-            style:    {parent: ' head ', empty: true},
-            sub:      {},
-            sup:      {},
-            table:    {},
-            tbody:    {parent: ' table '},
-            td:       {parent: ' tr '},
-            textarea: {},
-            tfoot:    {parent: ' table '},
-            th:       {parent: ' tr '},
-            thead:    {parent: ' table '},
-            time:     {},
-            title:    {parent: ' head '},
-            tr:       {parent: ' table tbody thead tfoot '},
-            tt:       {},
-            u:        {},
-            ul:       {},
-            'var':    {},
-            video:    {}
-        },
-
-        ids,            // HTML ids
-        in_block,
-        indent,
-//         infer_statement,// Inference rules for statements
-        is_type = array_to_object([
-            '*', 'array', 'boolean', 'function', 'number', 'object',
-            'regexp', 'string'
-        ], true),
-        itself,         // JSLint itself
-        jslint_limit = {
-            indent: 10,
-            maxerr: 1000,
-            maxlen: 256
-        },
-        json_mode,
-        lex,            // the tokenizer
-        lines,
-        lookahead,
-        member,
-        node = array_to_object([
-            'Buffer', 'clearInterval', 'clearTimeout', 'console', 'exports',
-            'global', 'module', 'process', 'querystring', 'require',
-            'setInterval', 'setTimeout', '__dirname', '__filename'
-        ], false),
-        node_js,
-        numbery = array_to_object(['indexOf', 'lastIndexOf', 'search'], true),
-        next_token,
-        option,
-        predefined,     // Global variables defined by option
-        prereg,
-        prev_token,
-        property_type,
-        regexp_flag = array_to_object(['g', 'i', 'm'], true),
-        return_this = function return_this() {
-            return this;
-        },
-        rhino = array_to_object([
-            'defineClass', 'deserialize', 'gc', 'help', 'load', 'loadClass',
-            'print', 'quit', 'readFile', 'readUrl', 'runCommand', 'seal',
-            'serialize', 'spawn', 'sync', 'toint32', 'version'
-        ], false),
-
-        scope,      // An object containing an object for each variable in scope
-        semicolon_coda = array_to_object([';', '"', '\'', ')'], true),
-        src,
-        stack,
-
-// standard contains the global names that are provided by the
-// ECMAScript standard.
-
-        standard = array_to_object([
-            'Array', 'Boolean', 'Date', 'decodeURI', 'decodeURIComponent',
-            'encodeURI', 'encodeURIComponent', 'Error', 'eval', 'EvalError',
-            'Function', 'isFinite', 'isNaN', 'JSON', 'Math', 'Number', 'Object',
-            'parseInt', 'parseFloat', 'RangeError', 'ReferenceError', 'RegExp',
-            'String', 'SyntaxError', 'TypeError', 'URIError'
-        ], false),
-
-        standard_property_type = {
-            E                   : 'number',
-            LN2                 : 'number',
-            LN10                : 'number',
-            LOG2E               : 'number',
-            LOG10E              : 'number',
-            MAX_VALUE           : 'number',
-            MIN_VALUE           : 'number',
-            NEGATIVE_INFINITY   : 'number',
-            PI                  : 'number',
-            POSITIVE_INFINITY   : 'number',
-            SQRT1_2             : 'number',
-            SQRT2               : 'number',
-            apply               : 'function',
-            bind                : 'function function',
-            call                : 'function',
-            ceil                : 'function number',
-            charAt              : 'function string',
-            concat              : 'function',
-            constructor         : 'function object',
-            create              : 'function object',
-            defineProperty      : 'function object',
-            defineProperties    : 'function object',
-            every               : 'function boolean',
-            exec                : 'function array',
-            filter              : 'function array',
-            floor               : 'function number',
-            forEach             : 'function',
-            freeze              : 'function object',
-            getDate             : 'function number',
-            getDay              : 'function number',
-            getFullYear         : 'function number',
-            getHours            : 'function number',
-            getMilliseconds     : 'function number',
-            getMinutes          : 'function number',
-            getMonth            : 'function number',
-            getOwnPropertyDescriptor
-                                : 'function object',
-            getOwnPropertyNames : 'function array',
-            getPrototypeOf      : 'function object',
-            getSeconds          : 'function number',
-            getTime             : 'function number',
-            getTimezoneOffset   : 'function number',
-            getUTCDate          : 'function number',
-            getUTCDay           : 'function number',
-            getUTCFullYear      : 'function number',
-            getUTCHours         : 'function number',
-            getUTCMilliseconds  : 'function number',
-            getUTCMinutes       : 'function number',
-            getUTCMonth         : 'function number',
-            getUTCSeconds       : 'function number',
-            getYear             : 'function number',
-            hasOwnProperty      : 'function boolean',
-            indexOf             : 'function number',
-            isExtensible        : 'function boolean',
-            isFrozen            : 'function boolean',
-            isPrototypeOf       : 'function boolean',
-            isSealed            : 'function boolean',
-            join                : 'function string',
-            keys                : 'function array',
-            lastIndexOf         : 'function number',
-            lastIndex           : 'number',
-            length              : 'number',
-            map                 : 'function array',
-            now                 : 'function number',
-            parse               : 'function',
-            pop                 : 'function',
-            preventExtensions   : 'function object',
-            propertyIsEnumerable: 'function boolean',
-            prototype           : 'object',
-            push                : 'function number',
-            reduce              : 'function',
-            reduceRight         : 'function',
-            reverse             : 'function',
-            seal                : 'function object',
-            setDate             : 'function',
-            setDay              : 'function',
-            setFullYear         : 'function',
-            setHours            : 'function',
-            setMilliseconds     : 'function',
-            setMinutes          : 'function',
-            setMonth            : 'function',
-            setSeconds          : 'function',
-            setTime             : 'function',
-            setTimezoneOffset   : 'function',
-            setUTCDate          : 'function',
-            setUTCDay           : 'function',
-            setUTCFullYear      : 'function',
-            setUTCHours         : 'function',
-            setUTCMilliseconds  : 'function',
-            setUTCMinutes       : 'function',
-            setUTCMonth         : 'function',
-            setUTCSeconds       : 'function',
-            setYear             : 'function',
-            shift               : 'function',
-            slice               : 'function',
-            some                : 'function boolean',
-            sort                : 'function',
-            splice              : 'function',
-            stringify           : 'function string',
-            substr              : 'function string',
-            substring           : 'function string',
-            test                : 'function boolean',
-            toDateString        : 'function string',
-            toExponential       : 'function string',
-            toFixed             : 'function string',
-            toJSON              : 'function',
-            toISOString         : 'function string',
-            toLocaleDateString  : 'function string',
-            toLocaleLowerCase   : 'function string',
-            toLocaleUpperCase   : 'function string',
-            toLocaleString      : 'function string',
-            toLocaleTimeString  : 'function string',
-            toLowerCase         : 'function string',
-            toPrecision         : 'function string',
-            toTimeString        : 'function string',
-            toUpperCase         : 'function string',
-            toUTCString         : 'function string',
-            trim                : 'function string',
-            unshift             : 'function number',
-            valueOf             : 'function'
-        },
-
-        strict_mode,
-        syntax = {},
-        tab,
-        token,
-//         type_state_change,
-        urls,
-        var_mode,
-        warnings,
-
-// widget contains the global names which are provided to a Yahoo
-// (fna Konfabulator) widget.
-
-        widget = array_to_object([
-            'alert', 'animator', 'appleScript', 'beep', 'bytesToUIString',
-            'Canvas', 'chooseColor', 'chooseFile', 'chooseFolder',
-            'closeWidget', 'COM', 'convertPathToHFS', 'convertPathToPlatform',
-            'CustomAnimation', 'escape', 'FadeAnimation', 'filesystem', 'Flash',
-            'focusWidget', 'form', 'FormField', 'Frame', 'HotKey', 'Image',
-            'include', 'isApplicationRunning', 'iTunes', 'konfabulatorVersion',
-            'log', 'md5', 'MenuItem', 'MoveAnimation', 'openURL', 'play',
-            'Point', 'popupMenu', 'preferenceGroups', 'preferences', 'print',
-            'prompt', 'random', 'Rectangle', 'reloadWidget', 'ResizeAnimation',
-            'resolvePath', 'resumeUpdates', 'RotateAnimation', 'runCommand',
-            'runCommandInBg', 'saveAs', 'savePreferences', 'screen',
-            'ScrollBar', 'showWidgetPreferences', 'sleep', 'speak', 'Style',
-            'suppressUpdates', 'system', 'tellWidget', 'Text', 'TextArea',
-            'Timer', 'unescape', 'updateNow', 'URL', 'Web', 'widget', 'Window',
-            'XMLDOM', 'XMLHttpRequest', 'yahooCheckLogin', 'yahooLogin',
-            'yahooLogout'
-        ], true),
-
-        windows = array_to_object([
-            'ActiveXObject', 'CScript', 'Debug', 'Enumerator', 'System',
-            'VBArray', 'WScript', 'WSH'
-        ], false),
-
-//  xmode is used to adapt to the exceptions in html parsing.
-//  It can have these states:
-//      ''      .js script file
-//      'html'
-//      'outer'
-//      'script'
-//      'style'
-//      'scriptstring'
-//      'styleproperty'
-
-        xmode,
-        xquote,
-
-// Regular expressions. Some of these are stupidly long.
-
-// unsafe comment or string
-        ax = /@cc|<\/?|script|\]\s*\]|<\s*!|&lt/i,
-// carriage return, or carriage return linefeed
-        crx = /\r/g,
-        crlfx = /\r\n/g,
-// unsafe characters that are silently deleted by one or more browsers
-        cx = /[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,
-// query characters for ids
-        dx = /[\[\]\/\\"'*<>.&:(){}+=#]/,
-// html token
-        hx = /^\s*(['"=>\/&#]|<(?:\/|\!(?:--)?)?|[a-zA-Z][a-zA-Z0-9_\-:]*|[0-9]+|--)/,
-// identifier
-        ix = /^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,
-// javascript url
-        jx = /^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,
-// star slash
-        lx = /\*\/|\/\*/,
-// characters in strings that need escapement
-        nx = /[\u0000-\u001f'\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
-// outer html token
-        ox = /[>&]|<[\/!]?|--/,
-// attributes characters
-        qx = /[^a-zA-Z0-9+\-_\/ ]/,
-// style
-        sx = /^\s*([{}:#%.=,>+\[\]@()"';]|\*=?|\$=|\|=|\^=|~=|[a-zA-Z_][a-zA-Z0-9_\-]*|[0-9]+|<\/|\/\*)/,
-        ssx = /^\s*([@#!"'};:\-%.=,+\[\]()*_]|[a-zA-Z][a-zA-Z0-9._\-]*|\/\*?|\d+(?:\.\d+)?|<\/)/,
-// token
-        tx = /^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jslint|properties|property|members?|globals?)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/,
-// url badness
-        ux = /&|\+|\u00AD|\.\.|\/\*|%[^;]|base64|url|expression|data|mailto|script/i,
-
-        rx = {
-            outer: hx,
-            html: hx,
-            style: sx,
-            styleproperty: ssx
-        };
-
-
-    function F() {}     // Used by Object.create
-
-// Provide critical ES5 functions to ES3.
-
-    if (typeof Array.prototype.filter !== 'function') {
-        Array.prototype.filter = function (f) {
-            var i, length = this.length, result = [], value;
-            for (i = 0; i < length; i += 1) {
-                try {
-                    value = this[i];
-                    if (f(value)) {
-                        result.push(value);
-                    }
-                } catch (ignore) {
-                }
-            }
-            return result;
-        };
-    }
-
-    if (typeof Array.prototype.forEach !== 'function') {
-        Array.prototype.forEach = function (f) {
-            var i, length = this.length;
-            for (i = 0; i < length; i += 1) {
-                try {
-                    f(this[i]);
-                } catch (ignore) {
-                }
-            }
-        };
-    }
-
-    if (typeof Array.isArray !== 'function') {
-        Array.isArray = function (o) {
-            return Object.prototype.toString.apply(o) === '[object Array]';
-        };
-    }
-
-    if (!Object.prototype.hasOwnProperty.call(Object, 'create')) {
-        Object.create = function (o) {
-            F.prototype = o;
-            return new F();
-        };
-    }
-
-    if (typeof Object.keys !== 'function') {
-        Object.keys = function (o) {
-            var array = [], key;
-            for (key in o) {
-                if (Object.prototype.hasOwnProperty.call(o, key)) {
-                    array.push(key);
-                }
-            }
-            return array;
-        };
-    }
-
-    if (typeof String.prototype.entityify !== 'function') {
-        String.prototype.entityify = function () {
-            return this
-                .replace(/&/g, '&amp;')
-                .replace(/</g, '&lt;')
-                .replace(/>/g, '&gt;');
-        };
-    }
-
-    if (typeof String.prototype.isAlpha !== 'function') {
-        String.prototype.isAlpha = function () {
-            return (this >= 'a' && this <= 'z\uffff') ||
-                (this >= 'A' && this <= 'Z\uffff');
-        };
-    }
-
-    if (typeof String.prototype.isDigit !== 'function') {
-        String.prototype.isDigit = function () {
-            return (this >= '0' && this <= '9');
-        };
-    }
-
-    if (typeof String.prototype.supplant !== 'function') {
-        String.prototype.supplant = function (o) {
-            return this.replace(/\{([^{}]*)\}/g, function (a, b) {
-                var replacement = o[b];
-                return typeof replacement === 'string' ||
-                    typeof replacement === 'number' ? replacement : a;
-            });
-        };
-    }
-
-
-    function sanitize(a) {
-
-//  Escapify a troublesome character.
-
-        return escapes[a] ||
-            '\\u' + ('0000' + a.charCodeAt().toString(16)).slice(-4);
-    }
-
-
-    function add_to_predefined(group) {
-        Object.keys(group).forEach(function (name) {
-            predefined[name] = group[name];
-        });
-    }
-
-
-    function assume() {
-        if (!option.safe) {
-            if (option.rhino) {
-                add_to_predefined(rhino);
-                option.rhino = false;
-            }
-            if (option.devel) {
-                add_to_predefined(devel);
-                option.devel = false;
-            }
-            if (option.browser) {
-                add_to_predefined(browser);
-                option.browser = false;
-            }
-            if (option.windows) {
-                add_to_predefined(windows);
-                option.windows = false;
-            }
-            if (option.node) {
-                add_to_predefined(node);
-                option.node = false;
-                node_js = true;
-            }
-            if (option.widget) {
-                add_to_predefined(widget);
-                option.widget = false;
-            }
-        }
-        if (option.type) {
-            option.confusion = true;
-        }
-    }
-
-
-// Produce an error warning.
-
-    function artifact(tok) {
-        if (!tok) {
-            tok = next_token;
-        }
-        return tok.number || tok.string;
-    }
-
-    function quit(message, line, character) {
-        throw {
-            name: 'JSLintError',
-            line: line,
-            character: character,
-            message: bundle.scanned_a_b.supplant({
-                a: message,
-                b: Math.floor((line / lines.length) * 100)
-            })
-        };
-    }
-
-    function warn(message, offender, a, b, c, d) {
-        var character, line, warning;
-        offender = offender || next_token;  // `~
-        line = offender.line || 0;
-        character = offender.from || 0;
-        warning = {
-            id: '(error)',
-            raw: bundle[message] || message,
-            evidence: lines[line - 1] || '',
-            line: line,
-            character: character,
-            a: a || (offender.id === '(number)'
-                ? String(offender.number)
-                : offender.string),
-            b: b,
-            c: c,
-            d: d
-        };
-        warning.reason = warning.raw.supplant(warning);
-        JSLINT.errors.push(warning);
-        if (option.passfail) {
-            quit(bundle.stopping, line, character);
-        }
-        warnings += 1;
-        if (warnings >= option.maxerr) {
-            quit(bundle.too_many, line, character);
-        }
-        return warning;
-    }
-
-    function warn_at(message, line, character, a, b, c, d) {
-        return warn(message, {
-            line: line,
-            from: character
-        }, a, b, c, d);
-    }
-
-    function stop(message, offender, a, b, c, d) {
-        var warning = warn(message, offender, a, b, c, d);
-        quit(bundle.stopping, warning.line, warning.character);
-    }
-
-    function stop_at(message, line, character, a, b, c, d) {
-        return stop(message, {
-            line: line,
-            from: character
-        }, a, b, c, d);
-    }
-
-    function expected_at(at) {
-        if (!option.white && next_token.from !== at) {
-            warn('expected_a_at_b_c', next_token, '', at,
-                next_token.from);
-        }
-    }
-
-    function aint(it, name, expected) {
-        if (it[name] !== expected) {
-            warn('expected_a_b', it, expected, it[name]);
-            return true;
-        } else {
-            return false;
-        }
-    }
-
-
-// lexical analysis and token construction
-
-    lex = (function lex() {
-        var character, c, from, length, line, pos, source_row;
-
-// Private lex methods
-
-        function next_line() {
-            var at;
-            if (line >= lines.length) {
-                return false;
-            }
-            character = 1;
-            source_row = lines[line];
-            line += 1;
-            at = source_row.search(/ \t/);
-            if (at >= 0) {
-                warn_at('mixed', line, at + 1);
-            }
-            source_row = source_row.replace(/\t/g, tab);
-            at = source_row.search(cx);
-            if (at >= 0) {
-                warn_at('unsafe', line, at);
-            }
-            if (option.maxlen && option.maxlen < source_row.length) {
-                warn_at('too_long', line, source_row.length);
-            }
-            return true;
-        }
-
-// Produce a token object.  The token inherits from a syntax symbol.
-
-        function it(type, value) {
-            var id, the_token;
-            if (type === '(string)' || type === '(range)') {
-                if (jx.test(value)) {
-                    warn_at('url', line, from);
-                }
-            }
-            the_token = Object.create(syntax[(
-                type === '(punctuator)' || (type === '(identifier)' &&
-                        Object.prototype.hasOwnProperty.call(syntax, value))
-                    ? value
-                    : type
-            )] || syntax['(error)']);
-            if (type === '(identifier)') {
-                the_token.identifier = true;
-                if (value === '__iterator__' || value === '__proto__') {
-                    stop_at('reserved_a', line, from, value);
-                } else if (!option.nomen &&
-                        (value.charAt(0) === '_' ||
-                        value.charAt(value.length - 1) === '_')) {
-                    warn_at('dangling_a', line, from, value);
-                }
-            }
-            if (type === '(number)') {
-                the_token.number = +value;
-            } else if (value !== undefined) {
-                the_token.string = String(value);
-            }
-            the_token.line = line;
-            the_token.from = from;
-            the_token.thru = character;
-            id = the_token.id;
-            prereg = id && (
-                ('(,=:[!&|?{};'.indexOf(id.charAt(id.length - 1)) >= 0) ||
-                id === 'return' || id === 'case'
-            );
-            return the_token;
-        }
-
-        function match(x) {
-            var exec = x.exec(source_row), first;
-            if (exec) {
-                length = exec[0].length;
-                first = exec[1];
-                c = first.charAt(0);
-                source_row = source_row.slice(length);
-                from = character + length - first.length;
-                character += length;
-                return first;
-            }
-        }
-
-        function string(x) {
-            var c, pos = 0, r = '', result;
-
-            function hex(n) {
-                var i = parseInt(source_row.substr(pos + 1, n), 16);
-                pos += n;
-                if (i >= 32 && i <= 126 &&
-                        i !== 34 && i !== 92 && i !== 39) {
-                    warn_at('unexpected_a', line, character, '\\');
-                }
-                character += n;
-                c = String.fromCharCode(i);
-            }
-
-            if (json_mode && x !== '"') {
-                warn_at('expected_a', line, character, '"');
-            }
-
-            if (xquote === x || (xmode === 'scriptstring' && !xquote)) {
-                return it('(punctuator)', x);
-            }
-
-            for (;;) {
-                while (pos >= source_row.length) {
-                    pos = 0;
-                    if (xmode !== 'html' || !next_line()) {
-                        stop_at('unclosed', line, from);
-                    }
-                }
-                c = source_row.charAt(pos);
-                if (c === x) {
-                    character += 1;
-                    source_row = source_row.slice(pos + 1);
-                    result = it('(string)', r);
-                    result.quote = x;
-                    return result;
-                }
-                if (c < ' ') {
-                    if (c === '\n' || c === '\r') {
-                        break;
-                    }
-                    warn_at('control_a', line, character + pos,
-                        source_row.slice(0, pos));
-                } else if (c === xquote) {
-                    warn_at('bad_html', line, character + pos);
-                } else if (c === '<') {
-                    if (option.safe && xmode === 'html') {
-                        warn_at('adsafe_a', line, character + pos, c);
-                    } else if (source_row.charAt(pos + 1) === '/' && (xmode || option.safe)) {
-                        warn_at('expected_a_b', line, character,
-                            '<\\/', '</');
-                    } else if (source_row.charAt(pos + 1) === '!' && (xmode || option.safe)) {
-                        warn_at('unexpected_a', line, character, '<!');
-                    }
-                } else if (c === '\\') {
-                    if (xmode === 'html') {
-                        if (option.safe) {
-                            warn_at('adsafe_a', line, character + pos, c);
-                        }
-                    } else if (xmode === 'styleproperty') {
-                        pos += 1;
-                        character += 1;
-                        c = source_row.charAt(pos);
-                        if (c !== x) {
-                            warn_at('unexpected_a', line, character, '\\');
-                        }
-                    } else {
-                        pos += 1;
-                        character += 1;
-                        c = source_row.charAt(pos);
-                        switch (c) {
-                        case '':
-                            if (!option.es5) {
-                                warn_at('es5', line, character);
-                            }
-                            next_line();
-                            pos = -1;
-                            break;
-                        case xquote:
-                            warn_at('bad_html', line, character + pos);
-                            break;
-                        case '\'':
-                            if (json_mode) {
-                                warn_at('unexpected_a', line, character, '\\\'');
-                            }
-                            break;
-                        case 'u':
-                            hex(4);
-                            break;
-                        case 'v':
-                            if (json_mode) {
-                                warn_at('unexpected_a', line, character, '\\v');
-                            }
-                            c = '\v';
-                            break;
-                        case 'x':
-                            if (json_mode) {
-                                warn_at('unexpected_a', line, character, '\\x');
-                            }
-                            hex(2);
-                            break;
-                        default:
-                            c = descapes[c];
-                            if (typeof c !== 'string') {
-                                warn_at('unexpected_a', line, character, '\\');
-                            }
-                        }
-                    }
-                }
-                r += c;
-                character += 1;
-                pos += 1;
-            }
-        }
-
-        function number(snippet) {
-            var digit;
-            if (xmode !== 'style' && xmode !== 'styleproperty' &&
-                    source_row.charAt(0).isAlpha()) {
-                warn_at('expected_space_a_b',
-                    line, character, c, source_row.charAt(0));
-            }
-            if (c === '0') {
-                digit = snippet.charAt(1);
-                if (digit.isDigit()) {
-                    if (token.id !== '.' && xmode !== 'styleproperty') {
-                        warn_at('unexpected_a', line, character, snippet);
-                    }
-                } else if (json_mode && (digit === 'x' || digit === 'X')) {
-                    warn_at('unexpected_a', line, character, '0x');
-                }
-            }
-            if (snippet.slice(snippet.length - 1) === '.') {
-                warn_at('trailing_decimal_a', line, character, snippet);
-            }
-            if (xmode !== 'style') {
-                digit = +snippet;
-                if (!isFinite(digit)) {
-                    warn_at('bad_number', line, character, snippet);
-                }
-                snippet = digit;
-            }
-            return it('(number)', snippet);
-        }
-
-        function comment(snippet) {
-            if (comments_off || src || (xmode && xmode !== 'script' &&
-                    xmode !== 'style' && xmode !== 'styleproperty')) {
-                warn_at('unexpected_comment', line, character);
-            } else if (xmode === 'script' && /<\//i.test(source_row)) {
-                warn_at('unexpected_a', line, character, '<\/');
-            } else if (option.safe && ax.test(snippet)) {
-                warn_at('dangerous_comment', line, character);
-            }
-        }
-
-        function regexp() {
-            var b,
-                bit,
-                captures = 0,
-                depth = 0,
-                flag = '',
-                high,
-                letter,
-                length = 0,
-                low,
-                potential,
-                quote,
-                result;
-            for (;;) {
-                b = true;
-                c = source_row.charAt(length);
-                length += 1;
-                switch (c) {
-                case '':
-                    stop_at('unclosed_regexp', line, from);
-                    return;
-                case '/':
-                    if (depth > 0) {
-                        warn_at('unescaped_a', line, from + length, '/');
-                    }
-                    c = source_row.slice(0, length - 1);
-                    potential = Object.create(regexp_flag);
-                    for (;;) {
-                        letter = source_row.charAt(length);
-                        if (potential[letter] !== true) {
-                            break;
-                        }
-                        potential[letter] = false;
-                        length += 1;
-                        flag += letter;
-                    }
-                    if (source_row.charAt(length).isAlpha()) {
-                        stop_at('unexpected_a', line, from, source_row.charAt(length));
-                    }
-                    character += length;
-                    source_row = source_row.slice(length);
-                    quote = source_row.charAt(0);
-                    if (quote === '/' || quote === '*') {
-                        stop_at('confusing_regexp', line, from);
-                    }
-                    result = it('(regexp)', c);
-                    result.flag = flag;
-                    return result;
-                case '\\':
-                    c = source_row.charAt(length);
-                    if (c < ' ') {
-                        warn_at('control_a', line, from + length, String(c));
-                    } else if (c === '<') {
-                        warn_at(bundle.unexpected_a, line, from + length, '\\');
-                    }
-                    length += 1;
-                    break;
-                case '(':
-                    depth += 1;
-                    b = false;
-                    if (source_row.charAt(length) === '?') {
-                        length += 1;
-                        switch (source_row.charAt(length)) {
-                        case ':':
-                        case '=':
-                        case '!':
-                            length += 1;
-                            break;
-                        default:
-                            warn_at(bundle.expected_a_b, line, from + length,
-                                ':', source_row.charAt(length));
-                        }
-                    } else {
-                        captures += 1;
-                    }
-                    break;
-                case '|':
-                    b = false;
-                    break;
-                case ')':
-                    if (depth === 0) {
-                        warn_at('unescaped_a', line, from + length, ')');
-                    } else {
-                        depth -= 1;
-                    }
-                    break;
-                case ' ':
-                    pos = 1;
-                    while (source_row.charAt(length) === ' ') {
-                        length += 1;
-                        pos += 1;
-                    }
-                    if (pos > 1) {
-                        warn_at('use_braces', line, from + length, pos);
-                    }
-                    break;
-                case '[':
-                    c = source_row.charAt(length);
-                    if (c === '^') {
-                        length += 1;
-                        if (!option.regexp) {
-                            warn_at('insecure_a', line, from + length, c);
-                        } else if (source_row.charAt(length) === ']') {
-                            stop_at('unescaped_a', line, from + length, '^');
-                        }
-                    }
-                    bit = false;
-                    if (c === ']') {
-                        warn_at('empty_class', line, from + length - 1);
-                        bit = true;
-                    }
-klass:              do {
-                        c = source_row.charAt(length);
-                        length += 1;
-                        switch (c) {
-                        case '[':
-                        case '^':
-                            warn_at('unescaped_a', line, from + length, c);
-                            bit = true;
-                            break;
-                        case '-':
-                            if (bit) {
-                                bit = false;
-                            } else {
-                                warn_at('unescaped_a', line, from + length, '-');
-                                bit = true;
-                            }
-                            break;
-                        case ']':
-                            if (!bit) {
-                                warn_at('unescaped_a', line, from + length - 1, '-');
-                            }
-                            break klass;
-                        case '\\':
-                            c = source_row.charAt(length);
-                            if (c < ' ') {
-                                warn_at(bundle.control_a, line, from + length, String(c));
-                            } else if (c === '<') {
-                                warn_at(bundle.unexpected_a, line, from + length, '\\');
-                            }
-                            length += 1;
-                            bit = true;
-                            break;
-                        case '/':
-                            warn_at('unescaped_a', line, from + length - 1, '/');
-                            bit = true;
-                            break;
-                        case '<':
-                            if (xmode === 'script') {
-                                c = source_row.charAt(length);
-                                if (c === '!' || c === '/') {
-                                    warn_at(bundle.html_confusion_a, line,
-                                        from + length, c);
-                                }
-                            }
-                            bit = true;
-                            break;
-                        default:
-                            bit = true;
-                        }
-                    } while (c);
-                    break;
-                case '.':
-                    if (!option.regexp) {
-                        warn_at('insecure_a', line, from + length, c);
-                    }
-                    break;
-                case ']':
-                case '?':
-                case '{':
-                case '}':
-                case '+':
-                case '*':
-                    warn_at('unescaped_a', line, from + length, c);
-                    break;
-                case '<':
-                    if (xmode === 'script') {
-                        c = source_row.charAt(length);
-                        if (c === '!' || c === '/') {
-                            warn_at(bundle.html_confusion_a, line, from + length, c);
-                        }
-                    }
-                    break;
-                }
-                if (b) {
-                    switch (source_row.charAt(length)) {
-                    case '?':
-                    case '+':
-                    case '*':
-                        length += 1;
-                        if (source_row.charAt(length) === '?') {
-                            length += 1;
-                        }
-                        break;
-                    case '{':
-                        length += 1;
-                        c = source_row.charAt(length);
-                        if (c < '0' || c > '9') {
-                            warn_at(bundle.expected_number_a, line,
-                                from + length, c);
-                        }
-                        length += 1;
-                        low = +c;
-                        for (;;) {
-                            c = source_row.charAt(length);
-                            if (c < '0' || c > '9') {
-                                break;
-                            }
-                            length += 1;
-                            low = +c + (low * 10);
-                        }
-                        high = low;
-                        if (c === ',') {
-                            length += 1;
-                            high = Infinity;
-                            c = source_row.charAt(length);
-                            if (c >= '0' && c <= '9') {
-                                length += 1;
-                                high = +c;
-                                for (;;) {
-                                    c = source_row.charAt(length);
-                                    if (c < '0' || c > '9') {
-                                        break;
-                                    }
-                                    length += 1;
-                                    high = +c + (high * 10);
-                                }
-                            }
-                        }
-                        if (source_row.charAt(length) !== '}') {
-                            warn_at(bundle.expected_a_b, line, from + length,
-                                '}', c);
-                        } else {
-                            length += 1;
-                        }
-                        if (source_row.charAt(length) === '?') {
-                            length += 1;
-                        }
-                        if (low > high) {
-                            warn_at(bundle.not_greater, line, from + length,
-                                low, high);
-                        }
-                        break;
-                    }
-                }
-            }
-            c = source_row.slice(0, length - 1);
-            character += length;
-            source_row = source_row.slice(length);
-            return it('(regexp)', c);
-        }
-
-// Public lex methods
-
-        return {
-            init: function (source) {
-                if (typeof source === 'string') {
-                    lines = source
-                        .replace(crlfx, '\n')
-                        .replace(crx, '\n')
-                        .split('\n');
-                } else {
-                    lines = source;
-                }
-                line = 0;
-                next_line();
-                from = 1;
-            },
-
-            range: function (begin, end) {
-                var c, value = '';
-                from = character;
-                if (source_row.charAt(0) !== begin) {
-                    stop_at('expected_a_b', line, character, begin,
-                        source_row.charAt(0));
-                }
-                for (;;) {
-                    source_row = source_row.slice(1);
-                    character += 1;
-                    c = source_row.charAt(0);
-                    switch (c) {
-                    case '':
-                        stop_at('missing_a', line, character, c);
-                        break;
-                    case end:
-                        source_row = source_row.slice(1);
-                        character += 1;
-                        return it('(range)', value);
-                    case xquote:
-                    case '\\':
-                        warn_at('unexpected_a', line, character, c);
-                        break;
-                    }
-                    value += c;
-                }
-            },
-
-// token -- this is called by advance to get the next token.
-
-            token: function () {
-                var c, i, snippet;
-
-                for (;;) {
-                    while (!source_row) {
-                        if (!next_line()) {
-                            return it('(end)');
-                        }
-                    }
-                    while (xmode === 'outer') {
-                        i = source_row.search(ox);
-                        if (i === 0) {
-                            break;
-                        } else if (i > 0) {
-                            character += 1;
-                            source_row = source_row.slice(i);
-                            break;
-                        } else {
-                            if (!next_line()) {
-                                return it('(end)', '');
-                            }
-                        }
-                    }
-                    snippet = match(rx[xmode] || tx);
-                    if (!snippet) {
-                        if (source_row) {
-                            if (source_row.charAt(0) === ' ') {
-                                if (!option.white) {
-                                    warn_at('unexpected_a', line, character,
-                                        '(space)');
-                                }
-                                character += 1;
-                                source_row = '';
-                            } else {
-                                stop_at('unexpected_a', line, character,
-                                    source_row.charAt(0));
-                            }
-                        }
-                    } else {
-
-//      identifier
-
-                        c = snippet.charAt(0);
-                        if (c.isAlpha() || c === '_' || c === '$') {
-                            return it('(identifier)', snippet);
-                        }
-
-//      number
-
-                        if (c.isDigit()) {
-                            return number(snippet);
-                        }
-                        switch (snippet) {
-
-//      string
-
-                        case '"':
-                        case "'":
-                            return string(snippet);
-
-//      // comment
-
-                        case '//':
-                            comment(source_row);
-                            source_row = '';
-                            break;
-
-//      /* comment
-
-                        case '/*':
-                            for (;;) {
-                                i = source_row.search(lx);
-                                if (i >= 0) {
-                                    break;
-                                }
-                                comment(source_row);
-                                if (!next_line()) {
-                                    stop_at('unclosed_comment', line, character);
-                                }
-                            }
-                            comment(source_row.slice(0, i));
-                            character += i + 2;
-                            if (source_row.charAt(i) === '/') {
-                                stop_at('nested_comment', line, character);
-                            }
-                            source_row = source_row.slice(i + 2);
-                            break;
-
-                        case '':
-                            break;
-//      /
-                        case '/':
-                            if (token.id === '/=') {
-                                stop_at(
-                                    bundle.slash_equal,
-                                    line,
-                                    from
-                                );
-                            }
-                            return prereg
-                                ? regexp()
-                                : it('(punctuator)', snippet);
-
-//      punctuator
-
-                        case '<!--':
-                            length = line;
-//                            c = character;
-                            for (;;) {
-                                i = source_row.indexOf('--');
-                                if (i >= 0) {
-                                    break;
-                                }
-                                i = source_row.indexOf('<!');
-                                if (i >= 0) {
-                                    stop_at('nested_comment',
-                                        line, character + i);
-                                }
-                                if (!next_line()) {
-                                    stop_at('unclosed_comment', length, c);
-                                }
-                            }
-                            length = source_row.indexOf('<!');
-                            if (length >= 0 && length < i) {
-                                stop_at('nested_comment',
-                                    line, character + length);
-                            }
-                            character += i;
-                            if (source_row.charAt(i + 2) !== '>') {
-                                stop_at('expected_a', line, character, '-->');
-                            }
-                            character += 3;
-                            source_row = source_row.slice(i + 3);
-                            break;
-                        case '#':
-                            if (xmode === 'html' || xmode === 'styleproperty') {
-                                for (;;) {
-                                    c = source_row.charAt(0);
-                                    if ((c < '0' || c > '9') &&
-                                            (c < 'a' || c > 'f') &&
-                                            (c < 'A' || c > 'F')) {
-                                        break;
-                                    }
-                                    character += 1;
-                                    source_row = source_row.slice(1);
-                                    snippet += c;
-                                }
-                                if (snippet.length !== 4 && snippet.length !== 7) {
-                                    warn_at('bad_color_a', line,
-                                        from + length, snippet);
-                                }
-                                return it('(color)', snippet);
-                            }
-                            return it('(punctuator)', snippet);
-
-                        default:
-                            if (xmode === 'outer' && c === '&') {
-                                character += 1;
-                                source_row = source_row.slice(1);
-                                for (;;) {
-                                    c = source_row.charAt(0);
-                                    character += 1;
-                                    source_row = source_row.slice(1);
-                                    if (c === ';') {
-                                        break;
-                                    }
-                                    if (!((c >= '0' && c <= '9') ||
-                                            (c >= 'a' && c <= 'z') ||
-                                            c === '#')) {
-                                        stop_at('bad_entity', line, from + length,
-                                            character);
-                                    }
-                                }
-                                break;
-                            }
-                            return it('(punctuator)', snippet);
-                        }
-                    }
-                }
-            }
-        };
-    }());
-
-
-    function add_label(token, kind, name) {
-
-// Define the symbol in the current function in the current scope.
-
-        name = name || token.string;
-
-// Global variables cannot be created in the safe subset. If a global variable
-// already exists, do nothing. If it is predefined, define it.
-
-        if (funct === global_funct) {
-            if (option.safe) {
-                warn('adsafe_a', token, name);
-            }
-            if (typeof global_funct[name] !== 'string') {
-                token.writeable = typeof predefined[name] === 'boolean'
-                    ? predefined[name]
-                    : true;
-                token.funct = funct;
-                global_scope[name] = token;
-            }
-            if (kind === 'becoming') {
-                kind = 'var';
-            }
-
-// Ordinary variables.
-
-        } else {
-
-// Warn if the variable already exists.
-
-            if (typeof funct[name] === 'string') {
-                if (funct[name] === 'undef') {
-                    if (!option.undef) {
-                        warn('used_before_a', token, name);
-                    }
-                    kind = 'var';
-                } else {
-                    warn('already_defined', token, name);
-                }
-            } else {
-
-// Add the symbol to the current function.
-
-                token.funct = funct;
-                token.writeable = true;
-                scope[name] = token;
-            }
-        }
-        funct[name] = kind;
-    }
-
-
-    function peek(distance) {
-
-// Peek ahead to a future token. The distance is how far ahead to look. The
-// default is the next token.
-
-        var found, slot = 0;
-
-        distance = distance || 0;
-        while (slot <= distance) {
-            found = lookahead[slot];
-            if (!found) {
-                found = lookahead[slot] = lex.token();
-            }
-            slot += 1;
-        }
-        return found;
-    }
-
-
-    function advance(id, match) {
-
-// Produce the next token, also looking for programming errors.
-
-        if (indent) {
-
-// If indentation checking was requested, then inspect all of the line breakings.
-// The var statement is tricky because the names might be aligned or not. We
-// look at the first line break after the var to determine the programmer's
-// intention.
-
-            if (var_mode && next_token.line !== token.line) {
-                if ((var_mode !== indent || !next_token.edge) &&
-                        next_token.from === indent.at -
-                        (next_token.edge ? option.indent : 0)) {
-                    var dent = indent;
-                    for (;;) {
-                        dent.at -= option.indent;
-                        if (dent === var_mode) {
-                            break;
-                        }
-                        dent = dent.was;
-                    }
-                    dent.open = false;
-                }
-                var_mode = null;
-            }
-            if (next_token.id === '?' && indent.mode === ':' &&
-                    token.line !== next_token.line) {
-                indent.at -= option.indent;
-            }
-            if (indent.open) {
-
-// If the token is an edge.
-
-                if (next_token.edge) {
-                    if (next_token.edge === 'label') {
-                        expected_at(1);
-                    } else if (next_token.edge === 'case') {
-                        expected_at(indent.at - option.indent);
-                    } else if (indent.mode !== 'array' || next_token.line !== token.line) {
-                        expected_at(indent.at);
-                    }
-
-// If the token is not an edge, but is the first token on the line.
-
-                } else if (next_token.line !== token.line) {
-                    if (next_token.from < indent.at + (indent.mode ===
-                            'expression' ? 0 : option.indent)) {
-                        expected_at(indent.at + option.indent);
-                    }
-                    indent.wrap = true;
-                }
-            } else if (next_token.line !== token.line) {
-                if (next_token.edge) {
-                    expected_at(indent.at);
-                } else {
-                    indent.wrap = true;
-                    if (indent.mode === 'statement' || indent.mode === 'var') {
-                        expected_at(indent.at + option.indent);
-                    } else if (next_token.from < indent.at + (indent.mode ===
-                            'expression' ? 0 : option.indent)) {
-                        expected_at(indent.at + option.indent);
-                    }
-                }
-            }
-        }
-
-        switch (token.id) {
-        case '(number)':
-            if (next_token.id === '.') {
-                warn('trailing_decimal_a');
-            }
-            break;
-        case '-':
-            if (next_token.id === '-' || next_token.id === '--') {
-                warn('confusing_a');
-            }
-            break;
-        case '+':
-            if (next_token.id === '+' || next_token.id === '++') {
-                warn('confusing_a');
-            }
-            break;
-        }
-        if (token.id === '(string)' || token.identifier) {
-            anonname = token.string;
-        }
-
-        if (id && next_token.id !== id) {
-            if (match) {
-                warn('expected_a_b_from_c_d', next_token, id,
-                    match.id, match.line, artifact());
-            } else if (!next_token.identifier || next_token.string !== id) {
-                warn('expected_a_b', next_token, id, artifact());
-            }
-        }
-        prev_token = token;
-        token = next_token;
-        next_token = lookahead.shift() || lex.token();
-    }
-
-
-    function advance_identifier(string) {
-        if (next_token.identifier && next_token.string === string) {
-            advance();
-        } else {
-            warn('expected_a_b', next_token, string, artifact());
-        }
-    }
-
-
-    function do_safe() {
-        if (option.adsafe) {
-            option.safe = true;
-        }
-        if (option.safe) {
-            option.browser     =
-                option['continue'] =
-                option.css     =
-                option.debug   =
-                option.devel   =
-                option.evil    =
-                option.forin   =
-                option.newcap  =
-                option.nomen   =
-                option.on      =
-                option.rhino   =
-                option.sloppy  =
-                option.sub     =
-                option.undef   =
-                option.widget  =
-                option.windows = false;
-
-
-            delete predefined.Array;
-            delete predefined.Date;
-            delete predefined.Function;
-            delete predefined.Object;
-            delete predefined['eval'];
-
-            add_to_predefined({
-                ADSAFE: false,
-                lib: false
-            });
-        }
-    }
-
-
-    function do_globals() {
-        var name, writeable;
-        for (;;) {
-            if (next_token.id !== '(string)' && !next_token.identifier) {
-                return;
-            }
-            name = next_token.string;
-            advance();
-            writeable = false;
-            if (next_token.id === ':') {
-                advance(':');
-                switch (next_token.id) {
-                case 'true':
-                    writeable = predefined[name] !== false;
-                    advance('true');
-                    break;
-                case 'false':
-                    advance('false');
-                    break;
-                default:
-                    stop('unexpected_a');
-                }
-            }
-            predefined[name] = writeable;
-            if (next_token.id !== ',') {
-                return;
-            }
-            advance(',');
-        }
-    }
-
-
-    function do_jslint() {
-        var name, value;
-        while (next_token.id === '(string)' || next_token.identifier) {
-            name = next_token.string;
-            advance();
-            if (next_token.id !== ':') {
-                stop('expected_a_b', next_token, ':', artifact());
-            }
-            advance(':');
-            if (typeof jslint_limit[name] === 'number') {
-                value = next_token.number;
-                if (value > jslint_limit[name] || value <= 0 ||
-                        Math.floor(value) !== value) {
-                    stop('expected_small_a');
-                }
-                option[name] = value;
-            } else {
-                if (next_token.id === 'true') {
-                    option[name] = true;
-                } else if (next_token.id === 'false') {
-                    option[name] = false;
-                } else {
-                    stop('unexpected_a');
-                }
-                switch (name) {
-                case 'adsafe':
-                    option.safe = true;
-                    do_safe();
-                    break;
-                case 'safe':
-                    do_safe();
-                    break;
-                }
-            }
-            advance();
-            if (next_token.id === ',') {
-                advance(',');
-            }
-        }
-        assume();
-    }
-
-
-    function do_properties() {
-        var name, type;
-        option.properties = true;
-        if (!funct['(old_property_type)']) {
-            funct['(old_property_type)'] = property_type;
-            property_type = Object.create(property_type);
-        }
-        for (;;) {
-            if (next_token.id !== '(string)' && !next_token.identifier) {
-                return;
-            }
-            name = next_token.string;
-            type = '';
-            advance();
-            if (next_token.id === ':') {
-                advance(':');
-                if (next_token.id === 'function') {
-                    advance('function');
-                    if (is_type[next_token.string] === true) {
-                        type = 'function ' + next_token.string;
-                        advance();
-                    } else {
-                        type = 'function';
-                    }
-                } else {
-                    type = next_token.string;
-                    if (is_type[type] !== true) {
-                        warn('expected_type_a', next_token);
-                        type = '';
-                    }
-                    advance();
-                }
-            }
-            property_type[name] = type;
-            if (next_token.id !== ',') {
-                return;
-            }
-            advance(',');
-        }
-    }
-
-
-    directive = function directive() {
-        var command = this.id,
-            old_comments_off = comments_off,
-            old_indent = indent;
-        comments_off = true;
-        indent = null;
-        if (next_token.line === token.line && next_token.from === token.thru) {
-            warn('missing_space_a_b', next_token, artifact(token), artifact());
-        }
-        if (lookahead.length > 0) {
-            warn('unexpected_a', this);
-        }
-        switch (command) {
-        case '/*properties':
-        case '/*property':
-        case '/*members':
-        case '/*member':
-            do_properties();
-            break;
-        case '/*jslint':
-            if (option.safe) {
-                warn('adsafe_a', this);
-            }
-            do_jslint();
-            break;
-        case '/*globals':
-        case '/*global':
-            if (option.safe) {
-                warn('adsafe_a', this);
-            }
-            do_globals();
-            break;
-        default:
-            stop('unexpected_a', this);
-        }
-        comments_off = old_comments_off;
-        advance('*/');
-        indent = old_indent;
-    };
-
-
-// Indentation intention
-
-    function edge(mode) {
-        next_token.edge = indent ? indent.open && (mode || 'edge') : '';
-    }
-
-
-    function step_in(mode) {
-        var open;
-        if (typeof mode === 'number') {
-            indent = {
-                at: +mode,
-                open: true,
-                was: indent
-            };
-        } else if (!indent) {
-            indent = {
-                at: 1,
-                mode: 'statement',
-                open: true
-            };
-        } else {
-            open = mode === 'var' ||
-                (next_token.line !== token.line && mode !== 'statement');
-            indent = {
-                at: (open || mode === 'control'
-                    ? indent.at + option.indent
-                    : indent.at) + (indent.wrap ? option.indent : 0),
-                mode: mode,
-                open: open,
-                was: indent
-            };
-            if (mode === 'var' && open) {
-                var_mode = indent;
-            }
-        }
-    }
-
-    function step_out(id, symbol) {
-        if (id) {
-            if (indent && indent.open) {
-                indent.at -= option.indent;
-                edge();
-            }
-            advance(id, symbol);
-        }
-        if (indent) {
-            indent = indent.was;
-        }
-    }
-
-// Functions for conformance of whitespace.
-
-    function one_space(left, right) {
-        left = left || token;
-        right = right || next_token;
-        if (right.id !== '(end)' && !option.white &&
-                (token.line !== right.line ||
-                token.thru + 1 !== right.from)) {
-            warn('expected_space_a_b', right, artifact(token), artifact(right));
-        }
-    }
-
-    function one_space_only(left, right) {
-        left = left || token;
-        right = right || next_token;
-        if (right.id !== '(end)' && (left.line !== right.line ||
-                (!option.white && left.thru + 1 !== right.from))) {
-            warn('expected_space_a_b', right, artifact(left), artifact(right));
-        }
-    }
-
-    function no_space(left, right) {
-        left = left || token;
-        right = right || next_token;
-        if ((!option.white || xmode === 'styleproperty' || xmode === 'style') &&
-                left.thru !== right.from && left.line === right.line) {
-            warn('unexpected_space_a_b', right, artifact(left), artifact(right));
-        }
-    }
-
-    function no_space_only(left, right) {
-        left = left || token;
-        right = right || next_token;
-        if (right.id !== '(end)' && (left.line !== right.line ||
-                (!option.white && left.thru !== right.from))) {
-            warn('unexpected_space_a_b', right, artifact(left), artifact(right));
-        }
-    }
-
-    function spaces(left, right) {
-        if (!option.white) {
-            left = left || token;
-            right = right || next_token;
-            if (left.thru === right.from && left.line === right.line) {
-                warn('missing_space_a_b', right, artifact(left), artifact(right));
-            }
-        }
-    }
-
-    function comma() {
-        if (next_token.id !== ',') {
-            warn_at('expected_a_b', token.line, token.thru, ',', artifact());
-        } else {
-            if (!option.white) {
-                no_space_only();
-            }
-            advance(',');
-            spaces();
-        }
-    }
-
-
-    function semicolon() {
-        if (next_token.id !== ';') {
-            warn_at('expected_a_b', token.line, token.thru, ';', artifact());
-        } else {
-            if (!option.white) {
-                no_space_only();
-            }
-            advance(';');
-            if (semicolon_coda[next_token.id] !== true) {
-                spaces();
-            }
-        }
-    }
-
-    function use_strict() {
-        if (next_token.string === 'use strict') {
-            if (strict_mode) {
-                warn('unnecessary_use');
-            }
-            edge();
-            advance();
-            semicolon();
-            strict_mode = true;
-            option.newcap = false;
-            option.undef = false;
-            return true;
-        } else {
-            return false;
-        }
-    }
-
-
-    function are_similar(a, b) {
-        if (a === b) {
-            return true;
-        }
-        if (Array.isArray(a)) {
-            if (Array.isArray(b) && a.length === b.length) {
-                var i;
-                for (i = 0; i < a.length; i += 1) {
-                    if (!are_similar(a[i], b[i])) {
-                        return false;
-                    }
-                }
-                return true;
-            }
-            return false;
-        }
-        if (Array.isArray(b)) {
-            return false;
-        }
-        if (a.id === '(number)' && b.id === '(number)') {
-            return a.number === b.number;
-        }
-        if (a.arity === b.arity && a.string === b.string) {
-            switch (a.arity) {
-            case 'prefix':
-            case 'suffix':
-            case undefined:
-                return a.id === b.id && are_similar(a.first, b.first);
-            case 'infix':
-                return are_similar(a.first, b.first) &&
-                    are_similar(a.second, b.second);
-            case 'ternary':
-                return are_similar(a.first, b.first) &&
-                    are_similar(a.second, b.second) &&
-                    are_similar(a.third, b.third);
-            case 'function':
-            case 'regexp':
-                return false;
-            default:
-                return true;
-            }
-        } else {
-            if (a.id === '.' && b.id === '[' && b.arity === 'infix') {
-                return a.second.string === b.second.string && b.second.id === '(string)';
-            } else if (a.id === '[' && a.arity === 'infix' && b.id === '.') {
-                return a.second.string === b.second.string && a.second.id === '(string)';
-            }
-        }
-        return false;
-    }
-
-
-// This is the heart of JSLINT, the Pratt parser. In addition to parsing, it
-// is looking for ad hoc lint patterns. We add .fud to Pratt's model, which is
-// like .nud except that it is only used on the first token of a statement.
-// Having .fud makes it much easier to define statement-oriented languages like
-// JavaScript. I retained Pratt's nomenclature.
-
-// .nud     Null denotation
-// .fud     First null denotation
-// .led     Left denotation
-//  lbp     Left binding power
-//  rbp     Right binding power
-
-// They are elements of the parsing method called Top Down Operator Precedence.
-
-    function expression(rbp, initial) {
-
-// rbp is the right binding power.
-// initial indicates that this is the first expression of a statement.
-
-        var left;
-        if (next_token.id === '(end)') {
-            stop('unexpected_a', token, next_token.id);
-        }
-        advance();
-        if (option.safe && scope[token.string] &&
-                scope[token.string] === global_scope[token.string] &&
-                (next_token.id !== '(' && next_token.id !== '.')) {
-            warn('adsafe_a', token);
-        }
-        if (initial) {
-            anonname = 'anonymous';
-            funct['(verb)'] = token.string;
-        }
-        if (initial === true && token.fud) {
-            left = token.fud();
-        } else {
-            if (token.nud) {
-                left = token.nud();
-            } else {
-                if (next_token.id === '(number)' && token.id === '.') {
-                    warn('leading_decimal_a', token, artifact());
-                    advance();
-                    return token;
-                } else {
-                    stop('expected_identifier_a', token, token.id);
-                }
-            }
-            while (rbp < next_token.lbp) {
-                advance();
-                if (token.led) {
-                    left = token.led(left);
-                } else {
-                    stop('expected_operator_a', token, token.id);
-                }
-            }
-        }
-        return left;
-    }
-
-
-// Functional constructors for making the symbols that will be inherited by
-// tokens.
-
-    function symbol(s, p) {
-        var x = syntax[s];
-        if (!x || typeof x !== 'object') {
-            syntax[s] = x = {
-                id: s,
-                lbp: p || 0,
-                string: s
-            };
-        }
-        return x;
-    }
-
-    function postscript(x) {
-        x.postscript = true;
-        return x;
-    }
-
-    function ultimate(s) {
-        var x = symbol(s, 0);
-        x.from = 1;
-        x.thru = 1;
-        x.line = 0;
-        x.edge = 'edge';
-        s.string = s;
-        return postscript(x);
-    }
-
-
-    function stmt(s, f) {
-        var x = symbol(s);
-        x.identifier = x.reserved = true;
-        x.fud = f;
-        return x;
-    }
-
-    function labeled_stmt(s, f) {
-        var x = stmt(s, f);
-        x.labeled = true;
-    }
-
-    function disrupt_stmt(s, f) {
-        var x = stmt(s, f);
-        x.disrupt = true;
-    }
-
-
-    function reserve_name(x) {
-        var c = x.id.charAt(0);
-        if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {
-            x.identifier = x.reserved = true;
-        }
-        return x;
-    }
-
-
-    function prefix(s, f, type) {
-        var x = symbol(s, 150);
-        reserve_name(x);
-        x.nud = typeof f === 'function'
-            ? f
-            : function () {
-                if (s === 'typeof') {
-                    one_space();
-                } else {
-                    no_space_only();
-                }
-                this.first = expression(150);
-                this.arity = 'prefix';
-                if (this.id === '++' || this.id === '--') {
-                    if (!option.plusplus) {
-                        warn('unexpected_a', this);
-                    } else if ((!this.first.identifier || this.first.reserved) &&
-                            this.first.id !== '.' && this.first.id !== '[') {
-                        warn('bad_operand', this);
-                    }
-                }
-                this.type = type;
-                return this;
-            };
-        return x;
-    }
-
-
-    function type(s, t, nud) {
-        var x = symbol(s);
-        x.arity = x.type = t;
-        if (nud) {
-            x.nud = nud;
-        }
-        return x;
-    }
-
-
-    function reserve(s, f) {
-        var x = symbol(s);
-        x.identifier = x.reserved = true;
-        if (typeof f === 'function') {
-            x.nud = f;
-        }
-        return x;
-    }
-
-
-    function constant(name, type) {
-        var x = reserve(name);
-        x.type = type;
-        x.string = name;
-        x.nud = return_this;
-        return x;
-    }
-
-
-    function reservevar(s, v) {
-        return reserve(s, function () {
-            if (typeof v === 'function') {
-                v(this);
-            }
-            return this;
-        });
-    }
-
-
-    function infix(s, p, f, type, w) {
-        var x = symbol(s, p);
-        reserve_name(x);
-        x.led = function (left) {
-            this.arity = 'infix';
-            if (!w) {
-                spaces(prev_token, token);
-                spaces();
-            }
-            if (!option.bitwise && this.bitwise) {
-                warn('unexpected_a', this);
-            }
-            if (typeof f === 'function') {
-                return f(left, this);
-            } else {
-                this.first = left;
-                this.second = expression(p);
-                return this;
-            }
-        };
-        if (type) {
-            x.type = type;
-        }
-        return x;
-    }
-
-    function expected_relation(node, message) {
-        if (node.assign) {
-            warn(message || bundle.conditional_assignment, node);
-        }
-        return node;
-    }
-
-    function expected_condition(node, message) {
-        switch (node.id) {
-        case '[':
-        case '-':
-            if (node.arity !== 'infix') {
-                warn(message || bundle.weird_condition, node);
-            }
-            break;
-        case 'false':
-        case 'function':
-        case 'Infinity':
-        case 'NaN':
-        case 'null':
-        case 'true':
-        case 'undefined':
-        case 'void':
-        case '(number)':
-        case '(regexp)':
-        case '(string)':
-        case '{':
-            warn(message || bundle.weird_condition, node);
-            break;
-        case '(':
-            if (node.first.id === '.' && numbery[node.first.second.string] === true) {
-                warn(message || bundle.weird_condition, node);
-            }
-            break;
-        }
-        return node;
-    }
-
-    function check_relation(node) {
-        switch (node.arity) {
-        case 'prefix':
-            switch (node.id) {
-            case '{':
-            case '[':
-                warn('unexpected_a', node);
-                break;
-            case '!':
-                warn('confusing_a', node);
-                break;
-            }
-            break;
-        case 'function':
-        case 'regexp':
-            warn('unexpected_a', node);
-            break;
-        default:
-            if (node.id  === 'NaN') {
-                warn('isnan', node);
-            }
-        }
-        return node;
-    }
-
-
-    function relation(s, eqeq) {
-        return infix(s, 100, function (left, that) {
-            check_relation(left);
-            if (eqeq && !option.eqeq) {
-                warn('expected_a_b', that, eqeq, that.id);
-            }
-            var right = expression(100);
-            if (are_similar(left, right) ||
-                    ((left.id === '(string)' || left.id === '(number)') &&
-                    (right.id === '(string)' || right.id === '(number)'))) {
-                warn('weird_relation', that);
-            }
-            that.first = left;
-            that.second = check_relation(right);
-            return that;
-        }, 'boolean');
-    }
-
-
-    function assignop(s, op) {
-        var x = infix(s, 20, function (left, that) {
-            var l;
-            that.first = left;
-            if (left.identifier) {
-                if (scope[left.string]) {
-                    if (scope[left.string].writeable === false) {
-                        warn('read_only', left);
-                    }
-                } else {
-                    stop('read_only');
-                }
-            } else if (option.safe) {
-                l = left;
-                do {
-                    if (typeof predefined[l.string] === 'boolean') {
-                        warn('adsafe_a', l);
-                    }
-                    l = l.first;
-                } while (l);
-            }
-            if (left === syntax['function']) {
-                warn('identifier_function', token);
-            }
-            if (left.id === '.' || left.id === '[') {
-                if (!left.first || left.first.string === 'arguments') {
-                    warn('bad_assignment', that);
-                }
-            } else if (left.identifier && !left.reserved) {
-                if (funct[left.string] === 'exception') {
-                    warn('assign_exception', left);
-                }
-            }
-            that.second = expression(19);
-            if (that.id === '=' && are_similar(that.first, that.second)) {
-                warn('weird_assignment', that);
-            }
-            return that;
-        });
-        x.assign = true;
-        if (op) {
-            if (syntax[op].type) {
-                x.type = syntax[op].type;
-            }
-            if (syntax[op].bitwise) {
-                x.bitwise = true;
-            }
-        }
-        return x;
-    }
-
-
-    function bitwise(s, p) {
-        var x = infix(s, p, 'number');
-        x.bitwise = true;
-        return x;
-    }
-
-
-    function suffix(s) {
-        var x = symbol(s, 150);
-        x.led = function (left) {
-            no_space_only(prev_token, token);
-            if (!option.plusplus) {
-                warn('unexpected_a', this);
-            } else if ((!left.identifier || left.reserved) &&
-                    left.id !== '.' && left.id !== '[') {
-                warn('bad_operand', this);
-            }
-            this.first = left;
-            this.arity = 'suffix';
-            return this;
-        };
-        return x;
-    }
-
-
-    function optional_identifier() {
-        if (next_token.identifier) {
-            advance();
-            if (option.safe && banned[token.string]) {
-                warn('adsafe_a', token);
-            } else if (token.reserved && !option.es5) {
-                warn('expected_identifier_a_reserved', token);
-            }
-            return token.string;
-        }
-    }
-
-
-    function identifier() {
-        var i = optional_identifier();
-        if (!i) {
-            stop(token.id === 'function' && next_token.id === '('
-                ? 'name_function'
-                : 'expected_identifier_a');
-        }
-        return i;
-    }
-
-
-    function statement() {
-
-        var label, old_scope = scope, the_statement;
-
-// We don't like the empty statement.
-
-        if (next_token.id === ';') {
-            warn('unexpected_a');
-            semicolon();
-            return;
-        }
-
-// Is this a labeled statement?
-
-        if (next_token.identifier && !next_token.reserved && peek().id === ':') {
-            edge('label');
-            label = next_token;
-            advance();
-            advance(':');
-            scope = Object.create(old_scope);
-            add_label(label, 'label');
-            if (next_token.labeled !== true) {
-                warn('label_a_b', next_token, label.string, artifact());
-            } else if (jx.test(label.string + ':')) {
-                warn('url', label);
-            } else if (funct === global_funct) {
-                stop('unexpected_a', token);
-            }
-            next_token.label = label;
-        }
-
-// Parse the statement.
-
-        edge();
-        step_in('statement');
-        the_statement = expression(0, true);
-        if (the_statement) {
-
-// Look for the final semicolon.
-
-            if (the_statement.arity === 'statement') {
-                if (the_statement.id === 'switch' ||
-                        (the_statement.block && the_statement.id !== 'do')) {
-                    spaces();
-                } else {
-                    semicolon();
-                }
-            } else {
-
-// If this is an expression statement, determine if it is acceptable.
-// We do not like
-//      new Blah();
-// statments. If it is to be used at all, new should only be used to make
-// objects, not side effects. The expression statements we do like do
-// assignment or invocation or delete.
-
-                if (the_statement.id === '(') {
-                    if (the_statement.first.id === 'new') {
-                        warn('bad_new');
-                    }
-                } else if (!the_statement.assign &&
-                        the_statement.id !== 'delete' &&
-                        the_statement.id !== '++' &&
-                        the_statement.id !== '--') {
-                    warn('assignment_function_expression', token);
-                }
-                semicolon();
-            }
-        }
-        step_out();
-        scope = old_scope;
-        return the_statement;
-    }
-
-
-    function statements() {
-        var array = [], disruptor, the_statement;
-
-// A disrupt statement may not be followed by any other statement.
-// If the last statement is disrupt, then the sequence is disrupt.
-
-        while (next_token.postscript !== true) {
-            if (next_token.id === ';') {
-                warn('unexpected_a', next_token);
-                semicolon();
-            } else {
-                if (next_token.string === 'use strict') {
-                    if ((!node_js && xmode !== 'script') || funct !== global_funct || array.length > 0) {
-                        warn('function_strict');
-                    }
-                    use_strict();
-                }
-                if (disruptor) {
-                    warn('unreachable_a_b', next_token, next_token.string,
-                        disruptor.string);
-                    disruptor = null;
-                }
-                the_statement = statement();
-                if (the_statement) {
-                    array.push(the_statement);
-                    if (the_statement.disrupt) {
-                        disruptor = the_statement;
-                        array.disrupt = true;
-                    }
-                }
-            }
-        }
-        return array;
-    }
-
-
-    function block(ordinary) {
-
-// array block is array sequence of statements wrapped in braces.
-// ordinary is false for function bodies and try blocks.
-// ordinary is true for if statements, while, etc.
-
-        var array,
-            curly = next_token,
-            old_in_block = in_block,
-            old_scope = scope,
-            old_strict_mode = strict_mode;
-
-        in_block = ordinary;
-        scope = Object.create(scope);
-        spaces();
-        if (next_token.id === '{') {
-            advance('{');
-            step_in();
-            if (!ordinary && !use_strict() && !old_strict_mode &&
-                    !option.sloppy && funct['(context)'] === global_funct) {
-                warn('missing_use_strict');
-            }
-            array = statements();
-            strict_mode = old_strict_mode;
-            step_out('}', curly);
-        } else if (!ordinary) {
-            stop('expected_a_b', next_token, '{', artifact());
-        } else {
-            warn('expected_a_b', next_token, '{', artifact());
-            array = [statement()];
-            array.disrupt = array[0].disrupt;
-        }
-        funct['(verb)'] = null;
-        scope = old_scope;
-        in_block = old_in_block;
-        if (ordinary && array.length === 0) {
-            warn('empty_block');
-        }
-        return array;
-    }
-
-
-    function tally_property(name) {
-        if (option.properties && typeof property_type[name] !== 'string') {
-            warn('unexpected_property_a', token, name);
-        }
-        if (typeof member[name] === 'number') {
-            member[name] += 1;
-        } else {
-            member[name] = 1;
-        }
-    }
-
-
-// ECMAScript parser
-
-    syntax['(identifier)'] = {
-        id: '(identifier)',
-        lbp: 0,
-        identifier: true,
-        nud: function () {
-            var name = this.string,
-                variable = scope[name],
-                site,
-                writeable;
-
-// If the variable is not in scope, then we may have an undeclared variable.
-// Check the predefined list. If it was predefined, create the global
-// variable.
-
-            if (typeof variable !== 'object') {
-                writeable = predefined[name];
-                if (typeof writeable === 'boolean') {
-                    global_scope[name] = variable = {
-                        string:    name,
-                        writeable: writeable,
-                        funct:     global_funct
-                    };
-                    global_funct[name] = 'var';
-
-// But if the variable is not in scope, and is not predefined, and if we are not
-// in the global scope, then we have an undefined variable error.
-
-                } else {
-                    if (!option.undef) {
-                        warn('used_before_a', token);
-                    }
-                    scope[name] = variable = {
-                        string: name,
-                        writeable: true,
-                        funct: funct
-                    };
-                    funct[name] = 'undef';
-                }
-
-            }
-            site = variable.funct;
-
-// The name is in scope and defined in the current function.
-
-            if (funct === site) {
-
-//      Change 'unused' to 'var', and reject labels.
-
-                switch (funct[name]) {
-                case 'becoming':
-                    warn('unexpected_a', token);
-                    funct[name] = 'var';
-                    break;
-                case 'unused':
-                    funct[name] = 'var';
-                    break;
-                case 'unparam':
-                    funct[name] = 'parameter';
-                    break;
-                case 'unction':
-                    funct[name] = 'function';
-                    break;
-                case 'label':
-                    warn('a_label', token, name);
-                    break;
-                }
-
-// If the name is already defined in the current
-// function, but not as outer, then there is a scope error.
-
-            } else {
-                switch (funct[name]) {
-                case 'closure':
-                case 'function':
-                case 'var':
-                case 'unused':
-                    warn('a_scope', token, name);
-                    break;
-                case 'label':
-                    warn('a_label', token, name);
-                    break;
-                case 'outer':
-                case 'global':
-                    break;
-                default:
-
-// If the name is defined in an outer function, make an outer entry, and if
-// it was unused, make it var.
-
-                    switch (site[name]) {
-                    case 'becoming':
-                    case 'closure':
-                    case 'function':
-                    case 'parameter':
-                    case 'unction':
-                    case 'unused':
-                    case 'var':
-                        site[name] = 'closure';
-                        funct[name] = site === global_funct
-                            ? 'global'
-                            : 'outer';
-                        break;
-                    case 'unparam':
-                        site[name] = 'parameter';
-                        funct[name] = 'outer';
-                        break;
-                    case 'undef':
-                        funct[name] = 'undef';
-                        break;
-                    case 'label':
-                        warn('a_label', token, name);
-                        break;
-                    }
-                }
-            }
-            return this;
-        },
-        led: function () {
-            stop('expected_operator_a');
-        }
-    };
-
-// Build the syntax table by declaring the syntactic elements.
-
-    type('(array)', 'array');
-    type('(color)', 'color');
-    type('(function)', 'function');
-    type('(number)', 'number', return_this);
-    type('(object)', 'object');
-    type('(string)', 'string', return_this);
-    type('(boolean)', 'boolean', return_this);
-    type('(range)', 'range');
-    type('(regexp)', 'regexp', return_this);
-
-    ultimate('(begin)');
-    ultimate('(end)');
-    ultimate('(error)');
-    postscript(symbol('</'));
-    symbol('<!');
-    symbol('<!--');
-    symbol('-->');
-    postscript(symbol('}'));
-    symbol(')');
-    symbol(']');
-    postscript(symbol('"'));
-    postscript(symbol('\''));
-    symbol(';');
-    symbol(':');
-    symbol(',');
-    symbol('#');
-    symbol('@');
-    symbol('*/');
-    postscript(reserve('case'));
-    reserve('catch');
-    postscript(reserve('default'));
-    reserve('else');
-    reserve('finally');
-
-    reservevar('arguments', function (x) {
-        if (strict_mode && funct === global_funct) {
-            warn('strict', x);
-        } else if (option.safe) {
-            warn('adsafe_a', x);
-        }
-    });
-    reservevar('eval', function (x) {
-        if (option.safe) {
-            warn('adsafe_a', x);
-        }
-    });
-    constant('false', 'boolean');
-    constant('Infinity', 'number');
-    constant('NaN', 'number');
-    constant('null', '');
-    reservevar('this', function (x) {
-        if (option.safe) {
-            warn('adsafe_a', x);
-        } else if (strict_mode && funct['(token)'].arity === 'statement' &&
-                funct['(name)'].charAt(0) > 'Z') {
-            warn('strict', x);
-        }
-    });
-    constant('true', 'boolean');
-    constant('undefined', '');
-
-    infix('?', 30, function (left, that) {
-        step_in('?');
-        that.first = expected_condition(expected_relation(left));
-        that.second = expression(0);
-        spaces();
-        step_out();
-        var colon = next_token;
-        advance(':');
-        step_in(':');
-        spaces();
-        that.third = expression(10);
-        that.arity = 'ternary';
-        if (are_similar(that.second, that.third)) {
-            warn('weird_ternary', colon);
-        } else if (are_similar(that.first, that.second)) {
-            warn('use_or', that);
-        }
-        step_out();
-        return that;
-    });
-
-    infix('||', 40, function (left, that) {
-        function paren_check(that) {
-            if (that.id === '&&' && !that.paren) {
-                warn('and', that);
-            }
-            return that;
-        }
-
-        that.first = paren_check(expected_condition(expected_relation(left)));
-        that.second = paren_check(expected_relation(expression(40)));
-        if (are_similar(that.first, that.second)) {
-            warn('weird_condition', that);
-        }
-        return that;
-    });
-
-    infix('&&', 50, function (left, that) {
-        that.first = expected_condition(expected_relation(left));
-        that.second = expected_relation(expression(50));
-        if (are_similar(that.first, that.second)) {
-            warn('weird_condition', that);
-        }
-        return that;
-    });
-
-    prefix('void', function () {
-        this.first = expression(0);
-        this.arity = 'prefix';
-        if (option.es5) {
-            warn('expected_a_b', this, 'undefined', 'void');
-        } else if (this.first.number !== 0) {
-            warn('expected_a_b', this.first, '0', artifact(this.first));
-        }
-        this.type = 'undefined';
-        return this;
-    });
-
-    bitwise('|', 70);
-    bitwise('^', 80);
-    bitwise('&', 90);
-
-    relation('==', '===');
-    relation('===');
-    relation('!=', '!==');
-    relation('!==');
-    relation('<');
-    relation('>');
-    relation('<=');
-    relation('>=');
-
-    bitwise('<<', 120);
-    bitwise('>>', 120);
-    bitwise('>>>', 120);
-
-    infix('in', 120, function (left, that) {
-        warn('infix_in', that);
-        that.left = left;
-        that.right = expression(130);
-        return that;
-    }, 'boolean');
-    infix('instanceof', 120, null, 'boolean');
-    infix('+', 130, function (left, that) {
-        if (left.id === '(number)') {
-            if (left.number === 0) {
-                warn('unexpected_a', left, '0');
-            }
-        } else if (left.id === '(string)') {
-            if (left.string === '') {
-                warn('expected_a_b', left, 'String', '\'\'');
-            }
-        }
-        var right = expression(130);
-        if (right.id === '(number)') {
-            if (right.number === 0) {
-                warn('unexpected_a', right, '0');
-            }
-        } else if (right.id === '(string)') {
-            if (right.string === '') {
-                warn('expected_a_b', right, 'String', '\'\'');
-            }
-        }
-        if (left.id === right.id) {
-            if (left.id === '(string)' || left.id === '(number)') {
-                if (left.id === '(string)') {
-                    left.string += right.string;
-                    if (jx.test(left.string)) {
-                        warn('url', left);
-                    }
-                } else {
-                    left.number += right.number;
-                }
-                left.thru = right.thru;
-                return left;
-            }
-        }
-        that.first = left;
-        that.second = right;
-        return that;
-    });
-    prefix('+', 'num');
-    prefix('+++', function () {
-        warn('confusing_a', token);
-        this.first = expression(150);
-        this.arity = 'prefix';
-        return this;
-    });
-    infix('+++', 130, function (left) {
-        warn('confusing_a', token);
-        this.first = left;
-        this.second = expression(130);
-        return this;
-    });
-    infix('-', 130, function (left, that) {
-        if ((left.id === '(number)' && left.number === 0) || left.id === '(string)') {
-            warn('unexpected_a', left);
-        }
-        var right = expression(130);
-        if ((right.id === '(number)' && right.number === 0) || right.id === '(string)') {
-            warn('unexpected_a', left);
-        }
-        if (left.id === right.id && left.id === '(number)') {
-            left.number -= right.number;
-            left.thru = right.thru;
-            return left;
-        }
-        that.first = left;
-        that.second = right;
-        return that;
-    }, 'number');
-    prefix('-');
-    prefix('---', function () {
-        warn('confusing_a', token);
-        this.first = expression(150);
-        this.arity = 'prefix';
-        return this;
-    });
-    infix('---', 130, function (left) {
-        warn('confusing_a', token);
-        this.first = left;
-        this.second = expression(130);
-        return this;
-    });
-    infix('*', 140, function (left, that) {
-        if ((left.id === '(number)' && (left.number === 0 || left.number === 1)) || left.id === '(string)') {
-            warn('unexpected_a', left);
-        }
-        var right = expression(140);
-        if ((right.id === '(number)' && (right.number === 0 || right.number === 1)) || right.id === '(string)') {
-            warn('unexpected_a', right);
-        }
-        if (left.id === right.id && left.id === '(number)') {
-            left.number *= right.number;
-            left.thru = right.thru;
-            return left;
-        }
-        that.first = left;
-        that.second = right;
-        return that;
-    }, 'number');
-    infix('/', 140, function (left, that) {
-        if ((left.id === '(number)' && left.number === 0) || left.id === '(string)') {
-            warn('unexpected_a', left);
-        }
-        var right = expression(140);
-        if ((right.id === '(number)' && (right.number === 0 || right.number === 1)) || right.id === '(string)') {
-            warn('unexpected_a', right);
-        }
-        if (left.id === right.id && left.id === '(number)') {
-            left.number /= right.number;
-            left.thru = right.thru;
-            return left;
-        }
-        that.first = left;
-        that.second = right;
-        return that;
-    }, 'number');
-    infix('%', 140, function (left, that) {
-        if ((left.id === '(number)' && (left.number === 0 || left.number === 1)) || left.id === '(string)') {
-            warn('unexpected_a', left);
-        }
-        var right = expression(140);
-        if ((right.id === '(number)' && right.number === 0) || right.id === '(string)') {
-            warn('unexpected_a', right);
-        }
-        if (left.id === right.id && left.id === '(number)') {
-            left.number %= right.number;
-            left.thru = right.thru;
-            return left;
-        }
-        that.first = left;
-        that.second = right;
-        return that;
-    }, 'number');
-
-    suffix('++');
-    prefix('++');
-
-    suffix('--');
-    prefix('--');
-    prefix('delete', function () {
-        one_space();
-        var p = expression(0);
-        if (!p || (p.id !== '.' && p.id !== '[')) {
-            warn('deleted');
-        }
-        this.first = p;
-        return this;
-    });
-
-
-    prefix('~', function () {
-        no_space_only();
-        if (!option.bitwise) {
-            warn('unexpected_a', this);
-        }
-        expression(150);
-        return this;
-    }, 'number');
-    prefix('!', function () {
-        no_space_only();
-        this.first = expected_condition(expression(150));
-        this.arity = 'prefix';
-        if (bang[this.first.id] === true || this.first.assign) {
-            warn('confusing_a', this);
-        }
-        return this;
-    }, 'boolean');
-    prefix('typeof', null, 'string');
-    prefix('new', function () {
-        one_space();
-        var c = expression(160), n, p, v;
-        this.first = c;
-        if (c.id !== 'function') {
-            if (c.identifier) {
-                switch (c.string) {
-                case 'Object':
-                    warn('use_object', token);
-                    break;
-                case 'Array':
-                    if (next_token.id === '(') {
-                        p = next_token;
-                        p.first = this;
-                        advance('(');
-                        if (next_token.id !== ')') {
-                            n = expression(0);
-                            p.second = [n];
-                            if (n.type !== 'number' || next_token.id === ',') {
-                                warn('use_array', p);
-                            }
-                            while (next_token.id === ',') {
-                                advance(',');
-                                p.second.push(expression(0));
-                            }
-                        } else {
-                            warn('use_array', token);
-                        }
-                        advance(')', p);
-                        return p;
-                    }
-                    warn('use_array', token);
-                    break;
-                case 'Number':
-                case 'String':
-                case 'Boolean':
-                case 'Math':
-                case 'JSON':
-                    warn('not_a_constructor', c);
-                    break;
-                case 'Function':
-                    if (!option.evil) {
-                        warn('function_eval');
-                    }
-                    break;
-                case 'Date':
-                case 'RegExp':
-                    break;
-                default:
-                    if (c.id !== 'function') {
-                        v = c.string.charAt(0);
-                        if (!option.newcap && (v < 'A' || v > 'Z')) {
-                            warn('constructor_name_a', token);
-                        }
-                    }
-                }
-            } else {
-                if (c.id !== '.' && c.id !== '[' && c.id !== '(') {
-                    warn('bad_constructor', token);
-                }
-            }
-        } else {
-            warn('weird_new', this);
-        }
-        if (next_token.id !== '(') {
-            warn('missing_a', next_token, '()');
-        }
-        return this;
-    });
-
-    infix('(', 160, function (left, that) {
-        var p;
-        if (indent && indent.mode === 'expression') {
-            no_space(prev_token, token);
-        } else {
-            no_space_only(prev_token, token);
-        }
-        if (!left.immed && left.id === 'function') {
-            warn('wrap_immediate');
-        }
-        p = [];
-        if (left.identifier) {
-            if (left.string.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)) {
-                if (left.string !== 'Number' && left.string !== 'String' &&
-                        left.string !== 'Boolean' && left.string !== 'Date') {
-                    if (left.string === 'Math' || left.string === 'JSON') {
-                        warn('not_a_function', left);
-                    } else if (left.string === 'Object') {
-                        warn('use_object', token);
-                    } else if (left.string === 'Array' || !option.newcap) {
-                        warn('missing_a', left, 'new');
-                    }
-                }
-            }
-        } else if (left.id === '.') {
-            if (option.safe && left.first.string === 'Math' &&
-                    left.second === 'random') {
-                warn('adsafe_a', left);
-            } else if (left.second.string === 'split' &&
-                    left.first.id === '(string)') {
-                warn('use_array', left.second);
-            }
-        }
-        step_in();
-        if (next_token.id !== ')') {
-            no_space();
-            for (;;) {
-                edge();
-                p.push(expression(10));
-                if (next_token.id !== ',') {
-                    break;
-                }
-                comma();
-            }
-        }
-        no_space();
-        step_out(')', that);
-        if (typeof left === 'object') {
-            if (left.string === 'parseInt' && p.length === 1) {
-                warn('radix', left);
-            }
-            if (!option.evil) {
-                if (left.string === 'eval' || left.string === 'Function' ||
-                        left.string === 'execScript') {
-                    warn('evil', left);
-                } else if (p[0] && p[0].id === '(string)' &&
-                        (left.string === 'setTimeout' ||
-                        left.string === 'setInterval')) {
-                    warn('implied_evil', left);
-                }
-            }
-            if (!left.identifier && left.id !== '.' && left.id !== '[' &&
-                    left.id !== '(' && left.id !== '&&' && left.id !== '||' &&
-                    left.id !== '?') {
-                warn('bad_invocation', left);
-            }
-        }
-        that.first = left;
-        that.second = p;
-        return that;
-    }, '', true);
-
-    prefix('(', function () {
-        step_in('expression');
-        no_space();
-        edge();
-        if (next_token.id === 'function') {
-            next_token.immed = true;
-        }
-        var value = expression(0);
-        value.paren = true;
-        no_space();
-        step_out(')', this);
-        if (value.id === 'function') {
-            if (next_token.id === '(') {
-                warn('move_invocation');
-            } else {
-                warn('bad_wrap', this);
-            }
-        }
-        return value;
-    });
-
-    infix('.', 170, function (left, that) {
-        no_space(prev_token, token);
-        no_space();
-        var name = identifier(), type;
-        if (typeof name === 'string') {
-            tally_property(name);
-        }
-        that.first = left;
-        that.second = token;
-        if (left && left.string === 'arguments' &&
-                (name === 'callee' || name === 'caller')) {
-            warn('avoid_a', left, 'arguments.' + name);
-        } else if (!option.evil && left && left.string === 'document' &&
-                (name === 'write' || name === 'writeln')) {
-            warn('write_is_wrong', left);
-        } else if (option.adsafe) {
-            if (!adsafe_top && left.string === 'ADSAFE') {
-                if (name === 'id' || name === 'lib') {
-                    warn('adsafe_a', that);
-                } else if (name === 'go') {
-                    if (xmode !== 'script') {
-                        warn('adsafe_a', that);
-                    } else if (adsafe_went || next_token.id !== '(' ||
-                            peek(0).id !== '(string)' ||
-                            peek(0).string !== adsafe_id ||
-                            peek(1).id !== ',') {
-                        stop('adsafe_a', that, 'go');
-                    }
-                    adsafe_went = true;
-                    adsafe_may = false;
-                }
-            }
-            adsafe_top = false;
-        }
-        if (!option.evil && (name === 'eval' || name === 'execScript')) {
-            warn('evil');
-        } else if (option.safe) {
-            for (;;) {
-                if (banned[name] === true) {
-                    warn('adsafe_a', token, name);
-                }
-                if (typeof predefined[left.string] !== 'boolean' ||    //// check for writeable
-                        next_token.id === '(') {
-                    break;
-                }
-                if (next_token.id !== '.') {
-                    warn('adsafe_a', that);
-                    break;
-                }
-                advance('.');
-                token.first = that;
-                token.second = name;
-                that = token;
-                name = identifier();
-                if (typeof name === 'string') {
-                    tally_property(name);
-                }
-            }
-        }
-        type = property_type[name];
-        if (type && typeof type === 'string' && type !== '*') {
-            that.type = type;
-        }
-        return that;
-    }, '', true);
-
-    infix('[', 170, function (left, that) {
-        var e, s;
-        no_space_only(prev_token, token);
-        no_space();
-        step_in();
-        edge();
-        e = expression(0);
-        switch (e.type) {
-        case 'number':
-            if (e.id === '(number)' && left.id === 'arguments') {
-                warn('use_param', left);
-            }
-            break;
-        case 'string':
-            if (e.id === '(string)') {
-                if (option.safe && (banned[e.string] ||
-                        e.string.charAt(0) === '_' || e.string.slice(-1) === '_')) {
-                    warn('adsafe_subscript_a', e);
-                } else if (!option.evil &&
-                        (e.string === 'eval' || e.string === 'execScript')) {
-                    warn('evil', e);
-                } else if (!option.sub && ix.test(e.string)) {
-                    s = syntax[e.string];
-                    if (!s || !s.reserved) {
-                        warn('subscript', e);
-                    }
-                }
-                tally_property(e.string);
-            } else if (option.safe && e.id !== 'typeof') {
-                warn('adsafe_subscript_a', e);
-            }
-            break;
-        case undefined:
-            if (option.safe) {
-                warn('adsafe_subscript_a', e);
-            }
-            break;
-        default:
-            if (option.safe) {
-                warn('adsafe_subscript_a', e);
-            }
-        }
-        step_out(']', that);
-        no_space(prev_token, token);
-        that.first = left;
-        that.second = e;
-        return that;
-    }, '', true);
-
-    prefix('[', function () {
-        this.arity = 'prefix';
-        this.first = [];
-        step_in('array');
-        while (next_token.id !== '(end)') {
-            while (next_token.id === ',') {
-                warn('unexpected_a', next_token);
-                advance(',');
-            }
-            if (next_token.id === ']') {
-                break;
-            }
-            indent.wrap = false;
-            edge();
-            this.first.push(expression(10));
-            if (next_token.id === ',') {
-                comma();
-                if (next_token.id === ']' && !option.es5) {
-                    warn('unexpected_a', token);
-                    break;
-                }
-            } else {
-                break;
-            }
-        }
-        step_out(']', this);
-        return this;
-    }, 170);
-
-
-    function property_name() {
-        var id = optional_identifier(true);
-        if (!id) {
-            if (next_token.id === '(string)') {
-                id = next_token.string;
-                if (option.safe) {
-                    if (banned[id]) {
-                        warn('adsafe_a');
-                    } else if (id.charAt(0) === '_' ||
-                            id.charAt(id.length - 1) === '_') {
-                        warn('dangling_a');
-                    }
-                }
-                advance();
-            } else if (next_token.id === '(number)') {
-                id = next_token.number.toString();
-                advance();
-            }
-        }
-        return id;
-    }
-
-
-    function function_params() {
-        var id, paren = next_token, params = [];
-        advance('(');
-        step_in();
-        no_space();
-        if (next_token.id === ')') {
-            no_space();
-            step_out(')', paren);
-            return;
-        }
-        for (;;) {
-            edge();
-            id = identifier();
-            params.push(token);
-            add_label(token, option.unparam ? 'parameter' : 'unparam');
-            if (next_token.id === ',') {
-                comma();
-            } else {
-                no_space();
-                step_out(')', paren);
-                return params;
-            }
-        }
-    }
-
-
-    function complexity(exp) {
-        var score = 0;
-        if (exp) {
-            if (Array.isArray(exp)) {
-                exp.forEach(function (tok) {
-                    score += complexity(tok);
-                });
-            } else {
-                switch (exp.arity) {
-                case 'statement':
-                    switch (exp.id) {
-                    case 'if':
-                        score += complexity(exp.first) + complexity(exp.block) +
-                            complexity(exp['else']) + 1;
-                        break;
-                    case 'while':
-                    case 'do':
-                        if (exp.first.id !== 'true' && exp.first.number !== 1) {
-                            score += 1;
-                        }
-                        score += complexity(exp.first) + complexity(exp.block);
-                        break;
-                    case 'for':
-                        if (exp.second !== undefined &&
-                                exp.second.id !== 'true' &&
-                                exp.second.number !== 1) {
-                            score += 1;
-                        }
-                        score += complexity(exp.first) + complexity(exp.second) +
-                            complexity(exp.third) + complexity(exp.block);
-                        break;
-                    case 'switch':
-                        score += complexity(exp.first) +
-                            complexity(exp.second) + exp.second.length;
-                        if (exp.second[exp.second.length - 1].id === 'default') {
-                            score -= 1;
-                        }
-                        break;
-                    case 'try':
-                        if (exp.second) {
-                            score += 1;
-                        }
-                        if (exp.third) {
-                            score += 1;
-                        }
-                        score += complexity(exp.first) + complexity(exp.second) +
-                            complexity(exp.third) + complexity(exp.block);
-                        break;
-                    }
-                    break;
-                case 'prefix':
-                    score += complexity(exp.first);
-                    break;
-                case 'case':
-                case 'infix':
-                    score += complexity(exp.first) + complexity(exp.second);
-                    if (exp.id === '&&' || exp.id === '||') {
-                        score += 1;
-                    }
-                    break;
-                case 'ternary':
-                    score += complexity(exp.first) + complexity(exp.second) + complexity(exp.third);
-                    break;
-                }
-            }
-        }
-        return score;
-    }
-
-
-    function do_function(func, name) {
-        var old_funct      = funct,
-            old_option     = option,
-            old_scope      = scope;
-        funct = {
-            '(name)'     : name || '\'' + (anonname || '').replace(nx, sanitize) + '\'',
-            '(line)'     : next_token.line,
-            '(context)'  : old_funct,
-            '(breakage)' : 0,
-            '(loopage)'  : 0,
-            '(scope)'    : scope,
-            '(token)'    : func
-        };
-        option = Object.create(old_option);
-        scope = Object.create(old_scope);
-        functions.push(funct);
-        func.name = name;
-        if (name) {
-            add_label(func, 'function', name);
-        }
-        func.writeable = false;
-        func.first = funct['(params)'] = function_params();
-        one_space();
-        func.block = block(false);
-        if (funct['(old_property_type)']) {
-            property_type = funct['(old_property_type)'];
-            delete funct['(old_property_type)'];
-        }
-        funct['(complexity)'] = complexity(func.block) + 1;
-        if (option.confusion) {
-            funct['(confusion)'] = true;
-        }
-        funct      = old_funct;
-        option     = old_option;
-        scope      = old_scope;
-    }
-
-
-    assignop('=');
-    assignop('+=', '+');
-    assignop('-=', '-');
-    assignop('*=', '*');
-    assignop('/=', '/').nud = function () {
-        stop('slash_equal');
-    };
-    assignop('%=', '%');
-    assignop('&=', '&');
-    assignop('|=', '|');
-    assignop('^=', '^');
-    assignop('<<=', '<<');
-    assignop('>>=', '>>');
-    assignop('>>>=', '>>>');
-
-
-    prefix('{', function () {
-        var get, i, j, name, p, set, seen = {};
-        this.arity = 'prefix';
-        this.first = [];
-        step_in();
-        while (next_token.id !== '}') {
-            indent.wrap = false;
-
-// JSLint recognizes the ES5 extension for get/set in object literals,
-// but requires that they be used in pairs.
-
-            edge();
-            if (next_token.string === 'get' && peek().id !== ':') {
-                if (!option.es5) {
-                    warn('es5');
-                }
-                get = next_token;
-                advance('get');
-                one_space_only();
-                name = next_token;
-                i = property_name();
-                if (!i) {
-                    stop('missing_property');
-                }
-                get.string = '';
-                do_function(get);
-                if (funct['(loopage)']) {
-                    warn('function_loop', get);
-                }
-                p = get.first;
-                if (p) {
-                    warn('parameter_a_get_b', p[0], p[0].string, i);
-                }
-                comma();
-                set = next_token;
-                spaces();
-                edge();
-                advance('set');
-                set.string = '';
-                one_space_only();
-                j = property_name();
-                if (i !== j) {
-                    stop('expected_a_b', token, i, j || next_token.string);
-                }
-                do_function(set);
-                p = set.first;
-                if (!p || p.length !== 1) {
-                    stop('parameter_set_a', set, 'value');
-                } else if (p[0].string !== 'value') {
-                    stop('expected_a_b', p[0], 'value', p[0].string);
-                }
-                name.first = [get, set];
-            } else {
-                name = next_token;
-                i = property_name();
-                if (typeof i !== 'string') {
-                    stop('missing_property');
-                }
-                advance(':');
-                spaces();
-                name.first = expression(10);
-            }
-            this.first.push(name);
-            if (seen[i] === true) {
-                warn('duplicate_a', next_token, i);
-            }
-            seen[i] = true;
-            tally_property(i);
-            if (next_token.id !== ',') {
-                break;
-            }
-            for (;;) {
-                comma();
-                if (next_token.id !== ',') {
-                    break;
-                }
-                warn('unexpected_a', next_token);
-            }
-            if (next_token.id === '}' && !option.es5) {
-                warn('unexpected_a', token);
-            }
-        }
-        step_out('}', this);
-        return this;
-    });
-
-    stmt('{', function () {
-        warn('statement_block');
-        this.arity = 'statement';
-        this.block = statements();
-        this.disrupt = this.block.disrupt;
-        advance('}', this);
-        return this;
-    });
-
-    stmt('/*global', directive);
-    stmt('/*globals', directive);
-    stmt('/*jslint', directive);
-    stmt('/*member', directive);
-    stmt('/*members', directive);
-    stmt('/*property', directive);
-    stmt('/*properties', directive);
-
-    stmt('var', function () {
-
-// JavaScript does not have block scope. It only has function scope. So,
-// declaring a variable in a block can have unexpected consequences.
-
-// var.first will contain an array, the array containing name tokens
-// and assignment tokens.
-
-        var assign, id, name;
-
-        if (funct['(vars)'] && !option.vars) {
-            warn('combine_var');
-        } else if (funct !== global_funct) {
-            funct['(vars)'] = true;
-        }
-        this.arity = 'statement';
-        this.first = [];
-        step_in('var');
-        for (;;) {
-            name = next_token;
-            id = identifier();
-            add_label(name, 'becoming');
-
-            if (next_token.id === '=') {
-                assign = next_token;
-                assign.first = name;
-                spaces();
-                advance('=');
-                spaces();
-                if (next_token.id === 'undefined') {
-                    warn('unnecessary_initialize', token, id);
-                }
-                if (peek(0).id === '=' && next_token.identifier) {
-                    stop('var_a_not');
-                }
-                assign.second = expression(0);
-                assign.arity = 'infix';
-                this.first.push(assign);
-            } else {
-                this.first.push(name);
-            }
-            if (funct[id] === 'becoming') {
-                funct[id] = 'unused';
-            }
-            if (next_token.id !== ',') {
-                break;
-            }
-            comma();
-            indent.wrap = false;
-            if (var_mode && next_token.line === token.line &&
-                    this.first.length === 1) {
-                var_mode = null;
-                indent.open = false;
-                indent.at -= option.indent;
-            }
-            spaces();
-            edge();
-        }
-        var_mode = null;
-        step_out();
-        return this;
-    });
-
-    stmt('function', function () {
-        one_space();
-        if (in_block) {
-            warn('function_block', token);
-        }
-        var name = next_token, id = identifier();
-        add_label(name, 'unction');
-        no_space();
-        this.arity = 'statement';
-        do_function(this, id);
-        if (next_token.id === '(' && next_token.line === token.line) {
-            stop('function_statement');
-        }
-        return this;
-    });
-
-    prefix('function', function () {
-        one_space();
-        var id = optional_identifier();
-        if (id) {
-            no_space();
-        } else {
-            id = '';
-        }
-        do_function(this, id);
-        if (funct['(loopage)']) {
-            warn('function_loop');
-        }
-        this.arity = 'function';
-        return this;
-    });
-
-    stmt('if', function () {
-        var paren = next_token;
-        one_space();
-        advance('(');
-        step_in('control');
-        no_space();
-        edge();
-        this.arity = 'statement';
-        this.first = expected_condition(expected_relation(expression(0)));
-        no_space();
-        step_out(')', paren);
-        one_space();
-        this.block = block(true);
-        if (next_token.id === 'else') {
-            one_space();
-            advance('else');
-            one_space();
-            this['else'] = next_token.id === 'if' || next_token.id === 'switch'
-                ? statement(true)
-                : block(true);
-            if (this['else'].disrupt && this.block.disrupt) {
-                this.disrupt = true;
-            }
-        }
-        return this;
-    });
-
-    stmt('try', function () {
-
-// try.first    The catch variable
-// try.second   The catch clause
-// try.third    The finally clause
-// try.block    The try block
-
-        var exception_variable, old_scope, paren;
-        if (option.adsafe) {
-            warn('adsafe_a', this);
-        }
-        one_space();
-        this.arity = 'statement';
-        this.block = block(false);
-        if (next_token.id === 'catch') {
-            one_space();
-            advance('catch');
-            one_space();
-            paren = next_token;
-            advance('(');
-            step_in('control');
-            no_space();
-            edge();
-            old_scope = scope;
-            scope = Object.create(old_scope);
-            exception_variable = next_token.string;
-            this.first = exception_variable;
-            if (!next_token.identifier) {
-                warn('expected_identifier_a', next_token);
-            } else {
-                add_label(next_token, 'exception');
-            }
-            advance();
-            no_space();
-            step_out(')', paren);
-            one_space();
-            this.second = block(false);
-            scope = old_scope;
-        }
-        if (next_token.id === 'finally') {
-            one_space();
-            advance('finally');
-            one_space();
-            this.third = block(false);
-        } else if (!this.second) {
-            stop('expected_a_b', next_token, 'catch', artifact());
-        }
-        return this;
-    });
-
-    labeled_stmt('while', function () {
-        one_space();
-        var paren = next_token;
-        funct['(breakage)'] += 1;
-        funct['(loopage)'] += 1;
-        advance('(');
-        step_in('control');
-        no_space();
-        edge();
-        this.arity = 'statement';
-        this.first = expected_relation(expression(0));
-        if (this.first.id !== 'true') {
-            expected_condition(this.first, bundle.unexpected_a);
-        }
-        no_space();
-        step_out(')', paren);
-        one_space();
-        this.block = block(true);
-        if (this.block.disrupt) {
-            warn('strange_loop', prev_token);
-        }
-        funct['(breakage)'] -= 1;
-        funct['(loopage)'] -= 1;
-        return this;
-    });
-
-    reserve('with');
-
-    labeled_stmt('switch', function () {
-
-// switch.first         the switch expression
-// switch.second        the array of cases. A case is 'case' or 'default' token:
-//    case.first        the array of case expressions
-//    case.second       the array of statements
-// If all of the arrays of statements are disrupt, then the switch is disrupt.
-
-        var cases = [],
-            old_in_block = in_block,
-            particular,
-            the_case = next_token,
-            unbroken = true;
-
-        function find_duplicate_case(value) {
-            if (are_similar(particular, value)) {
-                warn('duplicate_a', value);
-            }
-        }
-
-        funct['(breakage)'] += 1;
-        one_space();
-        advance('(');
-        no_space();
-        step_in();
-        this.arity = 'statement';
-        this.first = expected_condition(expected_relation(expression(0)));
-        no_space();
-        step_out(')', the_case);
-        one_space();
-        advance('{');
-        step_in();
-        in_block = true;
-        this.second = [];
-        while (next_token.id === 'case') {
-            the_case = next_token;
-            cases.forEach(find_duplicate_case);
-            the_case.first = [];
-            the_case.arity = 'case';
-            spaces();
-            edge('case');
-            advance('case');
-            for (;;) {
-                one_space();
-                particular = expression(0);
-                cases.forEach(find_duplicate_case);
-                cases.push(particular);
-                the_case.first.push(particular);
-                if (particular.id === 'NaN') {
-                    warn('unexpected_a', particular);
-                }
-                no_space_only();
-                advance(':');
-                if (next_token.id !== 'case') {
-                    break;
-                }
-                spaces();
-                edge('case');
-                advance('case');
-            }
-            spaces();
-            the_case.second = statements();
-            if (the_case.second && the_case.second.length > 0) {
-                particular = the_case.second[the_case.second.length - 1];
-                if (particular.disrupt) {
-                    if (particular.id === 'break') {
-                        unbroken = false;
-                    }
-                } else {
-                    warn('missing_a_after_b', next_token, 'break', 'case');
-                }
-            } else {
-                warn('empty_case');
-            }
-            this.second.push(the_case);
-        }
-        if (this.second.length === 0) {
-            warn('missing_a', next_token, 'case');
-        }
-        if (next_token.id === 'default') {
-            spaces();
-            the_case = next_token;
-            the_case.arity = 'case';
-            edge('case');
-            advance('default');
-            no_space_only();
-            advance(':');
-            spaces();
-            the_case.second = statements();
-            if (the_case.second && the_case.second.length > 0) {
-                particular = the_case.second[the_case.second.length - 1];
-                if (unbroken && particular.disrupt && particular.id !== 'break') {
-                    this.disrupt = true;
-                }
-            }
-            this.second.push(the_case);
-        }
-        funct['(breakage)'] -= 1;
-        spaces();
-        step_out('}', this);
-        in_block = old_in_block;
-        return this;
-    });
-
-    stmt('debugger', function () {
-        if (!option.debug) {
-            warn('unexpected_a', this);
-        }
-        this.arity = 'statement';
-        return this;
-    });
-
-    labeled_stmt('do', function () {
-        funct['(breakage)'] += 1;
-        funct['(loopage)'] += 1;
-        one_space();
-        this.arity = 'statement';
-        this.block = block(true);
-        if (this.block.disrupt) {
-            warn('strange_loop', prev_token);
-        }
-        one_space();
-        advance('while');
-        var paren = next_token;
-        one_space();
-        advance('(');
-        step_in();
-        no_space();
-        edge();
-        this.first = expected_condition(expected_relation(expression(0)), bundle.unexpected_a);
-        no_space();
-        step_out(')', paren);
-        funct['(breakage)'] -= 1;
-        funct['(loopage)'] -= 1;
-        return this;
-    });
-
-    labeled_stmt('for', function () {
-
-        var blok, filter, ok = false, paren = next_token, value;
-        this.arity = 'statement';
-        funct['(breakage)'] += 1;
-        funct['(loopage)'] += 1;
-        advance('(');
-        if (next_token.id === ';') {
-            no_space();
-            advance(';');
-            no_space();
-            advance(';');
-            no_space();
-            advance(')');
-            blok = block(true);
-        } else {
-            step_in('control');
-            spaces(this, paren);
-            no_space();
-            if (next_token.id === 'var') {
-                stop('move_var');
-            }
-            edge();
-            if (peek(0).id === 'in') {
-                this.forin = true;
-                value = next_token;
-                switch (funct[value.string]) {
-                case 'unused':
-                    funct[value.string] = 'var';
-                    break;
-                case 'closure':
-                case 'var':
-                    break;
-                default:
-                    warn('bad_in_a', value);
-                }
-                advance();
-                advance('in');
-                this.first = value;
-                this.second = expression(20);
-                step_out(')', paren);
-                blok = block(true);
-                if (!option.forin) {
-                    if (blok.length === 1 && typeof blok[0] === 'object' &&
-                            blok[0].string === 'if' && !blok[0]['else']) {
-                        filter = blok[0].first;
-                        while (filter.id === '&&') {
-                            filter = filter.first;
-                        }
-                        switch (filter.id) {
-                        case '===':
-                        case '!==':
-                            ok = filter.first.id === '['
-                                ? filter.first.first.string === this.second.string &&
-                                    filter.first.second.string === this.first.string
-                                : filter.first.id === 'typeof' &&
-                                    filter.first.first.id === '[' &&
-                                    filter.first.first.first.string === this.second.string &&
-                                    filter.first.first.second.string === this.first.string;
-                            break;
-                        case '(':
-                            ok = filter.first.id === '.' && ((
-                                filter.first.first.string === this.second.string &&
-                                filter.first.second.string === 'hasOwnProperty' &&
-                                filter.second[0].string === this.first.string
-                            ) || (
-                                filter.first.first.string === 'ADSAFE' &&
-                                filter.first.second.string === 'has' &&
-                                filter.second[0].string === this.second.string &&
-                                filter.second[1].string === this.first.string
-                            ) || (
-                                filter.first.first.id === '.' &&
-                                filter.first.first.first.id === '.' &&
-                                filter.first.first.first.first.string === 'Object' &&
-                                filter.first.first.first.second.string === 'prototype' &&
-                                filter.first.first.second.string === 'hasOwnProperty' &&
-                                filter.first.second.string === 'call' &&
-                                filter.second[0].string === this.second.string &&
-                                filter.second[1].string === this.first.string
-                            ));
-                            break;
-                        }
-                    }
-                    if (!ok) {
-                        warn('for_if', this);
-                    }
-                }
-            } else {
-                edge();
-                this.first = [];
-                for (;;) {
-                    this.first.push(expression(0, 'for'));
-                    if (next_token.id !== ',') {
-                        break;
-                    }
-                    comma();
-                }
-                semicolon();
-                edge();
-                this.second = expected_relation(expression(0));
-                if (this.second.id !== 'true') {
-                    expected_condition(this.second, bundle.unexpected_a);
-                }
-                semicolon(token);
-                if (next_token.id === ';') {
-                    stop('expected_a_b', next_token, ')', ';');
-                }
-                this.third = [];
-                edge();
-                for (;;) {
-                    this.third.push(expression(0, 'for'));
-                    if (next_token.id !== ',') {
-                        break;
-                    }
-                    comma();
-                }
-                no_space();
-                step_out(')', paren);
-                one_space();
-                blok = block(true);
-            }
-        }
-        if (blok.disrupt) {
-            warn('strange_loop', prev_token);
-        }
-        this.block = blok;
-        funct['(breakage)'] -= 1;
-        funct['(loopage)'] -= 1;
-        return this;
-    });
-
-    disrupt_stmt('break', function () {
-        var label = next_token.string;
-        this.arity = 'statement';
-        if (funct['(breakage)'] === 0) {
-            warn('unexpected_a', this);
-        }
-        if (next_token.identifier && token.line === next_token.line) {
-            one_space_only();
-            if (funct[label] !== 'label') {
-                warn('not_a_label', next_token);
-            } else if (scope[label].funct !== funct) {
-                warn('not_a_scope', next_token);
-            }
-            this.first = next_token;
-            advance();
-        }
-        return this;
-    });
-
-    disrupt_stmt('continue', function () {
-        if (!option['continue']) {
-            warn('unexpected_a', this);
-        }
-        var label = next_token.string;
-        this.arity = 'statement';
-        if (funct['(breakage)'] === 0) {
-            warn('unexpected_a', this);
-        }
-        if (next_token.identifier && token.line === next_token.line) {
-            one_space_only();
-            if (funct[label] !== 'label') {
-                warn('not_a_label', next_token);
-            } else if (scope[label].funct !== funct) {
-                warn('not_a_scope', next_token);
-            }
-            this.first = next_token;
-            advance();
-        }
-        return this;
-    });
-
-    disrupt_stmt('return', function () {
-        if (funct === global_funct) {
-            warn('unexpected_a', this);
-        }
-        this.arity = 'statement';
-        if (next_token.id !== ';' && next_token.line === token.line) {
-            one_space_only();
-            if (next_token.id === '/' || next_token.id === '(regexp)') {
-                warn('wrap_regexp');
-            }
-            this.first = expression(20);
-        }
-        return this;
-    });
-
-    disrupt_stmt('throw', function () {
-        this.arity = 'statement';
-        one_space_only();
-        this.first = expression(20);
-        return this;
-    });
-
-
-//  Superfluous reserved words
-
-    reserve('class');
-    reserve('const');
-    reserve('enum');
-    reserve('export');
-    reserve('extends');
-    reserve('import');
-    reserve('super');
-
-// Harmony reserved words
-
-    reserve('implements');
-    reserve('interface');
-    reserve('let');
-    reserve('package');
-    reserve('private');
-    reserve('protected');
-    reserve('public');
-    reserve('static');
-    reserve('yield');
-
-
-// Type inference
-
-//     function get_type(one) {
-//         var type;
-//         if (typeof one === 'string') {
-//             return one;
-//         } else if (one.type) {
-//             return one.type;
-//         } else if (one.id === '.') {
-//             type = property_type[one.second.string];
-//             return typeof type === 'string' ? type : '';
-//         } else {
-//             return ((one.identifier && scope[one.string]) || one).type;
-//         }
-//     }
-
-
-//     function match_type(one_type, two_type, one, two) {
-//         if (one_type === two_type) {
-//             return true;
-//         } else {
-//             if (!funct.confusion && !two.warn) {
-//                 if (typeof one !== 'string') {
-//                     if (one.id === '.') {
-//                         one_type = '.' + one.second.string + ': ' + one_type;
-//                     } else {
-//                         one_type = one.string + ': ' + one_type;
-//                     }
-//                 }
-//                 if (two.id === '.') {
-//                     two_type = '.' + two.second.string + ': ' + one_type;
-//                 } else {
-//                     two_type = two.string + ': ' + one_type;
-//                 }
-//                 warn('type_confusion_a_b', two, one_type, two_type);
-//                 two.warn = true;
-//             }
-//             return false;
-//         }
-//     }
-
-
-//     function conform(one, two) {
-//
-// // The conform function takes a type string and a token, or two tokens.
-//
-//         var one_type = typeof one === 'string' ? one : one.type,
-//             two_type = two.type,
-//             two_thing;
-//
-// // If both tokens already have a type, and if they match, then we are done.
-// // Once a token has a type, it is locked. Neither token will change, but if
-// // they do not match, there will be a warning.
-//
-//         if (one_type) {
-//             if (two_type) {
-//                 match_type(one_type, two_type, one, two);
-//             } else {
-//
-// // two does not have a type, so look deeper. If two is a variable or property,
-// // then use its type if it has one, and make the deep type one's type if it
-// // doesn't. If the type was *, or if there was a mismatch, don't change the
-// // deep type.
-//
-//                 two_thing = two.id === '(identifier)'
-//                     ? scope[two.string]
-//                     : two.id === '.'
-//                     ? property_type[two.second.string]
-//                     : null;
-//                 if (two_thing) {
-//                     two_type = two_thing.type;
-//                     if (two_type) {
-//                         if (two_type !== '*') {
-//                             if (!match_type(one_type, two_type, one, two)) {
-//                                 return '';
-//                             }
-//                         }
-//                     } else {
-//                         two_thing.type = one_type;
-//                     }
-//                 }
-//
-// // In any case, we give two a type.
-//
-//                 two.type = one_type;
-//                 type_state_change = true;
-//                 return one_type;
-//             }
-//
-// // one does not have a type, but two does, so do the old switcheroo.
-//
-//         } else {
-//             if (two_type) {
-//                 return conform(two, one);
-//
-// // Neither token has a type yet. So we have to look deeper to see if either
-// // is a variable or property.
-//
-//             } else {
-//                 if (one.id === '(identifier)') {
-//                     one_type = scope[one.string].type;
-//                     if (one_type && one_type !== '*') {
-//                         one.type = one_type;
-//                         return conform(one, two);
-//                     }
-//                 } else if (one.id === '.') {
-//                     one_type = property_type[one.second.string];
-//                     if (one_type && one_type !== '*') {
-//                         one.type = scope[one.string].type;
-//                         return conform(one, two);
-//                     }
-//                 }
-//                 if (two.id === '(identifier)') {
-//                     two_type = scope[two.string].type;
-//                     if (two_type && two_type !== '*') {
-//                         two.type = two_type;
-//                         return conform(two, one);
-//                     }
-//                 } else if (two.id === '.') {
-//                     two_type = property_type[two.second.string];
-//                     if (two_type && two_type !== '*') {
-//                         two.type = scope[two.string].type;
-//                         return conform(two, one);
-//                     }
-//                 }
-//             }
-//         }
-//
-// // Return a falsy string if we were unable to determine the type of either token.
-//
-//         return '';
-//     }
-
-//     function conform_array(type, array) {
-//         array.forEach(function (item) {
-//             return conform(type, item);
-//         }, type);
-//     }
-
-
-//     function infer(node) {
-//         if (Array.isArray(node)) {
-//             node.forEach(infer);
-//         } else {
-//             switch (node.arity) {
-//             case 'statement':
-//                 infer_statement[node.id](node);
-//                 break;
-//             case 'infix':
-//                 infer(node.first);
-//                 infer(node.second);
-//                 switch (node.id) {
-//                 case '(':
-//                     conform('function', node.first);
-//                     break;
-//                 default:
-//                     stop('unfinished');
-//                 }
-//                 break;
-//             case 'number':
-//             case 'string':
-//             case 'boolean':
-//                 break;
-//             default:
-//                 stop('unfinished');
-//             }
-//         }
-//     }
-
-
-//     infer_statement = {
-//         'var': function (node) {
-//             var i, item, list = node.first;
-//             for (i = 0; i < list.length; i += 1) {
-//                 item = list[i];
-//                 if (item.id === '=') {
-//                     infer(item.second);
-//                     conform(item.first, item.second);
-//                     conform(item.first, item);
-//                 }
-//             }
-//         },
-//         'for': function (node) {
-//             infer(node.first);
-//             infer(node.second);
-//             if (node.forin) {
-//                 conform('string', node.first);
-//                 conform('object', node.second);
-//             } else {
-//                 infer(node.third);
-//                 conform_array('number', node.first);
-//                 conform('boolean', node.second);
-//                 conform_array('number', node.third);
-//             }
-//             infer(node.block);
-//         }
-//     };
-
-
-//     function infer_types(node) {
-//         do {
-//             funct = global_funct;
-//             scope = global_scope;
-//             type_state_change = false;
-//             infer(node);
-//         } while (type_state_change);
-//     }
-
-
-// Parse JSON
-
-    function json_value() {
-
-        function json_object() {
-            var brace = next_token, object = {};
-            advance('{');
-            if (next_token.id !== '}') {
-                while (next_token.id !== '(end)') {
-                    while (next_token.id === ',') {
-                        warn('unexpected_a', next_token);
-                        advance(',');
-                    }
-                    if (next_token.id !== '(string)') {
-                        warn('expected_string_a');
-                    }
-                    if (object[next_token.string] === true) {
-                        warn('duplicate_a');
-                    } else if (next_token.string === '__proto__') {
-                        warn('dangling_a');
-                    } else {
-                        object[next_token.string] = true;
-                    }
-                    advance();
-                    advance(':');
-                    json_value();
-                    if (next_token.id !== ',') {
-                        break;
-                    }
-                    advance(',');
-                    if (next_token.id === '}') {
-                        warn('unexpected_a', token);
-                        break;
-                    }
-                }
-            }
-            advance('}', brace);
-        }
-
-        function json_array() {
-            var bracket = next_token;
-            advance('[');
-            if (next_token.id !== ']') {
-                while (next_token.id !== '(end)') {
-                    while (next_token.id === ',') {
-                        warn('unexpected_a', next_token);
-                        advance(',');
-                    }
-                    json_value();
-                    if (next_token.id !== ',') {
-                        break;
-                    }
-                    advance(',');
-                    if (next_token.id === ']') {
-                        warn('unexpected_a', token);
-                        break;
-                    }
-                }
-            }
-            advance(']', bracket);
-        }
-
-        switch (next_token.id) {
-        case '{':
-            json_object();
-            break;
-        case '[':
-            json_array();
-            break;
-        case 'true':
-        case 'false':
-        case 'null':
-        case '(number)':
-        case '(string)':
-            advance();
-            break;
-        case '-':
-            advance('-');
-            no_space_only();
-            advance('(number)');
-            break;
-        default:
-            stop('unexpected_a');
-        }
-    }
-
-
-// CSS parsing.
-
-    function css_name() {
-        if (next_token.identifier) {
-            advance();
-            return true;
-        }
-    }
-
-
-    function css_number() {
-        if (next_token.id === '-') {
-            advance('-');
-            no_space_only();
-        }
-        if (next_token.id === '(number)') {
-            advance('(number)');
-            return true;
-        }
-    }
-
-
-    function css_string() {
-        if (next_token.id === '(string)') {
-            advance();
-            return true;
-        }
-    }
-
-    function css_color() {
-        var i, number, paren, value;
-        if (next_token.identifier) {
-            value = next_token.string;
-            if (value === 'rgb' || value === 'rgba') {
-                advance();
-                paren = next_token;
-                advance('(');
-                for (i = 0; i < 3; i += 1) {
-                    if (i) {
-                        comma();
-                    }
-                    number = next_token.number;
-                    if (next_token.id !== '(number)' || number < 0) {
-                        warn('expected_positive_a', next_token);
-                        advance();
-                    } else {
-                        advance();
-                        if (next_token.id === '%') {
-                            advance('%');
-                            if (number > 100) {
-                                warn('expected_percent_a', token, number);
-                            }
-                        } else {
-                            if (number > 255) {
-                                warn('expected_small_a', token, number);
-                            }
-                        }
-                    }
-                }
-                if (value === 'rgba') {
-                    comma();
-                    number = next_token.number;
-                    if (next_token.id !== '(number)' || number < 0 || number > 1) {
-                        warn('expected_fraction_a', next_token);
-                    }
-                    advance();
-                    if (next_token.id === '%') {
-                        warn('unexpected_a');
-                        advance('%');
-                    }
-                }
-                advance(')', paren);
-                return true;
-            } else if (css_colorData[next_token.string] === true) {
-                advance();
-                return true;
-            }
-        } else if (next_token.id === '(color)') {
-            advance();
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_length() {
-        if (next_token.id === '-') {
-            advance('-');
-            no_space_only();
-        }
-        if (next_token.id === '(number)') {
-            advance();
-            if (next_token.id !== '(string)' &&
-                    css_lengthData[next_token.string] === true) {
-                no_space_only();
-                advance();
-            } else if (+token.number !== 0) {
-                warn('expected_linear_a');
-            }
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_line_height() {
-        if (next_token.id === '-') {
-            advance('-');
-            no_space_only();
-        }
-        if (next_token.id === '(number)') {
-            advance();
-            if (next_token.id !== '(string)' &&
-                    css_lengthData[next_token.string] === true) {
-                no_space_only();
-                advance();
-            }
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_width() {
-        if (next_token.identifier) {
-            switch (next_token.string) {
-            case 'thin':
-            case 'medium':
-            case 'thick':
-                advance();
-                return true;
-            }
-        } else {
-            return css_length();
-        }
-    }
-
-
-    function css_margin() {
-        if (next_token.identifier) {
-            if (next_token.string === 'auto') {
-                advance();
-                return true;
-            }
-        } else {
-            return css_length();
-        }
-    }
-
-    function css_attr() {
-        if (next_token.identifier && next_token.string === 'attr') {
-            advance();
-            advance('(');
-            if (!next_token.identifier) {
-                warn('expected_name_a');
-            }
-            advance();
-            advance(')');
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_comma_list() {
-        while (next_token.id !== ';') {
-            if (!css_name() && !css_string()) {
-                warn('expected_name_a');
-            }
-            if (next_token.id !== ',') {
-                return true;
-            }
-            comma();
-        }
-    }
-
-
-    function css_counter() {
-        if (next_token.identifier && next_token.string === 'counter') {
-            advance();
-            advance('(');
-            advance();
-            if (next_token.id === ',') {
-                comma();
-                if (next_token.id !== '(string)') {
-                    warn('expected_string_a');
-                }
-                advance();
-            }
-            advance(')');
-            return true;
-        }
-        if (next_token.identifier && next_token.string === 'counters') {
-            advance();
-            advance('(');
-            if (!next_token.identifier) {
-                warn('expected_name_a');
-            }
-            advance();
-            if (next_token.id === ',') {
-                comma();
-                if (next_token.id !== '(string)') {
-                    warn('expected_string_a');
-                }
-                advance();
-            }
-            if (next_token.id === ',') {
-                comma();
-                if (next_token.id !== '(string)') {
-                    warn('expected_string_a');
-                }
-                advance();
-            }
-            advance(')');
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_radius() {
-        return css_length() && (next_token.id !== '(number)' || css_length());
-    }
-
-
-    function css_shape() {
-        var i;
-        if (next_token.identifier && next_token.string === 'rect') {
-            advance();
-            advance('(');
-            for (i = 0; i < 4; i += 1) {
-                if (!css_length()) {
-                    warn('expected_number_a');
-                    break;
-                }
-            }
-            advance(')');
-            return true;
-        }
-        return false;
-    }
-
-
-    function css_url() {
-        var c, url;
-        if (next_token.identifier && next_token.string === 'url') {
-            next_token = lex.range('(', ')');
-            url = next_token.string;
-            c = url.charAt(0);
-            if (c === '"' || c === '\'') {
-                if (url.slice(-1) !== c) {
-                    warn('bad_url_a');
-                } else {
-                    url = url.slice(1, -1);
-                    if (url.indexOf(c) >= 0) {
-                        warn('bad_url_a');
-                    }
-                }
-            }
-            if (!url) {
-                warn('missing_url');
-            }
-            if (ux.test(url)) {
-                stop('bad_url_a');
-            }
-            urls.push(url);
-            advance();
-            return true;
-        }
-        return false;
-    }
-
-
-    css_any = [css_url, function () {
-        for (;;) {
-            if (next_token.identifier) {
-                switch (next_token.string.toLowerCase()) {
-                case 'url':
-                    css_url();
-                    break;
-                case 'expression':
-                    warn('unexpected_a');
-                    advance();
-                    break;
-                default:
-                    advance();
-                }
-            } else {
-                if (next_token.id === ';' || next_token.id === '!'  ||
-                        next_token.id === '(end)' || next_token.id === '}') {
-                    return true;
-                }
-                advance();
-            }
-        }
-    }];
-
-
-    function font_face() {
-        advance_identifier('font-family');
-        advance(':');
-        if (!css_name() && !css_string()) {
-            stop('expected_name_a');
-        }
-        semicolon();
-        advance_identifier('src');
-        advance(':');
-        while (true) {
-            if (next_token.string === 'local') {
-                advance_identifier('local');
-                advance('(');
-                if (ux.test(next_token.string)) {
-                    stop('bad_url_a');
-                }
-
-                if (!css_name() && !css_string()) {
-                    stop('expected_name_a');
-                }
-                advance(')');
-            } else if (!css_url()) {
-                stop('expected_a_b', next_token, 'url', artifact());
-            }
-            if (next_token.id !== ',') {
-                break;
-            }
-            comma();
-        }
-        semicolon();
-    }
-
-
-    css_border_style = [
-        'none', 'dashed', 'dotted', 'double', 'groove',
-        'hidden', 'inset', 'outset', 'ridge', 'solid'
-    ];
-
-    css_break = [
-        'auto', 'always', 'avoid', 'left', 'right'
-    ];
-
-    css_media = {
-        'all': true,
-        'braille': true,
-        'embossed': true,
-        'handheld': true,
-        'print': true,
-        'projection': true,
-        'screen': true,
-        'speech': true,
-        'tty': true,
-        'tv': true
-    };
-
-    css_overflow = [
-        'auto', 'hidden', 'scroll', 'visible'
-    ];
-
-    css_attribute_data = {
-        background: [
-            true, 'background-attachment', 'background-color',
-            'background-image', 'background-position', 'background-repeat'
-        ],
-        'background-attachment': ['scroll', 'fixed'],
-        'background-color': ['transparent', css_color],
-        'background-image': ['none', css_url],
-        'background-position': [
-            2, [css_length, 'top', 'bottom', 'left', 'right', 'center']
-        ],
-        'background-repeat': [
-            'repeat', 'repeat-x', 'repeat-y', 'no-repeat'
-        ],
-        'border': [true, 'border-color', 'border-style', 'border-width'],
-        'border-bottom': [
-            true, 'border-bottom-color', 'border-bottom-style',
-            'border-bottom-width'
-        ],
-        'border-bottom-color': css_color,
-        'border-bottom-left-radius': css_radius,
-        'border-bottom-right-radius': css_radius,
-        'border-bottom-style': css_border_style,
-        'border-bottom-width': css_width,
-        'border-collapse': ['collapse', 'separate'],
-        'border-color': ['transparent', 4, css_color],
-        'border-left': [
-            true, 'border-left-color', 'border-left-style', 'border-left-width'
-        ],
-        'border-left-color': css_color,
-        'border-left-style': css_border_style,
-        'border-left-width': css_width,
-        'border-radius': function () {
-            function count(separator) {
-                var n = 1;
-                if (separator) {
-                    advance(separator);
-                }
-                if (!css_length()) {
-                    return false;
-                }
-                while (next_token.id === '(number)') {
-                    if (!css_length()) {
-                        return false;
-                    }
-                    n += 1;
-                }
-                if (n > 4) {
-                    warn('bad_style');
-                }
-                return true;
-            }
-
-            return count() && (next_token.id !== '/' || count('/'));
-        },
-        'border-right': [
-            true, 'border-right-color', 'border-right-style',
-            'border-right-width'
-        ],
-        'border-right-color': css_color,
-        'border-right-style': css_border_style,
-        'border-right-width': css_width,
-        'border-spacing': [2, css_length],
-        'border-style': [4, css_border_style],
-        'border-top': [
-            true, 'border-top-color', 'border-top-style', 'border-top-width'
-        ],
-        'border-top-color': css_color,
-        'border-top-left-radius': css_radius,
-        'border-top-right-radius': css_radius,
-        'border-top-style': css_border_style,
-        'border-top-width': css_width,
-        'border-width': [4, css_width],
-        bottom: [css_length, 'auto'],
-        'caption-side' : ['bottom', 'left', 'right', 'top'],
-        clear: ['both', 'left', 'none', 'right'],
-        clip: [css_shape, 'auto'],
-        color: css_color,
-        content: [
-            'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote',
-            css_string, css_url, css_counter, css_attr
-        ],
-        'counter-increment': [
-            css_name, 'none'
-        ],
-        'counter-reset': [
-            css_name, 'none'
-        ],
-        cursor: [
-            css_url, 'auto', 'crosshair', 'default', 'e-resize', 'help', 'move',
-            'n-resize', 'ne-resize', 'nw-resize', 'pointer', 's-resize',
-            'se-resize', 'sw-resize', 'w-resize', 'text', 'wait'
-        ],
-        direction: ['ltr', 'rtl'],
-        display: [
-            'block', 'compact', 'inline', 'inline-block', 'inline-table',
-            'list-item', 'marker', 'none', 'run-in', 'table', 'table-caption',
-            'table-cell', 'table-column', 'table-column-group',
-            'table-footer-group', 'table-header-group', 'table-row',
-            'table-row-group'
-        ],
-        'empty-cells': ['show', 'hide'],
-        'float': ['left', 'none', 'right'],
-        font: [
-            'caption', 'icon', 'menu', 'message-box', 'small-caption',
-            'status-bar', true, 'font-size', 'font-style', 'font-weight',
-            'font-family'
-        ],
-        'font-family': css_comma_list,
-        'font-size': [
-            'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large',
-            'xx-large', 'larger', 'smaller', css_length
-        ],
-        'font-size-adjust': ['none', css_number],
-        'font-stretch': [
-            'normal', 'wider', 'narrower', 'ultra-condensed',
-            'extra-condensed', 'condensed', 'semi-condensed',
-            'semi-expanded', 'expanded', 'extra-expanded'
-        ],
-        'font-style': [
-            'normal', 'italic', 'oblique'
-        ],
-        'font-variant': [
-            'normal', 'small-caps'
-        ],
-        'font-weight': [
-            'normal', 'bold', 'bolder', 'lighter', css_number
-        ],
-        height: [css_length, 'auto'],
-        left: [css_length, 'auto'],
-        'letter-spacing': ['normal', css_length],
-        'line-height': ['normal', css_line_height],
-        'list-style': [
-            true, 'list-style-image', 'list-style-position', 'list-style-type'
-        ],
-        'list-style-image': ['none', css_url],
-        'list-style-position': ['inside', 'outside'],
-        'list-style-type': [
-            'circle', 'disc', 'square', 'decimal', 'decimal-leading-zero',
-            'lower-roman', 'upper-roman', 'lower-greek', 'lower-alpha',
-            'lower-latin', 'upper-alpha', 'upper-latin', 'hebrew', 'katakana',
-            'hiragana-iroha', 'katakana-oroha', 'none'
-        ],
-        margin: [4, css_margin],
-        'margin-bottom': css_margin,
-        'margin-left': css_margin,
-        'margin-right': css_margin,
-        'margin-top': css_margin,
-        'marker-offset': [css_length, 'auto'],
-        'max-height': [css_length, 'none'],
-        'max-width': [css_length, 'none'],
-        'min-height': css_length,
-        'min-width': css_length,
-        opacity: css_number,
-        outline: [true, 'outline-color', 'outline-style', 'outline-width'],
-        'outline-color': ['invert', css_color],
-        'outline-style': [
-            'dashed', 'dotted', 'double', 'groove', 'inset', 'none',
-            'outset', 'ridge', 'solid'
-        ],
-        'outline-width': css_width,
-        overflow: css_overflow,
-        'overflow-x': css_overflow,
-        'overflow-y': css_overflow,
-        padding: [4, css_length],
-        'padding-bottom': css_length,
-        'padding-left': css_length,
-        'padding-right': css_length,
-        'padding-top': css_length,
-        'page-break-after': css_break,
-        'page-break-before': css_break,
-        position: ['absolute', 'fixed', 'relative', 'static'],
-        quotes: [8, css_string],
-        right: [css_length, 'auto'],
-        'table-layout': ['auto', 'fixed'],
-        'text-align': ['center', 'justify', 'left', 'right'],
-        'text-decoration': [
-            'none', 'underline', 'overline', 'line-through', 'blink'
-        ],
-        'text-indent': css_length,
-        'text-shadow': ['none', 4, [css_color, css_length]],
-        'text-transform': ['capitalize', 'uppercase', 'lowercase', 'none'],
-        top: [css_length, 'auto'],
-        'unicode-bidi': ['normal', 'embed', 'bidi-override'],
-        'vertical-align': [
-            'baseline', 'bottom', 'sub', 'super', 'top', 'text-top', 'middle',
-            'text-bottom', css_length
-        ],
-        visibility: ['visible', 'hidden', 'collapse'],
-        'white-space': [
-            'normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'inherit'
-        ],
-        width: [css_length, 'auto'],
-        'word-spacing': ['normal', css_length],
-        'word-wrap': ['break-word', 'normal'],
-        'z-index': ['auto', css_number]
-    };
-
-    function style_attribute() {
-        var v;
-        while (next_token.id === '*' || next_token.id === '#' ||
-                next_token.string === '_') {
-            if (!option.css) {
-                warn('unexpected_a');
-            }
-            advance();
-        }
-        if (next_token.id === '-') {
-            if (!option.css) {
-                warn('unexpected_a');
-            }
-            advance('-');
-            if (!next_token.identifier) {
-                warn('expected_nonstandard_style_attribute');
-            }
-            advance();
-            return css_any;
-        } else {
-            if (!next_token.identifier) {
-                warn('expected_style_attribute');
-            } else {
-                if (Object.prototype.hasOwnProperty.call(css_attribute_data,
-                        next_token.string)) {
-                    v = css_attribute_data[next_token.string];
-                } else {
-                    v = css_any;
-                    if (!option.css) {
-                        warn('unrecognized_style_attribute_a');
-                    }
-                }
-            }
-            advance();
-            return v;
-        }
-    }
-
-
-    function style_value(v) {
-
-        /*jslint confusion: true */
-
-        var i = 0,
-            n,
-            once,
-            match,
-            round,
-            start = 0,
-            vi;
-        switch (typeof v) {
-        case 'function':
-            return v();
-        case 'string':
-            if (next_token.identifier && next_token.string === v) {
-                advance();
-                return true;
-            }
-            return false;
-        }
-        for (;;) {
-            if (i >= v.length) {
-                return false;
-            }
-            vi = v[i];
-            i += 1;
-            if (typeof vi === 'boolean') {
-                break;
-            } else if (typeof vi === 'number') {
-                n = vi;
-                vi = v[i];
-                i += 1;
-            } else {
-                n = 1;
-            }
-            match = false;
-            while (n > 0) {
-                if (style_value(vi)) {
-                    match = true;
-                    n -= 1;
-                } else {
-                    break;
-                }
-            }
-            if (match) {
-                return true;
-            }
-        }
-        start = i;
-        once = [];
-        for (;;) {
-            round = false;
-            for (i = start; i < v.length; i += 1) {
-                if (!once[i]) {
-                    if (style_value(css_attribute_data[v[i]])) {
-                        match = true;
-                        round = true;
-                        once[i] = true;
-                        break;
-                    }
-                }
-            }
-            if (!round) {
-                return match;
-            }
-        }
-    }
-
-    function style_child() {
-        if (next_token.id === '(number)') {
-            advance();
-            if (next_token.string === 'n' && next_token.identifier) {
-                no_space_only();
-                advance();
-                if (next_token.id === '+') {
-                    no_space_only();
-                    advance('+');
-                    no_space_only();
-                    advance('(number)');
-                }
-            }
-            return;
-        } else {
-            if (next_token.identifier &&
-                    (next_token.string === 'odd' || next_token.string === 'even')) {
-                advance();
-                return;
-            }
-        }
-        warn('unexpected_a');
-    }
-
-    function substyle() {
-        var v;
-        for (;;) {
-            if (next_token.id === '}' || next_token.id === '(end)' ||
-                    (xquote && next_token.id === xquote)) {
-                return;
-            }
-            v = style_attribute();
-            advance(':');
-            if (next_token.identifier && next_token.string === 'inherit') {
-                advance();
-            } else {
-                if (!style_value(v)) {
-                    warn('unexpected_a');
-                    advance();
-                }
-            }
-            if (next_token.id === '!') {
-                advance('!');
-                no_space_only();
-                if (next_token.identifier && next_token.string === 'important') {
-                    advance();
-                } else {
-                    warn('expected_a_b',
-                        next_token, 'important', artifact());
-                }
-            }
-            if (next_token.id === '}' || next_token.id === xquote) {
-                warn('expected_a_b', next_token, ';', artifact());
-            } else {
-                semicolon();
-            }
-        }
-    }
-
-    function style_selector() {
-        if (next_token.identifier) {
-            if (!Object.prototype.hasOwnProperty.call(html_tag, option.cap
-                    ? next_token.string.toLowerCase()
-                    : next_token.string)) {
-                warn('expected_tagname_a');
-            }
-            advance();
-        } else {
-            switch (next_token.id) {
-            case '>':
-            case '+':
-                advance();
-                style_selector();
-                break;
-            case ':':
-                advance(':');
-                switch (next_token.string) {
-                case 'active':
-                case 'after':
-                case 'before':
-                case 'checked':
-                case 'disabled':
-                case 'empty':
-                case 'enabled':
-                case 'first-child':
-                case 'first-letter':
-                case 'first-line':
-                case 'first-of-type':
-                case 'focus':
-                case 'hover':
-                case 'last-child':
-                case 'last-of-type':
-                case 'link':
-                case 'only-of-type':
-                case 'root':
-                case 'target':
-                case 'visited':
-                    advance_identifier(next_token.string);
-                    break;
-                case 'lang':
-                    advance_identifier('lang');
-                    advance('(');
-                    if (!next_token.identifier) {
-                        warn('expected_lang_a');
-                    }
-                    advance(')');
-                    break;
-                case 'nth-child':
-                case 'nth-last-child':
-                case 'nth-last-of-type':
-                case 'nth-of-type':
-                    advance_identifier(next_token.string);
-                    advance('(');
-                    style_child();
-                    advance(')');
-                    break;
-                case 'not':
-                    advance_identifier('not');
-                    advance('(');
-                    if (next_token.id === ':' && peek(0).string === 'not') {
-                        warn('not');
-                    }
-                    style_selector();
-                    advance(')');
-                    break;
-                default:
-                    warn('expected_pseudo_a');
-                }
-                break;
-            case '#':
-                advance('#');
-                if (!next_token.identifier) {
-                    warn('expected_id_a');
-                }
-                advance();
-                break;
-            case '*':
-                advance('*');
-                break;
-            case '.':
-                advance('.');
-                if (!next_token.identifier) {
-                    warn('expected_class_a');
-                }
-                advance();
-                break;
-            case '[':
-                advance('[');
-                if (!next_token.identifier) {
-                    warn('expected_attribute_a');
-                }
-                advance();
-                if (next_token.id === '=' || next_token.string === '~=' ||
-                        next_token.string === '$=' ||
-                        next_token.string === '|=' ||
-                        next_token.id === '*=' ||
-                        next_token.id === '^=') {
-                    advance();
-                    if (next_token.id !== '(string)') {
-                        warn('expected_string_a');
-                    }
-                    advance();
-                }
-                advance(']');
-                break;
-            default:
-                stop('expected_selector_a');
-            }
-        }
-    }
-
-    function style_pattern() {
-        if (next_token.id === '{') {
-            warn('expected_style_pattern');
-        }
-        for (;;) {
-            style_selector();
-            if (next_token.id === '</' || next_token.id === '{' ||
-                    next_token.id === '}' || next_token.id === '(end)') {
-                return '';
-            }
-            if (next_token.id === ',') {
-                comma();
-            }
-        }
-    }
-
-    function style_list() {
-        while (next_token.id !== '}' && next_token.id !== '</' &&
-                next_token.id !== '(end)') {
-            style_pattern();
-            xmode = 'styleproperty';
-            if (next_token.id === ';') {
-                semicolon();
-            } else {
-                advance('{');
-                substyle();
-                xmode = 'style';
-                advance('}');
-            }
-        }
-    }
-
-    function styles() {
-        var i;
-        while (next_token.id === '@') {
-            i = peek();
-            advance('@');
-            switch (next_token.string) {
-            case 'import':
-                advance_identifier('import');
-                if (!css_url()) {
-                    warn('expected_a_b',
-                        next_token, 'url', artifact());
-                    advance();
-                }
-                semicolon();
-                break;
-            case 'media':
-                advance_identifier('media');
-                for (;;) {
-                    if (!next_token.identifier || css_media[next_token.string] !== true) {
-                        stop('expected_media_a');
-                    }
-                    advance();
-                    if (next_token.id !== ',') {
-                        break;
-                    }
-                    comma();
-                }
-                advance('{');
-                style_list();
-                advance('}');
-                break;
-            case 'font-face':
-                advance_identifier('font-face');
-                advance('{');
-                font_face();
-                advance('}');
-                break;
-            default:
-                stop('expected_at_a');
-            }
-        }
-        style_list();
-    }
-
-
-// Parse HTML
-
-    function do_begin(n) {
-        if (n !== 'html' && !option.fragment) {
-            if (n === 'div' && option.adsafe) {
-                stop('adsafe_fragment');
-            } else {
-                stop('expected_a_b', token, 'html', n);
-            }
-        }
-        if (option.adsafe) {
-            if (n === 'html') {
-                stop('adsafe_html', token);
-            }
-            if (option.fragment) {
-                if (n !== 'div') {
-                    stop('adsafe_div', token);
-                }
-            } else {
-                stop('adsafe_fragment', token);
-            }
-        }
-        option.browser = true;
-    }
-
-    function do_attribute(a, v) {
-        var u, x;
-        if (a === 'id') {
-            u = typeof v === 'string' ? v.toUpperCase() : '';
-            if (ids[u] === true) {
-                warn('duplicate_a', next_token, v);
-            }
-            if (!/^[A-Za-z][A-Za-z0-9._:\-]*$/.test(v)) {
-                warn('bad_id_a', next_token, v);
-            } else if (option.adsafe) {
-                if (adsafe_id) {
-                    if (v.slice(0, adsafe_id.length) !== adsafe_id) {
-                        warn('adsafe_prefix_a', next_token, adsafe_id);
-                    } else if (!/^[A-Z]+_[A-Z]+$/.test(v)) {
-                        warn('adsafe_bad_id');
-                    }
-                } else {
-                    adsafe_id = v;
-                    if (!/^[A-Z]+_$/.test(v)) {
-                        warn('adsafe_bad_id');
-                    }
-                }
-            }
-            x = v.search(dx);
-            if (x >= 0) {
-                warn('unexpected_char_a_b', token, v.charAt(x), a);
-            }
-            ids[u] = true;
-        } else if (a === 'class' || a === 'type' || a === 'name') {
-            x = v.search(qx);
-            if (x >= 0) {
-                warn('unexpected_char_a_b', token, v.charAt(x), a);
-            }
-            ids[u] = true;
-        } else if (a === 'href' || a === 'background' ||
-                a === 'content' || a === 'data' ||
-                a.indexOf('src') >= 0 || a.indexOf('url') >= 0) {
-            if (option.safe && ux.test(v)) {
-                stop('bad_url_a', next_token, v);
-            }
-            urls.push(v);
-        } else if (a === 'for') {
-            if (option.adsafe) {
-                if (adsafe_id) {
-                    if (v.slice(0, adsafe_id.length) !== adsafe_id) {
-                        warn('adsafe_prefix_a', next_token, adsafe_id);
-                    } else if (!/^[A-Z]+_[A-Z]+$/.test(v)) {
-                        warn('adsafe_bad_id');
-                    }
-                } else {
-                    warn('adsafe_bad_id');
-                }
-            }
-        } else if (a === 'name') {
-            if (option.adsafe && v.indexOf('_') >= 0) {
-                warn('adsafe_name_a', next_token, v);
-            }
-        }
-    }
-
-    function do_tag(name, attribute) {
-        var i, tag = html_tag[name], script, x;
-        src = false;
-        if (!tag) {
-            stop(
-                bundle.unrecognized_tag_a,
-                next_token,
-                name === name.toLowerCase()
-                    ? name
-                    : name + ' (capitalization error)'
-            );
-        }
-        if (stack.length > 0) {
-            if (name === 'html') {
-                stop('unexpected_a', token, name);
-            }
-            x = tag.parent;
-            if (x) {
-                if (x.indexOf(' ' + stack[stack.length - 1].name + ' ') < 0) {
-                    stop('tag_a_in_b', token, name, x);
-                }
-            } else if (!option.adsafe && !option.fragment) {
-                i = stack.length;
-                do {
-                    if (i <= 0) {
-                        stop('tag_a_in_b', token, name, 'body');
-                    }
-                    i -= 1;
-                } while (stack[i].name !== 'body');
-            }
-        }
-        switch (name) {
-        case 'div':
-            if (option.adsafe && stack.length === 1 && !adsafe_id) {
-                warn('adsafe_missing_id');
-            }
-            break;
-        case 'script':
-            xmode = 'script';
-            advance('>');
-            if (attribute.lang) {
-                warn('lang', token);
-            }
-            if (option.adsafe && stack.length !== 1) {
-                warn('adsafe_placement', token);
-            }
-            if (attribute.src) {
-                if (option.adsafe && (!adsafe_may || !approved[attribute.src])) {
-                    warn('adsafe_source', token);
-                }
-                if (attribute.type) {
-                    warn('type', token);
-                }
-            } else {
-                step_in(next_token.from);
-                edge();
-                use_strict();
-                adsafe_top = true;
-                script = statements();
-
-// JSLint is also the static analyzer for ADsafe. See www.ADsafe.org.
-
-                if (option.adsafe) {
-                    if (adsafe_went) {
-                        stop('adsafe_script', token);
-                    }
-                    if (script.length !== 1 ||
-                            aint(script[0],             'id',     '(') ||
-                            aint(script[0].first,       'id',     '.') ||
-                            aint(script[0].first.first, 'string', 'ADSAFE') ||
-                            aint(script[0].second[0],   'string', adsafe_id)) {
-                        stop('adsafe_id_go');
-                    }
-                    switch (script[0].first.second.string) {
-                    case 'id':
-                        if (adsafe_may || adsafe_went ||
-                                script[0].second.length !== 1) {
-                            stop('adsafe_id', next_token);
-                        }
-                        adsafe_may = true;
-                        break;
-                    case 'go':
-                        if (adsafe_went) {
-                            stop('adsafe_go');
-                        }
-                        if (script[0].second.length !== 2 ||
-                                aint(script[0].second[1], 'id', 'function') ||
-                                !script[0].second[1].first ||
-                                script[0].second[1].first.length !== 2 ||
-                                aint(script[0].second[1].first[0], 'string', 'dom') ||
-                                aint(script[0].second[1].first[1], 'string', 'lib')) {
-                            stop('adsafe_go', next_token);
-                        }
-                        adsafe_went = true;
-                        break;
-                    default:
-                        stop('adsafe_id_go');
-                    }
-                }
-                indent = null;
-            }
-            xmode = 'html';
-            advance('</');
-            advance_identifier('script');
-            xmode = 'outer';
-            break;
-        case 'style':
-            xmode = 'style';
-            advance('>');
-            styles();
-            xmode = 'html';
-            advance('</');
-            advance_identifier('style');
-            break;
-        case 'input':
-            switch (attribute.type) {
-            case 'button':
-            case 'checkbox':
-            case 'radio':
-            case 'reset':
-            case 'submit':
-                break;
-            case 'file':
-            case 'hidden':
-            case 'image':
-            case 'password':
-            case 'text':
-                if (option.adsafe && attribute.autocomplete !== 'off') {
-                    warn('adsafe_autocomplete');
-                }
-                break;
-            default:
-                warn('bad_type');
-            }
-            break;
-        case 'applet':
-        case 'body':
-        case 'embed':
-        case 'frame':
-        case 'frameset':
-        case 'head':
-        case 'iframe':
-        case 'noembed':
-        case 'noframes':
-        case 'object':
-        case 'param':
-            if (option.adsafe) {
-                warn('adsafe_tag', next_token, name);
-            }
-            break;
-        }
-    }
-
-
-    function closetag(name) {
-        return '</' + name + '>';
-    }
-
-    function html() {
-
-        /*jslint confusion: true */
-
-        var attribute, attributes, is_empty, name, old_white = option.white,
-            quote, tag_name, tag, wmode;
-        xmode = 'html';
-        xquote = '';
-        stack = null;
-        for (;;) {
-            switch (next_token.string) {
-            case '<':
-                xmode = 'html';
-                advance('<');
-                attributes = {};
-                tag_name = next_token;
-                name = tag_name.string;
-                advance_identifier(name);
-                if (option.cap) {
-                    name = name.toLowerCase();
-                }
-                tag_name.name = name;
-                if (!stack) {
-                    stack = [];
-                    do_begin(name);
-                }
-                tag = html_tag[name];
-                if (typeof tag !== 'object') {
-                    stop('unrecognized_tag_a', tag_name, name);
-                }
-                is_empty = tag.empty;
-                tag_name.type = name;
-                for (;;) {
-                    if (next_token.id === '/') {
-                        advance('/');
-                        if (next_token.id !== '>') {
-                            warn('expected_a_b', next_token, '>', artifact());
-                        }
-                        break;
-                    }
-                    if (next_token.id && next_token.id.charAt(0) === '>') {
-                        break;
-                    }
-                    if (!next_token.identifier) {
-                        if (next_token.id === '(end)' || next_token.id === '(error)') {
-                            warn('expected_a_b', next_token, '>', artifact());
-                        }
-                        warn('bad_name_a');
-                    }
-                    option.white = false;
-                    spaces();
-                    attribute = next_token.string;
-                    option.white = old_white;
-                    advance();
-                    if (!option.cap && attribute !== attribute.toLowerCase()) {
-                        warn('attribute_case_a', token);
-                    }
-                    attribute = attribute.toLowerCase();
-                    xquote = '';
-                    if (Object.prototype.hasOwnProperty.call(attributes, attribute)) {
-                        warn('duplicate_a', token, attribute);
-                    }
-                    if (attribute.slice(0, 2) === 'on') {
-                        if (!option.on) {
-                            warn('html_handlers');
-                        }
-                        xmode = 'scriptstring';
-                        advance('=');
-                        quote = next_token.id;
-                        if (quote !== '"' && quote !== '\'') {
-                            stop('expected_a_b', next_token, '"', artifact());
-                        }
-                        xquote = quote;
-                        wmode = option.white;
-                        option.white = true;
-                        advance(quote);
-                        use_strict();
-                        statements();
-                        option.white = wmode;
-                        if (next_token.id !== quote) {
-                            stop('expected_a_b', next_token, quote, artifact());
-                        }
-                        xmode = 'html';
-                        xquote = '';
-                        advance(quote);
-                        tag = false;
-                    } else if (attribute === 'style') {
-                        xmode = 'scriptstring';
-                        advance('=');
-                        quote = next_token.id;
-                        if (quote !== '"' && quote !== '\'') {
-                            stop('expected_a_b', next_token, '"', artifact());
-                        }
-                        xmode = 'styleproperty';
-                        xquote = quote;
-                        advance(quote);
-                        substyle();
-                        xmode = 'html';
-                        xquote = '';
-                        advance(quote);
-                        tag = false;
-                    } else {
-                        if (next_token.id === '=') {
-                            advance('=');
-                            tag = next_token.string;
-                            if (!next_token.identifier &&
-                                    next_token.id !== '"' &&
-                                    next_token.id !== '\'' &&
-                                    next_token.id !== '(string)' &&
-                                    next_token.id !== '(string)' &&
-                                    next_token.id !== '(color)') {
-                                warn('expected_attribute_value_a', token, attribute);
-                            }
-                            advance();
-                        } else {
-                            tag = true;
-                        }
-                    }
-                    attributes[attribute] = tag;
-                    do_attribute(attribute, tag);
-                }
-                do_tag(name, attributes);
-                if (!is_empty) {
-                    stack.push(tag_name);
-                }
-                xmode = 'outer';
-                advance('>');
-                break;
-            case '</':
-                xmode = 'html';
-                advance('</');
-                if (!next_token.identifier) {
-                    warn('bad_name_a');
-                }
-                name = next_token.string;
-                if (option.cap) {
-                    name = name.toLowerCase();
-                }
-                advance();
-                if (!stack) {
-                    stop('unexpected_a', next_token, closetag(name));
-                }
-                tag_name = stack.pop();
-                if (!tag_name) {
-                    stop('unexpected_a', next_token, closetag(name));
-                }
-                if (tag_name.name !== name) {
-                    stop('expected_a_b',
-                        next_token, closetag(tag_name.name), closetag(name));
-                }
-                if (next_token.id !== '>') {
-                    stop('expected_a_b', next_token, '>', artifact());
-                }
-                xmode = 'outer';
-                advance('>');
-                break;
-            case '<!':
-                if (option.safe) {
-                    warn('adsafe_a');
-                }
-                xmode = 'html';
-                for (;;) {
-                    advance();
-                    if (next_token.id === '>' || next_token.id === '(end)') {
-                        break;
-                    }
-                    if (next_token.string.indexOf('--') >= 0) {
-                        stop('unexpected_a', next_token, '--');
-                    }
-                    if (next_token.string.indexOf('<') >= 0) {
-                        stop('unexpected_a', next_token, '<');
-                    }
-                    if (next_token.string.indexOf('>') >= 0) {
-                        stop('unexpected_a', next_token, '>');
-                    }
-                }
-                xmode = 'outer';
-                advance('>');
-                break;
-            case '(end)':
-                return;
-            default:
-                if (next_token.id === '(end)') {
-                    stop('missing_a', next_token,
-                        '</' + stack[stack.length - 1].string + '>');
-                } else {
-                    advance();
-                }
-            }
-            if (stack && stack.length === 0 && (option.adsafe ||
-                    !option.fragment || next_token.id === '(end)')) {
-                break;
-            }
-        }
-        if (next_token.id !== '(end)') {
-            stop('unexpected_a');
-        }
-    }
-
-
-// The actual JSLINT function itself.
-
-    itself = function JSLint(the_source, the_option) {
-
-        var i, predef, tree;
-        JSLINT.errors = [];
-        JSLINT.tree = '';
-        begin = prev_token = token = next_token =
-            Object.create(syntax['(begin)']);
-        predefined = {};
-        add_to_predefined(standard);
-        property_type = Object.create(standard_property_type);
-        if (the_option) {
-            option = Object.create(the_option);
-            predef = option.predef;
-            if (predef) {
-                if (Array.isArray(predef)) {
-                    for (i = 0; i < predef.length; i += 1) {
-                        predefined[predef[i]] = true;
-                    }
-                } else if (typeof predef === 'object') {
-                    add_to_predefined(predef);
-                }
-            }
-            do_safe();
-        } else {
-            option = {};
-        }
-        option.indent = +option.indent || 4;
-        option.maxerr = +option.maxerr || 50;
-        adsafe_id = '';
-        adsafe_may = adsafe_top = adsafe_went = false;
-        approved = {};
-        if (option.approved) {
-            for (i = 0; i < option.approved.length; i += 1) {
-                approved[option.approved[i]] = option.approved[i];
-            }
-        } else {
-            approved.test = 'test';
-        }
-        tab = '';
-        for (i = 0; i < option.indent; i += 1) {
-            tab += ' ';
-        }
-        global_scope = scope = {};
-        global_funct = funct = {
-            '(scope)': scope,
-            '(breakage)': 0,
-            '(loopage)': 0
-        };
-        functions = [funct];
-
-        comments_off = false;
-        ids = {};
-        in_block = false;
-        indent = null;
-        json_mode = false;
-        lookahead = [];
-        member = {};
-        node_js = false;
-        prereg = true;
-        src = false;
-        stack = null;
-        strict_mode = false;
-        urls = [];
-        var_mode = null;
-        warnings = 0;
-        xmode = '';
-        lex.init(the_source);
-
-        assume();
-
-        try {
-            advance();
-            if (next_token.id === '(number)') {
-                stop('unexpected_a');
-            } else if (next_token.string.charAt(0) === '<') {
-                html();
-                if (option.adsafe && !adsafe_went) {
-                    warn('adsafe_go', this);
-                }
-            } else {
-                switch (next_token.id) {
-                case '{':
-                case '[':
-                    json_mode = true;
-                    json_value();
-                    break;
-                case '@':
-                case '*':
-                case '#':
-                case '.':
-                case ':':
-                    xmode = 'style';
-                    advance();
-                    if (token.id !== '@' || !next_token.identifier ||
-                            next_token.string !== 'charset' || token.line !== 1 ||
-                            token.from !== 1) {
-                        stop('css');
-                    }
-                    advance();
-                    if (next_token.id !== '(string)' &&
-                            next_token.string !== 'UTF-8') {
-                        stop('css');
-                    }
-                    advance();
-                    semicolon();
-                    styles();
-                    break;
-
-                default:
-                    if (option.adsafe && option.fragment) {
-                        stop('expected_a_b',
-                            next_token, '<div>', artifact());
-                    }
-
-// If the first token is a semicolon, ignore it. This is sometimes used when
-// files are intended to be appended to files that may be sloppy. A sloppy
-// file may be depending on semicolon insertion on its last line.
-
-                    step_in(1);
-                    if (next_token.id === ';' && !node_js) {
-                        semicolon();
-                    }
-                    adsafe_top = true;
-                    tree = statements();
-                    begin.first = tree;
-                    JSLINT.tree = begin;
-                    // infer_types(tree);
-                    if (option.adsafe && (tree.length !== 1 ||
-                            aint(tree[0], 'id', '(') ||
-                            aint(tree[0].first, 'id', '.') ||
-                            aint(tree[0].first.first, 'string', 'ADSAFE') ||
-                            aint(tree[0].first.second, 'string', 'lib') ||
-                            tree[0].second.length !== 2 ||
-                            tree[0].second[0].id !== '(string)' ||
-                            aint(tree[0].second[1], 'id', 'function'))) {
-                        stop('adsafe_lib');
-                    }
-                    if (tree.disrupt) {
-                        warn('weird_program', prev_token);
-                    }
-                }
-            }
-            indent = null;
-            advance('(end)');
-        } catch (e) {
-            if (e) {        // `~
-                JSLINT.errors.push({
-                    reason    : e.message,
-                    line      : e.line || next_token.line,
-                    character : e.character || next_token.from
-                }, null);
-            }
-        }
-        return JSLINT.errors.length === 0;
-    };
-
-
-// Data summary.
-
-    itself.data = function () {
-        var data = {functions: []},
-            function_data,
-            globals,
-            i,
-            j,
-            kind,
-            members = [],
-            name,
-            the_function,
-            undef = [],
-            unused = [];
-        if (itself.errors.length) {
-            data.errors = itself.errors;
-        }
-
-        if (json_mode) {
-            data.json = true;
-        }
-
-        if (urls.length > 0) {
-            data.urls = urls;
-        }
-
-        globals = Object.keys(global_scope).filter(function (value) {
-            return value.charAt(0) !== '(' && typeof standard[value] !== 'boolean';
-        });
-        if (globals.length > 0) {
-            data.globals = globals;
-        }
-
-        for (i = 1; i < functions.length; i += 1) {
-            the_function = functions[i];
-            function_data = {};
-            for (j = 0; j < functionicity.length; j += 1) {
-                function_data[functionicity[j]] = [];
-            }
-            for (name in the_function) {
-                if (Object.prototype.hasOwnProperty.call(the_function, name)) {
-                    if (name.charAt(0) !== '(') {
-                        kind = the_function[name];
-                        if (kind === 'unction' || kind === 'unparam') {
-                            kind = 'unused';
-                        }
-                        if (Array.isArray(function_data[kind])) {
-                            function_data[kind].push(name);
-                            if (kind === 'unused') {
-                                unused.push({
-                                    name: name,
-                                    line: the_function['(line)'],
-                                    'function': the_function['(name)']
-                                });
-                            } else if (kind === 'undef') {
-                                undef.push({
-                                    name: name,
-                                    line: the_function['(line)'],
-                                    'function': the_function['(name)']
-                                });
-                            }
-                        }
-                    }
-                }
-            }
-            for (j = 0; j < functionicity.length; j += 1) {
-                if (function_data[functionicity[j]].length === 0) {
-                    delete function_data[functionicity[j]];
-                }
-            }
-            function_data.name = the_function['(name)'];
-            function_data.params = the_function['(params)'];
-            function_data.line = the_function['(line)'];
-            function_data['(complexity)'] = the_function['(complexity)'];
-            data.functions.push(function_data);
-        }
-
-        if (unused.length > 0) {
-            data.unused = unused;
-        }
-        if (undef.length > 0) {
-            data['undefined'] = undef;
-        }
-
-        members = [];
-        for (name in member) {
-            if (typeof member[name] === 'number') {
-                data.member = member;
-                break;
-            }
-        }
-
-        return data;
-    };
-
-
-    itself.report = function (errors_only) {
-        var data = itself.data(), err, evidence, i, italics, j, key, keys, length,
-            mem = '', name, names, output = [], snippets, the_function, type,
-            warning;
-
-        function detail(h, value) {
-            var comma_needed, singularity;
-            if (Array.isArray(value)) {
-                output.push('<div><i>' + h + '</i> ');
-                value.sort().forEach(function (item) {
-                    if (item !== singularity) {
-                        singularity = item;
-                        output.push((comma_needed ? ', ' : '') + singularity);
-                        comma_needed = true;
-                    }
-                });
-                output.push('</div>');
-            } else if (value) {
-                output.push('<div><i>' + h + '</i> ' + value + '</div>');
-            }
-        }
-
-        if (data.errors || data.unused || data['undefined']) {
-            err = true;
-            output.push('<div id=errors><i>Error:</i>');
-            if (data.errors) {
-                for (i = 0; i < data.errors.length; i += 1) {
-                    warning = data.errors[i];
-                    if (warning) {
-                        evidence = warning.evidence || '';
-                        output.push('<p>Problem' + (isFinite(warning.line)
-                            ? ' at line ' + String(warning.line) +
-                                ' character ' + String(warning.character)
-                            : '') +
-                            ': ' + warning.reason.entityify() +
-                            '</p><p class=evidence>' +
-                            (evidence && (evidence.length > 80
-                                ? evidence.slice(0, 77) + '...'
-                                : evidence).entityify()) + '</p>');
-                    }
-                }
-            }
-
-            if (data['undefined']) {
-                snippets = [];
-                for (i = 0; i < data['undefined'].length; i += 1) {
-                    snippets[i] = '<code><u>' + data['undefined'][i].name + '</u></code>&nbsp;<i>' +
-                        String(data['undefined'][i].line) + ' </i> <small>' +
-                        data['undefined'][i]['function'] + '</small>';
-                }
-                output.push('<p><i>Undefined variable:</i> ' + snippets.join(', ') + '</p>');
-            }
-            if (data.unused) {
-                snippets = [];
-                for (i = 0; i < data.unused.length; i += 1) {
-                    snippets[i] = '<code><u>' + data.unused[i].name + '</u></code>&nbsp;<i>' +
-                        String(data.unused[i].line) + ' </i> <small>' +
-                        data.unused[i]['function'] + '</small>';
-                }
-                output.push('<p><i>Unused variable:</i> ' + snippets.join(', ') + '</p>');
-            }
-            if (data.json) {
-                output.push('<p>JSON: bad.</p>');
-            }
-            output.push('</div>');
-        }
-
-        if (!errors_only) {
-
-            output.push('<br><div id=functions>');
-
-            if (data.urls) {
-                detail("URLs<br>", data.urls, '<br>');
-            }
-
-            if (xmode === 'style') {
-                output.push('<p>CSS.</p>');
-            } else if (data.json && !err) {
-                output.push('<p>JSON: good.</p>');
-            } else if (data.globals) {
-                output.push('<div><i>Global</i> ' +
-                    data.globals.sort().join(', ') + '</div>');
-            } else {
-                output.push('<div><i>No new global variables introduced.</i></div>');
-            }
-
-            for (i = 0; i < data.functions.length; i += 1) {
-                the_function = data.functions[i];
-                names = [];
-                if (the_function.params) {
-                    for (j = 0; j < the_function.params.length; j += 1) {
-                        names[j] = the_function.params[j].string;
-                    }
-                }
-                output.push('<br><div class=function><i>' +
-                    String(the_function.line) + '</i> ' +
-                    the_function.name.entityify() +
-                    '(' + names.join(', ') + ')</div>');
-                detail('<big><b>Undefined</b></big>', the_function['undefined']);
-                detail('<big><b>Unused</b></big>', the_function.unused);
-                detail('Closure', the_function.closure);
-                detail('Variable', the_function['var']);
-                detail('Exception', the_function.exception);
-                detail('Outer', the_function.outer);
-                detail('Global', the_function.global);
-                detail('Label', the_function.label);
-                detail('Complexity', the_function['(complexity)']);
-            }
-
-            if (data.member) {
-                keys = Object.keys(data.member);
-                if (keys.length) {
-                    keys = keys.sort();
-                    output.push('<br><pre id=properties>/*properties<br>');
-                    mem = '    ';
-                    italics = 0;
-                    j = 0;
-                    if (option.confusion) {
-                        for (i = 0; i < keys.length; i += 1) {
-                            key = keys[i];
-                            if (typeof standard_property_type[key] !== 'string') {
-                                name = ix.test(key)
-                                    ? key
-                                    : '\'' + key.entityify().replace(nx, sanitize) + '\'';
-                                if (data.member[key] === 1) {
-                                    name = '<i>' + name + '</i>';
-                                    italics += 1;
-                                    j = 1;
-                                }
-                                if (i < keys.length - 1) {
-                                    name += ', ';
-                                }
-                                if (mem.length + name.length - (italics * 7) > 80) {
-                                    output.push(mem + '<br>');
-                                    mem = '    ';
-                                    italics = j;
-                                }
-                                mem += name;
-                                j = 0;
-                            }
-                        }
-                    } else {
-                        for (i = 0; i < keys.length; i += 1) {
-                            key = keys[i];
-                            type = property_type[key];
-                            if (typeof type !== 'string') {
-                                type = '';
-                            }
-                            if (standard_property_type[key] !== type) {
-                                name = ix.test(key)
-                                    ? key
-                                    : '\'' + key.entityify().replace(nx, sanitize) + '\'';
-                                length += name.length + 2;
-                                if (data.member[key] === 1) {
-                                    name = '<i>' + name + '</i>';
-                                    italics += 1;
-                                    j = 1;
-                                }
-                                if (type) {
-                                    name += ': ' + type;
-                                }
-                                if (i < keys.length - 1) {
-                                    name += ', ';
-                                }
-                                if (mem.length + name.length - (italics * 7) > 80) {
-                                    output.push(mem + '<br>');
-                                    mem = '    ';
-                                    italics = j;
-                                }
-                                mem += name;
-                                j = 0;
-                            }
-                        }
-                    }
-                    output.push(mem + '<br>*/</pre>');
-                }
-                output.push('</div>');
-            }
-        }
-        return output.join('');
-    };
-    itself.jslint = itself;
-
-    itself.edition = '2011-10-17';
-
-    return itself;
-
-}());
\ No newline at end of file
--- a/sbin/res/r.js	Wed May 14 14:52:34 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27811 +0,0 @@
-/**
- * @license r.js 2.1.11 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*
- * This is a bootstrap script to allow running RequireJS in the command line
- * in either a Java/Rhino or Node environment. It is modified by the top-level
- * dist.js file to inject other files to completely enable this file. It is
- * the shell of the r.js file.
- */
-
-/*jslint evil: true, nomen: true, sloppy: true */
-/*global readFile: true, process: false, Packages: false, print: false,
-console: false, java: false, module: false, requirejsVars, navigator,
-document, importScripts, self, location, Components, FileUtils */
-
-var requirejs, require, define, xpcUtil;
-(function (console, args, readFileFunc) {
-    var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
-        nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
-        version = '2.1.11',
-        jsSuffixRegExp = /\.js$/,
-        commandOption = '',
-        useLibLoaded = {},
-        //Used by jslib/rhino/args.js
-        rhinoArgs = args,
-        //Used by jslib/xpconnect/args.js
-        xpconnectArgs = args,
-        readFile = typeof readFileFunc !== 'undefined' ? readFileFunc : null;
-
-    function showHelp() {
-        console.log('See https://github.com/jrburke/r.js for usage.');
-    }
-
-    if ((typeof navigator !== 'undefined' && typeof document !== 'undefined') ||
-            (typeof importScripts !== 'undefined' && typeof self !== 'undefined')) {
-        env = 'browser';
-
-        readFile = function (path) {
-            return fs.readFileSync(path, 'utf8');
-        };
-
-        exec = function (string) {
-            return eval(string);
-        };
-
-        exists = function () {
-            console.log('x.js exists not applicable in browser env');
-            return false;
-        };
-
-    } else if (typeof Packages !== 'undefined') {
-        env = 'rhino';
-
-        fileName = args[0];
-
-        if (fileName && fileName.indexOf('-') === 0) {
-            commandOption = fileName.substring(1);
-            fileName = args[1];
-        }
-
-        //Set up execution context.
-        rhinoContext = Packages.org.mozilla.javascript.ContextFactory.getGlobal().enterContext();
-
-        exec = function (string, name) {
-            return rhinoContext.evaluateString(this, string, name, 0, null);
-        };
-
-        exists = function (fileName) {
-            return (new java.io.File(fileName)).exists();
-        };
-
-        //Define a console.log for easier logging. Don't
-        //get fancy though.
-        if (typeof console === 'undefined') {
-            console = {
-                log: function () {
-                    print.apply(undefined, arguments);
-                }
-            };
-        }
-    } else if (typeof process !== 'undefined' && process.versions && !!process.versions.node) {
-        env = 'node';
-
-        //Get the fs module via Node's require before it
-        //gets replaced. Used in require/node.js
-        fs = require('fs');
-        vm = require('vm');
-        path = require('path');
-        //In Node 0.7+ existsSync is on fs.
-        existsForNode = fs.existsSync || path.existsSync;
-
-        nodeRequire = require;
-        nodeDefine = define;
-        reqMain = require.main;
-
-        //Temporarily hide require and define to allow require.js to define
-        //them.
-        require = undefined;
-        define = undefined;
-
-        readFile = function (path) {
-            return fs.readFileSync(path, 'utf8');
-        };
-
-        exec = function (string, name) {
-            return vm.runInThisContext(this.requirejsVars.require.makeNodeWrapper(string),
-                                       name ? fs.realpathSync(name) : '');
-        };
-
-        exists = function (fileName) {
-            return existsForNode(fileName);
-        };
-
-
-        fileName = process.argv[2];
-
-        if (fileName && fileName.indexOf('-') === 0) {
-            commandOption = fileName.substring(1);
-            fileName = process.argv[3];
-        }
-    } else if (typeof Components !== 'undefined' && Components.classes && Components.interfaces) {
-        env = 'xpconnect';
-
-        Components.utils['import']('resource://gre/modules/FileUtils.jsm');
-        Cc = Components.classes;
-        Ci = Components.interfaces;
-
-        fileName = args[0];
-
-        if (fileName && fileName.indexOf('-') === 0) {
-            commandOption = fileName.substring(1);
-            fileName = args[1];
-        }
-
-        xpcUtil = {
-            isWindows: ('@mozilla.org/windows-registry-key;1' in Cc),
-            cwd: function () {
-                return FileUtils.getFile("CurWorkD", []).path;
-            },
-
-            //Remove . and .. from paths, normalize on front slashes
-            normalize: function (path) {
-                //There has to be an easier way to do this.
-                var i, part, ary,
-                    firstChar = path.charAt(0);
-
-                if (firstChar !== '/' &&
-                        firstChar !== '\\' &&
-                        path.indexOf(':') === -1) {
-                    //A relative path. Use the current working directory.
-                    path = xpcUtil.cwd() + '/' + path;
-                }
-
-                ary = path.replace(/\\/g, '/').split('/');
-
-                for (i = 0; i < ary.length; i += 1) {
-                    part = ary[i];
-                    if (part === '.') {
-                        ary.splice(i, 1);
-                        i -= 1;
-                    } else if (part === '..') {
-                        ary.splice(i - 1, 2);
-                        i -= 2;
-                    }
-                }
-                return ary.join('/');
-            },
-
-            xpfile: function (path) {
-                var fullPath;
-                try {
-                    fullPath = xpcUtil.normalize(path);
-                    if (xpcUtil.isWindows) {
-                        fullPath = fullPath.replace(/\//g, '\\');
-                    }
-                    return new FileUtils.File(fullPath);
-                } catch (e) {
-                    throw new Error((fullPath || path) + ' failed: ' + e);
-                }
-            },
-
-            readFile: function (/*String*/path, /*String?*/encoding) {
-                //A file read function that can deal with BOMs
-                encoding = encoding || "utf-8";
-
-                var inStream, convertStream,
-                    readData = {},
-                    fileObj = xpcUtil.xpfile(path);
-
-                //XPCOM, you so crazy
-                try {
-                    inStream = Cc['@mozilla.org/network/file-input-stream;1']
-                               .createInstance(Ci.nsIFileInputStream);
-                    inStream.init(fileObj, 1, 0, false);
-
-                    convertStream = Cc['@mozilla.org/intl/converter-input-stream;1']
-                                    .createInstance(Ci.nsIConverterInputStream);
-                    convertStream.init(inStream, encoding, inStream.available(),
-                    Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);
-
-                    convertStream.readString(inStream.available(), readData);
-                    return readData.value;
-                } catch (e) {
-                    throw new Error((fileObj && fileObj.path || '') + ': ' + e);
-                } finally {
-                    if (convertStream) {
-                        convertStream.close();
-                    }
-                    if (inStream) {
-                        inStream.close();
-                    }
-                }
-            }
-        };
-
-        readFile = xpcUtil.readFile;
-
-        exec = function (string) {
-            return eval(string);
-        };
-
-        exists = function (fileName) {
-            return xpcUtil.xpfile(fileName).exists();
-        };
-
-        //Define a console.log for easier logging. Don't
-        //get fancy though.
-        if (typeof console === 'undefined') {
-            console = {
-                log: function () {
-                    print.apply(undefined, arguments);
-                }
-            };
-        }
-    }
-
-    /** vim: et:ts=4:sw=4:sts=4
- * @license RequireJS 2.1.11 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-//Not using strict: uneven strict support in browsers, #392, and causes
-//problems with requirejs.exec()/transpiler plugins that may not be strict.
-/*jslint regexp: true, nomen: true, sloppy: true */
-/*global window, navigator, document, importScripts, setTimeout, opera */
-
-
-(function (global) {
-    var req, s, head, baseElement, dataMain, src,
-        interactiveScript, currentlyAddingScript, mainScript, subPath,
-        version = '2.1.11',
-        commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
-        cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
-        jsSuffixRegExp = /\.js$/,
-        currDirRegExp = /^\.\//,
-        op = Object.prototype,
-        ostring = op.toString,
-        hasOwn = op.hasOwnProperty,
-        ap = Array.prototype,
-        apsp = ap.splice,
-        isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
-        isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
-        //PS3 indicates loaded and complete, but need to wait for complete
-        //specifically. Sequence is 'loading', 'loaded', execution,
-        // then 'complete'. The UA check is unfortunate, but not sure how
-        //to feature test w/o causing perf issues.
-        readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ?
-                      /^complete$/ : /^(complete|loaded)$/,
-        defContextName = '_',
-        //Oh the tragedy, detecting opera. See the usage of isOpera for reason.
-        isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]',
-        contexts = {},
-        cfg = {},
-        globalDefQueue = [],
-        useInteractive = false;
-
-    function isFunction(it) {
-        return ostring.call(it) === '[object Function]';
-    }
-
-    function isArray(it) {
-        return ostring.call(it) === '[object Array]';
-    }
-
-    /**
-     * Helper function for iterating over an array. If the func returns
-     * a true value, it will break out of the loop.
-     */
-    function each(ary, func) {
-        if (ary) {
-            var i;
-            for (i = 0; i < ary.length; i += 1) {
-                if (ary[i] && func(ary[i], i, ary)) {
-                    break;
-                }
-            }
-        }
-    }
-
-    /**
-     * Helper function for iterating over an array backwards. If the func
-     * returns a true value, it will break out of the loop.
-     */
-    function eachReverse(ary, func) {
-        if (ary) {
-            var i;
-            for (i = ary.length - 1; i > -1; i -= 1) {
-                if (ary[i] && func(ary[i], i, ary)) {
-                    break;
-                }
-            }
-        }
-    }
-
-    function hasProp(obj, prop) {
-        return hasOwn.call(obj, prop);
-    }
-
-    function getOwn(obj, prop) {
-        return hasProp(obj, prop) && obj[prop];
-    }
-
-    /**
-     * Cycles over properties in an object and calls a function for each
-     * property value. If the function returns a truthy value, then the
-     * iteration is stopped.
-     */
-    function eachProp(obj, func) {
-        var prop;
-        for (prop in obj) {
-            if (hasProp(obj, prop)) {
-                if (func(obj[prop], prop)) {
-                    break;
-                }
-            }
-        }
-    }
-
-    /**
-     * Simple function to mix in properties from source into target,
-     * but only if target does not already have a property of the same name.
-     */
-    function mixin(target, source, force, deepStringMixin) {
-        if (source) {
-            eachProp(source, function (value, prop) {
-                if (force || !hasProp(target, prop)) {
-                    if (deepStringMixin && typeof value === 'object' && value &&
-                        !isArray(value) && !isFunction(value) &&
-                        !(value instanceof RegExp)) {
-
-                        if (!target[prop]) {
-                            target[prop] = {};
-                        }
-                        mixin(target[prop], value, force, deepStringMixin);
-                    } else {
-                        target[prop] = value;
-                    }
-                }
-            });
-        }
-        return target;
-    }
-
-    //Similar to Function.prototype.bind, but the 'this' object is specified
-    //first, since it is easier to read/figure out what 'this' will be.
-    function bind(obj, fn) {
-        return function () {
-            return fn.apply(obj, arguments);
-        };
-    }
-
-    function scripts() {
-        return document.getElementsByTagName('script');
-    }
-
-    function defaultOnError(err) {
-        throw err;
-    }
-
-    //Allow getting a global that is expressed in
-    //dot notation, like 'a.b.c'.
-    function getGlobal(value) {
-        if (!value) {
-            return value;
-        }
-        var g = global;
-        each(value.split('.'), function (part) {
-            g = g[part];
-        });
-        return g;
-    }
-
-    /**
-     * Constructs an error with a pointer to an URL with more information.
-     * @param {String} id the error ID that maps to an ID on a web page.
-     * @param {String} message human readable error.
-     * @param {Error} [err] the original error, if there is one.
-     *
-     * @returns {Error}
-     */
-    function makeError(id, msg, err, requireModules) {
-        var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
-        e.requireType = id;
-        e.requireModules = requireModules;
-        if (err) {
-            e.originalError = err;
-        }
-        return e;
-    }
-
-    if (typeof define !== 'undefined') {
-        //If a define is already in play via another AMD loader,
-        //do not overwrite.
-        return;
-    }
-
-    if (typeof requirejs !== 'undefined') {
-        if (isFunction(requirejs)) {
-            //Do not overwrite and existing requirejs instance.
-            return;
-        }
-        cfg = requirejs;
-        requirejs = undefined;
-    }
-
-    //Allow for a require config object
-    if (typeof require !== 'undefined' && !isFunction(require)) {
-        //assume it is a config object.
-        cfg = require;
-        require = undefined;
-    }
-
-    function newContext(contextName) {
-        var inCheckLoaded, Module, context, handlers,
-            checkLoadedTimeoutId,
-            config = {
-                //Defaults. Do not set a default for map
-                //config to speed up normalize(), which
-                //will run faster if there is no default.
-                waitSeconds: 7,
-                baseUrl: './',
-                paths: {},
-                bundles: {},
-                pkgs: {},
-                shim: {},
-                config: {}
-            },
-            registry = {},
-            //registry of just enabled modules, to speed
-            //cycle breaking code when lots of modules
-            //are registered, but not activated.
-            enabledRegistry = {},
-            undefEvents = {},
-            defQueue = [],
-            defined = {},
-            urlFetched = {},
-            bundlesMap = {},
-            requireCounter = 1,
-            unnormalizedCounter = 1;
-
-        /**
-         * Trims the . and .. from an array of path segments.
-         * It will keep a leading path segment if a .. will become
-         * the first path segment, to help with module name lookups,
-         * which act like paths, but can be remapped. But the end result,
-         * all paths that use this function should look normalized.
-         * NOTE: this method MODIFIES the input array.
-         * @param {Array} ary the array of path segments.
-         */
-        function trimDots(ary) {
-            var i, part, length = ary.length;
-            for (i = 0; i < length; i++) {
-                part = ary[i];
-                if (part === '.') {
-                    ary.splice(i, 1);
-                    i -= 1;
-                } else if (part === '..') {
-                    if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
-                        //End of the line. Keep at least one non-dot
-                        //path segment at the front so it can be mapped
-                        //correctly to disk. Otherwise, there is likely
-                        //no path mapping for a path starting with '..'.
-                        //This can still fail, but catches the most reasonable
-                        //uses of ..
-                        break;
-                    } else if (i > 0) {
-                        ary.splice(i - 1, 2);
-                        i -= 2;
-                    }
-                }
-            }
-        }
-
-        /**
-         * Given a relative module name, like ./something, normalize it to
-         * a real name that can be mapped to a path.
-         * @param {String} name the relative name
-         * @param {String} baseName a real name that the name arg is relative
-         * to.
-         * @param {Boolean} applyMap apply the map config to the value. Should
-         * only be done if this normalization is for a dependency ID.
-         * @returns {String} normalized name
-         */
-        function normalize(name, baseName, applyMap) {
-            var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
-                foundMap, foundI, foundStarMap, starI,
-                baseParts = baseName && baseName.split('/'),
-                normalizedBaseParts = baseParts,
-                map = config.map,
-                starMap = map && map['*'];
-
-            //Adjust any relative paths.
-            if (name && name.charAt(0) === '.') {
-                //If have a base name, try to normalize against it,
-                //otherwise, assume it is a top-level require that will
-                //be relative to baseUrl in the end.
-                if (baseName) {
-                    //Convert baseName to array, and lop off the last part,
-                    //so that . matches that 'directory' and not name of the baseName's
-                    //module. For instance, baseName of 'one/two/three', maps to
-                    //'one/two/three.js', but we want the directory, 'one/two' for
-                    //this normalization.
-                    normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
-                    name = name.split('/');
-                    lastIndex = name.length - 1;
-
-                    // If wanting node ID compatibility, strip .js from end
-                    // of IDs. Have to do this here, and not in nameToUrl
-                    // because node allows either .js or non .js to map
-                    // to same file.
-                    if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
-                        name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
-                    }
-
-                    name = normalizedBaseParts.concat(name);
-                    trimDots(name);
-                    name = name.join('/');
-                } else if (name.indexOf('./') === 0) {
-                    // No baseName, so this is ID is resolved relative
-                    // to baseUrl, pull off the leading dot.
-                    name = name.substring(2);
-                }
-            }
-
-            //Apply map config if available.
-            if (applyMap && map && (baseParts || starMap)) {
-                nameParts = name.split('/');
-
-                outerLoop: for (i = nameParts.length; i > 0; i -= 1) {
-                    nameSegment = nameParts.slice(0, i).join('/');
-
-                    if (baseParts) {
-                        //Find the longest baseName segment match in the config.
-                        //So, do joins on the biggest to smallest lengths of baseParts.
-                        for (j = baseParts.length; j > 0; j -= 1) {
-                            mapValue = getOwn(map, baseParts.slice(0, j).join('/'));
-
-                            //baseName segment has config, find if it has one for
-                            //this name.
-                            if (mapValue) {
-                                mapValue = getOwn(mapValue, nameSegment);
-                                if (mapValue) {
-                                    //Match, update name to the new value.
-                                    foundMap = mapValue;
-                                    foundI = i;
-                                    break outerLoop;
-                                }
-                            }
-                        }
-                    }
-
-                    //Check for a star map match, but just hold on to it,
-                    //if there is a shorter segment match later in a matching
-                    //config, then favor over this star map.
-                    if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) {
-                        foundStarMap = getOwn(starMap, nameSegment);
-                        starI = i;
-                    }
-                }
-
-                if (!foundMap && foundStarMap) {
-                    foundMap = foundStarMap;
-                    foundI = starI;
-                }
-
-                if (foundMap) {
-                    nameParts.splice(0, foundI, foundMap);
-                    name = nameParts.join('/');
-                }
-            }
-
-            // If the name points to a package's name, use
-            // the package main instead.
-            pkgMain = getOwn(config.pkgs, name);
-
-            return pkgMain ? pkgMain : name;
-        }
-
-        function removeScript(name) {
-            if (isBrowser) {
-                each(scripts(), function (scriptNode) {
-                    if (scriptNode.getAttribute('data-requiremodule') === name &&
-                            scriptNode.getAttribute('data-requirecontext') === context.contextName) {
-                        scriptNode.parentNode.removeChild(scriptNode);
-                        return true;
-                    }
-                });
-            }
-        }
-
-        function hasPathFallback(id) {
-            var pathConfig = getOwn(config.paths, id);
-            if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) {
-                //Pop off the first array value, since it failed, and
-                //retry
-                pathConfig.shift();
-                context.require.undef(id);
-                context.require([id]);
-                return true;
-            }
-        }
-
-        //Turns a plugin!resource to [plugin, resource]
-        //with the plugin being undefined if the name
-        //did not have a plugin prefix.
-        function splitPrefix(name) {
-            var prefix,
-                index = name ? name.indexOf('!') : -1;
-            if (index > -1) {
-                prefix = name.substring(0, index);
-                name = name.substring(index + 1, name.length);
-            }
-            return [prefix, name];
-        }
-
-        /**
-         * Creates a module mapping that includes plugin prefix, module
-         * name, and path. If parentModuleMap is provided it will
-         * also normalize the name via require.normalize()
-         *
-         * @param {String} name the module name
-         * @param {String} [parentModuleMap] parent module map
-         * for the module name, used to resolve relative names.
-         * @param {Boolean} isNormalized: is the ID already normalized.
-         * This is true if this call is done for a define() module ID.
-         * @param {Boolean} applyMap: apply the map config to the ID.
-         * Should only be true if this map is for a dependency.
-         *
-         * @returns {Object}
-         */
-        function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
-            var url, pluginModule, suffix, nameParts,
-                prefix = null,
-                parentName = parentModuleMap ? parentModuleMap.name : null,
-                originalName = name,
-                isDefine = true,
-                normalizedName = '';
-
-            //If no name, then it means it is a require call, generate an
-            //internal name.
-            if (!name) {
-                isDefine = false;
-                name = '_@r' + (requireCounter += 1);
-            }
-
-            nameParts = splitPrefix(name);
-            prefix = nameParts[0];
-            name = nameParts[1];
-
-            if (prefix) {
-                prefix = normalize(prefix, parentName, applyMap);
-                pluginModule = getOwn(defined, prefix);
-            }
-
-            //Account for relative paths if there is a base name.
-            if (name) {
-                if (prefix) {
-                    if (pluginModule && pluginModule.normalize) {
-                        //Plugin is loaded, use its normalize method.
-                        normalizedName = pluginModule.normalize(name, function (name) {
-                            return normalize(name, parentName, applyMap);
-                        });
-                    } else {
-                        normalizedName = normalize(name, parentName, applyMap);
-                    }
-                } else {
-                    //A regular module.
-                    normalizedName = normalize(name, parentName, applyMap);
-
-                    //Normalized name may be a plugin ID due to map config
-                    //application in normalize. The map config values must
-                    //already be normalized, so do not need to redo that part.
-                    nameParts = splitPrefix(normalizedName);
-                    prefix = nameParts[0];
-                    normalizedName = nameParts[1];
-                    isNormalized = true;
-
-                    url = context.nameToUrl(normalizedName);
-                }
-            }
-
-            //If the id is a plugin id that cannot be determined if it needs
-            //normalization, stamp it with a unique ID so two matching relative
-            //ids that may conflict can be separate.
-            suffix = prefix && !pluginModule && !isNormalized ?
-                     '_unnormalized' + (unnormalizedCounter += 1) :
-                     '';
-
-            return {
-                prefix: prefix,
-                name: normalizedName,
-                parentMap: parentModuleMap,
-                unnormalized: !!suffix,
-                url: url,
-                originalName: originalName,
-                isDefine: isDefine,
-                id: (prefix ?
-                        prefix + '!' + normalizedName :
-                        normalizedName) + suffix
-            };
-        }
-
-        function getModule(depMap) {
-            var id = depMap.id,
-                mod = getOwn(registry, id);
-
-            if (!mod) {
-                mod = registry[id] = new context.Module(depMap);
-            }
-
-            return mod;
-        }
-
-        function on(depMap, name, fn) {
-            var id = depMap.id,
-                mod = getOwn(registry, id);
-
-            if (hasProp(defined, id) &&
-                    (!mod || mod.defineEmitComplete)) {
-                if (name === 'defined') {
-                    fn(defined[id]);
-                }
-            } else {
-                mod = getModule(depMap);
-                if (mod.error && name === 'error') {
-                    fn(mod.error);
-                } else {
-                    mod.on(name, fn);
-                }
-            }
-        }
-
-        function onError(err, errback) {
-            var ids = err.requireModules,
-                notified = false;
-
-            if (errback) {
-                errback(err);
-            } else {
-                each(ids, function (id) {
-                    var mod = getOwn(registry, id);
-                    if (mod) {
-                        //Set error on module, so it skips timeout checks.
-                        mod.error = err;
-                        if (mod.events.error) {
-                            notified = true;
-                            mod.emit('error', err);
-                        }
-                    }
-                });
-
-                if (!notified) {
-                    req.onError(err);
-                }
-            }
-        }
-
-        /**
-         * Internal method to transfer globalQueue items to this context's
-         * defQueue.
-         */
-        function takeGlobalQueue() {
-            //Push all the globalDefQueue items into the context's defQueue
-            if (globalDefQueue.length) {
-                //Array splice in the values since the context code has a
-                //local var ref to defQueue, so cannot just reassign the one
-                //on context.
-                apsp.apply(defQueue,
-                           [defQueue.length, 0].concat(globalDefQueue));
-                globalDefQueue = [];
-            }
-        }
-
-        handlers = {
-            'require': function (mod) {
-                if (mod.require) {
-                    return mod.require;
-                } else {
-                    return (mod.require = context.makeRequire(mod.map));
-                }
-            },
-            'exports': function (mod) {
-                mod.usingExports = true;
-                if (mod.map.isDefine) {
-                    if (mod.exports) {
-                        return (defined[mod.map.id] = mod.exports);
-                    } else {
-                        return (mod.exports = defined[mod.map.id] = {});
-                    }
-                }
-            },
-            'module': function (mod) {
-                if (mod.module) {
-                    return mod.module;
-                } else {
-                    return (mod.module = {
-                        id: mod.map.id,
-                        uri: mod.map.url,
-                        config: function () {
-                            return  getOwn(config.config, mod.map.id) || {};
-                        },
-                        exports: mod.exports || (mod.exports = {})
-                    });
-                }
-            }
-        };
-
-        function cleanRegistry(id) {
-            //Clean up machinery used for waiting modules.
-            delete registry[id];
-            delete enabledRegistry[id];
-        }
-
-        function breakCycle(mod, traced, processed) {
-            var id = mod.map.id;
-
-            if (mod.error) {
-                mod.emit('error', mod.error);
-            } else {
-                traced[id] = true;
-                each(mod.depMaps, function (depMap, i) {
-                    var depId = depMap.id,
-                        dep = getOwn(registry, depId);
-
-                    //Only force things that have not completed
-                    //being defined, so still in the registry,
-                    //and only if it has not been matched up
-                    //in the module already.
-                    if (dep && !mod.depMatched[i] && !processed[depId]) {
-                        if (getOwn(traced, depId)) {
-                            mod.defineDep(i, defined[depId]);
-                            mod.check(); //pass false?
-                        } else {
-                            breakCycle(dep, traced, processed);
-                        }
-                    }
-                });
-                processed[id] = true;
-            }
-        }
-
-        function checkLoaded() {
-            var err, usingPathFallback,
-                waitInterval = config.waitSeconds * 1000,
-                //It is possible to disable the wait interval by using waitSeconds of 0.
-                expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
-                noLoads = [],
-                reqCalls = [],
-                stillLoading = false,
-                needCycleCheck = true;
-
-            //Do not bother if this call was a result of a cycle break.
-            if (inCheckLoaded) {
-                return;
-            }
-
-            inCheckLoaded = true;
-
-            //Figure out the state of all the modules.
-            eachProp(enabledRegistry, function (mod) {
-                var map = mod.map,
-                    modId = map.id;
-
-                //Skip things that are not enabled or in error state.
-                if (!mod.enabled) {
-                    return;
-                }
-
-                if (!map.isDefine) {
-                    reqCalls.push(mod);
-                }
-
-                if (!mod.error) {
-                    //If the module should be executed, and it has not
-                    //been inited and time is up, remember it.
-                    if (!mod.inited && expired) {
-                        if (hasPathFallback(modId)) {
-                            usingPathFallback = true;
-                            stillLoading = true;
-                        } else {
-                            noLoads.push(modId);
-                            removeScript(modId);
-                        }
-                    } else if (!mod.inited && mod.fetched && map.isDefine) {
-                        stillLoading = true;
-                        if (!map.prefix) {
-                            //No reason to keep looking for unfinished
-                            //loading. If the only stillLoading is a
-                            //plugin resource though, keep going,
-                            //because it may be that a plugin resource
-                            //is waiting on a non-plugin cycle.
-                            return (needCycleCheck = false);
-                        }
-                    }
-                }
-            });
-
-            if (expired && noLoads.length) {
-                //If wait time expired, throw error of unloaded modules.
-                err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads);
-                err.contextName = context.contextName;
-                return onError(err);
-            }
-
-            //Not expired, check for a cycle.
-            if (needCycleCheck) {
-                each(reqCalls, function (mod) {
-                    breakCycle(mod, {}, {});
-                });
-            }
-
-            //If still waiting on loads, and the waiting load is something
-            //other than a plugin resource, or there are still outstanding
-            //scripts, then just try back later.
-            if ((!expired || usingPathFallback) && stillLoading) {
-                //Something is still waiting to load. Wait for it, but only
-                //if a timeout is not already in effect.
-                if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
-                    checkLoadedTimeoutId = setTimeout(function () {
-                        checkLoadedTimeoutId = 0;
-                        checkLoaded();
-                    }, 50);
-                }
-            }
-
-            inCheckLoaded = false;
-        }
-
-        Module = function (map) {
-            this.events = getOwn(undefEvents, map.id) || {};
-            this.map = map;
-            this.shim = getOwn(config.shim, map.id);
-            this.depExports = [];
-            this.depMaps = [];
-            this.depMatched = [];
-            this.pluginMaps = {};
-            this.depCount = 0;
-
-            /* this.exports this.factory
-               this.depMaps = [],
-               this.enabled, this.fetched
-            */
-        };
-
-        Module.prototype = {
-            init: function (depMaps, factory, errback, options) {
-                options = options || {};
-
-                //Do not do more inits if already done. Can happen if there
-                //are multiple define calls for the same module. That is not
-                //a normal, common case, but it is also not unexpected.
-                if (this.inited) {
-                    return;
-                }
-
-                this.factory = factory;
-
-                if (errback) {
-                    //Register for errors on this module.
-                    this.on('error', errback);
-                } else if (this.events.error) {
-                    //If no errback already, but there are error listeners
-                    //on this module, set up an errback to pass to the deps.
-                    errback = bind(this, function (err) {
-                        this.emit('error', err);
-                    });
-                }
-
-                //Do a copy of the dependency array, so that
-                //source inputs are not modified. For example
-                //"shim" deps are passed in here directly, and
-                //doing a direct modification of the depMaps array
-                //would affect that config.
-                this.depMaps = depMaps && depMaps.slice(0);
-
-                this.errback = errback;
-
-                //Indicate this module has be initialized
-                this.inited = true;
-
-                this.ignore = options.ignore;
-
-                //Could have option to init this module in enabled mode,
-                //or could have been previously marked as enabled. However,
-                //the dependencies are not known until init is called. So
-                //if enabled previously, now trigger dependencies as enabled.
-                if (options.enabled || this.enabled) {
-                    //Enable this module and dependencies.
-                    //Will call this.check()
-                    this.enable();
-                } else {
-                    this.check();
-                }
-            },
-
-            defineDep: function (i, depExports) {
-                //Because of cycles, defined callback for a given
-                //export can be called more than once.
-                if (!this.depMatched[i]) {
-                    this.depMatched[i] = true;
-                    this.depCount -= 1;
-                    this.depExports[i] = depExports;
-                }
-            },
-
-            fetch: function () {
-                if (this.fetched) {
-                    return;
-                }
-                this.fetched = true;
-
-                context.startTime = (new Date()).getTime();
-
-                var map = this.map;
-
-                //If the manager is for a plugin managed resource,
-                //ask the plugin to load it now.
-                if (this.shim) {
-                    context.makeRequire(this.map, {
-                        enableBuildCallback: true
-                    })(this.shim.deps || [], bind(this, function () {
-                        return map.prefix ? this.callPlugin() : this.load();
-                    }));
-                } else {
-                    //Regular dependency.
-                    return map.prefix ? this.callPlugin() : this.load();
-                }
-            },
-
-            load: function () {
-                var url = this.map.url;
-
-                //Regular dependency.
-                if (!urlFetched[url]) {
-                    urlFetched[url] = true;
-                    context.load(this.map.id, url);
-                }
-            },
-
-            /**
-             * Checks if the module is ready to define itself, and if so,
-             * define it.
-             */
-            check: function () {
-                if (!this.enabled || this.enabling) {
-                    return;
-                }
-
-                var err, cjsModule,
-                    id = this.map.id,
-                    depExports = this.depExports,
-                    exports = this.exports,
-                    factory = this.factory;
-
-                if (!this.inited) {
-                    this.fetch();
-                } else if (this.error) {
-                    this.emit('error', this.error);
-                } else if (!this.defining) {
-                    //The factory could trigger another require call
-                    //that would result in checking this module to
-                    //define itself again. If already in the process
-                    //of doing that, skip this work.
-                    this.defining = true;
-
-                    if (this.depCount < 1 && !this.defined) {
-                        if (isFunction(factory)) {
-                            //If there is an error listener, favor passing
-                            //to that instead of throwing an error. However,
-                            //only do it for define()'d  modules. require
-                            //errbacks should not be called for failures in
-                            //their callbacks (#699). However if a global
-                            //onError is set, use that.
-                            if ((this.events.error && this.map.isDefine) ||
-                                req.onError !== defaultOnError) {
-                                try {
-                                    exports = context.execCb(id, factory, depExports, exports);
-                                } catch (e) {
-                                    err = e;
-                                }
-                            } else {
-                                exports = context.execCb(id, factory, depExports, exports);
-                            }
-
-                            // Favor return value over exports. If node/cjs in play,
-                            // then will not have a return value anyway. Favor
-                            // module.exports assignment over exports object.
-                            if (this.map.isDefine && exports === undefined) {
-                                cjsModule = this.module;
-                                if (cjsModule) {
-                                    exports = cjsModule.exports;
-                                } else if (this.usingExports) {
-                                    //exports already set the defined value.
-                                    exports = this.exports;
-                                }
-                            }
-
-                            if (err) {
-                                err.requireMap = this.map;
-                                err.requireModules = this.map.isDefine ? [this.map.id] : null;
-                                err.requireType = this.map.isDefine ? 'define' : 'require';
-                                return onError((this.error = err));
-                            }
-
-                        } else {
-                            //Just a literal value
-                            exports = factory;
-                        }
-
-                        this.exports = exports;
-
-                        if (this.map.isDefine && !this.ignore) {
-                            defined[id] = exports;
-
-                            if (req.onResourceLoad) {
-                                req.onResourceLoad(context, this.map, this.depMaps);
-                            }
-                        }
-
-                        //Clean up
-                        cleanRegistry(id);
-
-                        this.defined = true;
-                    }
-
-                    //Finished the define stage. Allow calling check again
-                    //to allow define notifications below in the case of a
-                    //cycle.
-                    this.defining = false;
-
-                    if (this.defined && !this.defineEmitted) {
-                        this.defineEmitted = true;
-                        this.emit('defined', this.exports);
-                        this.defineEmitComplete = true;
-                    }
-
-                }
-            },
-
-            callPlugin: function () {
-                var map = this.map,
-                    id = map.id,
-                    //Map already normalized the prefix.
-                    pluginMap = makeModuleMap(map.prefix);
-
-                //Mark this as a dependency for this plugin, so it
-                //can be traced for cycles.
-                this.depMaps.push(pluginMap);
-
-                on(pluginMap, 'defined', bind(this, function (plugin) {
-                    var load, normalizedMap, normalizedMod,
-                        bundleId = getOwn(bundlesMap, this.map.id),
-                        name = this.map.name,
-                        parentName = this.map.parentMap ? this.map.parentMap.name : null,
-                        localRequire = context.makeRequire(map.parentMap, {
-                            enableBuildCallback: true
-                        });
-
-                    //If current map is not normalized, wait for that
-                    //normalized name to load instead of continuing.
-                    if (this.map.unnormalized) {
-                        //Normalize the ID if the plugin allows it.
-                        if (plugin.normalize) {
-                            name = plugin.normalize(name, function (name) {
-                                return normalize(name, parentName, true);
-                            }) || '';
-                        }
-
-                        //prefix and name should already be normalized, no need
-                        //for applying map config again either.
-                        normalizedMap = makeModuleMap(map.prefix + '!' + name,
-                                                      this.map.parentMap);
-                        on(normalizedMap,
-                            'defined', bind(this, function (value) {
-                                this.init([], function () { return value; }, null, {
-                                    enabled: true,
-                                    ignore: true
-                                });
-                            }));
-
-                        normalizedMod = getOwn(registry, normalizedMap.id);
-                        if (normalizedMod) {
-                            //Mark this as a dependency for this plugin, so it
-                            //can be traced for cycles.
-                            this.depMaps.push(normalizedMap);
-
-                            if (this.events.error) {
-                                normalizedMod.on('error', bind(this, function (err) {
-                                    this.emit('error', err);
-                                }));
-                            }
-                            normalizedMod.enable();
-                        }
-
-                        return;
-                    }
-
-                    //If a paths config, then just load that file instead to
-                    //resolve the plugin, as it is built into that paths layer.
-                    if (bundleId) {
-                        this.map.url = context.nameToUrl(bundleId);
-                        this.load();
-                        return;
-                    }
-
-                    load = bind(this, function (value) {
-                        this.init([], function () { return value; }, null, {
-                            enabled: true
-                        });
-                    });
-
-                    load.error = bind(this, function (err) {
-                        this.inited = true;
-                        this.error = err;
-                        err.requireModules = [id];
-
-                        //Remove temp unnormalized modules for this module,
-                        //since they will never be resolved otherwise now.
-                        eachProp(registry, function (mod) {
-                            if (mod.map.id.indexOf(id + '_unnormalized') === 0) {
-                                cleanRegistry(mod.map.id);
-                            }
-                        });
-
-                        onError(err);
-                    });
-
-                    //Allow plugins to load other code without having to know the
-                    //context or how to 'complete' the load.
-                    load.fromText = bind(this, function (text, textAlt) {
-                        /*jslint evil: true */
-                        var moduleName = map.name,
-                            moduleMap = makeModuleMap(moduleName),
-                            hasInteractive = useInteractive;
-
-                        //As of 2.1.0, support just passing the text, to reinforce
-                        //fromText only being called once per resource. Still
-                        //support old style of passing moduleName but discard
-                        //that moduleName in favor of the internal ref.
-                        if (textAlt) {
-                            text = textAlt;
-                        }
-
-                        //Turn off interactive script matching for IE for any define
-                        //calls in the text, then turn it back on at the end.
-                        if (hasInteractive) {
-                            useInteractive = false;
-                        }
-
-                        //Prime the system by creating a module instance for
-                        //it.
-                        getModule(moduleMap);
-
-                        //Transfer any config to this other module.
-                        if (hasProp(config.config, id)) {
-                            config.config[moduleName] = config.config[id];
-                        }
-
-                        try {
-                            req.exec(text);
-                        } catch (e) {
-                            return onError(makeError('fromtexteval',
-                                             'fromText eval for ' + id +
-                                            ' failed: ' + e,
-                                             e,
-                                             [id]));
-                        }
-
-                        if (hasInteractive) {
-                            useInteractive = true;
-                        }
-
-                        //Mark this as a dependency for the plugin
-                        //resource
-                        this.depMaps.push(moduleMap);
-
-                        //Support anonymous modules.
-                        context.completeLoad(moduleName);
-
-                        //Bind the value of that module to the value for this
-                        //resource ID.
-                        localRequire([moduleName], load);
-                    });
-
-                    //Use parentName here since the plugin's name is not reliable,
-                    //could be some weird string with no path that actually wants to
-                    //reference the parentName's path.
-                    plugin.load(map.name, localRequire, load, config);
-                }));
-
-                context.enable(pluginMap, this);
-                this.pluginMaps[pluginMap.id] = pluginMap;
-            },
-
-            enable: function () {
-                enabledRegistry[this.map.id] = this;
-                this.enabled = true;
-
-                //Set flag mentioning that the module is enabling,
-                //so that immediate calls to the defined callbacks
-                //for dependencies do not trigger inadvertent load
-                //with the depCount still being zero.
-                this.enabling = true;
-
-                //Enable each dependency
-                each(this.depMaps, bind(this, function (depMap, i) {
-                    var id, mod, handler;
-
-                    if (typeof depMap === 'string') {
-                        //Dependency needs to be converted to a depMap
-                        //and wired up to this module.
-                        depMap = makeModuleMap(depMap,
-                                               (this.map.isDefine ? this.map : this.map.parentMap),
-                                               false,
-                                               !this.skipMap);
-                        this.depMaps[i] = depMap;
-
-                        handler = getOwn(handlers, depMap.id);
-
-                        if (handler) {
-                            this.depExports[i] = handler(this);
-                            return;
-                        }
-
-                        this.depCount += 1;
-
-                        on(depMap, 'defined', bind(this, function (depExports) {
-                            this.defineDep(i, depExports);
-                            this.check();
-                        }));
-
-                        if (this.errback) {
-                            on(depMap, 'error', bind(this, this.errback));
-                        }
-                    }
-
-                    id = depMap.id;
-                    mod = registry[id];
-
-                    //Skip special modules like 'require', 'exports', 'module'
-                    //Also, don't call enable if it is already enabled,
-                    //important in circular dependency cases.
-                    if (!hasProp(handlers, id) && mod && !mod.enabled) {
-                        context.enable(depMap, this);
-                    }
-                }));
-
-                //Enable each plugin that is used in
-                //a dependency
-                eachProp(this.pluginMaps, bind(this, function (pluginMap) {
-                    var mod = getOwn(registry, pluginMap.id);
-                    if (mod && !mod.enabled) {
-                        context.enable(pluginMap, this);
-                    }
-                }));
-
-                this.enabling = false;
-
-                this.check();
-            },
-
-            on: function (name, cb) {
-                var cbs = this.events[name];
-                if (!cbs) {
-                    cbs = this.events[name] = [];
-                }
-                cbs.push(cb);
-            },
-
-            emit: function (name, evt) {
-                each(this.events[name], function (cb) {
-                    cb(evt);
-                });
-                if (name === 'error') {
-                    //Now that the error handler was triggered, remove
-                    //the listeners, since this broken Module instance
-                    //can stay around for a while in the registry.
-                    delete this.events[name];
-                }
-            }
-        };
-
-        function callGetModule(args) {
-            //Skip modules already defined.
-            if (!hasProp(defined, args[0])) {
-                getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]);
-            }
-        }
-
-        function removeListener(node, func, name, ieName) {
-            //Favor detachEvent because of IE9
-            //issue, see attachEvent/addEventListener comment elsewhere
-            //in this file.
-            if (node.detachEvent && !isOpera) {
-                //Probably IE. If not it will throw an error, which will be
-                //useful to know.
-                if (ieName) {
-                    node.detachEvent(ieName, func);
-                }
-            } else {
-                node.removeEventListener(name, func, false);
-            }
-        }
-
-        /**
-         * Given an event from a script node, get the requirejs info from it,
-         * and then removes the event listeners on the node.
-         * @param {Event} evt
-         * @returns {Object}
-         */
-        function getScriptData(evt) {
-            //Using currentTarget instead of target for Firefox 2.0's sake. Not
-            //all old browsers will be supported, but this one was easy enough
-            //to support and still makes sense.
-            var node = evt.currentTarget || evt.srcElement;
-
-            //Remove the listeners once here.
-            removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange');
-            removeListener(node, context.onScriptError, 'error');
-
-            return {
-                node: node,
-                id: node && node.getAttribute('data-requiremodule')
-            };
-        }
-
-        function intakeDefines() {
-            var args;
-
-            //Any defined modules in the global queue, intake them now.
-            takeGlobalQueue();
-
-            //Make sure any remaining defQueue items get properly processed.
-            while (defQueue.length) {
-                args = defQueue.shift();
-                if (args[0] === null) {
-                    return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1]));
-                } else {
-                    //args are id, deps, factory. Should be normalized by the
-                    //define() function.
-                    callGetModule(args);
-                }
-            }
-        }
-
-        context = {
-            config: config,
-            contextName: contextName,
-            registry: registry,
-            defined: defined,
-            urlFetched: urlFetched,
-            defQueue: defQueue,
-            Module: Module,
-            makeModuleMap: makeModuleMap,
-            nextTick: req.nextTick,
-            onError: onError,
-
-            /**
-             * Set a configuration for the context.
-             * @param {Object} cfg config object to integrate.
-             */
-            configure: function (cfg) {
-                //Make sure the baseUrl ends in a slash.
-                if (cfg.baseUrl) {
-                    if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') {
-                        cfg.baseUrl += '/';
-                    }
-                }
-
-                //Save off the paths since they require special processing,
-                //they are additive.
-                var shim = config.shim,
-                    objs = {
-                        paths: true,
-                        bundles: true,
-                        config: true,
-                        map: true
-                    };
-
-                eachProp(cfg, function (value, prop) {
-                    if (objs[prop]) {
-                        if (!config[prop]) {
-                            config[prop] = {};
-                        }
-                        mixin(config[prop], value, true, true);
-                    } else {
-                        config[prop] = value;
-                    }
-                });
-
-                //Reverse map the bundles
-                if (cfg.bundles) {
-                    eachProp(cfg.bundles, function (value, prop) {
-                        each(value, function (v) {
-                            if (v !== prop) {
-                                bundlesMap[v] = prop;
-                            }
-                        });
-                    });
-                }
-
-                //Merge shim
-                if (cfg.shim) {
-                    eachProp(cfg.shim, function (value, id) {
-                        //Normalize the structure
-                        if (isArray(value)) {
-                            value = {
-                                deps: value
-                            };
-                        }
-                        if ((value.exports || value.init) && !value.exportsFn) {
-                            value.exportsFn = context.makeShimExports(value);
-                        }
-                        shim[id] = value;
-                    });
-                    config.shim = shim;
-                }
-
-                //Adjust packages if necessary.
-                if (cfg.packages) {
-                    each(cfg.packages, function (pkgObj) {
-                        var location, name;
-
-                        pkgObj = typeof pkgObj === 'string' ? { name: pkgObj } : pkgObj;
-
-                        name = pkgObj.name;
-                        location = pkgObj.location;
-                        if (location) {
-                            config.paths[name] = pkgObj.location;
-                        }
-
-                        //Save pointer to main module ID for pkg name.
-                        //Remove leading dot in main, so main paths are normalized,
-                        //and remove any trailing .js, since different package
-                        //envs have different conventions: some use a module name,
-                        //some use a file name.
-                        config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main')
-                                     .replace(currDirRegExp, '')
-                                     .replace(jsSuffixRegExp, '');
-                    });
-                }
-
-                //If there are any "waiting to execute" modules in the registry,
-                //update the maps for them, since their info, like URLs to load,
-                //may have changed.
-                eachProp(registry, function (mod, id) {
-                    //If module already has init called, since it is too
-                    //late to modify them, and ignore unnormalized ones
-                    //since they are transient.
-                    if (!mod.inited && !mod.map.unnormalized) {
-                        mod.map = makeModuleMap(id);
-                    }
-                });
-
-                //If a deps array or a config callback is specified, then call
-                //require with those args. This is useful when require is defined as a
-                //config object before require.js is loaded.
-                if (cfg.deps || cfg.callback) {
-                    context.require(cfg.deps || [], cfg.callback);
-                }
-            },
-
-            makeShimExports: function (value) {
-                function fn() {
-                    var ret;
-                    if (value.init) {
-                        ret = value.init.apply(global, arguments);
-                    }
-                    return ret || (value.exports && getGlobal(value.exports));
-                }
-                return fn;
-            },
-
-            makeRequire: function (relMap, options) {
-                options = options || {};
-
-                function localRequire(deps, callback, errback) {
-                    var id, map, requireMod;
-
-                    if (options.enableBuildCallback && callback && isFunction(callback)) {
-                        callback.__requireJsBuild = true;
-                    }
-
-                    if (typeof deps === 'string') {
-                        if (isFunction(callback)) {
-                            //Invalid call
-                            return onError(makeError('requireargs', 'Invalid require call'), errback);
-                        }
-
-                        //If require|exports|module are requested, get the
-                        //value for them from the special handlers. Caveat:
-                        //this only works while module is being defined.
-                        if (relMap && hasProp(handlers, deps)) {
-                            return handlers[deps](registry[relMap.id]);
-                        }
-
-                        //Synchronous access to one module. If require.get is
-                        //available (as in the Node adapter), prefer that.
-                        if (req.get) {
-                            return req.get(context, deps, relMap, localRequire);
-                        }
-
-                        //Normalize module name, if it contains . or ..
-                        map = makeModuleMap(deps, relMap, false, true);
-                        id = map.id;
-
-                        if (!hasProp(defined, id)) {
-                            return onError(makeError('notloaded', 'Module name "' +
-                                        id +
-                                        '" has not been loaded yet for context: ' +
-                                        contextName +
-                                        (relMap ? '' : '. Use require([])')));
-                        }
-                        return defined[id];
-                    }
-
-                    //Grab defines waiting in the global queue.
-                    intakeDefines();
-
-                    //Mark all the dependencies as needing to be loaded.
-                    context.nextTick(function () {
-                        //Some defines could have been added since the
-                        //require call, collect them.
-                        intakeDefines();
-
-                        requireMod = getModule(makeModuleMap(null, relMap));
-
-                        //Store if map config should be applied to this require
-                        //call for dependencies.
-                        requireMod.skipMap = options.skipMap;
-
-                        requireMod.init(deps, callback, errback, {
-                            enabled: true
-                        });
-
-                        checkLoaded();
-                    });
-
-                    return localRequire;
-                }
-
-                mixin(localRequire, {
-                    isBrowser: isBrowser,
-
-                    /**
-                     * Converts a module name + .extension into an URL path.
-                     * *Requires* the use of a module name. It does not support using
-                     * plain URLs like nameToUrl.
-                     */
-                    toUrl: function (moduleNamePlusExt) {
-                        var ext,
-                            index = moduleNamePlusExt.lastIndexOf('.'),
-                            segment = moduleNamePlusExt.split('/')[0],
-                            isRelative = segment === '.' || segment === '..';
-
-                        //Have a file extension alias, and it is not the
-                        //dots from a relative path.
-                        if (index !== -1 && (!isRelative || index > 1)) {
-                            ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
-                            moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
-                        }
-
-                        return context.nameToUrl(normalize(moduleNamePlusExt,
-                                                relMap && relMap.id, true), ext,  true);
-                    },
-
-                    defined: function (id) {
-                        return hasProp(defined, makeModuleMap(id, relMap, false, true).id);
-                    },
-
-                    specified: function (id) {
-                        id = makeModuleMap(id, relMap, false, true).id;
-                        return hasProp(defined, id) || hasProp(registry, id);
-                    }
-                });
-
-                //Only allow undef on top level require calls
-                if (!relMap) {
-                    localRequire.undef = function (id) {
-                        //Bind any waiting define() calls to this context,
-                        //fix for #408
-                        takeGlobalQueue();
-
-                        var map = makeModuleMap(id, relMap, true),
-                            mod = getOwn(registry, id);
-
-                        removeScript(id);
-
-                        delete defined[id];
-                        delete urlFetched[map.url];
-                        delete undefEvents[id];
-
-                        //Clean queued defines too. Go backwards
-                        //in array so that the splices do not
-                        //mess up the iteration.
-                        eachReverse(defQueue, function(args, i) {
-                            if(args[0] === id) {
-                                defQueue.splice(i, 1);
-                            }
-                        });
-
-                        if (mod) {
-                            //Hold on to listeners in case the
-                            //module will be attempted to be reloaded
-                            //using a different config.
-                            if (mod.events.defined) {
-                                undefEvents[id] = mod.events;
-                            }
-
-                            cleanRegistry(id);
-                        }
-                    };
-                }
-
-                return localRequire;
-            },
-
-            /**
-             * Called to enable a module if it is still in the registry
-             * awaiting enablement. A second arg, parent, the parent module,
-             * is passed in for context, when this method is overridden by
-             * the optimizer. Not shown here to keep code compact.
-             */
-            enable: function (depMap) {
-                var mod = getOwn(registry, depMap.id);
-                if (mod) {
-                    getModule(depMap).enable();
-                }
-            },
-
-            /**
-             * Internal method used by environment adapters to complete a load event.
-             * A load event could be a script load or just a load pass from a synchronous
-             * load call.
-             * @param {String} moduleName the name of the module to potentially complete.
-             */
-            completeLoad: function (moduleName) {
-                var found, args, mod,
-                    shim = getOwn(config.shim, moduleName) || {},
-                    shExports = shim.exports;
-
-                takeGlobalQueue();
-
-                while (defQueue.length) {
-                    args = defQueue.shift();
-                    if (args[0] === null) {
-                        args[0] = moduleName;
-                        //If already found an anonymous module and bound it
-                        //to this name, then this is some other anon module
-                        //waiting for its completeLoad to fire.
-                        if (found) {
-                            break;
-                        }
-                        found = true;
-                    } else if (args[0] === moduleName) {
-                        //Found matching define call for this script!
-                        found = true;
-                    }
-
-                    callGetModule(args);
-                }
-
-                //Do this after the cycle of callGetModule in case the result
-                //of those calls/init calls changes the registry.
-                mod = getOwn(registry, moduleName);
-
-                if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) {
-                    if (config.enforceDefine && (!shExports || !getGlobal(shExports))) {
-                        if (hasPathFallback(moduleName)) {
-                            return;
-                        } else {
-                            return onError(makeError('nodefine',
-                                             'No define call for ' + moduleName,
-                                             null,
-                                             [moduleName]));
-                        }
-                    } else {
-                        //A script that does not call define(), so just simulate
-                        //the call for it.
-                        callGetModule([moduleName, (shim.deps || []), shim.exportsFn]);
-                    }
-                }
-
-                checkLoaded();
-            },
-
-            /**
-             * Converts a module name to a file path. Supports cases where
-             * moduleName may actually be just an URL.
-             * Note that it **does not** call normalize on the moduleName,
-             * it is assumed to have already been normalized. This is an
-             * internal API, not a public one. Use toUrl for the public API.
-             */
-            nameToUrl: function (moduleName, ext, skipExt) {
-                var paths, syms, i, parentModule, url,
-                    parentPath, bundleId,
-                    pkgMain = getOwn(config.pkgs, moduleName);
-
-                if (pkgMain) {
-                    moduleName = pkgMain;
-                }
-
-                bundleId = getOwn(bundlesMap, moduleName);
-
-                if (bundleId) {
-                    return context.nameToUrl(bundleId, ext, skipExt);
-                }
-
-                //If a colon is in the URL, it indicates a protocol is used and it is just
-                //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?)
-                //or ends with .js, then assume the user meant to use an url and not a module id.
-                //The slash is important for protocol-less URLs as well as full paths.
-                if (req.jsExtRegExp.test(moduleName)) {
-                    //Just a plain path, not module name lookup, so just return it.
-                    //Add extension if it is included. This is a bit wonky, only non-.js things pass
-                    //an extension, this method probably needs to be reworked.
-                    url = moduleName + (ext || '');
-                } else {
-                    //A module that needs to be converted to a path.
-                    paths = config.paths;
-
-                    syms = moduleName.split('/');
-                    //For each module name segment, see if there is a path
-                    //registered for it. Start with most specific name
-                    //and work up from it.
-                    for (i = syms.length; i > 0; i -= 1) {
-                        parentModule = syms.slice(0, i).join('/');
-
-                        parentPath = getOwn(paths, parentModule);
-                        if (parentPath) {
-                            //If an array, it means there are a few choices,
-                            //Choose the one that is desired
-                            if (isArray(parentPath)) {
-                                parentPath = parentPath[0];
-                            }
-                            syms.splice(0, i, parentPath);
-                            break;
-                        }
-                    }
-
-                    //Join the path parts together, then figure out if baseUrl is needed.
-                    url = syms.join('/');
-                    url += (ext || (/^data\:|\?/.test(url) || skipExt ? '' : '.js'));
-                    url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
-                }
-
-                return config.urlArgs ? url +
-                                        ((url.indexOf('?') === -1 ? '?' : '&') +
-                                         config.urlArgs) : url;
-            },
-
-            //Delegates to req.load. Broken out as a separate function to
-            //allow overriding in the optimizer.
-            load: function (id, url) {
-                req.load(context, id, url);
-            },
-
-            /**
-             * Executes a module callback function. Broken out as a separate function
-             * solely to allow the build system to sequence the files in the built
-             * layer in the right sequence.
-             *
-             * @private
-             */
-            execCb: function (name, callback, args, exports) {
-                return callback.apply(exports, args);
-            },
-
-            /**
-             * callback for script loads, used to check status of loading.
-             *
-             * @param {Event} evt the event from the browser for the script
-             * that was loaded.
-             */
-            onScriptLoad: function (evt) {
-                //Using currentTarget instead of target for Firefox 2.0's sake. Not
-                //all old browsers will be supported, but this one was easy enough
-                //to support and still makes sense.
-                if (evt.type === 'load' ||
-                        (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) {
-                    //Reset interactive script so a script node is not held onto for
-                    //to long.
-                    interactiveScript = null;
-
-                    //Pull out the name of the module and the context.
-                    var data = getScriptData(evt);
-                    context.completeLoad(data.id);
-                }
-            },
-
-            /**
-             * Callback for script errors.
-             */
-            onScriptError: function (evt) {
-                var data = getScriptData(evt);
-                if (!hasPathFallback(data.id)) {
-                    return onError(makeError('scripterror', 'Script error for: ' + data.id, evt, [data.id]));
-                }
-            }
-        };
-
-        context.require = context.makeRequire();
-        return context;
-    }
-
-    /**
-     * Main entry point.
-     *
-     * If the only argument to require is a string, then the module that
-     * is represented by that string is fetched for the appropriate context.
-     *
-     * If the first argument is an array, then it will be treated as an array
-     * of dependency string names to fetch. An optional function callback can
-     * be specified to execute when all of those dependencies are available.
-     *
-     * Make a local req variable to help Caja compliance (it assumes things
-     * on a require that are not standardized), and to give a short
-     * name for minification/local scope use.
-     */
-    req = requirejs = function (deps, callback, errback, optional) {
-
-        //Find the right context, use default
-        var context, config,
-            contextName = defContextName;
-
-        // Determine if have config object in the call.
-        if (!isArray(deps) && typeof deps !== 'string') {
-            // deps is a config object
-            config = deps;
-            if (isArray(callback)) {
-                // Adjust args if there are dependencies
-                deps = callback;
-                callback = errback;
-                errback = optional;
-            } else {
-                deps = [];
-            }
-        }
-
-        if (config && config.context) {
-            contextName = config.context;
-        }
-
-        context = getOwn(contexts, contextName);
-        if (!context) {
-            context = contexts[contextName] = req.s.newContext(contextName);
-        }
-
-        if (config) {
-            context.configure(config);
-        }
-
-        return context.require(deps, callback, errback);
-    };
-
-    /**
-     * Support require.config() to make it easier to cooperate with other
-     * AMD loaders on globally agreed names.
-     */
-    req.config = function (config) {
-        return req(config);
-    };
-
-    /**
-     * Execute something after the current tick
-     * of the event loop. Override for other envs
-     * that have a better solution than setTimeout.
-     * @param  {Function} fn function to execute later.
-     */
-    req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
-        setTimeout(fn, 4);
-    } : function (fn) { fn(); };
-
-    /**
-     * Export require as a global, but only if it does not already exist.
-     */
-    if (!require) {
-        require = req;
-    }
-
-    req.version = version;
-
-    //Used to filter out dependencies that are already paths.
-    req.jsExtRegExp = /^\/|:|\?|\.js$/;
-    req.isBrowser = isBrowser;
-    s = req.s = {
-        contexts: contexts,
-        newContext: newContext
-    };
-
-    //Create default context.
-    req({});
-
-    //Exports some context-sensitive methods on global require.
-    each([
-        'toUrl',
-        'undef',
-        'defined',
-        'specified'
-    ], function (prop) {
-        //Reference from contexts instead of early binding to default context,
-        //so that during builds, the latest instance of the default context
-        //with its config gets used.
-        req[prop] = function () {
-            var ctx = contexts[defContextName];
-            return ctx.require[prop].apply(ctx, arguments);
-        };
-    });
-
-    if (isBrowser) {
-        head = s.head = document.getElementsByTagName('head')[0];
-        //If BASE tag is in play, using appendChild is a problem for IE6.
-        //When that browser dies, this can be removed. Details in this jQuery bug:
-        //http://dev.jquery.com/ticket/2709
-        baseElement = document.getElementsByTagName('base')[0];
-        if (baseElement) {
-            head = s.head = baseElement.parentNode;
-        }
-    }
-
-    /**
-     * Any errors that require explicitly generates will be passed to this
-     * function. Intercept/override it if you want custom error handling.
-     * @param {Error} err the error object.
-     */
-    req.onError = defaultOnError;
-
-    /**
-     * Creates the node for the load command. Only used in browser envs.
-     */
-    req.createNode = function (config, moduleName, url) {
-        var node = config.xhtml ?
-                document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') :
-                document.createElement('script');
-        node.type = config.scriptType || 'text/javascript';
-        node.charset = 'utf-8';
-        node.async = true;
-        return node;
-    };
-
-    /**
-     * Does the request to load a module for the browser case.
-     * Make this a separate function to allow other environments
-     * to override it.
-     *
-     * @param {Object} context the require context to find state.
-     * @param {String} moduleName the name of the module.
-     * @param {Object} url the URL to the module.
-     */
-    req.load = function (context, moduleName, url) {
-        var config = (context && context.config) || {},
-            node;
-        if (isBrowser) {
-            //In the browser so use a script tag
-            node = req.createNode(config, moduleName, url);
-
-            node.setAttribute('data-requirecontext', context.contextName);
-            node.setAttribute('data-requiremodule', moduleName);
-
-            //Set up load listener. Test attachEvent first because IE9 has
-            //a subtle issue in its addEventListener and script onload firings
-            //that do not match the behavior of all other browsers with
-            //addEventListener support, which fire the onload event for a
-            //script right after the script execution. See:
-            //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution
-            //UNFORTUNATELY Opera implements attachEvent but does not follow the script
-            //script execution mode.
-            if (node.attachEvent &&
-                    //Check if node.attachEvent is artificially added by custom script or
-                    //natively supported by browser
-                    //read https://github.com/jrburke/requirejs/issues/187
-                    //if we can NOT find [native code] then it must NOT natively supported.
-                    //in IE8, node.attachEvent does not have toString()
-                    //Note the test for "[native code" with no closing brace, see:
-                    //https://github.com/jrburke/requirejs/issues/273
-                    !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
-                    !isOpera) {
-                //Probably IE. IE (at least 6-8) do not fire
-                //script onload right after executing the script, so
-                //we cannot tie the anonymous define call to a name.
-                //However, IE reports the script as being in 'interactive'
-                //readyState at the time of the define call.
-                useInteractive = true;
-
-                node.attachEvent('onreadystatechange', context.onScriptLoad);
-                //It would be great to add an error handler here to catch
-                //404s in IE9+. However, onreadystatechange will fire before
-                //the error handler, so that does not help. If addEventListener
-                //is used, then IE will fire error before load, but we cannot
-                //use that pathway given the connect.microsoft.com issue
-                //mentioned above about not doing the 'script execute,
-                //then fire the script load event listener before execute
-                //next script' that other browsers do.
-                //Best hope: IE10 fixes the issues,
-                //and then destroys all installs of IE 6-9.
-                //node.attachEvent('onerror', context.onScriptError);
-            } else {
-                node.addEventListener('load', context.onScriptLoad, false);
-                node.addEventListener('error', context.onScriptError, false);
-            }
-            node.src = url;
-
-            //For some cache cases in IE 6-8, the script executes before the end
-            //of the appendChild execution, so to tie an anonymous define
-            //call to the module name (which is stored on the node), hold on
-            //to a reference to this node, but clear after the DOM insertion.
-            currentlyAddingScript = node;
-            if (baseElement) {
-                head.insertBefore(node, baseElement);
-            } else {
-                head.appendChild(node);
-            }
-            currentlyAddingScript = null;
-
-            return node;
-        } else if (isWebWorker) {
-            try {
-                //In a web worker, use importScripts. This is not a very
-                //efficient use of importScripts, importScripts will block until
-                //its script is downloaded and evaluated. However, if web workers
-                //are in play, the expectation that a build has been done so that
-                //only one script needs to be loaded anyway. This may need to be
-                //reevaluated if other use cases become common.
-                importScripts(url);
-
-                //Account for anonymous modules
-                context.completeLoad(moduleName);
-            } catch (e) {
-                context.onError(makeError('importscripts',
-                                'importScripts failed for ' +
-                                    moduleName + ' at ' + url,
-                                e,
-                                [moduleName]));
-            }
-        }
-    };
-
-    function getInteractiveScript() {
-        if (interactiveScript && interactiveScript.readyState === 'interactive') {
-            return interactiveScript;
-        }
-
-        eachReverse(scripts(), function (script) {
-            if (script.readyState === 'interactive') {
-                return (interactiveScript = script);
-            }
-        });
-        return interactiveScript;
-    }
-
-    //Look for a data-main script attribute, which could also adjust the baseUrl.
-    if (isBrowser && !cfg.skipDataMain) {
-        //Figure out baseUrl. Get it from the script tag with require.js in it.
-        eachReverse(scripts(), function (script) {
-            //Set the 'head' where we can append children by
-            //using the script's parent.
-            if (!head) {
-                head = script.parentNode;
-            }
-
-            //Look for a data-main attribute to set main script for the page
-            //to load. If it is there, the path to data main becomes the
-            //baseUrl, if it is not already set.
-            dataMain = script.getAttribute('data-main');
-            if (dataMain) {
-                //Preserve dataMain in case it is a path (i.e. contains '?')
-                mainScript = dataMain;
-
-                //Set final baseUrl if there is not already an explicit one.
-                if (!cfg.baseUrl) {
-                    //Pull off the directory of data-main for use as the
-                    //baseUrl.
-                    src = mainScript.split('/');
-                    mainScript = src.pop();
-                    subPath = src.length ? src.join('/')  + '/' : './';
-
-                    cfg.baseUrl = subPath;
-                }
-
-                //Strip off any trailing .js since mainScript is now
-                //like a module name.
-                mainScript = mainScript.replace(jsSuffixRegExp, '');
-
-                 //If mainScript is still a path, fall back to dataMain
-                if (req.jsExtRegExp.test(mainScript)) {
-                    mainScript = dataMain;
-                }
-
-                //Put the data-main script in the files to load.
-                cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript];
-
-                return true;
-            }
-        });
-    }
-
-    /**
-     * The function that handles definitions of modules. Differs from
-     * require() in that a string for the module should be the first argument,
-     * and the function to execute after dependencies are loaded should
-     * return a value to define the module corresponding to the first argument's
-     * name.
-     */
-    define = function (name, deps, callback) {
-        var node, context;
-
-        //Allow for anonymous modules
-        if (typeof name !== 'string') {
-            //Adjust args appropriately
-            callback = deps;
-            deps = name;
-            name = null;
-        }
-
-        //This module may not have dependencies
-        if (!isArray(deps)) {
-            callback = deps;
-            deps = null;
-        }
-
-        //If no name, and callback is a function, then figure out if it a
-        //CommonJS thing with dependencies.
-        if (!deps && isFunction(callback)) {
-            deps = [];
-            //Remove comments from the callback string,
-            //look for require calls, and pull them into the dependencies,
-            //but only if there are function args.
-            if (callback.length) {
-                callback
-                    .toString()
-                    .replace(commentRegExp, '')
-                    .replace(cjsRequireRegExp, function (match, dep) {
-                        deps.push(dep);
-                    });
-
-                //May be a CommonJS thing even without require calls, but still
-                //could use exports, and module. Avoid doing exports and module
-                //work though if it just needs require.
-                //REQUIRES the function to expect the CommonJS variables in the
-                //order listed below.
-                deps = (callback.length === 1 ? ['require'] : ['require', 'exports', 'module']).concat(deps);
-            }
-        }
-
-        //If in IE 6-8 and hit an anonymous define() call, do the interactive
-        //work.
-        if (useInteractive) {
-            node = currentlyAddingScript || getInteractiveScript();
-            if (node) {
-                if (!name) {
-                    name = node.getAttribute('data-requiremodule');
-                }
-                context = contexts[node.getAttribute('data-requirecontext')];
-            }
-        }
-
-        //Always save off evaluating the def call until the script onload handler.
-        //This allows multiple modules to be in a file without prematurely
-        //tracing dependencies, and allows for anonymous module support,
-        //where the module name is not known until the script onload event
-        //occurs. If no context, use the global queue, and get it processed
-        //in the onscript load callback.
-        (context ? context.defQueue : globalDefQueue).push([name, deps, callback]);
-    };
-
-    define.amd = {
-        jQuery: true
-    };
-
-
-    /**
-     * Executes the text. Normally just uses eval, but can be modified
-     * to use a better, environment-specific call. Only used for transpiling
-     * loader plugins, not for plain JS modules.
-     * @param {String} text the text to execute/evaluate.
-     */
-    req.exec = function (text) {
-        /*jslint evil: true */
-        return eval(text);
-    };
-
-    //Set up with config info.
-    req(cfg);
-}(this));
-
-
-
-    this.requirejsVars = {
-        require: require,
-        requirejs: require,
-        define: define
-    };
-
-    if (env === 'browser') {
-        /**
- * @license RequireJS rhino Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-//sloppy since eval enclosed with use strict causes problems if the source
-//text is not strict-compliant.
-/*jslint sloppy: true, evil: true */
-/*global require, XMLHttpRequest */
-
-(function () {
-    require.load = function (context, moduleName, url) {
-        var xhr = new XMLHttpRequest();
-
-        xhr.open('GET', url, true);
-        xhr.send();
-
-        xhr.onreadystatechange = function () {
-            if (xhr.readyState === 4) {
-                eval(xhr.responseText);
-
-                //Support anonymous modules.
-                context.completeLoad(moduleName);
-            }
-        };
-    };
-}());
-    } else if (env === 'rhino') {
-        /**
- * @license RequireJS rhino Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint */
-/*global require: false, java: false, load: false */
-
-(function () {
-    'use strict';
-    require.load = function (context, moduleName, url) {
-
-        load(url);
-
-        //Support anonymous modules.
-        context.completeLoad(moduleName);
-    };
-
-}());
-    } else if (env === 'node') {
-        this.requirejsVars.nodeRequire = nodeRequire;
-        require.nodeRequire = nodeRequire;
-
-        /**
- * @license RequireJS node Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint regexp: false */
-/*global require: false, define: false, requirejsVars: false, process: false */
-
-/**
- * This adapter assumes that x.js has loaded it and set up
- * some variables. This adapter just allows limited RequireJS
- * usage from within the requirejs directory. The general
- * node adapater is r.js.
- */
-
-(function () {
-    'use strict';
-
-    var nodeReq = requirejsVars.nodeRequire,
-        req = requirejsVars.require,
-        def = requirejsVars.define,
-        fs = nodeReq('fs'),
-        path = nodeReq('path'),
-        vm = nodeReq('vm'),
-        //In Node 0.7+ existsSync is on fs.
-        exists = fs.existsSync || path.existsSync,
-        hasOwn = Object.prototype.hasOwnProperty;
-
-    function hasProp(obj, prop) {
-        return hasOwn.call(obj, prop);
-    }
-
-    function syncTick(fn) {
-        fn();
-    }
-
-    function makeError(message, moduleName) {
-        var err = new Error(message);
-        err.requireModules = [moduleName];
-        return err;
-    }
-
-    //Supply an implementation that allows synchronous get of a module.
-    req.get = function (context, moduleName, relModuleMap, localRequire) {
-        if (moduleName === "require" || moduleName === "exports" || moduleName === "module") {
-            context.onError(makeError("Explicit require of " + moduleName + " is not allowed.", moduleName));
-        }
-
-        var ret, oldTick,
-            moduleMap = context.makeModuleMap(moduleName, relModuleMap, false, true);
-
-        //Normalize module name, if it contains . or ..
-        moduleName = moduleMap.id;
-
-        if (hasProp(context.defined, moduleName)) {
-            ret = context.defined[moduleName];
-        } else {
-            if (ret === undefined) {
-                //Make sure nextTick for this type of call is sync-based.
-                oldTick = context.nextTick;
-                context.nextTick = syncTick;
-                try {
-                    if (moduleMap.prefix) {
-                        //A plugin, call requirejs to handle it. Now that
-                        //nextTick is syncTick, the require will complete
-                        //synchronously.
-                        localRequire([moduleMap.originalName]);
-
-                        //Now that plugin is loaded, can regenerate the moduleMap
-                        //to get the final, normalized ID.
-                        moduleMap = context.makeModuleMap(moduleMap.originalName, relModuleMap, false, true);
-                        moduleName = moduleMap.id;
-                    } else {
-                        //Try to dynamically fetch it.
-                        req.load(context, moduleName, moduleMap.url);
-
-                        //Enable the module
-                        context.enable(moduleMap, relModuleMap);
-                    }
-
-                    //Break any cycles by requiring it normally, but this will
-                    //finish synchronously
-                    require([moduleName]);
-
-                    //The above calls are sync, so can do the next thing safely.
-                    ret = context.defined[moduleName];
-                } finally {
-                    context.nextTick = oldTick;
-                }
-            }
-        }
-
-        return ret;
-    };
-
-    req.nextTick = function (fn) {
-        process.nextTick(fn);
-    };
-
-    //Add wrapper around the code so that it gets the requirejs
-    //API instead of the Node API, and it is done lexically so
-    //that it survives later execution.
-    req.makeNodeWrapper = function (contents) {
-        return '(function (require, requirejs, define) { ' +
-                contents +
-                '\n}(requirejsVars.require, requirejsVars.requirejs, requirejsVars.define));';
-    };
-
-    req.load = function (context, moduleName, url) {
-        var contents, err,
-            config = context.config;
-
-        if (config.shim[moduleName] && (!config.suppress || !config.suppress.nodeShim)) {
-            console.warn('Shim config not supported in Node, may or may not work. Detected ' +
-                            'for module: ' + moduleName);
-        }
-
-        if (exists(url)) {
-            contents = fs.readFileSync(url, 'utf8');
-
-            contents = req.makeNodeWrapper(contents);
-            try {
-                vm.runInThisContext(contents, fs.realpathSync(url));
-            } catch (e) {
-                err = new Error('Evaluating ' + url + ' as module "' +
-                                moduleName + '" failed with error: ' + e);
-                err.originalError = e;
-                err.moduleName = moduleName;
-                err.requireModules = [moduleName];
-                err.fileName = url;
-                return context.onError(err);
-            }
-        } else {
-            def(moduleName, function () {
-                //Get the original name, since relative requires may be
-                //resolved differently in node (issue #202). Also, if relative,
-                //make it relative to the URL of the item requesting it
-                //(issue #393)
-                var dirName,
-                    map = hasProp(context.registry, moduleName) &&
-                            context.registry[moduleName].map,
-                    parentMap = map && map.parentMap,
-                    originalName = map && map.originalName;
-
-                if (originalName.charAt(0) === '.' && parentMap) {
-                    dirName = parentMap.url.split('/');
-                    dirName.pop();
-                    originalName = dirName.join('/') + '/' + originalName;
-                }
-
-                try {
-                    return (context.config.nodeRequire || req.nodeRequire)(originalName);
-                } catch (e) {
-                    err = new Error('Tried loading "' + moduleName + '" at ' +
-                                     url + ' then tried node\'s require("' +
-                                        originalName + '") and it failed ' +
-                                     'with error: ' + e);
-                    err.originalError = e;
-                    err.moduleName = originalName;
-                    err.requireModules = [moduleName];
-                    throw err;
-                }
-            });
-        }
-
-        //Support anonymous modules.
-        context.completeLoad(moduleName);
-    };
-
-    //Override to provide the function wrapper for define/require.
-    req.exec = function (text) {
-        /*jslint evil: true */
-        text = req.makeNodeWrapper(text);
-        return eval(text);
-    };
-}());
-
-    } else if (env === 'xpconnect') {
-        /**
- * @license RequireJS xpconnect Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint */
-/*global require, load */
-
-(function () {
-    'use strict';
-    require.load = function (context, moduleName, url) {
-
-        load(url);
-
-        //Support anonymous modules.
-        context.completeLoad(moduleName);
-    };
-
-}());
-
-    }
-
-    //Support a default file name to execute. Useful for hosted envs
-    //like Joyent where it defaults to a server.js as the only executed
-    //script. But only do it if this is not an optimization run.
-    if (commandOption !== 'o' && (!fileName || !jsSuffixRegExp.test(fileName))) {
-        fileName = 'main.js';
-    }
-
-    /**
-     * Loads the library files that can be used for the optimizer, or for other
-     * tasks.
-     */
-    function loadLib() {
-        /**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global Packages: false, process: false, window: false, navigator: false,
-  document: false, define: false */
-
-/**
- * A plugin that modifies any /env/ path to be the right path based on
- * the host environment. Right now only works for Node, Rhino and browser.
- */
-(function () {
-    var pathRegExp = /(\/|^)env\/|\{env\}/,
-        env = 'unknown';
-
-    if (typeof Packages !== 'undefined') {
-        env = 'rhino';
-    } else if (typeof process !== 'undefined' && process.versions && !!process.versions.node) {
-        env = 'node';
-    } else if ((typeof navigator !== 'undefined' && typeof document !== 'undefined') ||
-            (typeof importScripts !== 'undefined' && typeof self !== 'undefined')) {
-        env = 'browser';
-    } else if (typeof Components !== 'undefined' && Components.classes && Components.interfaces) {
-        env = 'xpconnect';
-    }
-
-    define('env', {
-        get: function () {
-            return env;
-        },
-
-        load: function (name, req, load, config) {
-            //Allow override in the config.
-            if (config.env) {
-                env = config.env;
-            }
-
-            name = name.replace(pathRegExp, function (match, prefix) {
-                if (match.indexOf('{') === -1) {
-                    return prefix + env + '/';
-                } else {
-                    return env;
-                }
-            });
-
-            req([name], function (mod) {
-                load(mod);
-            });
-        }
-    });
-}());/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true */
-/*global define, java */
-
-define('lang', function () {
-    'use strict';
-
-    var lang, isJavaObj,
-        hasOwn = Object.prototype.hasOwnProperty;
-
-    function hasProp(obj, prop) {
-        return hasOwn.call(obj, prop);
-    }
-
-    isJavaObj = function () {
-        return false;
-    };
-
-    if (typeof java !== 'undefined' && java.lang && java.lang.Object) {
-        isJavaObj = function (obj) {
-            return obj instanceof java.lang.Object;
-        };
-    }
-
-    lang = {
-        backSlashRegExp: /\\/g,
-        ostring: Object.prototype.toString,
-
-        isArray: Array.isArray || function (it) {
-            return lang.ostring.call(it) === "[object Array]";
-        },
-
-        isFunction: function(it) {
-            return lang.ostring.call(it) === "[object Function]";
-        },
-
-        isRegExp: function(it) {
-            return it && it instanceof RegExp;
-        },
-
-        hasProp: hasProp,
-
-        //returns true if the object does not have an own property prop,
-        //or if it does, it is a falsy value.
-        falseProp: function (obj, prop) {
-            return !hasProp(obj, prop) || !obj[prop];
-        },
-
-        //gets own property value for given prop on object
-        getOwn: function (obj, prop) {
-            return hasProp(obj, prop) && obj[prop];
-        },
-
-        _mixin: function(dest, source, override){
-            var name;
-            for (name in source) {
-                if(source.hasOwnProperty(name) &&
-                    (override || !dest.hasOwnProperty(name))) {
-                    dest[name] = source[name];
-                }
-            }
-
-            return dest; // Object
-        },
-
-        /**
-         * mixin({}, obj1, obj2) is allowed. If the last argument is a boolean,
-         * then the source objects properties are force copied over to dest.
-         */
-        mixin: function(dest){
-            var parameters = Array.prototype.slice.call(arguments),
-                override, i, l;
-
-            if (!dest) { dest = {}; }
-
-            if (parameters.length > 2 && typeof arguments[parameters.length-1] === 'boolean') {
-                override = parameters.pop();
-            }
-
-            for (i = 1, l = parameters.length; i < l; i++) {
-                lang._mixin(dest, parameters[i], override);
-            }
-            return dest; // Object
-        },
-
-
-        /**
-         * Does a type of deep copy. Do not give it anything fancy, best
-         * for basic object copies of objects that also work well as
-         * JSON-serialized things, or has properties pointing to functions.
-         * For non-array/object values, just returns the same object.
-         * @param  {Object} obj      copy properties from this object
-         * @param  {Object} [result] optional result object to use
-         * @return {Object}
-         */
-        deeplikeCopy: function (obj) {
-            var type, result;
-
-            if (lang.isArray(obj)) {
-                result = [];
-                obj.forEach(function(value) {
-                    result.push(lang.deeplikeCopy(value));
-                });
-                return result;
-            }
-
-            type = typeof obj;
-            if (obj === null || obj === undefined || type === 'boolean' ||
-                type === 'string' || type === 'number' || lang.isFunction(obj) ||
-                lang.isRegExp(obj)|| isJavaObj(obj)) {
-                return obj;
-            }
-
-            //Anything else is an object, hopefully.
-            result = {};
-            lang.eachProp(obj, function(value, key) {
-                result[key] = lang.deeplikeCopy(value);
-            });
-            return result;
-        },
-
-        delegate: (function () {
-            // boodman/crockford delegation w/ cornford optimization
-            function TMP() {}
-            return function (obj, props) {
-                TMP.prototype = obj;
-                var tmp = new TMP();
-                TMP.prototype = null;
-                if (props) {
-                    lang.mixin(tmp, props);
-                }
-                return tmp; // Object
-            };
-        }()),
-
-        /**
-         * Helper function for iterating over an array. If the func returns
-         * a true value, it will break out of the loop.
-         */
-        each: function each(ary, func) {
-            if (ary) {
-                var i;
-                for (i = 0; i < ary.length; i += 1) {
-                    if (func(ary[i], i, ary)) {
-                        break;
-                    }
-                }
-            }
-        },
-
-        /**
-         * Cycles over properties in an object and calls a function for each
-         * property value. If the function returns a truthy value, then the
-         * iteration is stopped.
-         */
-        eachProp: function eachProp(obj, func) {
-            var prop;
-            for (prop in obj) {
-                if (hasProp(obj, prop)) {
-                    if (func(obj[prop], prop)) {
-                        break;
-                    }
-                }
-            }
-        },
-
-        //Similar to Function.prototype.bind, but the "this" object is specified
-        //first, since it is easier to read/figure out what "this" will be.
-        bind: function bind(obj, fn) {
-            return function () {
-                return fn.apply(obj, arguments);
-            };
-        },
-
-        //Escapes a content string to be be a string that has characters escaped
-        //for inclusion as part of a JS string.
-        jsEscape: function (content) {
-            return content.replace(/(["'\\])/g, '\\$1')
-                .replace(/[\f]/g, "\\f")
-                .replace(/[\b]/g, "\\b")
-                .replace(/[\n]/g, "\\n")
-                .replace(/[\t]/g, "\\t")
-                .replace(/[\r]/g, "\\r");
-        }
-    };
-    return lang;
-});
-/**
- * prim 0.0.1 Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/requirejs/prim for details
- */
-
-/*global setImmediate, process, setTimeout, define, module */
-
-//Set prime.hideResolutionConflict = true to allow "resolution-races"
-//in promise-tests to pass.
-//Since the goal of prim is to be a small impl for trusted code, it is
-//more important to normally throw in this case so that we can find
-//logic errors quicker.
-
-var prim;
-(function () {
-    'use strict';
-    var op = Object.prototype,
-        hasOwn = op.hasOwnProperty;
-
-    function hasProp(obj, prop) {
-        return hasOwn.call(obj, prop);
-    }
-
-    /**
-     * Helper function for iterating over an array. If the func returns
-     * a true value, it will break out of the loop.
-     */
-    function each(ary, func) {
-        if (ary) {
-            var i;
-            for (i = 0; i < ary.length; i += 1) {
-                if (ary[i]) {
-                    func(ary[i], i, ary);
-                }
-            }
-        }
-    }
-
-    function check(p) {
-        if (hasProp(p, 'e') || hasProp(p, 'v')) {
-            if (!prim.hideResolutionConflict) {
-                throw new Error('nope');
-            }
-            return false;
-        }
-        return true;
-    }
-
-    function notify(ary, value) {
-        prim.nextTick(function () {
-            each(ary, function (item) {
-                item(value);
-            });
-        });
-    }
-
-    prim = function prim() {
-        var p,
-            ok = [],
-            fail = [];
-
-        return (p = {
-            callback: function (yes, no) {
-                if (no) {
-                    p.errback(no);
-                }
-
-                if (hasProp(p, 'v')) {
-                    prim.nextTick(function () {
-                        yes(p.v);
-                    });
-                } else {
-                    ok.push(yes);
-                }
-            },
-
-            errback: function (no) {
-                if (hasProp(p, 'e')) {
-                    prim.nextTick(function () {
-                        no(p.e);
-                    });
-                } else {
-                    fail.push(no);
-                }
-            },
-
-            finished: function () {
-                return hasProp(p, 'e') || hasProp(p, 'v');
-            },
-
-            rejected: function () {
-                return hasProp(p, 'e');
-            },
-
-            resolve: function (v) {
-                if (check(p)) {
-                    p.v = v;
-                    notify(ok, v);
-                }
-                return p;
-            },
-            reject: function (e) {
-                if (check(p)) {
-                    p.e = e;
-                    notify(fail, e);
-                }
-                return p;
-            },
-
-            start: function (fn) {
-                p.resolve();
-                return p.promise.then(fn);
-            },
-
-            promise: {
-                then: function (yes, no) {
-                    var next = prim();
-
-                    p.callback(function (v) {
-                        try {
-                            if (yes && typeof yes === 'function') {
-                                v = yes(v);
-                            }
-
-                            if (v && v.then) {
-                                v.then(next.resolve, next.reject);
-                            } else {
-                                next.resolve(v);
-                            }
-                        } catch (e) {
-                            next.reject(e);
-                        }
-                    }, function (e) {
-                        var err;
-
-                        try {
-                            if (!no || typeof no !== 'function') {
-                                next.reject(e);
-                            } else {
-                                err = no(e);
-
-                                if (err && err.then) {
-                                    err.then(next.resolve, next.reject);
-                                } else {
-                                    next.resolve(err);
-                                }
-                            }
-                        } catch (e2) {
-                            next.reject(e2);
-                        }
-                    });
-
-                    return next.promise;
-                },
-
-                fail: function (no) {
-                    return p.promise.then(null, no);
-                },
-
-                end: function () {
-                    p.errback(function (e) {
-                        throw e;
-                    });
-                }
-            }
-        });
-    };
-
-    prim.serial = function (ary) {
-        var result = prim().resolve().promise;
-        each(ary, function (item) {
-            result = result.then(function () {
-                return item();
-            });
-        });
-        return result;
-    };
-
-    prim.nextTick = typeof setImmediate === 'function' ? setImmediate :
-        (typeof process !== 'undefined' && process.nextTick ?
-            process.nextTick : (typeof setTimeout !== 'undefined' ?
-                function (fn) {
-                setTimeout(fn, 0);
-            } : function (fn) {
-        fn();
-    }));
-
-    if (typeof define === 'function' && define.amd) {
-        define('prim', function () { return prim; });
-    } else if (typeof module !== 'undefined' && module.exports) {
-        module.exports = prim;
-    }
-}());
-if(env === 'browser') {
-/**
- * @license RequireJS Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-//Just a stub for use with uglify's consolidator.js
-define('browser/assert', function () {
-    return {};
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license RequireJS Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-//Needed so that rhino/assert can return a stub for uglify's consolidator.js
-define('node/assert', ['assert'], function (assert) {
-    return assert;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-//Just a stub for use with uglify's consolidator.js
-define('rhino/assert', function () {
-    return {};
-});
-
-}
-
-if(env === 'xpconnect') {
-/**
- * @license RequireJS Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-//Just a stub for use with uglify's consolidator.js
-define('xpconnect/assert', function () {
-    return {};
-});
-
-}
-
-if(env === 'browser') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, process: false */
-
-define('browser/args', function () {
-    //Always expect config via an API call
-    return [];
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, process: false */
-
-define('node/args', function () {
-    //Do not return the "node" or "r.js" arguments
-    var args = process.argv.slice(2);
-
-    //Ignore any command option used for main x.js branching
-    if (args[0] && args[0].indexOf('-') === 0) {
-        args = args.slice(1);
-    }
-
-    return args;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, process: false */
-
-var jsLibRhinoArgs = (typeof rhinoArgs !== 'undefined' && rhinoArgs) || [].concat(Array.prototype.slice.call(arguments, 0));
-
-define('rhino/args', function () {
-    var args = jsLibRhinoArgs;
-
-    //Ignore any command option used for main x.js branching
-    if (args[0] && args[0].indexOf('-') === 0) {
-        args = args.slice(1);
-    }
-
-    return args;
-});
-
-}
-
-if(env === 'xpconnect') {
-/**
- * @license Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define, xpconnectArgs */
-
-var jsLibXpConnectArgs = (typeof xpconnectArgs !== 'undefined' && xpconnectArgs) || [].concat(Array.prototype.slice.call(arguments, 0));
-
-define('xpconnect/args', function () {
-    var args = jsLibXpConnectArgs;
-
-    //Ignore any command option used for main x.js branching
-    if (args[0] && args[0].indexOf('-') === 0) {
-        args = args.slice(1);
-    }
-
-    return args;
-});
-
-}
-
-if(env === 'browser') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('browser/load', ['./file'], function (file) {
-    function load(fileName) {
-        eval(file.readFile(fileName));
-    }
-
-    return load;
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('node/load', ['fs'], function (fs) {
-    function load(fileName) {
-        var contents = fs.readFileSync(fileName, 'utf8');
-        process.compile(contents, fileName);
-    }
-
-    return load;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-define('rhino/load', function () {
-    return load;
-});
-
-}
-
-if(env === 'xpconnect') {
-/**
- * @license RequireJS Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, load: false */
-
-define('xpconnect/load', function () {
-    return load;
-});
-
-}
-
-if(env === 'browser') {
-/**
- * @license Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint sloppy: true, nomen: true */
-/*global require, define, console, XMLHttpRequest, requirejs, location */
-
-define('browser/file', ['prim'], function (prim) {
-
-    var file,
-        currDirRegExp = /^\.(\/|$)/;
-
-    function frontSlash(path) {
-        return path.replace(/\\/g, '/');
-    }
-
-    function exists(path) {
-        var status, xhr = new XMLHttpRequest();
-
-        //Oh yeah, that is right SYNC IO. Behold its glory
-        //and horrible blocking behavior.
-        xhr.open('HEAD', path, false);
-        xhr.send();
-        status = xhr.status;
-
-        return status === 200 || status === 304;
-    }
-
-    function mkDir(dir) {
-        console.log('mkDir is no-op in browser');
-    }
-
-    function mkFullDir(dir) {
-        console.log('mkFullDir is no-op in browser');
-    }
-
-    file = {
-        backSlashRegExp: /\\/g,
-        exclusionRegExp: /^\./,
-        getLineSeparator: function () {
-            return '/';
-        },
-
-        exists: function (fileName) {
-            return exists(fileName);
-        },
-
-        parent: function (fileName) {
-            var parts = fileName.split('/');
-            parts.pop();
-            return parts.join('/');
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {String} fileName
-         */
-        absPath: function (fileName) {
-            var dir;
-            if (currDirRegExp.test(fileName)) {
-                dir = frontSlash(location.href);
-                if (dir.indexOf('/') !== -1) {
-                    dir = dir.split('/');
-
-                    //Pull off protocol and host, just want
-                    //to allow paths (other build parts, like
-                    //require._isSupportedBuildUrl do not support
-                    //full URLs), but a full path from
-                    //the root.
-                    dir.splice(0, 3);
-
-                    dir.pop();
-                    dir = '/' + dir.join('/');
-                }
-
-                fileName = dir + fileName.substring(1);
-            }
-
-            return fileName;
-        },
-
-        normalize: function (fileName) {
-            return fileName;
-        },
-
-        isFile: function (path) {
-            return true;
-        },
-
-        isDirectory: function (path) {
-            return false;
-        },
-
-        getFilteredFileList: function (startDir, regExpFilters, makeUnixPaths) {
-            console.log('file.getFilteredFileList is no-op in browser');
-        },
-
-        copyDir: function (srcDir, destDir, regExpFilter, onlyCopyNew) {
-            console.log('file.copyDir is no-op in browser');
-
-        },
-
-        copyFile: function (srcFileName, destFileName, onlyCopyNew) {
-            console.log('file.copyFile is no-op in browser');
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            console.log('file.renameFile is no-op in browser');
-        },
-
-        /**
-         * Reads a *text* file.
-         */
-        readFile: function (path, encoding) {
-            var xhr = new XMLHttpRequest();
-
-            //Oh yeah, that is right SYNC IO. Behold its glory
-            //and horrible blocking behavior.
-            xhr.open('GET', path, false);
-            xhr.send();
-
-            return xhr.responseText;
-        },
-
-        readFileAsync: function (path, encoding) {
-            var xhr = new XMLHttpRequest(),
-                d = prim();
-
-            xhr.open('GET', path, true);
-            xhr.send();
-
-            xhr.onreadystatechange = function () {
-                if (xhr.readyState === 4) {
-                    if (xhr.status > 400) {
-                        d.reject(new Error('Status: ' + xhr.status + ': ' + xhr.statusText));
-                    } else {
-                        d.resolve(xhr.responseText);
-                    }
-                }
-            };
-
-            return d.promise;
-        },
-
-        saveUtf8File: function (fileName, fileContents) {
-            //summary: saves a *text* file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf8");
-        },
-
-        saveFile: function (fileName, fileContents, encoding) {
-            requirejs.browser.saveFile(fileName, fileContents, encoding);
-        },
-
-        deleteFile: function (fileName) {
-            console.log('file.deleteFile is no-op in browser');
-        },
-
-        /**
-         * Deletes any empty directories under the given directory.
-         */
-        deleteEmptyDirs: function (startDir) {
-            console.log('file.deleteEmptyDirs is no-op in browser');
-        }
-    };
-
-    return file;
-
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: false, octal:false, strict: false */
-/*global define: false, process: false */
-
-define('node/file', ['fs', 'path', 'prim'], function (fs, path, prim) {
-
-    var isWindows = process.platform === 'win32',
-        windowsDriveRegExp = /^[a-zA-Z]\:\/$/,
-        file;
-
-    function frontSlash(path) {
-        return path.replace(/\\/g, '/');
-    }
-
-    function exists(path) {
-        if (isWindows && path.charAt(path.length - 1) === '/' &&
-            path.charAt(path.length - 2) !== ':') {
-            path = path.substring(0, path.length - 1);
-        }
-
-        try {
-            fs.statSync(path);
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    function mkDir(dir) {
-        if (!exists(dir) && (!isWindows || !windowsDriveRegExp.test(dir))) {
-            fs.mkdirSync(dir, 511);
-        }
-    }
-
-    function mkFullDir(dir) {
-        var parts = dir.split('/'),
-            currDir = '',
-            first = true;
-
-        parts.forEach(function (part) {
-            //First part may be empty string if path starts with a slash.
-            currDir += part + '/';
-            first = false;
-
-            if (part) {
-                mkDir(currDir);
-            }
-        });
-    }
-
-    file = {
-        backSlashRegExp: /\\/g,
-        exclusionRegExp: /^\./,
-        getLineSeparator: function () {
-            return '/';
-        },
-
-        exists: function (fileName) {
-            return exists(fileName);
-        },
-
-        parent: function (fileName) {
-            var parts = fileName.split('/');
-            parts.pop();
-            return parts.join('/');
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {String} fileName
-         */
-        absPath: function (fileName) {
-            return frontSlash(path.normalize(frontSlash(fs.realpathSync(fileName))));
-        },
-
-        normalize: function (fileName) {
-            return frontSlash(path.normalize(fileName));
-        },
-
-        isFile: function (path) {
-            return fs.statSync(path).isFile();
-        },
-
-        isDirectory: function (path) {
-            return fs.statSync(path).isDirectory();
-        },
-
-        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths) {
-            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
-            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
-            //and it will be treated as the "include" case.
-            //Ignores files/directories that start with a period (.) unless exclusionRegExp
-            //is set to another value.
-            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
-                i, stat, filePath, ok, dirFiles, fileName;
-
-            topDir = startDir;
-
-            regExpInclude = regExpFilters.include || regExpFilters;
-            regExpExclude = regExpFilters.exclude || null;
-
-            if (file.exists(topDir)) {
-                dirFileArray = fs.readdirSync(topDir);
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileName = dirFileArray[i];
-                    filePath = path.join(topDir, fileName);
-                    stat = fs.statSync(filePath);
-                    if (stat.isFile()) {
-                        if (makeUnixPaths) {
-                            //Make sure we have a JS string.
-                            if (filePath.indexOf("/") === -1) {
-                                filePath = frontSlash(filePath);
-                            }
-                        }
-
-                        ok = true;
-                        if (regExpInclude) {
-                            ok = filePath.match(regExpInclude);
-                        }
-                        if (ok && regExpExclude) {
-                            ok = !filePath.match(regExpExclude);
-                        }
-
-                        if (ok && (!file.exclusionRegExp ||
-                            !file.exclusionRegExp.test(fileName))) {
-                            files.push(filePath);
-                        }
-                    } else if (stat.isDirectory() &&
-                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileName))) {
-                        dirFiles = this.getFilteredFileList(filePath, regExpFilters, makeUnixPaths);
-                        files.push.apply(files, dirFiles);
-                    }
-                }
-            }
-
-            return files; //Array
-        },
-
-        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
-            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
-            //file should be copied. Returns a list file name strings of the destinations that were copied.
-            regExpFilter = regExpFilter || /\w/;
-
-            //Normalize th directory names, but keep front slashes.
-            //path module on windows now returns backslashed paths.
-            srcDir = frontSlash(path.normalize(srcDir));
-            destDir = frontSlash(path.normalize(destDir));
-
-            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
-            copiedFiles = [], i, srcFileName, destFileName;
-
-            for (i = 0; i < fileNames.length; i++) {
-                srcFileName = fileNames[i];
-                destFileName = srcFileName.replace(srcDir, destDir);
-
-                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
-                    copiedFiles.push(destFileName);
-                }
-            }
-
-            return copiedFiles.length ? copiedFiles : null; //Array or null
-        },
-
-        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
-            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
-            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
-            var parentDir;
-
-            //logger.trace("Src filename: " + srcFileName);
-            //logger.trace("Dest filename: " + destFileName);
-
-            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
-            //than dest.
-            if (onlyCopyNew) {
-                if (file.exists(destFileName) && fs.statSync(destFileName).mtime.getTime() >= fs.statSync(srcFileName).mtime.getTime()) {
-                    return false; //Boolean
-                }
-            }
-
-            //Make sure destination dir exists.
-            parentDir = path.dirname(destFileName);
-            if (!file.exists(parentDir)) {
-                mkFullDir(parentDir);
-            }
-
-            fs.writeFileSync(destFileName, fs.readFileSync(srcFileName, 'binary'), 'binary');
-
-            return true; //Boolean
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            return fs.renameSync(from, to);
-        },
-
-        /**
-         * Reads a *text* file.
-         */
-        readFile: function (/*String*/path, /*String?*/encoding) {
-            if (encoding === 'utf-8') {
-                encoding = 'utf8';
-            }
-            if (!encoding) {
-                encoding = 'utf8';
-            }
-
-            var text = fs.readFileSync(path, encoding);
-
-            //Hmm, would not expect to get A BOM, but it seems to happen,
-            //remove it just in case.
-            if (text.indexOf('\uFEFF') === 0) {
-                text = text.substring(1, text.length);
-            }
-
-            return text;
-        },
-
-        readFileAsync: function (path, encoding) {
-            var d = prim();
-            try {
-                d.resolve(file.readFile(path, encoding));
-            } catch (e) {
-                d.reject(e);
-            }
-            return d.promise;
-        },
-
-        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
-            //summary: saves a *text* file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf8");
-        },
-
-        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
-            //summary: saves a *text* file.
-            var parentDir;
-
-            if (encoding === 'utf-8') {
-                encoding = 'utf8';
-            }
-            if (!encoding) {
-                encoding = 'utf8';
-            }
-
-            //Make sure destination directories exist.
-            parentDir = path.dirname(fileName);
-            if (!file.exists(parentDir)) {
-                mkFullDir(parentDir);
-            }
-
-            fs.writeFileSync(fileName, fileContents, encoding);
-        },
-
-        deleteFile: function (/*String*/fileName) {
-            //summary: deletes a file or directory if it exists.
-            var files, i, stat;
-            if (file.exists(fileName)) {
-                stat = fs.lstatSync(fileName);
-                if (stat.isDirectory()) {
-                    files = fs.readdirSync(fileName);
-                    for (i = 0; i < files.length; i++) {
-                        this.deleteFile(path.join(fileName, files[i]));
-                    }
-                    fs.rmdirSync(fileName);
-                } else {
-                    fs.unlinkSync(fileName);
-                }
-            }
-        },
-
-
-        /**
-         * Deletes any empty directories under the given directory.
-         */
-        deleteEmptyDirs: function (startDir) {
-            var dirFileArray, i, fileName, filePath, stat;
-
-            if (file.exists(startDir)) {
-                dirFileArray = fs.readdirSync(startDir);
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileName = dirFileArray[i];
-                    filePath = path.join(startDir, fileName);
-                    stat = fs.lstatSync(filePath);
-                    if (stat.isDirectory()) {
-                        file.deleteEmptyDirs(filePath);
-                    }
-                }
-
-                //If directory is now empty, remove it.
-                if (fs.readdirSync(startDir).length ===  0) {
-                    file.deleteFile(startDir);
-                }
-            }
-        }
-    };
-
-    return file;
-
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-//Helper functions to deal with file I/O.
-
-/*jslint plusplus: false */
-/*global java: false, define: false */
-
-define('rhino/file', ['prim'], function (prim) {
-    var file = {
-        backSlashRegExp: /\\/g,
-
-        exclusionRegExp: /^\./,
-
-        getLineSeparator: function () {
-            return file.lineSeparator;
-        },
-
-        lineSeparator: java.lang.System.getProperty("line.separator"), //Java String
-
-        exists: function (fileName) {
-            return (new java.io.File(fileName)).exists();
-        },
-
-        parent: function (fileName) {
-            return file.absPath((new java.io.File(fileName)).getParentFile());
-        },
-
-        normalize: function (fileName) {
-            return file.absPath(fileName);
-        },
-
-        isFile: function (path) {
-            return (new java.io.File(path)).isFile();
-        },
-
-        isDirectory: function (path) {
-            return (new java.io.File(path)).isDirectory();
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {java.io.File||String} file
-         */
-        absPath: function (fileObj) {
-            if (typeof fileObj === "string") {
-                fileObj = new java.io.File(fileObj);
-            }
-            return (fileObj.getCanonicalPath() + "").replace(file.backSlashRegExp, "/");
-        },
-
-        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsJavaObject) {
-            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
-            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
-            //and it will be treated as the "include" case.
-            //Ignores files/directories that start with a period (.) unless exclusionRegExp
-            //is set to another value.
-            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
-                i, fileObj, filePath, ok, dirFiles;
-
-            topDir = startDir;
-            if (!startDirIsJavaObject) {
-                topDir = new java.io.File(startDir);
-            }
-
-            regExpInclude = regExpFilters.include || regExpFilters;
-            regExpExclude = regExpFilters.exclude || null;
-
-            if (topDir.exists()) {
-                dirFileArray = topDir.listFiles();
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileObj = dirFileArray[i];
-                    if (fileObj.isFile()) {
-                        filePath = fileObj.getPath();
-                        if (makeUnixPaths) {
-                            //Make sure we have a JS string.
-                            filePath = String(filePath);
-                            if (filePath.indexOf("/") === -1) {
-                                filePath = filePath.replace(/\\/g, "/");
-                            }
-                        }
-
-                        ok = true;
-                        if (regExpInclude) {
-                            ok = filePath.match(regExpInclude);
-                        }
-                        if (ok && regExpExclude) {
-                            ok = !filePath.match(regExpExclude);
-                        }
-
-                        if (ok && (!file.exclusionRegExp ||
-                            !file.exclusionRegExp.test(fileObj.getName()))) {
-                            files.push(filePath);
-                        }
-                    } else if (fileObj.isDirectory() &&
-                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.getName()))) {
-                        dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
-                        files.push.apply(files, dirFiles);
-                    }
-                }
-            }
-
-            return files; //Array
-        },
-
-        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
-            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
-            //file should be copied. Returns a list file name strings of the destinations that were copied.
-            regExpFilter = regExpFilter || /\w/;
-
-            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
-            copiedFiles = [], i, srcFileName, destFileName;
-
-            for (i = 0; i < fileNames.length; i++) {
-                srcFileName = fileNames[i];
-                destFileName = srcFileName.replace(srcDir, destDir);
-
-                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
-                    copiedFiles.push(destFileName);
-                }
-            }
-
-            return copiedFiles.length ? copiedFiles : null; //Array or null
-        },
-
-        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
-            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
-            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
-            var destFile = new java.io.File(destFileName), srcFile, parentDir,
-            srcChannel, destChannel;
-
-            //logger.trace("Src filename: " + srcFileName);
-            //logger.trace("Dest filename: " + destFileName);
-
-            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
-            //than dest.
-            if (onlyCopyNew) {
-                srcFile = new java.io.File(srcFileName);
-                if (destFile.exists() && destFile.lastModified() >= srcFile.lastModified()) {
-                    return false; //Boolean
-                }
-            }
-
-            //Make sure destination dir exists.
-            parentDir = destFile.getParentFile();
-            if (!parentDir.exists()) {
-                if (!parentDir.mkdirs()) {
-                    throw "Could not create directory: " + parentDir.getCanonicalPath();
-                }
-            }
-
-            //Java's version of copy file.
-            srcChannel = new java.io.FileInputStream(srcFileName).getChannel();
-            destChannel = new java.io.FileOutputStream(destFileName).getChannel();
-            destChannel.transferFrom(srcChannel, 0, srcChannel.size());
-            srcChannel.close();
-            destChannel.close();
-
-            return true; //Boolean
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            return (new java.io.File(from)).renameTo((new java.io.File(to)));
-        },
-
-        readFile: function (/*String*/path, /*String?*/encoding) {
-            //A file read function that can deal with BOMs
-            encoding = encoding || "utf-8";
-            var fileObj = new java.io.File(path),
-                    input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(fileObj), encoding)),
-                    stringBuffer, line;
-            try {
-                stringBuffer = new java.lang.StringBuffer();
-                line = input.readLine();
-
-                // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
-                // http://www.unicode.org/faq/utf_bom.html
-
-                // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
-                // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
-                if (line && line.length() && line.charAt(0) === 0xfeff) {
-                    // Eat the BOM, since we've already found the encoding on this file,
-                    // and we plan to concatenating this buffer with others; the BOM should
-                    // only appear at the top of a file.
-                    line = line.substring(1);
-                }
-                while (line !== null) {
-                    stringBuffer.append(line);
-                    stringBuffer.append(file.lineSeparator);
-                    line = input.readLine();
-                }
-                //Make sure we return a JavaScript string and not a Java string.
-                return String(stringBuffer.toString()); //String
-            } finally {
-                input.close();
-            }
-        },
-
-        readFileAsync: function (path, encoding) {
-            var d = prim();
-            try {
-                d.resolve(file.readFile(path, encoding));
-            } catch (e) {
-                d.reject(e);
-            }
-            return d.promise;
-        },
-
-        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
-            //summary: saves a file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf-8");
-        },
-
-        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
-            //summary: saves a file.
-            var outFile = new java.io.File(fileName), outWriter, parentDir, os;
-
-            parentDir = outFile.getAbsoluteFile().getParentFile();
-            if (!parentDir.exists()) {
-                if (!parentDir.mkdirs()) {
-                    throw "Could not create directory: " + parentDir.getAbsolutePath();
-                }
-            }
-
-            if (encoding) {
-                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile), encoding);
-            } else {
-                outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile));
-            }
-
-            os = new java.io.BufferedWriter(outWriter);
-            try {
-                os.write(fileContents);
-            } finally {
-                os.close();
-            }
-        },
-
-        deleteFile: function (/*String*/fileName) {
-            //summary: deletes a file or directory if it exists.
-            var fileObj = new java.io.File(fileName), files, i;
-            if (fileObj.exists()) {
-                if (fileObj.isDirectory()) {
-                    files = fileObj.listFiles();
-                    for (i = 0; i < files.length; i++) {
-                        this.deleteFile(files[i]);
-                    }
-                }
-                fileObj["delete"]();
-            }
-        },
-
-        /**
-         * Deletes any empty directories under the given directory.
-         * The startDirIsJavaObject is private to this implementation's
-         * recursion needs.
-         */
-        deleteEmptyDirs: function (startDir, startDirIsJavaObject) {
-            var topDir = startDir,
-                dirFileArray, i, fileObj;
-
-            if (!startDirIsJavaObject) {
-                topDir = new java.io.File(startDir);
-            }
-
-            if (topDir.exists()) {
-                dirFileArray = topDir.listFiles();
-                for (i = 0; i < dirFileArray.length; i++) {
-                    fileObj = dirFileArray[i];
-                    if (fileObj.isDirectory()) {
-                        file.deleteEmptyDirs(fileObj, true);
-                    }
-                }
-
-                //If the directory is empty now, delete it.
-                if (topDir.listFiles().length === 0) {
-                    file.deleteFile(String(topDir.getPath()));
-                }
-            }
-        }
-    };
-
-    return file;
-});
-
-}
-
-if(env === 'xpconnect') {
-/**
- * @license RequireJS Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-//Helper functions to deal with file I/O.
-
-/*jslint plusplus: false */
-/*global define, Components, xpcUtil */
-
-define('xpconnect/file', ['prim'], function (prim) {
-    var file,
-        Cc = Components.classes,
-        Ci = Components.interfaces,
-        //Depends on xpcUtil which is set up in x.js
-        xpfile = xpcUtil.xpfile;
-
-    function mkFullDir(dirObj) {
-        //1 is DIRECTORY_TYPE, 511 is 0777 permissions
-        if (!dirObj.exists()) {
-            dirObj.create(1, 511);
-        }
-    }
-
-    file = {
-        backSlashRegExp: /\\/g,
-
-        exclusionRegExp: /^\./,
-
-        getLineSeparator: function () {
-            return file.lineSeparator;
-        },
-
-        lineSeparator: ('@mozilla.org/windows-registry-key;1' in Cc) ?
-                        '\r\n' : '\n',
-
-        exists: function (fileName) {
-            return xpfile(fileName).exists();
-        },
-
-        parent: function (fileName) {
-            return xpfile(fileName).parent;
-        },
-
-        normalize: function (fileName) {
-            return file.absPath(fileName);
-        },
-
-        isFile: function (path) {
-            return xpfile(path).isFile();
-        },
-
-        isDirectory: function (path) {
-            return xpfile(path).isDirectory();
-        },
-
-        /**
-         * Gets the absolute file path as a string, normalized
-         * to using front slashes for path separators.
-         * @param {java.io.File||String} file
-         */
-        absPath: function (fileObj) {
-            if (typeof fileObj === "string") {
-                fileObj = xpfile(fileObj);
-            }
-            return fileObj.path;
-        },
-
-        getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths, /*boolean?*/startDirIsObject) {
-            //summary: Recurses startDir and finds matches to the files that match regExpFilters.include
-            //and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
-            //and it will be treated as the "include" case.
-            //Ignores files/directories that start with a period (.) unless exclusionRegExp
-            //is set to another value.
-            var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
-                fileObj, filePath, ok, dirFiles;
-
-            topDir = startDir;
-            if (!startDirIsObject) {
-                topDir = xpfile(startDir);
-            }
-
-            regExpInclude = regExpFilters.include || regExpFilters;
-            regExpExclude = regExpFilters.exclude || null;
-
-            if (topDir.exists()) {
-                dirFileArray = topDir.directoryEntries;
-                while (dirFileArray.hasMoreElements()) {
-                    fileObj = dirFileArray.getNext().QueryInterface(Ci.nsILocalFile);
-                    if (fileObj.isFile()) {
-                        filePath = fileObj.path;
-                        if (makeUnixPaths) {
-                            if (filePath.indexOf("/") === -1) {
-                                filePath = filePath.replace(/\\/g, "/");
-                            }
-                        }
-
-                        ok = true;
-                        if (regExpInclude) {
-                            ok = filePath.match(regExpInclude);
-                        }
-                        if (ok && regExpExclude) {
-                            ok = !filePath.match(regExpExclude);
-                        }
-
-                        if (ok && (!file.exclusionRegExp ||
-                            !file.exclusionRegExp.test(fileObj.leafName))) {
-                            files.push(filePath);
-                        }
-                    } else if (fileObj.isDirectory() &&
-                              (!file.exclusionRegExp || !file.exclusionRegExp.test(fileObj.leafName))) {
-                        dirFiles = this.getFilteredFileList(fileObj, regExpFilters, makeUnixPaths, true);
-                        files.push.apply(files, dirFiles);
-                    }
-                }
-            }
-
-            return files; //Array
-        },
-
-        copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
-            //summary: copies files from srcDir to destDir using the regExpFilter to determine if the
-            //file should be copied. Returns a list file name strings of the destinations that were copied.
-            regExpFilter = regExpFilter || /\w/;
-
-            var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
-            copiedFiles = [], i, srcFileName, destFileName;
-
-            for (i = 0; i < fileNames.length; i += 1) {
-                srcFileName = fileNames[i];
-                destFileName = srcFileName.replace(srcDir, destDir);
-
-                if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
-                    copiedFiles.push(destFileName);
-                }
-            }
-
-            return copiedFiles.length ? copiedFiles : null; //Array or null
-        },
-
-        copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
-            //summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
-            //srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
-            var destFile = xpfile(destFileName),
-            srcFile = xpfile(srcFileName);
-
-            //logger.trace("Src filename: " + srcFileName);
-            //logger.trace("Dest filename: " + destFileName);
-
-            //If onlyCopyNew is true, then compare dates and only copy if the src is newer
-            //than dest.
-            if (onlyCopyNew) {
-                if (destFile.exists() && destFile.lastModifiedTime >= srcFile.lastModifiedTime) {
-                    return false; //Boolean
-                }
-            }
-
-            srcFile.copyTo(destFile.parent, destFile.leafName);
-
-            return true; //Boolean
-        },
-
-        /**
-         * Renames a file. May fail if "to" already exists or is on another drive.
-         */
-        renameFile: function (from, to) {
-            var toFile = xpfile(to);
-            return xpfile(from).moveTo(toFile.parent, toFile.leafName);
-        },
-
-        readFile: xpcUtil.readFile,
-
-        readFileAsync: function (path, encoding) {
-            var d = prim();
-            try {
-                d.resolve(file.readFile(path, encoding));
-            } catch (e) {
-                d.reject(e);
-            }
-            return d.promise;
-        },
-
-        saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
-            //summary: saves a file using UTF-8 encoding.
-            file.saveFile(fileName, fileContents, "utf-8");
-        },
-
-        saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
-            var outStream, convertStream,
-                fileObj = xpfile(fileName);
-
-            mkFullDir(fileObj.parent);
-
-            try {
-                outStream = Cc['@mozilla.org/network/file-output-stream;1']
-                             .createInstance(Ci.nsIFileOutputStream);
-                //438 is decimal for 0777
-                outStream.init(fileObj, 0x02 | 0x08 | 0x20, 511, 0);
-
-                convertStream = Cc['@mozilla.org/intl/converter-output-stream;1']
-                                  .createInstance(Ci.nsIConverterOutputStream);
-
-                convertStream.init(outStream, encoding, 0, 0);
-                convertStream.writeString(fileContents);
-            } catch (e) {
-                throw new Error((fileObj && fileObj.path || '') + ': ' + e);
-            } finally {
-                if (convertStream) {
-                    convertStream.close();
-                }
-                if (outStream) {
-                    outStream.close();
-                }
-            }
-        },
-
-        deleteFile: function (/*String*/fileName) {
-            //summary: deletes a file or directory if it exists.
-            var fileObj = xpfile(fileName);
-            if (fileObj.exists()) {
-                fileObj.remove(true);
-            }
-        },
-
-        /**
-         * Deletes any empty directories under the given directory.
-         * The startDirIsJavaObject is private to this implementation's
-         * recursion needs.
-         */
-        deleteEmptyDirs: function (startDir, startDirIsObject) {
-            var topDir = startDir,
-                dirFileArray, fileObj;
-
-            if (!startDirIsObject) {
-                topDir = xpfile(startDir);
-            }
-
-            if (topDir.exists()) {
-                dirFileArray = topDir.directoryEntries;
-                while (dirFileArray.hasMoreElements()) {
-                    fileObj = dirFileArray.getNext().QueryInterface(Ci.nsILocalFile);
-
-                    if (fileObj.isDirectory()) {
-                        file.deleteEmptyDirs(fileObj, true);
-                    }
-                }
-
-                //If the directory is empty now, delete it.
-                dirFileArray = topDir.directoryEntries;
-                if (!dirFileArray.hasMoreElements()) {
-                    file.deleteFile(topDir.path);
-                }
-            }
-        }
-    };
-
-    return file;
-});
-
-}
-
-if(env === 'browser') {
-/*global process */
-define('browser/quit', function () {
-    'use strict';
-    return function (code) {
-    };
-});
-}
-
-if(env === 'node') {
-/*global process */
-define('node/quit', function () {
-    'use strict';
-    return function (code) {
-        var draining = 0;
-        var exit = function () {
-            if (draining === 0) {
-                process.exit(code);
-            } else {
-                draining -= 1;
-            }
-        };
-        if (process.stdout.bufferSize) {
-            draining += 1;
-            process.stdout.once('drain', exit);
-        }
-        if (process.stderr.bufferSize) {
-            draining += 1;
-            process.stderr.once('drain', exit);
-        }
-        exit();
-    };
-});
-
-}
-
-if(env === 'rhino') {
-/*global quit */
-define('rhino/quit', function () {
-    'use strict';
-    return function (code) {
-        return quit(code);
-    };
-});
-
-}
-
-if(env === 'xpconnect') {
-/*global quit */
-define('xpconnect/quit', function () {
-    'use strict';
-    return function (code) {
-        return quit(code);
-    };
-});
-
-}
-
-if(env === 'browser') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('browser/print', function () {
-    function print(msg) {
-        console.log(msg);
-    }
-
-    return print;
-});
-
-}
-
-if(env === 'node') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, console: false */
-
-define('node/print', function () {
-    function print(msg) {
-        console.log(msg);
-    }
-
-    return print;
-});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, print: false */
-
-define('rhino/print', function () {
-    return print;
-});
-
-}
-
-if(env === 'xpconnect') {
-/**
- * @license RequireJS Copyright (c) 2013-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false, print: false */
-
-define('xpconnect/print', function () {
-    return print;
-});
-
-}
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint nomen: false, strict: false */
-/*global define: false */
-
-define('logger', ['env!env/print'], function (print) {
-    var logger = {
-        TRACE: 0,
-        INFO: 1,
-        WARN: 2,
-        ERROR: 3,
-        SILENT: 4,
-        level: 0,
-        logPrefix: "",
-
-        logLevel: function( level ) {
-            this.level = level;
-        },
-
-        trace: function (message) {
-            if (this.level <= this.TRACE) {
-                this._print(message);
-            }
-        },
-
-        info: function (message) {
-            if (this.level <= this.INFO) {
-                this._print(message);
-            }
-        },
-
-        warn: function (message) {
-            if (this.level <= this.WARN) {
-                this._print(message);
-            }
-        },
-
-        error: function (message) {
-            if (this.level <= this.ERROR) {
-                this._print(message);
-            }
-        },
-
-        _print: function (message) {
-            this._sysPrint((this.logPrefix ? (this.logPrefix + " ") : "") + message);
-        },
-
-        _sysPrint: function (message) {
-            print(message);
-        }
-    };
-
-    return logger;
-});
-//Just a blank file to use when building the optimizer with the optimizer,
-//so that the build does not attempt to inline some env modules,
-//like Node's fs and path.
-
-/*
-  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
-  Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>
-  Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
-  Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>
-  Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>
-  Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>
-  Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions are met:
-
-    * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-    * Redistributions in binary form must reproduce the above copyright
-      notice, this list of conditions and the following disclaimer in the
-      documentation and/or other materials provided with the distribution.
-
-  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-/*jslint bitwise:true plusplus:true */
-/*global esprima:true, define:true, exports:true, window: true,
-throwError: true, createLiteral: true, generateStatement: true,
-parseAssignmentExpression: true, parseBlock: true, parseExpression: true,
-parseFunctionDeclaration: true, parseFunctionExpression: true,
-parseFunctionSourceElements: true, parseVariableIdentifier: true,
-parseLeftHandSideExpression: true,
-parseStatement: true, parseSourceElement: true */
-
-(function (root, factory) {
-    'use strict';
-
-    // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js,
-    // Rhino, and plain browser loading.
-    if (typeof define === 'function' && define.amd) {
-        define('esprima', ['exports'], factory);
-    } else if (typeof exports !== 'undefined') {
-        factory(exports);
-    } else {
-        factory((root.esprima = {}));
-    }
-}(this, function (exports) {
-    'use strict';
-
-    var Token,
-        TokenName,
-        Syntax,
-        PropertyKind,
-        Messages,
-        Regex,
-        source,
-        strict,
-        index,
-        lineNumber,
-        lineStart,
-        length,
-        buffer,
-        state,
-        extra;
-
-    Token = {
-        BooleanLiteral: 1,
-        EOF: 2,
-        Identifier: 3,
-        Keyword: 4,
-        NullLiteral: 5,
-        NumericLiteral: 6,
-        Punctuator: 7,
-        StringLiteral: 8
-    };
-
-    TokenName = {};
-    TokenName[Token.BooleanLiteral] = 'Boolean';
-    TokenName[Token.EOF] = '<end>';
-    TokenName[Token.Identifier] = 'Identifier';
-    TokenName[Token.Keyword] = 'Keyword';
-    TokenName[Token.NullLiteral] = 'Null';
-    TokenName[Token.NumericLiteral] = 'Numeric';
-    TokenName[Token.Punctuator] = 'Punctuator';
-    TokenName[Token.StringLiteral] = 'String';
-
-    Syntax = {
-        AssignmentExpression: 'AssignmentExpression',
-        ArrayExpression: 'ArrayExpression',
-        BlockStatement: 'BlockStatement',
-        BinaryExpression: 'BinaryExpression',
-        BreakStatement: 'BreakStatement',
-        CallExpression: 'CallExpression',
-        CatchClause: 'CatchClause',
-        ConditionalExpression: 'ConditionalExpression',
-        ContinueStatement: 'ContinueStatement',
-        DoWhileStatement: 'DoWhileStatement',
-        DebuggerStatement: 'DebuggerStatement',
-        EmptyStatement: 'EmptyStatement',
-        ExpressionStatement: 'ExpressionStatement',
-        ForStatement: 'ForStatement',
-        ForInStatement: 'ForInStatement',
-        FunctionDeclaration: 'FunctionDeclaration',
-        FunctionExpression: 'FunctionExpression',
-        Identifier: 'Identifier',
-        IfStatement: 'IfStatement',
-        Literal: 'Literal',
-        LabeledStatement: 'LabeledStatement',
-        LogicalExpression: 'LogicalExpression',
-        MemberExpression: 'MemberExpression',
-        NewExpression: 'NewExpression',
-        ObjectExpression: 'ObjectExpression',
-        Program: 'Program',
-        Property: 'Property',
-        ReturnStatement: 'ReturnStatement',
-        SequenceExpression: 'SequenceExpression',
-        SwitchStatement: 'SwitchStatement',
-        SwitchCase: 'SwitchCase',
-        ThisExpression: 'ThisExpression',
-        ThrowStatement: 'ThrowStatement',
-        TryStatement: 'TryStatement',
-        UnaryExpression: 'UnaryExpression',
-        UpdateExpression: 'UpdateExpression',
-        VariableDeclaration: 'VariableDeclaration',
-        VariableDeclarator: 'VariableDeclarator',
-        WhileStatement: 'WhileStatement',
-        WithStatement: 'WithStatement'
-    };
-
-    PropertyKind = {
-        Data: 1,
-        Get: 2,
-        Set: 4
-    };
-
-    // Error messages should be identical to V8.
-    Messages = {
-        UnexpectedToken:  'Unexpected token %0',
-        UnexpectedNumber:  'Unexpected number',
-        UnexpectedString:  'Unexpected string',
-        UnexpectedIdentifier:  'Unexpected identifier',
-        UnexpectedReserved:  'Unexpected reserved word',
-        UnexpectedEOS:  'Unexpected end of input',
-        NewlineAfterThrow:  'Illegal newline after throw',
-        InvalidRegExp: 'Invalid regular expression',
-        UnterminatedRegExp:  'Invalid regular expression: missing /',
-        InvalidLHSInAssignment:  'Invalid left-hand side in assignment',
-        InvalidLHSInForIn:  'Invalid left-hand side in for-in',
-        MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
-        NoCatchOrFinally:  'Missing catch or finally after try',
-        UnknownLabel: 'Undefined label \'%0\'',
-        Redeclaration: '%0 \'%1\' has already been declared',
-        IllegalContinue: 'Illegal continue statement',
-        IllegalBreak: 'Illegal break statement',
-        IllegalReturn: 'Illegal return statement',
-        StrictModeWith:  'Strict mode code may not include a with statement',
-        StrictCatchVariable:  'Catch variable may not be eval or arguments in strict mode',
-        StrictVarName:  'Variable name may not be eval or arguments in strict mode',
-        StrictParamName:  'Parameter name eval or arguments is not allowed in strict mode',
-        StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
-        StrictFunctionName:  'Function name may not be eval or arguments in strict mode',
-        StrictOctalLiteral:  'Octal literals are not allowed in strict mode.',
-        StrictDelete:  'Delete of an unqualified identifier in strict mode.',
-        StrictDuplicateProperty:  'Duplicate data property in object literal not allowed in strict mode',
-        AccessorDataProperty:  'Object literal may not have data and accessor property with the same name',
-        AccessorGetSet:  'Object literal may not have multiple get/set accessors with the same name',
-        StrictLHSAssignment:  'Assignment to eval or arguments is not allowed in strict mode',
-        StrictLHSPostfix:  'Postfix increment/decrement may not have eval or arguments operand in strict mode',
-        StrictLHSPrefix:  'Prefix increment/decrement may not have eval or arguments operand in strict mode',
-        StrictReservedWord:  'Use of future reserved word in strict mode'
-    };
-
-    // See also tools/generate-unicode-regex.py.
-    Regex = {
-        NonAsciiIdentifierStart: new RegExp('[\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]'),
-        NonAsciiIdentifierPart: new RegExp('[\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u0800-\u082d\u0840-\u085b\u08a0\u08a2-\u08ac\u08e4-\u08fe\u0900-\u0963\u0966-\u096f\u0971-\u0977\u0979-\u097f\u0981-\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7\u09c8\u09cb-\u09ce\u09d7\u09dc\u09dd\u09df-\u09e3\u09e6-\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5c\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c58\u0c59\u0c60-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1\u0cf2\u0d02\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d57\u0d60-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb9\u0ebb-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772\u1773\u1780-\u17d3\u17d7\u17dc\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191c\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19d9\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1cd0-\u1cd2\u1cd4-\u1cf6\u1d00-\u1de6\u1dfc-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200c\u200d\u203f\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099\u309a\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua697\ua69f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua827\ua840-\ua873\ua880-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua900-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a\uaa7b\uaa80-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabea\uabec\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]')
-    };
-
-    // Ensure the condition is true, otherwise throw an error.
-    // This is only to have a better contract semantic, i.e. another safety net
-    // to catch a logic error. The condition shall be fulfilled in normal case.
-    // Do NOT use this to enforce a certain condition on any user input.
-
-    function assert(condition, message) {
-        if (!condition) {
-            throw new Error('ASSERT: ' + message);
-        }
-    }
-
-    function sliceSource(from, to) {
-        return source.slice(from, to);
-    }
-
-    if (typeof 'esprima'[0] === 'undefined') {
-        sliceSource = function sliceArraySource(from, to) {
-            return source.slice(from, to).join('');
-        };
-    }
-
-    function isDecimalDigit(ch) {
-        return '0123456789'.indexOf(ch) >= 0;
-    }
-
-    function isHexDigit(ch) {
-        return '0123456789abcdefABCDEF'.indexOf(ch) >= 0;
-    }
-
-    function isOctalDigit(ch) {
-        return '01234567'.indexOf(ch) >= 0;
-    }
-
-
-    // 7.2 White Space
-
-    function isWhiteSpace(ch) {
-        return (ch === ' ') || (ch === '\u0009') || (ch === '\u000B') ||
-            (ch === '\u000C') || (ch === '\u00A0') ||
-            (ch.charCodeAt(0) >= 0x1680 &&
-             '\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\uFEFF'.indexOf(ch) >= 0);
-    }
-
-    // 7.3 Line Terminators
-
-    function isLineTerminator(ch) {
-        return (ch === '\n' || ch === '\r' || ch === '\u2028' || ch === '\u2029');
-    }
-
-    // 7.6 Identifier Names and Identifiers
-
-    function isIdentifierStart(ch) {
-        return (ch === '$') || (ch === '_') || (ch === '\\') ||
-            (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
-            ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierStart.test(ch));
-    }
-
-    function isIdentifierPart(ch) {
-        return (ch === '$') || (ch === '_') || (ch === '\\') ||
-            (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
-            ((ch >= '0') && (ch <= '9')) ||
-            ((ch.charCodeAt(0) >= 0x80) && Regex.NonAsciiIdentifierPart.test(ch));
-    }
-
-    // 7.6.1.2 Future Reserved Words
-
-    function isFutureReservedWord(id) {
-        switch (id) {
-
-        // Future reserved words.
-        case 'class':
-        case 'enum':
-        case 'export':
-        case 'extends':
-        case 'import':
-        case 'super':
-            return true;
-        }
-
-        return false;
-    }
-
-    function isStrictModeReservedWord(id) {
-        switch (id) {
-
-        // Strict Mode reserved words.
-        case 'implements':
-        case 'interface':
-        case 'package':
-        case 'private':
-        case 'protected':
-        case 'public':
-        case 'static':
-        case 'yield':
-        case 'let':
-            return true;
-        }
-
-        return false;
-    }
-
-    function isRestrictedWord(id) {
-        return id === 'eval' || id === 'arguments';
-    }
-
-    // 7.6.1.1 Keywords
-
-    function isKeyword(id) {
-        var keyword = false;
-        switch (id.length) {
-        case 2:
-            keyword = (id === 'if') || (id === 'in') || (id === 'do');
-            break;
-        case 3:
-            keyword = (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try');
-            break;
-        case 4:
-            keyword = (id === 'this') || (id === 'else') || (id === 'case') || (id === 'void') || (id === 'with');
-            break;
-        case 5:
-            keyword = (id === 'while') || (id === 'break') || (id === 'catch') || (id === 'throw');
-            break;
-        case 6:
-            keyword = (id === 'return') || (id === 'typeof') || (id === 'delete') || (id === 'switch');
-            break;
-        case 7:
-            keyword = (id === 'default') || (id === 'finally');
-            break;
-        case 8:
-            keyword = (id === 'function') || (id === 'continue') || (id === 'debugger');
-            break;
-        case 10:
-            keyword = (id === 'instanceof');
-            break;
-        }
-
-        if (keyword) {
-            return true;
-        }
-
-        switch (id) {
-        // Future reserved words.
-        // 'const' is specialized as Keyword in V8.
-        case 'const':
-            return true;
-
-        // For compatiblity to SpiderMonkey and ES.next
-        case 'yield':
-        case 'let':
-            return true;
-        }
-
-        if (strict && isStrictModeReservedWord(id)) {
-            return true;
-        }
-
-        return isFutureReservedWord(id);
-    }
-
-    // 7.4 Comments
-
-    function skipComment() {
-        var ch, blockComment, lineComment;
-
-        blockComment = false;
-        lineComment = false;
-
-        while (index < length) {
-            ch = source[index];
-
-            if (lineComment) {
-                ch = source[index++];
-                if (isLineTerminator(ch)) {
-                    lineComment = false;
-                    if (ch === '\r' && source[index] === '\n') {
-                        ++index;
-                    }
-                    ++lineNumber;
-                    lineStart = index;
-                }
-            } else if (blockComment) {
-                if (isLineTerminator(ch)) {
-                    if (ch === '\r' && source[index + 1] === '\n') {
-                        ++index;
-                    }
-                    ++lineNumber;
-                    ++index;
-                    lineStart = index;
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                } else {
-                    ch = source[index++];
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                    if (ch === '*') {
-                        ch = source[index];
-                        if (ch === '/') {
-                            ++index;
-                            blockComment = false;
-                        }
-                    }
-                }
-            } else if (ch === '/') {
-                ch = source[index + 1];
-                if (ch === '/') {
-                    index += 2;
-                    lineComment = true;
-                } else if (ch === '*') {
-                    index += 2;
-                    blockComment = true;
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                } else {
-                    break;
-                }
-            } else if (isWhiteSpace(ch)) {
-                ++index;
-            } else if (isLineTerminator(ch)) {
-                ++index;
-                if (ch ===  '\r' && source[index] === '\n') {
-                    ++index;
-                }
-                ++lineNumber;
-                lineStart = index;
-            } else {
-                break;
-            }
-        }
-    }
-
-    function scanHexEscape(prefix) {
-        var i, len, ch, code = 0;
-
-        len = (prefix === 'u') ? 4 : 2;
-        for (i = 0; i < len; ++i) {
-            if (index < length && isHexDigit(source[index])) {
-                ch = source[index++];
-                code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase());
-            } else {
-                return '';
-            }
-        }
-        return String.fromCharCode(code);
-    }
-
-    function scanIdentifier() {
-        var ch, start, id, restore;
-
-        ch = source[index];
-        if (!isIdentifierStart(ch)) {
-            return;
-        }
-
-        start = index;
-        if (ch === '\\') {
-            ++index;
-            if (source[index] !== 'u') {
-                return;
-            }
-            ++index;
-            restore = index;
-            ch = scanHexEscape('u');
-            if (ch) {
-                if (ch === '\\' || !isIdentifierStart(ch)) {
-                    return;
-                }
-                id = ch;
-            } else {
-                index = restore;
-                id = 'u';
-            }
-        } else {
-            id = source[index++];
-        }
-
-        while (index < length) {
-            ch = source[index];
-            if (!isIdentifierPart(ch)) {
-                break;
-            }
-            if (ch === '\\') {
-                ++index;
-                if (source[index] !== 'u') {
-                    return;
-                }
-                ++index;
-                restore = index;
-                ch = scanHexEscape('u');
-                if (ch) {
-                    if (ch === '\\' || !isIdentifierPart(ch)) {
-                        return;
-                    }
-                    id += ch;
-                } else {
-                    index = restore;
-                    id += 'u';
-                }
-            } else {
-                id += source[index++];
-            }
-        }
-
-        // There is no keyword or literal with only one character.
-        // Thus, it must be an identifier.
-        if (id.length === 1) {
-            return {
-                type: Token.Identifier,
-                value: id,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (isKeyword(id)) {
-            return {
-                type: Token.Keyword,
-                value: id,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        // 7.8.1 Null Literals
-
-        if (id === 'null') {
-            return {
-                type: Token.NullLiteral,
-                value: id,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        // 7.8.2 Boolean Literals
-
-        if (id === 'true' || id === 'false') {
-            return {
-                type: Token.BooleanLiteral,
-                value: id,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        return {
-            type: Token.Identifier,
-            value: id,
-            lineNumber: lineNumber,
-            lineStart: lineStart,
-            range: [start, index]
-        };
-    }
-
-    // 7.7 Punctuators
-
-    function scanPunctuator() {
-        var start = index,
-            ch1 = source[index],
-            ch2,
-            ch3,
-            ch4;
-
-        // Check for most common single-character punctuators.
-
-        if (ch1 === ';' || ch1 === '{' || ch1 === '}') {
-            ++index;
-            return {
-                type: Token.Punctuator,
-                value: ch1,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (ch1 === ',' || ch1 === '(' || ch1 === ')') {
-            ++index;
-            return {
-                type: Token.Punctuator,
-                value: ch1,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        // Dot (.) can also start a floating-point number, hence the need
-        // to check the next character.
-
-        ch2 = source[index + 1];
-        if (ch1 === '.' && !isDecimalDigit(ch2)) {
-            return {
-                type: Token.Punctuator,
-                value: source[index++],
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        // Peek more characters.
-
-        ch3 = source[index + 2];
-        ch4 = source[index + 3];
-
-        // 4-character punctuator: >>>=
-
-        if (ch1 === '>' && ch2 === '>' && ch3 === '>') {
-            if (ch4 === '=') {
-                index += 4;
-                return {
-                    type: Token.Punctuator,
-                    value: '>>>=',
-                    lineNumber: lineNumber,
-                    lineStart: lineStart,
-                    range: [start, index]
-                };
-            }
-        }
-
-        // 3-character punctuators: === !== >>> <<= >>=
-
-        if (ch1 === '=' && ch2 === '=' && ch3 === '=') {
-            index += 3;
-            return {
-                type: Token.Punctuator,
-                value: '===',
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (ch1 === '!' && ch2 === '=' && ch3 === '=') {
-            index += 3;
-            return {
-                type: Token.Punctuator,
-                value: '!==',
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (ch1 === '>' && ch2 === '>' && ch3 === '>') {
-            index += 3;
-            return {
-                type: Token.Punctuator,
-                value: '>>>',
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (ch1 === '<' && ch2 === '<' && ch3 === '=') {
-            index += 3;
-            return {
-                type: Token.Punctuator,
-                value: '<<=',
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        if (ch1 === '>' && ch2 === '>' && ch3 === '=') {
-            index += 3;
-            return {
-                type: Token.Punctuator,
-                value: '>>=',
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-
-        // 2-character punctuators: <= >= == != ++ -- << >> && ||
-        // += -= *= %= &= |= ^= /=
-
-        if (ch2 === '=') {
-            if ('<>=!+-*%&|^/'.indexOf(ch1) >= 0) {
-                index += 2;
-                return {
-                    type: Token.Punctuator,
-                    value: ch1 + ch2,
-                    lineNumber: lineNumber,
-                    lineStart: lineStart,
-                    range: [start, index]
-                };
-            }
-        }
-
-        if (ch1 === ch2 && ('+-<>&|'.indexOf(ch1) >= 0)) {
-            if ('+-<>&|'.indexOf(ch2) >= 0) {
-                index += 2;
-                return {
-                    type: Token.Punctuator,
-                    value: ch1 + ch2,
-                    lineNumber: lineNumber,
-                    lineStart: lineStart,
-                    range: [start, index]
-                };
-            }
-        }
-
-        // The remaining 1-character punctuators.
-
-        if ('[]<>+-*%&|^!~?:=/'.indexOf(ch1) >= 0) {
-            return {
-                type: Token.Punctuator,
-                value: source[index++],
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [start, index]
-            };
-        }
-    }
-
-    // 7.8.3 Numeric Literals
-
-    function scanNumericLiteral() {
-        var number, start, ch;
-
-        ch = source[index];
-        assert(isDecimalDigit(ch) || (ch === '.'),
-            'Numeric literal must start with a decimal digit or a decimal point');
-
-        start = index;
-        number = '';
-        if (ch !== '.') {
-            number = source[index++];
-            ch = source[index];
-
-            // Hex number starts with '0x'.
-            // Octal number starts with '0'.
-            if (number === '0') {
-                if (ch === 'x' || ch === 'X') {
-                    number += source[index++];
-                    while (index < length) {
-                        ch = source[index];
-                        if (!isHexDigit(ch)) {
-                            break;
-                        }
-                        number += source[index++];
-                    }
-
-                    if (number.length <= 2) {
-                        // only 0x
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-
-                    if (index < length) {
-                        ch = source[index];
-                        if (isIdentifierStart(ch)) {
-                            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                        }
-                    }
-                    return {
-                        type: Token.NumericLiteral,
-                        value: parseInt(number, 16),
-                        lineNumber: lineNumber,
-                        lineStart: lineStart,
-                        range: [start, index]
-                    };
-                } else if (isOctalDigit(ch)) {
-                    number += source[index++];
-                    while (index < length) {
-                        ch = source[index];
-                        if (!isOctalDigit(ch)) {
-                            break;
-                        }
-                        number += source[index++];
-                    }
-
-                    if (index < length) {
-                        ch = source[index];
-                        if (isIdentifierStart(ch) || isDecimalDigit(ch)) {
-                            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                        }
-                    }
-                    return {
-                        type: Token.NumericLiteral,
-                        value: parseInt(number, 8),
-                        octal: true,
-                        lineNumber: lineNumber,
-                        lineStart: lineStart,
-                        range: [start, index]
-                    };
-                }
-
-                // decimal number starts with '0' such as '09' is illegal.
-                if (isDecimalDigit(ch)) {
-                    throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                }
-            }
-
-            while (index < length) {
-                ch = source[index];
-                if (!isDecimalDigit(ch)) {
-                    break;
-                }
-                number += source[index++];
-            }
-        }
-
-        if (ch === '.') {
-            number += source[index++];
-            while (index < length) {
-                ch = source[index];
-                if (!isDecimalDigit(ch)) {
-                    break;
-                }
-                number += source[index++];
-            }
-        }
-
-        if (ch === 'e' || ch === 'E') {
-            number += source[index++];
-
-            ch = source[index];
-            if (ch === '+' || ch === '-') {
-                number += source[index++];
-            }
-
-            ch = source[index];
-            if (isDecimalDigit(ch)) {
-                number += source[index++];
-                while (index < length) {
-                    ch = source[index];
-                    if (!isDecimalDigit(ch)) {
-                        break;
-                    }
-                    number += source[index++];
-                }
-            } else {
-                ch = 'character ' + ch;
-                if (index >= length) {
-                    ch = '<end>';
-                }
-                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-            }
-        }
-
-        if (index < length) {
-            ch = source[index];
-            if (isIdentifierStart(ch)) {
-                throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-            }
-        }
-
-        return {
-            type: Token.NumericLiteral,
-            value: parseFloat(number),
-            lineNumber: lineNumber,
-            lineStart: lineStart,
-            range: [start, index]
-        };
-    }
-
-    // 7.8.4 String Literals
-
-    function scanStringLiteral() {
-        var str = '', quote, start, ch, code, unescaped, restore, octal = false;
-
-        quote = source[index];
-        assert((quote === '\'' || quote === '"'),
-            'String literal must starts with a quote');
-
-        start = index;
-        ++index;
-
-        while (index < length) {
-            ch = source[index++];
-
-            if (ch === quote) {
-                quote = '';
-                break;
-            } else if (ch === '\\') {
-                ch = source[index++];
-                if (!isLineTerminator(ch)) {
-                    switch (ch) {
-                    case 'n':
-                        str += '\n';
-                        break;
-                    case 'r':
-                        str += '\r';
-                        break;
-                    case 't':
-                        str += '\t';
-                        break;
-                    case 'u':
-                    case 'x':
-                        restore = index;
-                        unescaped = scanHexEscape(ch);
-                        if (unescaped) {
-                            str += unescaped;
-                        } else {
-                            index = restore;
-                            str += ch;
-                        }
-                        break;
-                    case 'b':
-                        str += '\b';
-                        break;
-                    case 'f':
-                        str += '\f';
-                        break;
-                    case 'v':
-                        str += '\x0B';
-                        break;
-
-                    default:
-                        if (isOctalDigit(ch)) {
-                            code = '01234567'.indexOf(ch);
-
-                            // \0 is not octal escape sequence
-                            if (code !== 0) {
-                                octal = true;
-                            }
-
-                            if (index < length && isOctalDigit(source[index])) {
-                                octal = true;
-                                code = code * 8 + '01234567'.indexOf(source[index++]);
-
-                                // 3 digits are only allowed when string starts
-                                // with 0, 1, 2, 3
-                                if ('0123'.indexOf(ch) >= 0 &&
-                                        index < length &&
-                                        isOctalDigit(source[index])) {
-                                    code = code * 8 + '01234567'.indexOf(source[index++]);
-                                }
-                            }
-                            str += String.fromCharCode(code);
-                        } else {
-                            str += ch;
-                        }
-                        break;
-                    }
-                } else {
-                    ++lineNumber;
-                    if (ch ===  '\r' && source[index] === '\n') {
-                        ++index;
-                    }
-                }
-            } else if (isLineTerminator(ch)) {
-                break;
-            } else {
-                str += ch;
-            }
-        }
-
-        if (quote !== '') {
-            throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-        }
-
-        return {
-            type: Token.StringLiteral,
-            value: str,
-            octal: octal,
-            lineNumber: lineNumber,
-            lineStart: lineStart,
-            range: [start, index]
-        };
-    }
-
-    function scanRegExp() {
-        var str, ch, start, pattern, flags, value, classMarker = false, restore, terminated = false;
-
-        buffer = null;
-        skipComment();
-
-        start = index;
-        ch = source[index];
-        assert(ch === '/', 'Regular expression literal must start with a slash');
-        str = source[index++];
-
-        while (index < length) {
-            ch = source[index++];
-            str += ch;
-            if (ch === '\\') {
-                ch = source[index++];
-                // ECMA-262 7.8.5
-                if (isLineTerminator(ch)) {
-                    throwError({}, Messages.UnterminatedRegExp);
-                }
-                str += ch;
-            } else if (classMarker) {
-                if (ch === ']') {
-                    classMarker = false;
-                }
-            } else {
-                if (ch === '/') {
-                    terminated = true;
-                    break;
-                } else if (ch === '[') {
-                    classMarker = true;
-                } else if (isLineTerminator(ch)) {
-                    throwError({}, Messages.UnterminatedRegExp);
-                }
-            }
-        }
-
-        if (!terminated) {
-            throwError({}, Messages.UnterminatedRegExp);
-        }
-
-        // Exclude leading and trailing slash.
-        pattern = str.substr(1, str.length - 2);
-
-        flags = '';
-        while (index < length) {
-            ch = source[index];
-            if (!isIdentifierPart(ch)) {
-                break;
-            }
-
-            ++index;
-            if (ch === '\\' && index < length) {
-                ch = source[index];
-                if (ch === 'u') {
-                    ++index;
-                    restore = index;
-                    ch = scanHexEscape('u');
-                    if (ch) {
-                        flags += ch;
-                        str += '\\u';
-                        for (; restore < index; ++restore) {
-                            str += source[restore];
-                        }
-                    } else {
-                        index = restore;
-                        flags += 'u';
-                        str += '\\u';
-                    }
-                } else {
-                    str += '\\';
-                }
-            } else {
-                flags += ch;
-                str += ch;
-            }
-        }
-
-        try {
-            value = new RegExp(pattern, flags);
-        } catch (e) {
-            throwError({}, Messages.InvalidRegExp);
-        }
-
-        return {
-            literal: str,
-            value: value,
-            range: [start, index]
-        };
-    }
-
-    function isIdentifierName(token) {
-        return token.type === Token.Identifier ||
-            token.type === Token.Keyword ||
-            token.type === Token.BooleanLiteral ||
-            token.type === Token.NullLiteral;
-    }
-
-    function advance() {
-        var ch, token;
-
-        skipComment();
-
-        if (index >= length) {
-            return {
-                type: Token.EOF,
-                lineNumber: lineNumber,
-                lineStart: lineStart,
-                range: [index, index]
-            };
-        }
-
-        token = scanPunctuator();
-        if (typeof token !== 'undefined') {
-            return token;
-        }
-
-        ch = source[index];
-
-        if (ch === '\'' || ch === '"') {
-            return scanStringLiteral();
-        }
-
-        if (ch === '.' || isDecimalDigit(ch)) {
-            return scanNumericLiteral();
-        }
-
-        token = scanIdentifier();
-        if (typeof token !== 'undefined') {
-            return token;
-        }
-
-        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-    }
-
-    function lex() {
-        var token;
-
-        if (buffer) {
-            index = buffer.range[1];
-            lineNumber = buffer.lineNumber;
-            lineStart = buffer.lineStart;
-            token = buffer;
-            buffer = null;
-            return token;
-        }
-
-        buffer = null;
-        return advance();
-    }
-
-    function lookahead() {
-        var pos, line, start;
-
-        if (buffer !== null) {
-            return buffer;
-        }
-
-        pos = index;
-        line = lineNumber;
-        start = lineStart;
-        buffer = advance();
-        index = pos;
-        lineNumber = line;
-        lineStart = start;
-
-        return buffer;
-    }
-
-    // Return true if there is a line terminator before the next token.
-
-    function peekLineTerminator() {
-        var pos, line, start, found;
-
-        pos = index;
-        line = lineNumber;
-        start = lineStart;
-        skipComment();
-        found = lineNumber !== line;
-        index = pos;
-        lineNumber = line;
-        lineStart = start;
-
-        return found;
-    }
-
-    // Throw an exception
-
-    function throwError(token, messageFormat) {
-        var error,
-            args = Array.prototype.slice.call(arguments, 2),
-            msg = messageFormat.replace(
-                /%(\d)/g,
-                function (whole, index) {
-                    return args[index] || '';
-                }
-            );
-
-        if (typeof token.lineNumber === 'number') {
-            error = new Error('Line ' + token.lineNumber + ': ' + msg);
-            error.index = token.range[0];
-            error.lineNumber = token.lineNumber;
-            error.column = token.range[0] - lineStart + 1;
-        } else {
-            error = new Error('Line ' + lineNumber + ': ' + msg);
-            error.index = index;
-            error.lineNumber = lineNumber;
-            error.column = index - lineStart + 1;
-        }
-
-        throw error;
-    }
-
-    function throwErrorTolerant() {
-        try {
-            throwError.apply(null, arguments);
-        } catch (e) {
-            if (extra.errors) {
-                extra.errors.push(e);
-            } else {
-                throw e;
-            }
-        }
-    }
-
-
-    // Throw an exception because of the token.
-
-    function throwUnexpected(token) {
-        if (token.type === Token.EOF) {
-            throwError(token, Messages.UnexpectedEOS);
-        }
-
-        if (token.type === Token.NumericLiteral) {
-            throwError(token, Messages.UnexpectedNumber);
-        }
-
-        if (token.type === Token.StringLiteral) {
-            throwError(token, Messages.UnexpectedString);
-        }
-
-        if (token.type === Token.Identifier) {
-            throwError(token, Messages.UnexpectedIdentifier);
-        }
-
-        if (token.type === Token.Keyword) {
-            if (isFutureReservedWord(token.value)) {
-                throwError(token, Messages.UnexpectedReserved);
-            } else if (strict && isStrictModeReservedWord(token.value)) {
-                throwErrorTolerant(token, Messages.StrictReservedWord);
-                return;
-            }
-            throwError(token, Messages.UnexpectedToken, token.value);
-        }
-
-        // BooleanLiteral, NullLiteral, or Punctuator.
-        throwError(token, Messages.UnexpectedToken, token.value);
-    }
-
-    // Expect the next token to match the specified punctuator.
-    // If not, an exception will be thrown.
-
-    function expect(value) {
-        var token = lex();
-        if (token.type !== Token.Punctuator || token.value !== value) {
-            throwUnexpected(token);
-        }
-    }
-
-    // Expect the next token to match the specified keyword.
-    // If not, an exception will be thrown.
-
-    function expectKeyword(keyword) {
-        var token = lex();
-        if (token.type !== Token.Keyword || token.value !== keyword) {
-            throwUnexpected(token);
-        }
-    }
-
-    // Return true if the next token matches the specified punctuator.
-
-    function match(value) {
-        var token = lookahead();
-        return token.type === Token.Punctuator && token.value === value;
-    }
-
-    // Return true if the next token matches the specified keyword
-
-    function matchKeyword(keyword) {
-        var token = lookahead();
-        return token.type === Token.Keyword && token.value === keyword;
-    }
-
-    // Return true if the next token is an assignment operator
-
-    function matchAssign() {
-        var token = lookahead(),
-            op = token.value;
-
-        if (token.type !== Token.Punctuator) {
-            return false;
-        }
-        return op === '=' ||
-            op === '*=' ||
-            op === '/=' ||
-            op === '%=' ||
-            op === '+=' ||
-            op === '-=' ||
-            op === '<<=' ||
-            op === '>>=' ||
-            op === '>>>=' ||
-            op === '&=' ||
-            op === '^=' ||
-            op === '|=';
-    }
-
-    function consumeSemicolon() {
-        var token, line;
-
-        // Catch the very common case first.
-        if (source[index] === ';') {
-            lex();
-            return;
-        }
-
-        line = lineNumber;
-        skipComment();
-        if (lineNumber !== line) {
-            return;
-        }
-
-        if (match(';')) {
-            lex();
-            return;
-        }
-
-        token = lookahead();
-        if (token.type !== Token.EOF && !match('}')) {
-            throwUnexpected(token);
-        }
-    }
-
-    // Return true if provided expression is LeftHandSideExpression
-
-    function isLeftHandSide(expr) {
-        return expr.type === Syntax.Identifier || expr.type === Syntax.MemberExpression;
-    }
-
-    // 11.1.4 Array Initialiser
-
-    function parseArrayInitialiser() {
-        var elements = [];
-
-        expect('[');
-
-        while (!match(']')) {
-            if (match(',')) {
-                lex();
-                elements.push(null);
-            } else {
-                elements.push(parseAssignmentExpression());
-
-                if (!match(']')) {
-                    expect(',');
-                }
-            }
-        }
-
-        expect(']');
-
-        return {
-            type: Syntax.ArrayExpression,
-            elements: elements
-        };
-    }
-
-    // 11.1.5 Object Initialiser
-
-    function parsePropertyFunction(param, first) {
-        var previousStrict, body;
-
-        previousStrict = strict;
-        body = parseFunctionSourceElements();
-        if (first && strict && isRestrictedWord(param[0].name)) {
-            throwErrorTolerant(first, Messages.StrictParamName);
-        }
-        strict = previousStrict;
-
-        return {
-            type: Syntax.FunctionExpression,
-            id: null,
-            params: param,
-            defaults: [],
-            body: body,
-            rest: null,
-            generator: false,
-            expression: false
-        };
-    }
-
-    function parseObjectPropertyKey() {
-        var token = lex();
-
-        // Note: This function is called only from parseObjectProperty(), where
-        // EOF and Punctuator tokens are already filtered out.
-
-        if (token.type === Token.StringLiteral || token.type === Token.NumericLiteral) {
-            if (strict && token.octal) {
-                throwErrorTolerant(token, Messages.StrictOctalLiteral);
-            }
-            return createLiteral(token);
-        }
-
-        return {
-            type: Syntax.Identifier,
-            name: token.value
-        };
-    }
-
-    function parseObjectProperty() {
-        var token, key, id, param;
-
-        token = lookahead();
-
-        if (token.type === Token.Identifier) {
-
-            id = parseObjectPropertyKey();
-
-            // Property Assignment: Getter and Setter.
-
-            if (token.value === 'get' && !match(':')) {
-                key = parseObjectPropertyKey();
-                expect('(');
-                expect(')');
-                return {
-                    type: Syntax.Property,
-                    key: key,
-                    value: parsePropertyFunction([]),
-                    kind: 'get'
-                };
-            } else if (token.value === 'set' && !match(':')) {
-                key = parseObjectPropertyKey();
-                expect('(');
-                token = lookahead();
-                if (token.type !== Token.Identifier) {
-                    expect(')');
-                    throwErrorTolerant(token, Messages.UnexpectedToken, token.value);
-                    return {
-                        type: Syntax.Property,
-                        key: key,
-                        value: parsePropertyFunction([]),
-                        kind: 'set'
-                    };
-                } else {
-                    param = [ parseVariableIdentifier() ];
-                    expect(')');
-                    return {
-                        type: Syntax.Property,
-                        key: key,
-                        value: parsePropertyFunction(param, token),
-                        kind: 'set'
-                    };
-                }
-            } else {
-                expect(':');
-                return {
-                    type: Syntax.Property,
-                    key: id,
-                    value: parseAssignmentExpression(),
-                    kind: 'init'
-                };
-            }
-        } else if (token.type === Token.EOF || token.type === Token.Punctuator) {
-            throwUnexpected(token);
-        } else {
-            key = parseObjectPropertyKey();
-            expect(':');
-            return {
-                type: Syntax.Property,
-                key: key,
-                value: parseAssignmentExpression(),
-                kind: 'init'
-            };
-        }
-    }
-
-    function parseObjectInitialiser() {
-        var properties = [], property, name, kind, map = {}, toString = String;
-
-        expect('{');
-
-        while (!match('}')) {
-            property = parseObjectProperty();
-
-            if (property.key.type === Syntax.Identifier) {
-                name = property.key.name;
-            } else {
-                name = toString(property.key.value);
-            }
-            kind = (property.kind === 'init') ? PropertyKind.Data : (property.kind === 'get') ? PropertyKind.Get : PropertyKind.Set;
-            if (Object.prototype.hasOwnProperty.call(map, name)) {
-                if (map[name] === PropertyKind.Data) {
-                    if (strict && kind === PropertyKind.Data) {
-                        throwErrorTolerant({}, Messages.StrictDuplicateProperty);
-                    } else if (kind !== PropertyKind.Data) {
-                        throwErrorTolerant({}, Messages.AccessorDataProperty);
-                    }
-                } else {
-                    if (kind === PropertyKind.Data) {
-                        throwErrorTolerant({}, Messages.AccessorDataProperty);
-                    } else if (map[name] & kind) {
-                        throwErrorTolerant({}, Messages.AccessorGetSet);
-                    }
-                }
-                map[name] |= kind;
-            } else {
-                map[name] = kind;
-            }
-
-            properties.push(property);
-
-            if (!match('}')) {
-                expect(',');
-            }
-        }
-
-        expect('}');
-
-        return {
-            type: Syntax.ObjectExpression,
-            properties: properties
-        };
-    }
-
-    // 11.1.6 The Grouping Operator
-
-    function parseGroupExpression() {
-        var expr;
-
-        expect('(');
-
-        expr = parseExpression();
-
-        expect(')');
-
-        return expr;
-    }
-
-
-    // 11.1 Primary Expressions
-
-    function parsePrimaryExpression() {
-        var token = lookahead(),
-            type = token.type;
-
-        if (type === Token.Identifier) {
-            return {
-                type: Syntax.Identifier,
-                name: lex().value
-            };
-        }
-
-        if (type === Token.StringLiteral || type === Token.NumericLiteral) {
-            if (strict && token.octal) {
-                throwErrorTolerant(token, Messages.StrictOctalLiteral);
-            }
-            return createLiteral(lex());
-        }
-
-        if (type === Token.Keyword) {
-            if (matchKeyword('this')) {
-                lex();
-                return {
-                    type: Syntax.ThisExpression
-                };
-            }
-
-            if (matchKeyword('function')) {
-                return parseFunctionExpression();
-            }
-        }
-
-        if (type === Token.BooleanLiteral) {
-            lex();
-            token.value = (token.value === 'true');
-            return createLiteral(token);
-        }
-
-        if (type === Token.NullLiteral) {
-            lex();
-            token.value = null;
-            return createLiteral(token);
-        }
-
-        if (match('[')) {
-            return parseArrayInitialiser();
-        }
-
-        if (match('{')) {
-            return parseObjectInitialiser();
-        }
-
-        if (match('(')) {
-            return parseGroupExpression();
-        }
-
-        if (match('/') || match('/=')) {
-            return createLiteral(scanRegExp());
-        }
-
-        return throwUnexpected(lex());
-    }
-
-    // 11.2 Left-Hand-Side Expressions
-
-    function parseArguments() {
-        var args = [];
-
-        expect('(');
-
-        if (!match(')')) {
-            while (index < length) {
-                args.push(parseAssignmentExpression());
-                if (match(')')) {
-                    break;
-                }
-                expect(',');
-            }
-        }
-
-        expect(')');
-
-        return args;
-    }
-
-    function parseNonComputedProperty() {
-        var token = lex();
-
-        if (!isIdentifierName(token)) {
-            throwUnexpected(token);
-        }
-
-        return {
-            type: Syntax.Identifier,
-            name: token.value
-        };
-    }
-
-    function parseNonComputedMember() {
-        expect('.');
-
-        return parseNonComputedProperty();
-    }
-
-    function parseComputedMember() {
-        var expr;
-
-        expect('[');
-
-        expr = parseExpression();
-
-        expect(']');
-
-        return expr;
-    }
-
-    function parseNewExpression() {
-        var expr;
-
-        expectKeyword('new');
-
-        expr = {
-            type: Syntax.NewExpression,
-            callee: parseLeftHandSideExpression(),
-            'arguments': []
-        };
-
-        if (match('(')) {
-            expr['arguments'] = parseArguments();
-        }
-
-        return expr;
-    }
-
-    function parseLeftHandSideExpressionAllowCall() {
-        var expr;
-
-        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
-
-        while (match('.') || match('[') || match('(')) {
-            if (match('(')) {
-                expr = {
-                    type: Syntax.CallExpression,
-                    callee: expr,
-                    'arguments': parseArguments()
-                };
-            } else if (match('[')) {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: true,
-                    object: expr,
-                    property: parseComputedMember()
-                };
-            } else {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: false,
-                    object: expr,
-                    property: parseNonComputedMember()
-                };
-            }
-        }
-
-        return expr;
-    }
-
-
-    function parseLeftHandSideExpression() {
-        var expr;
-
-        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
-
-        while (match('.') || match('[')) {
-            if (match('[')) {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: true,
-                    object: expr,
-                    property: parseComputedMember()
-                };
-            } else {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: false,
-                    object: expr,
-                    property: parseNonComputedMember()
-                };
-            }
-        }
-
-        return expr;
-    }
-
-    // 11.3 Postfix Expressions
-
-    function parsePostfixExpression() {
-        var expr = parseLeftHandSideExpressionAllowCall(), token;
-
-        token = lookahead();
-        if (token.type !== Token.Punctuator) {
-            return expr;
-        }
-
-        if ((match('++') || match('--')) && !peekLineTerminator()) {
-            // 11.3.1, 11.3.2
-            if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
-                throwErrorTolerant({}, Messages.StrictLHSPostfix);
-            }
-            if (!isLeftHandSide(expr)) {
-                throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
-            }
-
-            expr = {
-                type: Syntax.UpdateExpression,
-                operator: lex().value,
-                argument: expr,
-                prefix: false
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.4 Unary Operators
-
-    function parseUnaryExpression() {
-        var token, expr;
-
-        token = lookahead();
-        if (token.type !== Token.Punctuator && token.type !== Token.Keyword) {
-            return parsePostfixExpression();
-        }
-
-        if (match('++') || match('--')) {
-            token = lex();
-            expr = parseUnaryExpression();
-            // 11.4.4, 11.4.5
-            if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
-                throwErrorTolerant({}, Messages.StrictLHSPrefix);
-            }
-
-            if (!isLeftHandSide(expr)) {
-                throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
-            }
-
-            expr = {
-                type: Syntax.UpdateExpression,
-                operator: token.value,
-                argument: expr,
-                prefix: true
-            };
-            return expr;
-        }
-
-        if (match('+') || match('-') || match('~') || match('!')) {
-            expr = {
-                type: Syntax.UnaryExpression,
-                operator: lex().value,
-                argument: parseUnaryExpression(),
-                prefix: true
-            };
-            return expr;
-        }
-
-        if (matchKeyword('delete') || matchKeyword('void') || matchKeyword('typeof')) {
-            expr = {
-                type: Syntax.UnaryExpression,
-                operator: lex().value,
-                argument: parseUnaryExpression(),
-                prefix: true
-            };
-            if (strict && expr.operator === 'delete' && expr.argument.type === Syntax.Identifier) {
-                throwErrorTolerant({}, Messages.StrictDelete);
-            }
-            return expr;
-        }
-
-        return parsePostfixExpression();
-    }
-
-    // 11.5 Multiplicative Operators
-
-    function parseMultiplicativeExpression() {
-        var expr = parseUnaryExpression();
-
-        while (match('*') || match('/') || match('%')) {
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseUnaryExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.6 Additive Operators
-
-    function parseAdditiveExpression() {
-        var expr = parseMultiplicativeExpression();
-
-        while (match('+') || match('-')) {
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseMultiplicativeExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.7 Bitwise Shift Operators
-
-    function parseShiftExpression() {
-        var expr = parseAdditiveExpression();
-
-        while (match('<<') || match('>>') || match('>>>')) {
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseAdditiveExpression()
-            };
-        }
-
-        return expr;
-    }
-    // 11.8 Relational Operators
-
-    function parseRelationalExpression() {
-        var expr, previousAllowIn;
-
-        previousAllowIn = state.allowIn;
-        state.allowIn = true;
-
-        expr = parseShiftExpression();
-
-        while (match('<') || match('>') || match('<=') || match('>=') || (previousAllowIn && matchKeyword('in')) || matchKeyword('instanceof')) {
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseShiftExpression()
-            };
-        }
-
-        state.allowIn = previousAllowIn;
-        return expr;
-    }
-
-    // 11.9 Equality Operators
-
-    function parseEqualityExpression() {
-        var expr = parseRelationalExpression();
-
-        while (match('==') || match('!=') || match('===') || match('!==')) {
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseRelationalExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.10 Binary Bitwise Operators
-
-    function parseBitwiseANDExpression() {
-        var expr = parseEqualityExpression();
-
-        while (match('&')) {
-            lex();
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: '&',
-                left: expr,
-                right: parseEqualityExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    function parseBitwiseXORExpression() {
-        var expr = parseBitwiseANDExpression();
-
-        while (match('^')) {
-            lex();
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: '^',
-                left: expr,
-                right: parseBitwiseANDExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    function parseBitwiseORExpression() {
-        var expr = parseBitwiseXORExpression();
-
-        while (match('|')) {
-            lex();
-            expr = {
-                type: Syntax.BinaryExpression,
-                operator: '|',
-                left: expr,
-                right: parseBitwiseXORExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.11 Binary Logical Operators
-
-    function parseLogicalANDExpression() {
-        var expr = parseBitwiseORExpression();
-
-        while (match('&&')) {
-            lex();
-            expr = {
-                type: Syntax.LogicalExpression,
-                operator: '&&',
-                left: expr,
-                right: parseBitwiseORExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    function parseLogicalORExpression() {
-        var expr = parseLogicalANDExpression();
-
-        while (match('||')) {
-            lex();
-            expr = {
-                type: Syntax.LogicalExpression,
-                operator: '||',
-                left: expr,
-                right: parseLogicalANDExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.12 Conditional Operator
-
-    function parseConditionalExpression() {
-        var expr, previousAllowIn, consequent;
-
-        expr = parseLogicalORExpression();
-
-        if (match('?')) {
-            lex();
-            previousAllowIn = state.allowIn;
-            state.allowIn = true;
-            consequent = parseAssignmentExpression();
-            state.allowIn = previousAllowIn;
-            expect(':');
-
-            expr = {
-                type: Syntax.ConditionalExpression,
-                test: expr,
-                consequent: consequent,
-                alternate: parseAssignmentExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.13 Assignment Operators
-
-    function parseAssignmentExpression() {
-        var token, expr;
-
-        token = lookahead();
-        expr = parseConditionalExpression();
-
-        if (matchAssign()) {
-            // LeftHandSideExpression
-            if (!isLeftHandSide(expr)) {
-                throwErrorTolerant({}, Messages.InvalidLHSInAssignment);
-            }
-
-            // 11.13.1
-            if (strict && expr.type === Syntax.Identifier && isRestrictedWord(expr.name)) {
-                throwErrorTolerant(token, Messages.StrictLHSAssignment);
-            }
-
-            expr = {
-                type: Syntax.AssignmentExpression,
-                operator: lex().value,
-                left: expr,
-                right: parseAssignmentExpression()
-            };
-        }
-
-        return expr;
-    }
-
-    // 11.14 Comma Operator
-
-    function parseExpression() {
-        var expr = parseAssignmentExpression();
-
-        if (match(',')) {
-            expr = {
-                type: Syntax.SequenceExpression,
-                expressions: [ expr ]
-            };
-
-            while (index < length) {
-                if (!match(',')) {
-                    break;
-                }
-                lex();
-                expr.expressions.push(parseAssignmentExpression());
-            }
-
-        }
-        return expr;
-    }
-
-    // 12.1 Block
-
-    function parseStatementList() {
-        var list = [],
-            statement;
-
-        while (index < length) {
-            if (match('}')) {
-                break;
-            }
-            statement = parseSourceElement();
-            if (typeof statement === 'undefined') {
-                break;
-            }
-            list.push(statement);
-        }
-
-        return list;
-    }
-
-    function parseBlock() {
-        var block;
-
-        expect('{');
-
-        block = parseStatementList();
-
-        expect('}');
-
-        return {
-            type: Syntax.BlockStatement,
-            body: block
-        };
-    }
-
-    // 12.2 Variable Statement
-
-    function parseVariableIdentifier() {
-        var token = lex();
-
-        if (token.type !== Token.Identifier) {
-            throwUnexpected(token);
-        }
-
-        return {
-            type: Syntax.Identifier,
-            name: token.value
-        };
-    }
-
-    function parseVariableDeclaration(kind) {
-        var id = parseVariableIdentifier(),
-            init = null;
-
-        // 12.2.1
-        if (strict && isRestrictedWord(id.name)) {
-            throwErrorTolerant({}, Messages.StrictVarName);
-        }
-
-        if (kind === 'const') {
-            expect('=');
-            init = parseAssignmentExpression();
-        } else if (match('=')) {
-            lex();
-            init = parseAssignmentExpression();
-        }
-
-        return {
-            type: Syntax.VariableDeclarator,
-            id: id,
-            init: init
-        };
-    }
-
-    function parseVariableDeclarationList(kind) {
-        var list = [];
-
-        do {
-            list.push(parseVariableDeclaration(kind));
-            if (!match(',')) {
-                break;
-            }
-            lex();
-        } while (index < length);
-
-        return list;
-    }
-
-    function parseVariableStatement() {
-        var declarations;
-
-        expectKeyword('var');
-
-        declarations = parseVariableDeclarationList();
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.VariableDeclaration,
-            declarations: declarations,
-            kind: 'var'
-        };
-    }
-
-    // kind may be `const` or `let`
-    // Both are experimental and not in the specification yet.
-    // see http://wiki.ecmascript.org/doku.php?id=harmony:const
-    // and http://wiki.ecmascript.org/doku.php?id=harmony:let
-    function parseConstLetDeclaration(kind) {
-        var declarations;
-
-        expectKeyword(kind);
-
-        declarations = parseVariableDeclarationList(kind);
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.VariableDeclaration,
-            declarations: declarations,
-            kind: kind
-        };
-    }
-
-    // 12.3 Empty Statement
-
-    function parseEmptyStatement() {
-        expect(';');
-
-        return {
-            type: Syntax.EmptyStatement
-        };
-    }
-
-    // 12.4 Expression Statement
-
-    function parseExpressionStatement() {
-        var expr = parseExpression();
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.ExpressionStatement,
-            expression: expr
-        };
-    }
-
-    // 12.5 If statement
-
-    function parseIfStatement() {
-        var test, consequent, alternate;
-
-        expectKeyword('if');
-
-        expect('(');
-
-        test = parseExpression();
-
-        expect(')');
-
-        consequent = parseStatement();
-
-        if (matchKeyword('else')) {
-            lex();
-            alternate = parseStatement();
-        } else {
-            alternate = null;
-        }
-
-        return {
-            type: Syntax.IfStatement,
-            test: test,
-            consequent: consequent,
-            alternate: alternate
-        };
-    }
-
-    // 12.6 Iteration Statements
-
-    function parseDoWhileStatement() {
-        var body, test, oldInIteration;
-
-        expectKeyword('do');
-
-        oldInIteration = state.inIteration;
-        state.inIteration = true;
-
-        body = parseStatement();
-
-        state.inIteration = oldInIteration;
-
-        expectKeyword('while');
-
-        expect('(');
-
-        test = parseExpression();
-
-        expect(')');
-
-        if (match(';')) {
-            lex();
-        }
-
-        return {
-            type: Syntax.DoWhileStatement,
-            body: body,
-            test: test
-        };
-    }
-
-    function parseWhileStatement() {
-        var test, body, oldInIteration;
-
-        expectKeyword('while');
-
-        expect('(');
-
-        test = parseExpression();
-
-        expect(')');
-
-        oldInIteration = state.inIteration;
-        state.inIteration = true;
-
-        body = parseStatement();
-
-        state.inIteration = oldInIteration;
-
-        return {
-            type: Syntax.WhileStatement,
-            test: test,
-            body: body
-        };
-    }
-
-    function parseForVariableDeclaration() {
-        var token = lex();
-
-        return {
-            type: Syntax.VariableDeclaration,
-            declarations: parseVariableDeclarationList(),
-            kind: token.value
-        };
-    }
-
-    function parseForStatement() {
-        var init, test, update, left, right, body, oldInIteration;
-
-        init = test = update = null;
-
-        expectKeyword('for');
-
-        expect('(');
-
-        if (match(';')) {
-            lex();
-        } else {
-            if (matchKeyword('var') || matchKeyword('let')) {
-                state.allowIn = false;
-                init = parseForVariableDeclaration();
-                state.allowIn = true;
-
-                if (init.declarations.length === 1 && matchKeyword('in')) {
-                    lex();
-                    left = init;
-                    right = parseExpression();
-                    init = null;
-                }
-            } else {
-                state.allowIn = false;
-                init = parseExpression();
-                state.allowIn = true;
-
-                if (matchKeyword('in')) {
-                    // LeftHandSideExpression
-                    if (!isLeftHandSide(init)) {
-                        throwErrorTolerant({}, Messages.InvalidLHSInForIn);
-                    }
-
-                    lex();
-                    left = init;
-                    right = parseExpression();
-                    init = null;
-                }
-            }
-
-            if (typeof left === 'undefined') {
-                expect(';');
-            }
-        }
-
-        if (typeof left === 'undefined') {
-
-            if (!match(';')) {
-                test = parseExpression();
-            }
-            expect(';');
-
-            if (!match(')')) {
-                update = parseExpression();
-            }
-        }
-
-        expect(')');
-
-        oldInIteration = state.inIteration;
-        state.inIteration = true;
-
-        body = parseStatement();
-
-        state.inIteration = oldInIteration;
-
-        if (typeof left === 'undefined') {
-            return {
-                type: Syntax.ForStatement,
-                init: init,
-                test: test,
-                update: update,
-                body: body
-            };
-        }
-
-        return {
-            type: Syntax.ForInStatement,
-            left: left,
-            right: right,
-            body: body,
-            each: false
-        };
-    }
-
-    // 12.7 The continue statement
-
-    function parseContinueStatement() {
-        var token, label = null;
-
-        expectKeyword('continue');
-
-        // Optimize the most common form: 'continue;'.
-        if (source[index] === ';') {
-            lex();
-
-            if (!state.inIteration) {
-                throwError({}, Messages.IllegalContinue);
-            }
-
-            return {
-                type: Syntax.ContinueStatement,
-                label: null
-            };
-        }
-
-        if (peekLineTerminator()) {
-            if (!state.inIteration) {
-                throwError({}, Messages.IllegalContinue);
-            }
-
-            return {
-                type: Syntax.ContinueStatement,
-                label: null
-            };
-        }
-
-        token = lookahead();
-        if (token.type === Token.Identifier) {
-            label = parseVariableIdentifier();
-
-            if (!Object.prototype.hasOwnProperty.call(state.labelSet, label.name)) {
-                throwError({}, Messages.UnknownLabel, label.name);
-            }
-        }
-
-        consumeSemicolon();
-
-        if (label === null && !state.inIteration) {
-            throwError({}, Messages.IllegalContinue);
-        }
-
-        return {
-            type: Syntax.ContinueStatement,
-            label: label
-        };
-    }
-
-    // 12.8 The break statement
-
-    function parseBreakStatement() {
-        var token, label = null;
-
-        expectKeyword('break');
-
-        // Optimize the most common form: 'break;'.
-        if (source[index] === ';') {
-            lex();
-
-            if (!(state.inIteration || state.inSwitch)) {
-                throwError({}, Messages.IllegalBreak);
-            }
-
-            return {
-                type: Syntax.BreakStatement,
-                label: null
-            };
-        }
-
-        if (peekLineTerminator()) {
-            if (!(state.inIteration || state.inSwitch)) {
-                throwError({}, Messages.IllegalBreak);
-            }
-
-            return {
-                type: Syntax.BreakStatement,
-                label: null
-            };
-        }
-
-        token = lookahead();
-        if (token.type === Token.Identifier) {
-            label = parseVariableIdentifier();
-
-            if (!Object.prototype.hasOwnProperty.call(state.labelSet, label.name)) {
-                throwError({}, Messages.UnknownLabel, label.name);
-            }
-        }
-
-        consumeSemicolon();
-
-        if (label === null && !(state.inIteration || state.inSwitch)) {
-            throwError({}, Messages.IllegalBreak);
-        }
-
-        return {
-            type: Syntax.BreakStatement,
-            label: label
-        };
-    }
-
-    // 12.9 The return statement
-
-    function parseReturnStatement() {
-        var token, argument = null;
-
-        expectKeyword('return');
-
-        if (!state.inFunctionBody) {
-            throwErrorTolerant({}, Messages.IllegalReturn);
-        }
-
-        // 'return' followed by a space and an identifier is very common.
-        if (source[index] === ' ') {
-            if (isIdentifierStart(source[index + 1])) {
-                argument = parseExpression();
-                consumeSemicolon();
-                return {
-                    type: Syntax.ReturnStatement,
-                    argument: argument
-                };
-            }
-        }
-
-        if (peekLineTerminator()) {
-            return {
-                type: Syntax.ReturnStatement,
-                argument: null
-            };
-        }
-
-        if (!match(';')) {
-            token = lookahead();
-            if (!match('}') && token.type !== Token.EOF) {
-                argument = parseExpression();
-            }
-        }
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.ReturnStatement,
-            argument: argument
-        };
-    }
-
-    // 12.10 The with statement
-
-    function parseWithStatement() {
-        var object, body;
-
-        if (strict) {
-            throwErrorTolerant({}, Messages.StrictModeWith);
-        }
-
-        expectKeyword('with');
-
-        expect('(');
-
-        object = parseExpression();
-
-        expect(')');
-
-        body = parseStatement();
-
-        return {
-            type: Syntax.WithStatement,
-            object: object,
-            body: body
-        };
-    }
-
-    // 12.10 The swith statement
-
-    function parseSwitchCase() {
-        var test,
-            consequent = [],
-            statement;
-
-        if (matchKeyword('default')) {
-            lex();
-            test = null;
-        } else {
-            expectKeyword('case');
-            test = parseExpression();
-        }
-        expect(':');
-
-        while (index < length) {
-            if (match('}') || matchKeyword('default') || matchKeyword('case')) {
-                break;
-            }
-            statement = parseStatement();
-            if (typeof statement === 'undefined') {
-                break;
-            }
-            consequent.push(statement);
-        }
-
-        return {
-            type: Syntax.SwitchCase,
-            test: test,
-            consequent: consequent
-        };
-    }
-
-    function parseSwitchStatement() {
-        var discriminant, cases, clause, oldInSwitch, defaultFound;
-
-        expectKeyword('switch');
-
-        expect('(');
-
-        discriminant = parseExpression();
-
-        expect(')');
-
-        expect('{');
-
-        cases = [];
-
-        if (match('}')) {
-            lex();
-            return {
-                type: Syntax.SwitchStatement,
-                discriminant: discriminant,
-                cases: cases
-            };
-        }
-
-        oldInSwitch = state.inSwitch;
-        state.inSwitch = true;
-        defaultFound = false;
-
-        while (index < length) {
-            if (match('}')) {
-                break;
-            }
-            clause = parseSwitchCase();
-            if (clause.test === null) {
-                if (defaultFound) {
-                    throwError({}, Messages.MultipleDefaultsInSwitch);
-                }
-                defaultFound = true;
-            }
-            cases.push(clause);
-        }
-
-        state.inSwitch = oldInSwitch;
-
-        expect('}');
-
-        return {
-            type: Syntax.SwitchStatement,
-            discriminant: discriminant,
-            cases: cases
-        };
-    }
-
-    // 12.13 The throw statement
-
-    function parseThrowStatement() {
-        var argument;
-
-        expectKeyword('throw');
-
-        if (peekLineTerminator()) {
-            throwError({}, Messages.NewlineAfterThrow);
-        }
-
-        argument = parseExpression();
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.ThrowStatement,
-            argument: argument
-        };
-    }
-
-    // 12.14 The try statement
-
-    function parseCatchClause() {
-        var param;
-
-        expectKeyword('catch');
-
-        expect('(');
-        if (match(')')) {
-            throwUnexpected(lookahead());
-        }
-
-        param = parseVariableIdentifier();
-        // 12.14.1
-        if (strict && isRestrictedWord(param.name)) {
-            throwErrorTolerant({}, Messages.StrictCatchVariable);
-        }
-
-        expect(')');
-
-        return {
-            type: Syntax.CatchClause,
-            param: param,
-            body: parseBlock()
-        };
-    }
-
-    function parseTryStatement() {
-        var block, handlers = [], finalizer = null;
-
-        expectKeyword('try');
-
-        block = parseBlock();
-
-        if (matchKeyword('catch')) {
-            handlers.push(parseCatchClause());
-        }
-
-        if (matchKeyword('finally')) {
-            lex();
-            finalizer = parseBlock();
-        }
-
-        if (handlers.length === 0 && !finalizer) {
-            throwError({}, Messages.NoCatchOrFinally);
-        }
-
-        return {
-            type: Syntax.TryStatement,
-            block: block,
-            guardedHandlers: [],
-            handlers: handlers,
-            finalizer: finalizer
-        };
-    }
-
-    // 12.15 The debugger statement
-
-    function parseDebuggerStatement() {
-        expectKeyword('debugger');
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.DebuggerStatement
-        };
-    }
-
-    // 12 Statements
-
-    function parseStatement() {
-        var token = lookahead(),
-            expr,
-            labeledBody;
-
-        if (token.type === Token.EOF) {
-            throwUnexpected(token);
-        }
-
-        if (token.type === Token.Punctuator) {
-            switch (token.value) {
-            case ';':
-                return parseEmptyStatement();
-            case '{':
-                return parseBlock();
-            case '(':
-                return parseExpressionStatement();
-            default:
-                break;
-            }
-        }
-
-        if (token.type === Token.Keyword) {
-            switch (token.value) {
-            case 'break':
-                return parseBreakStatement();
-            case 'continue':
-                return parseContinueStatement();
-            case 'debugger':
-                return parseDebuggerStatement();
-            case 'do':
-                return parseDoWhileStatement();
-            case 'for':
-                return parseForStatement();
-            case 'function':
-                return parseFunctionDeclaration();
-            case 'if':
-                return parseIfStatement();
-            case 'return':
-                return parseReturnStatement();
-            case 'switch':
-                return parseSwitchStatement();
-            case 'throw':
-                return parseThrowStatement();
-            case 'try':
-                return parseTryStatement();
-            case 'var':
-                return parseVariableStatement();
-            case 'while':
-                return parseWhileStatement();
-            case 'with':
-                return parseWithStatement();
-            default:
-                break;
-            }
-        }
-
-        expr = parseExpression();
-
-        // 12.12 Labelled Statements
-        if ((expr.type === Syntax.Identifier) && match(':')) {
-            lex();
-
-            if (Object.prototype.hasOwnProperty.call(state.labelSet, expr.name)) {
-                throwError({}, Messages.Redeclaration, 'Label', expr.name);
-            }
-
-            state.labelSet[expr.name] = true;
-            labeledBody = parseStatement();
-            delete state.labelSet[expr.name];
-
-            return {
-                type: Syntax.LabeledStatement,
-                label: expr,
-                body: labeledBody
-            };
-        }
-
-        consumeSemicolon();
-
-        return {
-            type: Syntax.ExpressionStatement,
-            expression: expr
-        };
-    }
-
-    // 13 Function Definition
-
-    function parseFunctionSourceElements() {
-        var sourceElement, sourceElements = [], token, directive, firstRestricted,
-            oldLabelSet, oldInIteration, oldInSwitch, oldInFunctionBody;
-
-        expect('{');
-
-        while (index < length) {
-            token = lookahead();
-            if (token.type !== Token.StringLiteral) {
-                break;
-            }
-
-            sourceElement = parseSourceElement();
-            sourceElements.push(sourceElement);
-            if (sourceElement.expression.type !== Syntax.Literal) {
-                // this is not directive
-                break;
-            }
-            directive = sliceSource(token.range[0] + 1, token.range[1] - 1);
-            if (directive === 'use strict') {
-                strict = true;
-                if (firstRestricted) {
-                    throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
-                }
-            } else {
-                if (!firstRestricted && token.octal) {
-                    firstRestricted = token;
-                }
-            }
-        }
-
-        oldLabelSet = state.labelSet;
-        oldInIteration = state.inIteration;
-        oldInSwitch = state.inSwitch;
-        oldInFunctionBody = state.inFunctionBody;
-
-        state.labelSet = {};
-        state.inIteration = false;
-        state.inSwitch = false;
-        state.inFunctionBody = true;
-
-        while (index < length) {
-            if (match('}')) {
-                break;
-            }
-            sourceElement = parseSourceElement();
-            if (typeof sourceElement === 'undefined') {
-                break;
-            }
-            sourceElements.push(sourceElement);
-        }
-
-        expect('}');
-
-        state.labelSet = oldLabelSet;
-        state.inIteration = oldInIteration;
-        state.inSwitch = oldInSwitch;
-        state.inFunctionBody = oldInFunctionBody;
-
-        return {
-            type: Syntax.BlockStatement,
-            body: sourceElements
-        };
-    }
-
-    function parseFunctionDeclaration() {
-        var id, param, params = [], body, token, stricted, firstRestricted, message, previousStrict, paramSet;
-
-        expectKeyword('function');
-        token = lookahead();
-        id = parseVariableIdentifier();
-        if (strict) {
-            if (isRestrictedWord(token.value)) {
-                throwErrorTolerant(token, Messages.StrictFunctionName);
-            }
-        } else {
-            if (isRestrictedWord(token.value)) {
-                firstRestricted = token;
-                message = Messages.StrictFunctionName;
-            } else if (isStrictModeReservedWord(token.value)) {
-                firstRestricted = token;
-                message = Messages.StrictReservedWord;
-            }
-        }
-
-        expect('(');
-
-        if (!match(')')) {
-            paramSet = {};
-            while (index < length) {
-                token = lookahead();
-                param = parseVariableIdentifier();
-                if (strict) {
-                    if (isRestrictedWord(token.value)) {
-                        stricted = token;
-                        message = Messages.StrictParamName;
-                    }
-                    if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
-                        stricted = token;
-                        message = Messages.StrictParamDupe;
-                    }
-                } else if (!firstRestricted) {
-                    if (isRestrictedWord(token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictParamName;
-                    } else if (isStrictModeReservedWord(token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictReservedWord;
-                    } else if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictParamDupe;
-                    }
-                }
-                params.push(param);
-                paramSet[param.name] = true;
-                if (match(')')) {
-                    break;
-                }
-                expect(',');
-            }
-        }
-
-        expect(')');
-
-        previousStrict = strict;
-        body = parseFunctionSourceElements();
-        if (strict && firstRestricted) {
-            throwError(firstRestricted, message);
-        }
-        if (strict && stricted) {
-            throwErrorTolerant(stricted, message);
-        }
-        strict = previousStrict;
-
-        return {
-            type: Syntax.FunctionDeclaration,
-            id: id,
-            params: params,
-            defaults: [],
-            body: body,
-            rest: null,
-            generator: false,
-            expression: false
-        };
-    }
-
-    function parseFunctionExpression() {
-        var token, id = null, stricted, firstRestricted, message, param, params = [], body, previousStrict, paramSet;
-
-        expectKeyword('function');
-
-        if (!match('(')) {
-            token = lookahead();
-            id = parseVariableIdentifier();
-            if (strict) {
-                if (isRestrictedWord(token.value)) {
-                    throwErrorTolerant(token, Messages.StrictFunctionName);
-                }
-            } else {
-                if (isRestrictedWord(token.value)) {
-                    firstRestricted = token;
-                    message = Messages.StrictFunctionName;
-                } else if (isStrictModeReservedWord(token.value)) {
-                    firstRestricted = token;
-                    message = Messages.StrictReservedWord;
-                }
-            }
-        }
-
-        expect('(');
-
-        if (!match(')')) {
-            paramSet = {};
-            while (index < length) {
-                token = lookahead();
-                param = parseVariableIdentifier();
-                if (strict) {
-                    if (isRestrictedWord(token.value)) {
-                        stricted = token;
-                        message = Messages.StrictParamName;
-                    }
-                    if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
-                        stricted = token;
-                        message = Messages.StrictParamDupe;
-                    }
-                } else if (!firstRestricted) {
-                    if (isRestrictedWord(token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictParamName;
-                    } else if (isStrictModeReservedWord(token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictReservedWord;
-                    } else if (Object.prototype.hasOwnProperty.call(paramSet, token.value)) {
-                        firstRestricted = token;
-                        message = Messages.StrictParamDupe;
-                    }
-                }
-                params.push(param);
-                paramSet[param.name] = true;
-                if (match(')')) {
-                    break;
-                }
-                expect(',');
-            }
-        }
-
-        expect(')');
-
-        previousStrict = strict;
-        body = parseFunctionSourceElements();
-        if (strict && firstRestricted) {
-            throwError(firstRestricted, message);
-        }
-        if (strict && stricted) {
-            throwErrorTolerant(stricted, message);
-        }
-        strict = previousStrict;
-
-        return {
-            type: Syntax.FunctionExpression,
-            id: id,
-            params: params,
-            defaults: [],
-            body: body,
-            rest: null,
-            generator: false,
-            expression: false
-        };
-    }
-
-    // 14 Program
-
-    function parseSourceElement() {
-        var token = lookahead();
-
-        if (token.type === Token.Keyword) {
-            switch (token.value) {
-            case 'const':
-            case 'let':
-                return parseConstLetDeclaration(token.value);
-            case 'function':
-                return parseFunctionDeclaration();
-            default:
-                return parseStatement();
-            }
-        }
-
-        if (token.type !== Token.EOF) {
-            return parseStatement();
-        }
-    }
-
-    function parseSourceElements() {
-        var sourceElement, sourceElements = [], token, directive, firstRestricted;
-
-        while (index < length) {
-            token = lookahead();
-            if (token.type !== Token.StringLiteral) {
-                break;
-            }
-
-            sourceElement = parseSourceElement();
-            sourceElements.push(sourceElement);
-            if (sourceElement.expression.type !== Syntax.Literal) {
-                // this is not directive
-                break;
-            }
-            directive = sliceSource(token.range[0] + 1, token.range[1] - 1);
-            if (directive === 'use strict') {
-                strict = true;
-                if (firstRestricted) {
-                    throwErrorTolerant(firstRestricted, Messages.StrictOctalLiteral);
-                }
-            } else {
-                if (!firstRestricted && token.octal) {
-                    firstRestricted = token;
-                }
-            }
-        }
-
-        while (index < length) {
-            sourceElement = parseSourceElement();
-            if (typeof sourceElement === 'undefined') {
-                break;
-            }
-            sourceElements.push(sourceElement);
-        }
-        return sourceElements;
-    }
-
-    function parseProgram() {
-        var program;
-        strict = false;
-        program = {
-            type: Syntax.Program,
-            body: parseSourceElements()
-        };
-        return program;
-    }
-
-    // The following functions are needed only when the option to preserve
-    // the comments is active.
-
-    function addComment(type, value, start, end, loc) {
-        assert(typeof start === 'number', 'Comment must have valid position');
-
-        // Because the way the actual token is scanned, often the comments
-        // (if any) are skipped twice during the lexical analysis.
-        // Thus, we need to skip adding a comment if the comment array already
-        // handled it.
-        if (extra.comments.length > 0) {
-            if (extra.comments[extra.comments.length - 1].range[1] > start) {
-                return;
-            }
-        }
-
-        extra.comments.push({
-            type: type,
-            value: value,
-            range: [start, end],
-            loc: loc
-        });
-    }
-
-    function scanComment() {
-        var comment, ch, loc, start, blockComment, lineComment;
-
-        comment = '';
-        blockComment = false;
-        lineComment = false;
-
-        while (index < length) {
-            ch = source[index];
-
-            if (lineComment) {
-                ch = source[index++];
-                if (isLineTerminator(ch)) {
-                    loc.end = {
-                        line: lineNumber,
-                        column: index - lineStart - 1
-                    };
-                    lineComment = false;
-                    addComment('Line', comment, start, index - 1, loc);
-                    if (ch === '\r' && source[index] === '\n') {
-                        ++index;
-                    }
-                    ++lineNumber;
-                    lineStart = index;
-                    comment = '';
-                } else if (index >= length) {
-                    lineComment = false;
-                    comment += ch;
-                    loc.end = {
-                        line: lineNumber,
-                        column: length - lineStart
-                    };
-                    addComment('Line', comment, start, length, loc);
-                } else {
-                    comment += ch;
-                }
-            } else if (blockComment) {
-                if (isLineTerminator(ch)) {
-                    if (ch === '\r' && source[index + 1] === '\n') {
-                        ++index;
-                        comment += '\r\n';
-                    } else {
-                        comment += ch;
-                    }
-                    ++lineNumber;
-                    ++index;
-                    lineStart = index;
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                } else {
-                    ch = source[index++];
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                    comment += ch;
-                    if (ch === '*') {
-                        ch = source[index];
-                        if (ch === '/') {
-                            comment = comment.substr(0, comment.length - 1);
-                            blockComment = false;
-                            ++index;
-                            loc.end = {
-                                line: lineNumber,
-                                column: index - lineStart
-                            };
-                            addComment('Block', comment, start, index, loc);
-                            comment = '';
-                        }
-                    }
-                }
-            } else if (ch === '/') {
-                ch = source[index + 1];
-                if (ch === '/') {
-                    loc = {
-                        start: {
-                            line: lineNumber,
-                            column: index - lineStart
-                        }
-                    };
-                    start = index;
-                    index += 2;
-                    lineComment = true;
-                    if (index >= length) {
-                        loc.end = {
-                            line: lineNumber,
-                            column: index - lineStart
-                        };
-                        lineComment = false;
-                        addComment('Line', comment, start, index, loc);
-                    }
-                } else if (ch === '*') {
-                    start = index;
-                    index += 2;
-                    blockComment = true;
-                    loc = {
-                        start: {
-                            line: lineNumber,
-                            column: index - lineStart - 2
-                        }
-                    };
-                    if (index >= length) {
-                        throwError({}, Messages.UnexpectedToken, 'ILLEGAL');
-                    }
-                } else {
-                    break;
-                }
-            } else if (isWhiteSpace(ch)) {
-                ++index;
-            } else if (isLineTerminator(ch)) {
-                ++index;
-                if (ch ===  '\r' && source[index] === '\n') {
-                    ++index;
-                }
-                ++lineNumber;
-                lineStart = index;
-            } else {
-                break;
-            }
-        }
-    }
-
-    function filterCommentLocation() {
-        var i, entry, comment, comments = [];
-
-        for (i = 0; i < extra.comments.length; ++i) {
-            entry = extra.comments[i];
-            comment = {
-                type: entry.type,
-                value: entry.value
-            };
-            if (extra.range) {
-                comment.range = entry.range;
-            }
-            if (extra.loc) {
-                comment.loc = entry.loc;
-            }
-            comments.push(comment);
-        }
-
-        extra.comments = comments;
-    }
-
-    function collectToken() {
-        var start, loc, token, range, value;
-
-        skipComment();
-        start = index;
-        loc = {
-            start: {
-                line: lineNumber,
-                column: index - lineStart
-            }
-        };
-
-        token = extra.advance();
-        loc.end = {
-            line: lineNumber,
-            column: index - lineStart
-        };
-
-        if (token.type !== Token.EOF) {
-            range = [token.range[0], token.range[1]];
-            value = sliceSource(token.range[0], token.range[1]);
-            extra.tokens.push({
-                type: TokenName[token.type],
-                value: value,
-                range: range,
-                loc: loc
-            });
-        }
-
-        return token;
-    }
-
-    function collectRegex() {
-        var pos, loc, regex, token;
-
-        skipComment();
-
-        pos = index;
-        loc = {
-            start: {
-                line: lineNumber,
-                column: index - lineStart
-            }
-        };
-
-        regex = extra.scanRegExp();
-        loc.end = {
-            line: lineNumber,
-            column: index - lineStart
-        };
-
-        // Pop the previous token, which is likely '/' or '/='
-        if (extra.tokens.length > 0) {
-            token = extra.tokens[extra.tokens.length - 1];
-            if (token.range[0] === pos && token.type === 'Punctuator') {
-                if (token.value === '/' || token.value === '/=') {
-                    extra.tokens.pop();
-                }
-            }
-        }
-
-        extra.tokens.push({
-            type: 'RegularExpression',
-            value: regex.literal,
-            range: [pos, index],
-            loc: loc
-        });
-
-        return regex;
-    }
-
-    function filterTokenLocation() {
-        var i, entry, token, tokens = [];
-
-        for (i = 0; i < extra.tokens.length; ++i) {
-            entry = extra.tokens[i];
-            token = {
-                type: entry.type,
-                value: entry.value
-            };
-            if (extra.range) {
-                token.range = entry.range;
-            }
-            if (extra.loc) {
-                token.loc = entry.loc;
-            }
-            tokens.push(token);
-        }
-
-        extra.tokens = tokens;
-    }
-
-    function createLiteral(token) {
-        return {
-            type: Syntax.Literal,
-            value: token.value
-        };
-    }
-
-    function createRawLiteral(token) {
-        return {
-            type: Syntax.Literal,
-            value: token.value,
-            raw: sliceSource(token.range[0], token.range[1])
-        };
-    }
-
-    function createLocationMarker() {
-        var marker = {};
-
-        marker.range = [index, index];
-        marker.loc = {
-            start: {
-                line: lineNumber,
-                column: index - lineStart
-            },
-            end: {
-                line: lineNumber,
-                column: index - lineStart
-            }
-        };
-
-        marker.end = function () {
-            this.range[1] = index;
-            this.loc.end.line = lineNumber;
-            this.loc.end.column = index - lineStart;
-        };
-
-        marker.applyGroup = function (node) {
-            if (extra.range) {
-                node.groupRange = [this.range[0], this.range[1]];
-            }
-            if (extra.loc) {
-                node.groupLoc = {
-                    start: {
-                        line: this.loc.start.line,
-                        column: this.loc.start.column
-                    },
-                    end: {
-                        line: this.loc.end.line,
-                        column: this.loc.end.column
-                    }
-                };
-            }
-        };
-
-        marker.apply = function (node) {
-            if (extra.range) {
-                node.range = [this.range[0], this.range[1]];
-            }
-            if (extra.loc) {
-                node.loc = {
-                    start: {
-                        line: this.loc.start.line,
-                        column: this.loc.start.column
-                    },
-                    end: {
-                        line: this.loc.end.line,
-                        column: this.loc.end.column
-                    }
-                };
-            }
-        };
-
-        return marker;
-    }
-
-    function trackGroupExpression() {
-        var marker, expr;
-
-        skipComment();
-        marker = createLocationMarker();
-        expect('(');
-
-        expr = parseExpression();
-
-        expect(')');
-
-        marker.end();
-        marker.applyGroup(expr);
-
-        return expr;
-    }
-
-    function trackLeftHandSideExpression() {
-        var marker, expr;
-
-        skipComment();
-        marker = createLocationMarker();
-
-        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
-
-        while (match('.') || match('[')) {
-            if (match('[')) {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: true,
-                    object: expr,
-                    property: parseComputedMember()
-                };
-                marker.end();
-                marker.apply(expr);
-            } else {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: false,
-                    object: expr,
-                    property: parseNonComputedMember()
-                };
-                marker.end();
-                marker.apply(expr);
-            }
-        }
-
-        return expr;
-    }
-
-    function trackLeftHandSideExpressionAllowCall() {
-        var marker, expr;
-
-        skipComment();
-        marker = createLocationMarker();
-
-        expr = matchKeyword('new') ? parseNewExpression() : parsePrimaryExpression();
-
-        while (match('.') || match('[') || match('(')) {
-            if (match('(')) {
-                expr = {
-                    type: Syntax.CallExpression,
-                    callee: expr,
-                    'arguments': parseArguments()
-                };
-                marker.end();
-                marker.apply(expr);
-            } else if (match('[')) {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: true,
-                    object: expr,
-                    property: parseComputedMember()
-                };
-                marker.end();
-                marker.apply(expr);
-            } else {
-                expr = {
-                    type: Syntax.MemberExpression,
-                    computed: false,
-                    object: expr,
-                    property: parseNonComputedMember()
-                };
-                marker.end();
-                marker.apply(expr);
-            }
-        }
-
-        return expr;
-    }
-
-    function filterGroup(node) {
-        var n, i, entry;
-
-        n = (Object.prototype.toString.apply(node) === '[object Array]') ? [] : {};
-        for (i in node) {
-            if (node.hasOwnProperty(i) && i !== 'groupRange' && i !== 'groupLoc') {
-                entry = node[i];
-                if (entry === null || typeof entry !== 'object' || entry instanceof RegExp) {
-                    n[i] = entry;
-                } else {
-                    n[i] = filterGroup(entry);
-                }
-            }
-        }
-        return n;
-    }
-
-    function wrapTrackingFunction(range, loc) {
-
-        return function (parseFunction) {
-
-            function isBinary(node) {
-                return node.type === Syntax.LogicalExpression ||
-                    node.type === Syntax.BinaryExpression;
-            }
-
-            function visit(node) {
-                var start, end;
-
-                if (isBinary(node.left)) {
-                    visit(node.left);
-                }
-                if (isBinary(node.right)) {
-                    visit(node.right);
-                }
-
-                if (range) {
-                    if (node.left.groupRange || node.right.groupRange) {
-                        start = node.left.groupRange ? node.left.groupRange[0] : node.left.range[0];
-                        end = node.right.groupRange ? node.right.groupRange[1] : node.right.range[1];
-                        node.range = [start, end];
-                    } else if (typeof node.range === 'undefined') {
-                        start = node.left.range[0];
-                        end = node.right.range[1];
-                        node.range = [start, end];
-                    }
-                }
-                if (loc) {
-                    if (node.left.groupLoc || node.right.groupLoc) {
-                        start = node.left.groupLoc ? node.left.groupLoc.start : node.left.loc.start;
-                        end = node.right.groupLoc ? node.right.groupLoc.end : node.right.loc.end;
-                        node.loc = {
-                            start: start,
-                            end: end
-                        };
-                    } else if (typeof node.loc === 'undefined') {
-                        node.loc = {
-                            start: node.left.loc.start,
-                            end: node.right.loc.end
-                        };
-                    }
-                }
-            }
-
-            return function () {
-                var marker, node;
-
-                skipComment();
-
-                marker = createLocationMarker();
-                node = parseFunction.apply(null, arguments);
-                marker.end();
-
-                if (range && typeof node.range === 'undefined') {
-                    marker.apply(node);
-                }
-
-                if (loc && typeof node.loc === 'undefined') {
-                    marker.apply(node);
-                }
-
-                if (isBinary(node)) {
-                    visit(node);
-                }
-
-                return node;
-            };
-        };
-    }
-
-    function patch() {
-
-        var wrapTracking;
-
-        if (extra.comments) {
-            extra.skipComment = skipComment;
-            skipComment = scanComment;
-        }
-
-        if (extra.raw) {
-            extra.createLiteral = createLiteral;
-            createLiteral = createRawLiteral;
-        }
-
-        if (extra.range || extra.loc) {
-
-            extra.parseGroupExpression = parseGroupExpression;
-            extra.parseLeftHandSideExpression = parseLeftHandSideExpression;
-            extra.parseLeftHandSideExpressionAllowCall = parseLeftHandSideExpressionAllowCall;
-            parseGroupExpression = trackGroupExpression;
-            parseLeftHandSideExpression = trackLeftHandSideExpression;
-            parseLeftHandSideExpressionAllowCall = trackLeftHandSideExpressionAllowCall;
-
-            wrapTracking = wrapTrackingFunction(extra.range, extra.loc);
-
-            extra.parseAdditiveExpression = parseAdditiveExpression;
-            extra.parseAssignmentExpression = parseAssignmentExpression;
-            extra.parseBitwiseANDExpression = parseBitwiseANDExpression;
-            extra.parseBitwiseORExpression = parseBitwiseORExpression;
-            extra.parseBitwiseXORExpression = parseBitwiseXORExpression;
-            extra.parseBlock = parseBlock;
-            extra.parseFunctionSourceElements = parseFunctionSourceElements;
-            extra.parseCatchClause = parseCatchClause;
-            extra.parseComputedMember = parseComputedMember;
-            extra.parseConditionalExpression = parseConditionalExpression;
-            extra.parseConstLetDeclaration = parseConstLetDeclaration;
-            extra.parseEqualityExpression = parseEqualityExpression;
-            extra.parseExpression = parseExpression;
-            extra.parseForVariableDeclaration = parseForVariableDeclaration;
-            extra.parseFunctionDeclaration = parseFunctionDeclaration;
-            extra.parseFunctionExpression = parseFunctionExpression;
-            extra.parseLogicalANDExpression = parseLogicalANDExpression;
-            extra.parseLogicalORExpression = parseLogicalORExpression;
-            extra.parseMultiplicativeExpression = parseMultiplicativeExpression;
-            extra.parseNewExpression = parseNewExpression;
-            extra.parseNonComputedProperty = parseNonComputedProperty;
-            extra.parseObjectProperty = parseObjectProperty;
-            extra.parseObjectPropertyKey = parseObjectPropertyKey;
-            extra.parsePostfixExpression = parsePostfixExpression;
-            extra.parsePrimaryExpression = parsePrimaryExpression;
-            extra.parseProgram = parseProgram;
-            extra.parsePropertyFunction = parsePropertyFunction;
-            extra.parseRelationalExpression = parseRelationalExpression;
-            extra.parseStatement = parseStatement;
-            extra.parseShiftExpression = parseShiftExpression;
-            extra.parseSwitchCase = parseSwitchCase;
-            extra.parseUnaryExpression = parseUnaryExpression;
-            extra.parseVariableDeclaration = parseVariableDeclaration;
-            extra.parseVariableIdentifier = parseVariableIdentifier;
-
-            parseAdditiveExpression = wrapTracking(extra.parseAdditiveExpression);
-            parseAssignmentExpression = wrapTracking(extra.parseAssignmentExpression);
-            parseBitwiseANDExpression = wrapTracking(extra.parseBitwiseANDExpression);
-            parseBitwiseORExpression = wrapTracking(extra.parseBitwiseORExpression);
-            parseBitwiseXORExpression = wrapTracking(extra.parseBitwiseXORExpression);
-            parseBlock = wrapTracking(extra.parseBlock);
-            parseFunctionSourceElements = wrapTracking(extra.parseFunctionSourceElements);
-            parseCatchClause = wrapTracking(extra.parseCatchClause);
-            parseComputedMember = wrapTracking(extra.parseComputedMember);
-            parseConditionalExpression = wrapTracking(extra.parseConditionalExpression);
-            parseConstLetDeclaration = wrapTracking(extra.parseConstLetDeclaration);
-            parseEqualityExpression = wrapTracking(extra.parseEqualityExpression);
-            parseExpression = wrapTracking(extra.parseExpression);
-            parseForVariableDeclaration = wrapTracking(extra.parseForVariableDeclaration);
-            parseFunctionDeclaration = wrapTracking(extra.parseFunctionDeclaration);
-            parseFunctionExpression = wrapTracking(extra.parseFunctionExpression);
-            parseLeftHandSideExpression = wrapTracking(parseLeftHandSideExpression);
-            parseLogicalANDExpression = wrapTracking(extra.parseLogicalANDExpression);
-            parseLogicalORExpression = wrapTracking(extra.parseLogicalORExpression);
-            parseMultiplicativeExpression = wrapTracking(extra.parseMultiplicativeExpression);
-            parseNewExpression = wrapTracking(extra.parseNewExpression);
-            parseNonComputedProperty = wrapTracking(extra.parseNonComputedProperty);
-            parseObjectProperty = wrapTracking(extra.parseObjectProperty);
-            parseObjectPropertyKey = wrapTracking(extra.parseObjectPropertyKey);
-            parsePostfixExpression = wrapTracking(extra.parsePostfixExpression);
-            parsePrimaryExpression = wrapTracking(extra.parsePrimaryExpression);
-            parseProgram = wrapTracking(extra.parseProgram);
-            parsePropertyFunction = wrapTracking(extra.parsePropertyFunction);
-            parseRelationalExpression = wrapTracking(extra.parseRelationalExpression);
-            parseStatement = wrapTracking(extra.parseStatement);
-            parseShiftExpression = wrapTracking(extra.parseShiftExpression);
-            parseSwitchCase = wrapTracking(extra.parseSwitchCase);
-            parseUnaryExpression = wrapTracking(extra.parseUnaryExpression);
-            parseVariableDeclaration = wrapTracking(extra.parseVariableDeclaration);
-            parseVariableIdentifier = wrapTracking(extra.parseVariableIdentifier);
-        }
-
-        if (typeof extra.tokens !== 'undefined') {
-            extra.advance = advance;
-            extra.scanRegExp = scanRegExp;
-
-            advance = collectToken;
-            scanRegExp = collectRegex;
-        }
-    }
-
-    function unpatch() {
-        if (typeof extra.skipComment === 'function') {
-            skipComment = extra.skipComment;
-        }
-
-        if (extra.raw) {
-            createLiteral = extra.createLiteral;
-        }
-
-        if (extra.range || extra.loc) {
-            parseAdditiveExpression = extra.parseAdditiveExpression;
-            parseAssignmentExpression = extra.parseAssignmentExpression;
-            parseBitwiseANDExpression = extra.parseBitwiseANDExpression;
-            parseBitwiseORExpression = extra.parseBitwiseORExpression;
-            parseBitwiseXORExpression = extra.parseBitwiseXORExpression;
-            parseBlock = extra.parseBlock;
-            parseFunctionSourceElements = extra.parseFunctionSourceElements;
-            parseCatchClause = extra.parseCatchClause;
-            parseComputedMember = extra.parseComputedMember;
-            parseConditionalExpression = extra.parseConditionalExpression;
-            parseConstLetDeclaration = extra.parseConstLetDeclaration;
-            parseEqualityExpression = extra.parseEqualityExpression;
-            parseExpression = extra.parseExpression;
-            parseForVariableDeclaration = extra.parseForVariableDeclaration;
-            parseFunctionDeclaration = extra.parseFunctionDeclaration;
-            parseFunctionExpression = extra.parseFunctionExpression;
-            parseGroupExpression = extra.parseGroupExpression;
-            parseLeftHandSideExpression = extra.parseLeftHandSideExpression;
-            parseLeftHandSideExpressionAllowCall = extra.parseLeftHandSideExpressionAllowCall;
-            parseLogicalANDExpression = extra.parseLogicalANDExpression;
-            parseLogicalORExpression = extra.parseLogicalORExpression;
-            parseMultiplicativeExpression = extra.parseMultiplicativeExpression;
-            parseNewExpression = extra.parseNewExpression;
-            parseNonComputedProperty = extra.parseNonComputedProperty;
-            parseObjectProperty = extra.parseObjectProperty;
-            parseObjectPropertyKey = extra.parseObjectPropertyKey;
-            parsePrimaryExpression = extra.parsePrimaryExpression;
-            parsePostfixExpression = extra.parsePostfixExpression;
-            parseProgram = extra.parseProgram;
-            parsePropertyFunction = extra.parsePropertyFunction;
-            parseRelationalExpression = extra.parseRelationalExpression;
-            parseStatement = extra.parseStatement;
-            parseShiftExpression = extra.parseShiftExpression;
-            parseSwitchCase = extra.parseSwitchCase;
-            parseUnaryExpression = extra.parseUnaryExpression;
-            parseVariableDeclaration = extra.parseVariableDeclaration;
-            parseVariableIdentifier = extra.parseVariableIdentifier;
-        }
-
-        if (typeof extra.scanRegExp === 'function') {
-            advance = extra.advance;
-            scanRegExp = extra.scanRegExp;
-        }
-    }
-
-    function stringToArray(str) {
-        var length = str.length,
-            result = [],
-            i;
-        for (i = 0; i < length; ++i) {
-            result[i] = str.charAt(i);
-        }
-        return result;
-    }
-
-    function parse(code, options) {
-        var program, toString;
-
-        toString = String;
-        if (typeof code !== 'string' && !(code instanceof String)) {
-            code = toString(code);
-        }
-
-        source = code;
-        index = 0;
-        lineNumber = (source.length > 0) ? 1 : 0;
-        lineStart = 0;
-        length = source.length;
-        buffer = null;
-        state = {
-            allowIn: true,
-            labelSet: {},
-            inFunctionBody: false,
-            inIteration: false,
-            inSwitch: false
-        };
-
-        extra = {};
-        if (typeof options !== 'undefined') {
-            extra.range = (typeof options.range === 'boolean') && options.range;
-            extra.loc = (typeof options.loc === 'boolean') && options.loc;
-            extra.raw = (typeof options.raw === 'boolean') && options.raw;
-            if (typeof options.tokens === 'boolean' && options.tokens) {
-                extra.tokens = [];
-            }
-            if (typeof options.comment === 'boolean' && options.comment) {
-                extra.comments = [];
-            }
-            if (typeof options.tolerant === 'boolean' && options.tolerant) {
-                extra.errors = [];
-            }
-        }
-
-        if (length > 0) {
-            if (typeof source[0] === 'undefined') {
-                // Try first to convert to a string. This is good as fast path
-                // for old IE which understands string indexing for string
-                // literals only and not for string object.
-                if (code instanceof String) {
-                    source = code.valueOf();
-                }
-
-                // Force accessing the characters via an array.
-                if (typeof source[0] === 'undefined') {
-                    source = stringToArray(code);
-                }
-            }
-        }
-
-        patch();
-        try {
-            program = parseProgram();
-            if (typeof extra.comments !== 'undefined') {
-                filterCommentLocation();
-                program.comments = extra.comments;
-            }
-            if (typeof extra.tokens !== 'undefined') {
-                filterTokenLocation();
-                program.tokens = extra.tokens;
-            }
-            if (typeof extra.errors !== 'undefined') {
-                program.errors = extra.errors;
-            }
-            if (extra.range || extra.loc) {
-                program.body = filterGroup(program.body);
-            }
-        } catch (e) {
-            throw e;
-        } finally {
-            unpatch();
-            extra = {};
-        }
-
-        return program;
-    }
-
-    // Sync with package.json.
-    exports.version = '1.0.4';
-
-    exports.parse = parse;
-
-    // Deep copy.
-    exports.Syntax = (function () {
-        var name, types = {};
-
-        if (typeof Object.create === 'function') {
-            types = Object.create(null);
-        }
-
-        for (name in Syntax) {
-            if (Syntax.hasOwnProperty(name)) {
-                types[name] = Syntax[name];
-            }
-        }
-
-        if (typeof Object.freeze === 'function') {
-            Object.freeze(types);
-        }
-
-        return types;
-    }());
-
-}));
-/* vim: set sw=4 ts=4 et tw=80 : */
-/**
- * @license Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*global define, Reflect */
-
-/*
- * xpcshell has a smaller stack on linux and windows (1MB vs 9MB on mac),
- * and the recursive nature of esprima can cause it to overflow pretty
- * quickly. So favor it built in Reflect parser:
- * https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
- */
-define('esprimaAdapter', ['./esprima', 'env'], function (esprima, env) {
-    if (env.get() === 'xpconnect' && typeof Reflect !== 'undefined') {
-        return Reflect;
-    } else {
-        return esprima;
-    }
-});
-define('uglifyjs/consolidator', ["require", "exports", "module", "./parse-js", "./process"], function(require, exports, module) {
-/**
- * @preserve Copyright 2012 Robert Gust-Bardon <http://robert.gust-bardon.org/>.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- *     * Redistributions of source code must retain the above
- *       copyright notice, this list of conditions and the following
- *       disclaimer.
- *
- *     * Redistributions in binary form must reproduce the above
- *       copyright notice, this list of conditions and the following
- *       disclaimer in the documentation and/or other materials
- *       provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
- * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
- * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
- * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-/**
- * @fileoverview Enhances <a href="https://github.com/mishoo/UglifyJS/"
- * >UglifyJS</a> with consolidation of null, Boolean, and String values.
- * <p>Also known as aliasing, this feature has been deprecated in <a href=
- * "http://closure-compiler.googlecode.com/">the Closure Compiler</a> since its
- * initial release, where it is unavailable from the <abbr title=
- * "command line interface">CLI</a>. The Closure Compiler allows one to log and
- * influence this process. In contrast, this implementation does not introduce
- * any variable declarations in global code and derives String values from
- * identifier names used as property accessors.</p>
- * <p>Consolidating literals may worsen the data compression ratio when an <a
- * href="http://tools.ietf.org/html/rfc2616#section-3.5">encoding
- * transformation</a> is applied. For instance, <a href=
- * "http://code.jquery.com/jquery-1.7.1.js">jQuery 1.7.1</a> takes 248235 bytes.
- * Building it with <a href="https://github.com/mishoo/UglifyJS/tarball/v1.2.5">
- * UglifyJS v1.2.5</a> results in 93647 bytes (37.73% of the original) which are
- * then compressed to 33154 bytes (13.36% of the original) using <a href=
- * "http://linux.die.net/man/1/gzip">gzip(1)</a>. Building it with the same
- * version of UglifyJS 1.2.5 patched with the implementation of consolidation
- * results in 80784 bytes (a decrease of 12863 bytes, i.e. 13.74%, in comparison
- * to the aforementioned 93647 bytes) which are then compressed to 34013 bytes
- * (an increase of 859 bytes, i.e. 2.59%, in comparison to the aforementioned
- * 33154 bytes).</p>
- * <p>Written in <a href="http://es5.github.com/#x4.2.2">the strict variant</a>
- * of <a href="http://es5.github.com/">ECMA-262 5.1 Edition</a>. Encoded in <a
- * href="http://tools.ietf.org/html/rfc3629">UTF-8</a>. Follows <a href=
- * "http://google-styleguide.googlecode.com/svn-history/r76/trunk/javascriptguide.xml"
- * >Revision 2.28 of the Google JavaScript Style Guide</a> (except for the
- * discouraged use of the {@code function} tag and the {@code namespace} tag).
- * 100% typed for the <a href=
- * "http://closure-compiler.googlecode.com/files/compiler-20120123.tar.gz"
- * >Closure Compiler Version 1741</a>.</p>
- * <p>Should you find this software useful, please consider <a href=
- * "https://paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JZLW72X8FD4WG"
- * >a donation</a>.</p>
- * @author follow.me@RGustBardon (Robert Gust-Bardon)
- * @supported Tested with:
- *     <ul>
- *     <li><a href="http://nodejs.org/dist/v0.6.10/">Node v0.6.10</a>,</li>
- *     <li><a href="https://github.com/mishoo/UglifyJS/tarball/v1.2.5">UglifyJS
- *       v1.2.5</a>.</li>
- *     </ul>
- */
-
-/*global console:false, exports:true, module:false, require:false */
-/*jshint sub:true */
-/**
- * Consolidates null, Boolean, and String values found inside an <abbr title=
- * "abstract syntax tree">AST</abbr>.
- * @param {!TSyntacticCodeUnit} oAbstractSyntaxTree An array-like object
- *     representing an <abbr title="abstract syntax tree">AST</abbr>.
- * @return {!TSyntacticCodeUnit} An array-like object representing an <abbr
- *     title="abstract syntax tree">AST</abbr> with its null, Boolean, and
- *     String values consolidated.
- */
-// TODO(user) Consolidation of mathematical values found in numeric literals.
-// TODO(user) Unconsolidation.
-// TODO(user) Consolidation of ECMA-262 6th Edition programs.
-// TODO(user) Rewrite in ECMA-262 6th Edition.
-exports['ast_consolidate'] = function(oAbstractSyntaxTree) {
-  'use strict';
-  /*jshint bitwise:true, curly:true, eqeqeq:true, forin:true, immed:true,
-        latedef:true, newcap:true, noarge:true, noempty:true, nonew:true,
-        onevar:true, plusplus:true, regexp:true, undef:true, strict:true,
-        sub:false, trailing:true */
-
-  var _,
-      /**
-       * A record consisting of data about one or more source elements.
-       * @constructor
-       * @nosideeffects
-       */
-      TSourceElementsData = function() {
-        /**
-         * The category of the elements.
-         * @type {number}
-         * @see ESourceElementCategories
-         */
-        this.nCategory = ESourceElementCategories.N_OTHER;
-        /**
-         * The number of occurrences (within the elements) of each primitive
-         * value that could be consolidated.
-         * @type {!Array.<!Object.<string, number>>}
-         */
-        this.aCount = [];
-        this.aCount[EPrimaryExpressionCategories.N_IDENTIFIER_NAMES] = {};
-        this.aCount[EPrimaryExpressionCategories.N_STRING_LITERALS] = {};
-        this.aCount[EPrimaryExpressionCategories.N_NULL_AND_BOOLEAN_LITERALS] =
-            {};
-        /**
-         * Identifier names found within the elements.
-         * @type {!Array.<string>}
-         */
-        this.aIdentifiers = [];
-        /**
-         * Prefixed representation Strings of each primitive value that could be
-         * consolidated within the elements.
-         * @type {!Array.<string>}
-         */
-        this.aPrimitiveValues = [];
-      },
-      /**
-       * A record consisting of data about a primitive value that could be
-       * consolidated.
-       * @constructor
-       * @nosideeffects
-       */
-      TPrimitiveValue = function() {
-        /**
-         * The difference in the number of terminal symbols between the original
-         * source text and the one with the primitive value consolidated. If the
-         * difference is positive, the primitive value is considered worthwhile.
-         * @type {number}
-         */
-        this.nSaving = 0;
-        /**
-         * An identifier name of the variable that will be declared and assigned
-         * the primitive value if the primitive value is consolidated.
-         * @type {string}
-         */
-        this.sName = '';
-      },
-      /**
-       * A record consisting of data on what to consolidate within the range of
-       * source elements that is currently being considered.
-       * @constructor
-       * @nosideeffects
-       */
-      TSolution = function() {
-        /**
-         * An object whose keys are prefixed representation Strings of each
-         * primitive value that could be consolidated within the elements and
-         * whose values are corresponding data about those primitive values.
-         * @type {!Object.<string, {nSaving: number, sName: string}>}
-         * @see TPrimitiveValue
-         */
-        this.oPrimitiveValues = {};
-        /**
-         * The difference in the number of terminal symbols between the original
-         * source text and the one with all the worthwhile primitive values
-         * consolidated.
-         * @type {number}
-         * @see TPrimitiveValue#nSaving
-         */
-        this.nSavings = 0;
-      },
-      /**
-       * The processor of <abbr title="abstract syntax tree">AST</abbr>s found
-       * in UglifyJS.
-       * @namespace
-       * @type {!TProcessor}
-       */
-      oProcessor = (/** @type {!TProcessor} */ require('./process')),
-      /**
-       * A record consisting of a number of constants that represent the
-       * difference in the number of terminal symbols between a source text with
-       * a modified syntactic code unit and the original one.
-       * @namespace
-       * @type {!Object.<string, number>}
-       */
-      oWeights = {
-        /**
-         * The difference in the number of punctuators required by the bracket
-         * notation and the dot notation.
-         * <p><code>'[]'.length - '.'.length</code></p>
-         * @const
-         * @type {number}
-         */
-        N_PROPERTY_ACCESSOR: 1,
-        /**
-         * The number of punctuators required by a variable declaration with an
-         * initialiser.
-         * <p><code>':'.length + ';'.length</code></p>
-         * @const
-         * @type {number}
-         */
-        N_VARIABLE_DECLARATION: 2,
-        /**
-         * The number of terminal symbols required to introduce a variable
-         * statement (excluding its variable declaration list).
-         * <p><code>'var '.length</code></p>
-         * @const
-         * @type {number}
-         */
-        N_VARIABLE_STATEMENT_AFFIXATION: 4,
-        /**
-         * The number of terminal symbols needed to enclose source elements
-         * within a function call with no argument values to a function with an
-         * empty parameter list.
-         * <p><code>'(function(){}());'.length</code></p>
-         * @const
-         * @type {number}
-         */
-        N_CLOSURE: 17
-      },
-      /**
-       * Categories of primary expressions from which primitive values that
-       * could be consolidated are derivable.
-       * @namespace
-       * @enum {number}
-       */
-      EPrimaryExpressionCategories = {
-        /**
-         * Identifier names used as property accessors.
-         * @type {number}
-         */
-        N_IDENTIFIER_NAMES: 0,
-        /**
-         * String literals.
-         * @type {number}
-         */
-        N_STRING_LITERALS: 1,
-        /**
-         * Null and Boolean literals.
-         * @type {number}
-         */
-        N_NULL_AND_BOOLEAN_LITERALS: 2
-      },
-      /**
-       * Prefixes of primitive values that could be consolidated.
-       * The String values of the prefixes must have same number of characters.
-       * The prefixes must not be used in any properties defined in any version
-       * of <a href=
-       * "http://www.ecma-international.org/publications/standards/Ecma-262.htm"
-       * >ECMA-262</a>.
-       * @namespace
-       * @enum {string}
-       */
-      EValuePrefixes = {
-        /**
-         * Identifies String values.
-         * @type {string}
-         */
-        S_STRING: '#S',
-        /**
-         * Identifies null and Boolean values.
-         * @type {string}
-         */
-        S_SYMBOLIC: '#O'
-      },
-      /**
-       * Categories of source elements in terms of their appropriateness of
-       * having their primitive values consolidated.
-       * @namespace
-       * @enum {number}
-       */
-      ESourceElementCategories = {
-        /**
-         * Identifies a source element that includes the <a href=
-         * "http://es5.github.com/#x12.10">{@code with}</a> statement.
-         * @type {number}
-         */
-        N_WITH: 0,
-        /**
-         * Identifies a source element that includes the <a href=
-         * "http://es5.github.com/#x15.1.2.1">{@code eval}</a> identifier name.
-         * @type {number}
-         */
-        N_EVAL: 1,
-        /**
-         * Identifies a source element that must be excluded from the process
-         * unless its whole scope is examined.
-         * @type {number}
-         */
-        N_EXCLUDABLE: 2,
-        /**
-         * Identifies source elements not posing any problems.
-         * @type {number}
-         */
-        N_OTHER: 3
-      },
-      /**
-       * The list of literals (other than the String ones) whose primitive
-       * values can be consolidated.
-       * @const
-       * @type {!Array.<string>}
-       */
-      A_OTHER_SUBSTITUTABLE_LITERALS = [
-        'null',   // The null literal.
-        'false',  // The Boolean literal {@code false}.
-        'true'    // The Boolean literal {@code true}.
-      ];
-
-  (/**
-    * Consolidates all worthwhile primitive values in a syntactic code unit.
-    * @param {!TSyntacticCodeUnit} oSyntacticCodeUnit An array-like object
-    *     representing the branch of the abstract syntax tree representing the
-    *     syntactic code unit along with its scope.
-    * @see TPrimitiveValue#nSaving
-    */
-   function fExamineSyntacticCodeUnit(oSyntacticCodeUnit) {
-     var _,
-         /**
-          * Indicates whether the syntactic code unit represents global code.
-          * @type {boolean}
-          */
-         bIsGlobal = 'toplevel' === oSyntacticCodeUnit[0],
-         /**
-          * Indicates whether the whole scope is being examined.
-          * @type {boolean}
-          */
-         bIsWhollyExaminable = !bIsGlobal,
-         /**
-          * An array-like object representing source elements that constitute a
-          * syntactic code unit.
-          * @type {!TSyntacticCodeUnit}
-          */
-         oSourceElements,
-         /**
-          * A record consisting of data about the source element that is
-          * currently being examined.
-          * @type {!TSourceElementsData}
-          */
-         oSourceElementData,
-         /**
-          * The scope of the syntactic code unit.
-          * @type {!TScope}
-          */
-         oScope,
-         /**
-          * An instance of an object that allows the traversal of an <abbr
-          * title="abstract syntax tree">AST</abbr>.
-          * @type {!TWalker}
-          */
-         oWalker,
-         /**
-          * An object encompassing collections of functions used during the
-          * traversal of an <abbr title="abstract syntax tree">AST</abbr>.
-          * @namespace
-          * @type {!Object.<string, !Object.<string, function(...[*])>>}
-          */
-         oWalkers = {
-           /**
-            * A collection of functions used during the surveyance of source
-            * elements.
-            * @namespace
-            * @type {!Object.<string, function(...[*])>}
-            */
-           oSurveySourceElement: {
-             /**#nocode+*/  // JsDoc Toolkit 2.4.0 hides some of the keys.
-             /**
-              * Classifies the source element as excludable if it does not
-              * contain a {@code with} statement or the {@code eval} identifier
-              * name. Adds the identifier of the function and its formal
-              * parameters to the list of identifier names found.
-              * @param {string} sIdentifier The identifier of the function.
-              * @param {!Array.<string>} aFormalParameterList Formal parameters.
-              * @param {!TSyntacticCodeUnit} oFunctionBody Function code.
-              */
-             'defun': function(
-                 sIdentifier,
-                 aFormalParameterList,
-                 oFunctionBody) {
-               fClassifyAsExcludable();
-               fAddIdentifier(sIdentifier);
-               aFormalParameterList.forEach(fAddIdentifier);
-             },
-             /**
-              * Increments the count of the number of occurrences of the String
-              * value that is equivalent to the sequence of terminal symbols
-              * that constitute the encountered identifier name.
-              * @param {!TSyntacticCodeUnit} oExpression The nonterminal
-              *     MemberExpression.
-              * @param {string} sIdentifierName The identifier name used as the
-              *     property accessor.
-              * @return {!Array} The encountered branch of an <abbr title=
-              *     "abstract syntax tree">AST</abbr> with its nonterminal
-              *     MemberExpression traversed.
-              */
-             'dot': function(oExpression, sIdentifierName) {
-               fCountPrimaryExpression(
-                   EPrimaryExpressionCategories.N_IDENTIFIER_NAMES,
-                   EValuePrefixes.S_STRING + sIdentifierName);
-               return ['dot', oWalker.walk(oExpression), sIdentifierName];
-             },
-             /**
-              * Adds the optional identifier of the function and its formal
-              * parameters to the list of identifier names found.
-              * @param {?string} sIdentifier The optional identifier of the
-              *     function.
-              * @param {!Array.<string>} aFormalParameterList Formal parameters.
-              * @param {!TSyntacticCodeUnit} oFunctionBody Function code.
-              */
-             'function': function(
-                 sIdentifier,
-                 aFormalParameterList,
-                 oFunctionBody) {
-               if ('string' === typeof sIdentifier) {
-                 fAddIdentifier(sIdentifier);
-               }
-               aFormalParameterList.forEach(fAddIdentifier);
-             },
-             /**
-              * Either increments the count of the number of occurrences of the
-              * encountered null or Boolean value or classifies a source element
-              * as containing the {@code eval} identifier name.
-              * @param {string} sIdentifier The identifier encountered.
-              */
-             'name': function(sIdentifier) {
-               if (-1 !== A_OTHER_SUBSTITUTABLE_LITERALS.indexOf(sIdentifier)) {
-                 fCountPrimaryExpression(
-                     EPrimaryExpressionCategories.N_NULL_AND_BOOLEAN_LITERALS,
-                     EValuePrefixes.S_SYMBOLIC + sIdentifier);
-               } else {
-                 if ('eval' === sIdentifier) {
-                   oSourceElementData.nCategory =
-                       ESourceElementCategories.N_EVAL;
-                 }
-                 fAddIdentifier(sIdentifier);
-               }
-             },
-             /**
-              * Classifies the source element as excludable if it does not
-              * contain a {@code with} statement or the {@code eval} identifier
-              * name.
-              * @param {TSyntacticCodeUnit} oExpression The expression whose
-              *     value is to be returned.
-              */
-             'return': function(oExpression) {
-               fClassifyAsExcludable();
-             },
-             /**
-              * Increments the count of the number of occurrences of the
-              * encountered String value.
-              * @param {string} sStringValue The String value of the string
-              *     literal encountered.
-              */
-             'string': function(sStringValue) {
-               if (sStringValue.length > 0) {
-                 fCountPrimaryExpression(
-                     EPrimaryExpressionCategories.N_STRING_LITERALS,
-                     EValuePrefixes.S_STRING + sStringValue);
-               }
-             },
-             /**
-              * Adds the identifier reserved for an exception to the list of
-              * identifier names found.
-              * @param {!TSyntacticCodeUnit} oTry A block of code in which an
-              *     exception can occur.
-              * @param {Array} aCatch The identifier reserved for an exception
-              *     and a block of code to handle the exception.
-              * @param {TSyntacticCodeUnit} oFinally An optional block of code
-              *     to be evaluated regardless of whether an exception occurs.
-              */
-             'try': function(oTry, aCatch, oFinally) {
-               if (Array.isArray(aCatch)) {
-                 fAddIdentifier(aCatch[0]);
-               }
-             },
-             /**
-              * Classifies the source element as excludable if it does not
-              * contain a {@code with} statement or the {@code eval} identifier
-              * name. Adds the identifier of each declared variable to the list
-              * of identifier names found.
-              * @param {!Array.<!Array>} aVariableDeclarationList Variable
-              *     declarations.
-              */
-             'var': function(aVariableDeclarationList) {
-               fClassifyAsExcludable();
-               aVariableDeclarationList.forEach(fAddVariable);
-             },
-             /**
-              * Classifies a source element as containing the {@code with}
-              * statement.
-              * @param {!TSyntacticCodeUnit} oExpression An expression whose
-              *     value is to be converted to a value of type Object and
-              *     become the binding object of a new object environment
-              *     record of a new lexical environment in which the statement
-              *     is to be executed.
-              * @param {!TSyntacticCodeUnit} oStatement The statement to be
-              *     executed in the augmented lexical environment.
-              * @return {!Array} An empty array to stop the traversal.
-              */
-             'with': function(oExpression, oStatement) {
-               oSourceElementData.nCategory = ESourceElementCategories.N_WITH;
-               return [];
-             }
-             /**#nocode-*/  // JsDoc Toolkit 2.4.0 hides some of the keys.
-           },
-           /**
-            * A collection of functions used while looking for nested functions.
-            * @namespace
-            * @type {!Object.<string, function(...[*])>}
-            */
-           oExamineFunctions: {
-             /**#nocode+*/  // JsDoc Toolkit 2.4.0 hides some of the keys.
-             /**
-              * Orders an examination of a nested function declaration.
-              * @this {!TSyntacticCodeUnit} An array-like object representing
-              *     the branch of an <abbr title="abstract syntax tree"
-              *     >AST</abbr> representing the syntactic code unit along with
-              *     its scope.
-              * @return {!Array} An empty array to stop the traversal.
-              */
-             'defun': function() {
-               fExamineSyntacticCodeUnit(this);
-               return [];
-             },
-             /**
-              * Orders an examination of a nested function expression.
-              * @this {!TSyntacticCodeUnit} An array-like object representing
-              *     the branch of an <abbr title="abstract syntax tree"
-              *     >AST</abbr> representing the syntactic code unit along with
-              *     its scope.
-              * @return {!Array} An empty array to stop the traversal.
-              */
-             'function': function() {
-               fExamineSyntacticCodeUnit(this);
-               return [];
-             }
-             /**#nocode-*/  // JsDoc Toolkit 2.4.0 hides some of the keys.
-           }
-         },
-         /**
-          * Records containing data about source elements.
-          * @type {Array.<TSourceElementsData>}
-          */
-         aSourceElementsData = [],
-         /**
-          * The index (in the source text order) of the source element
-          * immediately following a <a href="http://es5.github.com/#x14.1"
-          * >Directive Prologue</a>.
-          * @type {number}
-          */
-         nAfterDirectivePrologue = 0,
-         /**
-          * The index (in the source text order) of the source element that is
-          * currently being considered.
-          * @type {number}
-          */
-         nPosition,
-         /**
-          * The index (in the source text order) of the source element that is
-          * the last element of the range of source elements that is currently
-          * being considered.
-          * @type {(undefined|number)}
-          */
-         nTo,
-         /**
-          * Initiates the traversal of a source element.
-          * @param {!TWalker} oWalker An instance of an object that allows the
-          *     traversal of an abstract syntax tree.
-          * @param {!TSyntacticCodeUnit} oSourceElement A source element from
-          *     which the traversal should commence.
-          * @return {function(): !TSyntacticCodeUnit} A function that is able to
-          *     initiate the traversal from a given source element.
-          */
-         cContext = function(oWalker, oSourceElement) {
-           /**
-            * @return {!TSyntacticCodeUnit} A function that is able to
-            *     initiate the traversal from a given source element.
-            */
-           var fLambda = function() {
-             return oWalker.walk(oSourceElement);
-           };
-
-           return fLambda;
-         },
-         /**
-          * Classifies the source element as excludable if it does not
-          * contain a {@code with} statement or the {@code eval} identifier
-          * name.
-          */
-         fClassifyAsExcludable = function() {
-           if (oSourceElementData.nCategory ===
-               ESourceElementCategories.N_OTHER) {
-             oSourceElementData.nCategory =
-                 ESourceElementCategories.N_EXCLUDABLE;
-           }
-         },
-         /**
-          * Adds an identifier to the list of identifier names found.
-          * @param {string} sIdentifier The identifier to be added.
-          */
-         fAddIdentifier = function(sIdentifier) {
-           if (-1 === oSourceElementData.aIdentifiers.indexOf(sIdentifier)) {
-             oSourceElementData.aIdentifiers.push(sIdentifier);
-           }
-         },
-         /**
-          * Adds the identifier of a variable to the list of identifier names
-          * found.
-          * @param {!Array} aVariableDeclaration A variable declaration.
-          */
-         fAddVariable = function(aVariableDeclaration) {
-           fAddIdentifier(/** @type {string} */ aVariableDeclaration[0]);
-         },
-         /**
-          * Increments the count of the number of occurrences of the prefixed
-          * String representation attributed to the primary expression.
-          * @param {number} nCategory The category of the primary expression.
-          * @param {string} sName The prefixed String representation attributed
-          *     to the primary expression.
-          */
-         fCountPrimaryExpression = function(nCategory, sName) {
-           if (!oSourceElementData.aCount[nCategory].hasOwnProperty(sName)) {
-             oSourceElementData.aCount[nCategory][sName] = 0;
-             if (-1 === oSourceElementData.aPrimitiveValues.indexOf(sName)) {
-               oSourceElementData.aPrimitiveValues.push(sName);
-             }
-           }
-           oSourceElementData.aCount[nCategory][sName] += 1;
-         },
-         /**
-          * Consolidates all worthwhile primitive values in a range of source
-          *     elements.
-          * @param {number} nFrom The index (in the source text order) of the
-          *     source element that is the first element of the range.
-          * @param {number} nTo The index (in the source text order) of the
-          *     source element that is the last element of the range.
-          * @param {boolean} bEnclose Indicates whether the range should be
-          *     enclosed within a function call with no argument values to a
-          *     function with an empty parameter list if any primitive values
-          *     are consolidated.
-          * @see TPrimitiveValue#nSaving
-          */
-         fExamineSourceElements = function(nFrom, nTo, bEnclose) {
-           var _,
-               /**
-                * The index of the last mangled name.
-                * @type {number}
-                */
-               nIndex = oScope.cname,
-               /**
-                * The index of the source element that is currently being
-                * considered.
-                * @type {number}
-                */
-               nPosition,
-               /**
-                * A collection of functions used during the consolidation of
-                * primitive values and identifier names used as property
-                * accessors.
-                * @namespace
-                * @type {!Object.<string, function(...[*])>}
-                */
-               oWalkersTransformers = {
-                 /**
-                  * If the String value that is equivalent to the sequence of
-                  * terminal symbols that constitute the encountered identifier
-                  * name is worthwhile, a syntactic conversion from the dot
-                  * notation to the bracket notation ensues with that sequence
-                  * being substituted by an identifier name to which the value
-                  * is assigned.
-                  * Applies to property accessors that use the dot notation.
-                  * @param {!TSyntacticCodeUnit} oExpression The nonterminal
-                  *     MemberExpression.
-                  * @param {string} sIdentifierName The identifier name used as
-                  *     the property accessor.
-                  * @return {!Array} A syntactic code unit that is equivalent to
-                  *     the one encountered.
-                  * @see TPrimitiveValue#nSaving
-                  */
-                 'dot': function(oExpression, sIdentifierName) {
-                   /**
-                    * The prefixed String value that is equivalent to the
-                    * sequence of terminal symbols that constitute the
-                    * encountered identifier name.
-                    * @type {string}
-                    */
-                   var sPrefixed = EValuePrefixes.S_STRING + sIdentifierName;
-
-                   return oSolutionBest.oPrimitiveValues.hasOwnProperty(
-                       sPrefixed) &&
-                       oSolutionBest.oPrimitiveValues[sPrefixed].nSaving > 0 ?
-                       ['sub',
-                        oWalker.walk(oExpression),
-                        ['name',
-                         oSolutionBest.oPrimitiveValues[sPrefixed].sName]] :
-                       ['dot', oWalker.walk(oExpression), sIdentifierName];
-                 },
-                 /**
-                  * If the encountered identifier is a null or Boolean literal
-                  * and its value is worthwhile, the identifier is substituted
-                  * by an identifier name to which that value is assigned.
-                  * Applies to identifier names.
-                  * @param {string} sIdentifier The identifier encountered.
-                  * @return {!Array} A syntactic code unit that is equivalent to
-                  *     the one encountered.
-                  * @see TPrimitiveValue#nSaving
-                  */
-                 'name': function(sIdentifier) {
-                   /**
-                    * The prefixed representation String of the identifier.
-                    * @type {string}
-                    */
-                   var sPrefixed = EValuePrefixes.S_SYMBOLIC + sIdentifier;
-
-                   return [
-                     'name',
-                     oSolutionBest.oPrimitiveValues.hasOwnProperty(sPrefixed) &&
-                     oSolutionBest.oPrimitiveValues[sPrefixed].nSaving > 0 ?
-                     oSolutionBest.oPrimitiveValues[sPrefixed].sName :
-                     sIdentifier
-                   ];
-                 },
-                 /**
-                  * If the encountered String value is worthwhile, it is
-                  * substituted by an identifier name to which that value is
-                  * assigned.
-                  * Applies to String values.
-                  * @param {string} sStringValue The String value of the string
-                  *     literal encountered.
-                  * @return {!Array} A syntactic code unit that is equivalent to
-                  *     the one encountered.
-                  * @see TPrimitiveValue#nSaving
-                  */
-                 'string': function(sStringValue) {
-                   /**
-                    * The prefixed representation String of the primitive value
-                    * of the literal.
-                    * @type {string}
-                    */
-                   var sPrefixed =
-                       EValuePrefixes.S_STRING + sStringValue;
-
-                   return oSolutionBest.oPrimitiveValues.hasOwnProperty(
-                       sPrefixed) &&
-                       oSolutionBest.oPrimitiveValues[sPrefixed].nSaving > 0 ?
-                       ['name',
-                        oSolutionBest.oPrimitiveValues[sPrefixed].sName] :
-                       ['string', sStringValue];
-                 }
-               },
-               /**
-                * Such data on what to consolidate within the range of source
-                * elements that is currently being considered that lead to the
-                * greatest known reduction of the number of the terminal symbols
-                * in comparison to the original source text.
-                * @type {!TSolution}
-                */
-               oSolutionBest = new TSolution(),
-               /**
-                * Data representing an ongoing attempt to find a better
-                * reduction of the number of the terminal symbols in comparison
-                * to the original source text than the best one that is
-                * currently known.
-                * @type {!TSolution}
-                * @see oSolutionBest
-                */
-               oSolutionCandidate = new TSolution(),
-               /**
-                * A record consisting of data about the range of source elements
-                * that is currently being examined.
-                * @type {!TSourceElementsData}
-                */
-               oSourceElementsData = new TSourceElementsData(),
-               /**
-                * Variable declarations for each primitive value that is to be
-                * consolidated within the elements.
-                * @type {!Array.<!Array>}
-                */
-               aVariableDeclarations = [],
-               /**
-                * Augments a list with a prefixed representation String.
-                * @param {!Array.<string>} aList A list that is to be augmented.
-                * @return {function(string)} A function that augments a list
-                *     with a prefixed representation String.
-                */
-               cAugmentList = function(aList) {
-                 /**
-                  * @param {string} sPrefixed Prefixed representation String of
-                  *     a primitive value that could be consolidated within the
-                  *     elements.
-                  */
-                 var fLambda = function(sPrefixed) {
-                   if (-1 === aList.indexOf(sPrefixed)) {
-                     aList.push(sPrefixed);
-                   }
-                 };
-
-                 return fLambda;
-               },
-               /**
-                * Adds the number of occurrences of a primitive value of a given
-                * category that could be consolidated in the source element with
-                * a given index to the count of occurrences of that primitive
-                * value within the range of source elements that is currently
-                * being considered.
-                * @param {number} nPosition The index (in the source text order)
-                *     of a source element.
-                * @param {number} nCategory The category of the primary
-                *     expression from which the primitive value is derived.
-                * @return {function(string)} A function that performs the
-                *     addition.
-                * @see cAddOccurrencesInCategory
-                */
-               cAddOccurrences = function(nPosition, nCategory) {
-                 /**
-                  * @param {string} sPrefixed The prefixed representation String
-                  *     of a primitive value.
-                  */
-                 var fLambda = function(sPrefixed) {
-                   if (!oSourceElementsData.aCount[nCategory].hasOwnProperty(
-                           sPrefixed)) {
-                     oSourceElementsData.aCount[nCategory][sPrefixed] = 0;
-                   }
-                   oSourceElementsData.aCount[nCategory][sPrefixed] +=
-                       aSourceElementsData[nPosition].aCount[nCategory][
-                           sPrefixed];
-                 };
-
-                 return fLambda;
-               },
-               /**
-                * Adds the number of occurrences of each primitive value of a
-                * given category that could be consolidated in the source
-                * element with a given index to the count of occurrences of that
-                * primitive values within the range of source elements that is
-                * currently being considered.
-                * @param {number} nPosition The index (in the source text order)
-                *     of a source element.
-                * @return {function(number)} A function that performs the
-                *     addition.
-                * @see fAddOccurrences
-                */
-               cAddOccurrencesInCategory = function(nPosition) {
-                 /**
-                  * @param {number} nCategory The category of the primary
-                  *     expression from which the primitive value is derived.
-                  */
-                 var fLambda = function(nCategory) {
-                   Object.keys(
-                       aSourceElementsData[nPosition].aCount[nCategory]
-                   ).forEach(cAddOccurrences(nPosition, nCategory));
-                 };
-
-                 return fLambda;
-               },
-               /**
-                * Adds the number of occurrences of each primitive value that
-                * could be consolidated in the source element with a given index
-                * to the count of occurrences of that primitive values within
-                * the range of source elements that is currently being
-                * considered.
-                * @param {number} nPosition The index (in the source text order)
-                *     of a source element.
-                */
-               fAddOccurrences = function(nPosition) {
-                 Object.keys(aSourceElementsData[nPosition].aCount).forEach(
-                     cAddOccurrencesInCategory(nPosition));
-               },
-               /**
-                * Creates a variable declaration for a primitive value if that
-                * primitive value is to be consolidated within the elements.
-                * @param {string} sPrefixed Prefixed representation String of a
-                *     primitive value that could be consolidated within the
-                *     elements.
-                * @see aVariableDeclarations
-                */
-               cAugmentVariableDeclarations = function(sPrefixed) {
-                 if (oSolutionBest.oPrimitiveValues[sPrefixed].nSaving > 0) {
-                   aVariableDeclarations.push([
-                     oSolutionBest.oPrimitiveValues[sPrefixed].sName,
-                     [0 === sPrefixed.indexOf(EValuePrefixes.S_SYMBOLIC) ?
-                      'name' : 'string',
-                      sPrefixed.substring(EValuePrefixes.S_SYMBOLIC.length)]
-                   ]);
-                 }
-               },
-               /**
-                * Sorts primitive values with regard to the difference in the
-                * number of terminal symbols between the original source text
-                * and the one with those primitive values consolidated.
-                * @param {string} sPrefixed0 The prefixed representation String
-                *     of the first of the two primitive values that are being
-                *     compared.
-                * @param {string} sPrefixed1 The prefixed representation String
-                *     of the second of the two primitive values that are being
-                *     compared.
-                * @return {number}
-                *     <dl>
-                *         <dt>-1</dt>
-                *         <dd>if the first primitive value must be placed before
-                *              the other one,</dd>
-                *         <dt>0</dt>
-                *         <dd>if the first primitive value may be placed before
-                *              the other one,</dd>
-                *         <dt>1</dt>
-                *         <dd>if the first primitive value must not be placed
-                *              before the other one.</dd>
-                *     </dl>
-                * @see TSolution.oPrimitiveValues
-                */
-               cSortPrimitiveValues = function(sPrefixed0, sPrefixed1) {
-                 /**
-                  * The difference between:
-                  * <ol>
-                  * <li>the difference in the number of terminal symbols
-                  *     between the original source text and the one with the
-                  *     first primitive value consolidated, and</li>
-                  * <li>the difference in the number of terminal symbols
-                  *     between the original source text and the one with the
-                  *     second primitive value consolidated.</li>
-                  * </ol>
-                  * @type {number}
-                  */
-                 var nDifference =
-                     oSolutionCandidate.oPrimitiveValues[sPrefixed0].nSaving -
-                     oSolutionCandidate.oPrimitiveValues[sPrefixed1].nSaving;
-
-                 return nDifference > 0 ? -1 : nDifference < 0 ? 1 : 0;
-               },
-               /**
-                * Assigns an identifier name to a primitive value and calculates
-                * whether instances of that primitive value are worth
-                * consolidating.
-                * @param {string} sPrefixed The prefixed representation String
-                *     of a primitive value that is being evaluated.
-                */
-               fEvaluatePrimitiveValue = function(sPrefixed) {
-                 var _,
-                     /**
-                      * The index of the last mangled name.
-                      * @type {number}
-                      */
-                     nIndex,
-                     /**
-                      * The representation String of the primitive value that is
-                      * being evaluated.
-                      * @type {string}
-                      */
-                     sName =
-                         sPrefixed.substring(EValuePrefixes.S_SYMBOLIC.length),
-                     /**
-                      * The number of source characters taken up by the
-                      * representation String of the primitive value that is
-                      * being evaluated.
-                      * @type {number}
-                      */
-                     nLengthOriginal = sName.length,
-                     /**
-                      * The number of source characters taken up by the
-                      * identifier name that could substitute the primitive
-                      * value that is being evaluated.
-                      * substituted.
-                      * @type {number}
-                      */
-                     nLengthSubstitution,
-                     /**
-                      * The number of source characters taken up by by the
-                      * representation String of the primitive value that is
-                      * being evaluated when it is represented by a string
-                      * literal.
-                      * @type {number}
-                      */
-                     nLengthString = oProcessor.make_string(sName).length;
-
-                 oSolutionCandidate.oPrimitiveValues[sPrefixed] =
-                     new TPrimitiveValue();
-                 do {  // Find an identifier unused in this or any nested scope.
-                   nIndex = oScope.cname;
-                   oSolutionCandidate.oPrimitiveValues[sPrefixed].sName =
-                       oScope.next_mangled();
-                 } while (-1 !== oSourceElementsData.aIdentifiers.indexOf(
-                     oSolutionCandidate.oPrimitiveValues[sPrefixed].sName));
-                 nLengthSubstitution = oSolutionCandidate.oPrimitiveValues[
-                     sPrefixed].sName.length;
-                 if (0 === sPrefixed.indexOf(EValuePrefixes.S_SYMBOLIC)) {
-                   // foo:null, or foo:null;
-                   oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving -=
-                       nLengthSubstitution + nLengthOriginal +
-                       oWeights.N_VARIABLE_DECLARATION;
-                   // null vs foo
-                   oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving +=
-                       oSourceElementsData.aCount[
-                           EPrimaryExpressionCategories.
-                               N_NULL_AND_BOOLEAN_LITERALS][sPrefixed] *
-                       (nLengthOriginal - nLengthSubstitution);
-                 } else {
-                   // foo:'fromCharCode';
-                   oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving -=
-                       nLengthSubstitution + nLengthString +
-                       oWeights.N_VARIABLE_DECLARATION;
-                   // .fromCharCode vs [foo]
-                   if (oSourceElementsData.aCount[
-                           EPrimaryExpressionCategories.N_IDENTIFIER_NAMES
-                       ].hasOwnProperty(sPrefixed)) {
-                     oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving +=
-                         oSourceElementsData.aCount[
-                             EPrimaryExpressionCategories.N_IDENTIFIER_NAMES
-                         ][sPrefixed] *
-                         (nLengthOriginal - nLengthSubstitution -
-                          oWeights.N_PROPERTY_ACCESSOR);
-                   }
-                   // 'fromCharCode' vs foo
-                   if (oSourceElementsData.aCount[
-                           EPrimaryExpressionCategories.N_STRING_LITERALS
-                       ].hasOwnProperty(sPrefixed)) {
-                     oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving +=
-                         oSourceElementsData.aCount[
-                             EPrimaryExpressionCategories.N_STRING_LITERALS
-                         ][sPrefixed] *
-                         (nLengthString - nLengthSubstitution);
-                   }
-                 }
-                 if (oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving >
-                     0) {
-                   oSolutionCandidate.nSavings +=
-                       oSolutionCandidate.oPrimitiveValues[sPrefixed].nSaving;
-                 } else {
-                   oScope.cname = nIndex; // Free the identifier name.
-                 }
-               },
-               /**
-                * Adds a variable declaration to an existing variable statement.
-                * @param {!Array} aVariableDeclaration A variable declaration
-                *     with an initialiser.
-                */
-               cAddVariableDeclaration = function(aVariableDeclaration) {
-                 (/** @type {!Array} */ oSourceElements[nFrom][1]).unshift(
-                     aVariableDeclaration);
-               };
-
-           if (nFrom > nTo) {
-             return;
-           }
-           // If the range is a closure, reuse the closure.
-           if (nFrom === nTo &&
-               'stat' === oSourceElements[nFrom][0] &&
-               'call' === oSourceElements[nFrom][1][0] &&
-               'function' === oSourceElements[nFrom][1][1][0]) {
-             fExamineSyntacticCodeUnit(oSourceElements[nFrom][1][1]);
-             return;
-           }
-           // Create a list of all derived primitive values within the range.
-           for (nPosition = nFrom; nPosition <= nTo; nPosition += 1) {
-             aSourceElementsData[nPosition].aPrimitiveValues.forEach(
-                 cAugmentList(oSourceElementsData.aPrimitiveValues));
-           }
-           if (0 === oSourceElementsData.aPrimitiveValues.length) {
-             return;
-           }
-           for (nPosition = nFrom; nPosition <= nTo; nPosition += 1) {
-             // Add the number of occurrences to the total count.
-             fAddOccurrences(nPosition);
-             // Add identifiers of this or any nested scope to the list.
-             aSourceElementsData[nPosition].aIdentifiers.forEach(
-                 cAugmentList(oSourceElementsData.aIdentifiers));
-           }
-           // Distribute identifier names among derived primitive values.
-           do {  // If there was any progress, find a better distribution.
-             oSolutionBest = oSolutionCandidate;
-             if (Object.keys(oSolutionCandidate.oPrimitiveValues).length > 0) {
-               // Sort primitive values descending by their worthwhileness.
-               oSourceElementsData.aPrimitiveValues.sort(cSortPrimitiveValues);
-             }
-             oSolutionCandidate = new TSolution();
-             oSourceElementsData.aPrimitiveValues.forEach(
-                 fEvaluatePrimitiveValue);
-             oScope.cname = nIndex;
-           } while (oSolutionCandidate.nSavings > oSolutionBest.nSavings);
-           // Take the necessity of adding a variable statement into account.
-           if ('var' !== oSourceElements[nFrom][0]) {
-             oSolutionBest.nSavings -= oWeights.N_VARIABLE_STATEMENT_AFFIXATION;
-           }
-           if (bEnclose) {
-             // Take the necessity of forming a closure into account.
-             oSolutionBest.nSavings -= oWeights.N_CLOSURE;
-           }
-           if (oSolutionBest.nSavings > 0) {
-             // Create variable declarations suitable for UglifyJS.
-             Object.keys(oSolutionBest.oPrimitiveValues).forEach(
-                 cAugmentVariableDeclarations);
-             // Rewrite expressions that contain worthwhile primitive values.
-             for (nPosition = nFrom; nPosition <= nTo; nPosition += 1) {
-               oWalker = oProcessor.ast_walker();
-               oSourceElements[nPosition] =
-                   oWalker.with_walkers(
-                       oWalkersTransformers,
-                       cContext(oWalker, oSourceElements[nPosition]));
-             }
-             if ('var' === oSourceElements[nFrom][0]) {  // Reuse the statement.
-               (/** @type {!Array.<!Array>} */ aVariableDeclarations.reverse(
-                   )).forEach(cAddVariableDeclaration);
-             } else {  // Add a variable statement.
-               Array.prototype.splice.call(
-                   oSourceElements,
-                   nFrom,
-                   0,
-                   ['var', aVariableDeclarations]);
-               nTo += 1;
-             }
-             if (bEnclose) {
-               // Add a closure.
-               Array.prototype.splice.call(
-                   oSourceElements,
-                   nFrom,
-                   0,
-                   ['stat', ['call', ['function', null, [], []], []]]);
-               // Copy source elements into the closure.
-               for (nPosition = nTo + 1; nPosition > nFrom; nPosition -= 1) {
-                 Array.prototype.unshift.call(
-                     oSourceElements[nFrom][1][1][3],
-                     oSourceElements[nPosition]);
-               }
-               // Remove source elements outside the closure.
-               Array.prototype.splice.call(
-                   oSourceElements,
-                   nFrom + 1,
-                   nTo - nFrom + 1);
-             }
-           }
-           if (bEnclose) {
-             // Restore the availability of identifier names.
-             oScope.cname = nIndex;
-           }
-         };
-
-     oSourceElements = (/** @type {!TSyntacticCodeUnit} */
-         oSyntacticCodeUnit[bIsGlobal ? 1 : 3]);
-     if (0 === oSourceElements.length) {
-       return;
-     }
-     oScope = bIsGlobal ? oSyntacticCodeUnit.scope : oSourceElements.scope;
-     // Skip a Directive Prologue.
-     while (nAfterDirectivePrologue < oSourceElements.length &&
-            'directive' === oSourceElements[nAfterDirectivePrologue][0]) {
-       nAfterDirectivePrologue += 1;
-       aSourceElementsData.push(null);
-     }
-     if (oSourceElements.length === nAfterDirectivePrologue) {
-       return;
-     }
-     for (nPosition = nAfterDirectivePrologue;
-          nPosition < oSourceElements.length;
-          nPosition += 1) {
-       oSourceElementData = new TSourceElementsData();
-       oWalker = oProcessor.ast_walker();
-       // Classify a source element.
-       // Find its derived primitive values and count their occurrences.
-       // Find all identifiers used (including nested scopes).
-       oWalker.with_walkers(
-           oWalkers.oSurveySourceElement,
-           cContext(oWalker, oSourceElements[nPosition]));
-       // Establish whether the scope is still wholly examinable.
-       bIsWhollyExaminable = bIsWhollyExaminable &&
-           ESourceElementCategories.N_WITH !== oSourceElementData.nCategory &&
-           ESourceElementCategories.N_EVAL !== oSourceElementData.nCategory;
-       aSourceElementsData.push(oSourceElementData);
-     }
-     if (bIsWhollyExaminable) {  // Examine the whole scope.
-       fExamineSourceElements(
-           nAfterDirectivePrologue,
-           oSourceElements.length - 1,
-           false);
-     } else {  // Examine unexcluded ranges of source elements.
-       for (nPosition = oSourceElements.length - 1;
-            nPosition >= nAfterDirectivePrologue;
-            nPosition -= 1) {
-         oSourceElementData = (/** @type {!TSourceElementsData} */
-             aSourceElementsData[nPosition]);
-         if (ESourceElementCategories.N_OTHER ===
-             oSourceElementData.nCategory) {
-           if ('undefined' === typeof nTo) {
-             nTo = nPosition;  // Indicate the end of a range.
-           }
-           // Examine the range if it immediately follows a Directive Prologue.
-           if (nPosition === nAfterDirectivePrologue) {
-             fExamineSourceElements(nPosition, nTo, true);
-           }
-         } else {
-           if ('undefined' !== typeof nTo) {
-             // Examine the range that immediately follows this source element.
-             fExamineSourceElements(nPosition + 1, nTo, true);
-             nTo = void 0;  // Obliterate the range.
-           }
-           // Examine nested functions.
-           oWalker = oProcessor.ast_walker();
-           oWalker.with_walkers(
-               oWalkers.oExamineFunctions,
-               cContext(oWalker, oSourceElements[nPosition]));
-         }
-       }
-     }
-   }(oAbstractSyntaxTree = oProcessor.ast_add_scope(oAbstractSyntaxTree)));
-  return oAbstractSyntaxTree;
-};
-/*jshint sub:false */
-
-/* Local Variables:      */
-/* mode: js              */
-/* coding: utf-8         */
-/* indent-tabs-mode: nil */
-/* tab-width: 2          */
-/* End:                  */
-/* vim: set ft=javascript fenc=utf-8 et ts=2 sts=2 sw=2: */
-/* :mode=javascript:noTabs=true:tabSize=2:indentSize=2:deepIndent=true: */
-});
-define('uglifyjs/parse-js', ["exports"], function(exports) {
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-
-  This version is suitable for Node.js.  With minimal changes (the
-  exports stuff) it should work on any JS platform.
-
-  This file contains the tokenizer/parser.  It is a port to JavaScript
-  of parse-js [1], a JavaScript parser library written in Common Lisp
-  by Marijn Haverbeke.  Thank you Marijn!
-
-  [1] http://marijn.haverbeke.nl/parse-js/
-
-  Exported functions:
-
-    - tokenizer(code) -- returns a function.  Call the returned
-      function to fetch the next token.
-
-    - parse(code) -- returns an AST of the given JavaScript code.
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
-    Based on parse-js (http://marijn.haverbeke.nl/parse-js/).
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-/* -----[ Tokenizer (constants) ]----- */
-
-var KEYWORDS = array_to_hash([
-    "break",
-    "case",
-    "catch",
-    "const",
-    "continue",
-    "debugger",
-    "default",
-    "delete",
-    "do",
-    "else",
-    "finally",
-    "for",
-    "function",
-    "if",
-    "in",
-    "instanceof",
-    "new",
-    "return",
-    "switch",
-    "throw",
-    "try",
-    "typeof",
-    "var",
-    "void",
-    "while",
-    "with"
-]);
-
-var RESERVED_WORDS = array_to_hash([
-    "abstract",
-    "boolean",
-    "byte",
-    "char",
-    "class",
-    "double",
-    "enum",
-    "export",
-    "extends",
-    "final",
-    "float",
-    "goto",
-    "implements",
-    "import",
-    "int",
-    "interface",
-    "long",
-    "native",
-    "package",
-    "private",
-    "protected",
-    "public",
-    "short",
-    "static",
-    "super",
-    "synchronized",
-    "throws",
-    "transient",
-    "volatile"
-]);
-
-var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([
-    "return",
-    "new",
-    "delete",
-    "throw",
-    "else",
-    "case"
-]);
-
-var KEYWORDS_ATOM = array_to_hash([
-    "false",
-    "null",
-    "true",
-    "undefined"
-]);
-
-var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^"));
-
-var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i;
-var RE_OCT_NUMBER = /^0[0-7]+$/;
-var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;
-
-var OPERATORS = array_to_hash([
-    "in",
-    "instanceof",
-    "typeof",
-    "new",
-    "void",
-    "delete",
-    "++",
-    "--",
-    "+",
-    "-",
-    "!",
-    "~",
-    "&",
-    "|",
-    "^",
-    "*",
-    "/",
-    "%",
-    ">>",
-    "<<",
-    ">>>",
-    "<",
-    ">",
-    "<=",
-    ">=",
-    "==",
-    "===",
-    "!=",
-    "!==",
-    "?",
-    "=",
-    "+=",
-    "-=",
-    "/=",
-    "*=",
-    "%=",
-    ">>=",
-    "<<=",
-    ">>>=",
-    "|=",
-    "^=",
-    "&=",
-    "&&",
-    "||"
-]);
-
-var WHITESPACE_CHARS = array_to_hash(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\uFEFF"));
-
-var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{(,.;:"));
-
-var PUNC_CHARS = array_to_hash(characters("[]{}(),;:"));
-
-var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy"));
-
-/* -----[ Tokenizer ]----- */
-
-var UNICODE = {  // Unicode 6.1
-    letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F0\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),
-    combining_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08E4-\\u08FE\\u0900-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C01-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C82\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0D02\\u0D03\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D82\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF2-\\u1CF4\\u1DC0-\\u1DE6\\u1DFC-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA674-\\uA67D\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA880\\uA881\\uA8B4-\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),
-    connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]"),
-    digit: new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]")
-};
-
-function is_letter(ch) {
-    return UNICODE.letter.test(ch);
-};
-
-function is_digit(ch) {
-    ch = ch.charCodeAt(0);
-    return ch >= 48 && ch <= 57;
-};
-
-function is_unicode_digit(ch) {
-    return UNICODE.digit.test(ch);
-}
-
-function is_alphanumeric_char(ch) {
-    return is_digit(ch) || is_letter(ch);
-};
-
-function is_unicode_combining_mark(ch) {
-    return UNICODE.combining_mark.test(ch);
-};
-
-function is_unicode_connector_punctuation(ch) {
-    return UNICODE.connector_punctuation.test(ch);
-};
-
-function is_identifier_start(ch) {
-    return ch == "$" || ch == "_" || is_letter(ch);
-};
-
-function is_identifier_char(ch) {
-    return is_identifier_start(ch)
-        || is_unicode_combining_mark(ch)
-        || is_unicode_digit(ch)
-        || is_unicode_connector_punctuation(ch)
-        || ch == "\u200c" // zero-width non-joiner <ZWNJ>
-        || ch == "\u200d" // zero-width joiner <ZWJ> (in my ECMA-262 PDF, this is also 200c)
-    ;
-};
-
-function parse_js_number(num) {
-    if (RE_HEX_NUMBER.test(num)) {
-        return parseInt(num.substr(2), 16);
-    } else if (RE_OCT_NUMBER.test(num)) {
-        return parseInt(num.substr(1), 8);
-    } else if (RE_DEC_NUMBER.test(num)) {
-        return parseFloat(num);
-    }
-};
-
-function JS_Parse_Error(message, line, col, pos) {
-    this.message = message;
-    this.line = line + 1;
-    this.col = col + 1;
-    this.pos = pos + 1;
-    this.stack = new Error().stack;
-};
-
-JS_Parse_Error.prototype.toString = function() {
-    return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
-};
-
-function js_error(message, line, col, pos) {
-    throw new JS_Parse_Error(message, line, col, pos);
-};
-
-function is_token(token, type, val) {
-    return token.type == type && (val == null || token.value == val);
-};
-
-var EX_EOF = {};
-
-function tokenizer($TEXT) {
-
-    var S = {
-        text            : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
-        pos             : 0,
-        tokpos          : 0,
-        line            : 0,
-        tokline         : 0,
-        col             : 0,
-        tokcol          : 0,
-        newline_before  : false,
-        regex_allowed   : false,
-        comments_before : []
-    };
-
-    function peek() { return S.text.charAt(S.pos); };
-
-    function next(signal_eof, in_string) {
-        var ch = S.text.charAt(S.pos++);
-        if (signal_eof && !ch)
-            throw EX_EOF;
-        if (ch == "\n") {
-            S.newline_before = S.newline_before || !in_string;
-            ++S.line;
-            S.col = 0;
-        } else {
-            ++S.col;
-        }
-        return ch;
-    };
-
-    function eof() {
-        return !S.peek();
-    };
-
-    function find(what, signal_eof) {
-        var pos = S.text.indexOf(what, S.pos);
-        if (signal_eof && pos == -1) throw EX_EOF;
-        return pos;
-    };
-
-    function start_token() {
-        S.tokline = S.line;
-        S.tokcol = S.col;
-        S.tokpos = S.pos;
-    };
-
-    function token(type, value, is_comment) {
-        S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) ||
-                           (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) ||
-                           (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value)));
-        var ret = {
-            type   : type,
-            value  : value,
-            line   : S.tokline,
-            col    : S.tokcol,
-            pos    : S.tokpos,
-            endpos : S.pos,
-            nlb    : S.newline_before
-        };
-        if (!is_comment) {
-            ret.comments_before = S.comments_before;
-            S.comments_before = [];
-            // make note of any newlines in the comments that came before
-            for (var i = 0, len = ret.comments_before.length; i < len; i++) {
-                ret.nlb = ret.nlb || ret.comments_before[i].nlb;
-            }
-        }
-        S.newline_before = false;
-        return ret;
-    };
-
-    function skip_whitespace() {
-        while (HOP(WHITESPACE_CHARS, peek()))
-            next();
-    };
-
-    function read_while(pred) {
-        var ret = "", ch = peek(), i = 0;
-        while (ch && pred(ch, i++)) {
-            ret += next();
-            ch = peek();
-        }
-        return ret;
-    };
-
-    function parse_error(err) {
-        js_error(err, S.tokline, S.tokcol, S.tokpos);
-    };
-
-    function read_num(prefix) {
-        var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
-        var num = read_while(function(ch, i){
-            if (ch == "x" || ch == "X") {
-                if (has_x) return false;
-                return has_x = true;
-            }
-            if (!has_x && (ch == "E" || ch == "e")) {
-                if (has_e) return false;
-                return has_e = after_e = true;
-            }
-            if (ch == "-") {
-                if (after_e || (i == 0 && !prefix)) return true;
-                return false;
-            }
-            if (ch == "+") return after_e;
-            after_e = false;
-            if (ch == ".") {
-                if (!has_dot && !has_x && !has_e)
-                    return has_dot = true;
-                return false;
-            }
-            return is_alphanumeric_char(ch);
-        });
-        if (prefix)
-            num = prefix + num;
-        var valid = parse_js_number(num);
-        if (!isNaN(valid)) {
-            return token("num", valid);
-        } else {
-            parse_error("Invalid syntax: " + num);
-        }
-    };
-
-    function read_escaped_char(in_string) {
-        var ch = next(true, in_string);
-        switch (ch) {
-          case "n" : return "\n";
-          case "r" : return "\r";
-          case "t" : return "\t";
-          case "b" : return "\b";
-          case "v" : return "\u000b";
-          case "f" : return "\f";
-          case "0" : return "\0";
-          case "x" : return String.fromCharCode(hex_bytes(2));
-          case "u" : return String.fromCharCode(hex_bytes(4));
-          case "\n": return "";
-          default  : return ch;
-        }
-    };
-
-    function hex_bytes(n) {
-        var num = 0;
-        for (; n > 0; --n) {
-            var digit = parseInt(next(true), 16);
-            if (isNaN(digit))
-                parse_error("Invalid hex-character pattern in string");
-            num = (num << 4) | digit;
-        }
-        return num;
-    };
-
-    function read_string() {
-        return with_eof_error("Unterminated string constant", function(){
-            var quote = next(), ret = "";
-            for (;;) {
-                var ch = next(true);
-                if (ch == "\\") {
-                    // read OctalEscapeSequence (XXX: deprecated if "strict mode")
-                    // https://github.com/mishoo/UglifyJS/issues/178
-                    var octal_len = 0, first = null;
-                    ch = read_while(function(ch){
-                        if (ch >= "0" && ch <= "7") {
-                            if (!first) {
-                                first = ch;
-                                return ++octal_len;
-                            }
-                            else if (first <= "3" && octal_len <= 2) return ++octal_len;
-                            else if (first >= "4" && octal_len <= 1) return ++octal_len;
-                        }
-                        return false;
-                    });
-                    if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
-                    else ch = read_escaped_char(true);
-                }
-                else if (ch == quote) break;
-                else if (ch == "\n") throw EX_EOF;
-                ret += ch;
-            }
-            return token("string", ret);
-        });
-    };
-
-    function read_line_comment() {
-        next();
-        var i = find("\n"), ret;
-        if (i == -1) {
-            ret = S.text.substr(S.pos);
-            S.pos = S.text.length;
-        } else {
-            ret = S.text.substring(S.pos, i);
-            S.pos = i;
-        }
-        return token("comment1", ret, true);
-    };
-
-    function read_multiline_comment() {
-        next();
-        return with_eof_error("Unterminated multiline comment", function(){
-            var i = find("*/", true),
-            text = S.text.substring(S.pos, i);
-            S.pos = i + 2;
-            S.line += text.split("\n").length - 1;
-            S.newline_before = S.newline_before || text.indexOf("\n") >= 0;
-
-            // https://github.com/mishoo/UglifyJS/issues/#issue/100
-            if (/^@cc_on/i.test(text)) {
-                warn("WARNING: at line " + S.line);
-                warn("*** Found \"conditional comment\": " + text);
-                warn("*** UglifyJS DISCARDS ALL COMMENTS.  This means your code might no longer work properly in Internet Explorer.");
-            }
-
-            return token("comment2", text, true);
-        });
-    };
-
-    function read_name() {
-        var backslash = false, name = "", ch, escaped = false, hex;
-        while ((ch = peek()) != null) {
-            if (!backslash) {
-                if (ch == "\\") escaped = backslash = true, next();
-                else if (is_identifier_char(ch)) name += next();
-                else break;
-            }
-            else {
-                if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
-                ch = read_escaped_char();
-                if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
-                name += ch;
-                backslash = false;
-            }
-        }
-        if (HOP(KEYWORDS, name) && escaped) {
-            hex = name.charCodeAt(0).toString(16).toUpperCase();
-            name = "\\u" + "0000".substr(hex.length) + hex + name.slice(1);
-        }
-        return name;
-    };
-
-    function read_regexp(regexp) {
-        return with_eof_error("Unterminated regular expression", function(){
-            var prev_backslash = false, ch, in_class = false;
-            while ((ch = next(true))) if (prev_backslash) {
-                regexp += "\\" + ch;
-                prev_backslash = false;
-            } else if (ch == "[") {
-                in_class = true;
-                regexp += ch;
-            } else if (ch == "]" && in_class) {
-                in_class = false;
-                regexp += ch;
-            } else if (ch == "/" && !in_class) {
-                break;
-            } else if (ch == "\\") {
-                prev_backslash = true;
-            } else {
-                regexp += ch;
-            }
-            var mods = read_name();
-            return token("regexp", [ regexp, mods ]);
-        });
-    };
-
-    function read_operator(prefix) {
-        function grow(op) {
-            if (!peek()) return op;
-            var bigger = op + peek();
-            if (HOP(OPERATORS, bigger)) {
-                next();
-                return grow(bigger);
-            } else {
-                return op;
-            }
-        };
-        return token("operator", grow(prefix || next()));
-    };
-
-    function handle_slash() {
-        next();
-        var regex_allowed = S.regex_allowed;
-        switch (peek()) {
-          case "/":
-            S.comments_before.push(read_line_comment());
-            S.regex_allowed = regex_allowed;
-            return next_token();
-          case "*":
-            S.comments_before.push(read_multiline_comment());
-            S.regex_allowed = regex_allowed;
-            return next_token();
-        }
-        return S.regex_allowed ? read_regexp("") : read_operator("/");
-    };
-
-    function handle_dot() {
-        next();
-        return is_digit(peek())
-            ? read_num(".")
-            : token("punc", ".");
-    };
-
-    function read_word() {
-        var word = read_name();
-        return !HOP(KEYWORDS, word)
-            ? token("name", word)
-            : HOP(OPERATORS, word)
-            ? token("operator", word)
-            : HOP(KEYWORDS_ATOM, word)
-            ? token("atom", word)
-            : token("keyword", word);
-    };
-
-    function with_eof_error(eof_error, cont) {
-        try {
-            return cont();
-        } catch(ex) {
-            if (ex === EX_EOF) parse_error(eof_error);
-            else throw ex;
-        }
-    };
-
-    function next_token(force_regexp) {
-        if (force_regexp != null)
-            return read_regexp(force_regexp);
-        skip_whitespace();
-        start_token();
-        var ch = peek();
-        if (!ch) return token("eof");
-        if (is_digit(ch)) return read_num();
-        if (ch == '"' || ch == "'") return read_string();
-        if (HOP(PUNC_CHARS, ch)) return token("punc", next());
-        if (ch == ".") return handle_dot();
-        if (ch == "/") return handle_slash();
-        if (HOP(OPERATOR_CHARS, ch)) return read_operator();
-        if (ch == "\\" || is_identifier_start(ch)) return read_word();
-        parse_error("Unexpected character '" + ch + "'");
-    };
-
-    next_token.context = function(nc) {
-        if (nc) S = nc;
-        return S;
-    };
-
-    return next_token;
-
-};
-
-/* -----[ Parser (constants) ]----- */
-
-var UNARY_PREFIX = array_to_hash([
-    "typeof",
-    "void",
-    "delete",
-    "--",
-    "++",
-    "!",
-    "~",
-    "-",
-    "+"
-]);
-
-var UNARY_POSTFIX = array_to_hash([ "--", "++" ]);
-
-var ASSIGNMENT = (function(a, ret, i){
-    while (i < a.length) {
-        ret[a[i]] = a[i].substr(0, a[i].length - 1);
-        i++;
-    }
-    return ret;
-})(
-    ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="],
-    { "=": true },
-    0
-);
-
-var PRECEDENCE = (function(a, ret){
-    for (var i = 0, n = 1; i < a.length; ++i, ++n) {
-        var b = a[i];
-        for (var j = 0; j < b.length; ++j) {
-            ret[b[j]] = n;
-        }
-    }
-    return ret;
-})(
-    [
-        ["||"],
-        ["&&"],
-        ["|"],
-        ["^"],
-        ["&"],
-        ["==", "===", "!=", "!=="],
-        ["<", ">", "<=", ">=", "in", "instanceof"],
-        [">>", "<<", ">>>"],
-        ["+", "-"],
-        ["*", "/", "%"]
-    ],
-    {}
-);
-
-var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]);
-
-var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]);
-
-/* -----[ Parser ]----- */
-
-function NodeWithToken(str, start, end) {
-    this.name = str;
-    this.start = start;
-    this.end = end;
-};
-
-NodeWithToken.prototype.toString = function() { return this.name; };
-
-function parse($TEXT, exigent_mode, embed_tokens) {
-
-    var S = {
-        input         : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT,
-        token         : null,
-        prev          : null,
-        peeked        : null,
-        in_function   : 0,
-        in_directives : true,
-        in_loop       : 0,
-        labels        : []
-    };
-
-    S.token = next();
-
-    function is(type, value) {
-        return is_token(S.token, type, value);
-    };
-
-    function peek() { return S.peeked || (S.peeked = S.input()); };
-
-    function next() {
-        S.prev = S.token;
-        if (S.peeked) {
-            S.token = S.peeked;
-            S.peeked = null;
-        } else {
-            S.token = S.input();
-        }
-        S.in_directives = S.in_directives && (
-            S.token.type == "string" || is("punc", ";")
-        );
-        return S.token;
-    };
-
-    function prev() {
-        return S.prev;
-    };
-
-    function croak(msg, line, col, pos) {
-        var ctx = S.input.context();
-        js_error(msg,
-                 line != null ? line : ctx.tokline,
-                 col != null ? col : ctx.tokcol,
-                 pos != null ? pos : ctx.tokpos);
-    };
-
-    function token_error(token, msg) {
-        croak(msg, token.line, token.col);
-    };
-
-    function unexpected(token) {
-        if (token == null)
-            token = S.token;
-        token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
-    };
-
-    function expect_token(type, val) {
-        if (is(type, val)) {
-            return next();
-        }
-        token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type);
-    };
-
-    function expect(punc) { return expect_token("punc", punc); };
-
-    function can_insert_semicolon() {
-        return !exigent_mode && (
-            S.token.nlb || is("eof") || is("punc", "}")
-        );
-    };
-
-    function semicolon() {
-        if (is("punc", ";")) next();
-        else if (!can_insert_semicolon()) unexpected();
-    };
-
-    function as() {
-        return slice(arguments);
-    };
-
-    function parenthesised() {
-        expect("(");
-        var ex = expression();
-        expect(")");
-        return ex;
-    };
-
-    function add_tokens(str, start, end) {
-        return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end);
-    };
-
-    function maybe_embed_tokens(parser) {
-        if (embed_tokens) return function() {
-            var start = S.token;
-            var ast = parser.apply(this, arguments);
-            ast[0] = add_tokens(ast[0], start, prev());
-            return ast;
-        };
-        else return parser;
-    };
-
-    var statement = maybe_embed_tokens(function() {
-        if (is("operator", "/") || is("operator", "/=")) {
-            S.peeked = null;
-            S.token = S.input(S.token.value.substr(1)); // force regexp
-        }
-        switch (S.token.type) {
-          case "string":
-            var dir = S.in_directives, stat = simple_statement();
-            if (dir && stat[1][0] == "string" && !is("punc", ","))
-                return as("directive", stat[1][1]);
-            return stat;
-          case "num":
-          case "regexp":
-          case "operator":
-          case "atom":
-            return simple_statement();
-
-          case "name":
-            return is_token(peek(), "punc", ":")
-                ? labeled_statement(prog1(S.token.value, next, next))
-                : simple_statement();
-
-          case "punc":
-            switch (S.token.value) {
-              case "{":
-                return as("block", block_());
-              case "[":
-              case "(":
-                return simple_statement();
-              case ";":
-                next();
-                return as("block");
-              default:
-                unexpected();
-            }
-
-          case "keyword":
-            switch (prog1(S.token.value, next)) {
-              case "break":
-                return break_cont("break");
-
-              case "continue":
-                return break_cont("continue");
-
-              case "debugger":
-                semicolon();
-                return as("debugger");
-
-              case "do":
-                return (function(body){
-                    expect_token("keyword", "while");
-                    return as("do", prog1(parenthesised, semicolon), body);
-                })(in_loop(statement));
-
-              case "for":
-                return for_();
-
-              case "function":
-                return function_(true);
-
-              case "if":
-                return if_();
-
-              case "return":
-                if (S.in_function == 0)
-                    croak("'return' outside of function");
-                return as("return",
-                          is("punc", ";")
-                          ? (next(), null)
-                          : can_insert_semicolon()
-                          ? null
-                          : prog1(expression, semicolon));
-
-              case "switch":
-                return as("switch", parenthesised(), switch_block_());
-
-              case "throw":
-                if (S.token.nlb)
-                    croak("Illegal newline after 'throw'");
-                return as("throw", prog1(expression, semicolon));
-
-              case "try":
-                return try_();
-
-              case "var":
-                return prog1(var_, semicolon);
-
-              case "const":
-                return prog1(const_, semicolon);
-
-              case "while":
-                return as("while", parenthesised(), in_loop(statement));
-
-              case "with":
-                return as("with", parenthesised(), statement());
-
-              default:
-                unexpected();
-            }
-        }
-    });
-
-    function labeled_statement(label) {
-        S.labels.push(label);
-        var start = S.token, stat = statement();
-        if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0]))
-            unexpected(start);
-        S.labels.pop();
-        return as("label", label, stat);
-    };
-
-    function simple_statement() {
-        return as("stat", prog1(expression, semicolon));
-    };
-
-    function break_cont(type) {
-        var name;
-        if (!can_insert_semicolon()) {
-            name = is("name") ? S.token.value : null;
-        }
-        if (name != null) {
-            next();
-            if (!member(name, S.labels))
-                croak("Label " + name + " without matching loop or statement");
-        }
-        else if (S.in_loop == 0)
-            croak(type + " not inside a loop or switch");
-        semicolon();
-        return as(type, name);
-    };
-
-    function for_() {
-        expect("(");
-        var init = null;
-        if (!is("punc", ";")) {
-            init = is("keyword", "var")
-                ? (next(), var_(true))
-                : expression(true, true);
-            if (is("operator", "in")) {
-                if (init[0] == "var" && init[1].length > 1)
-                    croak("Only one variable declaration allowed in for..in loop");
-                return for_in(init);
-            }
-        }
-        return regular_for(init);
-    };
-
-    function regular_for(init) {
-        expect(";");
-        var test = is("punc", ";") ? null : expression();
-        expect(";");
-        var step = is("punc", ")") ? null : expression();
-        expect(")");
-        return as("for", init, test, step, in_loop(statement));
-    };
-
-    function for_in(init) {
-        var lhs = init[0] == "var" ? as("name", init[1][0]) : init;
-        next();
-        var obj = expression();
-        expect(")");
-        return as("for-in", init, lhs, obj, in_loop(statement));
-    };
-
-    var function_ = function(in_statement) {
-        var name = is("name") ? prog1(S.token.value, next) : null;
-        if (in_statement && !name)
-            unexpected();
-        expect("(");
-        return as(in_statement ? "defun" : "function",
-                  name,
-                  // arguments
-                  (function(first, a){
-                      while (!is("punc", ")")) {
-                          if (first) first = false; else expect(",");
-                          if (!is("name")) unexpected();
-                          a.push(S.token.value);
-                          next();
-                      }
-                      next();
-                      return a;
-                  })(true, []),
-                  // body
-                  (function(){
-                      ++S.in_function;
-                      var loop = S.in_loop;
-                      S.in_directives = true;
-                      S.in_loop = 0;
-                      var a = block_();
-                      --S.in_function;
-                      S.in_loop = loop;
-                      return a;
-                  })());
-    };
-
-    function if_() {
-        var cond = parenthesised(), body = statement(), belse;
-        if (is("keyword", "else")) {
-            next();
-            belse = statement();
-        }
-        return as("if", cond, body, belse);
-    };
-
-    function block_() {
-        expect("{");
-        var a = [];
-        while (!is("punc", "}")) {
-            if (is("eof")) unexpected();
-            a.push(statement());
-        }
-        next();
-        return a;
-    };
-
-    var switch_block_ = curry(in_loop, function(){
-        expect("{");
-        var a = [], cur = null;
-        while (!is("punc", "}")) {
-            if (is("eof")) unexpected();
-            if (is("keyword", "case")) {
-                next();
-                cur = [];
-                a.push([ expression(), cur ]);
-                expect(":");
-            }
-            else if (is("keyword", "default")) {
-                next();
-                expect(":");
-                cur = [];
-                a.push([ null, cur ]);
-            }
-            else {
-                if (!cur) unexpected();
-                cur.push(statement());
-            }
-        }
-        next();
-        return a;
-    });
-
-    function try_() {
-        var body = block_(), bcatch, bfinally;
-        if (is("keyword", "catch")) {
-            next();
-            expect("(");
-            if (!is("name"))
-                croak("Name expected");
-            var name = S.token.value;
-            next();
-            expect(")");
-            bcatch = [ name, block_() ];
-        }
-        if (is("keyword", "finally")) {
-            next();
-            bfinally = block_();
-        }
-        if (!bcatch && !bfinally)
-            croak("Missing catch/finally blocks");
-        return as("try", body, bcatch, bfinally);
-    };
-
-    function vardefs(no_in) {
-        var a = [];
-        for (;;) {
-            if (!is("name"))
-                unexpected();
-            var name = S.token.value;
-            next();
-            if (is("operator", "=")) {
-                next();
-                a.push([ name, expression(false, no_in) ]);
-            } else {
-                a.push([ name ]);
-            }
-            if (!is("punc", ","))
-                break;
-            next();
-        }
-        return a;
-    };
-
-    function var_(no_in) {
-        return as("var", vardefs(no_in));
-    };
-
-    function const_() {
-        return as("const", vardefs());
-    };
-
-    function new_() {
-        var newexp = expr_atom(false), args;
-        if (is("punc", "(")) {
-            next();
-            args = expr_list(")");
-        } else {
-            args = [];
-        }
-        return subscripts(as("new", newexp, args), true);
-    };
-
-    var expr_atom = maybe_embed_tokens(function(allow_calls) {
-        if (is("operator", "new")) {
-            next();
-            return new_();
-        }
-        if (is("punc")) {
-            switch (S.token.value) {
-              case "(":
-                next();
-                return subscripts(prog1(expression, curry(expect, ")")), allow_calls);
-              case "[":
-                next();
-                return subscripts(array_(), allow_calls);
-              case "{":
-                next();
-                return subscripts(object_(), allow_calls);
-            }
-            unexpected();
-        }
-        if (is("keyword", "function")) {
-            next();
-            return subscripts(function_(false), allow_calls);
-        }
-        if (HOP(ATOMIC_START_TOKEN, S.token.type)) {
-            var atom = S.token.type == "regexp"
-                ? as("regexp", S.token.value[0], S.token.value[1])
-                : as(S.token.type, S.token.value);
-            return subscripts(prog1(atom, next), allow_calls);
-        }
-        unexpected();
-    });
-
-    function expr_list(closing, allow_trailing_comma, allow_empty) {
-        var first = true, a = [];
-        while (!is("punc", closing)) {
-            if (first) first = false; else expect(",");
-            if (allow_trailing_comma && is("punc", closing)) break;
-            if (is("punc", ",") && allow_empty) {
-                a.push([ "atom", "undefined" ]);
-            } else {
-                a.push(expression(false));
-            }
-        }
-        next();
-        return a;
-    };
-
-    function array_() {
-        return as("array", expr_list("]", !exigent_mode, true));
-    };
-
-    function object_() {
-        var first = true, a = [];
-        while (!is("punc", "}")) {
-            if (first) first = false; else expect(",");
-            if (!exigent_mode && is("punc", "}"))
-                // allow trailing comma
-                break;
-            var type = S.token.type;
-            var name = as_property_name();
-            if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) {
-                a.push([ as_name(), function_(false), name ]);
-            } else {
-                expect(":");
-                a.push([ name, expression(false) ]);
-            }
-        }
-        next();
-        return as("object", a);
-    };
-
-    function as_property_name() {
-        switch (S.token.type) {
-          case "num":
-          case "string":
-            return prog1(S.token.value, next);
-        }
-        return as_name();
-    };
-
-    function as_name() {
-        switch (S.token.type) {
-          case "name":
-          case "operator":
-          case "keyword":
-          case "atom":
-            return prog1(S.token.value, next);
-          default:
-            unexpected();
-        }
-    };
-
-    function subscripts(expr, allow_calls) {
-        if (is("punc", ".")) {
-            next();
-            return subscripts(as("dot", expr, as_name()), allow_calls);
-        }
-        if (is("punc", "[")) {
-            next();
-            return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls);
-        }
-        if (allow_calls && is("punc", "(")) {
-            next();
-            return subscripts(as("call", expr, expr_list(")")), true);
-        }
-        return expr;
-    };
-
-    function maybe_unary(allow_calls) {
-        if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) {
-            return make_unary("unary-prefix",
-                              prog1(S.token.value, next),
-                              maybe_unary(allow_calls));
-        }
-        var val = expr_atom(allow_calls);
-        while (is("operator") && HOP(UNARY_POSTFIX, S.token.value) && !S.token.nlb) {
-            val = make_unary("unary-postfix", S.token.value, val);
-            next();
-        }
-        return val;
-    };
-
-    function make_unary(tag, op, expr) {
-        if ((op == "++" || op == "--") && !is_assignable(expr))
-            croak("Invalid use of " + op + " operator");
-        return as(tag, op, expr);
-    };
-
-    function expr_op(left, min_prec, no_in) {
-        var op = is("operator") ? S.token.value : null;
-        if (op && op == "in" && no_in) op = null;
-        var prec = op != null ? PRECEDENCE[op] : null;
-        if (prec != null && prec > min_prec) {
-            next();
-            var right = expr_op(maybe_unary(true), prec, no_in);
-            return expr_op(as("binary", op, left, right), min_prec, no_in);
-        }
-        return left;
-    };
-
-    function expr_ops(no_in) {
-        return expr_op(maybe_unary(true), 0, no_in);
-    };
-
-    function maybe_conditional(no_in) {
-        var expr = expr_ops(no_in);
-        if (is("operator", "?")) {
-            next();
-            var yes = expression(false);
-            expect(":");
-            return as("conditional", expr, yes, expression(false, no_in));
-        }
-        return expr;
-    };
-
-    function is_assignable(expr) {
-        if (!exigent_mode) return true;
-        switch (expr[0]+"") {
-          case "dot":
-          case "sub":
-          case "new":
-          case "call":
-            return true;
-          case "name":
-            return expr[1] != "this";
-        }
-    };
-
-    function maybe_assign(no_in) {
-        var left = maybe_conditional(no_in), val = S.token.value;
-        if (is("operator") && HOP(ASSIGNMENT, val)) {
-            if (is_assignable(left)) {
-                next();
-                return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in));
-            }
-            croak("Invalid assignment");
-        }
-        return left;
-    };
-
-    var expression = maybe_embed_tokens(function(commas, no_in) {
-        if (arguments.length == 0)
-            commas = true;
-        var expr = maybe_assign(no_in);
-        if (commas && is("punc", ",")) {
-            next();
-            return as("seq", expr, expression(true, no_in));
-        }
-        return expr;
-    });
-
-    function in_loop(cont) {
-        try {
-            ++S.in_loop;
-            return cont();
-        } finally {
-            --S.in_loop;
-        }
-    };
-
-    return as("toplevel", (function(a){
-        while (!is("eof"))
-            a.push(statement());
-        return a;
-    })([]));
-
-};
-
-/* -----[ Utilities ]----- */
-
-function curry(f) {
-    var args = slice(arguments, 1);
-    return function() { return f.apply(this, args.concat(slice(arguments))); };
-};
-
-function prog1(ret) {
-    if (ret instanceof Function)
-        ret = ret();
-    for (var i = 1, n = arguments.length; --n > 0; ++i)
-        arguments[i]();
-    return ret;
-};
-
-function array_to_hash(a) {
-    var ret = {};
-    for (var i = 0; i < a.length; ++i)
-        ret[a[i]] = true;
-    return ret;
-};
-
-function slice(a, start) {
-    return Array.prototype.slice.call(a, start || 0);
-};
-
-function characters(str) {
-    return str.split("");
-};
-
-function member(name, array) {
-    for (var i = array.length; --i >= 0;)
-        if (array[i] == name)
-            return true;
-    return false;
-};
-
-function HOP(obj, prop) {
-    return Object.prototype.hasOwnProperty.call(obj, prop);
-};
-
-var warn = function() {};
-
-/* -----[ Exports ]----- */
-
-exports.tokenizer = tokenizer;
-exports.parse = parse;
-exports.slice = slice;
-exports.curry = curry;
-exports.member = member;
-exports.array_to_hash = array_to_hash;
-exports.PRECEDENCE = PRECEDENCE;
-exports.KEYWORDS_ATOM = KEYWORDS_ATOM;
-exports.RESERVED_WORDS = RESERVED_WORDS;
-exports.KEYWORDS = KEYWORDS;
-exports.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN;
-exports.OPERATORS = OPERATORS;
-exports.is_alphanumeric_char = is_alphanumeric_char;
-exports.is_identifier_start = is_identifier_start;
-exports.is_identifier_char = is_identifier_char;
-exports.set_logger = function(logger) {
-    warn = logger;
-};
-
-// Local variables:
-// js-indent-level: 4
-// End:
-});define('uglifyjs/squeeze-more', ["require", "exports", "module", "./parse-js", "./squeeze-more"], function(require, exports, module) {
-var jsp = require("./parse-js"),
-    pro = require("./process"),
-    slice = jsp.slice,
-    member = jsp.member,
-    curry = jsp.curry,
-    MAP = pro.MAP,
-    PRECEDENCE = jsp.PRECEDENCE,
-    OPERATORS = jsp.OPERATORS;
-
-function ast_squeeze_more(ast) {
-    var w = pro.ast_walker(), walk = w.walk, scope;
-    function with_scope(s, cont) {
-        var save = scope, ret;
-        scope = s;
-        ret = cont();
-        scope = save;
-        return ret;
-    };
-    function _lambda(name, args, body) {
-        return [ this[0], name, args, with_scope(body.scope, curry(MAP, body, walk)) ];
-    };
-    return w.with_walkers({
-        "toplevel": function(body) {
-            return [ this[0], with_scope(this.scope, curry(MAP, body, walk)) ];
-        },
-        "function": _lambda,
-        "defun": _lambda,
-        "new": function(ctor, args) {
-            if (ctor[0] == "name") {
-                if (ctor[1] == "Array" && !scope.has("Array")) {
-                    if (args.length != 1) {
-                        return [ "array", args ];
-                    } else {
-                        return walk([ "call", [ "name", "Array" ], args ]);
-                    }
-                } else if (ctor[1] == "Object" && !scope.has("Object")) {
-                    if (!args.length) {
-                        return [ "object", [] ];
-                    } else {
-                        return walk([ "call", [ "name", "Object" ], args ]);
-                    }
-                } else if ((ctor[1] == "RegExp" || ctor[1] == "Function" || ctor[1] == "Error") && !scope.has(ctor[1])) {
-                    return walk([ "call", [ "name", ctor[1] ], args]);
-                }
-            }
-        },
-        "call": function(expr, args) {
-            if (expr[0] == "dot" && expr[1][0] == "string" && args.length == 1
-                && (args[0][1] > 0 && expr[2] == "substring" || expr[2] == "substr")) {
-                return [ "call", [ "dot", expr[1], "slice"], args];
-            }
-            if (expr[0] == "dot" && expr[2] == "toString" && args.length == 0) {
-                // foo.toString()  ==>  foo+""
-                if (expr[1][0] == "string") return expr[1];
-                return [ "binary", "+", expr[1], [ "string", "" ]];
-            }
-            if (expr[0] == "name") {
-                if (expr[1] == "Array" && args.length != 1 && !scope.has("Array")) {
-                    return [ "array", args ];
-                }
-                if (expr[1] == "Object" && !args.length && !scope.has("Object")) {
-                    return [ "object", [] ];
-                }
-                if (expr[1] == "String" && !scope.has("String")) {
-                    return [ "binary", "+", args[0], [ "string", "" ]];
-                }
-            }
-        }
-    }, function() {
-        return walk(pro.ast_add_scope(ast));
-    });
-};
-
-exports.ast_squeeze_more = ast_squeeze_more;
-
-// Local variables:
-// js-indent-level: 4
-// End:
-});
-define('uglifyjs/process', ["require", "exports", "module", "./parse-js", "./squeeze-more"], function(require, exports, module) {
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-
-  This version is suitable for Node.js.  With minimal changes (the
-  exports stuff) it should work on any JS platform.
-
-  This file implements some AST processors.  They work on data built
-  by parse-js.
-
-  Exported functions:
-
-    - ast_mangle(ast, options) -- mangles the variable/function names
-      in the AST.  Returns an AST.
-
-    - ast_squeeze(ast) -- employs various optimizations to make the
-      final generated code even smaller.  Returns an AST.
-
-    - gen_code(ast, options) -- generates JS code from the AST.  Pass
-      true (or an object, see the code for some options) as second
-      argument to get "pretty" (indented) code.
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2010 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-var jsp = require("./parse-js"),
-    curry = jsp.curry,
-    slice = jsp.slice,
-    member = jsp.member,
-    is_identifier_char = jsp.is_identifier_char,
-    PRECEDENCE = jsp.PRECEDENCE,
-    OPERATORS = jsp.OPERATORS;
-
-/* -----[ helper for AST traversal ]----- */
-
-function ast_walker() {
-    function _vardefs(defs) {
-        return [ this[0], MAP(defs, function(def){
-            var a = [ def[0] ];
-            if (def.length > 1)
-                a[1] = walk(def[1]);
-            return a;
-        }) ];
-    };
-    function _block(statements) {
-        var out = [ this[0] ];
-        if (statements != null)
-            out.push(MAP(statements, walk));
-        return out;
-    };
-    var walkers = {
-        "string": function(str) {
-            return [ this[0], str ];
-        },
-        "num": function(num) {
-            return [ this[0], num ];
-        },
-        "name": function(name) {
-            return [ this[0], name ];
-        },
-        "toplevel": function(statements) {
-            return [ this[0], MAP(statements, walk) ];
-        },
-        "block": _block,
-        "splice": _block,
-        "var": _vardefs,
-        "const": _vardefs,
-        "try": function(t, c, f) {
-            return [
-                this[0],
-                MAP(t, walk),
-                c != null ? [ c[0], MAP(c[1], walk) ] : null,
-                f != null ? MAP(f, walk) : null
-            ];
-        },
-        "throw": function(expr) {
-            return [ this[0], walk(expr) ];
-        },
-        "new": function(ctor, args) {
-            return [ this[0], walk(ctor), MAP(args, walk) ];
-        },
-        "switch": function(expr, body) {
-            return [ this[0], walk(expr), MAP(body, function(branch){
-                return [ branch[0] ? walk(branch[0]) : null,
-                         MAP(branch[1], walk) ];
-            }) ];
-        },
-        "break": function(label) {
-            return [ this[0], label ];
-        },
-        "continue": function(label) {
-            return [ this[0], label ];
-        },
-        "conditional": function(cond, t, e) {
-            return [ this[0], walk(cond), walk(t), walk(e) ];
-        },
-        "assign": function(op, lvalue, rvalue) {
-            return [ this[0], op, walk(lvalue), walk(rvalue) ];
-        },
-        "dot": function(expr) {
-            return [ this[0], walk(expr) ].concat(slice(arguments, 1));
-        },
-        "call": function(expr, args) {
-            return [ this[0], walk(expr), MAP(args, walk) ];
-        },
-        "function": function(name, args, body) {
-            return [ this[0], name, args.slice(), MAP(body, walk) ];
-        },
-        "debugger": function() {
-            return [ this[0] ];
-        },
-        "defun": function(name, args, body) {
-            return [ this[0], name, args.slice(), MAP(body, walk) ];
-        },
-        "if": function(conditional, t, e) {
-            return [ this[0], walk(conditional), walk(t), walk(e) ];
-        },
-        "for": function(init, cond, step, block) {
-            return [ this[0], walk(init), walk(cond), walk(step), walk(block) ];
-        },
-        "for-in": function(vvar, key, hash, block) {
-            return [ this[0], walk(vvar), walk(key), walk(hash), walk(block) ];
-        },
-        "while": function(cond, block) {
-            return [ this[0], walk(cond), walk(block) ];
-        },
-        "do": function(cond, block) {
-            return [ this[0], walk(cond), walk(block) ];
-        },
-        "return": function(expr) {
-            return [ this[0], walk(expr) ];
-        },
-        "binary": function(op, left, right) {
-            return [ this[0], op, walk(left), walk(right) ];
-        },
-        "unary-prefix": function(op, expr) {
-            return [ this[0], op, walk(expr) ];
-        },
-        "unary-postfix": function(op, expr) {
-            return [ this[0], op, walk(expr) ];
-        },
-        "sub": function(expr, subscript) {
-            return [ this[0], walk(expr), walk(subscript) ];
-        },
-        "object": function(props) {
-            return [ this[0], MAP(props, function(p){
-                return p.length == 2
-                    ? [ p[0], walk(p[1]) ]
-                    : [ p[0], walk(p[1]), p[2] ]; // get/set-ter
-            }) ];
-        },
-        "regexp": function(rx, mods) {
-            return [ this[0], rx, mods ];
-        },
-        "array": function(elements) {
-            return [ this[0], MAP(elements, walk) ];
-        },
-        "stat": function(stat) {
-            return [ this[0], walk(stat) ];
-        },
-        "seq": function() {
-            return [ this[0] ].concat(MAP(slice(arguments), walk));
-        },
-        "label": function(name, block) {
-            return [ this[0], name, walk(block) ];
-        },
-        "with": function(expr, block) {
-            return [ this[0], walk(expr), walk(block) ];
-        },
-        "atom": function(name) {
-            return [ this[0], name ];
-        },
-        "directive": function(dir) {
-            return [ this[0], dir ];
-        }
-    };
-
-    var user = {};
-    var stack = [];
-    function walk(ast) {
-        if (ast == null)
-            return null;
-        try {
-            stack.push(ast);
-            var type = ast[0];
-            var gen = user[type];
-            if (gen) {
-                var ret = gen.apply(ast, ast.slice(1));
-                if (ret != null)
-                    return ret;
-            }
-            gen = walkers[type];
-            return gen.apply(ast, ast.slice(1));
-        } finally {
-            stack.pop();
-        }
-    };
-
-    function dive(ast) {
-        if (ast == null)
-            return null;
-        try {
-            stack.push(ast);
-            return walkers[ast[0]].apply(ast, ast.slice(1));
-        } finally {
-            stack.pop();
-        }
-    };
-
-    function with_walkers(walkers, cont){
-        var save = {}, i;
-        for (i in walkers) if (HOP(walkers, i)) {
-            save[i] = user[i];
-            user[i] = walkers[i];
-        }
-        var ret = cont();
-        for (i in save) if (HOP(save, i)) {
-            if (!save[i]) delete user[i];
-            else user[i] = save[i];
-        }
-        return ret;
-    };
-
-    return {
-        walk: walk,
-        dive: dive,
-        with_walkers: with_walkers,
-        parent: function() {
-            return stack[stack.length - 2]; // last one is current node
-        },
-        stack: function() {
-            return stack;
-        }
-    };
-};
-
-/* -----[ Scope and mangling ]----- */
-
-function Scope(parent) {
-    this.names = {};        // names defined in this scope
-    this.mangled = {};      // mangled names (orig.name => mangled)
-    this.rev_mangled = {};  // reverse lookup (mangled => orig.name)
-    this.cname = -1;        // current mangled name
-    this.refs = {};         // names referenced from this scope
-    this.uses_with = false; // will become TRUE if with() is detected in this or any subscopes
-    this.uses_eval = false; // will become TRUE if eval() is detected in this or any subscopes
-    this.directives = [];   // directives activated from this scope
-    this.parent = parent;   // parent scope
-    this.children = [];     // sub-scopes
-    if (parent) {
-        this.level = parent.level + 1;
-        parent.children.push(this);
-    } else {
-        this.level = 0;
-    }
-};
-
-function base54_digits() {
-    if (typeof DIGITS_OVERRIDE_FOR_TESTING != "undefined")
-        return DIGITS_OVERRIDE_FOR_TESTING;
-    else
-        return "etnrisouaflchpdvmgybwESxTNCkLAOM_DPHBjFIqRUzWXV$JKQGYZ0516372984";
-}
-
-var base54 = (function(){
-    var DIGITS = base54_digits();
-    return function(num) {
-        var ret = "", base = 54;
-        do {
-            ret += DIGITS.charAt(num % base);
-            num = Math.floor(num / base);
-            base = 64;
-        } while (num > 0);
-        return ret;
-    };
-})();
-
-Scope.prototype = {
-    has: function(name) {
-        for (var s = this; s; s = s.parent)
-            if (HOP(s.names, name))
-                return s;
-    },
-    has_mangled: function(mname) {
-        for (var s = this; s; s = s.parent)
-            if (HOP(s.rev_mangled, mname))
-                return s;
-    },
-    toJSON: function() {
-        return {
-            names: this.names,
-            uses_eval: this.uses_eval,
-            uses_with: this.uses_with
-        };
-    },
-
-    next_mangled: function() {
-        // we must be careful that the new mangled name:
-        //
-        // 1. doesn't shadow a mangled name from a parent
-        //    scope, unless we don't reference the original
-        //    name from this scope OR from any sub-scopes!
-        //    This will get slow.
-        //
-        // 2. doesn't shadow an original name from a parent
-        //    scope, in the event that the name is not mangled
-        //    in the parent scope and we reference that name
-        //    here OR IN ANY SUBSCOPES!
-        //
-        // 3. doesn't shadow a name that is referenced but not
-        //    defined (possibly global defined elsewhere).
-        for (;;) {
-            var m = base54(++this.cname), prior;
-
-            // case 1.
-            prior = this.has_mangled(m);
-            if (prior && this.refs[prior.rev_mangled[m]] === prior)
-                continue;
-
-            // case 2.
-            prior = this.has(m);
-            if (prior && prior !== this && this.refs[m] === prior && !prior.has_mangled(m))
-                continue;
-
-            // case 3.
-            if (HOP(this.refs, m) && this.refs[m] == null)
-                continue;
-
-            // I got "do" once. :-/
-            if (!is_identifier(m))
-                continue;
-
-            return m;
-        }
-    },
-    set_mangle: function(name, m) {
-        this.rev_mangled[m] = name;
-        return this.mangled[name] = m;
-    },
-    get_mangled: function(name, newMangle) {
-        if (this.uses_eval || this.uses_with) return name; // no mangle if eval or with is in use
-        var s = this.has(name);
-        if (!s) return name; // not in visible scope, no mangle
-        if (HOP(s.mangled, name)) return s.mangled[name]; // already mangled in this scope
-        if (!newMangle) return name;                      // not found and no mangling requested
-        return s.set_mangle(name, s.next_mangled());
-    },
-    references: function(name) {
-        return name && !this.parent || this.uses_with || this.uses_eval || this.refs[name];
-    },
-    define: function(name, type) {
-        if (name != null) {
-            if (type == "var" || !HOP(this.names, name))
-                this.names[name] = type || "var";
-            return name;
-        }
-    },
-    active_directive: function(dir) {
-        return member(dir, this.directives) || this.parent && this.parent.active_directive(dir);
-    }
-};
-
-function ast_add_scope(ast) {
-
-    var current_scope = null;
-    var w = ast_walker(), walk = w.walk;
-    var having_eval = [];
-
-    function with_new_scope(cont) {
-        current_scope = new Scope(current_scope);
-        current_scope.labels = new Scope();
-        var ret = current_scope.body = cont();
-        ret.scope = current_scope;
-        current_scope = current_scope.parent;
-        return ret;
-    };
-
-    function define(name, type) {
-        return current_scope.define(name, type);
-    };
-
-    function reference(name) {
-        current_scope.refs[name] = true;
-    };
-
-    function _lambda(name, args, body) {
-        var is_defun = this[0] == "defun";
-        return [ this[0], is_defun ? define(name, "defun") : name, args, with_new_scope(function(){
-            if (!is_defun) define(name, "lambda");
-            MAP(args, function(name){ define(name, "arg") });
-            return MAP(body, walk);
-        })];
-    };
-
-    function _vardefs(type) {
-        return function(defs) {
-            MAP(defs, function(d){
-                define(d[0], type);
-                if (d[1]) reference(d[0]);
-            });
-        };
-    };
-
-    function _breacont(label) {
-        if (label)
-            current_scope.labels.refs[label] = true;
-    };
-
-    return with_new_scope(function(){
-        // process AST
-        var ret = w.with_walkers({
-            "function": _lambda,
-            "defun": _lambda,
-            "label": function(name, stat) { current_scope.labels.define(name) },
-            "break": _breacont,
-            "continue": _breacont,
-            "with": function(expr, block) {
-                for (var s = current_scope; s; s = s.parent)
-                    s.uses_with = true;
-            },
-            "var": _vardefs("var"),
-            "const": _vardefs("const"),
-            "try": function(t, c, f) {
-                if (c != null) return [
-                    this[0],
-                    MAP(t, walk),
-                    [ define(c[0], "catch"), MAP(c[1], walk) ],
-                    f != null ? MAP(f, walk) : null
-                ];
-            },
-            "name": function(name) {
-                if (name == "eval")
-                    having_eval.push(current_scope);
-                reference(name);
-            }
-        }, function(){
-            return walk(ast);
-        });
-
-        // the reason why we need an additional pass here is
-        // that names can be used prior to their definition.
-
-        // scopes where eval was detected and their parents
-        // are marked with uses_eval, unless they define the
-        // "eval" name.
-        MAP(having_eval, function(scope){
-            if (!scope.has("eval")) while (scope) {
-                scope.uses_eval = true;
-                scope = scope.parent;
-            }
-        });
-
-        // for referenced names it might be useful to know
-        // their origin scope.  current_scope here is the
-        // toplevel one.
-        function fixrefs(scope, i) {
-            // do children first; order shouldn't matter
-            for (i = scope.children.length; --i >= 0;)
-                fixrefs(scope.children[i]);
-            for (i in scope.refs) if (HOP(scope.refs, i)) {
-                // find origin scope and propagate the reference to origin
-                for (var origin = scope.has(i), s = scope; s; s = s.parent) {
-                    s.refs[i] = origin;
-                    if (s === origin) break;
-                }
-            }
-        };
-        fixrefs(current_scope);
-
-        return ret;
-    });
-
-};
-
-/* -----[ mangle names ]----- */
-
-function ast_mangle(ast, options) {
-    var w = ast_walker(), walk = w.walk, scope;
-    options = defaults(options, {
-        mangle       : true,
-        toplevel     : false,
-        defines      : null,
-        except       : null,
-        no_functions : false
-    });
-
-    function get_mangled(name, newMangle) {
-        if (!options.mangle) return name;
-        if (!options.toplevel && !scope.parent) return name; // don't mangle toplevel
-        if (options.except && member(name, options.except))
-            return name;
-        if (options.no_functions && HOP(scope.names, name) &&
-            (scope.names[name] == 'defun' || scope.names[name] == 'lambda'))
-            return name;
-        return scope.get_mangled(name, newMangle);
-    };
-
-    function get_define(name) {
-        if (options.defines) {
-            // we always lookup a defined symbol for the current scope FIRST, so declared
-            // vars trump a DEFINE symbol, but if no such var is found, then match a DEFINE value
-            if (!scope.has(name)) {
-                if (HOP(options.defines, name)) {
-                    return options.defines[name];
-                }
-            }
-            return null;
-        }
-    };
-
-    function _lambda(name, args, body) {
-        if (!options.no_functions && options.mangle) {
-            var is_defun = this[0] == "defun", extra;
-            if (name) {
-                if (is_defun) name = get_mangled(name);
-                else if (body.scope.references(name)) {
-                    extra = {};
-                    if (!(scope.uses_eval || scope.uses_with))
-                        name = extra[name] = scope.next_mangled();
-                    else
-                        extra[name] = name;
-                }
-                else name = null;
-            }
-        }
-        body = with_scope(body.scope, function(){
-            args = MAP(args, function(name){ return get_mangled(name) });
-            return MAP(body, walk);
-        }, extra);
-        return [ this[0], name, args, body ];
-    };
-
-    function with_scope(s, cont, extra) {
-        var _scope = scope;
-        scope = s;
-        if (extra) for (var i in extra) if (HOP(extra, i)) {
-            s.set_mangle(i, extra[i]);
-        }
-        for (var i in s.names) if (HOP(s.names, i)) {
-            get_mangled(i, true);
-        }
-        var ret = cont();
-        ret.scope = s;
-        scope = _scope;
-        return ret;
-    };
-
-    function _vardefs(defs) {
-        return [ this[0], MAP(defs, function(d){
-            return [ get_mangled(d[0]), walk(d[1]) ];
-        }) ];
-    };
-
-    function _breacont(label) {
-        if (label) return [ this[0], scope.labels.get_mangled(label) ];
-    };
-
-    return w.with_walkers({
-        "function": _lambda,
-        "defun": function() {
-            // move function declarations to the top when
-            // they are not in some block.
-            var ast = _lambda.apply(this, arguments);
-            switch (w.parent()[0]) {
-              case "toplevel":
-              case "function":
-              case "defun":
-                return MAP.at_top(ast);
-            }
-            return ast;
-        },
-        "label": function(label, stat) {
-            if (scope.labels.refs[label]) return [
-                this[0],
-                scope.labels.get_mangled(label, true),
-                walk(stat)
-            ];
-            return walk(stat);
-        },
-        "break": _breacont,
-        "continue": _breacont,
-        "var": _vardefs,
-        "const": _vardefs,
-        "name": function(name) {
-            return get_define(name) || [ this[0], get_mangled(name) ];
-        },
-        "try": function(t, c, f) {
-            return [ this[0],
-                     MAP(t, walk),
-                     c != null ? [ get_mangled(c[0]), MAP(c[1], walk) ] : null,
-                     f != null ? MAP(f, walk) : null ];
-        },
-        "toplevel": function(body) {
-            var self = this;
-            return with_scope(self.scope, function(){
-                return [ self[0], MAP(body, walk) ];
-            });
-        },
-        "directive": function() {
-            return MAP.at_top(this);
-        }
-    }, function() {
-        return walk(ast_add_scope(ast));
-    });
-};
-
-/* -----[
-   - compress foo["bar"] into foo.bar,
-   - remove block brackets {} where possible
-   - join consecutive var declarations
-   - various optimizations for IFs:
-   - if (cond) foo(); else bar();  ==>  cond?foo():bar();
-   - if (cond) foo();  ==>  cond&&foo();
-   - if (foo) return bar(); else return baz();  ==> return foo?bar():baz(); // also for throw
-   - if (foo) return bar(); else something();  ==> {if(foo)return bar();something()}
-   ]----- */
-
-var warn = function(){};
-
-function best_of(ast1, ast2) {
-    return gen_code(ast1).length > gen_code(ast2[0] == "stat" ? ast2[1] : ast2).length ? ast2 : ast1;
-};
-
-function last_stat(b) {
-    if (b[0] == "block" && b[1] && b[1].length > 0)
-        return b[1][b[1].length - 1];
-    return b;
-}
-
-function aborts(t) {
-    if (t) switch (last_stat(t)[0]) {
-      case "return":
-      case "break":
-      case "continue":
-      case "throw":
-        return true;
-    }
-};
-
-function boolean_expr(expr) {
-    return ( (expr[0] == "unary-prefix"
-              && member(expr[1], [ "!", "delete" ])) ||
-
-             (expr[0] == "binary"
-              && member(expr[1], [ "in", "instanceof", "==", "!=", "===", "!==", "<", "<=", ">=", ">" ])) ||
-
-             (expr[0] == "binary"
-              && member(expr[1], [ "&&", "||" ])
-              && boolean_expr(expr[2])
-              && boolean_expr(expr[3])) ||
-
-             (expr[0] == "conditional"
-              && boolean_expr(expr[2])
-              && boolean_expr(expr[3])) ||
-
-             (expr[0] == "assign"
-              && expr[1] === true
-              && boolean_expr(expr[3])) ||
-
-             (expr[0] == "seq"
-              && boolean_expr(expr[expr.length - 1]))
-           );
-};
-
-function empty(b) {
-    return !b || (b[0] == "block" && (!b[1] || b[1].length == 0));
-};
-
-function is_string(node) {
-    return (node[0] == "string" ||
-            node[0] == "unary-prefix" && node[1] == "typeof" ||
-            node[0] == "binary" && node[1] == "+" &&
-            (is_string(node[2]) || is_string(node[3])));
-};
-
-var when_constant = (function(){
-
-    var $NOT_CONSTANT = {};
-
-    // this can only evaluate constant expressions.  If it finds anything
-    // not constant, it throws $NOT_CONSTANT.
-    function evaluate(expr) {
-        switch (expr[0]) {
-          case "string":
-          case "num":
-            return expr[1];
-          case "name":
-          case "atom":
-            switch (expr[1]) {
-              case "true": return true;
-              case "false": return false;
-              case "null": return null;
-            }
-            break;
-          case "unary-prefix":
-            switch (expr[1]) {
-              case "!": return !evaluate(expr[2]);
-              case "typeof": return typeof evaluate(expr[2]);
-              case "~": return ~evaluate(expr[2]);
-              case "-": return -evaluate(expr[2]);
-              case "+": return +evaluate(expr[2]);
-            }
-            break;
-          case "binary":
-            var left = expr[2], right = expr[3];
-            switch (expr[1]) {
-              case "&&"         : return evaluate(left) &&         evaluate(right);
-              case "||"         : return evaluate(left) ||         evaluate(right);
-              case "|"          : return evaluate(left) |          evaluate(right);
-              case "&"          : return evaluate(left) &          evaluate(right);
-              case "^"          : return evaluate(left) ^          evaluate(right);
-              case "+"          : return evaluate(left) +          evaluate(right);
-              case "*"          : return evaluate(left) *          evaluate(right);
-              case "/"          : return evaluate(left) /          evaluate(right);
-              case "%"          : return evaluate(left) %          evaluate(right);
-              case "-"          : return evaluate(left) -          evaluate(right);
-              case "<<"         : return evaluate(left) <<         evaluate(right);
-              case ">>"         : return evaluate(left) >>         evaluate(right);
-              case ">>>"        : return evaluate(left) >>>        evaluate(right);
-              case "=="         : return evaluate(left) ==         evaluate(right);
-              case "==="        : return evaluate(left) ===        evaluate(right);
-              case "!="         : return evaluate(left) !=         evaluate(right);
-              case "!=="        : return evaluate(left) !==        evaluate(right);
-              case "<"          : return evaluate(left) <          evaluate(right);
-              case "<="         : return evaluate(left) <=         evaluate(right);
-              case ">"          : return evaluate(left) >          evaluate(right);
-              case ">="         : return evaluate(left) >=         evaluate(right);
-              case "in"         : return evaluate(left) in         evaluate(right);
-              case "instanceof" : return evaluate(left) instanceof evaluate(right);
-            }
-        }
-        throw $NOT_CONSTANT;
-    };
-
-    return function(expr, yes, no) {
-        try {
-            var val = evaluate(expr), ast;
-            switch (typeof val) {
-              case "string": ast =  [ "string", val ]; break;
-              case "number": ast =  [ "num", val ]; break;
-              case "boolean": ast =  [ "name", String(val) ]; break;
-              default:
-                if (val === null) { ast = [ "atom", "null" ]; break; }
-                throw new Error("Can't handle constant of type: " + (typeof val));
-            }
-            return yes.call(expr, ast, val);
-        } catch(ex) {
-            if (ex === $NOT_CONSTANT) {
-                if (expr[0] == "binary"
-                    && (expr[1] == "===" || expr[1] == "!==")
-                    && ((is_string(expr[2]) && is_string(expr[3]))
-                        || (boolean_expr(expr[2]) && boolean_expr(expr[3])))) {
-                    expr[1] = expr[1].substr(0, 2);
-                }
-                else if (no && expr[0] == "binary"
-                         && (expr[1] == "||" || expr[1] == "&&")) {
-                    // the whole expression is not constant but the lval may be...
-                    try {
-                        var lval = evaluate(expr[2]);
-                        expr = ((expr[1] == "&&" && (lval ? expr[3] : lval))    ||
-                                (expr[1] == "||" && (lval ? lval    : expr[3])) ||
-                                expr);
-                    } catch(ex2) {
-                        // IGNORE... lval is not constant
-                    }
-                }
-                return no ? no.call(expr, expr) : null;
-            }
-            else throw ex;
-        }
-    };
-
-})();
-
-function warn_unreachable(ast) {
-    if (!empty(ast))
-        warn("Dropping unreachable code: " + gen_code(ast, true));
-};
-
-function prepare_ifs(ast) {
-    var w = ast_walker(), walk = w.walk;
-    // In this first pass, we rewrite ifs which abort with no else with an
-    // if-else.  For example:
-    //
-    // if (x) {
-    //     blah();
-    //     return y;
-    // }
-    // foobar();
-    //
-    // is rewritten into:
-    //
-    // if (x) {
-    //     blah();
-    //     return y;
-    // } else {
-    //     foobar();
-    // }
-    function redo_if(statements) {
-        statements = MAP(statements, walk);
-
-        for (var i = 0; i < statements.length; ++i) {
-            var fi = statements[i];
-            if (fi[0] != "if") continue;
-
-            if (fi[3]) continue;
-
-            var t = fi[2];
-            if (!aborts(t)) continue;
-
-            var conditional = walk(fi[1]);
-
-            var e_body = redo_if(statements.slice(i + 1));
-            var e = e_body.length == 1 ? e_body[0] : [ "block", e_body ];
-
-            return statements.slice(0, i).concat([ [
-                fi[0],          // "if"
-                conditional,    // conditional
-                t,              // then
-                e               // else
-            ] ]);
-        }
-
-        return statements;
-    };
-
-    function redo_if_lambda(name, args, body) {
-        body = redo_if(body);
-        return [ this[0], name, args, body ];
-    };
-
-    function redo_if_block(statements) {
-        return [ this[0], statements != null ? redo_if(statements) : null ];
-    };
-
-    return w.with_walkers({
-        "defun": redo_if_lambda,
-        "function": redo_if_lambda,
-        "block": redo_if_block,
-        "splice": redo_if_block,
-        "toplevel": function(statements) {
-            return [ this[0], redo_if(statements) ];
-        },
-        "try": function(t, c, f) {
-            return [
-                this[0],
-                redo_if(t),
-                c != null ? [ c[0], redo_if(c[1]) ] : null,
-                f != null ? redo_if(f) : null
-            ];
-        }
-    }, function() {
-        return walk(ast);
-    });
-};
-
-function for_side_effects(ast, handler) {
-    var w = ast_walker(), walk = w.walk;
-    var $stop = {}, $restart = {};
-    function stop() { throw $stop };
-    function restart() { throw $restart };
-    function found(){ return handler.call(this, this, w, stop, restart) };
-    function unary(op) {
-        if (op == "++" || op == "--")
-            return found.apply(this, arguments);
-    };
-    function binary(op) {
-        if (op == "&&" || op == "||")
-            return found.apply(this, arguments);
-    };
-    return w.with_walkers({
-        "try": found,
-        "throw": found,
-        "return": found,
-        "new": found,
-        "switch": found,
-        "break": found,
-        "continue": found,
-        "assign": found,
-        "call": found,
-        "if": found,
-        "for": found,
-        "for-in": found,
-        "while": found,
-        "do": found,
-        "return": found,
-        "unary-prefix": unary,
-        "unary-postfix": unary,
-        "conditional": found,
-        "binary": binary,
-        "defun": found
-    }, function(){
-        while (true) try {
-            walk(ast);
-            break;
-        } catch(ex) {
-            if (ex === $stop) break;
-            if (ex === $restart) continue;
-            throw ex;
-        }
-    });
-};
-
-function ast_lift_variables(ast) {
-    var w = ast_walker(), walk = w.walk, scope;
-    function do_body(body, env) {
-        var _scope = scope;
-        scope = env;
-        body = MAP(body, walk);
-        var hash = {}, names = MAP(env.names, function(type, name){
-            if (type != "var") return MAP.skip;
-            if (!env.references(name)) return MAP.skip;
-            hash[name] = true;
-            return [ name ];
-        });
-        if (names.length > 0) {
-            // looking for assignments to any of these variables.
-            // we can save considerable space by moving the definitions
-            // in the var declaration.
-            for_side_effects([ "block", body ], function(ast, walker, stop, restart) {
-                if (ast[0] == "assign"
-                    && ast[1] === true
-                    && ast[2][0] == "name"
-                    && HOP(hash, ast[2][1])) {
-                    // insert the definition into the var declaration
-                    for (var i = names.length; --i >= 0;) {
-                        if (names[i][0] == ast[2][1]) {
-                            if (names[i][1]) // this name already defined, we must stop
-                                stop();
-                            names[i][1] = ast[3]; // definition
-                            names.push(names.splice(i, 1)[0]);
-                            break;
-                        }
-                    }
-                    // remove this assignment from the AST.
-                    var p = walker.parent();
-                    if (p[0] == "seq") {
-                        var a = p[2];
-                        a.unshift(0, p.length);
-                        p.splice.apply(p, a);
-                    }
-                    else if (p[0] == "stat") {
-                        p.splice(0, p.length, "block"); // empty statement
-                    }
-                    else {
-                        stop();
-                    }
-                    restart();
-                }
-                stop();
-            });
-            body.unshift([ "var", names ]);
-        }
-        scope = _scope;
-        return body;
-    };
-    function _vardefs(defs) {
-        var ret = null;
-        for (var i = defs.length; --i >= 0;) {
-            var d = defs[i];
-            if (!d[1]) continue;
-            d = [ "assign", true, [ "name", d[0] ], d[1] ];
-            if (ret == null) ret = d;
-            else ret = [ "seq", d, ret ];
-        }
-        if (ret == null && w.parent()[0] != "for") {
-            if (w.parent()[0] == "for-in")
-                return [ "name", defs[0][0] ];
-            return MAP.skip;
-        }
-        return [ "stat", ret ];
-    };
-    function _toplevel(body) {
-        return [ this[0], do_body(body, this.scope) ];
-    };
-    return w.with_walkers({
-        "function": function(name, args, body){
-            for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
-                args.pop();
-            if (!body.scope.references(name)) name = null;
-            return [ this[0], name, args, do_body(body, body.scope) ];
-        },
-        "defun": function(name, args, body){
-            if (!scope.references(name)) return MAP.skip;
-            for (var i = args.length; --i >= 0 && !body.scope.references(args[i]);)
-                args.pop();
-            return [ this[0], name, args, do_body(body, body.scope) ];
-        },
-        "var": _vardefs,
-        "toplevel": _toplevel
-    }, function(){
-        return walk(ast_add_scope(ast));
-    });
-};
-
-function ast_squeeze(ast, options) {
-    ast = squeeze_1(ast, options);
-    ast = squeeze_2(ast, options);
-    return ast;
-};
-
-function squeeze_1(ast, options) {
-    options = defaults(options, {
-        make_seqs   : true,
-        dead_code   : true,
-        no_warnings : false,
-        keep_comps  : true,
-        unsafe      : false
-    });
-
-    var w = ast_walker(), walk = w.walk, scope;
-
-    function negate(c) {
-        var not_c = [ "unary-prefix", "!", c ];
-        switch (c[0]) {
-          case "unary-prefix":
-            return c[1] == "!" && boolean_expr(c[2]) ? c[2] : not_c;
-          case "seq":
-            c = slice(c);
-            c[c.length - 1] = negate(c[c.length - 1]);
-            return c;
-          case "conditional":
-            return best_of(not_c, [ "conditional", c[1], negate(c[2]), negate(c[3]) ]);
-          case "binary":
-            var op = c[1], left = c[2], right = c[3];
-            if (!options.keep_comps) switch (op) {
-              case "<="  : return [ "binary", ">", left, right ];
-              case "<"   : return [ "binary", ">=", left, right ];
-              case ">="  : return [ "binary", "<", left, right ];
-              case ">"   : return [ "binary", "<=", left, right ];
-            }
-            switch (op) {
-              case "=="  : return [ "binary", "!=", left, right ];
-              case "!="  : return [ "binary", "==", left, right ];
-              case "===" : return [ "binary", "!==", left, right ];
-              case "!==" : return [ "binary", "===", left, right ];
-              case "&&"  : return best_of(not_c, [ "binary", "||", negate(left), negate(right) ]);
-              case "||"  : return best_of(not_c, [ "binary", "&&", negate(left), negate(right) ]);
-            }
-            break;
-        }
-        return not_c;
-    };
-
-    function make_conditional(c, t, e) {
-        var make_real_conditional = function() {
-            if (c[0] == "unary-prefix" && c[1] == "!") {
-                return e ? [ "conditional", c[2], e, t ] : [ "binary", "||", c[2], t ];
-            } else {
-                return e ? best_of(
-                    [ "conditional", c, t, e ],
-                    [ "conditional", negate(c), e, t ]
-                ) : [ "binary", "&&", c, t ];
-            }
-        };
-        // shortcut the conditional if the expression has a constant value
-        return when_constant(c, function(ast, val){
-            warn_unreachable(val ? e : t);
-            return          (val ? t : e);
-        }, make_real_conditional);
-    };
-
-    function rmblock(block) {
-        if (block != null && block[0] == "block" && block[1]) {
-            if (block[1].length == 1)
-                block = block[1][0];
-            else if (block[1].length == 0)
-                block = [ "block" ];
-        }
-        return block;
-    };
-
-    function _lambda(name, args, body) {
-        return [ this[0], name, args, tighten(body, "lambda") ];
-    };
-
-    // this function does a few things:
-    // 1. discard useless blocks
-    // 2. join consecutive var declarations
-    // 3. remove obviously dead code
-    // 4. transform consecutive statements using the comma operator
-    // 5. if block_type == "lambda" and it detects constructs like if(foo) return ... - rewrite like if (!foo) { ... }
-    function tighten(statements, block_type) {
-        statements = MAP(statements, walk);
-
-        statements = statements.reduce(function(a, stat){
-            if (stat[0] == "block") {
-                if (stat[1]) {
-                    a.push.apply(a, stat[1]);
-                }
-            } else {
-                a.push(stat);
-            }
-            return a;
-        }, []);
-
-        statements = (function(a, prev){
-            statements.forEach(function(cur){
-                if (prev && ((cur[0] == "var" && prev[0] == "var") ||
-                             (cur[0] == "const" && prev[0] == "const"))) {
-                    prev[1] = prev[1].concat(cur[1]);
-                } else {
-                    a.push(cur);
-                    prev = cur;
-                }
-            });
-            return a;
-        })([]);
-
-        if (options.dead_code) statements = (function(a, has_quit){
-            statements.forEach(function(st){
-                if (has_quit) {
-                    if (st[0] == "function" || st[0] == "defun") {
-                        a.push(st);
-                    }
-                    else if (st[0] == "var" || st[0] == "const") {
-                        if (!options.no_warnings)
-                            warn("Variables declared in unreachable code");
-                        st[1] = MAP(st[1], function(def){
-                            if (def[1] && !options.no_warnings)
-                                warn_unreachable([ "assign", true, [ "name", def[0] ], def[1] ]);
-                            return [ def[0] ];
-                        });
-                        a.push(st);
-                    }
-                    else if (!options.no_warnings)
-                        warn_unreachable(st);
-                }
-                else {
-                    a.push(st);
-                    if (member(st[0], [ "return", "throw", "break", "continue" ]))
-                        has_quit = true;
-                }
-            });
-            return a;
-        })([]);
-
-        if (options.make_seqs) statements = (function(a, prev) {
-            statements.forEach(function(cur){
-                if (prev && prev[0] == "stat" && cur[0] == "stat") {
-                    prev[1] = [ "seq", prev[1], cur[1] ];
-                } else {
-                    a.push(cur);
-                    prev = cur;
-                }
-            });
-            if (a.length >= 2
-                && a[a.length-2][0] == "stat"
-                && (a[a.length-1][0] == "return" || a[a.length-1][0] == "throw")
-                && a[a.length-1][1])
-            {
-                a.splice(a.length - 2, 2,
-                         [ a[a.length-1][0],
-                           [ "seq", a[a.length-2][1], a[a.length-1][1] ]]);
-            }
-            return a;
-        })([]);
-
-        // this increases jQuery by 1K.  Probably not such a good idea after all..
-        // part of this is done in prepare_ifs anyway.
-        // if (block_type == "lambda") statements = (function(i, a, stat){
-        //         while (i < statements.length) {
-        //                 stat = statements[i++];
-        //                 if (stat[0] == "if" && !stat[3]) {
-        //                         if (stat[2][0] == "return" && stat[2][1] == null) {
-        //                                 a.push(make_if(negate(stat[1]), [ "block", statements.slice(i) ]));
-        //                                 break;
-        //                         }
-        //                         var last = last_stat(stat[2]);
-        //                         if (last[0] == "return" && last[1] == null) {
-        //                                 a.push(make_if(stat[1], [ "block", stat[2][1].slice(0, -1) ], [ "block", statements.slice(i) ]));
-        //                                 break;
-        //                         }
-        //                 }
-        //                 a.push(stat);
-        //         }
-        //         return a;
-        // })(0, []);
-
-        return statements;
-    };
-
-    function make_if(c, t, e) {
-        return when_constant(c, function(ast, val){
-            if (val) {
-                t = walk(t);
-                warn_unreachable(e);
-                return t || [ "block" ];
-            } else {
-                e = walk(e);
-                warn_unreachable(t);
-                return e || [ "block" ];
-            }
-        }, function() {
-            return make_real_if(c, t, e);
-        });
-    };
-
-    function abort_else(c, t, e) {
-        var ret = [ [ "if", negate(c), e ] ];
-        if (t[0] == "block") {
-            if (t[1]) ret = ret.concat(t[1]);
-        } else {
-            ret.push(t);
-        }
-        return walk([ "block", ret ]);
-    };
-
-    function make_real_if(c, t, e) {
-        c = walk(c);
-        t = walk(t);
-        e = walk(e);
-
-        if (empty(e) && empty(t))
-            return [ "stat", c ];
-
-        if (empty(t)) {
-            c = negate(c);
-            t = e;
-            e = null;
-        } else if (empty(e)) {
-            e = null;
-        } else {
-            // if we have both else and then, maybe it makes sense to switch them?
-            (function(){
-                var a = gen_code(c);
-                var n = negate(c);
-                var b = gen_code(n);
-                if (b.length < a.length) {
-                    var tmp = t;
-                    t = e;
-                    e = tmp;
-                    c = n;
-                }
-            })();
-        }
-        var ret = [ "if", c, t, e ];
-        if (t[0] == "if" && empty(t[3]) && empty(e)) {
-            ret = best_of(ret, walk([ "if", [ "binary", "&&", c, t[1] ], t[2] ]));
-        }
-        else if (t[0] == "stat") {
-            if (e) {
-                if (e[0] == "stat")
-                    ret = best_of(ret, [ "stat", make_conditional(c, t[1], e[1]) ]);
-                else if (aborts(e))
-                    ret = abort_else(c, t, e);
-            }
-            else {
-                ret = best_of(ret, [ "stat", make_conditional(c, t[1]) ]);
-            }
-        }
-        else if (e && t[0] == e[0] && (t[0] == "return" || t[0] == "throw") && t[1] && e[1]) {
-            ret = best_of(ret, [ t[0], make_conditional(c, t[1], e[1] ) ]);
-        }
-        else if (e && aborts(t)) {
-            ret = [ [ "if", c, t ] ];
-            if (e[0] == "block") {
-                if (e[1]) ret = ret.concat(e[1]);
-            }
-            else {
-                ret.push(e);
-            }
-            ret = walk([ "block", ret ]);
-        }
-        else if (t && aborts(e)) {
-            ret = abort_else(c, t, e);
-        }
-        return ret;
-    };
-
-    function _do_while(cond, body) {
-        return when_constant(cond, function(cond, val){
-            if (!val) {
-                warn_unreachable(body);
-                return [ "block" ];
-            } else {
-                return [ "for", null, null, null, walk(body) ];
-            }
-        });
-    };
-
-    return w.with_walkers({
-        "sub": function(expr, subscript) {
-            if (subscript[0] == "string") {
-                var name = subscript[1];
-                if (is_identifier(name))
-                    return [ "dot", walk(expr), name ];
-                else if (/^[1-9][0-9]*$/.test(name) || name === "0")
-                    return [ "sub", walk(expr), [ "num", parseInt(name, 10) ] ];
-            }
-        },
-        "if": make_if,
-        "toplevel": function(body) {
-            return [ "toplevel", tighten(body) ];
-        },
-        "switch": function(expr, body) {
-            var last = body.length - 1;
-            return [ "switch", walk(expr), MAP(body, function(branch, i){
-                var block = tighten(branch[1]);
-                if (i == last && block.length > 0) {
-                    var node = block[block.length - 1];
-                    if (node[0] == "break" && !node[1])
-                        block.pop();
-                }
-                return [ branch[0] ? walk(branch[0]) : null, block ];
-            }) ];
-        },
-        "function": _lambda,
-        "defun": _lambda,
-        "block": function(body) {
-            if (body) return rmblock([ "block", tighten(body) ]);
-        },
-        "binary": function(op, left, right) {
-            return when_constant([ "binary", op, walk(left), walk(right) ], function yes(c){
-                return best_of(walk(c), this);
-            }, function no() {
-                return function(){
-                    if(op != "==" && op != "!=") return;
-                    var l = walk(left), r = walk(right);
-                    if(l && l[0] == "unary-prefix" && l[1] == "!" && l[2][0] == "num")
-                        left = ['num', +!l[2][1]];
-                    else if (r && r[0] == "unary-prefix" && r[1] == "!" && r[2][0] == "num")
-                        right = ['num', +!r[2][1]];
-                    return ["binary", op, left, right];
-                }() || this;
-            });
-        },
-        "conditional": function(c, t, e) {
-            return make_conditional(walk(c), walk(t), walk(e));
-        },
-        "try": function(t, c, f) {
-            return [
-                "try",
-                tighten(t),
-                c != null ? [ c[0], tighten(c[1]) ] : null,
-                f != null ? tighten(f) : null
-            ];
-        },
-        "unary-prefix": function(op, expr) {
-            expr = walk(expr);
-            var ret = [ "unary-prefix", op, expr ];
-            if (op == "!")
-                ret = best_of(ret, negate(expr));
-            return when_constant(ret, function(ast, val){
-                return walk(ast); // it's either true or false, so minifies to !0 or !1
-            }, function() { return ret });
-        },
-        "name": function(name) {
-            switch (name) {
-              case "true": return [ "unary-prefix", "!", [ "num", 0 ]];
-              case "false": return [ "unary-prefix", "!", [ "num", 1 ]];
-            }
-        },
-        "while": _do_while,
-        "assign": function(op, lvalue, rvalue) {
-            lvalue = walk(lvalue);
-            rvalue = walk(rvalue);
-            var okOps = [ '+', '-', '/', '*', '%', '>>', '<<', '>>>', '|', '^', '&' ];
-            if (op === true && lvalue[0] === "name" && rvalue[0] === "binary" &&
-                ~okOps.indexOf(rvalue[1]) && rvalue[2][0] === "name" &&
-                rvalue[2][1] === lvalue[1]) {
-                return [ this[0], rvalue[1], lvalue, rvalue[3] ]
-            }
-            return [ this[0], op, lvalue, rvalue ];
-        },
-        "call": function(expr, args) {
-            expr = walk(expr);
-            if (options.unsafe && expr[0] == "dot" && expr[1][0] == "string" && expr[2] == "toString") {
-                return expr[1];
-            }
-            return [ this[0], expr,  MAP(args, walk) ];
-        },
-        "num": function (num) {
-            if (!isFinite(num))
-                return [ "binary", "/", num === 1 / 0
-                         ? [ "num", 1 ] : num === -1 / 0
-                         ? [ "unary-prefix", "-", [ "num", 1 ] ]
-                         : [ "num", 0 ], [ "num", 0 ] ];
-
-            return [ this[0], num ];
-        }
-    }, function() {
-        return walk(prepare_ifs(walk(prepare_ifs(ast))));
-    });
-};
-
-function squeeze_2(ast, options) {
-    var w = ast_walker(), walk = w.walk, scope;
-    function with_scope(s, cont) {
-        var save = scope, ret;
-        scope = s;
-        ret = cont();
-        scope = save;
-        return ret;
-    };
-    function lambda(name, args, body) {
-        return [ this[0], name, args, with_scope(body.scope, curry(MAP, body, walk)) ];
-    };
-    return w.with_walkers({
-        "directive": function(dir) {
-            if (scope.active_directive(dir))
-                return [ "block" ];
-            scope.directives.push(dir);
-        },
-        "toplevel": function(body) {
-            return [ this[0], with_scope(this.scope, curry(MAP, body, walk)) ];
-        },
-        "function": lambda,
-        "defun": lambda
-    }, function(){
-        return walk(ast_add_scope(ast));
-    });
-};
-
-/* -----[ re-generate code from the AST ]----- */
-
-var DOT_CALL_NO_PARENS = jsp.array_to_hash([
-    "name",
-    "array",
-    "object",
-    "string",
-    "dot",
-    "sub",
-    "call",
-    "regexp",
-    "defun"
-]);
-
-function make_string(str, ascii_only) {
-    var dq = 0, sq = 0;
-    str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0]/g, function(s){
-        switch (s) {
-          case "\\": return "\\\\";
-          case "\b": return "\\b";
-          case "\f": return "\\f";
-          case "\n": return "\\n";
-          case "\r": return "\\r";
-          case "\u2028": return "\\u2028";
-          case "\u2029": return "\\u2029";
-          case '"': ++dq; return '"';
-          case "'": ++sq; return "'";
-          case "\0": return "\\0";
-        }
-        return s;
-    });
-    if (ascii_only) str = to_ascii(str);
-    if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'";
-    else return '"' + str.replace(/\x22/g, '\\"') + '"';
-};
-
-function to_ascii(str) {
-    return str.replace(/[\u0080-\uffff]/g, function(ch) {
-        var code = ch.charCodeAt(0).toString(16);
-        while (code.length < 4) code = "0" + code;
-        return "\\u" + code;
-    });
-};
-
-var SPLICE_NEEDS_BRACKETS = jsp.array_to_hash([ "if", "while", "do", "for", "for-in", "with" ]);
-
-function gen_code(ast, options) {
-    options = defaults(options, {
-        indent_start : 0,
-        indent_level : 4,
-        quote_keys   : false,
-        space_colon  : false,
-        beautify     : false,
-        ascii_only   : false,
-        inline_script: false
-    });
-    var beautify = !!options.beautify;
-    var indentation = 0,
-    newline = beautify ? "\n" : "",
-    space = beautify ? " " : "";
-
-    function encode_string(str) {
-        var ret = make_string(str, options.ascii_only);
-        if (options.inline_script)
-            ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
-        return ret;
-    };
-
-    function make_name(name) {
-        name = name.toString();
-        if (options.ascii_only)
-            name = to_ascii(name);
-        return name;
-    };
-
-    function indent(line) {
-        if (line == null)
-            line = "";
-        if (beautify)
-            line = repeat_string(" ", options.indent_start + indentation * options.indent_level) + line;
-        return line;
-    };
-
-    function with_indent(cont, incr) {
-        if (incr == null) incr = 1;
-        indentation += incr;
-        try { return cont.apply(null, slice(arguments, 1)); }
-        finally { indentation -= incr; }
-    };
-
-    function last_char(str) {
-        str = str.toString();
-        return str.charAt(str.length - 1);
-    };
-
-    function first_char(str) {
-        return str.toString().charAt(0);
-    };
-
-    function add_spaces(a) {
-        if (beautify)
-            return a.join(" ");
-        var b = [];
-        for (var i = 0; i < a.length; ++i) {
-            var next = a[i + 1];
-            b.push(a[i]);
-            if (next &&
-                ((is_identifier_char(last_char(a[i])) && (is_identifier_char(first_char(next))
-                                                          || first_char(next) == "\\")) ||
-                 (/[\+\-]$/.test(a[i].toString()) && /^[\+\-]/.test(next.toString()) ||
-                 last_char(a[i]) == "/" && first_char(next) == "/"))) {
-                b.push(" ");
-            }
-        }
-        return b.join("");
-    };
-
-    function add_commas(a) {
-        return a.join("," + space);
-    };
-
-    function parenthesize(expr) {
-        var gen = make(expr);
-        for (var i = 1; i < arguments.length; ++i) {
-            var el = arguments[i];
-            if ((el instanceof Function && el(expr)) || expr[0] == el)
-                return "(" + gen + ")";
-        }
-        return gen;
-    };
-
-    function best_of(a) {
-        if (a.length == 1) {
-            return a[0];
-        }
-        if (a.length == 2) {
-            var b = a[1];
-            a = a[0];
-            return a.length <= b.length ? a : b;
-        }
-        return best_of([ a[0], best_of(a.slice(1)) ]);
-    };
-
-    function needs_parens(expr) {
-        if (expr[0] == "function" || expr[0] == "object") {
-            // dot/call on a literal function requires the
-            // function literal itself to be parenthesized
-            // only if it's the first "thing" in a
-            // statement.  This means that the parent is
-            // "stat", but it could also be a "seq" and
-            // we're the first in this "seq" and the
-            // parent is "stat", and so on.  Messy stuff,
-            // but it worths the trouble.
-            var a = slice(w.stack()), self = a.pop(), p = a.pop();
-            while (p) {
-                if (p[0] == "stat") return true;
-                if (((p[0] == "seq" || p[0] == "call" || p[0] == "dot" || p[0] == "sub" || p[0] == "conditional") && p[1] === self) ||
-                    ((p[0] == "binary" || p[0] == "assign" || p[0] == "unary-postfix") && p[2] === self)) {
-                    self = p;
-                    p = a.pop();
-                } else {
-                    return false;
-                }
-            }
-        }
-        return !HOP(DOT_CALL_NO_PARENS, expr[0]);
-    };
-
-    function make_num(num) {
-        var str = num.toString(10), a = [ str.replace(/^0\./, ".").replace('e+', 'e') ], m;
-        if (Math.floor(num) === num) {
-            if (num >= 0) {
-                a.push("0x" + num.toString(16).toLowerCase(), // probably pointless
-                       "0" + num.toString(8)); // same.
-            } else {
-                a.push("-0x" + (-num).toString(16).toLowerCase(), // probably pointless
-                       "-0" + (-num).toString(8)); // same.
-            }
-            if ((m = /^(.*?)(0+)$/.exec(num))) {
-                a.push(m[1] + "e" + m[2].length);
-            }
-        } else if ((m = /^0?\.(0+)(.*)$/.exec(num))) {
-            a.push(m[2] + "e-" + (m[1].length + m[2].length),
-                   str.substr(str.indexOf(".")));
-        }
-        return best_of(a);
-    };
-
-    var w = ast_walker();
-    var make = w.walk;
-    return w.with_walkers({
-        "string": encode_string,
-        "num": make_num,
-        "name": make_name,
-        "debugger": function(){ return "debugger;" },
-        "toplevel": function(statements) {
-            return make_block_statements(statements)
-                .join(newline + newline);
-        },
-        "splice": function(statements) {
-            var parent = w.parent();
-            if (HOP(SPLICE_NEEDS_BRACKETS, parent)) {
-                // we need block brackets in this case
-                return make_block.apply(this, arguments);
-            } else {
-                return MAP(make_block_statements(statements, true),
-                           function(line, i) {
-                               // the first line is already indented
-                               return i > 0 ? indent(line) : line;
-                           }).join(newline);
-            }
-        },
-        "block": make_block,
-        "var": function(defs) {
-            return "var " + add_commas(MAP(defs, make_1vardef)) + ";";
-        },
-        "const": function(defs) {
-            return "const " + add_commas(MAP(defs, make_1vardef)) + ";";
-        },
-        "try": function(tr, ca, fi) {
-            var out = [ "try", make_block(tr) ];
-            if (ca) out.push("catch", "(" + ca[0] + ")", make_block(ca[1]));
-            if (fi) out.push("finally", make_block(fi));
-            return add_spaces(out);
-        },
-        "throw": function(expr) {
-            return add_spaces([ "throw", make(expr) ]) + ";";
-        },
-        "new": function(ctor, args) {
-            args = args.length > 0 ? "(" + add_commas(MAP(args, function(expr){
-                return parenthesize(expr, "seq");
-            })) + ")" : "";
-            return add_spaces([ "new", parenthesize(ctor, "seq", "binary", "conditional", "assign", function(expr){
-                var w = ast_walker(), has_call = {};
-                try {
-                    w.with_walkers({
-                        "call": function() { throw has_call },
-                        "function": function() { return this }
-                    }, function(){
-                        w.walk(expr);
-                    });
-                } catch(ex) {
-                    if (ex === has_call)
-                        return true;
-                    throw ex;
-                }
-            }) + args ]);
-        },
-        "switch": function(expr, body) {
-            return add_spaces([ "switch", "(" + make(expr) + ")", make_switch_block(body) ]);
-        },
-        "break": function(label) {
-            var out = "break";
-            if (label != null)
-                out += " " + make_name(label);
-            return out + ";";
-        },
-        "continue": function(label) {
-            var out = "continue";
-            if (label != null)
-                out += " " + make_name(label);
-            return out + ";";
-        },
-        "conditional": function(co, th, el) {
-            return add_spaces([ parenthesize(co, "assign", "seq", "conditional"), "?",
-                                parenthesize(th, "seq"), ":",
-                                parenthesize(el, "seq") ]);
-        },
-        "assign": function(op, lvalue, rvalue) {
-            if (op && op !== true) op += "=";
-            else op = "=";
-            return add_spaces([ make(lvalue), op, parenthesize(rvalue, "seq") ]);
-        },
-        "dot": function(expr) {
-            var out = make(expr), i = 1;
-            if (expr[0] == "num") {
-                if (!/[a-f.]/i.test(out))
-                    out += ".";
-            } else if (expr[0] != "function" && needs_parens(expr))
-                out = "(" + out + ")";
-            while (i < arguments.length)
-                out += "." + make_name(arguments[i++]);
-            return out;
-        },
-        "call": function(func, args) {
-            var f = make(func);
-            if (f.charAt(0) != "(" && needs_parens(func))
-                f = "(" + f + ")";
-            return f + "(" + add_commas(MAP(args, function(expr){
-                return parenthesize(expr, "seq");
-            })) + ")";
-        },
-        "function": make_function,
-        "defun": make_function,
-        "if": function(co, th, el) {
-            var out = [ "if", "(" + make(co) + ")", el ? make_then(th) : make(th) ];
-            if (el) {
-                out.push("else", make(el));
-            }
-            return add_spaces(out);
-        },
-        "for": function(init, cond, step, block) {
-            var out = [ "for" ];
-            init = (init != null ? make(init) : "").replace(/;*\s*$/, ";" + space);
-            cond = (cond != null ? make(cond) : "").replace(/;*\s*$/, ";" + space);
-            step = (step != null ? make(step) : "").replace(/;*\s*$/, "");
-            var args = init + cond + step;
-            if (args == "; ; ") args = ";;";
-            out.push("(" + args + ")", make(block));
-            return add_spaces(out);
-        },
-        "for-in": function(vvar, key, hash, block) {
-            return add_spaces([ "for", "(" +
-                                (vvar ? make(vvar).replace(/;+$/, "") : make(key)),
-                                "in",
-                                make(hash) + ")", make(block) ]);
-        },
-        "while": function(condition, block) {
-            return add_spaces([ "while", "(" + make(condition) + ")", make(block) ]);
-        },
-        "do": function(condition, block) {
-            return add_spaces([ "do", make(block), "while", "(" + make(condition) + ")" ]) + ";";
-        },
-        "return": function(expr) {
-            var out = [ "return" ];
-            if (expr != null) out.push(make(expr));
-            return add_spaces(out) + ";";
-        },
-        "binary": function(operator, lvalue, rvalue) {
-            var left = make(lvalue), right = make(rvalue);
-            // XXX: I'm pretty sure other cases will bite here.
-            //      we need to be smarter.
-            //      adding parens all the time is the safest bet.
-            if (member(lvalue[0], [ "assign", "conditional", "seq" ]) ||
-                lvalue[0] == "binary" && PRECEDENCE[operator] > PRECEDENCE[lvalue[1]] ||
-                lvalue[0] == "function" && needs_parens(this)) {
-                left = "(" + left + ")";
-            }
-            if (member(rvalue[0], [ "assign", "conditional", "seq" ]) ||
-                rvalue[0] == "binary" && PRECEDENCE[operator] >= PRECEDENCE[rvalue[1]] &&
-                !(rvalue[1] == operator && member(operator, [ "&&", "||", "*" ]))) {
-                right = "(" + right + ")";
-            }
-            else if (!beautify && options.inline_script && (operator == "<" || operator == "<<")
-                     && rvalue[0] == "regexp" && /^script/i.test(rvalue[1])) {
-                right = " " + right;
-            }
-            return add_spaces([ left, operator, right ]);
-        },
-        "unary-prefix": function(operator, expr) {
-            var val = make(expr);
-            if (!(expr[0] == "num" || (expr[0] == "unary-prefix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
-                val = "(" + val + ")";
-            return operator + (jsp.is_alphanumeric_char(operator.charAt(0)) ? " " : "") + val;
-        },
-        "unary-postfix": function(operator, expr) {
-            var val = make(expr);
-            if (!(expr[0] == "num" || (expr[0] == "unary-postfix" && !HOP(OPERATORS, operator + expr[1])) || !needs_parens(expr)))
-                val = "(" + val + ")";
-            return val + operator;
-        },
-        "sub": function(expr, subscript) {
-            var hash = make(expr);
-            if (needs_parens(expr))
-                hash = "(" + hash + ")";
-            return hash + "[" + make(subscript) + "]";
-        },
-        "object": function(props) {
-            var obj_needs_parens = needs_parens(this);
-            if (props.length == 0)
-                return obj_needs_parens ? "({})" : "{}";
-            var out = "{" + newline + with_indent(function(){
-                return MAP(props, function(p){
-                    if (p.length == 3) {
-                        // getter/setter.  The name is in p[0], the arg.list in p[1][2], the
-                        // body in p[1][3] and type ("get" / "set") in p[2].
-                        return indent(make_function(p[0], p[1][2], p[1][3], p[2], true));
-                    }
-                    var key = p[0], val = parenthesize(p[1], "seq");
-                    if (options.quote_keys) {
-                        key = encode_string(key);
-                    } else if ((typeof key == "number" || !beautify && +key + "" == key)
-                               && parseFloat(key) >= 0) {
-                        key = make_num(+key);
-                    } else if (!is_identifier(key)) {
-                        key = encode_string(key);
-                    }
-                    return indent(add_spaces(beautify && options.space_colon
-                                             ? [ key, ":", val ]
-                                             : [ key + ":", val ]));
-                }).join("," + newline);
-            }) + newline + indent("}");
-            return obj_needs_parens ? "(" + out + ")" : out;
-        },
-        "regexp": function(rx, mods) {
-            if (options.ascii_only) rx = to_ascii(rx);
-            return "/" + rx + "/" + mods;
-        },
-        "array": function(elements) {
-            if (elements.length == 0) return "[]";
-            return add_spaces([ "[", add_commas(MAP(elements, function(el, i){
-                if (!beautify && el[0] == "atom" && el[1] == "undefined") return i === elements.length - 1 ? "," : "";
-                return parenthesize(el, "seq");
-            })), "]" ]);
-        },
-        "stat": function(stmt) {
-            return stmt != null
-                ? make(stmt).replace(/;*\s*$/, ";")
-                : ";";
-        },
-        "seq": function() {
-            return add_commas(MAP(slice(arguments), make));
-        },
-        "label": function(name, block) {
-            return add_spaces([ make_name(name), ":", make(block) ]);
-        },
-        "with": function(expr, block) {
-            return add_spaces([ "with", "(" + make(expr) + ")", make(block) ]);
-        },
-        "atom": function(name) {
-            return make_name(name);
-        },
-        "directive": function(dir) {
-            return make_string(dir) + ";";
-        }
-    }, function(){ return make(ast) });
-
-    // The squeezer replaces "block"-s that contain only a single
-    // statement with the statement itself; technically, the AST
-    // is correct, but this can create problems when we output an
-    // IF having an ELSE clause where the THEN clause ends in an
-    // IF *without* an ELSE block (then the outer ELSE would refer
-    // to the inner IF).  This function checks for this case and
-    // adds the block brackets if needed.
-    function make_then(th) {
-        if (th == null) return ";";
-        if (th[0] == "do") {
-            // https://github.com/mishoo/UglifyJS/issues/#issue/57
-            // IE croaks with "syntax error" on code like this:
-            //     if (foo) do ... while(cond); else ...
-            // we need block brackets around do/while
-            return make_block([ th ]);
-        }
-        var b = th;
-        while (true) {
-            var type = b[0];
-            if (type == "if") {
-                if (!b[3])
-                    // no else, we must add the block
-                    return make([ "block", [ th ]]);
-                b = b[3];
-            }
-            else if (type == "while" || type == "do") b = b[2];
-            else if (type == "for" || type == "for-in") b = b[4];
-            else break;
-        }
-        return make(th);
-    };
-
-    function make_function(name, args, body, keyword, no_parens) {
-        var out = keyword || "function";
-        if (name) {
-            out += " " + make_name(name);
-        }
-        out += "(" + add_commas(MAP(args, make_name)) + ")";
-        out = add_spaces([ out, make_block(body) ]);
-        return (!no_parens && needs_parens(this)) ? "(" + out + ")" : out;
-    };
-
-    function must_has_semicolon(node) {
-        switch (node[0]) {
-          case "with":
-          case "while":
-            return empty(node[2]) || must_has_semicolon(node[2]);
-          case "for":
-          case "for-in":
-            return empty(node[4]) || must_has_semicolon(node[4]);
-          case "if":
-            if (empty(node[2]) && !node[3]) return true; // `if' with empty `then' and no `else'
-            if (node[3]) {
-                if (empty(node[3])) return true; // `else' present but empty
-                return must_has_semicolon(node[3]); // dive into the `else' branch
-            }
-            return must_has_semicolon(node[2]); // dive into the `then' branch
-          case "directive":
-            return true;
-        }
-    };
-
-    function make_block_statements(statements, noindent) {
-        for (var a = [], last = statements.length - 1, i = 0; i <= last; ++i) {
-            var stat = statements[i];
-            var code = make(stat);
-            if (code != ";") {
-                if (!beautify && i == last && !must_has_semicolon(stat)) {
-                    code = code.replace(/;+\s*$/, "");
-                }
-                a.push(code);
-            }
-        }
-        return noindent ? a : MAP(a, indent);
-    };
-
-    function make_switch_block(body) {
-        var n = body.length;
-        if (n == 0) return "{}";
-        return "{" + newline + MAP(body, function(branch, i){
-            var has_body = branch[1].length > 0, code = with_indent(function(){
-                return indent(branch[0]
-                              ? add_spaces([ "case", make(branch[0]) + ":" ])
-                              : "default:");
-            }, 0.5) + (has_body ? newline + with_indent(function(){
-                return make_block_statements(branch[1]).join(newline);
-            }) : "");
-            if (!beautify && has_body && i < n - 1)
-                code += ";";
-            return code;
-        }).join(newline) + newline + indent("}");
-    };
-
-    function make_block(statements) {
-        if (!statements) return ";";
-        if (statements.length == 0) return "{}";
-        return "{" + newline + with_indent(function(){
-            return make_block_statements(statements).join(newline);
-        }) + newline + indent("}");
-    };
-
-    function make_1vardef(def) {
-        var name = def[0], val = def[1];
-        if (val != null)
-            name = add_spaces([ make_name(name), "=", parenthesize(val, "seq") ]);
-        return name;
-    };
-
-};
-
-function split_lines(code, max_line_length) {
-    var splits = [ 0 ];
-    jsp.parse(function(){
-        var next_token = jsp.tokenizer(code);
-        var last_split = 0;
-        var prev_token;
-        function current_length(tok) {
-            return tok.pos - last_split;
-        };
-        function split_here(tok) {
-            last_split = tok.pos;
-            splits.push(last_split);
-        };
-        function custom(){
-            var tok = next_token.apply(this, arguments);
-            out: {
-                if (prev_token) {
-                    if (prev_token.type == "keyword") break out;
-                }
-                if (current_length(tok) > max_line_length) {
-                    switch (tok.type) {
-                      case "keyword":
-                      case "atom":
-                      case "name":
-                      case "punc":
-                        split_here(tok);
-                        break out;
-                    }
-                }
-            }
-            prev_token = tok;
-            return tok;
-        };
-        custom.context = function() {
-            return next_token.context.apply(this, arguments);
-        };
-        return custom;
-    }());
-    return splits.map(function(pos, i){
-        return code.substring(pos, splits[i + 1] || code.length);
-    }).join("\n");
-};
-
-/* -----[ Utilities ]----- */
-
-function repeat_string(str, i) {
-    if (i <= 0) return "";
-    if (i == 1) return str;
-    var d = repeat_string(str, i >> 1);
-    d += d;
-    if (i & 1) d += str;
-    return d;
-};
-
-function defaults(args, defs) {
-    var ret = {};
-    if (args === true)
-        args = {};
-    for (var i in defs) if (HOP(defs, i)) {
-        ret[i] = (args && HOP(args, i)) ? args[i] : defs[i];
-    }
-    return ret;
-};
-
-function is_identifier(name) {
-    return /^[a-z_$][a-z0-9_$]*$/i.test(name)
-        && name != "this"
-        && !HOP(jsp.KEYWORDS_ATOM, name)
-        && !HOP(jsp.RESERVED_WORDS, name)
-        && !HOP(jsp.KEYWORDS, name);
-};
-
-function HOP(obj, prop) {
-    return Object.prototype.hasOwnProperty.call(obj, prop);
-};
-
-// some utilities
-
-var MAP;
-
-(function(){
-    MAP = function(a, f, o) {
-        var ret = [], top = [], i;
-        function doit() {
-            var val = f.call(o, a[i], i);
-            if (val instanceof AtTop) {
-                val = val.v;
-                if (val instanceof Splice) {
-                    top.push.apply(top, val.v);
-                } else {
-                    top.push(val);
-                }
-            }
-            else if (val != skip) {
-                if (val instanceof Splice) {
-                    ret.push.apply(ret, val.v);
-                } else {
-                    ret.push(val);
-                }
-            }
-        };
-        if (a instanceof Array) for (i = 0; i < a.length; ++i) doit();
-        else for (i in a) if (HOP(a, i)) doit();
-        return top.concat(ret);
-    };
-    MAP.at_top = function(val) { return new AtTop(val) };
-    MAP.splice = function(val) { return new Splice(val) };
-    var skip = MAP.skip = {};
-    function AtTop(val) { this.v = val };
-    function Splice(val) { this.v = val };
-})();
-
-/* -----[ Exports ]----- */
-
-exports.ast_walker = ast_walker;
-exports.ast_mangle = ast_mangle;
-exports.ast_squeeze = ast_squeeze;
-exports.ast_lift_variables = ast_lift_variables;
-exports.gen_code = gen_code;
-exports.ast_add_scope = ast_add_scope;
-exports.set_logger = function(logger) { warn = logger };
-exports.make_string = make_string;
-exports.split_lines = split_lines;
-exports.MAP = MAP;
-
-// keep this last!
-exports.ast_squeeze_more = require("./squeeze-more").ast_squeeze_more;
-
-// Local variables:
-// js-indent-level: 4
-// End:
-});
-define('uglifyjs/index', ["require", "exports", "module", "./parse-js", "./process", "./consolidator"], function(require, exports, module) {
-//convienence function(src, [options]);
-function uglify(orig_code, options){
-  options || (options = {});
-  var jsp = uglify.parser;
-  var pro = uglify.uglify;
-
-  var ast = jsp.parse(orig_code, options.strict_semicolons); // parse code and get the initial AST
-  ast = pro.ast_mangle(ast, options.mangle_options); // get a new AST with mangled names
-  ast = pro.ast_squeeze(ast, options.squeeze_options); // get an AST with compression optimizations
-  var final_code = pro.gen_code(ast, options.gen_options); // compressed code here
-  return final_code;
-};
-
-uglify.parser = require("./parse-js");
-uglify.uglify = require("./process");
-uglify.consolidator = require("./consolidator");
-
-module.exports = uglify
-});/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/array-set', function (require, exports, module) {
-
-  var util = require('./util');
-
-  /**
-   * A data structure which is a combination of an array and a set. Adding a new
-   * member is O(1), testing for membership is O(1), and finding the index of an
-   * element is O(1). Removing elements from the set is not supported. Only
-   * strings are supported for membership.
-   */
-  function ArraySet() {
-    this._array = [];
-    this._set = {};
-  }
-
-  /**
-   * Static method for creating ArraySet instances from an existing array.
-   */
-  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
-    var set = new ArraySet();
-    for (var i = 0, len = aArray.length; i < len; i++) {
-      set.add(aArray[i], aAllowDuplicates);
-    }
-    return set;
-  };
-
-  /**
-   * Add the given string to this set.
-   *
-   * @param String aStr
-   */
-  ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
-    var isDuplicate = this.has(aStr);
-    var idx = this._array.length;
-    if (!isDuplicate || aAllowDuplicates) {
-      this._array.push(aStr);
-    }
-    if (!isDuplicate) {
-      this._set[util.toSetString(aStr)] = idx;
-    }
-  };
-
-  /**
-   * Is the given string a member of this set?
-   *
-   * @param String aStr
-   */
-  ArraySet.prototype.has = function ArraySet_has(aStr) {
-    return Object.prototype.hasOwnProperty.call(this._set,
-                                                util.toSetString(aStr));
-  };
-
-  /**
-   * What is the index of the given string in the array?
-   *
-   * @param String aStr
-   */
-  ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
-    if (this.has(aStr)) {
-      return this._set[util.toSetString(aStr)];
-    }
-    throw new Error('"' + aStr + '" is not in the set.');
-  };
-
-  /**
-   * What is the element at the given index?
-   *
-   * @param Number aIdx
-   */
-  ArraySet.prototype.at = function ArraySet_at(aIdx) {
-    if (aIdx >= 0 && aIdx < this._array.length) {
-      return this._array[aIdx];
-    }
-    throw new Error('No element indexed by ' + aIdx);
-  };
-
-  /**
-   * Returns the array representation of this set (which has the proper indices
-   * indicated by indexOf). Note that this is a copy of the internal array used
-   * for storing the members so that no one can mess with internal state.
-   */
-  ArraySet.prototype.toArray = function ArraySet_toArray() {
-    return this._array.slice();
-  };
-
-  exports.ArraySet = ArraySet;
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * Based on the Base 64 VLQ implementation in Closure Compiler:
- * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
- *
- * Copyright 2011 The Closure Compiler Authors. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- *  * Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *  * Redistributions in binary form must reproduce the above
- *    copyright notice, this list of conditions and the following
- *    disclaimer in the documentation and/or other materials provided
- *    with the distribution.
- *  * Neither the name of Google Inc. nor the names of its
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-define('source-map/base64-vlq', function (require, exports, module) {
-
-  var base64 = require('./base64');
-
-  // A single base 64 digit can contain 6 bits of data. For the base 64 variable
-  // length quantities we use in the source map spec, the first bit is the sign,
-  // the next four bits are the actual value, and the 6th bit is the
-  // continuation bit. The continuation bit tells us whether there are more
-  // digits in this value following this digit.
-  //
-  //   Continuation
-  //   |    Sign
-  //   |    |
-  //   V    V
-  //   101011
-
-  var VLQ_BASE_SHIFT = 5;
-
-  // binary: 100000
-  var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
-
-  // binary: 011111
-  var VLQ_BASE_MASK = VLQ_BASE - 1;
-
-  // binary: 100000
-  var VLQ_CONTINUATION_BIT = VLQ_BASE;
-
-  /**
-   * Converts from a two-complement value to a value where the sign bit is
-   * is placed in the least significant bit.  For example, as decimals:
-   *   1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
-   *   2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
-   */
-  function toVLQSigned(aValue) {
-    return aValue < 0
-      ? ((-aValue) << 1) + 1
-      : (aValue << 1) + 0;
-  }
-
-  /**
-   * Converts to a two-complement value from a value where the sign bit is
-   * is placed in the least significant bit.  For example, as decimals:
-   *   2 (10 binary) becomes 1, 3 (11 binary) becomes -1
-   *   4 (100 binary) becomes 2, 5 (101 binary) becomes -2
-   */
-  function fromVLQSigned(aValue) {
-    var isNegative = (aValue & 1) === 1;
-    var shifted = aValue >> 1;
-    return isNegative
-      ? -shifted
-      : shifted;
-  }
-
-  /**
-   * Returns the base 64 VLQ encoded value.
-   */
-  exports.encode = function base64VLQ_encode(aValue) {
-    var encoded = "";
-    var digit;
-
-    var vlq = toVLQSigned(aValue);
-
-    do {
-      digit = vlq & VLQ_BASE_MASK;
-      vlq >>>= VLQ_BASE_SHIFT;
-      if (vlq > 0) {
-        // There are still more digits in this value, so we must make sure the
-        // continuation bit is marked.
-        digit |= VLQ_CONTINUATION_BIT;
-      }
-      encoded += base64.encode(digit);
-    } while (vlq > 0);
-
-    return encoded;
-  };
-
-  /**
-   * Decodes the next base 64 VLQ value from the given string and returns the
-   * value and the rest of the string.
-   */
-  exports.decode = function base64VLQ_decode(aStr) {
-    var i = 0;
-    var strLen = aStr.length;
-    var result = 0;
-    var shift = 0;
-    var continuation, digit;
-
-    do {
-      if (i >= strLen) {
-        throw new Error("Expected more digits in base 64 VLQ value.");
-      }
-      digit = base64.decode(aStr.charAt(i++));
-      continuation = !!(digit & VLQ_CONTINUATION_BIT);
-      digit &= VLQ_BASE_MASK;
-      result = result + (digit << shift);
-      shift += VLQ_BASE_SHIFT;
-    } while (continuation);
-
-    return {
-      value: fromVLQSigned(result),
-      rest: aStr.slice(i)
-    };
-  };
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/base64', function (require, exports, module) {
-
-  var charToIntMap = {};
-  var intToCharMap = {};
-
-  'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
-    .split('')
-    .forEach(function (ch, index) {
-      charToIntMap[ch] = index;
-      intToCharMap[index] = ch;
-    });
-
-  /**
-   * Encode an integer in the range of 0 to 63 to a single base 64 digit.
-   */
-  exports.encode = function base64_encode(aNumber) {
-    if (aNumber in intToCharMap) {
-      return intToCharMap[aNumber];
-    }
-    throw new TypeError("Must be between 0 and 63: " + aNumber);
-  };
-
-  /**
-   * Decode a single base 64 digit to an integer.
-   */
-  exports.decode = function base64_decode(aChar) {
-    if (aChar in charToIntMap) {
-      return charToIntMap[aChar];
-    }
-    throw new TypeError("Not a valid base 64 digit: " + aChar);
-  };
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/binary-search', function (require, exports, module) {
-
-  /**
-   * Recursive implementation of binary search.
-   *
-   * @param aLow Indices here and lower do not contain the needle.
-   * @param aHigh Indices here and higher do not contain the needle.
-   * @param aNeedle The element being searched for.
-   * @param aHaystack The non-empty array being searched.
-   * @param aCompare Function which takes two elements and returns -1, 0, or 1.
-   */
-  function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare) {
-    // This function terminates when one of the following is true:
-    //
-    //   1. We find the exact element we are looking for.
-    //
-    //   2. We did not find the exact element, but we can return the next
-    //      closest element that is less than that element.
-    //
-    //   3. We did not find the exact element, and there is no next-closest
-    //      element which is less than the one we are searching for, so we
-    //      return null.
-    var mid = Math.floor((aHigh - aLow) / 2) + aLow;
-    var cmp = aCompare(aNeedle, aHaystack[mid], true);
-    if (cmp === 0) {
-      // Found the element we are looking for.
-      return aHaystack[mid];
-    }
-    else if (cmp > 0) {
-      // aHaystack[mid] is greater than our needle.
-      if (aHigh - mid > 1) {
-        // The element is in the upper half.
-        return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare);
-      }
-      // We did not find an exact match, return the next closest one
-      // (termination case 2).
-      return aHaystack[mid];
-    }
-    else {
-      // aHaystack[mid] is less than our needle.
-      if (mid - aLow > 1) {
-        // The element is in the lower half.
-        return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare);
-      }
-      // The exact needle element was not found in this haystack. Determine if
-      // we are in termination case (2) or (3) and return the appropriate thing.
-      return aLow < 0
-        ? null
-        : aHaystack[aLow];
-    }
-  }
-
-  /**
-   * This is an implementation of binary search which will always try and return
-   * the next lowest value checked if there is no exact hit. This is because
-   * mappings between original and generated line/col pairs are single points,
-   * and there is an implicit region between each of them, so a miss just means
-   * that you aren't on the very start of a region.
-   *
-   * @param aNeedle The element you are looking for.
-   * @param aHaystack The array that is being searched.
-   * @param aCompare A function which takes the needle and an element in the
-   *     array and returns -1, 0, or 1 depending on whether the needle is less
-   *     than, equal to, or greater than the element, respectively.
-   */
-  exports.search = function search(aNeedle, aHaystack, aCompare) {
-    return aHaystack.length > 0
-      ? recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare)
-      : null;
-  };
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/source-map-consumer', function (require, exports, module) {
-
-  var util = require('./util');
-  var binarySearch = require('./binary-search');
-  var ArraySet = require('./array-set').ArraySet;
-  var base64VLQ = require('./base64-vlq');
-
-  /**
-   * A SourceMapConsumer instance represents a parsed source map which we can
-   * query for information about the original file positions by giving it a file
-   * position in the generated source.
-   *
-   * The only parameter is the raw source map (either as a JSON string, or
-   * already parsed to an object). According to the spec, source maps have the
-   * following attributes:
-   *
-   *   - version: Which version of the source map spec this map is following.
-   *   - sources: An array of URLs to the original source files.
-   *   - names: An array of identifiers which can be referrenced by individual mappings.
-   *   - sourceRoot: Optional. The URL root from which all sources are relative.
-   *   - sourcesContent: Optional. An array of contents of the original source files.
-   *   - mappings: A string of base64 VLQs which contain the actual mappings.
-   *   - file: The generated file this source map is associated with.
-   *
-   * Here is an example source map, taken from the source map spec[0]:
-   *
-   *     {
-   *       version : 3,
-   *       file: "out.js",
-   *       sourceRoot : "",
-   *       sources: ["foo.js", "bar.js"],
-   *       names: ["src", "maps", "are", "fun"],
-   *       mappings: "AA,AB;;ABCDE;"
-   *     }
-   *
-   * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
-   */
-  function SourceMapConsumer(aSourceMap) {
-    var sourceMap = aSourceMap;
-    if (typeof aSourceMap === 'string') {
-      sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
-    }
-
-    var version = util.getArg(sourceMap, 'version');
-    var sources = util.getArg(sourceMap, 'sources');
-    // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
-    // requires the array) to play nice here.
-    var names = util.getArg(sourceMap, 'names', []);
-    var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
-    var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
-    var mappings = util.getArg(sourceMap, 'mappings');
-    var file = util.getArg(sourceMap, 'file', null);
-
-    // Once again, Sass deviates from the spec and supplies the version as a
-    // string rather than a number, so we use loose equality checking here.
-    if (version != this._version) {
-      throw new Error('Unsupported version: ' + version);
-    }
-
-    // Pass `true` below to allow duplicate names and sources. While source maps
-    // are intended to be compressed and deduplicated, the TypeScript compiler
-    // sometimes generates source maps with duplicates in them. See Github issue
-    // #72 and bugzil.la/889492.
-    this._names = ArraySet.fromArray(names, true);
-    this._sources = ArraySet.fromArray(sources, true);
-
-    this.sourceRoot = sourceRoot;
-    this.sourcesContent = sourcesContent;
-    this._mappings = mappings;
-    this.file = file;
-  }
-
-  /**
-   * Create a SourceMapConsumer from a SourceMapGenerator.
-   *
-   * @param SourceMapGenerator aSourceMap
-   *        The source map that will be consumed.
-   * @returns SourceMapConsumer
-   */
-  SourceMapConsumer.fromSourceMap =
-    function SourceMapConsumer_fromSourceMap(aSourceMap) {
-      var smc = Object.create(SourceMapConsumer.prototype);
-
-      smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
-      smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
-      smc.sourceRoot = aSourceMap._sourceRoot;
-      smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
-                                                              smc.sourceRoot);
-      smc.file = aSourceMap._file;
-
-      smc.__generatedMappings = aSourceMap._mappings.slice()
-        .sort(util.compareByGeneratedPositions);
-      smc.__originalMappings = aSourceMap._mappings.slice()
-        .sort(util.compareByOriginalPositions);
-
-      return smc;
-    };
-
-  /**
-   * The version of the source mapping spec that we are consuming.
-   */
-  SourceMapConsumer.prototype._version = 3;
-
-  /**
-   * The list of original sources.
-   */
-  Object.defineProperty(SourceMapConsumer.prototype, 'sources', {
-    get: function () {
-      return this._sources.toArray().map(function (s) {
-        return this.sourceRoot ? util.join(this.sourceRoot, s) : s;
-      }, this);
-    }
-  });
-
-  // `__generatedMappings` and `__originalMappings` are arrays that hold the
-  // parsed mapping coordinates from the source map's "mappings" attribute. They
-  // are lazily instantiated, accessed via the `_generatedMappings` and
-  // `_originalMappings` getters respectively, and we only parse the mappings
-  // and create these arrays once queried for a source location. We jump through
-  // these hoops because there can be many thousands of mappings, and parsing
-  // them is expensive, so we only want to do it if we must.
-  //
-  // Each object in the arrays is of the form:
-  //
-  //     {
-  //       generatedLine: The line number in the generated code,
-  //       generatedColumn: The column number in the generated code,
-  //       source: The path to the original source file that generated this
-  //               chunk of code,
-  //       originalLine: The line number in the original source that
-  //                     corresponds to this chunk of generated code,
-  //       originalColumn: The column number in the original source that
-  //                       corresponds to this chunk of generated code,
-  //       name: The name of the original symbol which generated this chunk of
-  //             code.
-  //     }
-  //
-  // All properties except for `generatedLine` and `generatedColumn` can be
-  // `null`.
-  //
-  // `_generatedMappings` is ordered by the generated positions.
-  //
-  // `_originalMappings` is ordered by the original positions.
-
-  SourceMapConsumer.prototype.__generatedMappings = null;
-  Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
-    get: function () {
-      if (!this.__generatedMappings) {
-        this.__generatedMappings = [];
-        this.__originalMappings = [];
-        this._parseMappings(this._mappings, this.sourceRoot);
-      }
-
-      return this.__generatedMappings;
-    }
-  });
-
-  SourceMapConsumer.prototype.__originalMappings = null;
-  Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
-    get: function () {
-      if (!this.__originalMappings) {
-        this.__generatedMappings = [];
-        this.__originalMappings = [];
-        this._parseMappings(this._mappings, this.sourceRoot);
-      }
-
-      return this.__originalMappings;
-    }
-  });
-
-  /**
-   * Parse the mappings in a string in to a data structure which we can easily
-   * query (the ordered arrays in the `this.__generatedMappings` and
-   * `this.__originalMappings` properties).
-   */
-  SourceMapConsumer.prototype._parseMappings =
-    function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
-      var generatedLine = 1;
-      var previousGeneratedColumn = 0;
-      var previousOriginalLine = 0;
-      var previousOriginalColumn = 0;
-      var previousSource = 0;
-      var previousName = 0;
-      var mappingSeparator = /^[,;]/;
-      var str = aStr;
-      var mapping;
-      var temp;
-
-      while (str.length > 0) {
-        if (str.charAt(0) === ';') {
-          generatedLine++;
-          str = str.slice(1);
-          previousGeneratedColumn = 0;
-        }
-        else if (str.charAt(0) === ',') {
-          str = str.slice(1);
-        }
-        else {
-          mapping = {};
-          mapping.generatedLine = generatedLine;
-
-          // Generated column.
-          temp = base64VLQ.decode(str);
-          mapping.generatedColumn = previousGeneratedColumn + temp.value;
-          previousGeneratedColumn = mapping.generatedColumn;
-          str = temp.rest;
-
-          if (str.length > 0 && !mappingSeparator.test(str.charAt(0))) {
-            // Original source.
-            temp = base64VLQ.decode(str);
-            mapping.source = this._sources.at(previousSource + temp.value);
-            previousSource += temp.value;
-            str = temp.rest;
-            if (str.length === 0 || mappingSeparator.test(str.charAt(0))) {
-              throw new Error('Found a source, but no line and column');
-            }
-
-            // Original line.
-            temp = base64VLQ.decode(str);
-            mapping.originalLine = previousOriginalLine + temp.value;
-            previousOriginalLine = mapping.originalLine;
-            // Lines are stored 0-based
-            mapping.originalLine += 1;
-            str = temp.rest;
-            if (str.length === 0 || mappingSeparator.test(str.charAt(0))) {
-              throw new Error('Found a source and line, but no column');
-            }
-
-            // Original column.
-            temp = base64VLQ.decode(str);
-            mapping.originalColumn = previousOriginalColumn + temp.value;
-            previousOriginalColumn = mapping.originalColumn;
-            str = temp.rest;
-
-            if (str.length > 0 && !mappingSeparator.test(str.charAt(0))) {
-              // Original name.
-              temp = base64VLQ.decode(str);
-              mapping.name = this._names.at(previousName + temp.value);
-              previousName += temp.value;
-              str = temp.rest;
-            }
-          }
-
-          this.__generatedMappings.push(mapping);
-          if (typeof mapping.originalLine === 'number') {
-            this.__originalMappings.push(mapping);
-          }
-        }
-      }
-
-      this.__generatedMappings.sort(util.compareByGeneratedPositions);
-      this.__originalMappings.sort(util.compareByOriginalPositions);
-    };
-
-  /**
-   * Find the mapping that best matches the hypothetical "needle" mapping that
-   * we are searching for in the given "haystack" of mappings.
-   */
-  SourceMapConsumer.prototype._findMapping =
-    function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
-                                           aColumnName, aComparator) {
-      // To return the position we are searching for, we must first find the
-      // mapping for the given position and then return the opposite position it
-      // points to. Because the mappings are sorted, we can use binary search to
-      // find the best mapping.
-
-      if (aNeedle[aLineName] <= 0) {
-        throw new TypeError('Line must be greater than or equal to 1, got '
-                            + aNeedle[aLineName]);
-      }
-      if (aNeedle[aColumnName] < 0) {
-        throw new TypeError('Column must be greater than or equal to 0, got '
-                            + aNeedle[aColumnName]);
-      }
-
-      return binarySearch.search(aNeedle, aMappings, aComparator);
-    };
-
-  /**
-   * Returns the original source, line, and column information for the generated
-   * source's line and column positions provided. The only argument is an object
-   * with the following properties:
-   *
-   *   - line: The line number in the generated source.
-   *   - column: The column number in the generated source.
-   *
-   * and an object is returned with the following properties:
-   *
-   *   - source: The original source file, or null.
-   *   - line: The line number in the original source, or null.
-   *   - column: The column number in the original source, or null.
-   *   - name: The original identifier, or null.
-   */
-  SourceMapConsumer.prototype.originalPositionFor =
-    function SourceMapConsumer_originalPositionFor(aArgs) {
-      var needle = {
-        generatedLine: util.getArg(aArgs, 'line'),
-        generatedColumn: util.getArg(aArgs, 'column')
-      };
-
-      var mapping = this._findMapping(needle,
-                                      this._generatedMappings,
-                                      "generatedLine",
-                                      "generatedColumn",
-                                      util.compareByGeneratedPositions);
-
-      if (mapping) {
-        var source = util.getArg(mapping, 'source', null);
-        if (source && this.sourceRoot) {
-          source = util.join(this.sourceRoot, source);
-        }
-        return {
-          source: source,
-          line: util.getArg(mapping, 'originalLine', null),
-          column: util.getArg(mapping, 'originalColumn', null),
-          name: util.getArg(mapping, 'name', null)
-        };
-      }
-
-      return {
-        source: null,
-        line: null,
-        column: null,
-        name: null
-      };
-    };
-
-  /**
-   * Returns the original source content. The only argument is the url of the
-   * original source file. Returns null if no original source content is
-   * availible.
-   */
-  SourceMapConsumer.prototype.sourceContentFor =
-    function SourceMapConsumer_sourceContentFor(aSource) {
-      if (!this.sourcesContent) {
-        return null;
-      }
-
-      if (this.sourceRoot) {
-        aSource = util.relative(this.sourceRoot, aSource);
-      }
-
-      if (this._sources.has(aSource)) {
-        return this.sourcesContent[this._sources.indexOf(aSource)];
-      }
-
-      var url;
-      if (this.sourceRoot
-          && (url = util.urlParse(this.sourceRoot))) {
-        // XXX: file:// URIs and absolute paths lead to unexpected behavior for
-        // many users. We can help them out when they expect file:// URIs to
-        // behave like it would if they were running a local HTTP server. See
-        // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
-        var fileUriAbsPath = aSource.replace(/^file:\/\//, "");
-        if (url.scheme == "file"
-            && this._sources.has(fileUriAbsPath)) {
-          return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
-        }
-
-        if ((!url.path || url.path == "/")
-            && this._sources.has("/" + aSource)) {
-          return this.sourcesContent[this._sources.indexOf("/" + aSource)];
-        }
-      }
-
-      throw new Error('"' + aSource + '" is not in the SourceMap.');
-    };
-
-  /**
-   * Returns the generated line and column information for the original source,
-   * line, and column positions provided. The only argument is an object with
-   * the following properties:
-   *
-   *   - source: The filename of the original source.
-   *   - line: The line number in the original source.
-   *   - column: The column number in the original source.
-   *
-   * and an object is returned with the following properties:
-   *
-   *   - line: The line number in the generated source, or null.
-   *   - column: The column number in the generated source, or null.
-   */
-  SourceMapConsumer.prototype.generatedPositionFor =
-    function SourceMapConsumer_generatedPositionFor(aArgs) {
-      var needle = {
-        source: util.getArg(aArgs, 'source'),
-        originalLine: util.getArg(aArgs, 'line'),
-        originalColumn: util.getArg(aArgs, 'column')
-      };
-
-      if (this.sourceRoot) {
-        needle.source = util.relative(this.sourceRoot, needle.source);
-      }
-
-      var mapping = this._findMapping(needle,
-                                      this._originalMappings,
-                                      "originalLine",
-                                      "originalColumn",
-                                      util.compareByOriginalPositions);
-
-      if (mapping) {
-        return {
-          line: util.getArg(mapping, 'generatedLine', null),
-          column: util.getArg(mapping, 'generatedColumn', null)
-        };
-      }
-
-      return {
-        line: null,
-        column: null
-      };
-    };
-
-  SourceMapConsumer.GENERATED_ORDER = 1;
-  SourceMapConsumer.ORIGINAL_ORDER = 2;
-
-  /**
-   * Iterate over each mapping between an original source/line/column and a
-   * generated line/column in this source map.
-   *
-   * @param Function aCallback
-   *        The function that is called with each mapping.
-   * @param Object aContext
-   *        Optional. If specified, this object will be the value of `this` every
-   *        time that `aCallback` is called.
-   * @param aOrder
-   *        Either `SourceMapConsumer.GENERATED_ORDER` or
-   *        `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
-   *        iterate over the mappings sorted by the generated file's line/column
-   *        order or the original's source/line/column order, respectively. Defaults to
-   *        `SourceMapConsumer.GENERATED_ORDER`.
-   */
-  SourceMapConsumer.prototype.eachMapping =
-    function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
-      var context = aContext || null;
-      var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
-
-      var mappings;
-      switch (order) {
-      case SourceMapConsumer.GENERATED_ORDER:
-        mappings = this._generatedMappings;
-        break;
-      case SourceMapConsumer.ORIGINAL_ORDER:
-        mappings = this._originalMappings;
-        break;
-      default:
-        throw new Error("Unknown order of iteration.");
-      }
-
-      var sourceRoot = this.sourceRoot;
-      mappings.map(function (mapping) {
-        var source = mapping.source;
-        if (source && sourceRoot) {
-          source = util.join(sourceRoot, source);
-        }
-        return {
-          source: source,
-          generatedLine: mapping.generatedLine,
-          generatedColumn: mapping.generatedColumn,
-          originalLine: mapping.originalLine,
-          originalColumn: mapping.originalColumn,
-          name: mapping.name
-        };
-      }).forEach(aCallback, context);
-    };
-
-  exports.SourceMapConsumer = SourceMapConsumer;
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/source-map-generator', function (require, exports, module) {
-
-  var base64VLQ = require('./base64-vlq');
-  var util = require('./util');
-  var ArraySet = require('./array-set').ArraySet;
-
-  /**
-   * An instance of the SourceMapGenerator represents a source map which is
-   * being built incrementally. To create a new one, you must pass an object
-   * with the following properties:
-   *
-   *   - file: The filename of the generated source.
-   *   - sourceRoot: An optional root for all URLs in this source map.
-   */
-  function SourceMapGenerator(aArgs) {
-    this._file = util.getArg(aArgs, 'file');
-    this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
-    this._sources = new ArraySet();
-    this._names = new ArraySet();
-    this._mappings = [];
-    this._sourcesContents = null;
-  }
-
-  SourceMapGenerator.prototype._version = 3;
-
-  /**
-   * Creates a new SourceMapGenerator based on a SourceMapConsumer
-   *
-   * @param aSourceMapConsumer The SourceMap.
-   */
-  SourceMapGenerator.fromSourceMap =
-    function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
-      var sourceRoot = aSourceMapConsumer.sourceRoot;
-      var generator = new SourceMapGenerator({
-        file: aSourceMapConsumer.file,
-        sourceRoot: sourceRoot
-      });
-      aSourceMapConsumer.eachMapping(function (mapping) {
-        var newMapping = {
-          generated: {
-            line: mapping.generatedLine,
-            column: mapping.generatedColumn
-          }
-        };
-
-        if (mapping.source) {
-          newMapping.source = mapping.source;
-          if (sourceRoot) {
-            newMapping.source = util.relative(sourceRoot, newMapping.source);
-          }
-
-          newMapping.original = {
-            line: mapping.originalLine,
-            column: mapping.originalColumn
-          };
-
-          if (mapping.name) {
-            newMapping.name = mapping.name;
-          }
-        }
-
-        generator.addMapping(newMapping);
-      });
-      aSourceMapConsumer.sources.forEach(function (sourceFile) {
-        var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-        if (content) {
-          generator.setSourceContent(sourceFile, content);
-        }
-      });
-      return generator;
-    };
-
-  /**
-   * Add a single mapping from original source line and column to the generated
-   * source's line and column for this source map being created. The mapping
-   * object should have the following properties:
-   *
-   *   - generated: An object with the generated line and column positions.
-   *   - original: An object with the original line and column positions.
-   *   - source: The original source file (relative to the sourceRoot).
-   *   - name: An optional original token name for this mapping.
-   */
-  SourceMapGenerator.prototype.addMapping =
-    function SourceMapGenerator_addMapping(aArgs) {
-      var generated = util.getArg(aArgs, 'generated');
-      var original = util.getArg(aArgs, 'original', null);
-      var source = util.getArg(aArgs, 'source', null);
-      var name = util.getArg(aArgs, 'name', null);
-
-      this._validateMapping(generated, original, source, name);
-
-      if (source && !this._sources.has(source)) {
-        this._sources.add(source);
-      }
-
-      if (name && !this._names.has(name)) {
-        this._names.add(name);
-      }
-
-      this._mappings.push({
-        generatedLine: generated.line,
-        generatedColumn: generated.column,
-        originalLine: original != null && original.line,
-        originalColumn: original != null && original.column,
-        source: source,
-        name: name
-      });
-    };
-
-  /**
-   * Set the source content for a source file.
-   */
-  SourceMapGenerator.prototype.setSourceContent =
-    function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
-      var source = aSourceFile;
-      if (this._sourceRoot) {
-        source = util.relative(this._sourceRoot, source);
-      }
-
-      if (aSourceContent !== null) {
-        // Add the source content to the _sourcesContents map.
-        // Create a new _sourcesContents map if the property is null.
-        if (!this._sourcesContents) {
-          this._sourcesContents = {};
-        }
-        this._sourcesContents[util.toSetString(source)] = aSourceContent;
-      } else {
-        // Remove the source file from the _sourcesContents map.
-        // If the _sourcesContents map is empty, set the property to null.
-        delete this._sourcesContents[util.toSetString(source)];
-        if (Object.keys(this._sourcesContents).length === 0) {
-          this._sourcesContents = null;
-        }
-      }
-    };
-
-  /**
-   * Applies the mappings of a sub-source-map for a specific source file to the
-   * source map being generated. Each mapping to the supplied source file is
-   * rewritten using the supplied source map. Note: The resolution for the
-   * resulting mappings is the minimium of this map and the supplied map.
-   *
-   * @param aSourceMapConsumer The source map to be applied.
-   * @param aSourceFile Optional. The filename of the source file.
-   *        If omitted, SourceMapConsumer's file property will be used.
-   */
-  SourceMapGenerator.prototype.applySourceMap =
-    function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile) {
-      // If aSourceFile is omitted, we will use the file property of the SourceMap
-      if (!aSourceFile) {
-        aSourceFile = aSourceMapConsumer.file;
-      }
-      var sourceRoot = this._sourceRoot;
-      // Make "aSourceFile" relative if an absolute Url is passed.
-      if (sourceRoot) {
-        aSourceFile = util.relative(sourceRoot, aSourceFile);
-      }
-      // Applying the SourceMap can add and remove items from the sources and
-      // the names array.
-      var newSources = new ArraySet();
-      var newNames = new ArraySet();
-
-      // Find mappings for the "aSourceFile"
-      this._mappings.forEach(function (mapping) {
-        if (mapping.source === aSourceFile && mapping.originalLine) {
-          // Check if it can be mapped by the source map, then update the mapping.
-          var original = aSourceMapConsumer.originalPositionFor({
-            line: mapping.originalLine,
-            column: mapping.originalColumn
-          });
-          if (original.source !== null) {
-            // Copy mapping
-            if (sourceRoot) {
-              mapping.source = util.relative(sourceRoot, original.source);
-            } else {
-              mapping.source = original.source;
-            }
-            mapping.originalLine = original.line;
-            mapping.originalColumn = original.column;
-            if (original.name !== null && mapping.name !== null) {
-              // Only use the identifier name if it's an identifier
-              // in both SourceMaps
-              mapping.name = original.name;
-            }
-          }
-        }
-
-        var source = mapping.source;
-        if (source && !newSources.has(source)) {
-          newSources.add(source);
-        }
-
-        var name = mapping.name;
-        if (name && !newNames.has(name)) {
-          newNames.add(name);
-        }
-
-      }, this);
-      this._sources = newSources;
-      this._names = newNames;
-
-      // Copy sourcesContents of applied map.
-      aSourceMapConsumer.sources.forEach(function (sourceFile) {
-        var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-        if (content) {
-          if (sourceRoot) {
-            sourceFile = util.relative(sourceRoot, sourceFile);
-          }
-          this.setSourceContent(sourceFile, content);
-        }
-      }, this);
-    };
-
-  /**
-   * A mapping can have one of the three levels of data:
-   *
-   *   1. Just the generated position.
-   *   2. The Generated position, original position, and original source.
-   *   3. Generated and original position, original source, as well as a name
-   *      token.
-   *
-   * To maintain consistency, we validate that any new mapping being added falls
-   * in to one of these categories.
-   */
-  SourceMapGenerator.prototype._validateMapping =
-    function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,
-                                                aName) {
-      if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
-          && aGenerated.line > 0 && aGenerated.column >= 0
-          && !aOriginal && !aSource && !aName) {
-        // Case 1.
-        return;
-      }
-      else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
-               && aOriginal && 'line' in aOriginal && 'column' in aOriginal
-               && aGenerated.line > 0 && aGenerated.column >= 0
-               && aOriginal.line > 0 && aOriginal.column >= 0
-               && aSource) {
-        // Cases 2 and 3.
-        return;
-      }
-      else {
-        throw new Error('Invalid mapping: ' + JSON.stringify({
-          generated: aGenerated,
-          source: aSource,
-          original: aOriginal,
-          name: aName
-        }));
-      }
-    };
-
-  /**
-   * Serialize the accumulated mappings in to the stream of base 64 VLQs
-   * specified by the source map format.
-   */
-  SourceMapGenerator.prototype._serializeMappings =
-    function SourceMapGenerator_serializeMappings() {
-      var previousGeneratedColumn = 0;
-      var previousGeneratedLine = 1;
-      var previousOriginalColumn = 0;
-      var previousOriginalLine = 0;
-      var previousName = 0;
-      var previousSource = 0;
-      var result = '';
-      var mapping;
-
-      // The mappings must be guaranteed to be in sorted order before we start
-      // serializing them or else the generated line numbers (which are defined
-      // via the ';' separators) will be all messed up. Note: it might be more
-      // performant to maintain the sorting as we insert them, rather than as we
-      // serialize them, but the big O is the same either way.
-      this._mappings.sort(util.compareByGeneratedPositions);
-
-      for (var i = 0, len = this._mappings.length; i < len; i++) {
-        mapping = this._mappings[i];
-
-        if (mapping.generatedLine !== previousGeneratedLine) {
-          previousGeneratedColumn = 0;
-          while (mapping.generatedLine !== previousGeneratedLine) {
-            result += ';';
-            previousGeneratedLine++;
-          }
-        }
-        else {
-          if (i > 0) {
-            if (!util.compareByGeneratedPositions(mapping, this._mappings[i - 1])) {
-              continue;
-            }
-            result += ',';
-          }
-        }
-
-        result += base64VLQ.encode(mapping.generatedColumn
-                                   - previousGeneratedColumn);
-        previousGeneratedColumn = mapping.generatedColumn;
-
-        if (mapping.source) {
-          result += base64VLQ.encode(this._sources.indexOf(mapping.source)
-                                     - previousSource);
-          previousSource = this._sources.indexOf(mapping.source);
-
-          // lines are stored 0-based in SourceMap spec version 3
-          result += base64VLQ.encode(mapping.originalLine - 1
-                                     - previousOriginalLine);
-          previousOriginalLine = mapping.originalLine - 1;
-
-          result += base64VLQ.encode(mapping.originalColumn
-                                     - previousOriginalColumn);
-          previousOriginalColumn = mapping.originalColumn;
-
-          if (mapping.name) {
-            result += base64VLQ.encode(this._names.indexOf(mapping.name)
-                                       - previousName);
-            previousName = this._names.indexOf(mapping.name);
-          }
-        }
-      }
-
-      return result;
-    };
-
-  SourceMapGenerator.prototype._generateSourcesContent =
-    function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
-      return aSources.map(function (source) {
-        if (!this._sourcesContents) {
-          return null;
-        }
-        if (aSourceRoot) {
-          source = util.relative(aSourceRoot, source);
-        }
-        var key = util.toSetString(source);
-        return Object.prototype.hasOwnProperty.call(this._sourcesContents,
-                                                    key)
-          ? this._sourcesContents[key]
-          : null;
-      }, this);
-    };
-
-  /**
-   * Externalize the source map.
-   */
-  SourceMapGenerator.prototype.toJSON =
-    function SourceMapGenerator_toJSON() {
-      var map = {
-        version: this._version,
-        file: this._file,
-        sources: this._sources.toArray(),
-        names: this._names.toArray(),
-        mappings: this._serializeMappings()
-      };
-      if (this._sourceRoot) {
-        map.sourceRoot = this._sourceRoot;
-      }
-      if (this._sourcesContents) {
-        map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
-      }
-
-      return map;
-    };
-
-  /**
-   * Render the source map being generated to a string.
-   */
-  SourceMapGenerator.prototype.toString =
-    function SourceMapGenerator_toString() {
-      return JSON.stringify(this);
-    };
-
-  exports.SourceMapGenerator = SourceMapGenerator;
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/source-node', function (require, exports, module) {
-
-  var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;
-  var util = require('./util');
-
-  /**
-   * SourceNodes provide a way to abstract over interpolating/concatenating
-   * snippets of generated JavaScript source code while maintaining the line and
-   * column information associated with the original source code.
-   *
-   * @param aLine The original line number.
-   * @param aColumn The original column number.
-   * @param aSource The original source's filename.
-   * @param aChunks Optional. An array of strings which are snippets of
-   *        generated JS, or other SourceNodes.
-   * @param aName The original identifier.
-   */
-  function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
-    this.children = [];
-    this.sourceContents = {};
-    this.line = aLine === undefined ? null : aLine;
-    this.column = aColumn === undefined ? null : aColumn;
-    this.source = aSource === undefined ? null : aSource;
-    this.name = aName === undefined ? null : aName;
-    if (aChunks != null) this.add(aChunks);
-  }
-
-  /**
-   * Creates a SourceNode from generated code and a SourceMapConsumer.
-   *
-   * @param aGeneratedCode The generated code
-   * @param aSourceMapConsumer The SourceMap for the generated code
-   */
-  SourceNode.fromStringWithSourceMap =
-    function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer) {
-      // The SourceNode we want to fill with the generated code
-      // and the SourceMap
-      var node = new SourceNode();
-
-      // The generated code
-      // Processed fragments are removed from this array.
-      var remainingLines = aGeneratedCode.split('\n');
-
-      // We need to remember the position of "remainingLines"
-      var lastGeneratedLine = 1, lastGeneratedColumn = 0;
-
-      // The generate SourceNodes we need a code range.
-      // To extract it current and last mapping is used.
-      // Here we store the last mapping.
-      var lastMapping = null;
-
-      aSourceMapConsumer.eachMapping(function (mapping) {
-        if (lastMapping === null) {
-          // We add the generated code until the first mapping
-          // to the SourceNode without any mapping.
-          // Each line is added as separate string.
-          while (lastGeneratedLine < mapping.generatedLine) {
-            node.add(remainingLines.shift() + "\n");
-            lastGeneratedLine++;
-          }
-          if (lastGeneratedColumn < mapping.generatedColumn) {
-            var nextLine = remainingLines[0];
-            node.add(nextLine.substr(0, mapping.generatedColumn));
-            remainingLines[0] = nextLine.substr(mapping.generatedColumn);
-            lastGeneratedColumn = mapping.generatedColumn;
-          }
-        } else {
-          // We add the code from "lastMapping" to "mapping":
-          // First check if there is a new line in between.
-          if (lastGeneratedLine < mapping.generatedLine) {
-            var code = "";
-            // Associate full lines with "lastMapping"
-            do {
-              code += remainingLines.shift() + "\n";
-              lastGeneratedLine++;
-              lastGeneratedColumn = 0;
-            } while (lastGeneratedLine < mapping.generatedLine);
-            // When we reached the correct line, we add code until we
-            // reach the correct column too.
-            if (lastGeneratedColumn < mapping.generatedColumn) {
-              var nextLine = remainingLines[0];
-              code += nextLine.substr(0, mapping.generatedColumn);
-              remainingLines[0] = nextLine.substr(mapping.generatedColumn);
-              lastGeneratedColumn = mapping.generatedColumn;
-            }
-            // Create the SourceNode.
-            addMappingWithCode(lastMapping, code);
-          } else {
-            // There is no new line in between.
-            // Associate the code between "lastGeneratedColumn" and
-            // "mapping.generatedColumn" with "lastMapping"
-            var nextLine = remainingLines[0];
-            var code = nextLine.substr(0, mapping.generatedColumn -
-                                          lastGeneratedColumn);
-            remainingLines[0] = nextLine.substr(mapping.generatedColumn -
-                                                lastGeneratedColumn);
-            lastGeneratedColumn = mapping.generatedColumn;
-            addMappingWithCode(lastMapping, code);
-          }
-        }
-        lastMapping = mapping;
-      }, this);
-      // We have processed all mappings.
-      // Associate the remaining code in the current line with "lastMapping"
-      // and add the remaining lines without any mapping
-      addMappingWithCode(lastMapping, remainingLines.join("\n"));
-
-      // Copy sourcesContent into SourceNode
-      aSourceMapConsumer.sources.forEach(function (sourceFile) {
-        var content = aSourceMapConsumer.sourceContentFor(sourceFile);
-        if (content) {
-          node.setSourceContent(sourceFile, content);
-        }
-      });
-
-      return node;
-
-      function addMappingWithCode(mapping, code) {
-        if (mapping === null || mapping.source === undefined) {
-          node.add(code);
-        } else {
-          node.add(new SourceNode(mapping.originalLine,
-                                  mapping.originalColumn,
-                                  mapping.source,
-                                  code,
-                                  mapping.name));
-        }
-      }
-    };
-
-  /**
-   * Add a chunk of generated JS to this source node.
-   *
-   * @param aChunk A string snippet of generated JS code, another instance of
-   *        SourceNode, or an array where each member is one of those things.
-   */
-  SourceNode.prototype.add = function SourceNode_add(aChunk) {
-    if (Array.isArray(aChunk)) {
-      aChunk.forEach(function (chunk) {
-        this.add(chunk);
-      }, this);
-    }
-    else if (aChunk instanceof SourceNode || typeof aChunk === "string") {
-      if (aChunk) {
-        this.children.push(aChunk);
-      }
-    }
-    else {
-      throw new TypeError(
-        "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
-      );
-    }
-    return this;
-  };
-
-  /**
-   * Add a chunk of generated JS to the beginning of this source node.
-   *
-   * @param aChunk A string snippet of generated JS code, another instance of
-   *        SourceNode, or an array where each member is one of those things.
-   */
-  SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
-    if (Array.isArray(aChunk)) {
-      for (var i = aChunk.length-1; i >= 0; i--) {
-        this.prepend(aChunk[i]);
-      }
-    }
-    else if (aChunk instanceof SourceNode || typeof aChunk === "string") {
-      this.children.unshift(aChunk);
-    }
-    else {
-      throw new TypeError(
-        "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
-      );
-    }
-    return this;
-  };
-
-  /**
-   * Walk over the tree of JS snippets in this node and its children. The
-   * walking function is called once for each snippet of JS and is passed that
-   * snippet and the its original associated source's line/column location.
-   *
-   * @param aFn The traversal function.
-   */
-  SourceNode.prototype.walk = function SourceNode_walk(aFn) {
-    var chunk;
-    for (var i = 0, len = this.children.length; i < len; i++) {
-      chunk = this.children[i];
-      if (chunk instanceof SourceNode) {
-        chunk.walk(aFn);
-      }
-      else {
-        if (chunk !== '') {
-          aFn(chunk, { source: this.source,
-                       line: this.line,
-                       column: this.column,
-                       name: this.name });
-        }
-      }
-    }
-  };
-
-  /**
-   * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
-   * each of `this.children`.
-   *
-   * @param aSep The separator.
-   */
-  SourceNode.prototype.join = function SourceNode_join(aSep) {
-    var newChildren;
-    var i;
-    var len = this.children.length;
-    if (len > 0) {
-      newChildren = [];
-      for (i = 0; i < len-1; i++) {
-        newChildren.push(this.children[i]);
-        newChildren.push(aSep);
-      }
-      newChildren.push(this.children[i]);
-      this.children = newChildren;
-    }
-    return this;
-  };
-
-  /**
-   * Call String.prototype.replace on the very right-most source snippet. Useful
-   * for trimming whitespace from the end of a source node, etc.
-   *
-   * @param aPattern The pattern to replace.
-   * @param aReplacement The thing to replace the pattern with.
-   */
-  SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
-    var lastChild = this.children[this.children.length - 1];
-    if (lastChild instanceof SourceNode) {
-      lastChild.replaceRight(aPattern, aReplacement);
-    }
-    else if (typeof lastChild === 'string') {
-      this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
-    }
-    else {
-      this.children.push(''.replace(aPattern, aReplacement));
-    }
-    return this;
-  };
-
-  /**
-   * Set the source content for a source file. This will be added to the SourceMapGenerator
-   * in the sourcesContent field.
-   *
-   * @param aSourceFile The filename of the source file
-   * @param aSourceContent The content of the source file
-   */
-  SourceNode.prototype.setSourceContent =
-    function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
-      this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
-    };
-
-  /**
-   * Walk over the tree of SourceNodes. The walking function is called for each
-   * source file content and is passed the filename and source content.
-   *
-   * @param aFn The traversal function.
-   */
-  SourceNode.prototype.walkSourceContents =
-    function SourceNode_walkSourceContents(aFn) {
-      for (var i = 0, len = this.children.length; i < len; i++) {
-        if (this.children[i] instanceof SourceNode) {
-          this.children[i].walkSourceContents(aFn);
-        }
-      }
-
-      var sources = Object.keys(this.sourceContents);
-      for (var i = 0, len = sources.length; i < len; i++) {
-        aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
-      }
-    };
-
-  /**
-   * Return the string representation of this source node. Walks over the tree
-   * and concatenates all the various snippets together to one string.
-   */
-  SourceNode.prototype.toString = function SourceNode_toString() {
-    var str = "";
-    this.walk(function (chunk) {
-      str += chunk;
-    });
-    return str;
-  };
-
-  /**
-   * Returns the string representation of this source node along with a source
-   * map.
-   */
-  SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
-    var generated = {
-      code: "",
-      line: 1,
-      column: 0
-    };
-    var map = new SourceMapGenerator(aArgs);
-    var sourceMappingActive = false;
-    var lastOriginalSource = null;
-    var lastOriginalLine = null;
-    var lastOriginalColumn = null;
-    var lastOriginalName = null;
-    this.walk(function (chunk, original) {
-      generated.code += chunk;
-      if (original.source !== null
-          && original.line !== null
-          && original.column !== null) {
-        if(lastOriginalSource !== original.source
-           || lastOriginalLine !== original.line
-           || lastOriginalColumn !== original.column
-           || lastOriginalName !== original.name) {
-          map.addMapping({
-            source: original.source,
-            original: {
-              line: original.line,
-              column: original.column
-            },
-            generated: {
-              line: generated.line,
-              column: generated.column
-            },
-            name: original.name
-          });
-        }
-        lastOriginalSource = original.source;
-        lastOriginalLine = original.line;
-        lastOriginalColumn = original.column;
-        lastOriginalName = original.name;
-        sourceMappingActive = true;
-      } else if (sourceMappingActive) {
-        map.addMapping({
-          generated: {
-            line: generated.line,
-            column: generated.column
-          }
-        });
-        lastOriginalSource = null;
-        sourceMappingActive = false;
-      }
-      chunk.split('').forEach(function (ch) {
-        if (ch === '\n') {
-          generated.line++;
-          generated.column = 0;
-        } else {
-          generated.column++;
-        }
-      });
-    });
-    this.walkSourceContents(function (sourceFile, sourceContent) {
-      map.setSourceContent(sourceFile, sourceContent);
-    });
-
-    return { code: generated.code, map: map };
-  };
-
-  exports.SourceNode = SourceNode;
-
-});
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-define('source-map/util', function (require, exports, module) {
-
-  /**
-   * This is a helper function for getting values from parameter/options
-   * objects.
-   *
-   * @param args The object we are extracting values from
-   * @param name The name of the property we are getting.
-   * @param defaultValue An optional value to return if the property is missing
-   * from the object. If this is not specified and the property is missing, an
-   * error will be thrown.
-   */
-  function getArg(aArgs, aName, aDefaultValue) {
-    if (aName in aArgs) {
-      return aArgs[aName];
-    } else if (arguments.length === 3) {
-      return aDefaultValue;
-    } else {
-      throw new Error('"' + aName + '" is a required argument.');
-    }
-  }
-  exports.getArg = getArg;
-
-  var urlRegexp = /([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;
-  var dataUrlRegexp = /^data:.+\,.+/;
-
-  function urlParse(aUrl) {
-    var match = aUrl.match(urlRegexp);
-    if (!match) {
-      return null;
-    }
-    return {
-      scheme: match[1],
-      auth: match[3],
-      host: match[4],
-      port: match[6],
-      path: match[7]
-    };
-  }
-  exports.urlParse = urlParse;
-
-  function urlGenerate(aParsedUrl) {
-    var url = aParsedUrl.scheme + "://";
-    if (aParsedUrl.auth) {
-      url += aParsedUrl.auth + "@"
-    }
-    if (aParsedUrl.host) {
-      url += aParsedUrl.host;
-    }
-    if (aParsedUrl.port) {
-      url += ":" + aParsedUrl.port
-    }
-    if (aParsedUrl.path) {
-      url += aParsedUrl.path;
-    }
-    return url;
-  }
-  exports.urlGenerate = urlGenerate;
-
-  function join(aRoot, aPath) {
-    var url;
-
-    if (aPath.match(urlRegexp) || aPath.match(dataUrlRegexp)) {
-      return aPath;
-    }
-
-    if (aPath.charAt(0) === '/' && (url = urlParse(aRoot))) {
-      url.path = aPath;
-      return urlGenerate(url);
-    }
-
-    return aRoot.replace(/\/$/, '') + '/' + aPath;
-  }
-  exports.join = join;
-
-  /**
-   * Because behavior goes wacky when you set `__proto__` on objects, we
-   * have to prefix all the strings in our set with an arbitrary character.
-   *
-   * See https://github.com/mozilla/source-map/pull/31 and
-   * https://github.com/mozilla/source-map/issues/30
-   *
-   * @param String aStr
-   */
-  function toSetString(aStr) {
-    return '$' + aStr;
-  }
-  exports.toSetString = toSetString;
-
-  function fromSetString(aStr) {
-    return aStr.substr(1);
-  }
-  exports.fromSetString = fromSetString;
-
-  function relative(aRoot, aPath) {
-    aRoot = aRoot.replace(/\/$/, '');
-
-    var url = urlParse(aRoot);
-    if (aPath.charAt(0) == "/" && url && url.path == "/") {
-      return aPath.slice(1);
-    }
-
-    return aPath.indexOf(aRoot + '/') === 0
-      ? aPath.substr(aRoot.length + 1)
-      : aPath;
-  }
-  exports.relative = relative;
-
-  function strcmp(aStr1, aStr2) {
-    var s1 = aStr1 || "";
-    var s2 = aStr2 || "";
-    return (s1 > s2) - (s1 < s2);
-  }
-
-  /**
-   * Comparator between two mappings where the original positions are compared.
-   *
-   * Optionally pass in `true` as `onlyCompareGenerated` to consider two
-   * mappings with the same original source/line/column, but different generated
-   * line and column the same. Useful when searching for a mapping with a
-   * stubbed out mapping.
-   */
-  function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
-    var cmp;
-
-    cmp = strcmp(mappingA.source, mappingB.source);
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.originalLine - mappingB.originalLine;
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.originalColumn - mappingB.originalColumn;
-    if (cmp || onlyCompareOriginal) {
-      return cmp;
-    }
-
-    cmp = strcmp(mappingA.name, mappingB.name);
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.generatedLine - mappingB.generatedLine;
-    if (cmp) {
-      return cmp;
-    }
-
-    return mappingA.generatedColumn - mappingB.generatedColumn;
-  };
-  exports.compareByOriginalPositions = compareByOriginalPositions;
-
-  /**
-   * Comparator between two mappings where the generated positions are
-   * compared.
-   *
-   * Optionally pass in `true` as `onlyCompareGenerated` to consider two
-   * mappings with the same generated line and column, but different
-   * source/name/original line and column the same. Useful when searching for a
-   * mapping with a stubbed out mapping.
-   */
-  function compareByGeneratedPositions(mappingA, mappingB, onlyCompareGenerated) {
-    var cmp;
-
-    cmp = mappingA.generatedLine - mappingB.generatedLine;
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.generatedColumn - mappingB.generatedColumn;
-    if (cmp || onlyCompareGenerated) {
-      return cmp;
-    }
-
-    cmp = strcmp(mappingA.source, mappingB.source);
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.originalLine - mappingB.originalLine;
-    if (cmp) {
-      return cmp;
-    }
-
-    cmp = mappingA.originalColumn - mappingB.originalColumn;
-    if (cmp) {
-      return cmp;
-    }
-
-    return strcmp(mappingA.name, mappingB.name);
-  };
-  exports.compareByGeneratedPositions = compareByGeneratedPositions;
-
-});
-define('source-map', function (require, exports, module) {
-
-/*
- * Copyright 2009-2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE.txt or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator;
-exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer;
-exports.SourceNode = require('./source-map/source-node').SourceNode;
-
-});
-
-//Distributed under the BSD license:
-//Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-define('uglifyjs2', ['exports', 'source-map', 'logger', 'env!env/file'], function (exports, MOZ_SourceMap, logger, rjsFile) {
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-function array_to_hash(a) {
-    var ret = Object.create(null);
-    for (var i = 0; i < a.length; ++i)
-        ret[a[i]] = true;
-    return ret;
-};
-
-function slice(a, start) {
-    return Array.prototype.slice.call(a, start || 0);
-};
-
-function characters(str) {
-    return str.split("");
-};
-
-function member(name, array) {
-    for (var i = array.length; --i >= 0;)
-        if (array[i] == name)
-            return true;
-    return false;
-};
-
-function find_if(func, array) {
-    for (var i = 0, n = array.length; i < n; ++i) {
-        if (func(array[i]))
-            return array[i];
-    }
-};
-
-function repeat_string(str, i) {
-    if (i <= 0) return "";
-    if (i == 1) return str;
-    var d = repeat_string(str, i >> 1);
-    d += d;
-    if (i & 1) d += str;
-    return d;
-};
-
-function DefaultsError(msg, defs) {
-    Error.call(this, msg);
-    this.msg = msg;
-    this.defs = defs;
-};
-DefaultsError.prototype = Object.create(Error.prototype);
-DefaultsError.prototype.constructor = DefaultsError;
-
-DefaultsError.croak = function(msg, defs) {
-    throw new DefaultsError(msg, defs);
-};
-
-function defaults(args, defs, croak) {
-    if (args === true)
-        args = {};
-    var ret = args || {};
-    if (croak) for (var i in ret) if (ret.hasOwnProperty(i) && !defs.hasOwnProperty(i))
-        DefaultsError.croak("`" + i + "` is not a supported option", defs);
-    for (var i in defs) if (defs.hasOwnProperty(i)) {
-        ret[i] = (args && args.hasOwnProperty(i)) ? args[i] : defs[i];
-    }
-    return ret;
-};
-
-function merge(obj, ext) {
-    for (var i in ext) if (ext.hasOwnProperty(i)) {
-        obj[i] = ext[i];
-    }
-    return obj;
-};
-
-function noop() {};
-
-var MAP = (function(){
-    function MAP(a, f, backwards) {
-        var ret = [], top = [], i;
-        function doit() {
-            var val = f(a[i], i);
-            var is_last = val instanceof Last;
-            if (is_last) val = val.v;
-            if (val instanceof AtTop) {
-                val = val.v;
-                if (val instanceof Splice) {
-                    top.push.apply(top, backwards ? val.v.slice().reverse() : val.v);
-                } else {
-                    top.push(val);
-                }
-            }
-            else if (val !== skip) {
-                if (val instanceof Splice) {
-                    ret.push.apply(ret, backwards ? val.v.slice().reverse() : val.v);
-                } else {
-                    ret.push(val);
-                }
-            }
-            return is_last;
-        };
-        if (a instanceof Array) {
-            if (backwards) {
-                for (i = a.length; --i >= 0;) if (doit()) break;
-                ret.reverse();
-                top.reverse();
-            } else {
-                for (i = 0; i < a.length; ++i) if (doit()) break;
-            }
-        }
-        else {
-            for (i in a) if (a.hasOwnProperty(i)) if (doit()) break;
-        }
-        return top.concat(ret);
-    };
-    MAP.at_top = function(val) { return new AtTop(val) };
-    MAP.splice = function(val) { return new Splice(val) };
-    MAP.last = function(val) { return new Last(val) };
-    var skip = MAP.skip = {};
-    function AtTop(val) { this.v = val };
-    function Splice(val) { this.v = val };
-    function Last(val) { this.v = val };
-    return MAP;
-})();
-
-function push_uniq(array, el) {
-    if (array.indexOf(el) < 0)
-        array.push(el);
-};
-
-function string_template(text, props) {
-    return text.replace(/\{(.+?)\}/g, function(str, p){
-        return props[p];
-    });
-};
-
-function remove(array, el) {
-    for (var i = array.length; --i >= 0;) {
-        if (array[i] === el) array.splice(i, 1);
-    }
-};
-
-function mergeSort(array, cmp) {
-    if (array.length < 2) return array.slice();
-    function merge(a, b) {
-        var r = [], ai = 0, bi = 0, i = 0;
-        while (ai < a.length && bi < b.length) {
-            cmp(a[ai], b[bi]) <= 0
-                ? r[i++] = a[ai++]
-                : r[i++] = b[bi++];
-        }
-        if (ai < a.length) r.push.apply(r, a.slice(ai));
-        if (bi < b.length) r.push.apply(r, b.slice(bi));
-        return r;
-    };
-    function _ms(a) {
-        if (a.length <= 1)
-            return a;
-        var m = Math.floor(a.length / 2), left = a.slice(0, m), right = a.slice(m);
-        left = _ms(left);
-        right = _ms(right);
-        return merge(left, right);
-    };
-    return _ms(array);
-};
-
-function set_difference(a, b) {
-    return a.filter(function(el){
-        return b.indexOf(el) < 0;
-    });
-};
-
-function set_intersection(a, b) {
-    return a.filter(function(el){
-        return b.indexOf(el) >= 0;
-    });
-};
-
-// this function is taken from Acorn [1], written by Marijn Haverbeke
-// [1] https://github.com/marijnh/acorn
-function makePredicate(words) {
-    if (!(words instanceof Array)) words = words.split(" ");
-    var f = "", cats = [];
-    out: for (var i = 0; i < words.length; ++i) {
-        for (var j = 0; j < cats.length; ++j)
-            if (cats[j][0].length == words[i].length) {
-                cats[j].push(words[i]);
-                continue out;
-            }
-        cats.push([words[i]]);
-    }
-    function compareTo(arr) {
-        if (arr.length == 1) return f += "return str === " + JSON.stringify(arr[0]) + ";";
-        f += "switch(str){";
-        for (var i = 0; i < arr.length; ++i) f += "case " + JSON.stringify(arr[i]) + ":";
-        f += "return true}return false;";
-    }
-    // When there are more than three length categories, an outer
-    // switch first dispatches on the lengths, to save on comparisons.
-    if (cats.length > 3) {
-        cats.sort(function(a, b) {return b.length - a.length;});
-        f += "switch(str.length){";
-        for (var i = 0; i < cats.length; ++i) {
-            var cat = cats[i];
-            f += "case " + cat[0].length + ":";
-            compareTo(cat);
-        }
-        f += "}";
-        // Otherwise, simply generate a flat `switch` statement.
-    } else {
-        compareTo(words);
-    }
-    return new Function("str", f);
-};
-
-function all(array, predicate) {
-    for (var i = array.length; --i >= 0;)
-        if (!predicate(array[i]))
-            return false;
-    return true;
-};
-
-function Dictionary() {
-    this._values = Object.create(null);
-    this._size = 0;
-};
-Dictionary.prototype = {
-    set: function(key, val) {
-        if (!this.has(key)) ++this._size;
-        this._values["$" + key] = val;
-        return this;
-    },
-    add: function(key, val) {
-        if (this.has(key)) {
-            this.get(key).push(val);
-        } else {
-            this.set(key, [ val ]);
-        }
-        return this;
-    },
-    get: function(key) { return this._values["$" + key] },
-    del: function(key) {
-        if (this.has(key)) {
-            --this._size;
-            delete this._values["$" + key];
-        }
-        return this;
-    },
-    has: function(key) { return ("$" + key) in this._values },
-    each: function(f) {
-        for (var i in this._values)
-            f(this._values[i], i.substr(1));
-    },
-    size: function() {
-        return this._size;
-    },
-    map: function(f) {
-        var ret = [];
-        for (var i in this._values)
-            ret.push(f(this._values[i], i.substr(1)));
-        return ret;
-    }
-};
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-function DEFNODE(type, props, methods, base) {
-    if (arguments.length < 4) base = AST_Node;
-    if (!props) props = [];
-    else props = props.split(/\s+/);
-    var self_props = props;
-    if (base && base.PROPS)
-        props = props.concat(base.PROPS);
-    var code = "return function AST_" + type + "(props){ if (props) { ";
-    for (var i = props.length; --i >= 0;) {
-        code += "this." + props[i] + " = props." + props[i] + ";";
-    }
-    var proto = base && new base;
-    if (proto && proto.initialize || (methods && methods.initialize))
-        code += "this.initialize();";
-    code += "}}";
-    var ctor = new Function(code)();
-    if (proto) {
-        ctor.prototype = proto;
-        ctor.BASE = base;
-    }
-    if (base) base.SUBCLASSES.push(ctor);
-    ctor.prototype.CTOR = ctor;
-    ctor.PROPS = props || null;
-    ctor.SELF_PROPS = self_props;
-    ctor.SUBCLASSES = [];
-    if (type) {
-        ctor.prototype.TYPE = ctor.TYPE = type;
-    }
-    if (methods) for (i in methods) if (methods.hasOwnProperty(i)) {
-        if (/^\$/.test(i)) {
-            ctor[i.substr(1)] = methods[i];
-        } else {
-            ctor.prototype[i] = methods[i];
-        }
-    }
-    ctor.DEFMETHOD = function(name, method) {
-        this.prototype[name] = method;
-    };
-    return ctor;
-};
-
-var AST_Token = DEFNODE("Token", "type value line col pos endpos nlb comments_before file", {
-}, null);
-
-var AST_Node = DEFNODE("Node", "start end", {
-    clone: function() {
-        return new this.CTOR(this);
-    },
-    $documentation: "Base class of all AST nodes",
-    $propdoc: {
-        start: "[AST_Token] The first token of this node",
-        end: "[AST_Token] The last token of this node"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this);
-    },
-    walk: function(visitor) {
-        return this._walk(visitor); // not sure the indirection will be any help
-    }
-}, null);
-
-AST_Node.warn_function = null;
-AST_Node.warn = function(txt, props) {
-    if (AST_Node.warn_function)
-        AST_Node.warn_function(string_template(txt, props));
-};
-
-/* -----[ statements ]----- */
-
-var AST_Statement = DEFNODE("Statement", null, {
-    $documentation: "Base class of all statements",
-});
-
-var AST_Debugger = DEFNODE("Debugger", null, {
-    $documentation: "Represents a debugger statement",
-}, AST_Statement);
-
-var AST_Directive = DEFNODE("Directive", "value scope", {
-    $documentation: "Represents a directive, like \"use strict\";",
-    $propdoc: {
-        value: "[string] The value of this directive as a plain string (it's not an AST_String!)",
-        scope: "[AST_Scope/S] The scope that this directive affects"
-    },
-}, AST_Statement);
-
-var AST_SimpleStatement = DEFNODE("SimpleStatement", "body", {
-    $documentation: "A statement consisting of an expression, i.e. a = 1 + 2",
-    $propdoc: {
-        body: "[AST_Node] an expression node (should not be instanceof AST_Statement)"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.body._walk(visitor);
-        });
-    }
-}, AST_Statement);
-
-function walk_body(node, visitor) {
-    if (node.body instanceof AST_Statement) {
-        node.body._walk(visitor);
-    }
-    else node.body.forEach(function(stat){
-        stat._walk(visitor);
-    });
-};
-
-var AST_Block = DEFNODE("Block", "body", {
-    $documentation: "A body of statements (usually bracketed)",
-    $propdoc: {
-        body: "[AST_Statement*] an array of statements"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            walk_body(this, visitor);
-        });
-    }
-}, AST_Statement);
-
-var AST_BlockStatement = DEFNODE("BlockStatement", null, {
-    $documentation: "A block statement",
-}, AST_Block);
-
-var AST_EmptyStatement = DEFNODE("EmptyStatement", null, {
-    $documentation: "The empty statement (empty block or simply a semicolon)",
-    _walk: function(visitor) {
-        return visitor._visit(this);
-    }
-}, AST_Statement);
-
-var AST_StatementWithBody = DEFNODE("StatementWithBody", "body", {
-    $documentation: "Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",
-    $propdoc: {
-        body: "[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.body._walk(visitor);
-        });
-    }
-}, AST_Statement);
-
-var AST_LabeledStatement = DEFNODE("LabeledStatement", "label", {
-    $documentation: "Statement with a label",
-    $propdoc: {
-        label: "[AST_Label] a label definition"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.label._walk(visitor);
-            this.body._walk(visitor);
-        });
-    }
-}, AST_StatementWithBody);
-
-var AST_IterationStatement = DEFNODE("IterationStatement", null, {
-    $documentation: "Internal class.  All loops inherit from it."
-}, AST_StatementWithBody);
-
-var AST_DWLoop = DEFNODE("DWLoop", "condition", {
-    $documentation: "Base class for do/while statements",
-    $propdoc: {
-        condition: "[AST_Node] the loop condition.  Should not be instanceof AST_Statement"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.condition._walk(visitor);
-            this.body._walk(visitor);
-        });
-    }
-}, AST_IterationStatement);
-
-var AST_Do = DEFNODE("Do", null, {
-    $documentation: "A `do` statement",
-}, AST_DWLoop);
-
-var AST_While = DEFNODE("While", null, {
-    $documentation: "A `while` statement",
-}, AST_DWLoop);
-
-var AST_For = DEFNODE("For", "init condition step", {
-    $documentation: "A `for` statement",
-    $propdoc: {
-        init: "[AST_Node?] the `for` initialization code, or null if empty",
-        condition: "[AST_Node?] the `for` termination clause, or null if empty",
-        step: "[AST_Node?] the `for` update clause, or null if empty"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            if (this.init) this.init._walk(visitor);
-            if (this.condition) this.condition._walk(visitor);
-            if (this.step) this.step._walk(visitor);
-            this.body._walk(visitor);
-        });
-    }
-}, AST_IterationStatement);
-
-var AST_ForIn = DEFNODE("ForIn", "init name object", {
-    $documentation: "A `for ... in` statement",
-    $propdoc: {
-        init: "[AST_Node] the `for/in` initialization code",
-        name: "[AST_SymbolRef?] the loop variable, only if `init` is AST_Var",
-        object: "[AST_Node] the object that we're looping through"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.init._walk(visitor);
-            this.object._walk(visitor);
-            this.body._walk(visitor);
-        });
-    }
-}, AST_IterationStatement);
-
-var AST_With = DEFNODE("With", "expression", {
-    $documentation: "A `with` statement",
-    $propdoc: {
-        expression: "[AST_Node] the `with` expression"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-            this.body._walk(visitor);
-        });
-    }
-}, AST_StatementWithBody);
-
-/* -----[ scope and functions ]----- */
-
-var AST_Scope = DEFNODE("Scope", "directives variables functions uses_with uses_eval parent_scope enclosed cname", {
-    $documentation: "Base class for all statements introducing a lexical scope",
-    $propdoc: {
-        directives: "[string*/S] an array of directives declared in this scope",
-        variables: "[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope",
-        functions: "[Object/S] like `variables`, but only lists function declarations",
-        uses_with: "[boolean/S] tells whether this scope uses the `with` statement",
-        uses_eval: "[boolean/S] tells whether this scope contains a direct call to the global `eval`",
-        parent_scope: "[AST_Scope?/S] link to the parent scope",
-        enclosed: "[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",
-        cname: "[integer/S] current index for mangling variables (used internally by the mangler)",
-    },
-}, AST_Block);
-
-var AST_Toplevel = DEFNODE("Toplevel", "globals", {
-    $documentation: "The toplevel scope",
-    $propdoc: {
-        globals: "[Object/S] a map of name -> SymbolDef for all undeclared names",
-    },
-    wrap_enclose: function(arg_parameter_pairs) {
-        var self = this;
-        var args = [];
-        var parameters = [];
-
-        arg_parameter_pairs.forEach(function(pair) {
-            var split = pair.split(":");
-
-            args.push(split[0]);
-            parameters.push(split[1]);
-        });
-
-        var wrapped_tl = "(function(" + parameters.join(",") + "){ '$ORIG'; })(" + args.join(",") + ")";
-        wrapped_tl = parse(wrapped_tl);
-        wrapped_tl = wrapped_tl.transform(new TreeTransformer(function before(node){
-            if (node instanceof AST_Directive && node.value == "$ORIG") {
-                return MAP.splice(self.body);
-            }
-        }));
-        return wrapped_tl;
-    },
-    wrap_commonjs: function(name, export_all) {
-        var self = this;
-        var to_export = [];
-        if (export_all) {
-            self.figure_out_scope();
-            self.walk(new TreeWalker(function(node){
-                if (node instanceof AST_SymbolDeclaration && node.definition().global) {
-                    if (!find_if(function(n){ return n.name == node.name }, to_export))
-                        to_export.push(node);
-                }
-            }));
-        }
-        var wrapped_tl = "(function(exports, global){ global['" + name + "'] = exports; '$ORIG'; '$EXPORTS'; }({}, (function(){return this}())))";
-        wrapped_tl = parse(wrapped_tl);
-        wrapped_tl = wrapped_tl.transform(new TreeTransformer(function before(node){
-            if (node instanceof AST_SimpleStatement) {
-                node = node.body;
-                if (node instanceof AST_String) switch (node.getValue()) {
-                  case "$ORIG":
-                    return MAP.splice(self.body);
-                  case "$EXPORTS":
-                    var body = [];
-                    to_export.forEach(function(sym){
-                        body.push(new AST_SimpleStatement({
-                            body: new AST_Assign({
-                                left: new AST_Sub({
-                                    expression: new AST_SymbolRef({ name: "exports" }),
-                                    property: new AST_String({ value: sym.name }),
-                                }),
-                                operator: "=",
-                                right: new AST_SymbolRef(sym),
-                            }),
-                        }));
-                    });
-                    return MAP.splice(body);
-                }
-            }
-        }));
-        return wrapped_tl;
-    }
-}, AST_Scope);
-
-var AST_Lambda = DEFNODE("Lambda", "name argnames uses_arguments", {
-    $documentation: "Base class for functions",
-    $propdoc: {
-        name: "[AST_SymbolDeclaration?] the name of this function",
-        argnames: "[AST_SymbolFunarg*] array of function arguments",
-        uses_arguments: "[boolean/S] tells whether this function accesses the arguments array"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            if (this.name) this.name._walk(visitor);
-            this.argnames.forEach(function(arg){
-                arg._walk(visitor);
-            });
-            walk_body(this, visitor);
-        });
-    }
-}, AST_Scope);
-
-var AST_Accessor = DEFNODE("Accessor", null, {
-    $documentation: "A setter/getter function.  The `name` property is always null."
-}, AST_Lambda);
-
-var AST_Function = DEFNODE("Function", null, {
-    $documentation: "A function expression"
-}, AST_Lambda);
-
-var AST_Defun = DEFNODE("Defun", null, {
-    $documentation: "A function definition"
-}, AST_Lambda);
-
-/* -----[ JUMPS ]----- */
-
-var AST_Jump = DEFNODE("Jump", null, {
-    $documentation: "Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"
-}, AST_Statement);
-
-var AST_Exit = DEFNODE("Exit", "value", {
-    $documentation: "Base class for “exits” (`return` and `throw`)",
-    $propdoc: {
-        value: "[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, this.value && function(){
-            this.value._walk(visitor);
-        });
-    }
-}, AST_Jump);
-
-var AST_Return = DEFNODE("Return", null, {
-    $documentation: "A `return` statement"
-}, AST_Exit);
-
-var AST_Throw = DEFNODE("Throw", null, {
-    $documentation: "A `throw` statement"
-}, AST_Exit);
-
-var AST_LoopControl = DEFNODE("LoopControl", "label", {
-    $documentation: "Base class for loop control statements (`break` and `continue`)",
-    $propdoc: {
-        label: "[AST_LabelRef?] the label, or null if none",
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, this.label && function(){
-            this.label._walk(visitor);
-        });
-    }
-}, AST_Jump);
-
-var AST_Break = DEFNODE("Break", null, {
-    $documentation: "A `break` statement"
-}, AST_LoopControl);
-
-var AST_Continue = DEFNODE("Continue", null, {
-    $documentation: "A `continue` statement"
-}, AST_LoopControl);
-
-/* -----[ IF ]----- */
-
-var AST_If = DEFNODE("If", "condition alternative", {
-    $documentation: "A `if` statement",
-    $propdoc: {
-        condition: "[AST_Node] the `if` condition",
-        alternative: "[AST_Statement?] the `else` part, or null if not present"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.condition._walk(visitor);
-            this.body._walk(visitor);
-            if (this.alternative) this.alternative._walk(visitor);
-        });
-    }
-}, AST_StatementWithBody);
-
-/* -----[ SWITCH ]----- */
-
-var AST_Switch = DEFNODE("Switch", "expression", {
-    $documentation: "A `switch` statement",
-    $propdoc: {
-        expression: "[AST_Node] the `switch` “discriminant”"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-            walk_body(this, visitor);
-        });
-    }
-}, AST_Block);
-
-var AST_SwitchBranch = DEFNODE("SwitchBranch", null, {
-    $documentation: "Base class for `switch` branches",
-}, AST_Block);
-
-var AST_Default = DEFNODE("Default", null, {
-    $documentation: "A `default` switch branch",
-}, AST_SwitchBranch);
-
-var AST_Case = DEFNODE("Case", "expression", {
-    $documentation: "A `case` switch branch",
-    $propdoc: {
-        expression: "[AST_Node] the `case` expression"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-            walk_body(this, visitor);
-        });
-    }
-}, AST_SwitchBranch);
-
-/* -----[ EXCEPTIONS ]----- */
-
-var AST_Try = DEFNODE("Try", "bcatch bfinally", {
-    $documentation: "A `try` statement",
-    $propdoc: {
-        bcatch: "[AST_Catch?] the catch block, or null if not present",
-        bfinally: "[AST_Finally?] the finally block, or null if not present"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            walk_body(this, visitor);
-            if (this.bcatch) this.bcatch._walk(visitor);
-            if (this.bfinally) this.bfinally._walk(visitor);
-        });
-    }
-}, AST_Block);
-
-var AST_Catch = DEFNODE("Catch", "argname", {
-    $documentation: "A `catch` node; only makes sense as part of a `try` statement",
-    $propdoc: {
-        argname: "[AST_SymbolCatch] symbol for the exception"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.argname._walk(visitor);
-            walk_body(this, visitor);
-        });
-    }
-}, AST_Block);
-
-var AST_Finally = DEFNODE("Finally", null, {
-    $documentation: "A `finally` node; only makes sense as part of a `try` statement"
-}, AST_Block);
-
-/* -----[ VAR/CONST ]----- */
-
-var AST_Definitions = DEFNODE("Definitions", "definitions", {
-    $documentation: "Base class for `var` or `const` nodes (variable declarations/initializations)",
-    $propdoc: {
-        definitions: "[AST_VarDef*] array of variable definitions"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.definitions.forEach(function(def){
-                def._walk(visitor);
-            });
-        });
-    }
-}, AST_Statement);
-
-var AST_Var = DEFNODE("Var", null, {
-    $documentation: "A `var` statement"
-}, AST_Definitions);
-
-var AST_Const = DEFNODE("Const", null, {
-    $documentation: "A `const` statement"
-}, AST_Definitions);
-
-var AST_VarDef = DEFNODE("VarDef", "name value", {
-    $documentation: "A variable declaration; only appears in a AST_Definitions node",
-    $propdoc: {
-        name: "[AST_SymbolVar|AST_SymbolConst] name of the variable",
-        value: "[AST_Node?] initializer, or null of there's no initializer"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.name._walk(visitor);
-            if (this.value) this.value._walk(visitor);
-        });
-    }
-});
-
-/* -----[ OTHER ]----- */
-
-var AST_Call = DEFNODE("Call", "expression args", {
-    $documentation: "A function call expression",
-    $propdoc: {
-        expression: "[AST_Node] expression to invoke as function",
-        args: "[AST_Node*] array of arguments"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-            this.args.forEach(function(arg){
-                arg._walk(visitor);
-            });
-        });
-    }
-});
-
-var AST_New = DEFNODE("New", null, {
-    $documentation: "An object instantiation.  Derives from a function call since it has exactly the same properties"
-}, AST_Call);
-
-var AST_Seq = DEFNODE("Seq", "car cdr", {
-    $documentation: "A sequence expression (two comma-separated expressions)",
-    $propdoc: {
-        car: "[AST_Node] first element in sequence",
-        cdr: "[AST_Node] second element in sequence"
-    },
-    $cons: function(x, y) {
-        var seq = new AST_Seq(x);
-        seq.car = x;
-        seq.cdr = y;
-        return seq;
-    },
-    $from_array: function(array) {
-        if (array.length == 0) return null;
-        if (array.length == 1) return array[0].clone();
-        var list = null;
-        for (var i = array.length; --i >= 0;) {
-            list = AST_Seq.cons(array[i], list);
-        }
-        var p = list;
-        while (p) {
-            if (p.cdr && !p.cdr.cdr) {
-                p.cdr = p.cdr.car;
-                break;
-            }
-            p = p.cdr;
-        }
-        return list;
-    },
-    to_array: function() {
-        var p = this, a = [];
-        while (p) {
-            a.push(p.car);
-            if (p.cdr && !(p.cdr instanceof AST_Seq)) {
-                a.push(p.cdr);
-                break;
-            }
-            p = p.cdr;
-        }
-        return a;
-    },
-    add: function(node) {
-        var p = this;
-        while (p) {
-            if (!(p.cdr instanceof AST_Seq)) {
-                var cell = AST_Seq.cons(p.cdr, node);
-                return p.cdr = cell;
-            }
-            p = p.cdr;
-        }
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.car._walk(visitor);
-            if (this.cdr) this.cdr._walk(visitor);
-        });
-    }
-});
-
-var AST_PropAccess = DEFNODE("PropAccess", "expression property", {
-    $documentation: "Base class for property access expressions, i.e. `a.foo` or `a[\"foo\"]`",
-    $propdoc: {
-        expression: "[AST_Node] the “container” expression",
-        property: "[AST_Node|string] the property to access.  For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"
-    }
-});
-
-var AST_Dot = DEFNODE("Dot", null, {
-    $documentation: "A dotted property access expression",
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-        });
-    }
-}, AST_PropAccess);
-
-var AST_Sub = DEFNODE("Sub", null, {
-    $documentation: "Index-style property access, i.e. `a[\"foo\"]`",
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-            this.property._walk(visitor);
-        });
-    }
-}, AST_PropAccess);
-
-var AST_Unary = DEFNODE("Unary", "operator expression", {
-    $documentation: "Base class for unary expressions",
-    $propdoc: {
-        operator: "[string] the operator",
-        expression: "[AST_Node] expression that this unary operator applies to"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.expression._walk(visitor);
-        });
-    }
-});
-
-var AST_UnaryPrefix = DEFNODE("UnaryPrefix", null, {
-    $documentation: "Unary prefix expression, i.e. `typeof i` or `++i`"
-}, AST_Unary);
-
-var AST_UnaryPostfix = DEFNODE("UnaryPostfix", null, {
-    $documentation: "Unary postfix expression, i.e. `i++`"
-}, AST_Unary);
-
-var AST_Binary = DEFNODE("Binary", "left operator right", {
-    $documentation: "Binary expression, i.e. `a + b`",
-    $propdoc: {
-        left: "[AST_Node] left-hand side expression",
-        operator: "[string] the operator",
-        right: "[AST_Node] right-hand side expression"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.left._walk(visitor);
-            this.right._walk(visitor);
-        });
-    }
-});
-
-var AST_Conditional = DEFNODE("Conditional", "condition consequent alternative", {
-    $documentation: "Conditional expression using the ternary operator, i.e. `a ? b : c`",
-    $propdoc: {
-        condition: "[AST_Node]",
-        consequent: "[AST_Node]",
-        alternative: "[AST_Node]"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.condition._walk(visitor);
-            this.consequent._walk(visitor);
-            this.alternative._walk(visitor);
-        });
-    }
-});
-
-var AST_Assign = DEFNODE("Assign", null, {
-    $documentation: "An assignment expression — `a = b + 5`",
-}, AST_Binary);
-
-/* -----[ LITERALS ]----- */
-
-var AST_Array = DEFNODE("Array", "elements", {
-    $documentation: "An array literal",
-    $propdoc: {
-        elements: "[AST_Node*] array of elements"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.elements.forEach(function(el){
-                el._walk(visitor);
-            });
-        });
-    }
-});
-
-var AST_Object = DEFNODE("Object", "properties", {
-    $documentation: "An object literal",
-    $propdoc: {
-        properties: "[AST_ObjectProperty*] array of properties"
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.properties.forEach(function(prop){
-                prop._walk(visitor);
-            });
-        });
-    }
-});
-
-var AST_ObjectProperty = DEFNODE("ObjectProperty", "key value", {
-    $documentation: "Base class for literal object properties",
-    $propdoc: {
-        key: "[string] the property name converted to a string for ObjectKeyVal.  For setters and getters this is an arbitrary AST_Node.",
-        value: "[AST_Node] property value.  For setters and getters this is an AST_Function."
-    },
-    _walk: function(visitor) {
-        return visitor._visit(this, function(){
-            this.value._walk(visitor);
-        });
-    }
-});
-
-var AST_ObjectKeyVal = DEFNODE("ObjectKeyVal", null, {
-    $documentation: "A key: value object property",
-}, AST_ObjectProperty);
-
-var AST_ObjectSetter = DEFNODE("ObjectSetter", null, {
-    $documentation: "An object setter property",
-}, AST_ObjectProperty);
-
-var AST_ObjectGetter = DEFNODE("ObjectGetter", null, {
-    $documentation: "An object getter property",
-}, AST_ObjectProperty);
-
-var AST_Symbol = DEFNODE("Symbol", "scope name thedef", {
-    $propdoc: {
-        name: "[string] name of this symbol",
-        scope: "[AST_Scope/S] the current scope (not necessarily the definition scope)",
-        thedef: "[SymbolDef/S] the definition of this symbol"
-    },
-    $documentation: "Base class for all symbols",
-});
-
-var AST_SymbolAccessor = DEFNODE("SymbolAccessor", null, {
-    $documentation: "The name of a property accessor (setter/getter function)"
-}, AST_Symbol);
-
-var AST_SymbolDeclaration = DEFNODE("SymbolDeclaration", "init", {
-    $documentation: "A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",
-    $propdoc: {
-        init: "[AST_Node*/S] array of initializers for this declaration."
-    }
-}, AST_Symbol);
-
-var AST_SymbolVar = DEFNODE("SymbolVar", null, {
-    $documentation: "Symbol defining a variable",
-}, AST_SymbolDeclaration);
-
-var AST_SymbolConst = DEFNODE("SymbolConst", null, {
-    $documentation: "A constant declaration"
-}, AST_SymbolDeclaration);
-
-var AST_SymbolFunarg = DEFNODE("SymbolFunarg", null, {
-    $documentation: "Symbol naming a function argument",
-}, AST_SymbolVar);
-
-var AST_SymbolDefun = DEFNODE("SymbolDefun", null, {
-    $documentation: "Symbol defining a function",
-}, AST_SymbolDeclaration);
-
-var AST_SymbolLambda = DEFNODE("SymbolLambda", null, {
-    $documentation: "Symbol naming a function expression",
-}, AST_SymbolDeclaration);
-
-var AST_SymbolCatch = DEFNODE("SymbolCatch", null, {
-    $documentation: "Symbol naming the exception in catch",
-}, AST_SymbolDeclaration);
-
-var AST_Label = DEFNODE("Label", "references", {
-    $documentation: "Symbol naming a label (declaration)",
-    $propdoc: {
-        references: "[AST_LoopControl*] a list of nodes referring to this label"
-    },
-    initialize: function() {
-        this.references = [];
-        this.thedef = this;
-    }
-}, AST_Symbol);
-
-var AST_SymbolRef = DEFNODE("SymbolRef", null, {
-    $documentation: "Reference to some symbol (not definition/declaration)",
-}, AST_Symbol);
-
-var AST_LabelRef = DEFNODE("LabelRef", null, {
-    $documentation: "Reference to a label symbol",
-}, AST_Symbol);
-
-var AST_This = DEFNODE("This", null, {
-    $documentation: "The `this` symbol",
-}, AST_Symbol);
-
-var AST_Constant = DEFNODE("Constant", null, {
-    $documentation: "Base class for all constants",
-    getValue: function() {
-        return this.value;
-    }
-});
-
-var AST_String = DEFNODE("String", "value", {
-    $documentation: "A string literal",
-    $propdoc: {
-        value: "[string] the contents of this string"
-    }
-}, AST_Constant);
-
-var AST_Number = DEFNODE("Number", "value", {
-    $documentation: "A number literal",
-    $propdoc: {
-        value: "[number] the numeric value"
-    }
-}, AST_Constant);
-
-var AST_RegExp = DEFNODE("RegExp", "value", {
-    $documentation: "A regexp literal",
-    $propdoc: {
-        value: "[RegExp] the actual regexp"
-    }
-}, AST_Constant);
-
-var AST_Atom = DEFNODE("Atom", null, {
-    $documentation: "Base class for atoms",
-}, AST_Constant);
-
-var AST_Null = DEFNODE("Null", null, {
-    $documentation: "The `null` atom",
-    value: null
-}, AST_Atom);
-
-var AST_NaN = DEFNODE("NaN", null, {
-    $documentation: "The impossible value",
-    value: 0/0
-}, AST_Atom);
-
-var AST_Undefined = DEFNODE("Undefined", null, {
-    $documentation: "The `undefined` value",
-    value: (function(){}())
-}, AST_Atom);
-
-var AST_Hole = DEFNODE("Hole", null, {
-    $documentation: "A hole in an array",
-    value: (function(){}())
-}, AST_Atom);
-
-var AST_Infinity = DEFNODE("Infinity", null, {
-    $documentation: "The `Infinity` value",
-    value: 1/0
-}, AST_Atom);
-
-var AST_Boolean = DEFNODE("Boolean", null, {
-    $documentation: "Base class for booleans",
-}, AST_Atom);
-
-var AST_False = DEFNODE("False", null, {
-    $documentation: "The `false` atom",
-    value: false
-}, AST_Boolean);
-
-var AST_True = DEFNODE("True", null, {
-    $documentation: "The `true` atom",
-    value: true
-}, AST_Boolean);
-
-/* -----[ TreeWalker ]----- */
-
-function TreeWalker(callback) {
-    this.visit = callback;
-    this.stack = [];
-};
-TreeWalker.prototype = {
-    _visit: function(node, descend) {
-        this.stack.push(node);
-        var ret = this.visit(node, descend ? function(){
-            descend.call(node);
-        } : noop);
-        if (!ret && descend) {
-            descend.call(node);
-        }
-        this.stack.pop();
-        return ret;
-    },
-    parent: function(n) {
-        return this.stack[this.stack.length - 2 - (n || 0)];
-    },
-    push: function (node) {
-        this.stack.push(node);
-    },
-    pop: function() {
-        return this.stack.pop();
-    },
-    self: function() {
-        return this.stack[this.stack.length - 1];
-    },
-    find_parent: function(type) {
-        var stack = this.stack;
-        for (var i = stack.length; --i >= 0;) {
-            var x = stack[i];
-            if (x instanceof type) return x;
-        }
-    },
-    has_directive: function(type) {
-        return this.find_parent(AST_Scope).has_directive(type);
-    },
-    in_boolean_context: function() {
-        var stack = this.stack;
-        var i = stack.length, self = stack[--i];
-        while (i > 0) {
-            var p = stack[--i];
-            if ((p instanceof AST_If           && p.condition === self) ||
-                (p instanceof AST_Conditional  && p.condition === self) ||
-                (p instanceof AST_DWLoop       && p.condition === self) ||
-                (p instanceof AST_For          && p.condition === self) ||
-                (p instanceof AST_UnaryPrefix  && p.operator == "!" && p.expression === self))
-            {
-                return true;
-            }
-            if (!(p instanceof AST_Binary && (p.operator == "&&" || p.operator == "||")))
-                return false;
-            self = p;
-        }
-    },
-    loopcontrol_target: function(label) {
-        var stack = this.stack;
-        if (label) for (var i = stack.length; --i >= 0;) {
-            var x = stack[i];
-            if (x instanceof AST_LabeledStatement && x.label.name == label.name) {
-                return x.body;
-            }
-        } else for (var i = stack.length; --i >= 0;) {
-            var x = stack[i];
-            if (x instanceof AST_Switch || x instanceof AST_IterationStatement)
-                return x;
-        }
-    }
-};
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-    Parser based on parse-js (http://marijn.haverbeke.nl/parse-js/).
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-var KEYWORDS = 'break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with';
-var KEYWORDS_ATOM = 'false null true';
-var RESERVED_WORDS = 'abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized this throws transient volatile yield'
-    + " " + KEYWORDS_ATOM + " " + KEYWORDS;
-var KEYWORDS_BEFORE_EXPRESSION = 'return new delete throw else case';
-
-KEYWORDS = makePredicate(KEYWORDS);
-RESERVED_WORDS = makePredicate(RESERVED_WORDS);
-KEYWORDS_BEFORE_EXPRESSION = makePredicate(KEYWORDS_BEFORE_EXPRESSION);
-KEYWORDS_ATOM = makePredicate(KEYWORDS_ATOM);
-
-var OPERATOR_CHARS = makePredicate(characters("+-*&%=<>!?|~^"));
-
-var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i;
-var RE_OCT_NUMBER = /^0[0-7]+$/;
-var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i;
-
-var OPERATORS = makePredicate([
-    "in",
-    "instanceof",
-    "typeof",
-    "new",
-    "void",
-    "delete",
-    "++",
-    "--",
-    "+",
-    "-",
-    "!",
-    "~",
-    "&",
-    "|",
-    "^",
-    "*",
-    "/",
-    "%",
-    ">>",
-    "<<",
-    ">>>",
-    "<",
-    ">",
-    "<=",
-    ">=",
-    "==",
-    "===",
-    "!=",
-    "!==",
-    "?",
-    "=",
-    "+=",
-    "-=",
-    "/=",
-    "*=",
-    "%=",
-    ">>=",
-    "<<=",
-    ">>>=",
-    "|=",
-    "^=",
-    "&=",
-    "&&",
-    "||"
-]);
-
-var WHITESPACE_CHARS = makePredicate(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000"));
-
-var PUNC_BEFORE_EXPRESSION = makePredicate(characters("[{(,.;:"));
-
-var PUNC_CHARS = makePredicate(characters("[]{}(),;:"));
-
-var REGEXP_MODIFIERS = makePredicate(characters("gmsiy"));
-
-/* -----[ Tokenizer ]----- */
-
-// regexps adapted from http://xregexp.com/plugins/#unicode
-var UNICODE = {
-    letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),
-    non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),
-    space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),
-    connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")
-};
-
-function is_letter(code) {
-    return (code >= 97 && code <= 122)
-        || (code >= 65 && code <= 90)
-        || (code >= 0xaa && UNICODE.letter.test(String.fromCharCode(code)));
-};
-
-function is_digit(code) {
-    return code >= 48 && code <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9
-};
-
-function is_alphanumeric_char(code) {
-    return is_digit(code) || is_letter(code);
-};
-
-function is_unicode_combining_mark(ch) {
-    return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch);
-};
-
-function is_unicode_connector_punctuation(ch) {
-    return UNICODE.connector_punctuation.test(ch);
-};
-
-function is_identifier(name) {
-    return !RESERVED_WORDS(name) && /^[a-z_$][a-z0-9_$]*$/i.test(name);
-};
-
-function is_identifier_start(code) {
-    return code == 36 || code == 95 || is_letter(code);
-};
-
-function is_identifier_char(ch) {
-    var code = ch.charCodeAt(0);
-    return is_identifier_start(code)
-        || is_digit(code)
-        || code == 8204 // \u200c: zero-width non-joiner <ZWNJ>
-        || code == 8205 // \u200d: zero-width joiner <ZWJ> (in my ECMA-262 PDF, this is also 200c)
-        || is_unicode_combining_mark(ch)
-        || is_unicode_connector_punctuation(ch)
-    ;
-};
-
-function is_identifier_string(str){
-    var i = str.length;
-    if (i == 0) return false;
-    if (!is_identifier_start(str.charCodeAt(0))) return false;
-    while (--i >= 0) {
-        if (!is_identifier_char(str.charAt(i)))
-            return false;
-    }
-    return true;
-};
-
-function parse_js_number(num) {
-    if (RE_HEX_NUMBER.test(num)) {
-        return parseInt(num.substr(2), 16);
-    } else if (RE_OCT_NUMBER.test(num)) {
-        return parseInt(num.substr(1), 8);
-    } else if (RE_DEC_NUMBER.test(num)) {
-        return parseFloat(num);
-    }
-};
-
-function JS_Parse_Error(message, line, col, pos) {
-    this.message = message;
-    this.line = line;
-    this.col = col;
-    this.pos = pos;
-    this.stack = new Error().stack;
-};
-
-JS_Parse_Error.prototype.toString = function() {
-    return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack;
-};
-
-function js_error(message, filename, line, col, pos) {
-    throw new JS_Parse_Error(message, line, col, pos);
-};
-
-function is_token(token, type, val) {
-    return token.type == type && (val == null || token.value == val);
-};
-
-var EX_EOF = {};
-
-function tokenizer($TEXT, filename, html5_comments) {
-
-    var S = {
-        text            : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/\uFEFF/g, ''),
-        filename        : filename,
-        pos             : 0,
-        tokpos          : 0,
-        line            : 1,
-        tokline         : 0,
-        col             : 0,
-        tokcol          : 0,
-        newline_before  : false,
-        regex_allowed   : false,
-        comments_before : []
-    };
-
-    function peek() { return S.text.charAt(S.pos); };
-
-    function next(signal_eof, in_string) {
-        var ch = S.text.charAt(S.pos++);
-        if (signal_eof && !ch)
-            throw EX_EOF;
-        if (ch == "\n") {
-            S.newline_before = S.newline_before || !in_string;
-            ++S.line;
-            S.col = 0;
-        } else {
-            ++S.col;
-        }
-        return ch;
-    };
-
-    function forward(i) {
-        while (i-- > 0) next();
-    };
-
-    function looking_at(str) {
-        return S.text.substr(S.pos, str.length) == str;
-    };
-
-    function find(what, signal_eof) {
-        var pos = S.text.indexOf(what, S.pos);
-        if (signal_eof && pos == -1) throw EX_EOF;
-        return pos;
-    };
-
-    function start_token() {
-        S.tokline = S.line;
-        S.tokcol = S.col;
-        S.tokpos = S.pos;
-    };
-
-    var prev_was_dot = false;
-    function token(type, value, is_comment) {
-        S.regex_allowed = ((type == "operator" && !UNARY_POSTFIX(value)) ||
-                           (type == "keyword" && KEYWORDS_BEFORE_EXPRESSION(value)) ||
-                           (type == "punc" && PUNC_BEFORE_EXPRESSION(value)));
-        prev_was_dot = (type == "punc" && value == ".");
-        var ret = {
-            type   : type,
-            value  : value,
-            line   : S.tokline,
-            col    : S.tokcol,
-            pos    : S.tokpos,
-            endpos : S.pos,
-            nlb    : S.newline_before,
-            file   : filename
-        };
-        if (!is_comment) {
-            ret.comments_before = S.comments_before;
-            S.comments_before = [];
-            // make note of any newlines in the comments that came before
-            for (var i = 0, len = ret.comments_before.length; i < len; i++) {
-                ret.nlb = ret.nlb || ret.comments_before[i].nlb;
-            }
-        }
-        S.newline_before = false;
-        return new AST_Token(ret);
-    };
-
-    function skip_whitespace() {
-        while (WHITESPACE_CHARS(peek()))
-            next();
-    };
-
-    function read_while(pred) {
-        var ret = "", ch, i = 0;
-        while ((ch = peek()) && pred(ch, i++))
-            ret += next();
-        return ret;
-    };
-
-    function parse_error(err) {
-        js_error(err, filename, S.tokline, S.tokcol, S.tokpos);
-    };
-
-    function read_num(prefix) {
-        var has_e = false, after_e = false, has_x = false, has_dot = prefix == ".";
-        var num = read_while(function(ch, i){
-            var code = ch.charCodeAt(0);
-            switch (code) {
-              case 120: case 88: // xX
-                return has_x ? false : (has_x = true);
-              case 101: case 69: // eE
-                return has_x ? true : has_e ? false : (has_e = after_e = true);
-              case 45: // -
-                return after_e || (i == 0 && !prefix);
-              case 43: // +
-                return after_e;
-              case (after_e = false, 46): // .
-                return (!has_dot && !has_x && !has_e) ? (has_dot = true) : false;
-            }
-            return is_alphanumeric_char(code);
-        });
-        if (prefix) num = prefix + num;
-        var valid = parse_js_number(num);
-        if (!isNaN(valid)) {
-            return token("num", valid);
-        } else {
-            parse_error("Invalid syntax: " + num);
-        }
-    };
-
-    function read_escaped_char(in_string) {
-        var ch = next(true, in_string);
-        switch (ch.charCodeAt(0)) {
-          case 110 : return "\n";
-          case 114 : return "\r";
-          case 116 : return "\t";
-          case 98  : return "\b";
-          case 118 : return "\u000b"; // \v
-          case 102 : return "\f";
-          case 48  : return "\0";
-          case 120 : return String.fromCharCode(hex_bytes(2)); // \x
-          case 117 : return String.fromCharCode(hex_bytes(4)); // \u
-          case 10  : return ""; // newline
-          default  : return ch;
-        }
-    };
-
-    function hex_bytes(n) {
-        var num = 0;
-        for (; n > 0; --n) {
-            var digit = parseInt(next(true), 16);
-            if (isNaN(digit))
-                parse_error("Invalid hex-character pattern in string");
-            num = (num << 4) | digit;
-        }
-        return num;
-    };
-
-    var read_string = with_eof_error("Unterminated string constant", function(){
-        var quote = next(), ret = "";
-        for (;;) {
-            var ch = next(true);
-            if (ch == "\\") {
-                // read OctalEscapeSequence (XXX: deprecated if "strict mode")
-                // https://github.com/mishoo/UglifyJS/issues/178
-                var octal_len = 0, first = null;
-                ch = read_while(function(ch){
-                    if (ch >= "0" && ch <= "7") {
-                        if (!first) {
-                            first = ch;
-                            return ++octal_len;
-                        }
-                        else if (first <= "3" && octal_len <= 2) return ++octal_len;
-                        else if (first >= "4" && octal_len <= 1) return ++octal_len;
-                    }
-                    return false;
-                });
-                if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8));
-                else ch = read_escaped_char(true);
-            }
-            else if (ch == quote) break;
-            ret += ch;
-        }
-        return token("string", ret);
-    });
-
-    function skip_line_comment(type) {
-        var regex_allowed = S.regex_allowed;
-        var i = find("\n"), ret;
-        if (i == -1) {
-            ret = S.text.substr(S.pos);
-            S.pos = S.text.length;
-        } else {
-            ret = S.text.substring(S.pos, i);
-            S.pos = i;
-        }
-        S.comments_before.push(token(type, ret, true));
-        S.regex_allowed = regex_allowed;
-        return next_token();
-    };
-
-    var skip_multiline_comment = with_eof_error("Unterminated multiline comment", function(){
-        var regex_allowed = S.regex_allowed;
-        var i = find("*/", true);
-        var text = S.text.substring(S.pos, i);
-        var a = text.split("\n"), n = a.length;
-        // update stream position
-        S.pos = i + 2;
-        S.line += n - 1;
-        if (n > 1) S.col = a[n - 1].length;
-        else S.col += a[n - 1].length;
-        S.col += 2;
-        var nlb = S.newline_before = S.newline_before || text.indexOf("\n") >= 0;
-        S.comments_before.push(token("comment2", text, true));
-        S.regex_allowed = regex_allowed;
-        S.newline_before = nlb;
-        return next_token();
-    });
-
-    function read_name() {
-        var backslash = false, name = "", ch, escaped = false, hex;
-        while ((ch = peek()) != null) {
-            if (!backslash) {
-                if (ch == "\\") escaped = backslash = true, next();
-                else if (is_identifier_char(ch)) name += next();
-                else break;
-            }
-            else {
-                if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX");
-                ch = read_escaped_char();
-                if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier");
-                name += ch;
-                backslash = false;
-            }
-        }
-        if (KEYWORDS(name) && escaped) {
-            hex = name.charCodeAt(0).toString(16).toUpperCase();
-            name = "\\u" + "0000".substr(hex.length) + hex + name.slice(1);
-        }
-        return name;
-    };
-
-    var read_regexp = with_eof_error("Unterminated regular expression", function(regexp){
-        var prev_backslash = false, ch, in_class = false;
-        while ((ch = next(true))) if (prev_backslash) {
-            regexp += "\\" + ch;
-            prev_backslash = false;
-        } else if (ch == "[") {
-            in_class = true;
-            regexp += ch;
-        } else if (ch == "]" && in_class) {
-            in_class = false;
-            regexp += ch;
-        } else if (ch == "/" && !in_class) {
-            break;
-        } else if (ch == "\\") {
-            prev_backslash = true;
-        } else {
-            regexp += ch;
-        }
-        var mods = read_name();
-        return token("regexp", new RegExp(regexp, mods));
-    });
-
-    function read_operator(prefix) {
-        function grow(op) {
-            if (!peek()) return op;
-            var bigger = op + peek();
-            if (OPERATORS(bigger)) {
-                next();
-                return grow(bigger);
-            } else {
-                return op;
-            }
-        };
-        return token("operator", grow(prefix || next()));
-    };
-
-    function handle_slash() {
-        next();
-        switch (peek()) {
-          case "/":
-            next();
-            return skip_line_comment("comment1");
-          case "*":
-            next();
-            return skip_multiline_comment();
-        }
-        return S.regex_allowed ? read_regexp("") : read_operator("/");
-    };
-
-    function handle_dot() {
-        next();
-        return is_digit(peek().charCodeAt(0))
-            ? read_num(".")
-            : token("punc", ".");
-    };
-
-    function read_word() {
-        var word = read_name();
-        if (prev_was_dot) return token("name", word);
-        return KEYWORDS_ATOM(word) ? token("atom", word)
-            : !KEYWORDS(word) ? token("name", word)
-            : OPERATORS(word) ? token("operator", word)
-            : token("keyword", word);
-    };
-
-    function with_eof_error(eof_error, cont) {
-        return function(x) {
-            try {
-                return cont(x);
-            } catch(ex) {
-                if (ex === EX_EOF) parse_error(eof_error);
-                else throw ex;
-            }
-        };
-    };
-
-    function next_token(force_regexp) {
-        if (force_regexp != null)
-            return read_regexp(force_regexp);
-        skip_whitespace();
-        start_token();
-        if (html5_comments) {
-            if (looking_at("<!--")) {
-                forward(4);
-                return skip_line_comment("comment3");
-            }
-            if (looking_at("-->") && S.newline_before) {
-                forward(3);
-                return skip_line_comment("comment4");
-            }
-        }
-        var ch = peek();
-        if (!ch) return token("eof");
-        var code = ch.charCodeAt(0);
-        switch (code) {
-          case 34: case 39: return read_string();
-          case 46: return handle_dot();
-          case 47: return handle_slash();
-        }
-        if (is_digit(code)) return read_num();
-        if (PUNC_CHARS(ch)) return token("punc", next());
-        if (OPERATOR_CHARS(ch)) return read_operator();
-        if (code == 92 || is_identifier_start(code)) return read_word();
-        parse_error("Unexpected character '" + ch + "'");
-    };
-
-    next_token.context = function(nc) {
-        if (nc) S = nc;
-        return S;
-    };
-
-    return next_token;
-
-};
-
-/* -----[ Parser (constants) ]----- */
-
-var UNARY_PREFIX = makePredicate([
-    "typeof",
-    "void",
-    "delete",
-    "--",
-    "++",
-    "!",
-    "~",
-    "-",
-    "+"
-]);
-
-var UNARY_POSTFIX = makePredicate([ "--", "++" ]);
-
-var ASSIGNMENT = makePredicate([ "=", "+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&=" ]);
-
-var PRECEDENCE = (function(a, ret){
-    for (var i = 0; i < a.length; ++i) {
-        var b = a[i];
-        for (var j = 0; j < b.length; ++j) {
-            ret[b[j]] = i + 1;
-        }
-    }
-    return ret;
-})(
-    [
-        ["||"],
-        ["&&"],
-        ["|"],
-        ["^"],
-        ["&"],
-        ["==", "===", "!=", "!=="],
-        ["<", ">", "<=", ">=", "in", "instanceof"],
-        [">>", "<<", ">>>"],
-        ["+", "-"],
-        ["*", "/", "%"]
-    ],
-    {}
-);
-
-var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]);
-
-var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]);
-
-/* -----[ Parser ]----- */
-
-function parse($TEXT, options) {
-
-    options = defaults(options, {
-        strict         : false,
-        filename       : null,
-        toplevel       : null,
-        expression     : false,
-        html5_comments : true,
-    });
-
-    var S = {
-        input         : (typeof $TEXT == "string"
-                         ? tokenizer($TEXT, options.filename,
-                                     options.html5_comments)
-                         : $TEXT),
-        token         : null,
-        prev          : null,
-        peeked        : null,
-        in_function   : 0,
-        in_directives : true,
-        in_loop       : 0,
-        labels        : []
-    };
-
-    S.token = next();
-
-    function is(type, value) {
-        return is_token(S.token, type, value);
-    };
-
-    function peek() { return S.peeked || (S.peeked = S.input()); };
-
-    function next() {
-        S.prev = S.token;
-        if (S.peeked) {
-            S.token = S.peeked;
-            S.peeked = null;
-        } else {
-            S.token = S.input();
-        }
-        S.in_directives = S.in_directives && (
-            S.token.type == "string" || is("punc", ";")
-        );
-        return S.token;
-    };
-
-    function prev() {
-        return S.prev;
-    };
-
-    function croak(msg, line, col, pos) {
-        var ctx = S.input.context();
-        js_error(msg,
-                 ctx.filename,
-                 line != null ? line : ctx.tokline,
-                 col != null ? col : ctx.tokcol,
-                 pos != null ? pos : ctx.tokpos);
-    };
-
-    function token_error(token, msg) {
-        croak(msg, token.line, token.col);
-    };
-
-    function unexpected(token) {
-        if (token == null)
-            token = S.token;
-        token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")");
-    };
-
-    function expect_token(type, val) {
-        if (is(type, val)) {
-            return next();
-        }
-        token_error(S.token, "Unexpected token " + S.token.type + " «" + S.token.value + "»" + ", expected " + type + " «" + val + "»");
-    };
-
-    function expect(punc) { return expect_token("punc", punc); };
-
-    function can_insert_semicolon() {
-        return !options.strict && (
-            S.token.nlb || is("eof") || is("punc", "}")
-        );
-    };
-
-    function semicolon() {
-        if (is("punc", ";")) next();
-        else if (!can_insert_semicolon()) unexpected();
-    };
-
-    function parenthesised() {
-        expect("(");
-        var exp = expression(true);
-        expect(")");
-        return exp;
-    };
-
-    function embed_tokens(parser) {
-        return function() {
-            var start = S.token;
-            var expr = parser();
-            var end = prev();
-            expr.start = start;
-            expr.end = end;
-            return expr;
-        };
-    };
-
-    function handle_regexp() {
-        if (is("operator", "/") || is("operator", "/=")) {
-            S.peeked = null;
-            S.token = S.input(S.token.value.substr(1)); // force regexp
-        }
-    };
-
-    var statement = embed_tokens(function() {
-        var tmp;
-        handle_regexp();
-        switch (S.token.type) {
-          case "string":
-            var dir = S.in_directives, stat = simple_statement();
-            // XXXv2: decide how to fix directives
-            if (dir && stat.body instanceof AST_String && !is("punc", ","))
-                return new AST_Directive({ value: stat.body.value });
-            return stat;
-          case "num":
-          case "regexp":
-          case "operator":
-          case "atom":
-            return simple_statement();
-
-          case "name":
-            return is_token(peek(), "punc", ":")
-                ? labeled_statement()
-                : simple_statement();
-
-          case "punc":
-            switch (S.token.value) {
-              case "{":
-                return new AST_BlockStatement({
-                    start : S.token,
-                    body  : block_(),
-                    end   : prev()
-                });
-              case "[":
-              case "(":
-                return simple_statement();
-              case ";":
-                next();
-                return new AST_EmptyStatement();
-              default:
-                unexpected();
-            }
-
-          case "keyword":
-            switch (tmp = S.token.value, next(), tmp) {
-              case "break":
-                return break_cont(AST_Break);
-
-              case "continue":
-                return break_cont(AST_Continue);
-
-              case "debugger":
-                semicolon();
-                return new AST_Debugger();
-
-              case "do":
-                return new AST_Do({
-                    body      : in_loop(statement),
-                    condition : (expect_token("keyword", "while"), tmp = parenthesised(), semicolon(), tmp)
-                });
-
-              case "while":
-                return new AST_While({
-                    condition : parenthesised(),
-                    body      : in_loop(statement)
-                });
-
-              case "for":
-                return for_();
-
-              case "function":
-                return function_(AST_Defun);
-
-              case "if":
-                return if_();
-
-              case "return":
-                if (S.in_function == 0)
-                    croak("'return' outside of function");
-                return new AST_Return({
-                    value: ( is("punc", ";")
-                             ? (next(), null)
-                             : can_insert_semicolon()
-                             ? null
-                             : (tmp = expression(true), semicolon(), tmp) )
-                });
-
-              case "switch":
-                return new AST_Switch({
-                    expression : parenthesised(),
-                    body       : in_loop(switch_body_)
-                });
-
-              case "throw":
-                if (S.token.nlb)
-                    croak("Illegal newline after 'throw'");
-                return new AST_Throw({
-                    value: (tmp = expression(true), semicolon(), tmp)
-                });
-
-              case "try":
-                return try_();
-
-              case "var":
-                return tmp = var_(), semicolon(), tmp;
-
-              case "const":
-                return tmp = const_(), semicolon(), tmp;
-
-              case "with":
-                return new AST_With({
-                    expression : parenthesised(),
-                    body       : statement()
-                });
-
-              default:
-                unexpected();
-            }
-        }
-    });
-
-    function labeled_statement() {
-        var label = as_symbol(AST_Label);
-        if (find_if(function(l){ return l.name == label.name }, S.labels)) {
-            // ECMA-262, 12.12: An ECMAScript program is considered
-            // syntactically incorrect if it contains a
-            // LabelledStatement that is enclosed by a
-            // LabelledStatement with the same Identifier as label.
-            croak("Label " + label.name + " defined twice");
-        }
-        expect(":");
-        S.labels.push(label);
-        var stat = statement();
-        S.labels.pop();
-        if (!(stat instanceof AST_IterationStatement)) {
-            // check for `continue` that refers to this label.
-            // those should be reported as syntax errors.
-            // https://github.com/mishoo/UglifyJS2/issues/287
-            label.references.forEach(function(ref){
-                if (ref instanceof AST_Continue) {
-                    ref = ref.label.start;
-                    croak("Continue label `" + label.name + "` refers to non-IterationStatement.",
-                          ref.line, ref.col, ref.pos);
-                }
-            });
-        }
-        return new AST_LabeledStatement({ body: stat, label: label });
-    };
-
-    function simple_statement(tmp) {
-        return new AST_SimpleStatement({ body: (tmp = expression(true), semicolon(), tmp) });
-    };
-
-    function break_cont(type) {
-        var label = null, ldef;
-        if (!can_insert_semicolon()) {
-            label = as_symbol(AST_LabelRef, true);
-        }
-        if (label != null) {
-            ldef = find_if(function(l){ return l.name == label.name }, S.labels);
-            if (!ldef)
-                croak("Undefined label " + label.name);
-            label.thedef = ldef;
-        }
-        else if (S.in_loop == 0)
-            croak(type.TYPE + " not inside a loop or switch");
-        semicolon();
-        var stat = new type({ label: label });
-        if (ldef) ldef.references.push(stat);
-        return stat;
-    };
-
-    function for_() {
-        expect("(");
-        var init = null;
-        if (!is("punc", ";")) {
-            init = is("keyword", "var")
-                ? (next(), var_(true))
-                : expression(true, true);
-            if (is("operator", "in")) {
-                if (init instanceof AST_Var && init.definitions.length > 1)
-                    croak("Only one variable declaration allowed in for..in loop");
-                next();
-                return for_in(init);
-            }
-        }
-        return regular_for(init);
-    };
-
-    function regular_for(init) {
-        expect(";");
-        var test = is("punc", ";") ? null : expression(true);
-        expect(";");
-        var step = is("punc", ")") ? null : expression(true);
-        expect(")");
-        return new AST_For({
-            init      : init,
-            condition : test,
-            step      : step,
-            body      : in_loop(statement)
-        });
-    };
-
-    function for_in(init) {
-        var lhs = init instanceof AST_Var ? init.definitions[0].name : null;
-        var obj = expression(true);
-        expect(")");
-        return new AST_ForIn({
-            init   : init,
-            name   : lhs,
-            object : obj,
-            body   : in_loop(statement)
-        });
-    };
-
-    var function_ = function(ctor) {
-        var in_statement = ctor === AST_Defun;
-        var name = is("name") ? as_symbol(in_statement ? AST_SymbolDefun : AST_SymbolLambda) : null;
-        if (in_statement && !name)
-            unexpected();
-        expect("(");
-        return new ctor({
-            name: name,
-            argnames: (function(first, a){
-                while (!is("punc", ")")) {
-                    if (first) first = false; else expect(",");
-                    a.push(as_symbol(AST_SymbolFunarg));
-                }
-                next();
-                return a;
-            })(true, []),
-            body: (function(loop, labels){
-                ++S.in_function;
-                S.in_directives = true;
-                S.in_loop = 0;
-                S.labels = [];
-                var a = block_();
-                --S.in_function;
-                S.in_loop = loop;
-                S.labels = labels;
-                return a;
-            })(S.in_loop, S.labels)
-        });
-    };
-
-    function if_() {
-        var cond = parenthesised(), body = statement(), belse = null;
-        if (is("keyword", "else")) {
-            next();
-            belse = statement();
-        }
-        return new AST_If({
-            condition   : cond,
-            body        : body,
-            alternative : belse
-        });
-    };
-
-    function block_() {
-        expect("{");
-        var a = [];
-        while (!is("punc", "}")) {
-            if (is("eof")) unexpected();
-            a.push(statement());
-        }
-        next();
-        return a;
-    };
-
-    function switch_body_() {
-        expect("{");
-        var a = [], cur = null, branch = null, tmp;
-        while (!is("punc", "}")) {
-            if (is("eof")) unexpected();
-            if (is("keyword", "case")) {
-                if (branch) branch.end = prev();
-                cur = [];
-                branch = new AST_Case({
-                    start      : (tmp = S.token, next(), tmp),
-                    expression : expression(true),
-                    body       : cur
-                });
-                a.push(branch);
-                expect(":");
-            }
-            else if (is("keyword", "default")) {
-                if (branch) branch.end = prev();
-                cur = [];
-                branch = new AST_Default({
-                    start : (tmp = S.token, next(), expect(":"), tmp),
-                    body  : cur
-                });
-                a.push(branch);
-            }
-            else {
-                if (!cur) unexpected();
-                cur.push(statement());
-            }
-        }
-        if (branch) branch.end = prev();
-        next();
-        return a;
-    };
-
-    function try_() {
-        var body = block_(), bcatch = null, bfinally = null;
-        if (is("keyword", "catch")) {
-            var start = S.token;
-            next();
-            expect("(");
-            var name = as_symbol(AST_SymbolCatch);
-            expect(")");
-            bcatch = new AST_Catch({
-                start   : start,
-                argname : name,
-                body    : block_(),
-                end     : prev()
-            });
-        }
-        if (is("keyword", "finally")) {
-            var start = S.token;
-            next();
-            bfinally = new AST_Finally({
-                start : start,
-                body  : block_(),
-                end   : prev()
-            });
-        }
-        if (!bcatch && !bfinally)
-            croak("Missing catch/finally blocks");
-        return new AST_Try({
-            body     : body,
-            bcatch   : bcatch,
-            bfinally : bfinally
-        });
-    };
-
-    function vardefs(no_in, in_const) {
-        var a = [];
-        for (;;) {
-            a.push(new AST_VarDef({
-                start : S.token,
-                name  : as_symbol(in_const ? AST_SymbolConst : AST_SymbolVar),
-                value : is("operator", "=") ? (next(), expression(false, no_in)) : null,
-                end   : prev()
-            }));
-            if (!is("punc", ","))
-                break;
-            next();
-        }
-        return a;
-    };
-
-    var var_ = function(no_in) {
-        return new AST_Var({
-            start       : prev(),
-            definitions : vardefs(no_in, false),
-            end         : prev()
-        });
-    };
-
-    var const_ = function() {
-        return new AST_Const({
-            start       : prev(),
-            definitions : vardefs(false, true),
-            end         : prev()
-        });
-    };
-
-    var new_ = function() {
-        var start = S.token;
-        expect_token("operator", "new");
-        var newexp = expr_atom(false), args;
-        if (is("punc", "(")) {
-            next();
-            args = expr_list(")");
-        } else {
-            args = [];
-        }
-        return subscripts(new AST_New({
-            start      : start,
-            expression : newexp,
-            args       : args,
-            end        : prev()
-        }), true);
-    };
-
-    function as_atom_node() {
-        var tok = S.token, ret;
-        switch (tok.type) {
-          case "name":
-          case "keyword":
-            ret = _make_symbol(AST_SymbolRef);
-            break;
-          case "num":
-            ret = new AST_Number({ start: tok, end: tok, value: tok.value });
-            break;
-          case "string":
-            ret = new AST_String({ start: tok, end: tok, value: tok.value });
-            break;
-          case "regexp":
-            ret = new AST_RegExp({ start: tok, end: tok, value: tok.value });
-            break;
-          case "atom":
-            switch (tok.value) {
-              case "false":
-                ret = new AST_False({ start: tok, end: tok });
-                break;
-              case "true":
-                ret = new AST_True({ start: tok, end: tok });
-                break;
-              case "null":
-                ret = new AST_Null({ start: tok, end: tok });
-                break;
-            }
-            break;
-        }
-        next();
-        return ret;
-    };
-
-    var expr_atom = function(allow_calls) {
-        if (is("operator", "new")) {
-            return new_();
-        }
-        var start = S.token;
-        if (is("punc")) {
-            switch (start.value) {
-              case "(":
-                next();
-                var ex = expression(true);
-                ex.start = start;
-                ex.end = S.token;
-                expect(")");
-                return subscripts(ex, allow_calls);
-              case "[":
-                return subscripts(array_(), allow_calls);
-              case "{":
-                return subscripts(object_(), allow_calls);
-            }
-            unexpected();
-        }
-        if (is("keyword", "function")) {
-            next();
-            var func = function_(AST_Function);
-            func.start = start;
-            func.end = prev();
-            return subscripts(func, allow_calls);
-        }
-        if (ATOMIC_START_TOKEN[S.token.type]) {
-            return subscripts(as_atom_node(), allow_calls);
-        }
-        unexpected();
-    };
-
-    function expr_list(closing, allow_trailing_comma, allow_empty) {
-        var first = true, a = [];
-        while (!is("punc", closing)) {
-            if (first) first = false; else expect(",");
-            if (allow_trailing_comma && is("punc", closing)) break;
-            if (is("punc", ",") && allow_empty) {
-                a.push(new AST_Hole({ start: S.token, end: S.token }));
-            } else {
-                a.push(expression(false));
-            }
-        }
-        next();
-        return a;
-    };
-
-    var array_ = embed_tokens(function() {
-        expect("[");
-        return new AST_Array({
-            elements: expr_list("]", !options.strict, true)
-        });
-    });
-
-    var object_ = embed_tokens(function() {
-        expect("{");
-        var first = true, a = [];
-        while (!is("punc", "}")) {
-            if (first) first = false; else expect(",");
-            if (!options.strict && is("punc", "}"))
-                // allow trailing comma
-                break;
-            var start = S.token;
-            var type = start.type;
-            var name = as_property_name();
-            if (type == "name" && !is("punc", ":")) {
-                if (name == "get") {
-                    a.push(new AST_ObjectGetter({
-                        start : start,
-                        key   : as_atom_node(),
-                        value : function_(AST_Accessor),
-                        end   : prev()
-                    }));
-                    continue;
-                }
-                if (name == "set") {
-                    a.push(new AST_ObjectSetter({
-                        start : start,
-                        key   : as_atom_node(),
-                        value : function_(AST_Accessor),
-                        end   : prev()
-                    }));
-                    continue;
-                }
-            }
-            expect(":");
-            a.push(new AST_ObjectKeyVal({
-                start : start,
-                key   : name,
-                value : expression(false),
-                end   : prev()
-            }));
-        }
-        next();
-        return new AST_Object({ properties: a });
-    });
-
-    function as_property_name() {
-        var tmp = S.token;
-        next();
-        switch (tmp.type) {
-          case "num":
-          case "string":
-          case "name":
-          case "operator":
-          case "keyword":
-          case "atom":
-            return tmp.value;
-          default:
-            unexpected();
-        }
-    };
-
-    function as_name() {
-        var tmp = S.token;
-        next();
-        switch (tmp.type) {
-          case "name":
-          case "operator":
-          case "keyword":
-          case "atom":
-            return tmp.value;
-          default:
-            unexpected();
-        }
-    };
-
-    function _make_symbol(type) {
-        var name = S.token.value;
-        return new (name == "this" ? AST_This : type)({
-            name  : String(name),
-            start : S.token,
-            end   : S.token
-        });
-    };
-
-    function as_symbol(type, noerror) {
-        if (!is("name")) {
-            if (!noerror) croak("Name expected");
-            return null;
-        }
-        var sym = _make_symbol(type);
-        next();
-        return sym;
-    };
-
-    var subscripts = function(expr, allow_calls) {
-        var start = expr.start;
-        if (is("punc", ".")) {
-            next();
-            return subscripts(new AST_Dot({
-                start      : start,
-                expression : expr,
-                property   : as_name(),
-                end        : prev()
-            }), allow_calls);
-        }
-        if (is("punc", "[")) {
-            next();
-            var prop = expression(true);
-            expect("]");
-            return subscripts(new AST_Sub({
-                start      : start,
-                expression : expr,
-                property   : prop,
-                end        : prev()
-            }), allow_calls);
-        }
-        if (allow_calls && is("punc", "(")) {
-            next();
-            return subscripts(new AST_Call({
-                start      : start,
-                expression : expr,
-                args       : expr_list(")"),
-                end        : prev()
-            }), true);
-        }
-        return expr;
-    };
-
-    var maybe_unary = function(allow_calls) {
-        var start = S.token;
-        if (is("operator") && UNARY_PREFIX(start.value)) {
-            next();
-            handle_regexp();
-            var ex = make_unary(AST_UnaryPrefix, start.value, maybe_unary(allow_calls));
-            ex.start = start;
-            ex.end = prev();
-            return ex;
-        }
-        var val = expr_atom(allow_calls);
-        while (is("operator") && UNARY_POSTFIX(S.token.value) && !S.token.nlb) {
-            val = make_unary(AST_UnaryPostfix, S.token.value, val);
-            val.start = start;
-            val.end = S.token;
-            next();
-        }
-        return val;
-    };
-
-    function make_unary(ctor, op, expr) {
-        if ((op == "++" || op == "--") && !is_assignable(expr))
-            croak("Invalid use of " + op + " operator");
-        return new ctor({ operator: op, expression: expr });
-    };
-
-    var expr_op = function(left, min_prec, no_in) {
-        var op = is("operator") ? S.token.value : null;
-        if (op == "in" && no_in) op = null;
-        var prec = op != null ? PRECEDENCE[op] : null;
-        if (prec != null && prec > min_prec) {
-            next();
-            var right = expr_op(maybe_unary(true), prec, no_in);
-            return expr_op(new AST_Binary({
-                start    : left.start,
-                left     : left,
-                operator : op,
-                right    : right,
-                end      : right.end
-            }), min_prec, no_in);
-        }
-        return left;
-    };
-
-    function expr_ops(no_in) {
-        return expr_op(maybe_unary(true), 0, no_in);
-    };
-
-    var maybe_conditional = function(no_in) {
-        var start = S.token;
-        var expr = expr_ops(no_in);
-        if (is("operator", "?")) {
-            next();
-            var yes = expression(false);
-            expect(":");
-            return new AST_Conditional({
-                start       : start,
-                condition   : expr,
-                consequent  : yes,
-                alternative : expression(false, no_in),
-                end         : prev()
-            });
-        }
-        return expr;
-    };
-
-    function is_assignable(expr) {
-        if (!options.strict) return true;
-        if (expr instanceof AST_This) return false;
-        return (expr instanceof AST_PropAccess || expr instanceof AST_Symbol);
-    };
-
-    var maybe_assign = function(no_in) {
-        var start = S.token;
-        var left = maybe_conditional(no_in), val = S.token.value;
-        if (is("operator") && ASSIGNMENT(val)) {
-            if (is_assignable(left)) {
-                next();
-                return new AST_Assign({
-                    start    : start,
-                    left     : left,
-                    operator : val,
-                    right    : maybe_assign(no_in),
-                    end      : prev()
-                });
-            }
-            croak("Invalid assignment");
-        }
-        return left;
-    };
-
-    var expression = function(commas, no_in) {
-        var start = S.token;
-        var expr = maybe_assign(no_in);
-        if (commas && is("punc", ",")) {
-            next();
-            return new AST_Seq({
-                start  : start,
-                car    : expr,
-                cdr    : expression(true, no_in),
-                end    : peek()
-            });
-        }
-        return expr;
-    };
-
-    function in_loop(cont) {
-        ++S.in_loop;
-        var ret = cont();
-        --S.in_loop;
-        return ret;
-    };
-
-    if (options.expression) {
-        return expression(true);
-    }
-
-    return (function(){
-        var start = S.token;
-        var body = [];
-        while (!is("eof"))
-            body.push(statement());
-        var end = prev();
-        var toplevel = options.toplevel;
-        if (toplevel) {
-            toplevel.body = toplevel.body.concat(body);
-            toplevel.end = end;
-        } else {
-            toplevel = new AST_Toplevel({ start: start, body: body, end: end });
-        }
-        return toplevel;
-    })();
-
-};
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-// Tree transformer helpers.
-
-function TreeTransformer(before, after) {
-    TreeWalker.call(this);
-    this.before = before;
-    this.after = after;
-}
-TreeTransformer.prototype = new TreeWalker;
-
-(function(undefined){
-
-    function _(node, descend) {
-        node.DEFMETHOD("transform", function(tw, in_list){
-            var x, y;
-            tw.push(this);
-            if (tw.before) x = tw.before(this, descend, in_list);
-            if (x === undefined) {
-                if (!tw.after) {
-                    x = this;
-                    descend(x, tw);
-                } else {
-                    tw.stack[tw.stack.length - 1] = x = this.clone();
-                    descend(x, tw);
-                    y = tw.after(x, in_list);
-                    if (y !== undefined) x = y;
-                }
-            }
-            tw.pop();
-            return x;
-        });
-    };
-
-    function do_list(list, tw) {
-        return MAP(list, function(node){
-            return node.transform(tw, true);
-        });
-    };
-
-    _(AST_Node, noop);
-
-    _(AST_LabeledStatement, function(self, tw){
-        self.label = self.label.transform(tw);
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_SimpleStatement, function(self, tw){
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_Block, function(self, tw){
-        self.body = do_list(self.body, tw);
-    });
-
-    _(AST_DWLoop, function(self, tw){
-        self.condition = self.condition.transform(tw);
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_For, function(self, tw){
-        if (self.init) self.init = self.init.transform(tw);
-        if (self.condition) self.condition = self.condition.transform(tw);
-        if (self.step) self.step = self.step.transform(tw);
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_ForIn, function(self, tw){
-        self.init = self.init.transform(tw);
-        self.object = self.object.transform(tw);
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_With, function(self, tw){
-        self.expression = self.expression.transform(tw);
-        self.body = self.body.transform(tw);
-    });
-
-    _(AST_Exit, function(self, tw){
-        if (self.value) self.value = self.value.transform(tw);
-    });
-
-    _(AST_LoopControl, function(self, tw){
-        if (self.label) self.label = self.label.transform(tw);
-    });
-
-    _(AST_If, function(self, tw){
-        self.condition = self.condition.transform(tw);
-        self.body = self.body.transform(tw);
-        if (self.alternative) self.alternative = self.alternative.transform(tw);
-    });
-
-    _(AST_Switch, function(self, tw){
-        self.expression = self.expression.transform(tw);
-        self.body = do_list(self.body, tw);
-    });
-
-    _(AST_Case, function(self, tw){
-        self.expression = self.expression.transform(tw);
-        self.body = do_list(self.body, tw);
-    });
-
-    _(AST_Try, function(self, tw){
-        self.body = do_list(self.body, tw);
-        if (self.bcatch) self.bcatch = self.bcatch.transform(tw);
-        if (self.bfinally) self.bfinally = self.bfinally.transform(tw);
-    });
-
-    _(AST_Catch, function(self, tw){
-        self.argname = self.argname.transform(tw);
-        self.body = do_list(self.body, tw);
-    });
-
-    _(AST_Definitions, function(self, tw){
-        self.definitions = do_list(self.definitions, tw);
-    });
-
-    _(AST_VarDef, function(self, tw){
-        self.name = self.name.transform(tw);
-        if (self.value) self.value = self.value.transform(tw);
-    });
-
-    _(AST_Lambda, function(self, tw){
-        if (self.name) self.name = self.name.transform(tw);
-        self.argnames = do_list(self.argnames, tw);
-        self.body = do_list(self.body, tw);
-    });
-
-    _(AST_Call, function(self, tw){
-        self.expression = self.expression.transform(tw);
-        self.args = do_list(self.args, tw);
-    });
-
-    _(AST_Seq, function(self, tw){
-        self.car = self.car.transform(tw);
-        self.cdr = self.cdr.transform(tw);
-    });
-
-    _(AST_Dot, function(self, tw){
-        self.expression = self.expression.transform(tw);
-    });
-
-    _(AST_Sub, function(self, tw){
-        self.expression = self.expression.transform(tw);
-        self.property = self.property.transform(tw);
-    });
-
-    _(AST_Unary, function(self, tw){
-        self.expression = self.expression.transform(tw);
-    });
-
-    _(AST_Binary, function(self, tw){
-        self.left = self.left.transform(tw);
-        self.right = self.right.transform(tw);
-    });
-
-    _(AST_Conditional, function(self, tw){
-        self.condition = self.condition.transform(tw);
-        self.consequent = self.consequent.transform(tw);
-        self.alternative = self.alternative.transform(tw);
-    });
-
-    _(AST_Array, function(self, tw){
-        self.elements = do_list(self.elements, tw);
-    });
-
-    _(AST_Object, function(self, tw){
-        self.properties = do_list(self.properties, tw);
-    });
-
-    _(AST_ObjectProperty, function(self, tw){
-        self.value = self.value.transform(tw);
-    });
-
-})();
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-function SymbolDef(scope, index, orig) {
-    this.name = orig.name;
-    this.orig = [ orig ];
-    this.scope = scope;
-    this.references = [];
-    this.global = false;
-    this.mangled_name = null;
-    this.undeclared = false;
-    this.constant = false;
-    this.index = index;
-};
-
-SymbolDef.prototype = {
-    unmangleable: function(options) {
-        return (this.global && !(options && options.toplevel))
-            || this.undeclared
-            || (!(options && options.eval) && (this.scope.uses_eval || this.scope.uses_with));
-    },
-    mangle: function(options) {
-        if (!this.mangled_name && !this.unmangleable(options)) {
-            var s = this.scope;
-            if (!options.screw_ie8 && this.orig[0] instanceof AST_SymbolLambda)
-                s = s.parent_scope;
-            this.mangled_name = s.next_mangled(options, this);
-        }
-    }
-};
-
-AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){
-    options = defaults(options, {
-        screw_ie8: false
-    });
-
-    // pass 1: setup scope chaining and handle definitions
-    var self = this;
-    var scope = self.parent_scope = null;
-    var defun = null;
-    var nesting = 0;
-    var tw = new TreeWalker(function(node, descend){
-        if (options.screw_ie8 && node instanceof AST_Catch) {
-            var save_scope = scope;
-            scope = new AST_Scope(node);
-            scope.init_scope_vars(nesting);
-            scope.parent_scope = save_scope;
-            descend();
-            scope = save_scope;
-            return true;
-        }
-        if (node instanceof AST_Scope) {
-            node.init_scope_vars(nesting);
-            var save_scope = node.parent_scope = scope;
-            var save_defun = defun;
-            defun = scope = node;
-            ++nesting; descend(); --nesting;
-            scope = save_scope;
-            defun = save_defun;
-            return true;        // don't descend again in TreeWalker
-        }
-        if (node instanceof AST_Directive) {
-            node.scope = scope;
-            push_uniq(scope.directives, node.value);
-            return true;
-        }
-        if (node instanceof AST_With) {
-            for (var s = scope; s; s = s.parent_scope)
-                s.uses_with = true;
-            return;
-        }
-        if (node instanceof AST_Symbol) {
-            node.scope = scope;
-        }
-        if (node instanceof AST_SymbolLambda) {
-            defun.def_function(node);
-        }
-        else if (node instanceof AST_SymbolDefun) {
-            // Careful here, the scope where this should be defined is
-            // the parent scope.  The reason is that we enter a new
-            // scope when we encounter the AST_Defun node (which is
-            // instanceof AST_Scope) but we get to the symbol a bit
-            // later.
-            (node.scope = defun.parent_scope).def_function(node);
-        }
-        else if (node instanceof AST_SymbolVar
-                 || node instanceof AST_SymbolConst) {
-            var def = defun.def_variable(node);
-            def.constant = node instanceof AST_SymbolConst;
-            def.init = tw.parent().value;
-        }
-        else if (node instanceof AST_SymbolCatch) {
-            (options.screw_ie8 ? scope : defun)
-                .def_variable(node);
-        }
-    });
-    self.walk(tw);
-
-    // pass 2: find back references and eval
-    var func = null;
-    var globals = self.globals = new Dictionary();
-    var tw = new TreeWalker(function(node, descend){
-        if (node instanceof AST_Lambda) {
-            var prev_func = func;
-            func = node;
-            descend();
-            func = prev_func;
-            return true;
-        }
-        if (node instanceof AST_SymbolRef) {
-            var name = node.name;
-            var sym = node.scope.find_variable(name);
-            if (!sym) {
-                var g;
-                if (globals.has(name)) {
-                    g = globals.get(name);
-                } else {
-                    g = new SymbolDef(self, globals.size(), node);
-                    g.undeclared = true;
-                    g.global = true;
-                    globals.set(name, g);
-                }
-                node.thedef = g;
-                if (name == "eval" && tw.parent() instanceof AST_Call) {
-                    for (var s = node.scope; s && !s.uses_eval; s = s.parent_scope)
-                        s.uses_eval = true;
-                }
-                if (func && name == "arguments") {
-                    func.uses_arguments = true;
-                }
-            } else {
-                node.thedef = sym;
-            }
-            node.reference();
-            return true;
-        }
-    });
-    self.walk(tw);
-});
-
-AST_Scope.DEFMETHOD("init_scope_vars", function(nesting){
-    this.directives = [];     // contains the directives defined in this scope, i.e. "use strict"
-    this.variables = new Dictionary(); // map name to AST_SymbolVar (variables defined in this scope; includes functions)
-    this.functions = new Dictionary(); // map name to AST_SymbolDefun (functions defined in this scope)
-    this.uses_with = false;   // will be set to true if this or some nested scope uses the `with` statement
-    this.uses_eval = false;   // will be set to true if this or nested scope uses the global `eval`
-    this.parent_scope = null; // the parent scope
-    this.enclosed = [];       // a list of variables from this or outer scope(s) that are referenced from this or inner scopes
-    this.cname = -1;          // the current index for mangling functions/variables
-    this.nesting = nesting;   // the nesting level of this scope (0 means toplevel)
-});
-
-AST_Scope.DEFMETHOD("strict", function(){
-    return this.has_directive("use strict");
-});
-
-AST_Lambda.DEFMETHOD("init_scope_vars", function(){
-    AST_Scope.prototype.init_scope_vars.apply(this, arguments);
-    this.uses_arguments = false;
-});
-
-AST_SymbolRef.DEFMETHOD("reference", function() {
-    var def = this.definition();
-    def.references.push(this);
-    var s = this.scope;
-    while (s) {
-        push_uniq(s.enclosed, def);
-        if (s === def.scope) break;
-        s = s.parent_scope;
-    }
-    this.frame = this.scope.nesting - def.scope.nesting;
-});
-
-AST_Scope.DEFMETHOD("find_variable", function(name){
-    if (name instanceof AST_Symbol) name = name.name;
-    return this.variables.get(name)
-        || (this.parent_scope && this.parent_scope.find_variable(name));
-});
-
-AST_Scope.DEFMETHOD("has_directive", function(value){
-    return this.parent_scope && this.parent_scope.has_directive(value)
-        || (this.directives.indexOf(value) >= 0 ? this : null);
-});
-
-AST_Scope.DEFMETHOD("def_function", function(symbol){
-    this.functions.set(symbol.name, this.def_variable(symbol));
-});
-
-AST_Scope.DEFMETHOD("def_variable", function(symbol){
-    var def;
-    if (!this.variables.has(symbol.name)) {
-        def = new SymbolDef(this, this.variables.size(), symbol);
-        this.variables.set(symbol.name, def);
-        def.global = !this.parent_scope;
-    } else {
-        def = this.variables.get(symbol.name);
-        def.orig.push(symbol);
-    }
-    return symbol.thedef = def;
-});
-
-AST_Scope.DEFMETHOD("next_mangled", function(options){
-    var ext = this.enclosed;
-    out: while (true) {
-        var m = base54(++this.cname);
-        if (!is_identifier(m)) continue; // skip over "do"
-
-        // https://github.com/mishoo/UglifyJS2/issues/242 -- do not
-        // shadow a name excepted from mangling.
-        if (options.except.indexOf(m) >= 0) continue;
-
-        // we must ensure that the mangled name does not shadow a name
-        // from some parent scope that is referenced in this or in
-        // inner scopes.
-        for (var i = ext.length; --i >= 0;) {
-            var sym = ext[i];
-            var name = sym.mangled_name || (sym.unmangleable(options) && sym.name);
-            if (m == name) continue out;
-        }
-        return m;
-    }
-});
-
-AST_Function.DEFMETHOD("next_mangled", function(options, def){
-    // #179, #326
-    // in Safari strict mode, something like (function x(x){...}) is a syntax error;
-    // a function expression's argument cannot shadow the function expression's name
-
-    var tricky_def = def.orig[0] instanceof AST_SymbolFunarg && this.name && this.name.definition();
-    while (true) {
-        var name = AST_Lambda.prototype.next_mangled.call(this, options, def);
-        if (!(tricky_def && tricky_def.mangled_name == name))
-            return name;
-    }
-});
-
-AST_Scope.DEFMETHOD("references", function(sym){
-    if (sym instanceof AST_Symbol) sym = sym.definition();
-    return this.enclosed.indexOf(sym) < 0 ? null : sym;
-});
-
-AST_Symbol.DEFMETHOD("unmangleable", function(options){
-    return this.definition().unmangleable(options);
-});
-
-// property accessors are not mangleable
-AST_SymbolAccessor.DEFMETHOD("unmangleable", function(){
-    return true;
-});
-
-// labels are always mangleable
-AST_Label.DEFMETHOD("unmangleable", function(){
-    return false;
-});
-
-AST_Symbol.DEFMETHOD("unreferenced", function(){
-    return this.definition().references.length == 0
-        && !(this.scope.uses_eval || this.scope.uses_with);
-});
-
-AST_Symbol.DEFMETHOD("undeclared", function(){
-    return this.definition().undeclared;
-});
-
-AST_LabelRef.DEFMETHOD("undeclared", function(){
-    return false;
-});
-
-AST_Label.DEFMETHOD("undeclared", function(){
-    return false;
-});
-
-AST_Symbol.DEFMETHOD("definition", function(){
-    return this.thedef;
-});
-
-AST_Symbol.DEFMETHOD("global", function(){
-    return this.definition().global;
-});
-
-AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){
-    return defaults(options, {
-        except   : [],
-        eval     : false,
-        sort     : false,
-        toplevel : false,
-        screw_ie8 : false
-    });
-});
-
-AST_Toplevel.DEFMETHOD("mangle_names", function(options){
-    options = this._default_mangler_options(options);
-    // We only need to mangle declaration nodes.  Special logic wired
-    // into the code generator will display the mangled name if it's
-    // present (and for AST_SymbolRef-s it'll use the mangled name of
-    // the AST_SymbolDeclaration that it points to).
-    var lname = -1;
-    var to_mangle = [];
-    var tw = new TreeWalker(function(node, descend){
-        if (node instanceof AST_LabeledStatement) {
-            // lname is incremented when we get to the AST_Label
-            var save_nesting = lname;
-            descend();
-            lname = save_nesting;
-            return true;        // don't descend again in TreeWalker
-        }
-        if (node instanceof AST_Scope) {
-            var p = tw.parent(), a = [];
-            node.variables.each(function(symbol){
-                if (options.except.indexOf(symbol.name) < 0) {
-                    a.push(symbol);
-                }
-            });
-            if (options.sort) a.sort(function(a, b){
-                return b.references.length - a.references.length;
-            });
-            to_mangle.push.apply(to_mangle, a);
-            return;
-        }
-        if (node instanceof AST_Label) {
-            var name;
-            do name = base54(++lname); while (!is_identifier(name));
-            node.mangled_name = name;
-            return true;
-        }
-    });
-    this.walk(tw);
-    to_mangle.forEach(function(def){ def.mangle(options) });
-});
-
-AST_Toplevel.DEFMETHOD("compute_char_frequency", function(options){
-    options = this._default_mangler_options(options);
-    var tw = new TreeWalker(function(node){
-        if (node instanceof AST_Constant)
-            base54.consider(node.print_to_string());
-        else if (node instanceof AST_Return)
-            base54.consider("return");
-        else if (node instanceof AST_Throw)
-            base54.consider("throw");
-        else if (node instanceof AST_Continue)
-            base54.consider("continue");
-        else if (node instanceof AST_Break)
-            base54.consider("break");
-        else if (node instanceof AST_Debugger)
-            base54.consider("debugger");
-        else if (node instanceof AST_Directive)
-            base54.consider(node.value);
-        else if (node instanceof AST_While)
-            base54.consider("while");
-        else if (node instanceof AST_Do)
-            base54.consider("do while");
-        else if (node instanceof AST_If) {
-            base54.consider("if");
-            if (node.alternative) base54.consider("else");
-        }
-        else if (node instanceof AST_Var)
-            base54.consider("var");
-        else if (node instanceof AST_Const)
-            base54.consider("const");
-        else if (node instanceof AST_Lambda)
-            base54.consider("function");
-        else if (node instanceof AST_For)
-            base54.consider("for");
-        else if (node instanceof AST_ForIn)
-            base54.consider("for in");
-        else if (node instanceof AST_Switch)
-            base54.consider("switch");
-        else if (node instanceof AST_Case)
-            base54.consider("case");
-        else if (node instanceof AST_Default)
-            base54.consider("default");
-        else if (node instanceof AST_With)
-            base54.consider("with");
-        else if (node instanceof AST_ObjectSetter)
-            base54.consider("set" + node.key);
-        else if (node instanceof AST_ObjectGetter)
-            base54.consider("get" + node.key);
-        else if (node instanceof AST_ObjectKeyVal)
-            base54.consider(node.key);
-        else if (node instanceof AST_New)
-            base54.consider("new");
-        else if (node instanceof AST_This)
-            base54.consider("this");
-        else if (node instanceof AST_Try)
-            base54.consider("try");
-        else if (node instanceof AST_Catch)
-            base54.consider("catch");
-        else if (node instanceof AST_Finally)
-            base54.consider("finally");
-        else if (node instanceof AST_Symbol && node.unmangleable(options))
-            base54.consider(node.name);
-        else if (node instanceof AST_Unary || node instanceof AST_Binary)
-            base54.consider(node.operator);
-        else if (node instanceof AST_Dot)
-            base54.consider(node.property);
-    });
-    this.walk(tw);
-    base54.sort();
-});
-
-var base54 = (function() {
-    var string = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";
-    var chars, frequency;
-    function reset() {
-        frequency = Object.create(null);
-        chars = string.split("").map(function(ch){ return ch.charCodeAt(0) });
-        chars.forEach(function(ch){ frequency[ch] = 0 });
-    }
-    base54.consider = function(str){
-        for (var i = str.length; --i >= 0;) {
-            var code = str.charCodeAt(i);
-            if (code in frequency) ++frequency[code];
-        }
-    };
-    base54.sort = function() {
-        chars = mergeSort(chars, function(a, b){
-            if (is_digit(a) && !is_digit(b)) return 1;
-            if (is_digit(b) && !is_digit(a)) return -1;
-            return frequency[b] - frequency[a];
-        });
-    };
-    base54.reset = reset;
-    reset();
-    base54.get = function(){ return chars };
-    base54.freq = function(){ return frequency };
-    function base54(num) {
-        var ret = "", base = 54;
-        do {
-            ret += String.fromCharCode(chars[num % base]);
-            num = Math.floor(num / base);
-            base = 64;
-        } while (num > 0);
-        return ret;
-    };
-    return base54;
-})();
-
-AST_Toplevel.DEFMETHOD("scope_warnings", function(options){
-    options = defaults(options, {
-        undeclared       : false, // this makes a lot of noise
-        unreferenced     : true,
-        assign_to_global : true,
-        func_arguments   : true,
-        nested_defuns    : true,
-        eval             : true
-    });
-    var tw = new TreeWalker(function(node){
-        if (options.undeclared
-            && node instanceof AST_SymbolRef
-            && node.undeclared())
-        {
-            // XXX: this also warns about JS standard names,
-            // i.e. Object, Array, parseInt etc.  Should add a list of
-            // exceptions.
-            AST_Node.warn("Undeclared symbol: {name} [{file}:{line},{col}]", {
-                name: node.name,
-                file: node.start.file,
-                line: node.start.line,
-                col: node.start.col
-            });
-        }
-        if (options.assign_to_global)
-        {
-            var sym = null;
-            if (node instanceof AST_Assign && node.left instanceof AST_SymbolRef)
-                sym = node.left;
-            else if (node instanceof AST_ForIn && node.init instanceof AST_SymbolRef)
-                sym = node.init;
-            if (sym
-                && (sym.undeclared()
-                    || (sym.global() && sym.scope !== sym.definition().scope))) {
-                AST_Node.warn("{msg}: {name} [{file}:{line},{col}]", {
-                    msg: sym.undeclared() ? "Accidental global?" : "Assignment to global",
-                    name: sym.name,
-                    file: sym.start.file,
-                    line: sym.start.line,
-                    col: sym.start.col
-                });
-            }
-        }
-        if (options.eval
-            && node instanceof AST_SymbolRef
-            && node.undeclared()
-            && node.name == "eval") {
-            AST_Node.warn("Eval is used [{file}:{line},{col}]", node.start);
-        }
-        if (options.unreferenced
-            && (node instanceof AST_SymbolDeclaration || node instanceof AST_Label)
-            && node.unreferenced()) {
-            AST_Node.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]", {
-                type: node instanceof AST_Label ? "Label" : "Symbol",
-                name: node.name,
-                file: node.start.file,
-                line: node.start.line,
-                col: node.start.col
-            });
-        }
-        if (options.func_arguments
-            && node instanceof AST_Lambda
-            && node.uses_arguments) {
-            AST_Node.warn("arguments used in function {name} [{file}:{line},{col}]", {
-                name: node.name ? node.name.name : "anonymous",
-                file: node.start.file,
-                line: node.start.line,
-                col: node.start.col
-            });
-        }
-        if (options.nested_defuns
-            && node instanceof AST_Defun
-            && !(tw.parent() instanceof AST_Scope)) {
-            AST_Node.warn("Function {name} declared in nested statement \"{type}\" [{file}:{line},{col}]", {
-                name: node.name.name,
-                type: tw.parent().TYPE,
-                file: node.start.file,
-                line: node.start.line,
-                col: node.start.col
-            });
-        }
-    });
-    this.walk(tw);
-});
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-function OutputStream(options) {
-
-    options = defaults(options, {
-        indent_start     : 0,
-        indent_level     : 4,
-        quote_keys       : false,
-        space_colon      : true,
-        ascii_only       : false,
-        unescape_regexps : false,
-        inline_script    : false,
-        width            : 80,
-        max_line_len     : 32000,
-        beautify         : false,
-        source_map       : null,
-        bracketize       : false,
-        semicolons       : true,
-        comments         : false,
-        preserve_line    : false,
-        screw_ie8        : false,
-        preamble         : null,
-    }, true);
-
-    var indentation = 0;
-    var current_col = 0;
-    var current_line = 1;
-    var current_pos = 0;
-    var OUTPUT = "";
-
-    function to_ascii(str, identifier) {
-        return str.replace(/[\u0080-\uffff]/g, function(ch) {
-            var code = ch.charCodeAt(0).toString(16);
-            if (code.length <= 2 && !identifier) {
-                while (code.length < 2) code = "0" + code;
-                return "\\x" + code;
-            } else {
-                while (code.length < 4) code = "0" + code;
-                return "\\u" + code;
-            }
-        });
-    };
-
-    function make_string(str) {
-        var dq = 0, sq = 0;
-        str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029\0]/g, function(s){
-            switch (s) {
-              case "\\": return "\\\\";
-              case "\b": return "\\b";
-              case "\f": return "\\f";
-              case "\n": return "\\n";
-              case "\r": return "\\r";
-              case "\u2028": return "\\u2028";
-              case "\u2029": return "\\u2029";
-              case '"': ++dq; return '"';
-              case "'": ++sq; return "'";
-              case "\0": return "\\x00";
-            }
-            return s;
-        });
-        if (options.ascii_only) str = to_ascii(str);
-        if (dq > sq) return "'" + str.replace(/\x27/g, "\\'") + "'";
-        else return '"' + str.replace(/\x22/g, '\\"') + '"';
-    };
-
-    function encode_string(str) {
-        var ret = make_string(str);
-        if (options.inline_script)
-            ret = ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi, "<\\/script$1");
-        return ret;
-    };
-
-    function make_name(name) {
-        name = name.toString();
-        if (options.ascii_only)
-            name = to_ascii(name, true);
-        return name;
-    };
-
-    function make_indent(back) {
-        return repeat_string(" ", options.indent_start + indentation - back * options.indent_level);
-    };
-
-    /* -----[ beautification/minification ]----- */
-
-    var might_need_space = false;
-    var might_need_semicolon = false;
-    var last = null;
-
-    function last_char() {
-        return last.charAt(last.length - 1);
-    };
-
-    function maybe_newline() {
-        if (options.max_line_len && current_col > options.max_line_len)
-            print("\n");
-    };
-
-    var requireSemicolonChars = makePredicate("( [ + * / - , .");
-
-    function print(str) {
-        str = String(str);
-        var ch = str.charAt(0);
-        if (might_need_semicolon) {
-            if ((!ch || ";}".indexOf(ch) < 0) && !/[;]$/.test(last)) {
-                if (options.semicolons || requireSemicolonChars(ch)) {
-                    OUTPUT += ";";
-                    current_col++;
-                    current_pos++;
-                } else {
-                    OUTPUT += "\n";
-                    current_pos++;
-                    current_line++;
-                    current_col = 0;
-                }
-                if (!options.beautify)
-                    might_need_space = false;
-            }
-            might_need_semicolon = false;
-            maybe_newline();
-        }
-
-        if (!options.beautify && options.preserve_line && stack[stack.length - 1]) {
-            var target_line = stack[stack.length - 1].start.line;
-            while (current_line < target_line) {
-                OUTPUT += "\n";
-                current_pos++;
-                current_line++;
-                current_col = 0;
-                might_need_space = false;
-            }
-        }
-
-        if (might_need_space) {
-            var prev = last_char();
-            if ((is_identifier_char(prev)
-                 && (is_identifier_char(ch) || ch == "\\"))
-                || (/^[\+\-\/]$/.test(ch) && ch == prev))
-            {
-                OUTPUT += " ";
-                current_col++;
-                current_pos++;
-            }
-            might_need_space = false;
-        }
-        var a = str.split(/\r?\n/), n = a.length - 1;
-        current_line += n;
-        if (n == 0) {
-            current_col += a[n].length;
-        } else {
-            current_col = a[n].length;
-        }
-        current_pos += str.length;
-        last = str;
-        OUTPUT += str;
-    };
-
-    var space = options.beautify ? function() {
-        print(" ");
-    } : function() {
-        might_need_space = true;
-    };
-
-    var indent = options.beautify ? function(half) {
-        if (options.beautify) {
-            print(make_indent(half ? 0.5 : 0));
-        }
-    } : noop;
-
-    var with_indent = options.beautify ? function(col, cont) {
-        if (col === true) col = next_indent();
-        var save_indentation = indentation;
-        indentation = col;
-        var ret = cont();
-        indentation = save_indentation;
-        return ret;
-    } : function(col, cont) { return cont() };
-
-    var newline = options.beautify ? function() {
-        print("\n");
-    } : noop;
-
-    var semicolon = options.beautify ? function() {
-        print(";");
-    } : function() {
-        might_need_semicolon = true;
-    };
-
-    function force_semicolon() {
-        might_need_semicolon = false;
-        print(";");
-    };
-
-    function next_indent() {
-        return indentation + options.indent_level;
-    };
-
-    function with_block(cont) {
-        var ret;
-        print("{");
-        newline();
-        with_indent(next_indent(), function(){
-            ret = cont();
-        });
-        indent();
-        print("}");
-        return ret;
-    };
-
-    function with_parens(cont) {
-        print("(");
-        //XXX: still nice to have that for argument lists
-        //var ret = with_indent(current_col, cont);
-        var ret = cont();
-        print(")");
-        return ret;
-    };
-
-    function with_square(cont) {
-        print("[");
-        //var ret = with_indent(current_col, cont);
-        var ret = cont();
-        print("]");
-        return ret;
-    };
-
-    function comma() {
-        print(",");
-        space();
-    };
-
-    function colon() {
-        print(":");
-        if (options.space_colon) space();
-    };
-
-    var add_mapping = options.source_map ? function(token, name) {
-        try {
-            if (token) options.source_map.add(
-                token.file || "?",
-                current_line, current_col,
-                token.line, token.col,
-                (!name && token.type == "name") ? token.value : name
-            );
-        } catch(ex) {
-            AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]", {
-                file: token.file,
-                line: token.line,
-                col: token.col,
-                cline: current_line,
-                ccol: current_col,
-                name: name || ""
-            })
-        }
-    } : noop;
-
-    function get() {
-        return OUTPUT;
-    };
-
-    if (options.preamble) {
-        print(options.preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g, "\n"));
-    }
-
-    var stack = [];
-    return {
-        get             : get,
-        toString        : get,
-        indent          : indent,
-        indentation     : function() { return indentation },
-        current_width   : function() { return current_col - indentation },
-        should_break    : function() { return options.width && this.current_width() >= options.width },
-        newline         : newline,
-        print           : print,
-        space           : space,
-        comma           : comma,
-        colon           : colon,
-        last            : function() { return last },
-        semicolon       : semicolon,
-        force_semicolon : force_semicolon,
-        to_ascii        : to_ascii,
-        print_name      : function(name) { print(make_name(name)) },
-        print_string    : function(str) { print(encode_string(str)) },
-        next_indent     : next_indent,
-        with_indent     : with_indent,
-        with_block      : with_block,
-        with_parens     : with_parens,
-        with_square     : with_square,
-        add_mapping     : add_mapping,
-        option          : function(opt) { return options[opt] },
-        line            : function() { return current_line },
-        col             : function() { return current_col },
-        pos             : function() { return current_pos },
-        push_node       : function(node) { stack.push(node) },
-        pop_node        : function() { return stack.pop() },
-        stack           : function() { return stack },
-        parent          : function(n) {
-            return stack[stack.length - 2 - (n || 0)];
-        }
-    };
-
-};
-
-/* -----[ code generators ]----- */
-
-(function(){
-
-    /* -----[ utils ]----- */
-
-    function DEFPRINT(nodetype, generator) {
-        nodetype.DEFMETHOD("_codegen", generator);
-    };
-
-    AST_Node.DEFMETHOD("print", function(stream, force_parens){
-        var self = this, generator = self._codegen;
-        function doit() {
-            self.add_comments(stream);
-            self.add_source_map(stream);
-            generator(self, stream);
-        }
-        stream.push_node(self);
-        if (force_parens || self.needs_parens(stream)) {
-            stream.with_parens(doit);
-        } else {
-            doit();
-        }
-        stream.pop_node();
-    });
-
-    AST_Node.DEFMETHOD("print_to_string", function(options){
-        var s = OutputStream(options);
-        this.print(s);
-        return s.get();
-    });
-
-    /* -----[ comments ]----- */
-
-    AST_Node.DEFMETHOD("add_comments", function(output){
-        var c = output.option("comments"), self = this;
-        if (c) {
-            var start = self.start;
-            if (start && !start._comments_dumped) {
-                start._comments_dumped = true;
-                var comments = start.comments_before || [];
-
-                // XXX: ugly fix for https://github.com/mishoo/UglifyJS2/issues/112
-                //               and https://github.com/mishoo/UglifyJS2/issues/372
-                if (self instanceof AST_Exit && self.value) {
-                    self.value.walk(new TreeWalker(function(node){
-                        if (node.start && node.start.comments_before) {
-                            comments = comments.concat(node.start.comments_before);
-                            node.start.comments_before = [];
-                        }
-                        if (node instanceof AST_Function ||
-                            node instanceof AST_Array ||
-                            node instanceof AST_Object)
-                        {
-                            return true; // don't go inside.
-                        }
-                    }));
-                }
-
-                if (c.test) {
-                    comments = comments.filter(function(comment){
-                        return c.test(comment.value);
-                    });
-                } else if (typeof c == "function") {
-                    comments = comments.filter(function(comment){
-                        return c(self, comment);
-                    });
-                }
-                comments.forEach(function(c){
-                    if (/comment[134]/.test(c.type)) {
-                        output.print("//" + c.value + "\n");
-                        output.indent();
-                    }
-                    else if (c.type == "comment2") {
-                        output.print("/*" + c.value + "*/");
-                        if (start.nlb) {
-                            output.print("\n");
-                            output.indent();
-                        } else {
-                            output.space();
-                        }
-                    }
-                });
-            }
-        }
-    });
-
-    /* -----[ PARENTHESES ]----- */
-
-    function PARENS(nodetype, func) {
-        nodetype.DEFMETHOD("needs_parens", func);
-    };
-
-    PARENS(AST_Node, function(){
-        return false;
-    });
-
-    // a function expression needs parens around it when it's provably
-    // the first token to appear in a statement.
-    PARENS(AST_Function, function(output){
-        return first_in_statement(output);
-    });
-
-    // same goes for an object literal, because otherwise it would be
-    // interpreted as a block of code.
-    PARENS(AST_Object, function(output){
-        return first_in_statement(output);
-    });
-
-    PARENS(AST_Unary, function(output){
-        var p = output.parent();
-        return p instanceof AST_PropAccess && p.expression === this;
-    });
-
-    PARENS(AST_Seq, function(output){
-        var p = output.parent();
-        return p instanceof AST_Call             // (foo, bar)() or foo(1, (2, 3), 4)
-            || p instanceof AST_Unary            // !(foo, bar, baz)
-            || p instanceof AST_Binary           // 1 + (2, 3) + 4 ==> 8
-            || p instanceof AST_VarDef           // var a = (1, 2), b = a + a; ==> b == 4
-            || p instanceof AST_PropAccess       // (1, {foo:2}).foo or (1, {foo:2})["foo"] ==> 2
-            || p instanceof AST_Array            // [ 1, (2, 3), 4 ] ==> [ 1, 3, 4 ]
-            || p instanceof AST_ObjectProperty   // { foo: (1, 2) }.foo ==> 2
-            || p instanceof AST_Conditional      /* (false, true) ? (a = 10, b = 20) : (c = 30)
-                                                  * ==> 20 (side effect, set a := 10 and b := 20) */
-        ;
-    });
-
-    PARENS(AST_Binary, function(output){
-        var p = output.parent();
-        // (foo && bar)()
-        if (p instanceof AST_Call && p.expression === this)
-            return true;
-        // typeof (foo && bar)
-        if (p instanceof AST_Unary)
-            return true;
-        // (foo && bar)["prop"], (foo && bar).prop
-        if (p instanceof AST_PropAccess && p.expression === this)
-            return true;
-        // this deals with precedence: 3 * (2 + 1)
-        if (p instanceof AST_Binary) {
-            var po = p.operator, pp = PRECEDENCE[po];
-            var so = this.operator, sp = PRECEDENCE[so];
-            if (pp > sp
-                || (pp == sp
-                    && this === p.right)) {
-                return true;
-            }
-        }
-    });
-
-    PARENS(AST_PropAccess, function(output){
-        var p = output.parent();
-        if (p instanceof AST_New && p.expression === this) {
-            // i.e. new (foo.bar().baz)
-            //
-            // if there's one call into this subtree, then we need
-            // parens around it too, otherwise the call will be
-            // interpreted as passing the arguments to the upper New
-            // expression.
-            try {
-                this.walk(new TreeWalker(function(node){
-                    if (node instanceof AST_Call) throw p;
-                }));
-            } catch(ex) {
-                if (ex !== p) throw ex;
-                return true;
-            }
-        }
-    });
-
-    PARENS(AST_Call, function(output){
-        var p = output.parent(), p1;
-        if (p instanceof AST_New && p.expression === this)
-            return true;
-
-        // workaround for Safari bug.
-        // https://bugs.webkit.org/show_bug.cgi?id=123506
-        return this.expression instanceof AST_Function
-            && p instanceof AST_PropAccess
-            && p.expression === this
-            && (p1 = output.parent(1)) instanceof AST_Assign
-            && p1.left === p;
-    });
-
-    PARENS(AST_New, function(output){
-        var p = output.parent();
-        if (no_constructor_parens(this, output)
-            && (p instanceof AST_PropAccess // (new Date).getTime(), (new Date)["getTime"]()
-                || p instanceof AST_Call && p.expression === this)) // (new foo)(bar)
-            return true;
-    });
-
-    PARENS(AST_Number, function(output){
-        var p = output.parent();
-        if (this.getValue() < 0 && p instanceof AST_PropAccess && p.expression === this)
-            return true;
-    });
-
-    PARENS(AST_NaN, function(output){
-        var p = output.parent();
-        if (p instanceof AST_PropAccess && p.expression === this)
-            return true;
-    });
-
-    function assign_and_conditional_paren_rules(output) {
-        var p = output.parent();
-        // !(a = false) → true
-        if (p instanceof AST_Unary)
-            return true;
-        // 1 + (a = 2) + 3 → 6, side effect setting a = 2
-        if (p instanceof AST_Binary && !(p instanceof AST_Assign))
-            return true;
-        // (a = func)() —or— new (a = Object)()
-        if (p instanceof AST_Call && p.expression === this)
-            return true;
-        // (a = foo) ? bar : baz
-        if (p instanceof AST_Conditional && p.condition === this)
-            return true;
-        // (a = foo)["prop"] —or— (a = foo).prop
-        if (p instanceof AST_PropAccess && p.expression === this)
-            return true;
-    };
-
-    PARENS(AST_Assign, assign_and_conditional_paren_rules);
-    PARENS(AST_Conditional, assign_and_conditional_paren_rules);
-
-    /* -----[ PRINTERS ]----- */
-
-    DEFPRINT(AST_Directive, function(self, output){
-        output.print_string(self.value);
-        output.semicolon();
-    });
-    DEFPRINT(AST_Debugger, function(self, output){
-        output.print("debugger");
-        output.semicolon();
-    });
-
-    /* -----[ statements ]----- */
-
-    function display_body(body, is_toplevel, output) {
-        var last = body.length - 1;
-        body.forEach(function(stmt, i){
-            if (!(stmt instanceof AST_EmptyStatement)) {
-                output.indent();
-                stmt.print(output);
-                if (!(i == last && is_toplevel)) {
-                    output.newline();
-                    if (is_toplevel) output.newline();
-                }
-            }
-        });
-    };
-
-    AST_StatementWithBody.DEFMETHOD("_do_print_body", function(output){
-        force_statement(this.body, output);
-    });
-
-    DEFPRINT(AST_Statement, function(self, output){
-        self.body.print(output);
-        output.semicolon();
-    });
-    DEFPRINT(AST_Toplevel, function(self, output){
-        display_body(self.body, true, output);
-        output.print("");
-    });
-    DEFPRINT(AST_LabeledStatement, function(self, output){
-        self.label.print(output);
-        output.colon();
-        self.body.print(output);
-    });
-    DEFPRINT(AST_SimpleStatement, function(self, output){
-        self.body.print(output);
-        output.semicolon();
-    });
-    function print_bracketed(body, output) {
-        if (body.length > 0) output.with_block(function(){
-            display_body(body, false, output);
-        });
-        else output.print("{}");
-    };
-    DEFPRINT(AST_BlockStatement, function(self, output){
-        print_bracketed(self.body, output);
-    });
-    DEFPRINT(AST_EmptyStatement, function(self, output){
-        output.semicolon();
-    });
-    DEFPRINT(AST_Do, function(self, output){
-        output.print("do");
-        output.space();
-        self._do_print_body(output);
-        output.space();
-        output.print("while");
-        output.space();
-        output.with_parens(function(){
-            self.condition.print(output);
-        });
-        output.semicolon();
-    });
-    DEFPRINT(AST_While, function(self, output){
-        output.print("while");
-        output.space();
-        output.with_parens(function(){
-            self.condition.print(output);
-        });
-        output.space();
-        self._do_print_body(output);
-    });
-    DEFPRINT(AST_For, function(self, output){
-        output.print("for");
-        output.space();
-        output.with_parens(function(){
-            if (self.init) {
-                if (self.init instanceof AST_Definitions) {
-                    self.init.print(output);
-                } else {
-                    parenthesize_for_noin(self.init, output, true);
-                }
-                output.print(";");
-                output.space();
-            } else {
-                output.print(";");
-            }
-            if (self.condition) {
-                self.condition.print(output);
-                output.print(";");
-                output.space();
-            } else {
-                output.print(";");
-            }
-            if (self.step) {
-                self.step.print(output);
-            }
-        });
-        output.space();
-        self._do_print_body(output);
-    });
-    DEFPRINT(AST_ForIn, function(self, output){
-        output.print("for");
-        output.space();
-        output.with_parens(function(){
-            self.init.print(output);
-            output.space();
-            output.print("in");
-            output.space();
-            self.object.print(output);
-        });
-        output.space();
-        self._do_print_body(output);
-    });
-    DEFPRINT(AST_With, function(self, output){
-        output.print("with");
-        output.space();
-        output.with_parens(function(){
-            self.expression.print(output);
-        });
-        output.space();
-        self._do_print_body(output);
-    });
-
-    /* -----[ functions ]----- */
-    AST_Lambda.DEFMETHOD("_do_print", function(output, nokeyword){
-        var self = this;
-        if (!nokeyword) {
-            output.print("function");
-        }
-        if (self.name) {
-            output.space();
-            self.name.print(output);
-        }
-        output.with_parens(function(){
-            self.argnames.forEach(function(arg, i){
-                if (i) output.comma();
-                arg.print(output);
-            });
-        });
-        output.space();
-        print_bracketed(self.body, output);
-    });
-    DEFPRINT(AST_Lambda, function(self, output){
-        self._do_print(output);
-    });
-
-    /* -----[ exits ]----- */
-    AST_Exit.DEFMETHOD("_do_print", function(output, kind){
-        output.print(kind);
-        if (this.value) {
-            output.space();
-            this.value.print(output);
-        }
-        output.semicolon();
-    });
-    DEFPRINT(AST_Return, function(self, output){
-        self._do_print(output, "return");
-    });
-    DEFPRINT(AST_Throw, function(self, output){
-        self._do_print(output, "throw");
-    });
-
-    /* -----[ loop control ]----- */
-    AST_LoopControl.DEFMETHOD("_do_print", function(output, kind){
-        output.print(kind);
-        if (this.label) {
-            output.space();
-            this.label.print(output);
-        }
-        output.semicolon();
-    });
-    DEFPRINT(AST_Break, function(self, output){
-        self._do_print(output, "break");
-    });
-    DEFPRINT(AST_Continue, function(self, output){
-        self._do_print(output, "continue");
-    });
-
-    /* -----[ if ]----- */
-    function make_then(self, output) {
-        if (output.option("bracketize")) {
-            make_block(self.body, output);
-            return;
-        }
-        // The squeezer replaces "block"-s that contain only a single
-        // statement with the statement itself; technically, the AST
-        // is correct, but this can create problems when we output an
-        // IF having an ELSE clause where the THEN clause ends in an
-        // IF *without* an ELSE block (then the outer ELSE would refer
-        // to the inner IF).  This function checks for this case and
-        // adds the block brackets if needed.
-        if (!self.body)
-            return output.force_semicolon();
-        if (self.body instanceof AST_Do
-            && !output.option("screw_ie8")) {
-            // https://github.com/mishoo/UglifyJS/issues/#issue/57 IE
-            // croaks with "syntax error" on code like this: if (foo)
-            // do ... while(cond); else ...  we need block brackets
-            // around do/while
-            make_block(self.body, output);
-            return;
-        }
-        var b = self.body;
-        while (true) {
-            if (b instanceof AST_If) {
-                if (!b.alternative) {
-                    make_block(self.body, output);
-                    return;
-                }
-                b = b.alternative;
-            }
-            else if (b instanceof AST_StatementWithBody) {
-                b = b.body;
-            }
-            else break;
-        }
-        force_statement(self.body, output);
-    };
-    DEFPRINT(AST_If, function(self, output){
-        output.print("if");
-        output.space();
-        output.with_parens(function(){
-            self.condition.print(output);
-        });
-        output.space();
-        if (self.alternative) {
-            make_then(self, output);
-            output.space();
-            output.print("else");
-            output.space();
-            force_statement(self.alternative, output);
-        } else {
-            self._do_print_body(output);
-        }
-    });
-
-    /* -----[ switch ]----- */
-    DEFPRINT(AST_Switch, function(self, output){
-        output.print("switch");
-        output.space();
-        output.with_parens(function(){
-            self.expression.print(output);
-        });
-        output.space();
-        if (self.body.length > 0) output.with_block(function(){
-            self.body.forEach(function(stmt, i){
-                if (i) output.newline();
-                output.indent(true);
-                stmt.print(output);
-            });
-        });
-        else output.print("{}");
-    });
-    AST_SwitchBranch.DEFMETHOD("_do_print_body", function(output){
-        if (this.body.length > 0) {
-            output.newline();
-            this.body.forEach(function(stmt){
-                output.indent();
-                stmt.print(output);
-                output.newline();
-            });
-        }
-    });
-    DEFPRINT(AST_Default, function(self, output){
-        output.print("default:");
-        self._do_print_body(output);
-    });
-    DEFPRINT(AST_Case, function(self, output){
-        output.print("case");
-        output.space();
-        self.expression.print(output);
-        output.print(":");
-        self._do_print_body(output);
-    });
-
-    /* -----[ exceptions ]----- */
-    DEFPRINT(AST_Try, function(self, output){
-        output.print("try");
-        output.space();
-        print_bracketed(self.body, output);
-        if (self.bcatch) {
-            output.space();
-            self.bcatch.print(output);
-        }
-        if (self.bfinally) {
-            output.space();
-            self.bfinally.print(output);
-        }
-    });
-    DEFPRINT(AST_Catch, function(self, output){
-        output.print("catch");
-        output.space();
-        output.with_parens(function(){
-            self.argname.print(output);
-        });
-        output.space();
-        print_bracketed(self.body, output);
-    });
-    DEFPRINT(AST_Finally, function(self, output){
-        output.print("finally");
-        output.space();
-        print_bracketed(self.body, output);
-    });
-
-    /* -----[ var/const ]----- */
-    AST_Definitions.DEFMETHOD("_do_print", function(output, kind){
-        output.print(kind);
-        output.space();
-        this.definitions.forEach(function(def, i){
-            if (i) output.comma();
-            def.print(output);
-        });
-        var p = output.parent();
-        var in_for = p instanceof AST_For || p instanceof AST_ForIn;
-        var avoid_semicolon = in_for && p.init === this;
-        if (!avoid_semicolon)
-            output.semicolon();
-    });
-    DEFPRINT(AST_Var, function(self, output){
-        self._do_print(output, "var");
-    });
-    DEFPRINT(AST_Const, function(self, output){
-        self._do_print(output, "const");
-    });
-
-    function parenthesize_for_noin(node, output, noin) {
-        if (!noin) node.print(output);
-        else try {
-            // need to take some precautions here:
-            //    https://github.com/mishoo/UglifyJS2/issues/60
-            node.walk(new TreeWalker(function(node){
-                if (node instanceof AST_Binary && node.operator == "in")
-                    throw output;
-            }));
-            node.print(output);
-        } catch(ex) {
-            if (ex !== output) throw ex;
-            node.print(output, true);
-        }
-    };
-
-    DEFPRINT(AST_VarDef, function(self, output){
-        self.name.print(output);
-        if (self.value) {
-            output.space();
-            output.print("=");
-            output.space();
-            var p = output.parent(1);
-            var noin = p instanceof AST_For || p instanceof AST_ForIn;
-            parenthesize_for_noin(self.value, output, noin);
-        }
-    });
-
-    /* -----[ other expressions ]----- */
-    DEFPRINT(AST_Call, function(self, output){
-        self.expression.print(output);
-        if (self instanceof AST_New && no_constructor_parens(self, output))
-            return;
-        output.with_parens(function(){
-            self.args.forEach(function(expr, i){
-                if (i) output.comma();
-                expr.print(output);
-            });
-        });
-    });
-    DEFPRINT(AST_New, function(self, output){
-        output.print("new");
-        output.space();
-        AST_Call.prototype._codegen(self, output);
-    });
-
-    AST_Seq.DEFMETHOD("_do_print", function(output){
-        this.car.print(output);
-        if (this.cdr) {
-            output.comma();
-            if (output.should_break()) {
-                output.newline();
-                output.indent();
-            }
-            this.cdr.print(output);
-        }
-    });
-    DEFPRINT(AST_Seq, function(self, output){
-        self._do_print(output);
-        // var p = output.parent();
-        // if (p instanceof AST_Statement) {
-        //     output.with_indent(output.next_indent(), function(){
-        //         self._do_print(output);
-        //     });
-        // } else {
-        //     self._do_print(output);
-        // }
-    });
-    DEFPRINT(AST_Dot, function(self, output){
-        var expr = self.expression;
-        expr.print(output);
-        if (expr instanceof AST_Number && expr.getValue() >= 0) {
-            if (!/[xa-f.]/i.test(output.last())) {
-                output.print(".");
-            }
-        }
-        output.print(".");
-        // the name after dot would be mapped about here.
-        output.add_mapping(self.end);
-        output.print_name(self.property);
-    });
-    DEFPRINT(AST_Sub, function(self, output){
-        self.expression.print(output);
-        output.print("[");
-        self.property.print(output);
-        output.print("]");
-    });
-    DEFPRINT(AST_UnaryPrefix, function(self, output){
-        var op = self.operator;
-        output.print(op);
-        if (/^[a-z]/i.test(op))
-            output.space();
-        self.expression.print(output);
-    });
-    DEFPRINT(AST_UnaryPostfix, function(self, output){
-        self.expression.print(output);
-        output.print(self.operator);
-    });
-    DEFPRINT(AST_Binary, function(self, output){
-        self.left.print(output);
-        output.space();
-        output.print(self.operator);
-        if (self.operator == "<"
-            && self.right instanceof AST_UnaryPrefix
-            && self.right.operator == "!"
-            && self.right.expression instanceof AST_UnaryPrefix
-            && self.right.expression.operator == "--") {
-            // space is mandatory to avoid outputting <!--
-            // http://javascript.spec.whatwg.org/#comment-syntax
-            output.print(" ");
-        } else {
-            // the space is optional depending on "beautify"
-            output.space();
-        }
-        self.right.print(output);
-    });
-    DEFPRINT(AST_Conditional, function(self, output){
-        self.condition.print(output);
-        output.space();
-        output.print("?");
-        output.space();
-        self.consequent.print(output);
-        output.space();
-        output.colon();
-        self.alternative.print(output);
-    });
-
-    /* -----[ literals ]----- */
-    DEFPRINT(AST_Array, function(self, output){
-        output.with_square(function(){
-            var a = self.elements, len = a.length;
-            if (len > 0) output.space();
-            a.forEach(function(exp, i){
-                if (i) output.comma();
-                exp.print(output);
-                // If the final element is a hole, we need to make sure it
-                // doesn't look like a trailing comma, by inserting an actual
-                // trailing comma.
-                if (i === len - 1 && exp instanceof AST_Hole)
-                  output.comma();
-            });
-            if (len > 0) output.space();
-        });
-    });
-    DEFPRINT(AST_Object, function(self, output){
-        if (self.properties.length > 0) output.with_block(function(){
-            self.properties.forEach(function(prop, i){
-                if (i) {
-                    output.print(",");
-                    output.newline();
-                }
-                output.indent();
-                prop.print(output);
-            });
-            output.newline();
-        });
-        else output.print("{}");
-    });
-    DEFPRINT(AST_ObjectKeyVal, function(self, output){
-        var key = self.key;
-        if (output.option("quote_keys")) {
-            output.print_string(key + "");
-        } else if ((typeof key == "number"
-                    || !output.option("beautify")
-                    && +key + "" == key)
-                   && parseFloat(key) >= 0) {
-            output.print(make_num(key));
-        } else if (RESERVED_WORDS(key) ? output.option("screw_ie8") : is_identifier_string(key)) {
-            output.print_name(key);
-        } else {
-            output.print_string(key);
-        }
-        output.colon();
-        self.value.print(output);
-    });
-    DEFPRINT(AST_ObjectSetter, function(self, output){
-        output.print("set");
-        output.space();
-        self.key.print(output);
-        self.value._do_print(output, true);
-    });
-    DEFPRINT(AST_ObjectGetter, function(self, output){
-        output.print("get");
-        output.space();
-        self.key.print(output);
-        self.value._do_print(output, true);
-    });
-    DEFPRINT(AST_Symbol, function(self, output){
-        var def = self.definition();
-        output.print_name(def ? def.mangled_name || def.name : self.name);
-    });
-    DEFPRINT(AST_Undefined, function(self, output){
-        output.print("void 0");
-    });
-    DEFPRINT(AST_Hole, noop);
-    DEFPRINT(AST_Infinity, function(self, output){
-        output.print("1/0");
-    });
-    DEFPRINT(AST_NaN, function(self, output){
-        output.print("0/0");
-    });
-    DEFPRINT(AST_This, function(self, output){
-        output.print("this");
-    });
-    DEFPRINT(AST_Constant, function(self, output){
-        output.print(self.getValue());
-    });
-    DEFPRINT(AST_String, function(self, output){
-        output.print_string(self.getValue());
-    });
-    DEFPRINT(AST_Number, function(self, output){
-        output.print(make_num(self.getValue()));
-    });
-
-    function regexp_safe_literal(code) {
-        return [
-            0x5c   , // \
-            0x2f   , // /
-            0x2e   , // .
-            0x2b   , // +
-            0x2a   , // *
-            0x3f   , // ?
-            0x28   , // (
-            0x29   , // )
-            0x5b   , // [
-            0x5d   , // ]
-            0x7b   , // {
-            0x7d   , // }
-            0x24   , // $
-            0x5e   , // ^
-            0x3a   , // :
-            0x7c   , // |
-            0x21   , // !
-            0x0a   , // \n
-            0x0d   , // \r
-            0x00   , // \0
-            0xfeff , // Unicode BOM
-            0x2028 , // unicode "line separator"
-            0x2029 , // unicode "paragraph separator"
-        ].indexOf(code) < 0;
-    };
-
-    DEFPRINT(AST_RegExp, function(self, output){
-        var str = self.getValue().toString();
-        if (output.option("ascii_only")) {
-            str = output.to_ascii(str);
-        } else if (output.option("unescape_regexps")) {
-            str = str.split("\\\\").map(function(str){
-                return str.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g, function(s){
-                    var code = parseInt(s.substr(2), 16);
-                    return regexp_safe_literal(code) ? String.fromCharCode(code) : s;
-                });
-            }).join("\\\\");
-        }
-        output.print(str);
-        var p = output.parent();
-        if (p instanceof AST_Binary && /^in/.test(p.operator) && p.left === self)
-            output.print(" ");
-    });
-
-    function force_statement(stat, output) {
-        if (output.option("bracketize")) {
-            if (!stat || stat instanceof AST_EmptyStatement)
-                output.print("{}");
-            else if (stat instanceof AST_BlockStatement)
-                stat.print(output);
-            else output.with_block(function(){
-                output.indent();
-                stat.print(output);
-                output.newline();
-            });
-        } else {
-            if (!stat || stat instanceof AST_EmptyStatement)
-                output.force_semicolon();
-            else
-                stat.print(output);
-        }
-    };
-
-    // return true if the node at the top of the stack (that means the
-    // innermost node in the current output) is lexically the first in
-    // a statement.
-    function first_in_statement(output) {
-        var a = output.stack(), i = a.length, node = a[--i], p = a[--i];
-        while (i > 0) {
-            if (p instanceof AST_Statement && p.body === node)
-                return true;
-            if ((p instanceof AST_Seq           && p.car === node        ) ||
-                (p instanceof AST_Call          && p.expression === node && !(p instanceof AST_New) ) ||
-                (p instanceof AST_Dot           && p.expression === node ) ||
-                (p instanceof AST_Sub           && p.expression === node ) ||
-                (p instanceof AST_Conditional   && p.condition === node  ) ||
-                (p instanceof AST_Binary        && p.left === node       ) ||
-                (p instanceof AST_UnaryPostfix  && p.expression === node ))
-            {
-                node = p;
-                p = a[--i];
-            } else {
-                return false;
-            }
-        }
-    };
-
-    // self should be AST_New.  decide if we want to show parens or not.
-    function no_constructor_parens(self, output) {
-        return self.args.length == 0 && !output.option("beautify");
-    };
-
-    function best_of(a) {
-        var best = a[0], len = best.length;
-        for (var i = 1; i < a.length; ++i) {
-            if (a[i].length < len) {
-                best = a[i];
-                len = best.length;
-            }
-        }
-        return best;
-    };
-
-    function make_num(num) {
-        var str = num.toString(10), a = [ str.replace(/^0\./, ".").replace('e+', 'e') ], m;
-        if (Math.floor(num) === num) {
-            if (num >= 0) {
-                a.push("0x" + num.toString(16).toLowerCase(), // probably pointless
-                       "0" + num.toString(8)); // same.
-            } else {
-                a.push("-0x" + (-num).toString(16).toLowerCase(), // probably pointless
-                       "-0" + (-num).toString(8)); // same.
-            }
-            if ((m = /^(.*?)(0+)$/.exec(num))) {
-                a.push(m[1] + "e" + m[2].length);
-            }
-        } else if ((m = /^0?\.(0+)(.*)$/.exec(num))) {
-            a.push(m[2] + "e-" + (m[1].length + m[2].length),
-                   str.substr(str.indexOf(".")));
-        }
-        return best_of(a);
-    };
-
-    function make_block(stmt, output) {
-        if (stmt instanceof AST_BlockStatement) {
-            stmt.print(output);
-            return;
-        }
-        output.with_block(function(){
-            output.indent();
-            stmt.print(output);
-            output.newline();
-        });
-    };
-
-    /* -----[ source map generators ]----- */
-
-    function DEFMAP(nodetype, generator) {
-        nodetype.DEFMETHOD("add_source_map", function(stream){
-            generator(this, stream);
-        });
-    };
-
-    // We could easily add info for ALL nodes, but it seems to me that
-    // would be quite wasteful, hence this noop in the base class.
-    DEFMAP(AST_Node, noop);
-
-    function basic_sourcemap_gen(self, output) {
-        output.add_mapping(self.start);
-    };
-
-    // XXX: I'm not exactly sure if we need it for all of these nodes,
-    // or if we should add even more.
-
-    DEFMAP(AST_Directive, basic_sourcemap_gen);
-    DEFMAP(AST_Debugger, basic_sourcemap_gen);
-    DEFMAP(AST_Symbol, basic_sourcemap_gen);
-    DEFMAP(AST_Jump, basic_sourcemap_gen);
-    DEFMAP(AST_StatementWithBody, basic_sourcemap_gen);
-    DEFMAP(AST_LabeledStatement, noop); // since the label symbol will mark it
-    DEFMAP(AST_Lambda, basic_sourcemap_gen);
-    DEFMAP(AST_Switch, basic_sourcemap_gen);
-    DEFMAP(AST_SwitchBranch, basic_sourcemap_gen);
-    DEFMAP(AST_BlockStatement, basic_sourcemap_gen);
-    DEFMAP(AST_Toplevel, noop);
-    DEFMAP(AST_New, basic_sourcemap_gen);
-    DEFMAP(AST_Try, basic_sourcemap_gen);
-    DEFMAP(AST_Catch, basic_sourcemap_gen);
-    DEFMAP(AST_Finally, basic_sourcemap_gen);
-    DEFMAP(AST_Definitions, basic_sourcemap_gen);
-    DEFMAP(AST_Constant, basic_sourcemap_gen);
-    DEFMAP(AST_ObjectProperty, function(self, output){
-        output.add_mapping(self.start, self.key);
-    });
-
-})();
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-function Compressor(options, false_by_default) {
-    if (!(this instanceof Compressor))
-        return new Compressor(options, false_by_default);
-    TreeTransformer.call(this, this.before, this.after);
-    this.options = defaults(options, {
-        sequences     : !false_by_default,
-        properties    : !false_by_default,
-        dead_code     : !false_by_default,
-        drop_debugger : !false_by_default,
-        unsafe        : false,
-        unsafe_comps  : false,
-        conditionals  : !false_by_default,
-        comparisons   : !false_by_default,
-        evaluate      : !false_by_default,
-        booleans      : !false_by_default,
-        loops         : !false_by_default,
-        unused        : !false_by_default,
-        hoist_funs    : !false_by_default,
-        hoist_vars    : false,
-        if_return     : !false_by_default,
-        join_vars     : !false_by_default,
-        cascade       : !false_by_default,
-        side_effects  : !false_by_default,
-        pure_getters  : false,
-        pure_funcs    : null,
-        negate_iife   : !false_by_default,
-        screw_ie8     : false,
-        drop_console  : false,
-        angular       : false,
-
-        warnings      : true,
-        global_defs   : {}
-    }, true);
-};
-
-Compressor.prototype = new TreeTransformer;
-merge(Compressor.prototype, {
-    option: function(key) { return this.options[key] },
-    warn: function() {
-        if (this.options.warnings)
-            AST_Node.warn.apply(AST_Node, arguments);
-    },
-    before: function(node, descend, in_list) {
-        if (node._squeezed) return node;
-        var was_scope = false;
-        if (node instanceof AST_Scope) {
-            node = node.hoist_declarations(this);
-            was_scope = true;
-        }
-        descend(node, this);
-        node = node.optimize(this);
-        if (was_scope && node instanceof AST_Scope) {
-            node.drop_unused(this);
-            descend(node, this);
-        }
-        node._squeezed = true;
-        return node;
-    }
-});
-
-(function(){
-
-    function OPT(node, optimizer) {
-        node.DEFMETHOD("optimize", function(compressor){
-            var self = this;
-            if (self._optimized) return self;
-            var opt = optimizer(self, compressor);
-            opt._optimized = true;
-            if (opt === self) return opt;
-            return opt.transform(compressor);
-        });
-    };
-
-    OPT(AST_Node, function(self, compressor){
-        return self;
-    });
-
-    AST_Node.DEFMETHOD("equivalent_to", function(node){
-        // XXX: this is a rather expensive way to test two node's equivalence:
-        return this.print_to_string() == node.print_to_string();
-    });
-
-    function make_node(ctor, orig, props) {
-        if (!props) props = {};
-        if (orig) {
-            if (!props.start) props.start = orig.start;
-            if (!props.end) props.end = orig.end;
-        }
-        return new ctor(props);
-    };
-
-    function make_node_from_constant(compressor, val, orig) {
-        // XXX: WIP.
-        // if (val instanceof AST_Node) return val.transform(new TreeTransformer(null, function(node){
-        //     if (node instanceof AST_SymbolRef) {
-        //         var scope = compressor.find_parent(AST_Scope);
-        //         var def = scope.find_variable(node);
-        //         node.thedef = def;
-        //         return node;
-        //     }
-        // })).transform(compressor);
-
-        if (val instanceof AST_Node) return val.transform(compressor);
-        switch (typeof val) {
-          case "string":
-            return make_node(AST_String, orig, {
-                value: val
-            }).optimize(compressor);
-          case "number":
-            return make_node(isNaN(val) ? AST_NaN : AST_Number, orig, {
-                value: val
-            }).optimize(compressor);
-          case "boolean":
-            return make_node(val ? AST_True : AST_False, orig).optimize(compressor);
-          case "undefined":
-            return make_node(AST_Undefined, orig).optimize(compressor);
-          default:
-            if (val === null) {
-                return make_node(AST_Null, orig).optimize(compressor);
-            }
-            if (val instanceof RegExp) {
-                return make_node(AST_RegExp, orig).optimize(compressor);
-            }
-            throw new Error(string_template("Can't handle constant of type: {type}", {
-                type: typeof val
-            }));
-        }
-    };
-
-    function as_statement_array(thing) {
-        if (thing === null) return [];
-        if (thing instanceof AST_BlockStatement) return thing.body;
-        if (thing instanceof AST_EmptyStatement) return [];
-        if (thing instanceof AST_Statement) return [ thing ];
-        throw new Error("Can't convert thing to statement array");
-    };
-
-    function is_empty(thing) {
-        if (thing === null) return true;
-        if (thing instanceof AST_EmptyStatement) return true;
-        if (thing instanceof AST_BlockStatement) return thing.body.length == 0;
-        return false;
-    };
-
-    function loop_body(x) {
-        if (x instanceof AST_Switch) return x;
-        if (x instanceof AST_For || x instanceof AST_ForIn || x instanceof AST_DWLoop) {
-            return (x.body instanceof AST_BlockStatement ? x.body : x);
-        }
-        return x;
-    };
-
-    function tighten_body(statements, compressor) {
-        var CHANGED;
-        do {
-            CHANGED = false;
-            if (compressor.option("angular")) {
-                statements = process_for_angular(statements);
-            }
-            statements = eliminate_spurious_blocks(statements);
-            if (compressor.option("dead_code")) {
-                statements = eliminate_dead_code(statements, compressor);
-            }
-            if (compressor.option("if_return")) {
-                statements = handle_if_return(statements, compressor);
-            }
-            if (compressor.option("sequences")) {
-                statements = sequencesize(statements, compressor);
-            }
-            if (compressor.option("join_vars")) {
-                statements = join_consecutive_vars(statements, compressor);
-            }
-        } while (CHANGED);
-
-        if (compressor.option("negate_iife")) {
-            negate_iifes(statements, compressor);
-        }
-
-        return statements;
-
-        function process_for_angular(statements) {
-            function make_injector(func, name) {
-                return make_node(AST_SimpleStatement, func, {
-                    body: make_node(AST_Assign, func, {
-                        operator: "=",
-                        left: make_node(AST_Dot, name, {
-                            expression: make_node(AST_SymbolRef, name, name),
-                            property: "$inject"
-                        }),
-                        right: make_node(AST_Array, func, {
-                            elements: func.argnames.map(function(sym){
-                                return make_node(AST_String, sym, { value: sym.name });
-                            })
-                        })
-                    })
-                });
-            }
-            return statements.reduce(function(a, stat){
-                a.push(stat);
-                var token = stat.start;
-                var comments = token.comments_before;
-                if (comments && comments.length > 0) {
-                    var last = comments.pop();
-                    if (/@ngInject/.test(last.value)) {
-                        // case 1: defun
-                        if (stat instanceof AST_Defun) {
-                            a.push(make_injector(stat, stat.name));
-                        }
-                        else if (stat instanceof AST_Definitions) {
-                            stat.definitions.forEach(function(def){
-                                if (def.value && def.value instanceof AST_Lambda) {
-                                    a.push(make_injector(def.value, def.name));
-                                }
-                            });
-                        }
-                        else {
-                            compressor.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]", token);
-                        }
-                    }
-                }
-                return a;
-            }, []);
-        }
-
-        function eliminate_spurious_blocks(statements) {
-            var seen_dirs = [];
-            return statements.reduce(function(a, stat){
-                if (stat instanceof AST_BlockStatement) {
-                    CHANGED = true;
-                    a.push.apply(a, eliminate_spurious_blocks(stat.body));
-                } else if (stat instanceof AST_EmptyStatement) {
-                    CHANGED = true;
-                } else if (stat instanceof AST_Directive) {
-                    if (seen_dirs.indexOf(stat.value) < 0) {
-                        a.push(stat);
-                        seen_dirs.push(stat.value);
-                    } else {
-                        CHANGED = true;
-                    }
-                } else {
-                    a.push(stat);
-                }
-                return a;
-            }, []);
-        };
-
-        function handle_if_return(statements, compressor) {
-            var self = compressor.self();
-            var in_lambda = self instanceof AST_Lambda;
-            var ret = [];
-            loop: for (var i = statements.length; --i >= 0;) {
-                var stat = statements[i];
-                switch (true) {
-                  case (in_lambda && stat instanceof AST_Return && !stat.value && ret.length == 0):
-                    CHANGED = true;
-                    // note, ret.length is probably always zero
-                    // because we drop unreachable code before this
-                    // step.  nevertheless, it's good to check.
-                    continue loop;
-                  case stat instanceof AST_If:
-                    if (stat.body instanceof AST_Return) {
-                        //---
-                        // pretty silly case, but:
-                        // if (foo()) return; return; ==> foo(); return;
-                        if (((in_lambda && ret.length == 0)
-                             || (ret[0] instanceof AST_Return && !ret[0].value))
-                            && !stat.body.value && !stat.alternative) {
-                            CHANGED = true;
-                            var cond = make_node(AST_SimpleStatement, stat.condition, {
-                                body: stat.condition
-                            });
-                            ret.unshift(cond);
-                            continue loop;
-                        }
-                        //---
-                        // if (foo()) return x; return y; ==> return foo() ? x : y;
-                        if (ret[0] instanceof AST_Return && stat.body.value && ret[0].value && !stat.alternative) {
-                            CHANGED = true;
-                            stat = stat.clone();
-                            stat.alternative = ret[0];
-                            ret[0] = stat.transform(compressor);
-                            continue loop;
-                        }
-                        //---
-                        // if (foo()) return x; [ return ; ] ==> return foo() ? x : undefined;
-                        if ((ret.length == 0 || ret[0] instanceof AST_Return) && stat.body.value && !stat.alternative && in_lambda) {
-                            CHANGED = true;
-                            stat = stat.clone();
-                            stat.alternative = ret[0] || make_node(AST_Return, stat, {
-                                value: make_node(AST_Undefined, stat)
-                            });
-                            ret[0] = stat.transform(compressor);
-                            continue loop;
-                        }
-                        //---
-                        // if (foo()) return; [ else x... ]; y... ==> if (!foo()) { x...; y... }
-                        if (!stat.body.value && in_lambda) {
-                            CHANGED = true;
-                            stat = stat.clone();
-                            stat.condition = stat.condition.negate(compressor);
-                            stat.body = make_node(AST_BlockStatement, stat, {
-                                body: as_statement_array(stat.alternative).concat(ret)
-                            });
-                            stat.alternative = null;
-                            ret = [ stat.transform(compressor) ];
-                            continue loop;
-                        }
-                        //---
-                        if (ret.length == 1 && in_lambda && ret[0] instanceof AST_SimpleStatement
-                            && (!stat.alternative || stat.alternative instanceof AST_SimpleStatement)) {
-                            CHANGED = true;
-                            ret.push(make_node(AST_Return, ret[0], {
-                                value: make_node(AST_Undefined, ret[0])
-                            }).transform(compressor));
-                            ret = as_statement_array(stat.alternative).concat(ret);
-                            ret.unshift(stat);
-                            continue loop;
-                        }
-                    }
-
-                    var ab = aborts(stat.body);
-                    var lct = ab instanceof AST_LoopControl ? compressor.loopcontrol_target(ab.label) : null;
-                    if (ab && ((ab instanceof AST_Return && !ab.value && in_lambda)
-                               || (ab instanceof AST_Continue && self === loop_body(lct))
-                               || (ab instanceof AST_Break && lct instanceof AST_BlockStatement && self === lct))) {
-                        if (ab.label) {
-                            remove(ab.label.thedef.references, ab);
-                        }
-                        CHANGED = true;
-                        var body = as_statement_array(stat.body).slice(0, -1);
-                        stat = stat.clone();
-                        stat.condition = stat.condition.negate(compressor);
-                        stat.body = make_node(AST_BlockStatement, stat, {
-                            body: ret
-                        });
-                        stat.alternative = make_node(AST_BlockStatement, stat, {
-                            body: body
-                        });
-                        ret = [ stat.transform(compressor) ];
-                        continue loop;
-                    }
-
-                    var ab = aborts(stat.alternative);
-                    var lct = ab instanceof AST_LoopControl ? compressor.loopcontrol_target(ab.label) : null;
-                    if (ab && ((ab instanceof AST_Return && !ab.value && in_lambda)
-                               || (ab instanceof AST_Continue && self === loop_body(lct))
-                               || (ab instanceof AST_Break && lct instanceof AST_BlockStatement && self === lct))) {
-                        if (ab.label) {
-                            remove(ab.label.thedef.references, ab);
-                        }
-                        CHANGED = true;
-                        stat = stat.clone();
-                        stat.body = make_node(AST_BlockStatement, stat.body, {
-                            body: as_statement_array(stat.body).concat(ret)
-                        });
-                        stat.alternative = make_node(AST_BlockStatement, stat.alternative, {
-                            body: as_statement_array(stat.alternative).slice(0, -1)
-                        });
-                        ret = [ stat.transform(compressor) ];
-                        continue loop;
-                    }
-
-                    ret.unshift(stat);
-                    break;
-                  default:
-                    ret.unshift(stat);
-                    break;
-                }
-            }
-            return ret;
-        };
-
-        function eliminate_dead_code(statements, compressor) {
-            var has_quit = false;
-            var orig = statements.length;
-            var self = compressor.self();
-            statements = statements.reduce(function(a, stat){
-                if (has_quit) {
-                    extract_declarations_from_unreachable_code(compressor, stat, a);
-                } else {
-                    if (stat instanceof AST_LoopControl) {
-                        var lct = compressor.loopcontrol_target(stat.label);
-                        if ((stat instanceof AST_Break
-                             && lct instanceof AST_BlockStatement
-                             && loop_body(lct) === self) || (stat instanceof AST_Continue
-                                                             && loop_body(lct) === self)) {
-                            if (stat.label) {
-                                remove(stat.label.thedef.references, stat);
-                            }
-                        } else {
-                            a.push(stat);
-                        }
-                    } else {
-                        a.push(stat);
-                    }
-                    if (aborts(stat)) has_quit = true;
-                }
-                return a;
-            }, []);
-            CHANGED = statements.length != orig;
-            return statements;
-        };
-
-        function sequencesize(statements, compressor) {
-            if (statements.length < 2) return statements;
-            var seq = [], ret = [];
-            function push_seq() {
-                seq = AST_Seq.from_array(seq);
-                if (seq) ret.push(make_node(AST_SimpleStatement, seq, {
-                    body: seq
-                }));
-                seq = [];
-            };
-            statements.forEach(function(stat){
-                if (stat instanceof AST_SimpleStatement) seq.push(stat.body);
-                else push_seq(), ret.push(stat);
-            });
-            push_seq();
-            ret = sequencesize_2(ret, compressor);
-            CHANGED = ret.length != statements.length;
-            return ret;
-        };
-
-        function sequencesize_2(statements, compressor) {
-            function cons_seq(right) {
-                ret.pop();
-                var left = prev.body;
-                if (left instanceof AST_Seq) {
-                    left.add(right);
-                } else {
-                    left = AST_Seq.cons(left, right);
-                }
-                return left.transform(compressor);
-            };
-            var ret = [], prev = null;
-            statements.forEach(function(stat){
-                if (prev) {
-                    if (stat instanceof AST_For) {
-                        var opera = {};
-                        try {
-                            prev.body.walk(new TreeWalker(function(node){
-                                if (node instanceof AST_Binary && node.operator == "in")
-                                    throw opera;
-                            }));
-                            if (stat.init && !(stat.init instanceof AST_Definitions)) {
-                                stat.init = cons_seq(stat.init);
-                            }
-                            else if (!stat.init) {
-                                stat.init = prev.body;
-                                ret.pop();
-                            }
-                        } catch(ex) {
-                            if (ex !== opera) throw ex;
-                        }
-                    }
-                    else if (stat instanceof AST_If) {
-                        stat.condition = cons_seq(stat.condition);
-                    }
-                    else if (stat instanceof AST_With) {
-                        stat.expression = cons_seq(stat.expression);
-                    }
-                    else if (stat instanceof AST_Exit && stat.value) {
-                        stat.value = cons_seq(stat.value);
-                    }
-                    else if (stat instanceof AST_Exit) {
-                        stat.value = cons_seq(make_node(AST_Undefined, stat));
-                    }
-                    else if (stat instanceof AST_Switch) {
-                        stat.expression = cons_seq(stat.expression);
-                    }
-                }
-                ret.push(stat);
-                prev = stat instanceof AST_SimpleStatement ? stat : null;
-            });
-            return ret;
-        };
-
-        function join_consecutive_vars(statements, compressor) {
-            var prev = null;
-            return statements.reduce(function(a, stat){
-                if (stat instanceof AST_Definitions && prev && prev.TYPE == stat.TYPE) {
-                    prev.definitions = prev.definitions.concat(stat.definitions);
-                    CHANGED = true;
-                }
-                else if (stat instanceof AST_For
-                         && prev instanceof AST_Definitions
-                         && (!stat.init || stat.init.TYPE == prev.TYPE)) {
-                    CHANGED = true;
-                    a.pop();
-                    if (stat.init) {
-                        stat.init.definitions = prev.definitions.concat(stat.init.definitions);
-                    } else {
-                        stat.init = prev;
-                    }
-                    a.push(stat);
-                    prev = stat;
-                }
-                else {
-                    prev = stat;
-                    a.push(stat);
-                }
-                return a;
-            }, []);
-        };
-
-        function negate_iifes(statements, compressor) {
-            statements.forEach(function(stat){
-                if (stat instanceof AST_SimpleStatement) {
-                    stat.body = (function transform(thing) {
-                        return thing.transform(new TreeTransformer(function(node){
-                            if (node instanceof AST_Call && node.expression instanceof AST_Function) {
-                                return make_node(AST_UnaryPrefix, node, {
-                                    operator: "!",
-                                    expression: node
-                                });
-                            }
-                            else if (node instanceof AST_Call) {
-                                node.expression = transform(node.expression);
-                            }
-                            else if (node instanceof AST_Seq) {
-                                node.car = transform(node.car);
-                            }
-                            else if (node instanceof AST_Conditional) {
-                                var expr = transform(node.condition);
-                                if (expr !== node.condition) {
-                                    // it has been negated, reverse
-                                    node.condition = expr;
-                                    var tmp = node.consequent;
-                                    node.consequent = node.alternative;
-                                    node.alternative = tmp;
-                                }
-                            }
-                            return node;
-                        }));
-                    })(stat.body);
-                }
-            });
-        };
-
-    };
-
-    function extract_declarations_from_unreachable_code(compressor, stat, target) {
-        compressor.warn("Dropping unreachable code [{file}:{line},{col}]", stat.start);
-        stat.walk(new TreeWalker(function(node){
-            if (node instanceof AST_Definitions) {
-                compressor.warn("Declarations in unreachable code! [{file}:{line},{col}]", node.start);
-                node.remove_initializers();
-                target.push(node);
-                return true;
-            }
-            if (node instanceof AST_Defun) {
-                target.push(node);
-                return true;
-            }
-            if (node instanceof AST_Scope) {
-                return true;
-            }
-        }));
-    };
-
-    /* -----[ boolean/negation helpers ]----- */
-
-    // methods to determine whether an expression has a boolean result type
-    (function (def){
-        var unary_bool = [ "!", "delete" ];
-        var binary_bool = [ "in", "instanceof", "==", "!=", "===", "!==", "<", "<=", ">=", ">" ];
-        def(AST_Node, function(){ return false });
-        def(AST_UnaryPrefix, function(){
-            return member(this.operator, unary_bool);
-        });
-        def(AST_Binary, function(){
-            return member(this.operator, binary_bool) ||
-                ( (this.operator == "&&" || this.operator == "||") &&
-                  this.left.is_boolean() && this.right.is_boolean() );
-        });
-        def(AST_Conditional, function(){
-            return this.consequent.is_boolean() && this.alternative.is_boolean();
-        });
-        def(AST_Assign, function(){
-            return this.operator == "=" && this.right.is_boolean();
-        });
-        def(AST_Seq, function(){
-            return this.cdr.is_boolean();
-        });
-        def(AST_True, function(){ return true });
-        def(AST_False, function(){ return true });
-    })(function(node, func){
-        node.DEFMETHOD("is_boolean", func);
-    });
-
-    // methods to determine if an expression has a string result type
-    (function (def){
-        def(AST_Node, function(){ return false });
-        def(AST_String, function(){ return true });
-        def(AST_UnaryPrefix, function(){
-            return this.operator == "typeof";
-        });
-        def(AST_Binary, function(compressor){
-            return this.operator == "+" &&
-                (this.left.is_string(compressor) || this.right.is_string(compressor));
-        });
-        def(AST_Assign, function(compressor){
-            return (this.operator == "=" || this.operator == "+=") && this.right.is_string(compressor);
-        });
-        def(AST_Seq, function(compressor){
-            return this.cdr.is_string(compressor);
-        });
-        def(AST_Conditional, function(compressor){
-            return this.consequent.is_string(compressor) && this.alternative.is_string(compressor);
-        });
-        def(AST_Call, function(compressor){
-            return compressor.option("unsafe")
-                && this.expression instanceof AST_SymbolRef
-                && this.expression.name == "String"
-                && this.expression.undeclared();
-        });
-    })(function(node, func){
-        node.DEFMETHOD("is_string", func);
-    });
-
-    function best_of(ast1, ast2) {
-        return ast1.print_to_string().length >
-            ast2.print_to_string().length
-            ? ast2 : ast1;
-    };
-
-    // methods to evaluate a constant expression
-    (function (def){
-        // The evaluate method returns an array with one or two
-        // elements.  If the node has been successfully reduced to a
-        // constant, then the second element tells us the value;
-        // otherwise the second element is missing.  The first element
-        // of the array is always an AST_Node descendant; if
-        // evaluation was successful it's a node that represents the
-        // constant; otherwise it's the original or a replacement node.
-        AST_Node.DEFMETHOD("evaluate", function(compressor){
-            if (!compressor.option("evaluate")) return [ this ];
-            try {
-                var val = this._eval(compressor);
-                return [ best_of(make_node_from_constant(compressor, val, this), this), val ];
-            } catch(ex) {
-                if (ex !== def) throw ex;
-                return [ this ];
-            }
-        });
-        def(AST_Statement, function(){
-            throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]", this.start));
-        });
-        def(AST_Function, function(){
-            // XXX: AST_Function inherits from AST_Scope, which itself
-            // inherits from AST_Statement; however, an AST_Function
-            // isn't really a statement.  This could byte in other
-            // places too. :-( Wish JS had multiple inheritance.
-            throw def;
-        });
-        function ev(node, compressor) {
-            if (!compressor) throw new Error("Compressor must be passed");
-
-            return node._eval(compressor);
-        };
-        def(AST_Node, function(){
-            throw def;          // not constant
-        });
-        def(AST_Constant, function(){
-            return this.getValue();
-        });
-        def(AST_UnaryPrefix, function(compressor){
-            var e = this.expression;
-            switch (this.operator) {
-              case "!": return !ev(e, compressor);
-              case "typeof":
-                // Function would be evaluated to an array and so typeof would
-                // incorrectly return 'object'. Hence making is a special case.
-                if (e instanceof AST_Function) return typeof function(){};
-
-                e = ev(e, compressor);
-
-                // typeof <RegExp> returns "object" or "function" on different platforms
-                // so cannot evaluate reliably
-                if (e instanceof RegExp) throw def;
-
-                return typeof e;
-              case "void": return void ev(e, compressor);
-              case "~": return ~ev(e, compressor);
-              case "-":
-                e = ev(e, compressor);
-                if (e === 0) throw def;
-                return -e;
-              case "+": return +ev(e, compressor);
-            }
-            throw def;
-        });
-        def(AST_Binary, function(c){
-            var left = this.left, right = this.right;
-            switch (this.operator) {
-              case "&&"         : return ev(left, c) &&         ev(right, c);
-              case "||"         : return ev(left, c) ||         ev(right, c);
-              case "|"          : return ev(left, c) |          ev(right, c);
-              case "&"          : return ev(left, c) &          ev(right, c);
-              case "^"          : return ev(left, c) ^          ev(right, c);
-              case "+"          : return ev(left, c) +          ev(right, c);
-              case "*"          : return ev(left, c) *          ev(right, c);
-              case "/"          : return ev(left, c) /          ev(right, c);
-              case "%"          : return ev(left, c) %          ev(right, c);
-              case "-"          : return ev(left, c) -          ev(right, c);
-              case "<<"         : return ev(left, c) <<         ev(right, c);
-              case ">>"         : return ev(left, c) >>         ev(right, c);
-              case ">>>"        : return ev(left, c) >>>        ev(right, c);
-              case "=="         : return ev(left, c) ==         ev(right, c);
-              case "==="        : return ev(left, c) ===        ev(right, c);
-              case "!="         : return ev(left, c) !=         ev(right, c);
-              case "!=="        : return ev(left, c) !==        ev(right, c);
-              case "<"          : return ev(left, c) <          ev(right, c);
-              case "<="         : return ev(left, c) <=         ev(right, c);
-              case ">"          : return ev(left, c) >          ev(right, c);
-              case ">="         : return ev(left, c) >=         ev(right, c);
-              case "in"         : return ev(left, c) in         ev(right, c);
-              case "instanceof" : return ev(left, c) instanceof ev(right, c);
-            }
-            throw def;
-        });
-        def(AST_Conditional, function(compressor){
-            return ev(this.condition, compressor)
-                ? ev(this.consequent, compressor)
-                : ev(this.alternative, compressor);
-        });
-        def(AST_SymbolRef, function(compressor){
-            var d = this.definition();
-            if (d && d.constant && d.init) return ev(d.init, compressor);
-            throw def;
-        });
-    })(function(node, func){
-        node.DEFMETHOD("_eval", func);
-    });
-
-    // method to negate an expression
-    (function(def){
-        function basic_negation(exp) {
-            return make_node(AST_UnaryPrefix, exp, {
-                operator: "!",
-                expression: exp
-            });
-        };
-        def(AST_Node, function(){
-            return basic_negation(this);
-        });
-        def(AST_Statement, function(){
-            throw new Error("Cannot negate a statement");
-        });
-        def(AST_Function, function(){
-            return basic_negation(this);
-        });
-        def(AST_UnaryPrefix, function(){
-            if (this.operator == "!")
-                return this.expression;
-            return basic_negation(this);
-        });
-        def(AST_Seq, function(compressor){
-            var self = this.clone();
-            self.cdr = self.cdr.negate(compressor);
-            return self;
-        });
-        def(AST_Conditional, function(compressor){
-            var self = this.clone();
-            self.consequent = self.consequent.negate(compressor);
-            self.alternative = self.alternative.negate(compressor);
-            return best_of(basic_negation(this), self);
-        });
-        def(AST_Binary, function(compressor){
-            var self = this.clone(), op = this.operator;
-            if (compressor.option("unsafe_comps")) {
-                switch (op) {
-                  case "<=" : self.operator = ">"  ; return self;
-                  case "<"  : self.operator = ">=" ; return self;
-                  case ">=" : self.operator = "<"  ; return self;
-                  case ">"  : self.operator = "<=" ; return self;
-                }
-            }
-            switch (op) {
-              case "==" : self.operator = "!="; return self;
-              case "!=" : self.operator = "=="; return self;
-              case "===": self.operator = "!=="; return self;
-              case "!==": self.operator = "==="; return self;
-              case "&&":
-                self.operator = "||";
-                self.left = self.left.negate(compressor);
-                self.right = self.right.negate(compressor);
-                return best_of(basic_negation(this), self);
-              case "||":
-                self.operator = "&&";
-                self.left = self.left.negate(compressor);
-                self.right = self.right.negate(compressor);
-                return best_of(basic_negation(this), self);
-            }
-            return basic_negation(this);
-        });
-    })(function(node, func){
-        node.DEFMETHOD("negate", function(compressor){
-            return func.call(this, compressor);
-        });
-    });
-
-    // determine if expression has side effects
-    (function(def){
-        def(AST_Node, function(compressor){ return true });
-
-        def(AST_EmptyStatement, function(compressor){ return false });
-        def(AST_Constant, function(compressor){ return false });
-        def(AST_This, function(compressor){ return false });
-
-        def(AST_Call, function(compressor){
-            var pure = compressor.option("pure_funcs");
-            if (!pure) return true;
-            return pure.indexOf(this.expression.print_to_string()) < 0;
-        });
-
-        def(AST_Block, function(compressor){
-            for (var i = this.body.length; --i >= 0;) {
-                if (this.body[i].has_side_effects(compressor))
-                    return true;
-            }
-            return false;
-        });
-
-        def(AST_SimpleStatement, function(compressor){
-            return this.body.has_side_effects(compressor);
-        });
-        def(AST_Defun, function(compressor){ return true });
-        def(AST_Function, function(compressor){ return false });
-        def(AST_Binary, function(compressor){
-            return this.left.has_side_effects(compressor)
-                || this.right.has_side_effects(compressor);
-        });
-        def(AST_Assign, function(compressor){ return true });
-        def(AST_Conditional, function(compressor){
-            return this.condition.has_side_effects(compressor)
-                || this.consequent.has_side_effects(compressor)
-                || this.alternative.has_side_effects(compressor);
-        });
-        def(AST_Unary, function(compressor){
-            return this.operator == "delete"
-                || this.operator == "++"
-                || this.operator == "--"
-                || this.expression.has_side_effects(compressor);
-        });
-        def(AST_SymbolRef, function(compressor){ return false });
-        def(AST_Object, function(compressor){
-            for (var i = this.properties.length; --i >= 0;)
-                if (this.properties[i].has_side_effects(compressor))
-                    return true;
-            return false;
-        });
-        def(AST_ObjectProperty, function(compressor){
-            return this.value.has_side_effects(compressor);
-        });
-        def(AST_Array, function(compressor){
-            for (var i = this.elements.length; --i >= 0;)
-                if (this.elements[i].has_side_effects(compressor))
-                    return true;
-            return false;
-        });
-        def(AST_Dot, function(compressor){
-            if (!compressor.option("pure_getters")) return true;
-            return this.expression.has_side_effects(compressor);
-        });
-        def(AST_Sub, function(compressor){
-            if (!compressor.option("pure_getters")) return true;
-            return this.expression.has_side_effects(compressor)
-                || this.property.has_side_effects(compressor);
-        });
-        def(AST_PropAccess, function(compressor){
-            return !compressor.option("pure_getters");
-        });
-        def(AST_Seq, function(compressor){
-            return this.car.has_side_effects(compressor)
-                || this.cdr.has_side_effects(compressor);
-        });
-    })(function(node, func){
-        node.DEFMETHOD("has_side_effects", func);
-    });
-
-    // tell me if a statement aborts
-    function aborts(thing) {
-        return thing && thing.aborts();
-    };
-    (function(def){
-        def(AST_Statement, function(){ return null });
-        def(AST_Jump, function(){ return this });
-        function block_aborts(){
-            var n = this.body.length;
-            return n > 0 && aborts(this.body[n - 1]);
-        };
-        def(AST_BlockStatement, block_aborts);
-        def(AST_SwitchBranch, block_aborts);
-        def(AST_If, function(){
-            return this.alternative && aborts(this.body) && aborts(this.alternative);
-        });
-    })(function(node, func){
-        node.DEFMETHOD("aborts", func);
-    });
-
-    /* -----[ optimizers ]----- */
-
-    OPT(AST_Directive, function(self, compressor){
-        if (self.scope.has_directive(self.value) !== self.scope) {
-            return make_node(AST_EmptyStatement, self);
-        }
-        return self;
-    });
-
-    OPT(AST_Debugger, function(self, compressor){
-        if (compressor.option("drop_debugger"))
-            return make_node(AST_EmptyStatement, self);
-        return self;
-    });
-
-    OPT(AST_LabeledStatement, function(self, compressor){
-        if (self.body instanceof AST_Break
-            && compressor.loopcontrol_target(self.body.label) === self.body) {
-            return make_node(AST_EmptyStatement, self);
-        }
-        return self.label.references.length == 0 ? self.body : self;
-    });
-
-    OPT(AST_Block, function(self, compressor){
-        self.body = tighten_body(self.body, compressor);
-        return self;
-    });
-
-    OPT(AST_BlockStatement, function(self, compressor){
-        self.body = tighten_body(self.body, compressor);
-        switch (self.body.length) {
-          case 1: return self.body[0];
-          case 0: return make_node(AST_EmptyStatement, self);
-        }
-        return self;
-    });
-
-    AST_Scope.DEFMETHOD("drop_unused", function(compressor){
-        var self = this;
-        if (compressor.option("unused")
-            && !(self instanceof AST_Toplevel)
-            && !self.uses_eval
-           ) {
-            var in_use = [];
-            var initializations = new Dictionary();
-            // pass 1: find out which symbols are directly used in
-            // this scope (not in nested scopes).
-            var scope = this;
-            var tw = new TreeWalker(function(node, descend){
-                if (node !== self) {
-                    if (node instanceof AST_Defun) {
-                        initializations.add(node.name.name, node);
-                        return true; // don't go in nested scopes
-                    }
-                    if (node instanceof AST_Definitions && scope === self) {
-                        node.definitions.forEach(function(def){
-                            if (def.value) {
-                                initializations.add(def.name.name, def.value);
-                                if (def.value.has_side_effects(compressor)) {
-                                    def.value.walk(tw);
-                                }
-                            }
-                        });
-                        return true;
-                    }
-                    if (node instanceof AST_SymbolRef) {
-                        push_uniq(in_use, node.definition());
-                        return true;
-                    }
-                    if (node instanceof AST_Scope) {
-                        var save_scope = scope;
-                        scope = node;
-                        descend();
-                        scope = save_scope;
-                        return true;
-                    }
-                }
-            });
-            self.walk(tw);
-            // pass 2: for every used symbol we need to walk its
-            // initialization code to figure out if it uses other
-            // symbols (that may not be in_use).
-            for (var i = 0; i < in_use.length; ++i) {
-                in_use[i].orig.forEach(function(decl){
-                    // undeclared globals will be instanceof AST_SymbolRef
-                    var init = initializations.get(decl.name);
-                    if (init) init.forEach(function(init){
-                        var tw = new TreeWalker(function(node){
-                            if (node instanceof AST_SymbolRef) {
-                                push_uniq(in_use, node.definition());
-                            }
-                        });
-                        init.walk(tw);
-                    });
-                });
-            }
-            // pass 3: we should drop declarations not in_use
-            var tt = new TreeTransformer(
-                function before(node, descend, in_list) {
-                    if (node instanceof AST_Lambda && !(node instanceof AST_Accessor)) {
-                        for (var a = node.argnames, i = a.length; --i >= 0;) {
-                            var sym = a[i];
-                            if (sym.unreferenced()) {
-                                a.pop();
-                                compressor.warn("Dropping unused function argument {name} [{file}:{line},{col}]", {
-                                    name : sym.name,
-                                    file : sym.start.file,
-                                    line : sym.start.line,
-                                    col  : sym.start.col
-                                });
-                            }
-                            else break;
-                        }
-                    }
-                    if (node instanceof AST_Defun && node !== self) {
-                        if (!member(node.name.definition(), in_use)) {
-                            compressor.warn("Dropping unused function {name} [{file}:{line},{col}]", {
-                                name : node.name.name,
-                                file : node.name.start.file,
-                                line : node.name.start.line,
-                                col  : node.name.start.col
-                            });
-                            return make_node(AST_EmptyStatement, node);
-                        }
-                        return node;
-                    }
-                    if (node instanceof AST_Definitions && !(tt.parent() instanceof AST_ForIn)) {
-                        var def = node.definitions.filter(function(def){
-                            if (member(def.name.definition(), in_use)) return true;
-                            var w = {
-                                name : def.name.name,
-                                file : def.name.start.file,
-                                line : def.name.start.line,
-                                col  : def.name.start.col
-                            };
-                            if (def.value && def.value.has_side_effects(compressor)) {
-                                def._unused_side_effects = true;
-                                compressor.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]", w);
-                                return true;
-                            }
-                            compressor.warn("Dropping unused variable {name} [{file}:{line},{col}]", w);
-                            return false;
-                        });
-                        // place uninitialized names at the start
-                        def = mergeSort(def, function(a, b){
-                            if (!a.value && b.value) return -1;
-                            if (!b.value && a.value) return 1;
-                            return 0;
-                        });
-                        // for unused names whose initialization has
-                        // side effects, we can cascade the init. code
-                        // into the next one, or next statement.
-                        var side_effects = [];
-                        for (var i = 0; i < def.length;) {
-                            var x = def[i];
-                            if (x._unused_side_effects) {
-                                side_effects.push(x.value);
-                                def.splice(i, 1);
-                            } else {
-                                if (side_effects.length > 0) {
-                                    side_effects.push(x.value);
-                                    x.value = AST_Seq.from_array(side_effects);
-                                    side_effects = [];
-                                }
-                                ++i;
-                            }
-                        }
-                        if (side_effects.length > 0) {
-                            side_effects = make_node(AST_BlockStatement, node, {
-                                body: [ make_node(AST_SimpleStatement, node, {
-                                    body: AST_Seq.from_array(side_effects)
-                                }) ]
-                            });
-                        } else {
-                            side_effects = null;
-                        }
-                        if (def.length == 0 && !side_effects) {
-                            return make_node(AST_EmptyStatement, node);
-                        }
-                        if (def.length == 0) {
-                            return side_effects;
-                        }
-                        node.definitions = def;
-                        if (side_effects) {
-                            side_effects.body.unshift(node);
-                            node = side_effects;
-                        }
-                        return node;
-                    }
-                    if (node instanceof AST_For) {
-                        descend(node, this);
-
-                        if (node.init instanceof AST_BlockStatement) {
-                            // certain combination of unused name + side effect leads to:
-                            //    https://github.com/mishoo/UglifyJS2/issues/44
-                            // that's an invalid AST.
-                            // We fix it at this stage by moving the `var` outside the `for`.
-
-                            var body = node.init.body.slice(0, -1);
-                            node.init = node.init.body.slice(-1)[0].body;
-                            body.push(node);
-
-                            return in_list ? MAP.splice(body) : make_node(AST_BlockStatement, node, {
-                                body: body
-                            });
-                        }
-                    }
-                    if (node instanceof AST_Scope && node !== self)
-                        return node;
-                }
-            );
-            self.transform(tt);
-        }
-    });
-
-    AST_Scope.DEFMETHOD("hoist_declarations", function(compressor){
-        var hoist_funs = compressor.option("hoist_funs");
-        var hoist_vars = compressor.option("hoist_vars");
-        var self = this;
-        if (hoist_funs || hoist_vars) {
-            var dirs = [];
-            var hoisted = [];
-            var vars = new Dictionary(), vars_found = 0, var_decl = 0;
-            // let's count var_decl first, we seem to waste a lot of
-            // space if we hoist `var` when there's only one.
-            self.walk(new TreeWalker(function(node){
-                if (node instanceof AST_Scope && node !== self)
-                    return true;
-                if (node instanceof AST_Var) {
-                    ++var_decl;
-                    return true;
-                }
-            }));
-            hoist_vars = hoist_vars && var_decl > 1;
-            var tt = new TreeTransformer(
-                function before(node) {
-                    if (node !== self) {
-                        if (node instanceof AST_Directive) {
-                            dirs.push(node);
-                            return make_node(AST_EmptyStatement, node);
-                        }
-                        if (node instanceof AST_Defun && hoist_funs) {
-                            hoisted.push(node);
-                            return make_node(AST_EmptyStatement, node);
-                        }
-                        if (node instanceof AST_Var && hoist_vars) {
-                            node.definitions.forEach(function(def){
-                                vars.set(def.name.name, def);
-                                ++vars_found;
-                            });
-                            var seq = node.to_assignments();
-                            var p = tt.parent();
-                            if (p instanceof AST_ForIn && p.init === node) {
-                                if (seq == null) return node.definitions[0].name;
-                                return seq;
-                            }
-                            if (p instanceof AST_For && p.init === node) {
-                                return seq;
-                            }
-                            if (!seq) return make_node(AST_EmptyStatement, node);
-                            return make_node(AST_SimpleStatement, node, {
-                                body: seq
-                            });
-                        }
-                        if (node instanceof AST_Scope)
-                            return node; // to avoid descending in nested scopes
-                    }
-                }
-            );
-            self = self.transform(tt);
-            if (vars_found > 0) {
-                // collect only vars which don't show up in self's arguments list
-                var defs = [];
-                vars.each(function(def, name){
-                    if (self instanceof AST_Lambda
-                        && find_if(function(x){ return x.name == def.name.name },
-                                   self.argnames)) {
-                        vars.del(name);
-                    } else {
-                        def = def.clone();
-                        def.value = null;
-                        defs.push(def);
-                        vars.set(name, def);
-                    }
-                });
-                if (defs.length > 0) {
-                    // try to merge in assignments
-                    for (var i = 0; i < self.body.length;) {
-                        if (self.body[i] instanceof AST_SimpleStatement) {
-                            var expr = self.body[i].body, sym, assign;
-                            if (expr instanceof AST_Assign
-                                && expr.operator == "="
-                                && (sym = expr.left) instanceof AST_Symbol
-                                && vars.has(sym.name))
-                            {
-                                var def = vars.get(sym.name);
-                                if (def.value) break;
-                                def.value = expr.right;
-                                remove(defs, def);
-                                defs.push(def);
-                                self.body.splice(i, 1);
-                                continue;
-                            }
-                            if (expr instanceof AST_Seq
-                                && (assign = expr.car) instanceof AST_Assign
-                                && assign.operator == "="
-                                && (sym = assign.left) instanceof AST_Symbol
-                                && vars.has(sym.name))
-                            {
-                                var def = vars.get(sym.name);
-                                if (def.value) break;
-                                def.value = assign.right;
-                                remove(defs, def);
-                                defs.push(def);
-                                self.body[i].body = expr.cdr;
-                                continue;
-                            }
-                        }
-                        if (self.body[i] instanceof AST_EmptyStatement) {
-                            self.body.splice(i, 1);
-                            continue;
-                        }
-                        if (self.body[i] instanceof AST_BlockStatement) {
-                            var tmp = [ i, 1 ].concat(self.body[i].body);
-                            self.body.splice.apply(self.body, tmp);
-                            continue;
-                        }
-                        break;
-                    }
-                    defs = make_node(AST_Var, self, {
-                        definitions: defs
-                    });
-                    hoisted.push(defs);
-                };
-            }
-            self.body = dirs.concat(hoisted, self.body);
-        }
-        return self;
-    });
-
-    OPT(AST_SimpleStatement, function(self, compressor){
-        if (compressor.option("side_effects")) {
-            if (!self.body.has_side_effects(compressor)) {
-                compressor.warn("Dropping side-effect-free statement [{file}:{line},{col}]", self.start);
-                return make_node(AST_EmptyStatement, self);
-            }
-        }
-        return self;
-    });
-
-    OPT(AST_DWLoop, function(self, compressor){
-        var cond = self.condition.evaluate(compressor);
-        self.condition = cond[0];
-        if (!compressor.option("loops")) return self;
-        if (cond.length > 1) {
-            if (cond[1]) {
-                return make_node(AST_For, self, {
-                    body: self.body
-                });
-            } else if (self instanceof AST_While) {
-                if (compressor.option("dead_code")) {
-                    var a = [];
-                    extract_declarations_from_unreachable_code(compressor, self.body, a);
-                    return make_node(AST_BlockStatement, self, { body: a });
-                }
-            }
-        }
-        return self;
-    });
-
-    function if_break_in_loop(self, compressor) {
-        function drop_it(rest) {
-            rest = as_statement_array(rest);
-            if (self.body instanceof AST_BlockStatement) {
-                self.body = self.body.clone();
-                self.body.body = rest.concat(self.body.body.slice(1));
-                self.body = self.body.transform(compressor);
-            } else {
-                self.body = make_node(AST_BlockStatement, self.body, {
-                    body: rest
-                }).transform(compressor);
-            }
-            if_break_in_loop(self, compressor);
-        }
-        var first = self.body instanceof AST_BlockStatement ? self.body.body[0] : self.body;
-        if (first instanceof AST_If) {
-            if (first.body instanceof AST_Break
-                && compressor.loopcontrol_target(first.body.label) === self) {
-                if (self.condition) {
-                    self.condition = make_node(AST_Binary, self.condition, {
-                        left: self.condition,
-                        operator: "&&",
-                        right: first.condition.negate(compressor),
-                    });
-                } else {
-                    self.condition = first.condition.negate(compressor);
-                }
-                drop_it(first.alternative);
-            }
-            else if (first.alternative instanceof AST_Break
-                     && compressor.loopcontrol_target(first.alternative.label) === self) {
-                if (self.condition) {
-                    self.condition = make_node(AST_Binary, self.condition, {
-                        left: self.condition,
-                        operator: "&&",
-                        right: first.condition,
-                    });
-                } else {
-                    self.condition = first.condition;
-                }
-                drop_it(first.body);
-            }
-        }
-    };
-
-    OPT(AST_While, function(self, compressor) {
-        if (!compressor.option("loops")) return self;
-        self = AST_DWLoop.prototype.optimize.call(self, compressor);
-        if (self instanceof AST_While) {
-            if_break_in_loop(self, compressor);
-            self = make_node(AST_For, self, self).transform(compressor);
-        }
-        return self;
-    });
-
-    OPT(AST_For, function(self, compressor){
-        var cond = self.condition;
-        if (cond) {
-            cond = cond.evaluate(compressor);
-            self.condition = cond[0];
-        }
-        if (!compressor.option("loops")) return self;
-        if (cond) {
-            if (cond.length > 1 && !cond[1]) {
-                if (compressor.option("dead_code")) {
-                    var a = [];
-                    if (self.init instanceof AST_Statement) {
-                        a.push(self.init);
-                    }
-                    else if (self.init) {
-                        a.push(make_node(AST_SimpleStatement, self.init, {
-                            body: self.init
-                        }));
-                    }
-                    extract_declarations_from_unreachable_code(compressor, self.body, a);
-                    return make_node(AST_BlockStatement, self, { body: a });
-                }
-            }
-        }
-        if_break_in_loop(self, compressor);
-        return self;
-    });
-
-    OPT(AST_If, function(self, compressor){
-        if (!compressor.option("conditionals")) return self;
-        // if condition can be statically determined, warn and drop
-        // one of the blocks.  note, statically determined implies
-        // “has no side effects”; also it doesn't work for cases like
-        // `x && true`, though it probably should.
-        var cond = self.condition.evaluate(compressor);
-        self.condition = cond[0];
-        if (cond.length > 1) {
-            if (cond[1]) {
-                compressor.warn("Condition always true [{file}:{line},{col}]", self.condition.start);
-                if (compressor.option("dead_code")) {
-                    var a = [];
-                    if (self.alternative) {
-                        extract_declarations_from_unreachable_code(compressor, self.alternative, a);
-                    }
-                    a.push(self.body);
-                    return make_node(AST_BlockStatement, self, { body: a }).transform(compressor);
-                }
-            } else {
-                compressor.warn("Condition always false [{file}:{line},{col}]", self.condition.start);
-                if (compressor.option("dead_code")) {
-                    var a = [];
-                    extract_declarations_from_unreachable_code(compressor, self.body, a);
-                    if (self.alternative) a.push(self.alternative);
-                    return make_node(AST_BlockStatement, self, { body: a }).transform(compressor);
-                }
-            }
-        }
-        if (is_empty(self.alternative)) self.alternative = null;
-        var negated = self.condition.negate(compressor);
-        var negated_is_best = best_of(self.condition, negated) === negated;
-        if (self.alternative && negated_is_best) {
-            negated_is_best = false; // because we already do the switch here.
-            self.condition = negated;
-            var tmp = self.body;
-            self.body = self.alternative || make_node(AST_EmptyStatement);
-            self.alternative = tmp;
-        }
-        if (is_empty(self.body) && is_empty(self.alternative)) {
-            return make_node(AST_SimpleStatement, self.condition, {
-                body: self.condition
-            }).transform(compressor);
-        }
-        if (self.body instanceof AST_SimpleStatement
-            && self.alternative instanceof AST_SimpleStatement) {
-            return make_node(AST_SimpleStatement, self, {
-                body: make_node(AST_Conditional, self, {
-                    condition   : self.condition,
-                    consequent  : self.body.body,
-                    alternative : self.alternative.body
-                })
-            }).transform(compressor);
-        }
-        if (is_empty(self.alternative) && self.body instanceof AST_SimpleStatement) {
-            if (negated_is_best) return make_node(AST_SimpleStatement, self, {
-                body: make_node(AST_Binary, self, {
-                    operator : "||",
-                    left     : negated,
-                    right    : self.body.body
-                })
-            }).transform(compressor);
-            return make_node(AST_SimpleStatement, self, {
-                body: make_node(AST_Binary, self, {
-                    operator : "&&",
-                    left     : self.condition,
-                    right    : self.body.body
-                })
-            }).transform(compressor);
-        }
-        if (self.body instanceof AST_EmptyStatement
-            && self.alternative
-            && self.alternative instanceof AST_SimpleStatement) {
-            return make_node(AST_SimpleStatement, self, {
-                body: make_node(AST_Binary, self, {
-                    operator : "||",
-                    left     : self.condition,
-                    right    : self.alternative.body
-                })
-            }).transform(compressor);
-        }
-        if (self.body instanceof AST_Exit
-            && self.alternative instanceof AST_Exit
-            && self.body.TYPE == self.alternative.TYPE) {
-            return make_node(self.body.CTOR, self, {
-                value: make_node(AST_Conditional, self, {
-                    condition   : self.condition,
-                    consequent  : self.body.value || make_node(AST_Undefined, self.body).optimize(compressor),
-                    alternative : self.alternative.value || make_node(AST_Undefined, self.alternative).optimize(compressor)
-                })
-            }).transform(compressor);
-        }
-        if (self.body instanceof AST_If
-            && !self.body.alternative
-            && !self.alternative) {
-            self.condition = make_node(AST_Binary, self.condition, {
-                operator: "&&",
-                left: self.condition,
-                right: self.body.condition
-            }).transform(compressor);
-            self.body = self.body.body;
-        }
-        if (aborts(self.body)) {
-            if (self.alternative) {
-                var alt = self.alternative;
-                self.alternative = null;
-                return make_node(AST_BlockStatement, self, {
-                    body: [ self, alt ]
-                }).transform(compressor);
-            }
-        }
-        if (aborts(self.alternative)) {
-            var body = self.body;
-            self.body = self.alternative;
-            self.condition = negated_is_best ? negated : self.condition.negate(compressor);
-            self.alternative = null;
-            return make_node(AST_BlockStatement, self, {
-                body: [ self, body ]
-            }).transform(compressor);
-        }
-        return self;
-    });
-
-    OPT(AST_Switch, function(self, compressor){
-        if (self.body.length == 0 && compressor.option("conditionals")) {
-            return make_node(AST_SimpleStatement, self, {
-                body: self.expression
-            }).transform(compressor);
-        }
-        for(;;) {
-            var last_branch = self.body[self.body.length - 1];
-            if (last_branch) {
-                var stat = last_branch.body[last_branch.body.length - 1]; // last statement
-                if (stat instanceof AST_Break && loop_body(compressor.loopcontrol_target(stat.label)) === self)
-                    last_branch.body.pop();
-                if (last_branch instanceof AST_Default && last_branch.body.length == 0) {
-                    self.body.pop();
-                    continue;
-                }
-            }
-            break;
-        }
-        var exp = self.expression.evaluate(compressor);
-        out: if (exp.length == 2) try {
-            // constant expression
-            self.expression = exp[0];
-            if (!compressor.option("dead_code")) break out;
-            var value = exp[1];
-            var in_if = false;
-            var in_block = false;
-            var started = false;
-            var stopped = false;
-            var ruined = false;
-            var tt = new TreeTransformer(function(node, descend, in_list){
-                if (node instanceof AST_Lambda || node instanceof AST_SimpleStatement) {
-                    // no need to descend these node types
-                    return node;
-                }
-                else if (node instanceof AST_Switch && node === self) {
-                    node = node.clone();
-                    descend(node, this);
-                    return ruined ? node : make_node(AST_BlockStatement, node, {
-                        body: node.body.reduce(function(a, branch){
-                            return a.concat(branch.body);
-                        }, [])
-                    }).transform(compressor);
-                }
-                else if (node instanceof AST_If || node instanceof AST_Try) {
-                    var save = in_if;
-                    in_if = !in_block;
-                    descend(node, this);
-                    in_if = save;
-                    return node;
-                }
-                else if (node instanceof AST_StatementWithBody || node instanceof AST_Switch) {
-                    var save = in_block;
-                    in_block = true;
-                    descend(node, this);
-                    in_block = save;
-                    return node;
-                }
-                else if (node instanceof AST_Break && this.loopcontrol_target(node.label) === self) {
-                    if (in_if) {
-                        ruined = true;
-                        return node;
-                    }
-                    if (in_block) return node;
-                    stopped = true;
-                    return in_list ? MAP.skip : make_node(AST_EmptyStatement, node);
-                }
-                else if (node instanceof AST_SwitchBranch && this.parent() === self) {
-                    if (stopped) return MAP.skip;
-                    if (node instanceof AST_Case) {
-                        var exp = node.expression.evaluate(compressor);
-                        if (exp.length < 2) {
-                            // got a case with non-constant expression, baling out
-                            throw self;
-                        }
-                        if (exp[1] === value || started) {
-                            started = true;
-                            if (aborts(node)) stopped = true;
-                            descend(node, this);
-                            return node;
-                        }
-                        return MAP.skip;
-                    }
-                    descend(node, this);
-                    return node;
-                }
-            });
-            tt.stack = compressor.stack.slice(); // so that's able to see parent nodes
-            self = self.transform(tt);
-        } catch(ex) {
-            if (ex !== self) throw ex;
-        }
-        return self;
-    });
-
-    OPT(AST_Case, function(self, compressor){
-        self.body = tighten_body(self.body, compressor);
-        return self;
-    });
-
-    OPT(AST_Try, function(self, compressor){
-        self.body = tighten_body(self.body, compressor);
-        return self;
-    });
-
-    AST_Definitions.DEFMETHOD("remove_initializers", function(){
-        this.definitions.forEach(function(def){ def.value = null });
-    });
-
-    AST_Definitions.DEFMETHOD("to_assignments", function(){
-        var assignments = this.definitions.reduce(function(a, def){
-            if (def.value) {
-                var name = make_node(AST_SymbolRef, def.name, def.name);
-                a.push(make_node(AST_Assign, def, {
-                    operator : "=",
-                    left     : name,
-                    right    : def.value
-                }));
-            }
-            return a;
-        }, []);
-        if (assignments.length == 0) return null;
-        return AST_Seq.from_array(assignments);
-    });
-
-    OPT(AST_Definitions, function(self, compressor){
-        if (self.definitions.length == 0)
-            return make_node(AST_EmptyStatement, self);
-        return self;
-    });
-
-    OPT(AST_Function, function(self, compressor){
-        self = AST_Lambda.prototype.optimize.call(self, compressor);
-        if (compressor.option("unused")) {
-            if (self.name && self.name.unreferenced()) {
-                self.name = null;
-            }
-        }
-        return self;
-    });
-
-    OPT(AST_Call, function(self, compressor){
-        if (compressor.option("unsafe")) {
-            var exp = self.expression;
-            if (exp instanceof AST_SymbolRef && exp.undeclared()) {
-                switch (exp.name) {
-                  case "Array":
-                    if (self.args.length != 1) {
-                        return make_node(AST_Array, self, {
-                            elements: self.args
-                        }).transform(compressor);
-                    }
-                    break;
-                  case "Object":
-                    if (self.args.length == 0) {
-                        return make_node(AST_Object, self, {
-                            properties: []
-                        });
-                    }
-                    break;
-                  case "String":
-                    if (self.args.length == 0) return make_node(AST_String, self, {
-                        value: ""
-                    });
-                    if (self.args.length <= 1) return make_node(AST_Binary, self, {
-                        left: self.args[0],
-                        operator: "+",
-                        right: make_node(AST_String, self, { value: "" })
-                    }).transform(compressor);
-                    break;
-                  case "Number":
-                    if (self.args.length == 0) return make_node(AST_Number, self, {
-                        value: 0
-                    });
-                    if (self.args.length == 1) return make_node(AST_UnaryPrefix, self, {
-                        expression: self.args[0],
-                        operator: "+"
-                    }).transform(compressor);
-                  case "Boolean":
-                    if (self.args.length == 0) return make_node(AST_False, self);
-                    if (self.args.length == 1) return make_node(AST_UnaryPrefix, self, {
-                        expression: make_node(AST_UnaryPrefix, null, {
-                            expression: self.args[0],
-                            operator: "!"
-                        }),
-                        operator: "!"
-                    }).transform(compressor);
-                    break;
-                  case "Function":
-                    if (all(self.args, function(x){ return x instanceof AST_String })) {
-                        // quite a corner-case, but we can handle it:
-                        //   https://github.com/mishoo/UglifyJS2/issues/203
-                        // if the code argument is a constant, then we can minify it.
-                        try {
-                            var code = "(function(" + self.args.slice(0, -1).map(function(arg){
-                                return arg.value;
-                            }).join(",") + "){" + self.args[self.args.length - 1].value + "})()";
-                            var ast = parse(code);
-                            ast.figure_out_scope({ screw_ie8: compressor.option("screw_ie8") });
-                            var comp = new Compressor(compressor.options);
-                            ast = ast.transform(comp);
-                            ast.figure_out_scope({ screw_ie8: compressor.option("screw_ie8") });
-                            ast.mangle_names();
-                            var fun;
-                            try {
-                                ast.walk(new TreeWalker(function(node){
-                                    if (node instanceof AST_Lambda) {
-                                        fun = node;
-                                        throw ast;
-                                    }
-                                }));
-                            } catch(ex) {
-                                if (ex !== ast) throw ex;
-                            };
-                            var args = fun.argnames.map(function(arg, i){
-                                return make_node(AST_String, self.args[i], {
-                                    value: arg.print_to_string()
-                                });
-                            });
-                            var code = OutputStream();
-                            AST_BlockStatement.prototype._codegen.call(fun, fun, code);
-                            code = code.toString().replace(/^\{|\}$/g, "");
-                            args.push(make_node(AST_String, self.args[self.args.length - 1], {
-                                value: code
-                            }));
-                            self.args = args;
-                            return self;
-                        } catch(ex) {
-                            if (ex instanceof JS_Parse_Error) {
-                                compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]", self.args[self.args.length - 1].start);
-                                compressor.warn(ex.toString());
-                            } else {
-                                console.log(ex);
-                                throw ex;
-                            }
-                        }
-                    }
-                    break;
-                }
-            }
-            else if (exp instanceof AST_Dot && exp.property == "toString" && self.args.length == 0) {
-                return make_node(AST_Binary, self, {
-                    left: make_node(AST_String, self, { value: "" }),
-                    operator: "+",
-                    right: exp.expression
-                }).transform(compressor);
-            }
-            else if (exp instanceof AST_Dot && exp.expression instanceof AST_Array && exp.property == "join") EXIT: {
-                var separator = self.args.length == 0 ? "," : self.args[0].evaluate(compressor)[1];
-                if (separator == null) break EXIT; // not a constant
-                var elements = exp.expression.elements.reduce(function(a, el){
-                    el = el.evaluate(compressor);
-                    if (a.length == 0 || el.length == 1) {
-                        a.push(el);
-                    } else {
-                        var last = a[a.length - 1];
-                        if (last.length == 2) {
-                            // it's a constant
-                            var val = "" + last[1] + separator + el[1];
-                            a[a.length - 1] = [ make_node_from_constant(compressor, val, last[0]), val ];
-                        } else {
-                            a.push(el);
-                        }
-                    }
-                    return a;
-                }, []);
-                if (elements.length == 0) return make_node(AST_String, self, { value: "" });
-                if (elements.length == 1) return elements[0][0];
-                if (separator == "") {
-                    var first;
-                    if (elements[0][0] instanceof AST_String
-                        || elements[1][0] instanceof AST_String) {
-                        first = elements.shift()[0];
-                    } else {
-                        first = make_node(AST_String, self, { value: "" });
-                    }
-                    return elements.reduce(function(prev, el){
-                        return make_node(AST_Binary, el[0], {
-                            operator : "+",
-                            left     : prev,
-                            right    : el[0],
-                        });
-                    }, first).transform(compressor);
-                }
-                // need this awkward cloning to not affect original element
-                // best_of will decide which one to get through.
-                var node = self.clone();
-                node.expression = node.expression.clone();
-                node.expression.expression = node.expression.expression.clone();
-                node.expression.expression.elements = elements.map(function(el){
-                    return el[0];
-                });
-                return best_of(self, node);
-            }
-        }
-        if (compressor.option("side_effects")) {
-            if (self.expression instanceof AST_Function
-                && self.args.length == 0
-                && !AST_Block.prototype.has_side_effects.call(self.expression, compressor)) {
-                return make_node(AST_Undefined, self).transform(compressor);
-            }
-        }
-        if (compressor.option("drop_console")) {
-            if (self.expression instanceof AST_PropAccess &&
-                self.expression.expression instanceof AST_SymbolRef &&
-                self.expression.expression.name == "console" &&
-                self.expression.expression.undeclared()) {
-                return make_node(AST_Undefined, self).transform(compressor);
-            }
-        }
-        return self.evaluate(compressor)[0];
-    });
-
-    OPT(AST_New, function(self, compressor){
-        if (compressor.option("unsafe")) {
-            var exp = self.expression;
-            if (exp instanceof AST_SymbolRef && exp.undeclared()) {
-                switch (exp.name) {
-                  case "Object":
-                  case "RegExp":
-                  case "Function":
-                  case "Error":
-                  case "Array":
-                    return make_node(AST_Call, self, self).transform(compressor);
-                }
-            }
-        }
-        return self;
-    });
-
-    OPT(AST_Seq, function(self, compressor){
-        if (!compressor.option("side_effects"))
-            return self;
-        if (!self.car.has_side_effects(compressor)) {
-            // we shouldn't compress (1,eval)(something) to
-            // eval(something) because that changes the meaning of
-            // eval (becomes lexical instead of global).
-            var p;
-            if (!(self.cdr instanceof AST_SymbolRef
-                  && self.cdr.name == "eval"
-                  && self.cdr.undeclared()
-                  && (p = compressor.parent()) instanceof AST_Call
-                  && p.expression === self)) {
-                return self.cdr;
-            }
-        }
-        if (compressor.option("cascade")) {
-            if (self.car instanceof AST_Assign
-                && !self.car.left.has_side_effects(compressor)) {
-                if (self.car.left.equivalent_to(self.cdr)) {
-                    return self.car;
-                }
-                if (self.cdr instanceof AST_Call
-                    && self.cdr.expression.equivalent_to(self.car.left)) {
-                    self.cdr.expression = self.car;
-                    return self.cdr;
-                }
-            }
-            if (!self.car.has_side_effects(compressor)
-                && !self.cdr.has_side_effects(compressor)
-                && self.car.equivalent_to(self.cdr)) {
-                return self.car;
-            }
-        }
-        if (self.cdr instanceof AST_UnaryPrefix
-            && self.cdr.operator == "void"
-            && !self.cdr.expression.has_side_effects(compressor)) {
-            self.cdr.operator = self.car;
-            return self.cdr;
-        }
-        if (self.cdr instanceof AST_Undefined) {
-            return make_node(AST_UnaryPrefix, self, {
-                operator   : "void",
-                expression : self.car
-            });
-        }
-        return self;
-    });
-
-    AST_Unary.DEFMETHOD("lift_sequences", function(compressor){
-        if (compressor.option("sequences")) {
-            if (this.expression instanceof AST_Seq) {
-                var seq = this.expression;
-                var x = seq.to_array();
-                this.expression = x.pop();
-                x.push(this);
-                seq = AST_Seq.from_array(x).transform(compressor);
-                return seq;
-            }
-        }
-        return this;
-    });
-
-    OPT(AST_UnaryPostfix, function(self, compressor){
-        return self.lift_sequences(compressor);
-    });
-
-    OPT(AST_UnaryPrefix, function(self, compressor){
-        self = self.lift_sequences(compressor);
-        var e = self.expression;
-        if (compressor.option("booleans") && compressor.in_boolean_context()) {
-            switch (self.operator) {
-              case "!":
-                if (e instanceof AST_UnaryPrefix && e.operator == "!") {
-                    // !!foo ==> foo, if we're in boolean context
-                    return e.expression;
-                }
-                break;
-              case "typeof":
-                // typeof always returns a non-empty string, thus it's
-                // always true in booleans
-                compressor.warn("Boolean expression always true [{file}:{line},{col}]", self.start);
-                return make_node(AST_True, self);
-            }
-            if (e instanceof AST_Binary && self.operator == "!") {
-                self = best_of(self, e.negate(compressor));
-            }
-        }
-        return self.evaluate(compressor)[0];
-    });
-
-    function has_side_effects_or_prop_access(node, compressor) {
-        var save_pure_getters = compressor.option("pure_getters");
-        compressor.options.pure_getters = false;
-        var ret = node.has_side_effects(compressor);
-        compressor.options.pure_getters = save_pure_getters;
-        return ret;
-    }
-
-    AST_Binary.DEFMETHOD("lift_sequences", function(compressor){
-        if (compressor.option("sequences")) {
-            if (this.left instanceof AST_Seq) {
-                var seq = this.left;
-                var x = seq.to_array();
-                this.left = x.pop();
-                x.push(this);
-                seq = AST_Seq.from_array(x).transform(compressor);
-                return seq;
-            }
-            if (this.right instanceof AST_Seq
-                && this instanceof AST_Assign
-                && !has_side_effects_or_prop_access(this.left, compressor)) {
-                var seq = this.right;
-                var x = seq.to_array();
-                this.right = x.pop();
-                x.push(this);
-                seq = AST_Seq.from_array(x).transform(compressor);
-                return seq;
-            }
-        }
-        return this;
-    });
-
-    var commutativeOperators = makePredicate("== === != !== * & | ^");
-
-    OPT(AST_Binary, function(self, compressor){
-        var reverse = compressor.has_directive("use asm") ? noop
-            : function(op, force) {
-                if (force || !(self.left.has_side_effects(compressor) || self.right.has_side_effects(compressor))) {
-                    if (op) self.operator = op;
-                    var tmp = self.left;
-                    self.left = self.right;
-                    self.right = tmp;
-                }
-            };
-        if (commutativeOperators(self.operator)) {
-            if (self.right instanceof AST_Constant
-                && !(self.left instanceof AST_Constant)) {
-                // if right is a constant, whatever side effects the
-                // left side might have could not influence the
-                // result.  hence, force switch.
-
-                if (!(self.left instanceof AST_Binary
-                      && PRECEDENCE[self.left.operator] >= PRECEDENCE[self.operator])) {
-                    reverse(null, true);
-                }
-            }
-            if (/^[!=]==?$/.test(self.operator)) {
-                if (self.left instanceof AST_SymbolRef && self.right instanceof AST_Conditional) {
-                    if (self.right.consequent instanceof AST_SymbolRef
-                        && self.right.consequent.definition() === self.left.definition()) {
-                        if (/^==/.test(self.operator)) return self.right.condition;
-                        if (/^!=/.test(self.operator)) return self.right.condition.negate(compressor);
-                    }
-                    if (self.right.alternative instanceof AST_SymbolRef
-                        && self.right.alternative.definition() === self.left.definition()) {
-                        if (/^==/.test(self.operator)) return self.right.condition.negate(compressor);
-                        if (/^!=/.test(self.operator)) return self.right.condition;
-                    }
-                }
-                if (self.right instanceof AST_SymbolRef && self.left instanceof AST_Conditional) {
-                    if (self.left.consequent instanceof AST_SymbolRef
-                        && self.left.consequent.definition() === self.right.definition()) {
-                        if (/^==/.test(self.operator)) return self.left.condition;
-                        if (/^!=/.test(self.operator)) return self.left.condition.negate(compressor);
-                    }
-                    if (self.left.alternative instanceof AST_SymbolRef
-                        && self.left.alternative.definition() === self.right.definition()) {
-                        if (/^==/.test(self.operator)) return self.left.condition.negate(compressor);
-                        if (/^!=/.test(self.operator)) return self.left.condition;
-                    }
-                }
-            }
-        }
-        self = self.lift_sequences(compressor);
-        if (compressor.option("comparisons")) switch (self.operator) {
-          case "===":
-          case "!==":
-            if ((self.left.is_string(compressor) && self.right.is_string(compressor)) ||
-                (self.left.is_boolean() && self.right.is_boolean())) {
-                self.operator = self.operator.substr(0, 2);
-            }
-            // XXX: intentionally falling down to the next case
-          case "==":
-          case "!=":
-            if (self.left instanceof AST_String
-                && self.left.value == "undefined"
-                && self.right instanceof AST_UnaryPrefix
-                && self.right.operator == "typeof"
-                && compressor.option("unsafe")) {
-                if (!(self.right.expression instanceof AST_SymbolRef)
-                    || !self.right.expression.undeclared()) {
-                    self.right = self.right.expression;
-                    self.left = make_node(AST_Undefined, self.left).optimize(compressor);
-                    if (self.operator.length == 2) self.operator += "=";
-                }
-            }
-            break;
-        }
-        if (compressor.option("booleans") && compressor.in_boolean_context()) switch (self.operator) {
-          case "&&":
-            var ll = self.left.evaluate(compressor);
-            var rr = self.right.evaluate(compressor);
-            if ((ll.length > 1 && !ll[1]) || (rr.length > 1 && !rr[1])) {
-                compressor.warn("Boolean && always false [{file}:{line},{col}]", self.start);
-                return make_node(AST_False, self);
-            }
-            if (ll.length > 1 && ll[1]) {
-                return rr[0];
-            }
-            if (rr.length > 1 && rr[1]) {
-                return ll[0];
-            }
-            break;
-          case "||":
-            var ll = self.left.evaluate(compressor);
-            var rr = self.right.evaluate(compressor);
-            if ((ll.length > 1 && ll[1]) || (rr.length > 1 && rr[1])) {
-                compressor.warn("Boolean || always true [{file}:{line},{col}]", self.start);
-                return make_node(AST_True, self);
-            }
-            if (ll.length > 1 && !ll[1]) {
-                return rr[0];
-            }
-            if (rr.length > 1 && !rr[1]) {
-                return ll[0];
-            }
-            break;
-          case "+":
-            var ll = self.left.evaluate(compressor);
-            var rr = self.right.evaluate(compressor);
-            if ((ll.length > 1 && ll[0] instanceof AST_String && ll[1]) ||
-                (rr.length > 1 && rr[0] instanceof AST_String && rr[1])) {
-                compressor.warn("+ in boolean context always true [{file}:{line},{col}]", self.start);
-                return make_node(AST_True, self);
-            }
-            break;
-        }
-        if (compressor.option("comparisons")) {
-            if (!(compressor.parent() instanceof AST_Binary)
-                || compressor.parent() instanceof AST_Assign) {
-                var negated = make_node(AST_UnaryPrefix, self, {
-                    operator: "!",
-                    expression: self.negate(compressor)
-                });
-                self = best_of(self, negated);
-            }
-            switch (self.operator) {
-              case "<": reverse(">"); break;
-              case "<=": reverse(">="); break;
-            }
-        }
-        if (self.operator == "+" && self.right instanceof AST_String
-            && self.right.getValue() === "" && self.left instanceof AST_Binary
-            && self.left.operator == "+" && self.left.is_string(compressor)) {
-            return self.left;
-        }
-        if (compressor.option("evaluate")) {
-            if (self.operator == "+") {
-                if (self.left instanceof AST_Constant
-                    && self.right instanceof AST_Binary
-                    && self.right.operator == "+"
-                    && self.right.left instanceof AST_Constant
-                    && self.right.is_string(compressor)) {
-                    self = make_node(AST_Binary, self, {
-                        operator: "+",
-                        left: make_node(AST_String, null, {
-                            value: "" + self.left.getValue() + self.right.left.getValue(),
-                            start: self.left.start,
-                            end: self.right.left.end
-                        }),
-                        right: self.right.right
-                    });
-                }
-                if (self.right instanceof AST_Constant
-                    && self.left instanceof AST_Binary
-                    && self.left.operator == "+"
-                    && self.left.right instanceof AST_Constant
-                    && self.left.is_string(compressor)) {
-                    self = make_node(AST_Binary, self, {
-                        operator: "+",
-                        left: self.left.left,
-                        right: make_node(AST_String, null, {
-                            value: "" + self.left.right.getValue() + self.right.getValue(),
-                            start: self.left.right.start,
-                            end: self.right.end
-                        })
-                    });
-                }
-                if (self.left instanceof AST_Binary
-                    && self.left.operator == "+"
-                    && self.left.is_string(compressor)
-                    && self.left.right instanceof AST_Constant
-                    && self.right instanceof AST_Binary
-                    && self.right.operator == "+"
-                    && self.right.left instanceof AST_Constant
-                    && self.right.is_string(compressor)) {
-                    self = make_node(AST_Binary, self, {
-                        operator: "+",
-                        left: make_node(AST_Binary, self.left, {
-                            operator: "+",
-                            left: self.left.left,
-                            right: make_node(AST_String, null, {
-                                value: "" + self.left.right.getValue() + self.right.left.getValue(),
-                                start: self.left.right.start,
-                                end: self.right.left.end
-                            })
-                        }),
-                        right: self.right.right
-                    });
-                }
-            }
-        }
-        // x * (y * z)  ==>  x * y * z
-        if (self.right instanceof AST_Binary
-            && self.right.operator == self.operator
-            && (self.operator == "*" || self.operator == "&&" || self.operator == "||"))
-        {
-            self.left = make_node(AST_Binary, self.left, {
-                operator : self.operator,
-                left     : self.left,
-                right    : self.right.left
-            });
-            self.right = self.right.right;
-            return self.transform(compressor);
-        }
-        return self.evaluate(compressor)[0];
-    });
-
-    OPT(AST_SymbolRef, function(self, compressor){
-        if (self.undeclared()) {
-            var defines = compressor.option("global_defs");
-            if (defines && defines.hasOwnProperty(self.name)) {
-                return make_node_from_constant(compressor, defines[self.name], self);
-            }
-            switch (self.name) {
-              case "undefined":
-                return make_node(AST_Undefined, self);
-              case "NaN":
-                return make_node(AST_NaN, self);
-              case "Infinity":
-                return make_node(AST_Infinity, self);
-            }
-        }
-        return self;
-    });
-
-    OPT(AST_Undefined, function(self, compressor){
-        if (compressor.option("unsafe")) {
-            var scope = compressor.find_parent(AST_Scope);
-            var undef = scope.find_variable("undefined");
-            if (undef) {
-                var ref = make_node(AST_SymbolRef, self, {
-                    name   : "undefined",
-                    scope  : scope,
-                    thedef : undef
-                });
-                ref.reference();
-                return ref;
-            }
-        }
-        return self;
-    });
-
-    var ASSIGN_OPS = [ '+', '-', '/', '*', '%', '>>', '<<', '>>>', '|', '^', '&' ];
-    OPT(AST_Assign, function(self, compressor){
-        self = self.lift_sequences(compressor);
-        if (self.operator == "="
-            && self.left instanceof AST_SymbolRef
-            && self.right instanceof AST_Binary
-            && self.right.left instanceof AST_SymbolRef
-            && self.right.left.name == self.left.name
-            && member(self.right.operator, ASSIGN_OPS)) {
-            self.operator = self.right.operator + "=";
-            self.right = self.right.right;
-        }
-        return self;
-    });
-
-    OPT(AST_Conditional, function(self, compressor){
-        if (!compressor.option("conditionals")) return self;
-        if (self.condition instanceof AST_Seq) {
-            var car = self.condition.car;
-            self.condition = self.condition.cdr;
-            return AST_Seq.cons(car, self);
-        }
-        var cond = self.condition.evaluate(compressor);
-        if (cond.length > 1) {
-            if (cond[1]) {
-                compressor.warn("Condition always true [{file}:{line},{col}]", self.start);
-                return self.consequent;
-            } else {
-                compressor.warn("Condition always false [{file}:{line},{col}]", self.start);
-                return self.alternative;
-            }
-        }
-        var negated = cond[0].negate(compressor);
-        if (best_of(cond[0], negated) === negated) {
-            self = make_node(AST_Conditional, self, {
-                condition: negated,
-                consequent: self.alternative,
-                alternative: self.consequent
-            });
-        }
-        var consequent = self.consequent;
-        var alternative = self.alternative;
-        if (consequent instanceof AST_Assign
-            && alternative instanceof AST_Assign
-            && consequent.operator == alternative.operator
-            && consequent.left.equivalent_to(alternative.left)
-           ) {
-            /*
-             * Stuff like this:
-             * if (foo) exp = something; else exp = something_else;
-             * ==>
-             * exp = foo ? something : something_else;
-             */
-            return make_node(AST_Assign, self, {
-                operator: consequent.operator,
-                left: consequent.left,
-                right: make_node(AST_Conditional, self, {
-                    condition: self.condition,
-                    consequent: consequent.right,
-                    alternative: alternative.right
-                })
-            });
-        }
-        if (consequent instanceof AST_Call
-            && alternative.TYPE === consequent.TYPE
-            && consequent.args.length == alternative.args.length
-            && consequent.expression.equivalent_to(alternative.expression)) {
-            if (consequent.args.length == 0) {
-                return make_node(AST_Seq, self, {
-                    car: self.condition,
-                    cdr: consequent
-                });
-            }
-            if (consequent.args.length == 1) {
-                consequent.args[0] = make_node(AST_Conditional, self, {
-                    condition: self.condition,
-                    consequent: consequent.args[0],
-                    alternative: alternative.args[0]
-                });
-                return consequent;
-            }
-        }
-        return self;
-    });
-
-    OPT(AST_Boolean, function(self, compressor){
-        if (compressor.option("booleans")) {
-            var p = compressor.parent();
-            if (p instanceof AST_Binary && (p.operator == "=="
-                                            || p.operator == "!=")) {
-                compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]", {
-                    operator : p.operator,
-                    value    : self.value,
-                    file     : p.start.file,
-                    line     : p.start.line,
-                    col      : p.start.col,
-                });
-                return make_node(AST_Number, self, {
-                    value: +self.value
-                });
-            }
-            return make_node(AST_UnaryPrefix, self, {
-                operator: "!",
-                expression: make_node(AST_Number, self, {
-                    value: 1 - self.value
-                })
-            });
-        }
-        return self;
-    });
-
-    OPT(AST_Sub, function(self, compressor){
-        var prop = self.property;
-        if (prop instanceof AST_String && compressor.option("properties")) {
-            prop = prop.getValue();
-            if (RESERVED_WORDS(prop) ? compressor.option("screw_ie8") : is_identifier_string(prop)) {
-                return make_node(AST_Dot, self, {
-                    expression : self.expression,
-                    property   : prop
-                });
-            }
-            var v = parseFloat(prop);
-            if (!isNaN(v) && v.toString() == prop) {
-                self.property = make_node(AST_Number, self.property, {
-                    value: v
-                });
-            }
-        }
-        return self;
-    });
-
-    function literals_in_boolean_context(self, compressor) {
-        if (compressor.option("booleans") && compressor.in_boolean_context()) {
-            return make_node(AST_True, self);
-        }
-        return self;
-    };
-    OPT(AST_Array, literals_in_boolean_context);
-    OPT(AST_Object, literals_in_boolean_context);
-    OPT(AST_RegExp, literals_in_boolean_context);
-
-})();
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-// a small wrapper around fitzgen's source-map library
-function SourceMap(options) {
-    options = defaults(options, {
-        file : null,
-        root : null,
-        orig : null,
-
-        orig_line_diff : 0,
-        dest_line_diff : 0,
-    });
-    var generator = new MOZ_SourceMap.SourceMapGenerator({
-        file       : options.file,
-        sourceRoot : options.root
-    });
-    var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig);
-    function add(source, gen_line, gen_col, orig_line, orig_col, name) {
-        if (orig_map) {
-            var info = orig_map.originalPositionFor({
-                line: orig_line,
-                column: orig_col
-            });
-            source = info.source;
-            orig_line = info.line;
-            orig_col = info.column;
-            name = info.name;
-        }
-        generator.addMapping({
-            generated : { line: gen_line + options.dest_line_diff, column: gen_col },
-            original  : { line: orig_line + options.orig_line_diff, column: orig_col },
-            source    : source,
-            name      : name
-        });
-    };
-    return {
-        add        : add,
-        get        : function() { return generator },
-        toString   : function() { return generator.toString() }
-    };
-};
-
-/***********************************************************************
-
-  A JavaScript tokenizer / parser / beautifier / compressor.
-  https://github.com/mishoo/UglifyJS2
-
-  -------------------------------- (C) ---------------------------------
-
-                           Author: Mihai Bazon
-                         <mihai.bazon@gmail.com>
-                       http://mihai.bazon.net/blog
-
-  Distributed under the BSD license:
-
-    Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com>
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions
-    are met:
-
-        * Redistributions of source code must retain the above
-          copyright notice, this list of conditions and the following
-          disclaimer.
-
-        * Redistributions in binary form must reproduce the above
-          copyright notice, this list of conditions and the following
-          disclaimer in the documentation and/or other materials
-          provided with the distribution.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY
-    EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
-    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
-    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
-    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-    SUCH DAMAGE.
-
- ***********************************************************************/
-
-"use strict";
-
-(function(){
-
-    var MOZ_TO_ME = {
-        TryStatement : function(M) {
-            return new AST_Try({
-                start    : my_start_token(M),
-                end      : my_end_token(M),
-                body     : from_moz(M.block).body,
-                bcatch   : from_moz(M.handlers[0]),
-                bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null
-            });
-        },
-        CatchClause : function(M) {
-            return new AST_Catch({
-                start   : my_start_token(M),
-                end     : my_end_token(M),
-                argname : from_moz(M.param),
-                body    : from_moz(M.body).body
-            });
-        },
-        ObjectExpression : function(M) {
-            return new AST_Object({
-                start      : my_start_token(M),
-                end        : my_end_token(M),
-                properties : M.properties.map(function(prop){
-                    var key = prop.key;
-                    var name = key.type == "Identifier" ? key.name : key.value;
-                    var args = {
-                        start    : my_start_token(key),
-                        end      : my_end_token(prop.value),
-                        key      : name,
-                        value    : from_moz(prop.value)
-                    };
-                    switch (prop.kind) {
-                      case "init":
-                        return new AST_ObjectKeyVal(args);
-                      case "set":
-                        args.value.name = from_moz(key);
-                        return new AST_ObjectSetter(args);
-                      case "get":
-                        args.value.name = from_moz(key);
-                        return new AST_ObjectGetter(args);
-                    }
-                })
-            });
-        },
-        SequenceExpression : function(M) {
-            return AST_Seq.from_array(M.expressions.map(from_moz));
-        },
-        MemberExpression : function(M) {
-            return new (M.computed ? AST_Sub : AST_Dot)({
-                start      : my_start_token(M),
-                end        : my_end_token(M),
-                property   : M.computed ? from_moz(M.property) : M.property.name,
-                expression : from_moz(M.object)
-            });
-        },
-        SwitchCase : function(M) {
-            return new (M.test ? AST_Case : AST_Default)({
-                start      : my_start_token(M),
-                end        : my_end_token(M),
-                expression : from_moz(M.test),
-                body       : M.consequent.map(from_moz)
-            });
-        },
-        Literal : function(M) {
-            var val = M.value, args = {
-                start  : my_start_token(M),
-                end    : my_end_token(M)
-            };
-            if (val === null) return new AST_Null(args);
-            switch (typeof val) {
-              case "string":
-                args.value = val;
-                return new AST_String(args);
-              case "number":
-                args.value = val;
-                return new AST_Number(args);
-              case "boolean":
-                return new (val ? AST_True : AST_False)(args);
-              default:
-                args.value = val;
-                return new AST_RegExp(args);
-            }
-        },
-        UnaryExpression: From_Moz_Unary,
-        UpdateExpression: From_Moz_Unary,
-        Identifier: function(M) {
-            var p = FROM_MOZ_STACK[FROM_MOZ_STACK.length - 2];
-            return new (M.name == "this" ? AST_This
-                        : p.type == "LabeledStatement" ? AST_Label
-                        : p.type == "VariableDeclarator" && p.id === M ? (p.kind == "const" ? AST_SymbolConst : AST_SymbolVar)
-                        : p.type == "FunctionExpression" ? (p.id === M ? AST_SymbolLambda : AST_SymbolFunarg)
-                        : p.type == "FunctionDeclaration" ? (p.id === M ? AST_SymbolDefun : AST_SymbolFunarg)
-                        : p.type == "CatchClause" ? AST_SymbolCatch
-                        : p.type == "BreakStatement" || p.type == "ContinueStatement" ? AST_LabelRef
-                        : AST_SymbolRef)({
-                            start : my_start_token(M),
-                            end   : my_end_token(M),
-                            name  : M.name
-                        });
-        }
-    };
-
-    function From_Moz_Unary(M) {
-        var prefix = "prefix" in M ? M.prefix
-            : M.type == "UnaryExpression" ? true : false;
-        return new (prefix ? AST_UnaryPrefix : AST_UnaryPostfix)({
-            start      : my_start_token(M),
-            end        : my_end_token(M),
-            operator   : M.operator,
-            expression : from_moz(M.argument)
-        });
-    };
-
-    var ME_TO_MOZ = {};
-
-    map("Node", AST_Node);
-    map("Program", AST_Toplevel, "body@body");
-    map("Function", AST_Function, "id>name, params@argnames, body%body");
-    map("EmptyStatement", AST_EmptyStatement);
-    map("BlockStatement", AST_BlockStatement, "body@body");
-    map("ExpressionStatement", AST_SimpleStatement, "expression>body");
-    map("IfStatement", AST_If, "test>condition, consequent>body, alternate>alternative");
-    map("LabeledStatement", AST_LabeledStatement, "label>label, body>body");
-    map("BreakStatement", AST_Break, "label>label");
-    map("ContinueStatement", AST_Continue, "label>label");
-    map("WithStatement", AST_With, "object>expression, body>body");
-    map("SwitchStatement", AST_Switch, "discriminant>expression, cases@body");
-    map("ReturnStatement", AST_Return, "argument>value");
-    map("ThrowStatement", AST_Throw, "argument>value");
-    map("WhileStatement", AST_While, "test>condition, body>body");
-    map("DoWhileStatement", AST_Do, "test>condition, body>body");
-    map("ForStatement", AST_For, "init>init, test>condition, update>step, body>body");
-    map("ForInStatement", AST_ForIn, "left>init, right>object, body>body");
-    map("DebuggerStatement", AST_Debugger);
-    map("FunctionDeclaration", AST_Defun, "id>name, params@argnames, body%body");
-    map("VariableDeclaration", AST_Var, "declarations@definitions");
-    map("VariableDeclarator", AST_VarDef, "id>name, init>value");
-
-    map("ThisExpression", AST_This);
-    map("ArrayExpression", AST_Array, "elements@elements");
-    map("FunctionExpression", AST_Function, "id>name, params@argnames, body%body");
-    map("BinaryExpression", AST_Binary, "operator=operator, left>left, right>right");
-    map("AssignmentExpression", AST_Assign, "operator=operator, left>left, right>right");
-    map("LogicalExpression", AST_Binary, "operator=operator, left>left, right>right");
-    map("ConditionalExpression", AST_Conditional, "test>condition, consequent>consequent, alternate>alternative");
-    map("NewExpression", AST_New, "callee>expression, arguments@args");
-    map("CallExpression", AST_Call, "callee>expression, arguments@args");
-
-    /* -----[ tools ]----- */
-
-    function my_start_token(moznode) {
-        return new AST_Token({
-            file   : moznode.loc && moznode.loc.source,
-            line   : moznode.loc && moznode.loc.start.line,
-            col    : moznode.loc && moznode.loc.start.column,
-            pos    : moznode.start,
-            endpos : moznode.start
-        });
-    };
-
-    function my_end_token(moznode) {
-        return new AST_Token({
-            file   : moznode.loc && moznode.loc.source,
-            line   : moznode.loc && moznode.loc.end.line,
-            col    : moznode.loc && moznode.loc.end.column,
-            pos    : moznode.end,
-            endpos : moznode.end
-        });
-    };
-
-    function map(moztype, mytype, propmap) {
-        var moz_to_me = "function From_Moz_" + moztype + "(M){\n";
-        moz_to_me += "return new mytype({\n" +
-            "start: my_start_token(M),\n" +
-            "end: my_end_token(M)";
-
-        if (propmap) propmap.split(/\s*,\s*/).forEach(function(prop){
-            var m = /([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);
-            if (!m) throw new Error("Can't understand property map: " + prop);
-            var moz = "M." + m[1], how = m[2], my = m[3];
-            moz_to_me += ",\n" + my + ": ";
-            if (how == "@") {
-                moz_to_me += moz + ".map(from_moz)";
-            } else if (how == ">") {
-                moz_to_me += "from_moz(" + moz + ")";
-            } else if (how == "=") {
-                moz_to_me += moz;
-            } else if (how == "%") {
-                moz_to_me += "from_moz(" + moz + ").body";
-            } else throw new Error("Can't understand operator in propmap: " + prop);
-        });
-        moz_to_me += "\n})}";
-
-        // moz_to_me = parse(moz_to_me).print_to_string({ beautify: true });
-        // console.log(moz_to_me);
-
-        moz_to_me = new Function("mytype", "my_start_token", "my_end_token", "from_moz", "return(" + moz_to_me + ")")(
-            mytype, my_start_token, my_end_token, from_moz
-        );
-        return MOZ_TO_ME[moztype] = moz_to_me;
-    };
-
-    var FROM_MOZ_STACK = null;
-
-    function from_moz(node) {
-        FROM_MOZ_STACK.push(node);
-        var ret = node != null ? MOZ_TO_ME[node.type](node) : null;
-        FROM_MOZ_STACK.pop();
-        return ret;
-    };
-
-    AST_Node.from_mozilla_ast = function(node){
-        var save_stack = FROM_MOZ_STACK;
-        FROM_MOZ_STACK = [];
-        var ast = from_moz(node);
-        FROM_MOZ_STACK = save_stack;
-        return ast;
-    };
-
-})();
-
-AST_Node.warn_function = function(txt) { logger.error("uglifyjs2 WARN: " + txt); };
-exports.minify = function(files, options, name) {
-    options = defaults(options, {
-        spidermonkey : false,
-        outSourceMap : null,
-        sourceRoot   : null,
-        inSourceMap  : null,
-        fromString   : false,
-        warnings     : false,
-        mangle       : {},
-        output       : null,
-        compress     : {}
-    });
-    base54.reset();
-
-    // 1. parse
-    var toplevel = null;
-
-    if (options.spidermonkey) {
-        toplevel = AST_Node.from_mozilla_ast(files);
-    } else {
-        if (typeof files == "string")
-            files = [ files ];
-        files.forEach(function(file){
-            var code = options.fromString
-                ? file
-                : rjsFile.readFile(file, "utf8");
-            toplevel = parse(code, {
-                filename: options.fromString ? name : file,
-                toplevel: toplevel
-            });
-        });
-    }
-
-    // 2. compress
-    if (options.compress) {
-        var compress = { warnings: options.warnings };
-        merge(compress, options.compress);
-        toplevel.figure_out_scope();
-        var sq = Compressor(compress);
-        toplevel = toplevel.transform(sq);
-    }
-
-    // 3. mangle
-    if (options.mangle) {
-        toplevel.figure_out_scope();
-        toplevel.compute_char_frequency();
-        toplevel.mangle_names(options.mangle);
-    }
-
-    // 4. output
-    var inMap = options.inSourceMap;
-    var output = {};
-    if (typeof options.inSourceMap == "string") {
-        inMap = rjsFile.readFile(options.inSourceMap, "utf8");
-    }
-    if (options.outSourceMap) {
-        output.source_map = SourceMap({
-            file: options.outSourceMap,
-            orig: inMap,
-            root: options.sourceRoot
-        });
-    }
-    if (options.output) {
-        merge(output, options.output);
-    }
-    var stream = OutputStream(output);
-    toplevel.print(stream);
-    return {
-        code : stream + "",
-        map  : output.source_map + ""
-    };
-};
-
-// exports.describe_ast = function() {
-//     function doitem(ctor) {
-//         var sub = {};
-//         ctor.SUBCLASSES.forEach(function(ctor){
-//             sub[ctor.TYPE] = doitem(ctor);
-//         });
-//         var ret = {};
-//         if (ctor.SELF_PROPS.length > 0) ret.props = ctor.SELF_PROPS;
-//         if (ctor.SUBCLASSES.length > 0) ret.sub = sub;
-//         return ret;
-//     }
-//     return doitem(AST_Node).sub;
-// }
-
-exports.describe_ast = function() {
-    var out = OutputStream({ beautify: true });
-    function doitem(ctor) {
-        out.print("AST_" + ctor.TYPE);
-        var props = ctor.SELF_PROPS.filter(function(prop){
-            return !/^\$/.test(prop);
-        });
-        if (props.length > 0) {
-            out.space();
-            out.with_parens(function(){
-                props.forEach(function(prop, i){
-                    if (i) out.space();
-                    out.print(prop);
-                });
-            });
-        }
-        if (ctor.documentation) {
-            out.space();
-            out.print_string(ctor.documentation);
-        }
-        if (ctor.SUBCLASSES.length > 0) {
-            out.space();
-            out.with_block(function(){
-                ctor.SUBCLASSES.forEach(function(ctor, i){
-                    out.indent();
-                    doitem(ctor);
-                    out.newline();
-                });
-            });
-        }
-    };
-    doitem(AST_Node);
-    return out + "";
-};
-
-
-});
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true */
-/*global define: false */
-
-define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
-    'use strict';
-
-    function arrayToString(ary) {
-        var output = '[';
-        if (ary) {
-            ary.forEach(function (item, i) {
-                output += (i > 0 ? ',' : '') + '"' + lang.jsEscape(item) + '"';
-            });
-        }
-        output += ']';
-
-        return output;
-    }
-
-    //This string is saved off because JSLint complains
-    //about obj.arguments use, as 'reserved word'
-    var argPropName = 'arguments';
-
-    //From an esprima example for traversing its ast.
-    function traverse(object, visitor) {
-        var key, child;
-
-        if (!object) {
-            return;
-        }
-
-        if (visitor.call(null, object) === false) {
-            return false;
-        }
-        for (key in object) {
-            if (object.hasOwnProperty(key)) {
-                child = object[key];
-                if (typeof child === 'object' && child !== null) {
-                    if (traverse(child, visitor) === false) {
-                        return false;
-                    }
-                }
-            }
-        }
-    }
-
-    //Like traverse, but visitor returning false just
-    //stops that subtree analysis, not the rest of tree
-    //visiting.
-    function traverseBroad(object, visitor) {
-        var key, child;
-
-        if (!object) {
-            return;
-        }
-
-        if (visitor.call(null, object) === false) {
-            return false;
-        }
-        for (key in object) {
-            if (object.hasOwnProperty(key)) {
-                child = object[key];
-                if (typeof child === 'object' && child !== null) {
-                    traverseBroad(child, visitor);
-                }
-            }
-        }
-    }
-
-    /**
-     * Pulls out dependencies from an array literal with just string members.
-     * If string literals, will just return those string values in an array,
-     * skipping other items in the array.
-     *
-     * @param {Node} node an AST node.
-     *
-     * @returns {Array} an array of strings.
-     * If null is returned, then it means the input node was not a valid
-     * dependency.
-     */
-    function getValidDeps(node) {
-        if (!node || node.type !== 'ArrayExpression' || !node.elements) {
-            return;
-        }
-
-        var deps = [];
-
-        node.elements.some(function (elem) {
-            if (elem.type === 'Literal') {
-                deps.push(elem.value);
-            }
-        });
-
-        return deps.length ? deps : undefined;
-    }
-
-    /**
-     * Main parse function. Returns a string of any valid require or
-     * define/require.def calls as part of one JavaScript source string.
-     * @param {String} moduleName the module name that represents this file.
-     * It is used to create a default define if there is not one already for the
-     * file. This allows properly tracing dependencies for builds. Otherwise, if
-     * the file just has a require() call, the file dependencies will not be
-     * properly reflected: the file will come before its dependencies.
-     * @param {String} moduleName
-     * @param {String} fileName
-     * @param {String} fileContents
-     * @param {Object} options optional options. insertNeedsDefine: true will
-     * add calls to require.needsDefine() if appropriate.
-     * @returns {String} JS source string or null, if no require or
-     * define/require.def calls are found.
-     */
-    function parse(moduleName, fileName, fileContents, options) {
-        options = options || {};
-
-        //Set up source input
-        var i, moduleCall, depString,
-            moduleDeps = [],
-            result = '',
-            moduleList = [],
-            needsDefine = true,
-            astRoot = esprima.parse(fileContents);
-
-        parse.recurse(astRoot, function (callName, config, name, deps) {
-            if (!deps) {
-                deps = [];
-            }
-
-            if (callName === 'define' && (!name || name === moduleName)) {
-                needsDefine = false;
-            }
-
-            if (!name) {
-                //If there is no module name, the dependencies are for
-                //this file/default module name.
-                moduleDeps = moduleDeps.concat(deps);
-            } else {
-                moduleList.push({
-                    name: name,
-                    deps: deps
-                });
-            }
-
-            //If define was found, no need to dive deeper, unless
-            //the config explicitly wants to dig deeper.
-            return !!options.findNestedDependencies;
-        }, options);
-
-        if (options.insertNeedsDefine && needsDefine) {
-            result += 'require.needsDefine("' + moduleName + '");';
-        }
-
-        if (moduleDeps.length || moduleList.length) {
-            for (i = 0; i < moduleList.length; i++) {
-                moduleCall = moduleList[i];
-                if (result) {
-                    result += '\n';
-                }
-
-                //If this is the main module for this file, combine any
-                //"anonymous" dependencies (could come from a nested require
-                //call) with this module.
-                if (moduleCall.name === moduleName) {
-                    moduleCall.deps = moduleCall.deps.concat(moduleDeps);
-                    moduleDeps = [];
-                }
-
-                depString = arrayToString(moduleCall.deps);
-                result += 'define("' + moduleCall.name + '",' +
-                          depString + ');';
-            }
-            if (moduleDeps.length) {
-                if (result) {
-                    result += '\n';
-                }
-                depString = arrayToString(moduleDeps);
-                result += 'define("' + moduleName + '",' + depString + ');';
-            }
-        }
-
-        return result || null;
-    }
-
-    parse.traverse = traverse;
-    parse.traverseBroad = traverseBroad;
-
-    /**
-     * Handles parsing a file recursively for require calls.
-     * @param {Array} parentNode the AST node to start with.
-     * @param {Function} onMatch function to call on a parse match.
-     * @param {Object} [options] This is normally the build config options if
-     * it is passed.
-     */
-    parse.recurse = function (object, onMatch, options) {
-        //Like traverse, but skips if branches that would not be processed
-        //after has application that results in tests of true or false boolean
-        //literal values.
-        var key, child,
-            hasHas = options && options.has;
-
-        if (!object) {
-            return;
-        }
-
-        //If has replacement has resulted in if(true){} or if(false){}, take
-        //the appropriate branch and skip the other one.
-        if (hasHas && object.type === 'IfStatement' && object.test.type &&
-                object.test.type === 'Literal') {
-            if (object.test.value) {
-                //Take the if branch
-                this.recurse(object.consequent, onMatch, options);
-            } else {
-                //Take the else branch
-                this.recurse(object.alternate, onMatch, options);
-            }
-        } else {
-            if (this.parseNode(object, onMatch) === false) {
-                return;
-            }
-            for (key in object) {
-                if (object.hasOwnProperty(key)) {
-                    child = object[key];
-                    if (typeof child === 'object' && child !== null) {
-                        this.recurse(child, onMatch, options);
-                    }
-                }
-            }
-        }
-    };
-
-    /**
-     * Determines if the file defines the require/define module API.
-     * Specifically, it looks for the `define.amd = ` expression.
-     * @param {String} fileName
-     * @param {String} fileContents
-     * @returns {Boolean}
-     */
-    parse.definesRequire = function (fileName, fileContents) {
-        var found = false;
-
-        traverse(esprima.parse(fileContents), function (node) {
-            if (parse.hasDefineAmd(node)) {
-                found = true;
-
-                //Stop traversal
-                return false;
-            }
-        });
-
-        return found;
-    };
-
-    /**
-     * Finds require("") calls inside a CommonJS anonymous module wrapped in a
-     * define(function(require, exports, module){}) wrapper. These dependencies
-     * will be added to a modified define() call that lists the dependencies
-     * on the outside of the function.
-     * @param {String} fileName
-     * @param {String|Object} fileContents: a string of contents, or an already
-     * parsed AST tree.
-     * @returns {Array} an array of module names that are dependencies. Always
-     * returns an array, but could be of length zero.
-     */
-    parse.getAnonDeps = function (fileName, fileContents) {
-        var astRoot = typeof fileContents === 'string' ?
-                      esprima.parse(fileContents) : fileContents,
-            defFunc = this.findAnonDefineFactory(astRoot);
-
-        return parse.getAnonDepsFromNode(defFunc);
-    };
-
-    /**
-     * Finds require("") calls inside a CommonJS anonymous module wrapped
-     * in a define function, given an AST node for the definition function.
-     * @param {Node} node the AST node for the definition function.
-     * @returns {Array} and array of dependency names. Can be of zero length.
-     */
-    parse.getAnonDepsFromNode = function (node) {
-        var deps = [],
-            funcArgLength;
-
-        if (node) {
-            this.findRequireDepNames(node, deps);
-
-            //If no deps, still add the standard CommonJS require, exports,
-            //module, in that order, to the deps, but only if specified as
-            //function args. In particular, if exports is used, it is favored
-            //over the return value of the function, so only add it if asked.
-            funcArgLength = node.params && node.params.length;
-            if (funcArgLength) {
-                deps = (funcArgLength > 1 ? ["require", "exports", "module"] :
-                        ["require"]).concat(deps);
-            }
-        }
-        return deps;
-    };
-
-    parse.isDefineNodeWithArgs = function (node) {
-        return node && node.type === 'CallExpression' &&
-               node.callee && node.callee.type === 'Identifier' &&
-               node.callee.name === 'define' && node[argPropName];
-    };
-
-    /**
-     * Finds the function in define(function (require, exports, module){});
-     * @param {Array} node
-     * @returns {Boolean}
-     */
-    parse.findAnonDefineFactory = function (node) {
-        var match;
-
-        traverse(node, function (node) {
-            var arg0, arg1;
-
-            if (parse.isDefineNodeWithArgs(node)) {
-
-                //Just the factory function passed to define
-                arg0 = node[argPropName][0];
-                if (arg0 && arg0.type === 'FunctionExpression') {
-                    match = arg0;
-                    return false;
-                }
-
-                //A string literal module ID followed by the factory function.
-                arg1 = node[argPropName][1];
-                if (arg0.type === 'Literal' &&
-                        arg1 && arg1.type === 'FunctionExpression') {
-                    match = arg1;
-                    return false;
-                }
-            }
-        });
-
-        return match;
-    };
-
-    /**
-     * Finds any config that is passed to requirejs. That includes calls to
-     * require/requirejs.config(), as well as require({}, ...) and
-     * requirejs({}, ...)
-     * @param {String} fileContents
-     *
-     * @returns {Object} a config details object with the following properties:
-     * - config: {Object} the config object found. Can be undefined if no
-     * config found.
-     * - range: {Array} the start index and end index in the contents where
-     * the config was found. Can be undefined if no config found.
-     * Can throw an error if the config in the file cannot be evaluated in
-     * a build context to valid JavaScript.
-     */
-    parse.findConfig = function (fileContents) {
-        /*jslint evil: true */
-        var jsConfig, foundConfig, stringData, foundRange, quote, quoteMatch,
-            quoteRegExp = /(:\s|\[\s*)(['"])/,
-            astRoot = esprima.parse(fileContents, {
-                loc: true
-            });
-
-        traverse(astRoot, function (node) {
-            var arg,
-                requireType = parse.hasRequire(node);
-
-            if (requireType && (requireType === 'require' ||
-                    requireType === 'requirejs' ||
-                    requireType === 'requireConfig' ||
-                    requireType === 'requirejsConfig')) {
-
-                arg = node[argPropName] && node[argPropName][0];
-
-                if (arg && arg.type === 'ObjectExpression') {
-                    stringData = parse.nodeToString(fileContents, arg);
-                    jsConfig = stringData.value;
-                    foundRange = stringData.range;
-                    return false;
-                }
-            } else {
-                arg = parse.getRequireObjectLiteral(node);
-                if (arg) {
-                    stringData = parse.nodeToString(fileContents, arg);
-                    jsConfig = stringData.value;
-                    foundRange = stringData.range;
-                    return false;
-                }
-            }
-        });
-
-        if (jsConfig) {
-            // Eval the config
-            quoteMatch = quoteRegExp.exec(jsConfig);
-            quote = (quoteMatch && quoteMatch[2]) || '"';
-            foundConfig = eval('(' + jsConfig + ')');
-        }
-
-        return {
-            config: foundConfig,
-            range: foundRange,
-            quote: quote
-        };
-    };
-
-    /** Returns the node for the object literal assigned to require/requirejs,
-     * for holding a declarative config.
-     */
-    parse.getRequireObjectLiteral = function (node) {
-        if (node.id && node.id.type === 'Identifier' &&
-                (node.id.name === 'require' || node.id.name === 'requirejs') &&
-                node.init && node.init.type === 'ObjectExpression') {
-            return node.init;
-        }
-    };
-
-    /**
-     * Renames require/requirejs/define calls to be ns + '.' + require/requirejs/define
-     * Does *not* do .config calls though. See pragma.namespace for the complete
-     * set of namespace transforms. This function is used because require calls
-     * inside a define() call should not be renamed, so a simple regexp is not
-     * good enough.
-     * @param  {String} fileContents the contents to transform.
-     * @param  {String} ns the namespace, *not* including trailing dot.
-     * @return {String} the fileContents with the namespace applied
-     */
-    parse.renameNamespace = function (fileContents, ns) {
-        var lines,
-            locs = [],
-            astRoot = esprima.parse(fileContents, {
-                loc: true
-            });
-
-        parse.recurse(astRoot, function (callName, config, name, deps, node) {
-            locs.push(node.loc);
-            //Do not recurse into define functions, they should be using
-            //local defines.
-            return callName !== 'define';
-        }, {});
-
-        if (locs.length) {
-            lines = fileContents.split('\n');
-
-            //Go backwards through the found locs, adding in the namespace name
-            //in front.
-            locs.reverse();
-            locs.forEach(function (loc) {
-                var startIndex = loc.start.column,
-                //start.line is 1-based, not 0 based.
-                lineIndex = loc.start.line - 1,
-                line = lines[lineIndex];
-
-                lines[lineIndex] = line.substring(0, startIndex) +
-                                   ns + '.' +
-                                   line.substring(startIndex,
-                                                      line.length);
-            });
-
-            fileContents = lines.join('\n');
-        }
-
-        return fileContents;
-    };
-
-    /**
-     * Finds all dependencies specified in dependency arrays and inside
-     * simplified commonjs wrappers.
-     * @param {String} fileName
-     * @param {String} fileContents
-     *
-     * @returns {Array} an array of dependency strings. The dependencies
-     * have not been normalized, they may be relative IDs.
-     */
-    parse.findDependencies = function (fileName, fileContents, options) {
-        var dependencies = [],
-            astRoot = esprima.parse(fileContents);
-
-        parse.recurse(astRoot, function (callName, config, name, deps) {
-            if (deps) {
-                dependencies = dependencies.concat(deps);
-            }
-        }, options);
-
-        return dependencies;
-    };
-
-    /**
-     * Finds only CJS dependencies, ones that are the form
-     * require('stringLiteral')
-     */
-    parse.findCjsDependencies = function (fileName, fileContents) {
-        var dependencies = [];
-
-        traverse(esprima.parse(fileContents), function (node) {
-            var arg;
-
-            if (node && node.type === 'CallExpression' && node.callee &&
-                    node.callee.type === 'Identifier' &&
-                    node.callee.name === 'require' && node[argPropName] &&
-                    node[argPropName].length === 1) {
-                arg = node[argPropName][0];
-                if (arg.type === 'Literal') {
-                    dependencies.push(arg.value);
-                }
-            }
-        });
-
-        return dependencies;
-    };
-
-    //function define() {}
-    parse.hasDefDefine = function (node) {
-        return node.type === 'FunctionDeclaration' && node.id &&
-                    node.id.type === 'Identifier' && node.id.name === 'define';
-    };
-
-    //define.amd = ...
-    parse.hasDefineAmd = function (node) {
-        return node && node.type === 'AssignmentExpression' &&
-            node.left && node.left.type === 'MemberExpression' &&
-            node.left.object && node.left.object.name === 'define' &&
-            node.left.property && node.left.property.name === 'amd';
-    };
-
-    //define.amd reference, as in: if (define.amd)
-    parse.refsDefineAmd = function (node) {
-        return node && node.type === 'MemberExpression' &&
-        node.object && node.object.name === 'define' &&
-        node.object.type === 'Identifier' &&
-        node.property && node.property.name === 'amd' &&
-        node.property.type === 'Identifier';
-    };
-
-    //require(), requirejs(), require.config() and requirejs.config()
-    parse.hasRequire = function (node) {
-        var callName,
-            c = node && node.callee;
-
-        if (node && node.type === 'CallExpression' && c) {
-            if (c.type === 'Identifier' &&
-                    (c.name === 'require' ||
-                    c.name === 'requirejs')) {
-                //A require/requirejs({}, ...) call
-                callName = c.name;
-            } else if (c.type === 'MemberExpression' &&
-                    c.object &&
-                    c.object.type === 'Identifier' &&
-                    (c.object.name === 'require' ||
-                        c.object.name === 'requirejs') &&
-                    c.property && c.property.name === 'config') {
-                // require/requirejs.config({}) call
-                callName = c.object.name + 'Config';
-            }
-        }
-
-        return callName;
-    };
-
-    //define()
-    parse.hasDefine = function (node) {
-        return node && node.type === 'CallExpression' && node.callee &&
-            node.callee.type === 'Identifier' &&
-            node.callee.name === 'define';
-    };
-
-    /**
-     * If there is a named define in the file, returns the name. Does not
-     * scan for mulitple names, just the first one.
-     */
-    parse.getNamedDefine = function (fileContents) {
-        var name;
-        traverse(esprima.parse(fileContents), function (node) {
-            if (node && node.type === 'CallExpression' && node.callee &&
-            node.callee.type === 'Identifier' &&
-            node.callee.name === 'define' &&
-            node[argPropName] && node[argPropName][0] &&
-            node[argPropName][0].type === 'Literal') {
-                name = node[argPropName][0].value;
-                return false;
-            }
-        });
-
-        return name;
-    };
-
-    /**
-     * Determines if define(), require({}|[]) or requirejs was called in the
-     * file. Also finds out if define() is declared and if define.amd is called.
-     */
-    parse.usesAmdOrRequireJs = function (fileName, fileContents) {
-        var uses;
-
-        traverse(esprima.parse(fileContents), function (node) {
-            var type, callName, arg;
-
-            if (parse.hasDefDefine(node)) {
-                //function define() {}
-                type = 'declaresDefine';
-            } else if (parse.hasDefineAmd(node)) {
-                type = 'defineAmd';
-            } else {
-                callName = parse.hasRequire(node);
-                if (callName) {
-                    arg = node[argPropName] && node[argPropName][0];
-                    if (arg && (arg.type === 'ObjectExpression' ||
-                            arg.type === 'ArrayExpression')) {
-                        type = callName;
-                    }
-                } else if (parse.hasDefine(node)) {
-                    type = 'define';
-                }
-            }
-
-            if (type) {
-                if (!uses) {
-                    uses = {};
-                }
-                uses[type] = true;
-            }
-        });
-
-        return uses;
-    };
-
-    /**
-     * Determines if require(''), exports.x =, module.exports =,
-     * __dirname, __filename are used. So, not strictly traditional CommonJS,
-     * also checks for Node variants.
-     */
-    parse.usesCommonJs = function (fileName, fileContents) {
-        var uses = null,
-            assignsExports = false;
-
-
-        traverse(esprima.parse(fileContents), function (node) {
-            var type,
-                exp = node.expression || node.init;
-
-            if (node.type === 'Identifier' &&
-                    (node.name === '__dirname' || node.name === '__filename')) {
-                type = node.name.substring(2);
-            } else if (node.type === 'VariableDeclarator' && node.id &&
-                    node.id.type === 'Identifier' &&
-                        node.id.name === 'exports') {
-                //Hmm, a variable assignment for exports, so does not use cjs
-                //exports.
-                type = 'varExports';
-            } else if (exp && exp.type === 'AssignmentExpression' && exp.left &&
-                    exp.left.type === 'MemberExpression' && exp.left.object) {
-                if (exp.left.object.name === 'module' && exp.left.property &&
-                        exp.left.property.name === 'exports') {
-                    type = 'moduleExports';
-                } else if (exp.left.object.name === 'exports' &&
-                        exp.left.property) {
-                    type = 'exports';
-                }
-
-            } else if (node && node.type === 'CallExpression' && node.callee &&
-                    node.callee.type === 'Identifier' &&
-                    node.callee.name === 'require' && node[argPropName] &&
-                    node[argPropName].length === 1 &&
-                    node[argPropName][0].type === 'Literal') {
-                type = 'require';
-            }
-
-            if (type) {
-                if (type === 'varExports') {
-                    assignsExports = true;
-                } else if (type !== 'exports' || !assignsExports) {
-                    if (!uses) {
-                        uses = {};
-                    }
-                    uses[type] = true;
-                }
-            }
-        });
-
-        return uses;
-    };
-
-
-    parse.findRequireDepNames = function (node, deps) {
-        traverse(node, function (node) {
-            var arg;
-
-            if (node && node.type === 'CallExpression' && node.callee &&
-                    node.callee.type === 'Identifier' &&
-                    node.callee.name === 'require' &&
-                    node[argPropName] && node[argPropName].length === 1) {
-
-                arg = node[argPropName][0];
-                if (arg.type === 'Literal') {
-                    deps.push(arg.value);
-                }
-            }
-        });
-    };
-
-    /**
-     * Determines if a specific node is a valid require or define/require.def
-     * call.
-     * @param {Array} node
-     * @param {Function} onMatch a function to call when a match is found.
-     * It is passed the match name, and the config, name, deps possible args.
-     * The config, name and deps args are not normalized.
-     *
-     * @returns {String} a JS source string with the valid require/define call.
-     * Otherwise null.
-     */
-    parse.parseNode = function (node, onMatch) {
-        var name, deps, cjsDeps, arg, factory, exp, refsDefine, bodyNode,
-            args = node && node[argPropName],
-            callName = parse.hasRequire(node);
-
-        if (callName === 'require' || callName === 'requirejs') {
-            //A plain require/requirejs call
-            arg = node[argPropName] && node[argPropName][0];
-            if (arg.type !== 'ArrayExpression') {
-                if (arg.type === 'ObjectExpression') {
-                    //A config call, try the second arg.
-                    arg = node[argPropName][1];
-                }
-            }
-
-            deps = getValidDeps(arg);
-            if (!deps) {
-                return;
-            }
-
-            return onMatch("require", null, null, deps, node);
-        } else if (parse.hasDefine(node) && args && args.length) {
-            name = args[0];
-            deps = args[1];
-            factory = args[2];
-
-            if (name.type === 'ArrayExpression') {
-                //No name, adjust args
-                factory = deps;
-                deps = name;
-                name = null;
-            } else if (name.type === 'FunctionExpression') {
-                //Just the factory, no name or deps
-                factory = name;
-                name = deps = null;
-            } else if (name.type !== 'Literal') {
-                 //An object literal, just null out
-                name = deps = factory = null;
-            }
-
-            if (name && name.type === 'Literal' && deps) {
-                if (deps.type === 'FunctionExpression') {
-                    //deps is the factory
-                    factory = deps;
-                    deps = null;
-                } else if (deps.type === 'ObjectExpression') {
-                    //deps is object literal, null out
-                    deps = factory = null;
-                } else if (deps.type === 'Identifier' && args.length === 2) {
-                    // define('id', factory)
-                    deps = factory = null;
-                }
-            }
-
-            if (deps && deps.type === 'ArrayExpression') {
-                deps = getValidDeps(deps);
-            } else if (factory && factory.type === 'FunctionExpression') {
-                //If no deps and a factory function, could be a commonjs sugar
-                //wrapper, scan the function for dependencies.
-                cjsDeps = parse.getAnonDepsFromNode(factory);
-                if (cjsDeps.length) {
-                    deps = cjsDeps;
-                }
-            } else if (deps || factory) {
-                //Does not match the shape of an AMD call.
-                return;
-            }
-
-            //Just save off the name as a string instead of an AST object.
-            if (name && name.type === 'Literal') {
-                name = name.value;
-            }
-
-            return onMatch("define", null, name, deps, node);
-        } else if (node.type === 'CallExpression' && node.callee &&
-                   node.callee.type === 'FunctionExpression' &&
-                   node.callee.body && node.callee.body.body &&
-                   node.callee.body.body.length === 1 &&
-                   node.callee.body.body[0].type === 'IfStatement') {
-            bodyNode = node.callee.body.body[0];
-            //Look for a define(Identifier) case, but only if inside an
-            //if that has a define.amd test
-            if (bodyNode.consequent && bodyNode.consequent.body) {
-                exp = bodyNode.consequent.body[0];
-                if (exp.type === 'ExpressionStatement' && exp.expression &&
-                    parse.hasDefine(exp.expression) &&
-                    exp.expression.arguments &&
-                    exp.expression.arguments.length === 1 &&
-                    exp.expression.arguments[0].type === 'Identifier') {
-
-                    //Calls define(Identifier) as first statement in body.
-                    //Confirm the if test references define.amd
-                    traverse(bodyNode.test, function (node) {
-                        if (parse.refsDefineAmd(node)) {
-                            refsDefine = true;
-                            return false;
-                        }
-                    });
-
-                    if (refsDefine) {
-                        return onMatch("define", null, null, null, exp.expression);
-                    }
-                }
-            }
-        }
-    };
-
-    /**
-     * Converts an AST node into a JS source string by extracting
-     * the node's location from the given contents string. Assumes
-     * esprima.parse() with loc was done.
-     * @param {String} contents
-     * @param {Object} node
-     * @returns {String} a JS source string.
-     */
-    parse.nodeToString = function (contents, node) {
-        var extracted,
-            loc = node.loc,
-            lines = contents.split('\n'),
-            firstLine = loc.start.line > 1 ?
-                        lines.slice(0, loc.start.line - 1).join('\n') + '\n' :
-                        '',
-            preamble = firstLine +
-                       lines[loc.start.line - 1].substring(0, loc.start.column);
-
-        if (loc.start.line === loc.end.line) {
-            extracted = lines[loc.start.line - 1].substring(loc.start.column,
-                                                            loc.end.column);
-        } else {
-            extracted =  lines[loc.start.line - 1].substring(loc.start.column) +
-                     '\n' +
-                     lines.slice(loc.start.line, loc.end.line - 1).join('\n') +
-                     '\n' +
-                     lines[loc.end.line - 1].substring(0, loc.end.column);
-        }
-
-        return {
-            value: extracted,
-            range: [
-                preamble.length,
-                preamble.length + extracted.length
-            ]
-        };
-    };
-
-    /**
-     * Extracts license comments from JS text.
-     * @param {String} fileName
-     * @param {String} contents
-     * @returns {String} a string of license comments.
-     */
-    parse.getLicenseComments = function (fileName, contents) {
-        var commentNode, refNode, subNode, value, i, j,
-            //xpconnect's Reflect does not support comment or range, but
-            //prefer continued operation vs strict parity of operation,
-            //as license comments can be expressed in other ways, like
-            //via wrap args, or linked via sourcemaps.
-            ast = esprima.parse(contents, {
-                comment: true,
-                range: true
-            }),
-            result = '',
-            existsMap = {},
-            lineEnd = contents.indexOf('\r') === -1 ? '\n' : '\r\n';
-
-        if (ast.comments) {
-            for (i = 0; i < ast.comments.length; i++) {
-                commentNode = ast.comments[i];
-
-                if (commentNode.type === 'Line') {
-                    value = '//' + commentNode.value + lineEnd;
-                    refNode = commentNode;
-
-                    if (i + 1 >= ast.comments.length) {
-                        value += lineEnd;
-                    } else {
-                        //Look for immediately adjacent single line comments
-                        //since it could from a multiple line comment made out
-                        //of single line comments. Like this comment.
-                        for (j = i + 1; j < ast.comments.length; j++) {
-                            subNode = ast.comments[j];
-                            if (subNode.type === 'Line' &&
-                                    subNode.range[0] === refNode.range[1] + 1) {
-                                //Adjacent single line comment. Collect it.
-                                value += '//' + subNode.value + lineEnd;
-                                refNode = subNode;
-                            } else {
-                                //No more single line comment blocks. Break out
-                                //and continue outer looping.
-                                break;
-                            }
-                        }
-                        value += lineEnd;
-                        i = j - 1;
-                    }
-                } else {
-                    value = '/*' + commentNode.value + '*/' + lineEnd + lineEnd;
-                }
-
-                if (!existsMap[value] && (value.indexOf('license') !== -1 ||
-                        (commentNode.type === 'Block' &&
-                            value.indexOf('/*!') === 0) ||
-                        value.indexOf('opyright') !== -1 ||
-                        value.indexOf('(c)') !== -1)) {
-
-                    result += value;
-                    existsMap[value] = true;
-                }
-
-            }
-        }
-
-        return result;
-    };
-
-    return parse;
-});
-/**
- * @license Copyright (c) 2012-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*global define */
-
-define('transform', [ './esprimaAdapter', './parse', 'logger', 'lang'],
-function (esprima, parse, logger, lang) {
-    'use strict';
-    var transform,
-        baseIndentRegExp = /^([ \t]+)/,
-        indentRegExp = /\{[\r\n]+([ \t]+)/,
-        keyRegExp = /^[_A-Za-z]([A-Za-z\d_]*)$/,
-        bulkIndentRegExps = {
-            '\n': /\n/g,
-            '\r\n': /\r\n/g
-        };
-
-    function applyIndent(str, indent, lineReturn) {
-        var regExp = bulkIndentRegExps[lineReturn];
-        return str.replace(regExp, '$&' + indent);
-    }
-
-    transform = {
-        toTransport: function (namespace, moduleName, path, contents, onFound, options) {
-            options = options || {};
-
-            var astRoot, contentLines, modLine,
-                foundAnon,
-                scanCount = 0,
-                scanReset = false,
-                defineInfos = [],
-                applySourceUrl = function (contents) {
-                    if (options.useSourceUrl) {
-                        contents = 'eval("' + lang.jsEscape(contents) +
-                            '\\n//# sourceURL=' + (path.indexOf('/') === 0 ? '' : '/') +
-                            path +
-                            '");\n';
-                    }
-                    return contents;
-                };
-
-            try {
-                astRoot = esprima.parse(contents, {
-                    loc: true
-                });
-            } catch (e) {
-                logger.trace('toTransport skipping ' + path + ': ' +
-                             e.toString());
-                return contents;
-            }
-
-            //Find the define calls and their position in the files.
-            parse.traverse(astRoot, function (node) {
-                var args, firstArg, firstArgLoc, factoryNode,
-                    needsId, depAction, foundId, init,
-                    sourceUrlData, range,
-                    namespaceExists = false;
-
-                // If a bundle script with a define declaration, do not
-                // parse any further at this level. Likely a built layer
-                // by some other tool.
-                if (node.type === 'VariableDeclarator' &&
-                    node.id && node.id.name === 'define' &&
-                    node.id.type === 'Identifier') {
-                    init = node.init;
-                    if (init && init.callee &&
-                        init.callee.type === 'CallExpression' &&
-                        init.callee.callee &&
-                        init.callee.callee.type === 'Identifier' &&
-                        init.callee.callee.name === 'require' &&
-                        init.callee.arguments && init.callee.arguments.length === 1 &&
-                        init.callee.arguments[0].type === 'Literal' &&
-                        init.callee.arguments[0].value &&
-                        init.callee.arguments[0].value.indexOf('amdefine') !== -1) {
-                        // the var define = require('amdefine')(module) case,
-                        // keep going in that case.
-                    } else {
-                        return false;
-                    }
-                }
-
-                namespaceExists = namespace &&
-                                node.type === 'CallExpression' &&
-                                node.callee  && node.callee.object &&
-                                node.callee.object.type === 'Identifier' &&
-                                node.callee.object.name === namespace &&
-                                node.callee.property.type === 'Identifier' &&
-                                node.callee.property.name === 'define';
-
-                if (namespaceExists || parse.isDefineNodeWithArgs(node)) {
-                    //The arguments are where its at.
-                    args = node.arguments;
-                    if (!args || !args.length) {
-                        return;
-                    }
-
-                    firstArg = args[0];
-                    firstArgLoc = firstArg.loc;
-
-                    if (args.length === 1) {
-                        if (firstArg.type === 'Identifier') {
-                            //The define(factory) case, but
-                            //only allow it if one Identifier arg,
-                            //to limit impact of false positives.
-                            needsId = true;
-                            depAction = 'empty';
-                        } else if (firstArg.type === 'FunctionExpression') {
-                            //define(function(){})
-                            factoryNode = firstArg;
-                            needsId = true;
-                            depAction = 'scan';
-                        } else if (firstArg.type === 'ObjectExpression') {
-                            //define({});
-                            needsId = true;
-                            depAction = 'skip';
-                        } else if (firstArg.type === 'Literal' &&
-                                   typeof firstArg.value === 'number') {
-                            //define('12345');
-                            needsId = true;
-                            depAction = 'skip';
-                        } else if (firstArg.type === 'UnaryExpression' &&
-                                   firstArg.operator === '-' &&
-                                   firstArg.argument &&
-                                   firstArg.argument.type === 'Literal' &&
-                                   typeof firstArg.argument.value === 'number') {
-                            //define('-12345');
-                            needsId = true;
-                            depAction = 'skip';
-                        } else if (firstArg.type === 'MemberExpression' &&
-                                   firstArg.object &&
-                                   firstArg.property &&
-                                   firstArg.property.type === 'Identifier') {
-                            //define(this.key);
-                            needsId = true;
-                            depAction = 'empty';
-                        }
-                    } else if (firstArg.type === 'ArrayExpression') {
-                        //define([], ...);
-                        needsId = true;
-                        depAction = 'skip';
-                    } else if (firstArg.type === 'Literal' &&
-                               typeof firstArg.value === 'string') {
-                        //define('string', ....)
-                        //Already has an ID.
-                        needsId = false;
-                        if (args.length === 2 &&
-                            args[1].type === 'FunctionExpression') {
-                            //Needs dependency scanning.
-                            factoryNode = args[1];
-                            depAction = 'scan';
-                        } else {
-                            depAction = 'skip';
-                        }
-                    } else {
-                        //Unknown define entity, keep looking, even
-                        //in the subtree for this node.
-                        return;
-                    }
-
-                    range = {
-                        foundId: foundId,
-                        needsId: needsId,
-                        depAction: depAction,
-                        namespaceExists: namespaceExists,
-                        node: node,
-                        defineLoc: node.loc,
-                        firstArgLoc: firstArgLoc,
-                        factoryNode: factoryNode,
-                        sourceUrlData: sourceUrlData
-                    };
-
-                    //Only transform ones that do not have IDs. If it has an
-                    //ID but no dependency array, assume it is something like
-                    //a phonegap implementation, that has its own internal
-                    //define that cannot handle dependency array constructs,
-                    //and if it is a named module, then it means it has been
-                    //set for transport form.
-                    if (range.needsId) {
-                        if (foundAnon) {
-                            logger.trace(path + ' has more than one anonymous ' +
-                                'define. May be a built file from another ' +
-                                'build system like, Ender. Skipping normalization.');
-                            defineInfos = [];
-                            return false;
-                        } else {
-                            foundAnon = range;
-                            defineInfos.push(range);
-                        }
-                    } else if (depAction === 'scan') {
-                        scanCount += 1;
-                        if (scanCount > 1) {
-                            //Just go back to an array that just has the
-                            //anon one, since this is an already optimized
-                            //file like the phonegap one.
-                            if (!scanReset) {
-                                defineInfos =  foundAnon ? [foundAnon] : [];
-                                scanReset = true;
-                            }
-                        } else {
-                            defineInfos.push(range);
-                        }
-                    }
-                }
-            });
-
-
-            if (!defineInfos.length) {
-                return applySourceUrl(contents);
-            }
-
-            //Reverse the matches, need to start from the bottom of
-            //the file to modify it, so that the ranges are still true
-            //further up.
-            defineInfos.reverse();
-
-            contentLines = contents.split('\n');
-
-            modLine = function (loc, contentInsertion) {
-                var startIndex = loc.start.column,
-                //start.line is 1-based, not 0 based.
-                lineIndex = loc.start.line - 1,
-                line = contentLines[lineIndex];
-                contentLines[lineIndex] = line.substring(0, startIndex) +
-                                           contentInsertion +
-                                           line.substring(startIndex,
-                                                              line.length);
-            };
-
-            defineInfos.forEach(function (info) {
-                var deps,
-                    contentInsertion = '',
-                    depString = '';
-
-                //Do the modifications "backwards", in other words, start with the
-                //one that is farthest down and work up, so that the ranges in the
-                //defineInfos still apply. So that means deps, id, then namespace.
-                if (info.needsId && moduleName) {
-                    contentInsertion += "'" + moduleName + "',";
-                }
-
-                if (info.depAction === 'scan') {
-                    deps = parse.getAnonDepsFromNode(info.factoryNode);
-
-                    if (deps.length) {
-                        depString = '[' + deps.map(function (dep) {
-                            return "'" + dep + "'";
-                        }) + ']';
-                    } else {
-                        depString = '[]';
-                    }
-                    depString +=  ',';
-
-                    if (info.factoryNode) {
-                        //Already have a named module, need to insert the
-                        //dependencies after the name.
-                        modLine(info.factoryNode.loc, depString);
-                    } else {
-                        contentInsertion += depString;
-                    }
-                }
-
-                if (contentInsertion) {
-                    modLine(info.firstArgLoc, contentInsertion);
-                }
-
-                //Do namespace last so that ui does not mess upthe parenRange
-                //used above.
-                if (namespace && !info.namespaceExists) {
-                    modLine(info.defineLoc, namespace + '.');
-                }
-
-                //Notify any listener for the found info
-                if (onFound) {
-                    onFound(info);
-                }
-            });
-
-            contents = contentLines.join('\n');
-
-            return applySourceUrl(contents);
-        },
-
-        /**
-         * Modify the contents of a require.config/requirejs.config call. This
-         * call will LOSE any existing comments that are in the config string.
-         *
-         * @param  {String} fileContents String that may contain a config call
-         * @param  {Function} onConfig Function called when the first config
-         * call is found. It will be passed an Object which is the current
-         * config, and the onConfig function should return an Object to use
-         * as the config.
-         * @return {String} the fileContents with the config changes applied.
-         */
-        modifyConfig: function (fileContents, onConfig) {
-            var details = parse.findConfig(fileContents),
-                config = details.config;
-
-            if (config) {
-                config = onConfig(config);
-                if (config) {
-                    return transform.serializeConfig(config,
-                                              fileContents,
-                                              details.range[0],
-                                              details.range[1],
-                                              {
-                                                quote: details.quote
-                                              });
-                }
-            }
-
-            return fileContents;
-        },
-
-        serializeConfig: function (config, fileContents, start, end, options) {
-            //Calculate base level of indent
-            var indent, match, configString, outDentRegExp,
-                baseIndent = '',
-                startString = fileContents.substring(0, start),
-                existingConfigString = fileContents.substring(start, end),
-                lineReturn = existingConfigString.indexOf('\r') === -1 ? '\n' : '\r\n',
-                lastReturnIndex = startString.lastIndexOf('\n');
-
-            //Get the basic amount of indent for the require config call.
-            if (lastReturnIndex === -1) {
-                lastReturnIndex = 0;
-            }
-
-            match = baseIndentRegExp.exec(startString.substring(lastReturnIndex + 1, start));
-            if (match && match[1]) {
-                baseIndent = match[1];
-            }
-
-            //Calculate internal indentation for config
-            match = indentRegExp.exec(existingConfigString);
-            if (match && match[1]) {
-                indent = match[1];
-            }
-
-            if (!indent || indent.length < baseIndent) {
-                indent = '  ';
-            } else {
-                indent = indent.substring(baseIndent.length);
-            }
-
-            outDentRegExp = new RegExp('(' + lineReturn + ')' + indent, 'g');
-
-            configString = transform.objectToString(config, {
-                                                    indent: indent,
-                                                    lineReturn: lineReturn,
-                                                    outDentRegExp: outDentRegExp,
-                                                    quote: options && options.quote
-                                                });
-
-            //Add in the base indenting level.
-            configString = applyIndent(configString, baseIndent, lineReturn);
-
-            return startString + configString + fileContents.substring(end);
-        },
-
-        /**
-         * Tries converting a JS object to a string. This will likely suck, and
-         * is tailored to the type of config expected in a loader config call.
-         * So, hasOwnProperty fields, strings, numbers, arrays and functions,
-         * no weird recursively referenced stuff.
-         * @param  {Object} obj        the object to convert
-         * @param  {Object} options    options object with the following values:
-         *         {String} indent     the indentation to use for each level
-         *         {String} lineReturn the type of line return to use
-         *         {outDentRegExp} outDentRegExp the regexp to use to outdent functions
-         *         {String} quote      the quote type to use, ' or ". Optional. Default is "
-         * @param  {String} totalIndent the total indent to print for this level
-         * @return {String}            a string representation of the object.
-         */
-        objectToString: function (obj, options, totalIndent) {
-            var startBrace, endBrace, nextIndent,
-                first = true,
-                value = '',
-                lineReturn = options.lineReturn,
-                indent = options.indent,
-                outDentRegExp = options.outDentRegExp,
-                quote = options.quote || '"';
-
-            totalIndent = totalIndent || '';
-            nextIndent = totalIndent + indent;
-
-            if (obj === null) {
-                value = 'null';
-            } else if (obj === undefined) {
-                value = 'undefined';
-            } else if (typeof obj === 'number' || typeof obj === 'boolean') {
-                value = obj;
-            } else if (typeof obj === 'string') {
-                //Use double quotes in case the config may also work as JSON.
-                value = quote + lang.jsEscape(obj) + quote;
-            } else if (lang.isArray(obj)) {
-                lang.each(obj, function (item, i) {
-                    value += (i !== 0 ? ',' + lineReturn : '' ) +
-                        nextIndent +
-                        transform.objectToString(item,
-                                                 options,
-                                                 nextIndent);
-                });
-
-                startBrace = '[';
-                endBrace = ']';
-            } else if (lang.isFunction(obj) || lang.isRegExp(obj)) {
-                //The outdent regexp just helps pretty up the conversion
-                //just in node. Rhino strips comments and does a different
-                //indent scheme for Function toString, so not really helpful
-                //there.
-                value = obj.toString().replace(outDentRegExp, '$1');
-            } else {
-                //An object
-                lang.eachProp(obj, function (v, prop) {
-                    value += (first ? '': ',' + lineReturn) +
-                        nextIndent +
-                        (keyRegExp.test(prop) ? prop : quote + lang.jsEscape(prop) + quote )+
-                        ': ' +
-                        transform.objectToString(v,
-                                                 options,
-                                                 nextIndent);
-                    first = false;
-                });
-                startBrace = '{';
-                endBrace = '}';
-            }
-
-            if (startBrace) {
-                value = startBrace +
-                        lineReturn +
-                        value +
-                        lineReturn + totalIndent +
-                        endBrace;
-            }
-
-            return value;
-        }
-    };
-
-    return transform;
-});
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint regexp: true, plusplus: true  */
-/*global define: false */
-
-define('pragma', ['parse', 'logger'], function (parse, logger) {
-    'use strict';
-    function Temp() {}
-
-    function create(obj, mixin) {
-        Temp.prototype = obj;
-        var temp = new Temp(), prop;
-
-        //Avoid any extra memory hanging around
-        Temp.prototype = null;
-
-        if (mixin) {
-            for (prop in mixin) {
-                if (mixin.hasOwnProperty(prop) && !temp.hasOwnProperty(prop)) {
-                    temp[prop] = mixin[prop];
-                }
-            }
-        }
-
-        return temp; // Object
-    }
-
-    var pragma = {
-        conditionalRegExp: /(exclude|include)Start\s*\(\s*["'](\w+)["']\s*,(.*)\)/,
-        useStrictRegExp: /['"]use strict['"];/g,
-        hasRegExp: /has\s*\(\s*['"]([^'"]+)['"]\s*\)/g,
-        configRegExp: /(^|[^\.])(requirejs|require)(\.config)\s*\(/g,
-        nsWrapRegExp: /\/\*requirejs namespace: true \*\//,
-        apiDefRegExp: /var requirejs,\s*require,\s*define;/,
-        defineCheckRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd/g,
-        defineStringCheckRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\[\s*["']amd["']\s*\]/g,
-        defineTypeFirstCheckRegExp: /\s*["']function["']\s*==(=?)\s*typeof\s+define\s*&&\s*define\s*\.\s*amd/g,
-        defineJQueryRegExp: /typeof\s+define\s*===\s*["']function["']\s*&&\s*define\s*\.\s*amd\s*&&\s*define\s*\.\s*amd\s*\.\s*jQuery/g,
-        defineHasRegExp: /typeof\s+define\s*==(=)?\s*['"]function['"]\s*&&\s*typeof\s+define\.amd\s*==(=)?\s*['"]object['"]\s*&&\s*define\.amd/g,
-        defineTernaryRegExp: /typeof\s+define\s*===\s*['"]function["']\s*&&\s*define\s*\.\s*amd\s*\?\s*define/,
-        amdefineRegExp: /if\s*\(\s*typeof define\s*\!==\s*'function'\s*\)\s*\{\s*[^\{\}]+amdefine[^\{\}]+\}/g,
-
-        removeStrict: function (contents, config) {
-            return config.useStrict ? contents : contents.replace(pragma.useStrictRegExp, '');
-        },
-
-        namespace: function (fileContents, ns, onLifecycleName) {
-            if (ns) {
-                //Namespace require/define calls
-                fileContents = fileContents.replace(pragma.configRegExp, '$1' + ns + '.$2$3(');
-
-
-                fileContents = parse.renameNamespace(fileContents, ns);
-
-                //Namespace define ternary use:
-                fileContents = fileContents.replace(pragma.defineTernaryRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd ? " + ns + ".define");
-
-                //Namespace define jquery use:
-                fileContents = fileContents.replace(pragma.defineJQueryRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd && " + ns + ".define.amd.jQuery");
-
-                //Namespace has.js define use:
-                fileContents = fileContents.replace(pragma.defineHasRegExp,
-                                                    "typeof " + ns + ".define === 'function' && typeof " + ns + ".define.amd === 'object' && " + ns + ".define.amd");
-
-                //Namespace define checks.
-                //Do these ones last, since they are a subset of the more specific
-                //checks above.
-                fileContents = fileContents.replace(pragma.defineCheckRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define.amd");
-                fileContents = fileContents.replace(pragma.defineStringCheckRegExp,
-                                                    "typeof " + ns + ".define === 'function' && " + ns + ".define['amd']");
-                fileContents = fileContents.replace(pragma.defineTypeFirstCheckRegExp,
-                                                    "'function' === typeof " + ns + ".define && " + ns + ".define.amd");
-
-                //Check for require.js with the require/define definitions
-                if (pragma.apiDefRegExp.test(fileContents) &&
-                    fileContents.indexOf("if (!" + ns + " || !" + ns + ".requirejs)") === -1) {
-                    //Wrap the file contents in a typeof check, and a function
-                    //to contain the API globals.
-                    fileContents = "var " + ns + ";(function () { if (!" + ns + " || !" + ns + ".requirejs) {\n" +
-                                    "if (!" + ns + ") { " + ns + ' = {}; } else { require = ' + ns + '; }\n' +
-                                    fileContents +
-                                    "\n" +
-                                    ns + ".requirejs = requirejs;" +
-                                    ns + ".require = require;" +
-                                    ns + ".define = define;\n" +
-                                    "}\n}());";
-                }
-
-                //Finally, if the file wants a special wrapper because it ties
-                //in to the requirejs internals in a way that would not fit
-                //the above matches, do that. Look for /*requirejs namespace: true*/
-                if (pragma.nsWrapRegExp.test(fileContents)) {
-                    //Remove the pragma.
-                    fileContents = fileContents.replace(pragma.nsWrapRegExp, '');
-
-                    //Alter the contents.
-                    fileContents = '(function () {\n' +
-                                   'var require = ' + ns + '.require,' +
-                                   'requirejs = ' + ns + '.requirejs,' +
-                                   'define = ' + ns + '.define;\n' +
-                                   fileContents +
-                                   '\n}());';
-                }
-            }
-
-            return fileContents;
-        },
-
-        /**
-         * processes the fileContents for some //>> conditional statements
-         */
-        process: function (fileName, fileContents, config, onLifecycleName, pluginCollector) {
-            /*jslint evil: true */
-            var foundIndex = -1, startIndex = 0, lineEndIndex, conditionLine,
-                matches, type, marker, condition, isTrue, endRegExp, endMatches,
-                endMarkerIndex, shouldInclude, startLength, lifecycleHas, deps,
-                i, dep, moduleName, collectorMod,
-                lifecyclePragmas, pragmas = config.pragmas, hasConfig = config.has,
-                //Legacy arg defined to help in dojo conversion script. Remove later
-                //when dojo no longer needs conversion:
-                kwArgs = pragmas;
-
-            //Mix in a specific lifecycle scoped object, to allow targeting
-            //some pragmas/has tests to only when files are saved, or at different
-            //lifecycle events. Do not bother with kwArgs in this section, since
-            //the old dojo kwArgs were for all points in the build lifecycle.
-            if (onLifecycleName) {
-                lifecyclePragmas = config['pragmas' + onLifecycleName];
-                lifecycleHas = config['has' + onLifecycleName];
-
-                if (lifecyclePragmas) {
-                    pragmas = create(pragmas || {}, lifecyclePragmas);
-                }
-
-                if (lifecycleHas) {
-                    hasConfig = create(hasConfig || {}, lifecycleHas);
-                }
-            }
-
-            //Replace has references if desired
-            if (hasConfig) {
-                fileContents = fileContents.replace(pragma.hasRegExp, function (match, test) {
-                    if (hasConfig.hasOwnProperty(test)) {
-                        return !!hasConfig[test];
-                    }
-                    return match;
-                });
-            }
-
-            if (!config.skipPragmas) {
-
-                while ((foundIndex = fileContents.indexOf("//>>", startIndex)) !== -1) {
-                    //Found a conditional. Get the conditional line.
-                    lineEndIndex = fileContents.indexOf("\n", foundIndex);
-                    if (lineEndIndex === -1) {
-                        lineEndIndex = fileContents.length - 1;
-                    }
-
-                    //Increment startIndex past the line so the next conditional search can be done.
-                    startIndex = lineEndIndex + 1;
-
-                    //Break apart the conditional.
-                    conditionLine = fileContents.substring(foundIndex, lineEndIndex + 1);
-                    matches = conditionLine.match(pragma.conditionalRegExp);
-                    if (matches) {
-                        type = matches[1];
-                        marker = matches[2];
-                        condition = matches[3];
-                        isTrue = false;
-                        //See if the condition is true.
-                        try {
-                            isTrue = !!eval("(" + condition + ")");
-                        } catch (e) {
-                            throw "Error in file: " +
-                                   fileName +
-                                   ". Conditional comment: " +
-                                   conditionLine +
-                                   " failed with this error: " + e;
-                        }
-
-                        //Find the endpoint marker.
-                        endRegExp = new RegExp('\\/\\/\\>\\>\\s*' + type + 'End\\(\\s*[\'"]' + marker + '[\'"]\\s*\\)', "g");
-                        endMatches = endRegExp.exec(fileContents.substring(startIndex, fileContents.length));
-                        if (endMatches) {
-                            endMarkerIndex = startIndex + endRegExp.lastIndex - endMatches[0].length;
-
-                            //Find the next line return based on the match position.
-                            lineEndIndex = fileContents.indexOf("\n", endMarkerIndex);
-                            if (lineEndIndex === -1) {
-                                lineEndIndex = fileContents.length - 1;
-                            }
-
-                            //Should we include the segment?
-                            shouldInclude = ((type === "exclude" && !isTrue) || (type === "include" && isTrue));
-
-                            //Remove the conditional comments, and optionally remove the content inside
-                            //the conditional comments.
-                            startLength = startIndex - foundIndex;
-                            fileContents = fileContents.substring(0, foundIndex) +
-                                (shouldInclude ? fileContents.substring(startIndex, endMarkerIndex) : "") +
-                                fileContents.substring(lineEndIndex + 1, fileContents.length);
-
-                            //Move startIndex to foundIndex, since that is the new position in the file
-                            //where we need to look for more conditionals in the next while loop pass.
-                            startIndex = foundIndex;
-                        } else {
-                            throw "Error in file: " +
-                                  fileName +
-                                  ". Cannot find end marker for conditional comment: " +
-                                  conditionLine;
-
-                        }
-                    }
-                }
-            }
-
-            //If need to find all plugin resources to optimize, do that now,
-            //before namespacing, since the namespacing will change the API
-            //names.
-            //If there is a plugin collector, scan the file for plugin resources.
-            if (config.optimizeAllPluginResources && pluginCollector) {
-                try {
-                    deps = parse.findDependencies(fileName, fileContents);
-                    if (deps.length) {
-                        for (i = 0; i < deps.length; i++) {
-                            dep = deps[i];
-                            if (dep.indexOf('!') !== -1) {
-                                moduleName = dep.split('!')[0];
-                                collectorMod = pluginCollector[moduleName];
-                                if (!collectorMod) {
-                                 collectorMod = pluginCollector[moduleName] = [];
-                                }
-                                collectorMod.push(dep);
-                            }
-                        }
-                    }
-                } catch (eDep) {
-                    logger.error('Parse error looking for plugin resources in ' +
-                                 fileName + ', skipping.');
-                }
-            }
-
-            //Strip amdefine use for node-shared modules.
-            if (!config.keepAmdefine) {
-                fileContents = fileContents.replace(pragma.amdefineRegExp, '');
-            }
-
-            //Do namespacing
-            if (onLifecycleName === 'OnSave' && config.namespace) {
-                fileContents = pragma.namespace(fileContents, config.namespace, onLifecycleName);
-            }
-
-
-            return pragma.removeStrict(fileContents, config);
-        }
-    };
-
-    return pragma;
-});
-if(env === 'browser') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false */
-
-define('browser/optimize', {});
-
-}
-
-if(env === 'node') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint strict: false */
-/*global define: false */
-
-define('node/optimize', {});
-
-}
-
-if(env === 'rhino') {
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint sloppy: true, plusplus: true */
-/*global define, java, Packages, com */
-
-define('rhino/optimize', ['logger', 'env!env/file'], function (logger, file) {
-
-    //Add .reduce to Rhino so UglifyJS can run in Rhino,
-    //inspired by https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce
-    //but rewritten for brevity, and to be good enough for use by UglifyJS.
-    if (!Array.prototype.reduce) {
-        Array.prototype.reduce = function (fn /*, initialValue */) {
-            var i = 0,
-                length = this.length,
-                accumulator;
-
-            if (arguments.length >= 2) {
-                accumulator = arguments[1];
-            } else {
-                if (length) {
-                    while (!(i in this)) {
-                        i++;
-                    }
-                    accumulator = this[i++];
-                }
-            }
-
-            for (; i < length; i++) {
-                if (i in this) {
-                    accumulator = fn.call(undefined, accumulator, this[i], i, this);
-                }
-            }
-
-            return accumulator;
-        };
-    }
-
-    var JSSourceFilefromCode, optimize,
-        mapRegExp = /"file":"[^"]+"/;
-
-    //Bind to Closure compiler, but if it is not available, do not sweat it.
-    try {
-        JSSourceFilefromCode = java.lang.Class.forName('com.google.javascript.jscomp.JSSourceFile').getMethod('fromCode', [java.lang.String, java.lang.String]);
-    } catch (e) {}
-
-    //Helper for closure compiler, because of weird Java-JavaScript interactions.
-    function closurefromCode(filename, content) {
-        return JSSourceFilefromCode.invoke(null, [filename, content]);
-    }
-
-
-    function getFileWriter(fileName, encoding) {
-        var outFile = new java.io.File(fileName), outWriter, parentDir;
-
-        parentDir = outFile.getAbsoluteFile().getParentFile();
-        if (!parentDir.exists()) {
-            if (!parentDir.mkdirs()) {
-                throw "Could not create directory: " + parentDir.getAbsolutePath();
-            }
-        }
-
-        if (encoding) {
-            outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile), encoding);
-        } else {
-            outWriter = new java.io.OutputStreamWriter(new java.io.FileOutputStream(outFile));
-        }
-
-        return new java.io.BufferedWriter(outWriter);
-    }
-
-    optimize = {
-        closure: function (fileName, fileContents, outFileName, keepLines, config) {
-            config = config || {};
-            var result, mappings, optimized, compressed, baseName, writer,
-                outBaseName, outFileNameMap, outFileNameMapContent,
-                srcOutFileName, concatNameMap,
-                jscomp = Packages.com.google.javascript.jscomp,
-                flags = Packages.com.google.common.flags,
-                //Set up source input
-                jsSourceFile = closurefromCode(String(fileName), String(fileContents)),
-                sourceListArray = new java.util.ArrayList(),
-                options, option, FLAG_compilation_level, compiler,
-                Compiler = Packages.com.google.javascript.jscomp.Compiler,
-                CommandLineRunner = Packages.com.google.javascript.jscomp.CommandLineRunner;
-
-            logger.trace("Minifying file: " + fileName);
-
-            baseName = (new java.io.File(fileName)).getName();
-
-            //Set up options
-            options = new jscomp.CompilerOptions();
-            for (option in config.CompilerOptions) {
-                // options are false by default and jslint wanted an if statement in this for loop
-                if (config.CompilerOptions[option]) {
-                    options[option] = config.CompilerOptions[option];
-                }
-
-            }
-            options.prettyPrint = keepLines || options.prettyPrint;
-
-            FLAG_compilation_level = jscomp.CompilationLevel[config.CompilationLevel || 'SIMPLE_OPTIMIZATIONS'];
-            FLAG_compilation_level.setOptionsForCompilationLevel(options);
-
-            if (config.generateSourceMaps) {
-                mappings = new java.util.ArrayList();
-
-                mappings.add(new com.google.javascript.jscomp.SourceMap.LocationMapping(fileName, baseName + ".src.js"));
-                options.setSourceMapLocationMappings(mappings);
-                options.setSourceMapOutputPath(fileName + ".map");
-            }
-
-            //Trigger the compiler
-            Compiler.setLoggingLevel(Packages.java.util.logging.Level[config.loggingLevel || 'WARNING']);
-            compiler = new Compiler();
-
-            //fill the sourceArrrayList; we need the ArrayList because the only overload of compile
-            //accepting the getDefaultExterns return value (a List) also wants the sources as a List
-            sourceListArray.add(jsSourceFile);
-
-            result = compiler.compile(CommandLineRunner.getDefaultExterns(), sourceListArray, options);
-            if (result.success) {
-                optimized = String(compiler.toSource());
-
-                if (config.generateSourceMaps && result.sourceMap && outFileName) {
-                    outBaseName = (new java.io.File(outFileName)).getName();
-
-                    srcOutFileName = outFileName + ".src.js";
-                    outFileNameMap = outFileName + ".map";
-
-                    //If previous .map file exists, move it to the ".src.js"
-                    //location. Need to update the sourceMappingURL part in the
-                    //src.js file too.
-                    if (file.exists(outFileNameMap)) {
-                        concatNameMap = outFileNameMap.replace(/\.map$/, '.src.js.map');
-                        file.saveFile(concatNameMap, file.readFile(outFileNameMap));
-                        file.saveFile(srcOutFileName,
-                                      fileContents.replace(/\/\# sourceMappingURL=(.+).map/,
-                                                           '/# sourceMappingURL=$1.src.js.map'));
-                    } else {
-                        file.saveUtf8File(srcOutFileName, fileContents);
-                    }
-
-                    writer = getFileWriter(outFileNameMap, "utf-8");
-                    result.sourceMap.appendTo(writer, outFileName);
-                    writer.close();
-
-                    //Not sure how better to do this, but right now the .map file
-                    //leaks the full OS path in the "file" property. Manually
-                    //modify it to not do that.
-                    file.saveFile(outFileNameMap,
-                        file.readFile(outFileNameMap).replace(mapRegExp, '"file":"' + baseName + '"'));
-
-                    fileContents = optimized + "\n//# sourceMappingURL=" + outBaseName + ".map";
-                } else {
-                    fileContents = optimized;
-                }
-                return fileContents;
-            } else {
-                throw new Error('Cannot closure compile file: ' + fileName + '. Skipping it.');
-            }
-
-            return fileContents;
-        }
-    };
-
-    return optimize;
-});
-}
-
-if(env === 'xpconnect') {
-define('xpconnect/optimize', {});
-}
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true, nomen: true, regexp: true */
-/*global define: false */
-
-define('optimize', [ 'lang', 'logger', 'env!env/optimize', 'env!env/file', 'parse',
-         'pragma', 'uglifyjs/index', 'uglifyjs2',
-         'source-map'],
-function (lang,   logger,   envOptimize,        file,           parse,
-          pragma, uglify,             uglify2,
-          sourceMap) {
-    'use strict';
-
-    var optimize,
-        cssImportRegExp = /\@import\s+(url\()?\s*([^);]+)\s*(\))?([\w, ]*)(;)?/ig,
-        cssCommentImportRegExp = /\/\*[^\*]*@import[^\*]*\*\//g,
-        cssUrlRegExp = /\url\(\s*([^\)]+)\s*\)?/g,
-        SourceMapGenerator = sourceMap.SourceMapGenerator,
-        SourceMapConsumer =sourceMap.SourceMapConsumer;
-
-    /**
-     * If an URL from a CSS url value contains start/end quotes, remove them.
-     * This is not done in the regexp, since my regexp fu is not that strong,
-     * and the CSS spec allows for ' and " in the URL if they are backslash escaped.
-     * @param {String} url
-     */
-    function cleanCssUrlQuotes(url) {
-        //Make sure we are not ending in whitespace.
-        //Not very confident of the css regexps above that there will not be ending
-        //whitespace.
-        url = url.replace(/\s+$/, "");
-
-        if (url.charAt(0) === "'" || url.charAt(0) === "\"") {
-            url = url.substring(1, url.length - 1);
-        }
-
-        return url;
-    }
-
-    function fixCssUrlPaths(fileName, path, contents, cssPrefix) {
-        return contents.replace(cssUrlRegExp, function (fullMatch, urlMatch) {
-            var colonIndex, firstChar, parts, i,
-                fixedUrlMatch = cleanCssUrlQuotes(urlMatch);
-
-            fixedUrlMatch = fixedUrlMatch.replace(lang.backSlashRegExp, "/");
-
-            //Only do the work for relative URLs. Skip things that start with / or #, or have
-            //a protocol.
-            firstChar = fixedUrlMatch.charAt(0);
-            colonIndex = fixedUrlMatch.indexOf(":");
-            if (firstChar !== "/" && firstChar !== "#" && (colonIndex === -1 || colonIndex > fixedUrlMatch.indexOf("/"))) {
-                //It is a relative URL, tack on the cssPrefix and path prefix
-                urlMatch = cssPrefix + path + fixedUrlMatch;
-
-            } else {
-                logger.trace(fileName + "\n  URL not a relative URL, skipping: " + urlMatch);
-            }
-
-            //Collapse .. and .
-            parts = urlMatch.split("/");
-            for (i = parts.length - 1; i > 0; i--) {
-                if (parts[i] === ".") {
-                    parts.splice(i, 1);
-                } else if (parts[i] === "..") {
-                    if (i !== 0 && parts[i - 1] !== "..") {
-                        parts.splice(i - 1, 2);
-                        i -= 1;
-                    }
-                }
-            }
-
-            return "url(" + parts.join("/") + ")";
-        });
-    }
-
-    /**
-     * Inlines nested stylesheets that have @import calls in them.
-     * @param {String} fileName the file name
-     * @param {String} fileContents the file contents
-     * @param {String} cssImportIgnore comma delimited string of files to ignore
-     * @param {String} cssPrefix string to be prefixed before relative URLs
-     * @param {Object} included an object used to track the files already imported
-     */
-    function flattenCss(fileName, fileContents, cssImportIgnore, cssPrefix, included, topLevel) {
-        //Find the last slash in the name.
-        fileName = fileName.replace(lang.backSlashRegExp, "/");
-        var endIndex = fileName.lastIndexOf("/"),
-            //Make a file path based on the last slash.
-            //If no slash, so must be just a file name. Use empty string then.
-            filePath = (endIndex !== -1) ? fileName.substring(0, endIndex + 1) : "",
-            //store a list of merged files
-            importList = [],
-            skippedList = [];
-
-        //First make a pass by removing any commented out @import calls.
-        fileContents = fileContents.replace(cssCommentImportRegExp, '');
-
-        //Make sure we have a delimited ignore list to make matching faster
-        if (cssImportIgnore && cssImportIgnore.charAt(cssImportIgnore.length - 1) !== ",") {
-            cssImportIgnore += ",";
-        }
-
-        fileContents = fileContents.replace(cssImportRegExp, function (fullMatch, urlStart, importFileName, urlEnd, mediaTypes) {
-            //Only process media type "all" or empty media type rules.
-            if (mediaTypes && ((mediaTypes.replace(/^\s\s*/, '').replace(/\s\s*$/, '')) !== "all")) {
-                skippedList.push(fileName);
-                return fullMatch;
-            }
-
-            importFileName = cleanCssUrlQuotes(importFileName);
-
-            //Ignore the file import if it is part of an ignore list.
-            if (cssImportIgnore && cssImportIgnore.indexOf(importFileName + ",") !== -1) {
-                return fullMatch;
-            }
-
-            //Make sure we have a unix path for the rest of the operation.
-            importFileName = importFileName.replace(lang.backSlashRegExp, "/");
-
-            try {
-                //if a relative path, then tack on the filePath.
-                //If it is not a relative path, then the readFile below will fail,
-                //and we will just skip that import.
-                var fullImportFileName = importFileName.charAt(0) === "/" ? importFileName : filePath + importFileName,
-                    importContents = file.readFile(fullImportFileName),
-                    importEndIndex, importPath, flat;
-
-                //Skip the file if it has already been included.
-                if (included[fullImportFileName]) {
-                    return '';
-                }
-                included[fullImportFileName] = true;
-
-                //Make sure to flatten any nested imports.
-                flat = flattenCss(fullImportFileName, importContents, cssImportIgnore, cssPrefix, included);
-                importContents = flat.fileContents;
-
-                if (flat.importList.length) {
-                    importList.push.apply(importList, flat.importList);
-                }
-                if (flat.skippedList.length) {
-                    skippedList.push.apply(skippedList, flat.skippedList);
-                }
-
-                //Make the full import path
-                importEndIndex = importFileName.lastIndexOf("/");
-
-                //Make a file path based on the last slash.
-                //If no slash, so must be just a file name. Use empty string then.
-                importPath = (importEndIndex !== -1) ? importFileName.substring(0, importEndIndex + 1) : "";
-
-                //fix url() on relative import (#5)
-                importPath = importPath.replace(/^\.\//, '');
-
-                //Modify URL paths to match the path represented by this file.
-                importContents = fixCssUrlPaths(importFileName, importPath, importContents, cssPrefix);
-
-                importList.push(fullImportFileName);
-                return importContents;
-            } catch (e) {
-                logger.warn(fileName + "\n  Cannot inline css import, skipping: " + importFileName);
-                return fullMatch;
-            }
-        });
-
-        if (cssPrefix && topLevel) {
-            //Modify URL paths to match the path represented by this file.
-            fileContents = fixCssUrlPaths(fileName, '', fileContents, cssPrefix);
-        }
-
-        return {
-            importList : importList,
-            skippedList: skippedList,
-            fileContents : fileContents
-        };
-    }
-
-    optimize = {
-        /**
-         * Optimizes a file that contains JavaScript content. Optionally collects
-         * plugin resources mentioned in a file, and then passes the content
-         * through an minifier if one is specified via config.optimize.
-         *
-         * @param {String} fileName the name of the file to optimize
-         * @param {String} fileContents the contents to optimize. If this is
-         * a null value, then fileName will be used to read the fileContents.
-         * @param {String} outFileName the name of the file to use for the
-         * saved optimized content.
-         * @param {Object} config the build config object.
-         * @param {Array} [pluginCollector] storage for any plugin resources
-         * found.
-         */
-        jsFile: function (fileName, fileContents, outFileName, config, pluginCollector) {
-            if (!fileContents) {
-                fileContents = file.readFile(fileName);
-            }
-
-            fileContents = optimize.js(fileName, fileContents, outFileName, config, pluginCollector);
-
-            file.saveUtf8File(outFileName, fileContents);
-        },
-
-        /**
-         * Optimizes a file that contains JavaScript content. Optionally collects
-         * plugin resources mentioned in a file, and then passes the content
-         * through an minifier if one is specified via config.optimize.
-         *
-         * @param {String} fileName the name of the file that matches the
-         * fileContents.
-         * @param {String} fileContents the string of JS to optimize.
-         * @param {Object} [config] the build config object.
-         * @param {Array} [pluginCollector] storage for any plugin resources
-         * found.
-         */
-        js: function (fileName, fileContents, outFileName, config, pluginCollector) {
-            var optFunc, optConfig,
-                parts = (String(config.optimize)).split('.'),
-                optimizerName = parts[0],
-                keepLines = parts[1] === 'keepLines',
-                licenseContents = '';
-
-            config = config || {};
-
-            //Apply pragmas/namespace renaming
-            fileContents = pragma.process(fileName, fileContents, config, 'OnSave', pluginCollector);
-
-            //Optimize the JS files if asked.
-            if (optimizerName && optimizerName !== 'none') {
-                optFunc = envOptimize[optimizerName] || optimize.optimizers[optimizerName];
-                if (!optFunc) {
-                    throw new Error('optimizer with name of "' +
-                                    optimizerName +
-                                    '" not found for this environment');
-                }
-
-                optConfig = config[optimizerName] || {};
-                if (config.generateSourceMaps) {
-                    optConfig.generateSourceMaps = !!config.generateSourceMaps;
-                    optConfig._buildSourceMap = config._buildSourceMap;
-                }
-
-                try {
-                    if (config.preserveLicenseComments) {
-                        //Pull out any license comments for prepending after optimization.
-                        try {
-                            licenseContents = parse.getLicenseComments(fileName, fileContents);
-                        } catch (e) {
-                            throw new Error('Cannot parse file: ' + fileName + ' for comments. Skipping it. Error is:\n' + e.toString());
-                        }
-                    }
-
-                    fileContents = licenseContents + optFunc(fileName,
-                                                             fileContents,
-                                                             outFileName,
-                                                             keepLines,
-                                                             optConfig);
-                    if (optConfig._buildSourceMap && optConfig._buildSourceMap !== config._buildSourceMap) {
-                        config._buildSourceMap = optConfig._buildSourceMap;
-                    }
-                } catch (e) {
-                    if (config.throwWhen && config.throwWhen.optimize) {
-                        throw e;
-                    } else {
-                        logger.error(e);
-                    }
-                }
-            } else {
-                if (config._buildSourceMap) {
-                    config._buildSourceMap = null;
-                }
-            }
-
-            return fileContents;
-        },
-
-        /**
-         * Optimizes one CSS file, inlining @import calls, stripping comments, and
-         * optionally removes line returns.
-         * @param {String} fileName the path to the CSS file to optimize
-         * @param {String} outFileName the path to save the optimized file.
-         * @param {Object} config the config object with the optimizeCss and
-         * cssImportIgnore options.
-         */
-        cssFile: function (fileName, outFileName, config) {
-
-            //Read in the file. Make sure we have a JS string.
-            var originalFileContents = file.readFile(fileName),
-                flat = flattenCss(fileName, originalFileContents, config.cssImportIgnore, config.cssPrefix, {}, true),
-                //Do not use the flattened CSS if there was one that was skipped.
-                fileContents = flat.skippedList.length ? originalFileContents : flat.fileContents,
-                startIndex, endIndex, buildText, comment;
-
-            if (flat.skippedList.length) {
-                logger.warn('Cannot inline @imports for ' + fileName +
-                            ',\nthe following files had media queries in them:\n' +
-                            flat.skippedList.join('\n'));
-            }
-
-            //Do comment removal.
-            try {
-                if (config.optimizeCss.indexOf(".keepComments") === -1) {
-                    startIndex = 0;
-                    //Get rid of comments.
-                    while ((startIndex = fileContents.indexOf("/*", startIndex)) !== -1) {
-                        endIndex = fileContents.indexOf("*/", startIndex + 2);
-                        if (endIndex === -1) {
-                            throw "Improper comment in CSS file: " + fileName;
-                        }
-                        comment = fileContents.substring(startIndex, endIndex);
-
-                        if (config.preserveLicenseComments &&
-                            (comment.indexOf('license') !== -1 ||
-                             comment.indexOf('opyright') !== -1 ||
-                             comment.indexOf('(c)') !== -1)) {
-                            //Keep the comment, just increment the startIndex
-                            startIndex = endIndex;
-                        } else {
-                            fileContents = fileContents.substring(0, startIndex) + fileContents.substring(endIndex + 2, fileContents.length);
-                            startIndex = 0;
-                        }
-                    }
-                }
-                //Get rid of newlines.
-                if (config.optimizeCss.indexOf(".keepLines") === -1) {
-                    fileContents = fileContents.replace(/[\r\n]/g, " ");
-                    fileContents = fileContents.replace(/\s+/g, " ");
-                    fileContents = fileContents.replace(/\{\s/g, "{");
-                    fileContents = fileContents.replace(/\s\}/g, "}");
-                } else {
-                    //Remove multiple empty lines.
-                    fileContents = fileContents.replace(/(\r\n)+/g, "\r\n");
-                    fileContents = fileContents.replace(/(\n)+/g, "\n");
-                }
-                //Remove unnecessary whitespace
-                if (config.optimizeCss.indexOf(".keepWhitespace") === -1) {
-                    //Remove leading and trailing whitespace from lines
-                    fileContents = fileContents.replace(/^[ \t]+/gm, "");
-                    fileContents = fileContents.replace(/[ \t]+$/gm, "");
-                    //Remove whitespace after semicolon, colon, curly brackets and commas
-                    fileContents = fileContents.replace(/(;|:|\{|}|,)[ \t]+/g, "$1");
-                    //Remove whitespace before opening curly brackets
-                    fileContents = fileContents.replace(/[ \t]+(\{)/g, "$1");
-                    //Truncate double whitespace
-                    fileContents = fileContents.replace(/([ \t])+/g, "$1");
-                    //Remove empty lines
-                    fileContents = fileContents.replace(/^[ \t]*[\r\n]/gm,'');
-                }
-            } catch (e) {
-                fileContents = originalFileContents;
-                logger.error("Could not optimized CSS file: " + fileName + ", error: " + e);
-            }
-
-            file.saveUtf8File(outFileName, fileContents);
-
-            //text output to stdout and/or written to build.txt file
-            buildText = "\n"+ outFileName.replace(config.dir, "") +"\n----------------\n";
-            flat.importList.push(fileName);
-            buildText += flat.importList.map(function(path){
-                return path.replace(config.dir, "");
-            }).join("\n");
-
-            return {
-                importList: flat.importList,
-                buildText: buildText +"\n"
-            };
-        },
-
-        /**
-         * Optimizes CSS files, inlining @import calls, stripping comments, and
-         * optionally removes line returns.
-         * @param {String} startDir the path to the top level directory
-         * @param {Object} config the config object with the optimizeCss and
-         * cssImportIgnore options.
-         */
-        css: function (startDir, config) {
-            var buildText = "",
-                importList = [],
-                shouldRemove = config.dir && config.removeCombined,
-                i, fileName, result, fileList;
-            if (config.optimizeCss.indexOf("standard") !== -1) {
-                fileList = file.getFilteredFileList(startDir, /\.css$/, true);
-                if (fileList) {
-                    for (i = 0; i < fileList.length; i++) {
-                        fileName = fileList[i];
-                        logger.trace("Optimizing (" + config.optimizeCss + ") CSS file: " + fileName);
-                        result = optimize.cssFile(fileName, fileName, config);
-                        buildText += result.buildText;
-                        if (shouldRemove) {
-                            result.importList.pop();
-                            importList = importList.concat(result.importList);
-                        }
-                    }
-                }
-
-                if (shouldRemove) {
-                    importList.forEach(function (path) {
-                        if (file.exists(path)) {
-                            file.deleteFile(path);
-                        }
-                    });
-                }
-            }
-            return buildText;
-        },
-
-        optimizers: {
-            uglify: function (fileName, fileContents, outFileName, keepLines, config) {
-                var parser = uglify.parser,
-                    processor = uglify.uglify,
-                    ast, errMessage, errMatch;
-
-                config = config || {};
-
-                logger.trace("Uglifying file: " + fileName);
-
-                try {
-                    ast = parser.parse(fileContents, config.strict_semicolons);
-                    if (config.no_mangle !== true) {
-                        ast = processor.ast_mangle(ast, config);
-                    }
-                    ast = processor.ast_squeeze(ast, config);
-
-                    fileContents = processor.gen_code(ast, config);
-
-                    if (config.max_line_length) {
-                        fileContents = processor.split_lines(fileContents, config.max_line_length);
-                    }
-
-                    //Add trailing semicolon to match uglifyjs command line version
-                    fileContents += ';';
-                } catch (e) {
-                    errMessage = e.toString();
-                    errMatch = /\nError(\r)?\n/.exec(errMessage);
-                    if (errMatch) {
-                        errMessage = errMessage.substring(0, errMatch.index);
-                    }
-                    throw new Error('Cannot uglify file: ' + fileName + '. Skipping it. Error is:\n' + errMessage);
-                }
-                return fileContents;
-            },
-            uglify2: function (fileName, fileContents, outFileName, keepLines, config) {
-                var result, existingMap, resultMap, finalMap, sourceIndex,
-                    uconfig = {},
-                    existingMapPath = outFileName + '.map',
-                    baseName = fileName && fileName.split('/').pop();
-
-                config = config || {};
-
-                lang.mixin(uconfig, config, true);
-
-                uconfig.fromString = true;
-
-                if (config.generateSourceMaps && (outFileName || config._buildSourceMap)) {
-                    uconfig.outSourceMap = baseName;
-
-                    if (config._buildSourceMap) {
-                        existingMap = JSON.parse(config._buildSourceMap);
-                        uconfig.inSourceMap = existingMap;
-                    } else if (file.exists(existingMapPath)) {
-                        uconfig.inSourceMap = existingMapPath;
-                        existingMap = JSON.parse(file.readFile(existingMapPath));
-                    }
-                }
-
-                logger.trace("Uglify2 file: " + fileName);
-
-                try {
-                    //var tempContents = fileContents.replace(/\/\/\# sourceMappingURL=.*$/, '');
-                    result = uglify2.minify(fileContents, uconfig, baseName + '.src.js');
-                    if (uconfig.outSourceMap && result.map) {
-                        resultMap = result.map;
-                        if (existingMap) {
-                            resultMap = JSON.parse(resultMap);
-                            finalMap = SourceMapGenerator.fromSourceMap(new SourceMapConsumer(resultMap));
-                            finalMap.applySourceMap(new SourceMapConsumer(existingMap));
-                            resultMap = finalMap.toString();
-                        } else if (!config._buildSourceMap) {
-                            file.saveFile(outFileName + '.src.js', fileContents);
-                        }
-
-                        fileContents = result.code;
-
-                        if (config._buildSourceMap) {
-                            config._buildSourceMap = resultMap;
-                        } else {
-                            file.saveFile(outFileName + '.map', resultMap);
-                            fileContents += "\n//# sourceMappingURL=" + baseName + ".map";
-                        }
-                    } else {
-                        fileContents = result.code;
-                    }
-                } catch (e) {
-                    throw new Error('Cannot uglify2 file: ' + fileName + '. Skipping it. Error is:\n' + e.toString());
-                }
-                return fileContents;
-            }
-        }
-    };
-
-    return optimize;
-});
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*
- * This file patches require.js to communicate with the build system.
- */
-
-//Using sloppy since this uses eval for some code like plugins,
-//which may not be strict mode compliant. So if use strict is used
-//below they will have strict rules applied and may cause an error.
-/*jslint sloppy: true, nomen: true, plusplus: true, regexp: true */
-/*global require, define: true */
-
-//NOT asking for require as a dependency since the goal is to modify the
-//global require below
-define('requirePatch', [ 'env!env/file', 'pragma', 'parse', 'lang', 'logger', 'commonJs', 'prim'], function (
-    file,
-    pragma,
-    parse,
-    lang,
-    logger,
-    commonJs,
-    prim
-) {
-
-    var allowRun = true,
-        hasProp = lang.hasProp,
-        falseProp = lang.falseProp,
-        getOwn = lang.getOwn;
-
-    //This method should be called when the patches to require should take hold.
-    return function () {
-        if (!allowRun) {
-            return;
-        }
-        allowRun = false;
-
-        var layer,
-            pluginBuilderRegExp = /(["']?)pluginBuilder(["']?)\s*[=\:]\s*["']([^'"\s]+)["']/,
-            oldNewContext = require.s.newContext,
-            oldDef,
-
-            //create local undefined values for module and exports,
-            //so that when files are evaled in this function they do not
-            //see the node values used for r.js
-            exports,
-            module;
-
-        /**
-         * Reset "global" build caches that are kept around between
-         * build layer builds. Useful to do when there are multiple
-         * top level requirejs.optimize() calls.
-         */
-        require._cacheReset = function () {
-            //Stored raw text caches, used by browser use.
-            require._cachedRawText = {};
-            //Stored cached file contents for reuse in other layers.
-            require._cachedFileContents = {};
-            //Store which cached files contain a require definition.
-            require._cachedDefinesRequireUrls = {};
-        };
-        require._cacheReset();
-
-        /**
-         * Makes sure the URL is something that can be supported by the
-         * optimization tool.
-         * @param {String} url
-         * @returns {Boolean}
-         */
-        require._isSupportedBuildUrl = function (url) {
-            //Ignore URLs with protocols, hosts or question marks, means either network
-            //access is needed to fetch it or it is too dynamic. Note that
-            //on Windows, full paths are used for some urls, which include
-            //the drive, like c:/something, so need to test for something other
-            //than just a colon.
-            if (url.indexOf("://") === -1 && url.indexOf("?") === -1 &&
-                    url.indexOf('empty:') !== 0 && url.indexOf('//') !== 0) {
-                return true;
-            } else {
-                if (!layer.ignoredUrls[url]) {
-                    if (url.indexOf('empty:') === -1) {
-                        logger.info('Cannot optimize network URL, skipping: ' + url);
-                    }
-                    layer.ignoredUrls[url] = true;
-                }
-                return false;
-            }
-        };
-
-        function normalizeUrlWithBase(context, moduleName, url) {
-            //Adjust the URL if it was not transformed to use baseUrl.
-            if (require.jsExtRegExp.test(moduleName)) {
-                url = (context.config.dir || context.config.dirBaseUrl) + url;
-            }
-            return url;
-        }
-
-        //Overrides the new context call to add existing tracking features.
-        require.s.newContext = function (name) {
-            var context = oldNewContext(name),
-                oldEnable = context.enable,
-                moduleProto = context.Module.prototype,
-                oldInit = moduleProto.init,
-                oldCallPlugin = moduleProto.callPlugin;
-
-            //Only do this for the context used for building.
-            if (name === '_') {
-                //For build contexts, do everything sync
-                context.nextTick = function (fn) {
-                    fn();
-                };
-
-                context.needFullExec = {};
-                context.fullExec = {};
-                context.plugins = {};
-                context.buildShimExports = {};
-
-                //Override the shim exports function generator to just
-                //spit out strings that can be used in the stringified
-                //build output.
-                context.makeShimExports = function (value) {
-                    var fn;
-                    if (context.config.wrapShim) {
-                        fn = function () {
-                            var str = 'return ';
-                            // If specifies an export that is just a global
-                            // name, no dot for a `this.` and such, then also
-                            // attach to the global, for `var a = {}` files
-                            // where the function closure would hide that from
-                            // the global object.
-                            if (value.exports && value.exports.indexOf('.') === -1) {
-                                str += 'root.' + value.exports + ' = ';
-                            }
-
-                            if (value.init) {
-                                str += '(' + value.init.toString() + '.apply(this, arguments))';
-                            }
-                            if (value.init && value.exports) {
-                                str += ' || ';
-                            }
-                            if (value.exports) {
-                                str += value.exports;
-                            }
-                            str += ';';
-                            return str;
-                        };
-                    } else {
-                        fn = function () {
-                            return '(function (global) {\n' +
-                                '    return function () {\n' +
-                                '        var ret, fn;\n' +
-                                (value.init ?
-                                        ('       fn = ' + value.init.toString() + ';\n' +
-                                        '        ret = fn.apply(global, arguments);\n') : '') +
-                                (value.exports ?
-                                        '        return ret || global.' + value.exports + ';\n' :
-                                        '        return ret;\n') +
-                                '    };\n' +
-                                '}(this))';
-                        };
-                    }
-
-                    return fn;
-                };
-
-                context.enable = function (depMap, parent) {
-                    var id = depMap.id,
-                        parentId = parent && parent.map.id,
-                        needFullExec = context.needFullExec,
-                        fullExec = context.fullExec,
-                        mod = getOwn(context.registry, id);
-
-                    if (mod && !mod.defined) {
-                        if (parentId && getOwn(needFullExec, parentId)) {
-                            needFullExec[id] = true;
-                        }
-
-                    } else if ((getOwn(needFullExec, id) && falseProp(fullExec, id)) ||
-                               (parentId && getOwn(needFullExec, parentId) &&
-                                falseProp(fullExec, id))) {
-                        context.require.undef(id);
-                    }
-
-                    return oldEnable.apply(context, arguments);
-                };
-
-                //Override load so that the file paths can be collected.
-                context.load = function (moduleName, url) {
-                    /*jslint evil: true */
-                    var contents, pluginBuilderMatch, builderName,
-                        shim, shimExports;
-
-                    //Do not mark the url as fetched if it is
-                    //not an empty: URL, used by the optimizer.
-                    //In that case we need to be sure to call
-                    //load() for each module that is mapped to
-                    //empty: so that dependencies are satisfied
-                    //correctly.
-                    if (url.indexOf('empty:') === 0) {
-                        delete context.urlFetched[url];
-                    }
-
-                    //Only handle urls that can be inlined, so that means avoiding some
-                    //URLs like ones that require network access or may be too dynamic,
-                    //like JSONP
-                    if (require._isSupportedBuildUrl(url)) {
-                        //Adjust the URL if it was not transformed to use baseUrl.
-                        url = normalizeUrlWithBase(context, moduleName, url);
-
-                        //Save the module name to path  and path to module name mappings.
-                        layer.buildPathMap[moduleName] = url;
-                        layer.buildFileToModule[url] = moduleName;
-
-                        if (hasProp(context.plugins, moduleName)) {
-                            //plugins need to have their source evaled as-is.
-                            context.needFullExec[moduleName] = true;
-                        }
-
-                        prim().start(function () {
-                            if (hasProp(require._cachedFileContents, url) &&
-                                    (falseProp(context.needFullExec, moduleName) ||
-                                    getOwn(context.fullExec, moduleName))) {
-                                contents = require._cachedFileContents[url];
-
-                                //If it defines require, mark it so it can be hoisted.
-                                //Done here and in the else below, before the
-                                //else block removes code from the contents.
-                                //Related to #263
-                                if (!layer.existingRequireUrl && require._cachedDefinesRequireUrls[url]) {
-                                    layer.existingRequireUrl = url;
-                                }
-                            } else {
-                                //Load the file contents, process for conditionals, then
-                                //evaluate it.
-                                return require._cacheReadAsync(url).then(function (text) {
-                                    contents = text;
-
-                                    if (context.config.cjsTranslate &&
-                                        (!context.config.shim || !lang.hasProp(context.config.shim, moduleName))) {
-                                        contents = commonJs.convert(url, contents);
-                                    }
-
-                                    //If there is a read filter, run it now.
-                                    if (context.config.onBuildRead) {
-                                        contents = context.config.onBuildRead(moduleName, url, contents);
-                                    }
-
-                                    contents = pragma.process(url, contents, context.config, 'OnExecute');
-
-                                    //Find out if the file contains a require() definition. Need to know
-                                    //this so we can inject plugins right after it, but before they are needed,
-                                    //and to make sure this file is first, so that define calls work.
-                                    try {
-                                        if (!layer.existingRequireUrl && parse.definesRequire(url, contents)) {
-                                            layer.existingRequireUrl = url;
-                                            require._cachedDefinesRequireUrls[url] = true;
-                                        }
-                                    } catch (e1) {
-                                        throw new Error('Parse error using esprima ' +
-                                                        'for file: ' + url + '\n' + e1);
-                                    }
-                                }).then(function () {
-                                    if (hasProp(context.plugins, moduleName)) {
-                                        //This is a loader plugin, check to see if it has a build extension,
-                                        //otherwise the plugin will act as the plugin builder too.
-                                        pluginBuilderMatch = pluginBuilderRegExp.exec(contents);
-                                        if (pluginBuilderMatch) {
-                                            //Load the plugin builder for the plugin contents.
-                                            builderName = context.makeModuleMap(pluginBuilderMatch[3],
-                                                                                context.makeModuleMap(moduleName),
-                                                                                null,
-                                                                                true).id;
-                                            return require._cacheReadAsync(context.nameToUrl(builderName));
-                                        }
-                                    }
-                                    return contents;
-                                }).then(function (text) {
-                                    contents = text;
-
-                                    //Parse out the require and define calls.
-                                    //Do this even for plugins in case they have their own
-                                    //dependencies that may be separate to how the pluginBuilder works.
-                                    try {
-                                        if (falseProp(context.needFullExec, moduleName)) {
-                                            contents = parse(moduleName, url, contents, {
-                                                insertNeedsDefine: true,
-                                                has: context.config.has,
-                                                findNestedDependencies: context.config.findNestedDependencies
-                                            });
-                                        }
-                                    } catch (e2) {
-                                        throw new Error('Parse error using esprima ' +
-                                                        'for file: ' + url + '\n' + e2);
-                                    }
-
-                                    require._cachedFileContents[url] = contents;
-                                });
-                            }
-                        }).then(function () {
-                            if (contents) {
-                                eval(contents);
-                            }
-
-                            try {
-                                //If have a string shim config, and this is
-                                //a fully executed module, try to see if
-                                //it created a variable in this eval scope
-                                if (getOwn(context.needFullExec, moduleName)) {
-                                    shim = getOwn(context.config.shim, moduleName);
-                                    if (shim && shim.exports) {
-                                        shimExports = eval(shim.exports);
-                                        if (typeof shimExports !== 'undefined') {
-                                            context.buildShimExports[moduleName] = shimExports;
-                                        }
-                                    }
-                                }
-
-                                //Need to close out completion of this module
-                                //so that listeners will get notified that it is available.
-                                context.completeLoad(moduleName);
-                            } catch (e) {
-                                //Track which module could not complete loading.
-                                if (!e.moduleTree) {
-                                    e.moduleTree = [];
-                                }
-                                e.moduleTree.push(moduleName);
-                                throw e;
-                            }
-                        }).then(null, function (eOuter) {
-
-                            if (!eOuter.fileName) {
-                                eOuter.fileName = url;
-                            }
-                            throw eOuter;
-                        }).end();
-                    } else {
-                        //With unsupported URLs still need to call completeLoad to
-                        //finish loading.
-                        context.completeLoad(moduleName);
-                    }
-                };
-
-                //Marks module has having a name, and optionally executes the
-                //callback, but only if it meets certain criteria.
-                context.execCb = function (name, cb, args, exports) {
-                    var buildShimExports = getOwn(layer.context.buildShimExports, name);
-
-                    if (buildShimExports) {
-                        return buildShimExports;
-                    } else if (cb.__requireJsBuild || getOwn(layer.context.needFullExec, name)) {
-                        return cb.apply(exports, args);
-                    }
-                    return undefined;
-                };
-
-                moduleProto.init = function (depMaps) {
-                    if (context.needFullExec[this.map.id]) {
-                        lang.each(depMaps, lang.bind(this, function (depMap) {
-                            if (typeof depMap === 'string') {
-                                depMap = context.makeModuleMap(depMap,
-                                               (this.map.isDefine ? this.map : this.map.parentMap));
-                            }
-
-                            if (!context.fullExec[depMap.id]) {
-                                context.require.undef(depMap.id);
-                            }
-                        }));
-                    }
-
-                    return oldInit.apply(this, arguments);
-                };
-
-                moduleProto.callPlugin = function () {
-                    var map = this.map,
-                        pluginMap = context.makeModuleMap(map.prefix),
-                        pluginId = pluginMap.id,
-                        pluginMod = getOwn(context.registry, pluginId);
-
-                    context.plugins[pluginId] = true;
-                    context.needFullExec[pluginId] = true;
-
-                    //If the module is not waiting to finish being defined,
-                    //undef it and start over, to get full execution.
-                    if (falseProp(context.fullExec, pluginId) && (!pluginMod || pluginMod.defined)) {
-                        context.require.undef(pluginMap.id);
-                    }
-
-                    return oldCallPlugin.apply(this, arguments);
-                };
-            }
-
-            return context;
-        };
-
-        //Clear up the existing context so that the newContext modifications
-        //above will be active.
-        delete require.s.contexts._;
-
-        /** Reset state for each build layer pass. */
-        require._buildReset = function () {
-            var oldContext = require.s.contexts._;
-
-            //Clear up the existing context.
-            delete require.s.contexts._;
-
-            //Set up new context, so the layer object can hold onto it.
-            require({});
-
-            layer = require._layer = {
-                buildPathMap: {},
-                buildFileToModule: {},
-                buildFilePaths: [],
-                pathAdded: {},
-                modulesWithNames: {},
-                needsDefine: {},
-                existingRequireUrl: "",
-                ignoredUrls: {},
-                context: require.s.contexts._
-            };
-
-            //Return the previous context in case it is needed, like for
-            //the basic config object.
-            return oldContext;
-        };
-
-        require._buildReset();
-
-        //Override define() to catch modules that just define an object, so that
-        //a dummy define call is not put in the build file for them. They do
-        //not end up getting defined via context.execCb, so we need to catch them
-        //at the define call.
-        oldDef = define;
-
-        //This function signature does not have to be exact, just match what we
-        //are looking for.
-        define = function (name) {
-            if (typeof name === "string" && falseProp(layer.needsDefine, name)) {
-                layer.modulesWithNames[name] = true;
-            }
-            return oldDef.apply(require, arguments);
-        };
-
-        define.amd = oldDef.amd;
-
-        //Add some utilities for plugins
-        require._readFile = file.readFile;
-        require._fileExists = function (path) {
-            return file.exists(path);
-        };
-
-        //Called when execManager runs for a dependency. Used to figure out
-        //what order of execution.
-        require.onResourceLoad = function (context, map) {
-            var id = map.id,
-                url;
-
-            //If build needed a full execution, indicate it
-            //has been done now. But only do it if the context is tracking
-            //that. Only valid for the context used in a build, not for
-            //other contexts being run, like for useLib, plain requirejs
-            //use in node/rhino.
-            if (context.needFullExec && getOwn(context.needFullExec, id)) {
-                context.fullExec[id] = true;
-            }
-
-            //A plugin.
-            if (map.prefix) {
-                if (falseProp(layer.pathAdded, id)) {
-                    layer.buildFilePaths.push(id);
-                    //For plugins the real path is not knowable, use the name
-                    //for both module to file and file to module mappings.
-                    layer.buildPathMap[id] = id;
-                    layer.buildFileToModule[id] = id;
-                    layer.modulesWithNames[id] = true;
-                    layer.pathAdded[id] = true;
-                }
-            } else if (map.url && require._isSupportedBuildUrl(map.url)) {
-                //If the url has not been added to the layer yet, and it
-                //is from an actual file that was loaded, add it now.
-                url = normalizeUrlWithBase(context, id, map.url);
-                if (!layer.pathAdded[url] && getOwn(layer.buildPathMap, id)) {
-                    //Remember the list of dependencies for this layer.
-                    layer.buildFilePaths.push(url);
-                    layer.pathAdded[url] = true;
-                }
-            }
-        };
-
-        //Called by output of the parse() function, when a file does not
-        //explicitly call define, probably just require, but the parse()
-        //function normalizes on define() for dependency mapping and file
-        //ordering works correctly.
-        require.needsDefine = function (moduleName) {
-            layer.needsDefine[moduleName] = true;
-        };
-    };
-});
-/**
- * @license RequireJS Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint */
-/*global define: false, console: false */
-
-define('commonJs', ['env!env/file', 'parse'], function (file, parse) {
-    'use strict';
-    var commonJs = {
-        //Set to false if you do not want this file to log. Useful in environments
-        //like node where you want the work to happen without noise.
-        useLog: true,
-
-        convertDir: function (commonJsPath, savePath) {
-            var fileList, i,
-                jsFileRegExp = /\.js$/,
-                fileName, convertedFileName, fileContents;
-
-            //Get list of files to convert.
-            fileList = file.getFilteredFileList(commonJsPath, /\w/, true);
-
-            //Normalize on front slashes and make sure the paths do not end in a slash.
-            commonJsPath = commonJsPath.replace(/\\/g, "/");
-            savePath = savePath.replace(/\\/g, "/");
-            if (commonJsPath.charAt(commonJsPath.length - 1) === "/") {
-                commonJsPath = commonJsPath.substring(0, commonJsPath.length - 1);
-            }
-            if (savePath.charAt(savePath.length - 1) === "/") {
-                savePath = savePath.substring(0, savePath.length - 1);
-            }
-
-            //Cycle through all the JS files and convert them.
-            if (!fileList || !fileList.length) {
-                if (commonJs.useLog) {
-                    if (commonJsPath === "convert") {
-                        //A request just to convert one file.
-                        console.log('\n\n' + commonJs.convert(savePath, file.readFile(savePath)));
-                    } else {
-                        console.log("No files to convert in directory: " + commonJsPath);
-                    }
-                }
-            } else {
-                for (i = 0; i < fileList.length; i++) {
-                    fileName = fileList[i];
-                    convertedFileName = fileName.replace(commonJsPath, savePath);
-
-                    //Handle JS files.
-                    if (jsFileRegExp.test(fileName)) {
-                        fileContents = file.readFile(fileName);
-                        fileContents = commonJs.convert(fileName, fileContents);
-                        file.saveUtf8File(convertedFileName, fileContents);
-                    } else {
-                        //Just copy the file over.
-                        file.copyFile(fileName, convertedFileName, true);
-                    }
-                }
-            }
-        },
-
-        /**
-         * Does the actual file conversion.
-         *
-         * @param {String} fileName the name of the file.
-         *
-         * @param {String} fileContents the contents of a file :)
-         *
-         * @returns {String} the converted contents
-         */
-        convert: function (fileName, fileContents) {
-            //Strip out comments.
-            try {
-                var preamble = '',
-                    commonJsProps = parse.usesCommonJs(fileName, fileContents);
-
-                //First see if the module is not already RequireJS-formatted.
-                if (parse.usesAmdOrRequireJs(fileName, fileContents) || !commonJsProps) {
-                    return fileContents;
-                }
-
-                if (commonJsProps.dirname || commonJsProps.filename) {
-                    preamble = 'var __filename = module.uri || "", ' +
-                               '__dirname = __filename.substring(0, __filename.lastIndexOf("/") + 1); ';
-                }
-
-                //Construct the wrapper boilerplate.
-                fileContents = 'define(function (require, exports, module) {' +
-                    preamble +
-                    fileContents +
-                    '\n});\n';
-
-            } catch (e) {
-                console.log("commonJs.convert: COULD NOT CONVERT: " + fileName + ", so skipping it. Error was: " + e);
-                return fileContents;
-            }
-
-            return fileContents;
-        }
-    };
-
-    return commonJs;
-});
-/**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*jslint plusplus: true, nomen: true, regexp: true  */
-/*global define, requirejs */
-
-
-define('build', function (require) {
-    'use strict';
-
-    var build,
-        lang = require('lang'),
-        prim = require('prim'),
-        logger = require('logger'),
-        file = require('env!env/file'),
-        parse = require('parse'),
-        optimize = require('optimize'),
-        pragma = require('pragma'),
-        transform = require('transform'),
-        requirePatch = require('requirePatch'),
-        env = require('env'),
-        commonJs = require('commonJs'),
-        SourceMapGenerator = require('source-map/source-map-generator'),
-        hasProp = lang.hasProp,
-        getOwn = lang.getOwn,
-        falseProp = lang.falseProp,
-        endsWithSemiColonRegExp = /;\s*$/,
-        endsWithSlashRegExp = /[\/\\]$/,
-        resourceIsModuleIdRegExp = /^[\w\/\\\.]+$/;
-
-    prim.nextTick = function (fn) {
-        fn();
-    };
-
-    //Now map require to the outermost requirejs, now that we have
-    //local dependencies for this module. The rest of the require use is
-    //manipulating the requirejs loader.
-    require = requirejs;
-
-    //Caching function for performance. Attached to
-    //require so it can be reused in requirePatch.js. _cachedRawText
-    //set up by requirePatch.js
-    require._cacheReadAsync = function (path, encoding) {
-        var d;
-
-        if (lang.hasProp(require._cachedRawText, path)) {
-            d = prim();
-            d.resolve(require._cachedRawText[path]);
-            return d.promise;
-        } else {
-            return file.readFileAsync(path, encoding).then(function (text) {
-                require._cachedRawText[path] = text;
-                return text;
-            });
-        }
-    };
-
-    function makeBuildBaseConfig() {
-        return {
-            appDir: "",
-            pragmas: {},
-            paths: {},
-            optimize: "uglify",
-            optimizeCss: "standard.keepLines.keepWhitespace",
-            inlineText: true,
-            isBuild: true,
-            optimizeAllPluginResources: false,
-            findNestedDependencies: false,
-            preserveLicenseComments: true,
-            //By default, all files/directories are copied, unless
-            //they match this regexp, by default just excludes .folders
-            dirExclusionRegExp: file.dirExclusionRegExp,
-            _buildPathToModuleIndex: {}
-        };
-    }
-
-    /**
-     * Some JS may not be valid if concatenated with other JS, in particular
-     * the style of omitting semicolons and rely on ASI. Add a semicolon in
-     * those cases.
-     */
-    function addSemiColon(text, config) {
-        if (config.skipSemiColonInsertion || endsWithSemiColonRegExp.test(text)) {
-            return text;
-        } else {
-            return text + ";";
-        }
-    }
-
-    function endsWithSlash(dirName) {
-        if (dirName.charAt(dirName.length - 1) !== "/") {
-            dirName += "/";
-        }
-        return dirName;
-    }
-
-    //Method used by plugin writeFile calls, defined up here to avoid
-    //jslint warning about "making a function in a loop".
-    function makeWriteFile(namespace, layer) {
-        function writeFile(name, contents) {
-            logger.trace('Saving plugin-optimized file: ' + name);
-            file.saveUtf8File(name, contents);
-        }
-
-        writeFile.asModule = function (moduleName, fileName, contents) {
-            writeFile(fileName,
-                build.toTransport(namespace, moduleName, fileName, contents, layer));
-        };
-
-        return writeFile;
-    }
-
-    /**
-     * Main API entry point into the build. The args argument can either be
-     * an array of arguments (like the onese passed on a command-line),
-     * or it can be a JavaScript object that has the format of a build profile
-     * file.
-     *
-     * If it is an object, then in addition to the normal properties allowed in
-     * a build profile file, the object should contain one other property:
-     *
-     * The object could also contain a "buildFile" property, which is a string
-     * that is the file path to a build profile that contains the rest
-     * of the build profile directives.
-     *
-     * This function does not return a status, it should throw an error if
-     * there is a problem completing the build.
-     */
-    build = function (args) {
-        var buildFile, cmdConfig, errorMsg, errorStack, stackMatch, errorTree,
-            i, j, errorMod,
-            stackRegExp = /( {4}at[^\n]+)\n/,
-            standardIndent = '  ';
-
-        return prim().start(function () {
-            if (!args || lang.isArray(args)) {
-                if (!args || args.length < 1) {
-                    logger.error("build.js buildProfile.js\n" +
-                          "where buildProfile.js is the name of the build file (see example.build.js for hints on how to make a build file).");
-                    return undefined;
-                }
-
-                //Next args can include a build file path as well as other build args.
-                //build file path comes first. If it does not contain an = then it is
-                //a build file path. Otherwise, just all build args.
-                if (args[0].indexOf("=") === -1) {
-                    buildFile = args[0];
-                    args.splice(0, 1);
-                }
-
-                //Remaining args are options to the build
-                cmdConfig = build.convertArrayToObject(args);
-                cmdConfig.buildFile = buildFile;
-            } else {
-                cmdConfig = args;
-            }
-
-            return build._run(cmdConfig);
-        }).then(null, function (e) {
-            var err;
-
-            errorMsg = e.toString();
-            errorTree = e.moduleTree;
-            stackMatch = stackRegExp.exec(errorMsg);
-
-            if (stackMatch) {
-                errorMsg += errorMsg.substring(0, stackMatch.index + stackMatch[0].length + 1);
-            }
-
-            //If a module tree that shows what module triggered the error,
-            //print it out.
-            if (errorTree && errorTree.length > 0) {
-                errorMsg += '\nIn module tree:\n';
-
-                for (i = errorTree.length - 1; i > -1; i--) {
-                    errorMod = errorTree[i];
-                    if (errorMod) {
-                        for (j = errorTree.length - i; j > -1; j--) {
-                            errorMsg += standardIndent;
-                        }
-                        errorMsg += errorMod + '\n';
-                    }
-                }
-
-                logger.error(errorMsg);
-            }
-
-            errorStack = e.stack;
-
-            if (typeof args === 'string' && args.indexOf('stacktrace=true') !== -1) {
-                errorMsg += '\n' + errorStack;
-            } else {
-                if (!stackMatch && errorStack) {
-                    //Just trim out the first "at" in the stack.
-                    stackMatch = stackRegExp.exec(errorStack);
-                    if (stackMatch) {
-                        errorMsg += '\n' + stackMatch[0] || '';
-                    }
-                }
-            }
-
-            err = new Error(errorMsg);
-            err.originalError = e;
-            throw err;
-        });
-    };
-
-    build._run = function (cmdConfig) {
-        var buildPaths, fileName, fileNames,
-            paths, i,
-            baseConfig, config,
-            modules, srcPath, buildContext,
-            destPath, moduleMap, parentModuleMap, context,
-            resources, resource, plugin, fileContents,
-            pluginProcessed = {},
-            buildFileContents = "",
-            pluginCollector = {};
-
-        return prim().start(function () {
-            var prop;
-
-            //Can now run the patches to require.js to allow it to be used for
-            //build generation. Do it here instead of at the top of the module
-            //because we want normal require behavior to load the build tool
-            //then want to switch to build mode.
-            requirePatch();
-
-            config = build.createConfig(cmdConfig);
-            paths = config.paths;
-
-            //Remove the previous build dir, in case it contains source transforms,
-            //like the ones done with onBuildRead and onBuildWrite.
-            if (config.dir && !config.keepBuildDir && file.exists(config.dir)) {
-                file.deleteFile(config.dir);
-            }
-
-            if (!config.out && !config.cssIn) {
-                //This is not just a one-off file build but a full build profile, with
-                //lots of files to process.
-
-                //First copy all the baseUrl content
-                file.copyDir((config.appDir || config.baseUrl), config.dir, /\w/, true);
-
-                //Adjust baseUrl if config.appDir is in play, and set up build output paths.
-                buildPaths = {};
-                if (config.appDir) {
-                    //All the paths should be inside the appDir, so just adjust
-                    //the paths to use the dirBaseUrl
-                    for (prop in paths) {
-                        if (hasProp(paths, prop)) {
-                            buildPaths[prop] = paths[prop].replace(config.appDir, config.dir);
-                        }
-                    }
-                } else {
-                    //If no appDir, then make sure to copy the other paths to this directory.
-                    for (prop in paths) {
-                        if (hasProp(paths, prop)) {
-                            //Set up build path for each path prefix, but only do so
-                            //if the path falls out of the current baseUrl
-                            if (paths[prop].indexOf(config.baseUrl) === 0) {
-                                buildPaths[prop] = paths[prop].replace(config.baseUrl, config.dirBaseUrl);
-                            } else {
-                                buildPaths[prop] = paths[prop] === 'empty:' ? 'empty:' : prop.replace(/\./g, "/");
-
-                                //Make sure source path is fully formed with baseUrl,
-                                //if it is a relative URL.
-                                srcPath = paths[prop];
-                                if (srcPath.indexOf('/') !== 0 && srcPath.indexOf(':') === -1) {
-                                    srcPath = config.baseUrl + srcPath;
-                                }
-
-                                destPath = config.dirBaseUrl + buildPaths[prop];
-
-                                //Skip empty: paths
-                                if (srcPath !== 'empty:') {
-                                    //If the srcPath is a directory, copy the whole directory.
-                                    if (file.exists(srcPath) && file.isDirectory(srcPath)) {
-                                        //Copy files to build area. Copy all files (the /\w/ regexp)
-                                        file.copyDir(srcPath, destPath, /\w/, true);
-                                    } else {
-                                        //Try a .js extension
-                                        srcPath += '.js';
-                                        destPath += '.js';
-                                        file.copyFile(srcPath, destPath);
-                                    }
-                                }
-                            }
-                        }
-                    }
-                }
-            }
-
-            //Figure out source file location for each module layer. Do this by seeding require
-            //with source area configuration. This is needed so that later the module layers
-            //can be manually copied over to the source area, since the build may be
-            //require multiple times and the above copyDir call only copies newer files.
-            require({
-                baseUrl: config.baseUrl,
-                paths: paths,
-                packagePaths: config.packagePaths,
-                packages: config.packages
-            });
-            buildContext = require.s.contexts._;
-            modules = config.modules;
-
-            if (modules) {
-                modules.forEach(function (module) {
-                    if (module.name) {
-                        module._sourcePath = buildContext.nameToUrl(module.name);
-                        //If the module does not exist, and this is not a "new" module layer,
-                        //as indicated by a true "create" property on the module, and
-                        //it is not a plugin-loaded resource, and there is no
-                        //'rawText' containing the module's source then throw an error.
-                        if (!file.exists(module._sourcePath) && !module.create &&
-                                module.name.indexOf('!') === -1 &&
-                                (!config.rawText || !lang.hasProp(config.rawText, module.name))) {
-                            throw new Error("ERROR: module path does not exist: " +
-                                            module._sourcePath + " for module named: " + module.name +
-                                            ". Path is relative to: " + file.absPath('.'));
-                        }
-                    }
-                });
-            }
-
-            if (config.out) {
-                //Just set up the _buildPath for the module layer.
-                require(config);
-                if (!config.cssIn) {
-                    config.modules[0]._buildPath = typeof config.out === 'function' ?
-                                                   'FUNCTION' : config.out;
-                }
-            } else if (!config.cssIn) {
-                //Now set up the config for require to use the build area, and calculate the
-                //build file locations. Pass along any config info too.
-                baseConfig = {
-                    baseUrl: config.dirBaseUrl,
-                    paths: buildPaths
-                };
-
-                lang.mixin(baseConfig, config);
-                require(baseConfig);
-
-                if (modules) {
-                    modules.forEach(function (module) {
-                        if (module.name) {
-                            module._buildPath = buildContext.nameToUrl(module.name, null);
-
-                            //If buildPath and sourcePath are the same, throw since this
-                            //would result in modifying source. This condition can happen
-                            //with some more tricky paths: config and appDir/baseUrl
-                            //setting, which is a sign of incorrect config.
-                            if (module._buildPath === module._sourcePath) {
-                                throw new Error('Module ID \'' + module.name  +
-                                                '\' has a source path that is same as output path: ' +
-                                                module._sourcePath +
-                                                '. Stopping, config is malformed.');
-                            }
-
-                            if (!module.create) {
-                                file.copyFile(module._sourcePath, module._buildPath);
-                            }
-                        }
-                    });
-                }
-            }
-
-            //Run CSS optimizations before doing JS module tracing, to allow
-            //things like text loader plugins loading CSS to get the optimized
-            //CSS.
-            if (config.optimizeCss && config.optimizeCss !== "none" && config.dir) {
-                buildFileContents += optimize.css(config.dir, config);
-            }
-        }).then(function() {
-            baseConfig = lang.deeplikeCopy(require.s.contexts._.config);
-        }).then(function () {
-            var actions = [];
-
-            if (modules) {
-                actions = modules.map(function (module, i) {
-                    return function () {
-                        //Save off buildPath to module index in a hash for quicker
-                        //lookup later.
-                        config._buildPathToModuleIndex[file.normalize(module._buildPath)] = i;
-
-                        //Call require to calculate dependencies.
-                        return build.traceDependencies(module, config, baseConfig)
-                            .then(function (layer) {
-                                module.layer = layer;
-                            });
-                    };
-                });
-
-                return prim.serial(actions);
-            }
-        }).then(function () {
-            var actions;
-
-            if (modules) {
-                //Now build up shadow layers for anything that should be excluded.
-                //Do this after tracing dependencies for each module, in case one
-                //of those modules end up being one of the excluded values.
-                actions = modules.map(function (module) {
-                    return function () {
-                        if (module.exclude) {
-                            module.excludeLayers = [];
-                            return prim.serial(module.exclude.map(function (exclude, i) {
-                                return function () {
-                                    //See if it is already in the list of modules.
-                                    //If not trace dependencies for it.
-                                    var found = build.findBuildModule(exclude, modules);
-                                    if (found) {
-                                        module.excludeLayers[i] = found;
-                                    } else {
-                                        return build.traceDependencies({name: exclude}, config, baseConfig)
-                                            .then(function (layer) {
-                                                module.excludeLayers[i] = { layer: layer };
-                                            });
-                                    }
-                                };
-                            }));
-                        }
-                    };
-                });
-
-                return prim.serial(actions);
-            }
-        }).then(function () {
-            if (modules) {
-                return prim.serial(modules.map(function (module) {
-                    return function () {
-                        if (module.exclude) {
-                            //module.exclude is an array of module names. For each one,
-                            //get the nested dependencies for it via a matching entry
-                            //in the module.excludeLayers array.
-                            module.exclude.forEach(function (excludeModule, i) {
-                                var excludeLayer = module.excludeLayers[i].layer,
-                                    map = excludeLayer.buildFileToModule;
-                                excludeLayer.buildFilePaths.forEach(function(filePath){
-                                    build.removeModulePath(map[filePath], filePath, module.layer);
-                                });
-                            });
-                        }
-                        if (module.excludeShallow) {
-                            //module.excludeShallow is an array of module names.
-                            //shallow exclusions are just that module itself, and not
-                            //its nested dependencies.
-                            module.excludeShallow.forEach(function (excludeShallowModule) {
-                                var path = getOwn(module.layer.buildPathMap, excludeShallowModule);
-                                if (path) {
-                                    build.removeModulePath(excludeShallowModule, path, module.layer);
-                                }
-                            });
-                        }
-
-                        //Flatten them and collect the build output for each module.
-                        return build.flattenModule(module, module.layer, config).then(function (builtModule) {
-                            var finalText, baseName;
-                            //Save it to a temp file for now, in case there are other layers that
-                            //contain optimized content that should not be included in later
-                            //layer optimizations. See issue #56.
-                            if (module._buildPath === 'FUNCTION') {
-                                module._buildText = builtModule.text;
-                                module._buildSourceMap = builtModule.sourceMap;
-                            } else {
-                                finalText = builtModule.text;
-                                if (builtModule.sourceMap) {
-                                    baseName = module._buildPath.split('/');
-                                    baseName = baseName.pop();
-                                    finalText += '\n//# sourceMappingURL=' + baseName + '.map';
-                                    file.saveUtf8File(module._buildPath + '.map', builtModule.sourceMap);
-                                }
-                                file.saveUtf8File(module._buildPath + '-temp', finalText);
-
-                            }
-                            buildFileContents += builtModule.buildText;
-                        });
-                    };
-                }));
-            }
-        }).then(function () {
-            var moduleName, outOrigSourceMap;
-            if (modules) {
-                //Now move the build layers to their final position.
-                modules.forEach(function (module) {
-                    var finalPath = module._buildPath;
-                    if (finalPath !== 'FUNCTION') {
-                        if (file.exists(finalPath)) {
-                            file.deleteFile(finalPath);
-                        }
-                        file.renameFile(finalPath + '-temp', finalPath);
-
-                        //And finally, if removeCombined is specified, remove
-                        //any of the files that were used in this layer.
-                        //Be sure not to remove other build layers.
-                        if (config.removeCombined && !config.out) {
-                            module.layer.buildFilePaths.forEach(function (path) {
-                                var isLayer = modules.some(function (mod) {
-                                        return mod._buildPath === path;
-                                    }),
-                                    relPath = build.makeRelativeFilePath(config.dir, path);
-
-                                if (file.exists(path) &&
-                                    // not a build layer target
-                                    !isLayer &&
-                                    // not outside the build directory
-                                    relPath.indexOf('..') !== 0) {
-                                    file.deleteFile(path);
-                                }
-                            });
-                        }
-                    }
-
-                    //Signal layer is done
-                    if (config.onModuleBundleComplete) {
-                        config.onModuleBundleComplete(module.onCompleteData);
-                    }
-                });
-            }
-
-            //If removeCombined in play, remove any empty directories that
-            //may now exist because of its use
-            if (config.removeCombined && !config.out && config.dir) {
-                file.deleteEmptyDirs(config.dir);
-            }
-
-            //Do other optimizations.
-            if (config.out && !config.cssIn) {
-                //Just need to worry about one JS file.
-                fileName = config.modules[0]._buildPath;
-                if (fileName === 'FUNCTION') {
-                    outOrigSourceMap = config.modules[0]._buildSourceMap;
-                    config._buildSourceMap = outOrigSourceMap;
-                    config.modules[0]._buildText = optimize.js((config.modules[0].name ||
-                                                                config.modules[0].include[0] ||
-                                                                fileName) + '.build.js',
-                                                               config.modules[0]._buildText,
-                                                               null,
-                                                               config);
-                    if (config._buildSourceMap && config._buildSourceMap !== outOrigSourceMap) {
-                        config.modules[0]._buildSourceMap = config._buildSourceMap;
-                        config._buildSourceMap = null;
-                    }
-                } else {
-                    optimize.jsFile(fileName, null, fileName, config);
-                }
-            } else if (!config.cssIn) {
-                //Normal optimizations across modules.
-
-                //JS optimizations.
-                fileNames = file.getFilteredFileList(config.dir, /\.js$/, true);
-                fileNames.forEach(function (fileName) {
-                    var cfg, override, moduleIndex;
-
-                    //Generate the module name from the config.dir root.
-                    moduleName = fileName.replace(config.dir, '');
-                    //Get rid of the extension
-                    moduleName = moduleName.substring(0, moduleName.length - 3);
-
-                    //If there is an override for a specific layer build module,
-                    //and this file is that module, mix in the override for use
-                    //by optimize.jsFile.
-                    moduleIndex = getOwn(config._buildPathToModuleIndex, fileName);
-                    //Normalize, since getOwn could have returned undefined
-                    moduleIndex = moduleIndex === 0 || moduleIndex > 0 ? moduleIndex : -1;
-
-                    //Try to avoid extra work if the other files do not need to
-                    //be read. Build layers should be processed at the very
-                    //least for optimization.
-                    if (moduleIndex > -1 || !config.skipDirOptimize ||
-                            config.normalizeDirDefines === "all" ||
-                            config.cjsTranslate) {
-                        //Convert the file to transport format, but without a name
-                        //inserted (by passing null for moduleName) since the files are
-                        //standalone, one module per file.
-                        fileContents = file.readFile(fileName);
-
-
-                        //For builds, if wanting cjs translation, do it now, so that
-                        //the individual modules can be loaded cross domain via
-                        //plain script tags.
-                        if (config.cjsTranslate &&
-                            (!config.shim || !lang.hasProp(config.shim, moduleName))) {
-                            fileContents = commonJs.convert(fileName, fileContents);
-                        }
-
-                        if (moduleIndex === -1) {
-                            if (config.onBuildRead) {
-                                fileContents = config.onBuildRead(moduleName,
-                                                                  fileName,
-                                                                  fileContents);
-                            }
-
-                            //Only do transport normalization if this is not a build
-                            //layer (since it was already normalized) and if
-                            //normalizeDirDefines indicated all should be done.
-                            if (config.normalizeDirDefines === "all") {
-                                fileContents = build.toTransport(config.namespace,
-                                                             null,
-                                                             fileName,
-                                                             fileContents);
-                            }
-
-                            if (config.onBuildWrite) {
-                                fileContents = config.onBuildWrite(moduleName,
-                                                                   fileName,
-                                                                   fileContents);
-                            }
-                        }
-
-                        override = moduleIndex > -1 ?
-                                   config.modules[moduleIndex].override : null;
-                        if (override) {
-                            cfg = build.createOverrideConfig(config, override);
-                        } else {
-                            cfg = config;
-                        }
-
-                        if (moduleIndex > -1 || !config.skipDirOptimize) {
-                            optimize.jsFile(fileName, fileContents, fileName, cfg, pluginCollector);
-                        }
-                    }
-                });
-
-                //Normalize all the plugin resources.
-                context = require.s.contexts._;
-
-                for (moduleName in pluginCollector) {
-                    if (hasProp(pluginCollector, moduleName)) {
-                        parentModuleMap = context.makeModuleMap(moduleName);
-                        resources = pluginCollector[moduleName];
-                        for (i = 0; i < resources.length; i++) {
-                            resource = resources[i];
-                            moduleMap = context.makeModuleMap(resource, parentModuleMap);
-                            if (falseProp(context.plugins, moduleMap.prefix)) {
-                                //Set the value in context.plugins so it
-                                //will be evaluated as a full plugin.
-                                context.plugins[moduleMap.prefix] = true;
-
-                                //Do not bother if the plugin is not available.
-                                if (!file.exists(require.toUrl(moduleMap.prefix + '.js'))) {
-                                    continue;
-                                }
-
-                                //Rely on the require in the build environment
-                                //to be synchronous
-                                context.require([moduleMap.prefix]);
-
-                                //Now that the plugin is loaded, redo the moduleMap
-                                //since the plugin will need to normalize part of the path.
-                                moduleMap = context.makeModuleMap(resource, parentModuleMap);
-                            }
-
-                            //Only bother with plugin resources that can be handled
-                            //processed by the plugin, via support of the writeFile
-                            //method.
-                            if (falseProp(pluginProcessed, moduleMap.id)) {
-                                //Only do the work if the plugin was really loaded.
-                                //Using an internal access because the file may
-                                //not really be loaded.
-                                plugin = getOwn(context.defined, moduleMap.prefix);
-                                if (plugin && plugin.writeFile) {
-                                    plugin.writeFile(
-                                        moduleMap.prefix,
-                                        moduleMap.name,
-                                        require,
-                                        makeWriteFile(
-                                            config.namespace
-                                        ),
-                                        context.config
-                                    );
-                                }
-
-                                pluginProcessed[moduleMap.id] = true;
-                            }
-                        }
-
-                    }
-                }
-
-                //console.log('PLUGIN COLLECTOR: ' + JSON.stringify(pluginCollector, null, "  "));
-
-
-                //All module layers are done, write out the build.txt file.
-                file.saveUtf8File(config.dir + "build.txt", buildFileContents);
-            }
-
-            //If just have one CSS file to optimize, do that here.
-            if (config.cssIn) {
-                buildFileContents += optimize.cssFile(config.cssIn, config.out, config).buildText;
-            }
-
-            if (typeof config.out === 'function') {
-                config.out(config.modules[0]._buildText, config.modules[0]._buildSourceMap);
-            }
-
-            //Print out what was built into which layers.
-            if (buildFileContents) {
-                logger.info(buildFileContents);
-                return buildFileContents;
-            }
-
-            return '';
-        });
-    };
-
-    /**
-     * Converts command line args like "paths.foo=../some/path"
-     * result.paths = { foo: '../some/path' } where prop = paths,
-     * name = paths.foo and value = ../some/path, so it assumes the
-     * name=value splitting has already happened.
-     */
-    function stringDotToObj(result, name, value) {
-        var parts = name.split('.');
-
-        parts.forEach(function (prop, i) {
-            if (i === parts.length - 1) {
-                result[prop] = value;
-            } else {
-                if (falseProp(result, prop)) {
-                    result[prop] = {};
-                }
-                result = result[prop];
-            }
-
-        });
-    }
-
-    build.objProps = {
-        paths: true,
-        wrap: true,
-        pragmas: true,
-        pragmasOnSave: true,
-        has: true,
-        hasOnSave: true,
-        uglify: true,
-        uglify2: true,
-        closure: true,
-        map: true,
-        throwWhen: true
-    };
-
-    build.hasDotPropMatch = function (prop) {
-        var dotProp,
-            index = prop.indexOf('.');
-
-        if (index !== -1) {
-            dotProp = prop.substring(0, index);
-            return hasProp(build.objProps, dotProp);
-        }
-        return false;
-    };
-
-    /**
-     * Converts an array that has String members of "name=value"
-     * into an object, where the properties on the object are the names in the array.
-     * Also converts the strings "true" and "false" to booleans for the values.
-     * member name/value pairs, and converts some comma-separated lists into
-     * arrays.
-     * @param {Array} ary
-     */
-    build.convertArrayToObject = function (ary) {
-        var result = {}, i, separatorIndex, prop, value,
-            needArray = {
-                "include": true,
-                "exclude": true,
-                "excludeShallow": true,
-                "insertRequire": true,
-                "stubModules": true,
-                "deps": true
-            };
-
-        for (i = 0; i < ary.length; i++) {
-            separatorIndex = ary[i].indexOf("=");
-            if (separatorIndex === -1) {
-                throw "Malformed name/value pair: [" + ary[i] + "]. Format should be name=value";
-            }
-
-            value = ary[i].substring(separatorIndex + 1, ary[i].length);
-            if (value === "true") {
-                value = true;
-            } else if (value === "false") {
-                value = false;
-            }
-
-            prop = ary[i].substring(0, separatorIndex);
-
-            //Convert to array if necessary
-            if (getOwn(needArray, prop)) {
-                value = value.split(",");
-            }
-
-            if (build.hasDotPropMatch(prop)) {
-                stringDotToObj(result, prop, value);
-            } else {
-                result[prop] = value;
-            }
-        }
-        return result; //Object
-    };
-
-    build.makeAbsPath = function (path, absFilePath) {
-        if (!absFilePath) {
-            return path;
-        }
-
-        //Add abspath if necessary. If path starts with a slash or has a colon,
-        //then already is an abolute path.
-        if (path.indexOf('/') !== 0 && path.indexOf(':') === -1) {
-            path = absFilePath +
-                   (absFilePath.charAt(absFilePath.length - 1) === '/' ? '' : '/') +
-                   path;
-            path = file.normalize(path);
-        }
-        return path.replace(lang.backSlashRegExp, '/');
-    };
-
-    build.makeAbsObject = function (props, obj, absFilePath) {
-        var i, prop;
-        if (obj) {
-            for (i = 0; i < props.length; i++) {
-                prop = props[i];
-                if (hasProp(obj, prop) && typeof obj[prop] === 'string') {
-                    obj[prop] = build.makeAbsPath(obj[prop], absFilePath);
-                }
-            }
-        }
-    };
-
-    /**
-     * For any path in a possible config, make it absolute relative
-     * to the absFilePath passed in.
-     */
-    build.makeAbsConfig = function (config, absFilePath) {
-        var props, prop, i;
-
-        props = ["appDir", "dir", "baseUrl"];
-        for (i = 0; i < props.length; i++) {
-            prop = props[i];
-
-            if (getOwn(config, prop)) {
-                //Add abspath if necessary, make sure these paths end in
-                //slashes
-                if (prop === "baseUrl") {
-                    config.originalBaseUrl = config.baseUrl;
-                    if (config.appDir) {
-                        //If baseUrl with an appDir, the baseUrl is relative to
-                        //the appDir, *not* the absFilePath. appDir and dir are
-                        //made absolute before baseUrl, so this will work.
-                        config.baseUrl = build.makeAbsPath(config.originalBaseUrl, config.appDir);
-                    } else {
-                        //The dir output baseUrl is same as regular baseUrl, both
-                        //relative to the absFilePath.
-                        config.baseUrl = build.makeAbsPath(config[prop], absFilePath);
-                    }
-                } else {
-                    config[prop] = build.makeAbsPath(config[prop], absFilePath);
-                }
-
-                config[prop] = endsWithSlash(config[prop]);
-            }
-        }
-
-        build.makeAbsObject(["out", "cssIn"], config, absFilePath);
-        build.makeAbsObject(["startFile", "endFile"], config.wrap, absFilePath);
-    };
-
-    /**
-     * Creates a relative path to targetPath from refPath.
-     * Only deals with file paths, not folders. If folders,
-     * make sure paths end in a trailing '/'.
-     */
-    build.makeRelativeFilePath = function (refPath, targetPath) {
-        var i, dotLength, finalParts, length, targetParts, targetName,
-            refParts = refPath.split('/'),
-            hasEndSlash = endsWithSlashRegExp.test(targetPath),
-            dotParts = [];
-
-        targetPath = file.normalize(targetPath);
-        if (hasEndSlash && !endsWithSlashRegExp.test(targetPath)) {
-            targetPath += '/';
-        }
-        targetParts = targetPath.split('/');
-        //Pull off file name
-        targetName = targetParts.pop();
-
-        //Also pop off the ref file name to make the matches against
-        //targetParts equivalent.
-        refParts.pop();
-
-        length = refParts.length;
-
-        for (i = 0; i < length; i += 1) {
-            if (refParts[i] !== targetParts[i]) {
-                break;
-            }
-        }
-
-        //Now i is the index in which they diverge.
-        finalParts = targetParts.slice(i);
-
-        dotLength = length - i;
-        for (i = 0; i > -1 && i < dotLength; i += 1) {
-            dotParts.push('..');
-        }
-
-        return dotParts.join('/') + (dotParts.length ? '/' : '') +
-               finalParts.join('/') + (finalParts.length ? '/' : '') +
-               targetName;
-    };
-
-    build.nestedMix = {
-        paths: true,
-        has: true,
-        hasOnSave: true,
-        pragmas: true,
-        pragmasOnSave: true
-    };
-
-    /**
-     * Mixes additional source config into target config, and merges some
-     * nested config, like paths, correctly.
-     */
-    function mixConfig(target, source, skipArrays) {
-        var prop, value, isArray, targetValue;
-
-        for (prop in source) {
-            if (hasProp(source, prop)) {
-                //If the value of the property is a plain object, then
-                //allow a one-level-deep mixing of it.
-                value = source[prop];
-                isArray = lang.isArray(value);
-                if (typeof value === 'object' && value &&
-                        !isArray && !lang.isFunction(value) &&
-                        !lang.isRegExp(value)) {
-                    target[prop] = lang.mixin({}, target[prop], value, true);
-                } else if (isArray) {
-                    if (!skipArrays) {
-                        // Some config, like packages, are arrays. For those,
-                        // just merge the results.
-                        targetValue = target[prop];
-                        if (lang.isArray(targetValue)) {
-                            target[prop] = targetValue.concat(value);
-                        } else {
-                            target[prop] = value;
-                        }
-                    }
-                } else {
-                    target[prop] = value;
-                }
-            }
-        }
-
-        //Set up log level since it can affect if errors are thrown
-        //or caught and passed to errbacks while doing config setup.
-        if (lang.hasProp(target, 'logLevel')) {
-            logger.logLevel(target.logLevel);
-        }
-    }
-
-    /**
-     * Converts a wrap.startFile or endFile to be start/end as a string.
-     * the startFile/endFile values can be arrays.
-     */
-    function flattenWrapFile(wrap, keyName, absFilePath) {
-        var keyFileName = keyName + 'File';
-
-        if (typeof wrap[keyName] !== 'string' && wrap[keyFileName]) {
-            wrap[keyName] = '';
-            if (typeof wrap[keyFileName] === 'string') {
-                wrap[keyFileName] = [wrap[keyFileName]];
-            }
-            wrap[keyFileName].forEach(function (fileName) {
-                wrap[keyName] += (wrap[keyName] ? '\n' : '') +
-                    file.readFile(build.makeAbsPath(fileName, absFilePath));
-            });
-        } else if (wrap[keyName] === null ||  wrap[keyName] === undefined) {
-            //Allow missing one, just set to empty string.
-            wrap[keyName] = '';
-        } else if (typeof wrap[keyName] !== 'string') {
-            throw new Error('wrap.' + keyName + ' or wrap.' + keyFileName + ' malformed');
-        }
-    }
-
-    function normalizeWrapConfig(config, absFilePath) {
-        //Get any wrap text.
-        try {
-            if (config.wrap) {
-                if (config.wrap === true) {
-                    //Use default values.
-                    config.wrap = {
-                        start: '(function () {',
-                        end: '}());'
-                    };
-                } else {
-                    flattenWrapFile(config.wrap, 'start', absFilePath);
-                    flattenWrapFile(config.wrap, 'end', absFilePath);
-                }
-            }
-        } catch (wrapError) {
-            throw new Error('Malformed wrap config: ' + wrapError.toString());
-        }
-    }
-
-    /**
-     * Creates a config object for an optimization build.
-     * It will also read the build profile if it is available, to create
-     * the configuration.
-     *
-     * @param {Object} cfg config options that take priority
-     * over defaults and ones in the build file. These options could
-     * be from a command line, for instance.
-     *
-     * @param {Object} the created config object.
-     */
-    build.createConfig = function (cfg) {
-        /*jslint evil: true */
-        var buildFileContents, buildFileConfig, mainConfig,
-            mainConfigFile, mainConfigPath, buildFile, absFilePath,
-            config = {},
-            buildBaseConfig = makeBuildBaseConfig();
-
-        //Make sure all paths are relative to current directory.
-        absFilePath = file.absPath('.');
-        build.makeAbsConfig(cfg, absFilePath);
-        build.makeAbsConfig(buildBaseConfig, absFilePath);
-
-        lang.mixin(config, buildBaseConfig);
-        lang.mixin(config, cfg, true);
-
-        //Set up log level early since it can affect if errors are thrown
-        //or caught and passed to errbacks, even while constructing config.
-        if (lang.hasProp(config, 'logLevel')) {
-            logger.logLevel(config.logLevel);
-        }
-
-        if (config.buildFile) {
-            //A build file exists, load it to get more config.
-            buildFile = file.absPath(config.buildFile);
-
-            //Find the build file, and make sure it exists, if this is a build
-            //that has a build profile, and not just command line args with an in=path
-            if (!file.exists(buildFile)) {
-                throw new Error("ERROR: build file does not exist: " + buildFile);
-            }
-
-            absFilePath = config.baseUrl = file.absPath(file.parent(buildFile));
-
-            //Load build file options.
-            buildFileContents = file.readFile(buildFile);
-            try {
-                buildFileConfig = eval("(" + buildFileContents + ")");
-                build.makeAbsConfig(buildFileConfig, absFilePath);
-
-                //Mix in the config now so that items in mainConfigFile can
-                //be resolved relative to them if necessary, like if appDir
-                //is set here, but the baseUrl is in mainConfigFile. Will
-                //re-mix in the same build config later after mainConfigFile
-                //is processed, since build config should take priority.
-                mixConfig(config, buildFileConfig);
-            } catch (e) {
-                throw new Error("Build file " + buildFile + " is malformed: " + e);
-            }
-        }
-
-        mainConfigFile = config.mainConfigFile || (buildFileConfig && buildFileConfig.mainConfigFile);
-        if (mainConfigFile) {
-            if (typeof mainConfigFile === 'string') {
-                mainConfigFile = [mainConfigFile];
-            }
-
-            mainConfigFile.forEach(function (configFile) {
-                configFile = build.makeAbsPath(configFile, absFilePath);
-                if (!file.exists(configFile)) {
-                    throw new Error(configFile + ' does not exist.');
-                }
-                try {
-                    mainConfig = parse.findConfig(file.readFile(configFile)).config;
-                } catch (configError) {
-                    throw new Error('The config in mainConfigFile ' +
-                            configFile +
-                            ' cannot be used because it cannot be evaluated' +
-                            ' correctly while running in the optimizer. Try only' +
-                            ' using a config that is also valid JSON, or do not use' +
-                            ' mainConfigFile and instead copy the config values needed' +
-                            ' into a build file or command line arguments given to the optimizer.\n' +
-                            'Source error from parsing: ' + configFile + ': ' + configError);
-                }
-                if (mainConfig) {
-                    mainConfigPath = configFile.substring(0, configFile.lastIndexOf('/'));
-
-                    //Add in some existing config, like appDir, since they can be
-                    //used inside the configFile -- paths and baseUrl are
-                    //relative to them.
-                    if (config.appDir && !mainConfig.appDir) {
-                        mainConfig.appDir = config.appDir;
-                    }
-
-                    //If no baseUrl, then use the directory holding the main config.
-                    if (!mainConfig.baseUrl) {
-                        mainConfig.baseUrl = mainConfigPath;
-                    }
-
-                    build.makeAbsConfig(mainConfig, mainConfigPath);
-                    mixConfig(config, mainConfig);
-                }
-            });
-        }
-
-        //Mix in build file config, but only after mainConfig has been mixed in.
-        //Since this is a re-application, skip array merging.
-        if (buildFileConfig) {
-            mixConfig(config, buildFileConfig, true);
-        }
-
-        //Re-apply the override config values. Command line
-        //args should take precedence over build file values.
-        //Since this is a re-application, skip array merging.
-        mixConfig(config, cfg, true);
-
-        //Fix paths to full paths so that they can be adjusted consistently
-        //lately to be in the output area.
-        lang.eachProp(config.paths, function (value, prop) {
-            if (lang.isArray(value)) {
-                throw new Error('paths fallback not supported in optimizer. ' +
-                                'Please provide a build config path override ' +
-                                'for ' + prop);
-            }
-            config.paths[prop] = build.makeAbsPath(value, config.baseUrl);
-        });
-
-        //Set final output dir
-        if (hasProp(config, "baseUrl")) {
-            if (config.appDir) {
-                if (!config.originalBaseUrl) {
-                    throw new Error('Please set a baseUrl in the build config');
-                }
-                config.dirBaseUrl = build.makeAbsPath(config.originalBaseUrl, config.dir);
-            } else {
-                config.dirBaseUrl = config.dir || config.baseUrl;
-            }
-            //Make sure dirBaseUrl ends in a slash, since it is
-            //concatenated with other strings.
-            config.dirBaseUrl = endsWithSlash(config.dirBaseUrl);
-        }
-
-        //Check for errors in config
-        if (config.main) {
-            throw new Error('"main" passed as an option, but the ' +
-                            'supported option is called "name".');
-        }
-        if (config.out && !config.name && !config.modules && !config.include &&
-                !config.cssIn) {
-            throw new Error('Missing either a "name", "include" or "modules" ' +
-                            'option');
-        }
-        if (config.cssIn) {
-            if (config.dir || config.appDir) {
-                throw new Error('cssIn is only for the output of single file ' +
-                    'CSS optimizations and is not compatible with "dir" or "appDir" configuration.');
-            }
-            if (!config.out) {
-                throw new Error('"out" option missing.');
-            }
-        }
-        if (!config.cssIn && !config.baseUrl) {
-            //Just use the current directory as the baseUrl
-            config.baseUrl = './';
-        }
-        if (!config.out && !config.dir) {
-            throw new Error('Missing either an "out" or "dir" config value. ' +
-                            'If using "appDir" for a full project optimization, ' +
-                            'use "dir". If you want to optimize to one file, ' +
-                            'use "out".');
-        }
-        if (config.appDir && config.out) {
-            throw new Error('"appDir" is not compatible with "out". Use "dir" ' +
-                            'instead. appDir is used to copy whole projects, ' +
-                            'where "out" with "baseUrl" is used to just ' +
-                            'optimize to one file.');
-        }
-        if (config.out && config.dir) {
-            throw new Error('The "out" and "dir" options are incompatible.' +
-                            ' Use "out" if you are targeting a single file for' +
-                            ' for optimization, and "dir" if you want the appDir' +
-                            ' or baseUrl directories optimized.');
-        }
-
-        if (config.dir) {
-            // Make sure the output dir is not set to a parent of the
-            // source dir or the same dir, as it will result in source
-            // code deletion.
-            if (!config.allowSourceOverwrites && (config.dir === config.baseUrl ||
-                config.dir === config.appDir ||
-                (config.baseUrl && build.makeRelativeFilePath(config.dir,
-                                           config.baseUrl).indexOf('..') !== 0) ||
-                (config.appDir &&
-                    build.makeRelativeFilePath(config.dir, config.appDir).indexOf('..') !== 0))) {
-                throw new Error('"dir" is set to a parent or same directory as' +
-                                ' "appDir" or "baseUrl". This can result in' +
-                                ' the deletion of source code. Stopping. If' +
-                                ' you want to allow possible overwriting of' +
-                                ' source code, set "allowSourceOverwrites"' +
-                                ' to true in the build config, but do so at' +
-                                ' your own risk. In that case, you may want' +
-                                ' to also set "keepBuildDir" to true.');
-            }
-        }
-
-        if (config.insertRequire && !lang.isArray(config.insertRequire)) {
-            throw new Error('insertRequire should be a list of module IDs' +
-                            ' to insert in to a require([]) call.');
-        }
-
-        if (config.generateSourceMaps) {
-            if (config.preserveLicenseComments && config.optimize !== 'none') {
-                throw new Error('Cannot use preserveLicenseComments and ' +
-                    'generateSourceMaps together. Either explcitly set ' +
-                    'preserveLicenseComments to false (default is true) or ' +
-                    'turn off generateSourceMaps. If you want source maps with ' +
-                    'license comments, see: ' +
-                    'http://requirejs.org/docs/errors.html#sourcemapcomments');
-            } else if (config.optimize !== 'none' &&
-                       config.optimize !== 'closure' &&
-                       config.optimize !== 'uglify2') {
-                //Allow optimize: none to pass, since it is useful when toggling
-                //minification on and off to debug something, and it implicitly
-                //works, since it does not need a source map.
-                throw new Error('optimize: "' + config.optimize +
-                    '" does not support generateSourceMaps.');
-            }
-        }
-
-        if ((config.name || config.include) && !config.modules) {
-            //Just need to build one file, but may be part of a whole appDir/
-            //baseUrl copy, but specified on the command line, so cannot do
-            //the modules array setup. So create a modules section in that
-            //case.
-            config.modules = [
-                {
-                    name: config.name,
-                    out: config.out,
-                    create: config.create,
-                    include: config.include,
-                    exclude: config.exclude,
-                    excludeShallow: config.excludeShallow,
-                    insertRequire: config.insertRequire,
-                    stubModules: config.stubModules
-                }
-            ];
-            delete config.stubModules;
-        } else if (config.modules && config.out) {
-            throw new Error('If the "modules" option is used, then there ' +
-                            'should be a "dir" option set and "out" should ' +
-                            'not be used since "out" is only for single file ' +
-                            'optimization output.');
-        } else if (config.modules && config.name) {
-            throw new Error('"name" and "modules" options are incompatible. ' +
-                            'Either use "name" if doing a single file ' +
-                            'optimization, or "modules" if you want to target ' +
-                            'more than one file for optimization.');
-        }
-
-        if (config.out && !config.cssIn) {
-            //Just one file to optimize.
-
-            //Does not have a build file, so set up some defaults.
-            //Optimizing CSS should not be allowed, unless explicitly
-            //asked for on command line. In that case the only task is
-            //to optimize a CSS file.
-            if (!cfg.optimizeCss) {
-                config.optimizeCss = "none";
-            }
-        }
-
-        //Normalize cssPrefix
-        if (config.cssPrefix) {
-            //Make sure cssPrefix ends in a slash
-            config.cssPrefix = endsWithSlash(config.cssPrefix);
-        } else {
-            config.cssPrefix = '';
-        }
-
-        //Cycle through modules and combine any local stubModules with
-        //global values.
-        if (config.modules && config.modules.length) {
-            config.modules.forEach(function (mod) {
-                if (config.stubModules) {
-                    mod.stubModules = config.stubModules.concat(mod.stubModules || []);
-                }
-
-                //Create a hash lookup for the stubModules config to make lookup
-                //cheaper later.
-                if (mod.stubModules) {
-                    mod.stubModules._byName = {};
-                    mod.stubModules.forEach(function (id) {
-                        mod.stubModules._byName[id] = true;
-                    });
-                }
-
-                //Allow wrap config in overrides, but normalize it.
-                if (mod.override) {
-                    normalizeWrapConfig(mod.override, absFilePath);
-                }
-            });
-        }
-
-        normalizeWrapConfig(config, absFilePath);
-
-        //Do final input verification
-        if (config.context) {
-            throw new Error('The build argument "context" is not supported' +
-                            ' in a build. It should only be used in web' +
-                            ' pages.');
-        }
-
-        //Set up normalizeDirDefines. If not explicitly set, if optimize "none",
-        //set to "skip" otherwise set to "all".
-        if (!hasProp(config, 'normalizeDirDefines')) {
-            if (config.optimize === 'none' || config.skipDirOptimize) {
-                config.normalizeDirDefines = 'skip';
-            } else {
-                config.normalizeDirDefines = 'all';
-            }
-        }
-
-        //Set file.fileExclusionRegExp if desired
-        if (hasProp(config, 'fileExclusionRegExp')) {
-            if (typeof config.fileExclusionRegExp === "string") {
-                file.exclusionRegExp = new RegExp(config.fileExclusionRegExp);
-            } else {
-                file.exclusionRegExp = config.fileExclusionRegExp;
-            }
-        } else if (hasProp(config, 'dirExclusionRegExp')) {
-            //Set file.dirExclusionRegExp if desired, this is the old
-            //name for fileExclusionRegExp before 1.0.2. Support for backwards
-            //compatibility
-            file.exclusionRegExp = config.dirExclusionRegExp;
-        }
-
-        //Remove things that may cause problems in the build.
-        delete config.jQuery;
-        delete config.enforceDefine;
-        delete config.urlArgs;
-
-        return config;
-    };
-
-    /**
-     * finds the module being built/optimized with the given moduleName,
-     * or returns null.
-     * @param {String} moduleName
-     * @param {Array} modules
-     * @returns {Object} the module object from the build profile, or null.
-     */
-    build.findBuildModule = function (moduleName, modules) {
-        var i, module;
-        for (i = 0; i < modules.length; i++) {
-            module = modules[i];
-            if (module.name === moduleName) {
-                return module;
-            }
-        }
-        return null;
-    };
-
-    /**
-     * Removes a module name and path from a layer, if it is supposed to be
-     * excluded from the layer.
-     * @param {String} moduleName the name of the module
-     * @param {String} path the file path for the module
-     * @param {Object} layer the layer to remove the module/path from
-     */
-    build.removeModulePath = function (module, path, layer) {
-        var index = layer.buildFilePaths.indexOf(path);
-        if (index !== -1) {
-            layer.buildFilePaths.splice(index, 1);
-        }
-    };
-
-    /**
-     * Uses the module build config object to trace the dependencies for the
-     * given module.
-     *
-     * @param {Object} module the module object from the build config info.
-     * @param {Object} config the build config object.
-     * @param {Object} [baseLoaderConfig] the base loader config to use for env resets.
-     *
-     * @returns {Object} layer information about what paths and modules should
-     * be in the flattened module.
-     */
-    build.traceDependencies = function (module, config, baseLoaderConfig) {
-        var include, override, layer, context, oldContext,
-            rawTextByIds,
-            syncChecks = {
-                rhino: true,
-                node: true,
-                xpconnect: true
-            },
-            deferred = prim();
-
-        //Reset some state set up in requirePatch.js, and clean up require's
-        //current context.
-        oldContext = require._buildReset();
-
-        //Grab the reset layer and context after the reset, but keep the
-        //old config to reuse in the new context.
-        layer = require._layer;
-        context = layer.context;
-
-        //Put back basic config, use a fresh object for it.
-        if (baseLoaderConfig) {
-            require(lang.deeplikeCopy(baseLoaderConfig));
-        }
-
-        logger.trace("\nTracing dependencies for: " + (module.name ||
-                     (typeof module.out === 'function' ? 'FUNCTION' : module.out)));
-        include = module.name && !module.create ? [module.name] : [];
-        if (module.include) {
-            include = include.concat(module.include);
-        }
-
-        //If there are overrides to basic config, set that up now.;
-        if (module.override) {
-            if (baseLoaderConfig) {
-                override = build.createOverrideConfig(baseLoaderConfig, module.override);
-            } else {
-                override = lang.deeplikeCopy(module.override);
-            }
-            require(override);
-        }
-
-        //Now, populate the rawText cache with any values explicitly passed in
-        //via config.
-        rawTextByIds = require.s.contexts._.config.rawText;
-        if (rawTextByIds) {
-            lang.eachProp(rawTextByIds, function (contents, id) {
-                var url = require.toUrl(id) + '.js';
-                require._cachedRawText[url] = contents;
-            });
-        }
-
-
-        //Configure the callbacks to be called.
-        deferred.reject.__requireJsBuild = true;
-
-        //Use a wrapping function so can check for errors.
-        function includeFinished(value) {
-            //If a sync build environment, check for errors here, instead of
-            //in the then callback below, since some errors, like two IDs pointed
-            //to same URL but only one anon ID will leave the loader in an
-            //unresolved state since a setTimeout cannot be used to check for
-            //timeout.
-            var hasError = false;
-            if (syncChecks[env.get()]) {
-                try {
-                    build.checkForErrors(context);
-                } catch (e) {
-                    hasError = true;
-                    deferred.reject(e);
-                }
-            }
-
-            if (!hasError) {
-                deferred.resolve(value);
-            }
-        }
-        includeFinished.__requireJsBuild = true;
-
-        //Figure out module layer dependencies by calling require to do the work.
-        require(include, includeFinished, deferred.reject);
-
-        // If a sync env, then with the "two IDs to same anon module path"
-        // issue, the require never completes, need to check for errors
-        // here.
-        if (syncChecks[env.get()]) {
-            build.checkForErrors(context);
-        }
-
-        return deferred.promise.then(function () {
-            //Reset config
-            if (module.override && baseLoaderConfig) {
-                require(lang.deeplikeCopy(baseLoaderConfig));
-            }
-
-            build.checkForErrors(context);
-
-            return layer;
-        });
-    };
-
-    build.checkForErrors = function (context) {
-        //Check to see if it all loaded. If not, then throw, and give
-        //a message on what is left.
-        var id, prop, mod, idParts, pluginId, pluginResources,
-            errMessage = '',
-            failedPluginMap = {},
-            failedPluginIds = [],
-            errIds = [],
-            errUrlMap = {},
-            errUrlConflicts = {},
-            hasErrUrl = false,
-            hasUndefined = false,
-            defined = context.defined,
-            registry = context.registry;
-
-        function populateErrUrlMap(id, errUrl, skipNew) {
-            // Loader plugins do not have an errUrl, so skip them.
-            if (!errUrl) {
-                return;
-            }
-
-            if (!skipNew) {
-                errIds.push(id);
-            }
-
-            if (errUrlMap[errUrl]) {
-                hasErrUrl = true;
-                //This error module has the same URL as another
-                //error module, could be misconfiguration.
-                if (!errUrlConflicts[errUrl]) {
-                    errUrlConflicts[errUrl] = [];
-                    //Store the original module that had the same URL.
-                    errUrlConflicts[errUrl].push(errUrlMap[errUrl]);
-                }
-                errUrlConflicts[errUrl].push(id);
-            } else if (!skipNew) {
-                errUrlMap[errUrl] = id;
-            }
-        }
-
-        for (id in registry) {
-            if (hasProp(registry, id) && id.indexOf('_@r') !== 0) {
-                hasUndefined = true;
-                mod = getOwn(registry, id);
-                idParts = id.split('!');
-                pluginId = idParts[0];
-
-                if (id.indexOf('_unnormalized') === -1 && mod && mod.enabled) {
-                    populateErrUrlMap(id, mod.map.url);
-                }
-
-                //Look for plugins that did not call load()
-
-                if (idParts.length > 1) {
-                    if (falseProp(failedPluginMap, pluginId)) {
-                        failedPluginIds.push(pluginId);
-                    }
-                    pluginResources = failedPluginMap[pluginId];
-                    if (!pluginResources) {
-                        pluginResources = failedPluginMap[pluginId] = [];
-                    }
-                    pluginResources.push(id + (mod.error ? ': ' + mod.error : ''));
-                }
-            }
-        }
-
-        // If have some modules that are not defined/stuck in the registry,
-        // then check defined modules for URL overlap.
-        if (hasUndefined) {
-            for (id in defined) {
-                if (hasProp(defined, id) && id.indexOf('!') === -1) {
-                    populateErrUrlMap(id, require.toUrl(id) + '.js', true);
-                }
-            }
-        }
-
-        if (errIds.length || failedPluginIds.length) {
-            if (failedPluginIds.length) {
-                errMessage += 'Loader plugin' +
-                    (failedPluginIds.length === 1 ? '' : 's') +
-                    ' did not call ' +
-                    'the load callback in the build:\n' +
-                    failedPluginIds.map(function (pluginId) {
-                        var pluginResources = failedPluginMap[pluginId];
-                        return pluginId + ':\n  ' + pluginResources.join('\n  ');
-                    }).join('\n') + '\n';
-            }
-            errMessage += 'Module loading did not complete for: ' + errIds.join(', ');
-
-            if (hasErrUrl) {
-                errMessage += '\nThe following modules share the same URL. This ' +
-                              'could be a misconfiguration if that URL only has ' +
-                              'one anonymous module in it:';
-                for (prop in errUrlConflicts) {
-                    if (hasProp(errUrlConflicts, prop)) {
-                        errMessage += '\n' + prop + ': ' +
-                                      errUrlConflicts[prop].join(', ');
-                    }
-                }
-            }
-            throw new Error(errMessage);
-        }
-    };
-
-    build.createOverrideConfig = function (config, override) {
-        var cfg = lang.deeplikeCopy(config),
-            oride = lang.deeplikeCopy(override);
-
-        lang.eachProp(oride, function (value, prop) {
-            if (hasProp(build.objProps, prop)) {
-                //An object property, merge keys. Start a new object
-                //so that source object in config does not get modified.
-                cfg[prop] = {};
-                lang.mixin(cfg[prop], config[prop], true);
-                lang.mixin(cfg[prop], override[prop], true);
-            } else {
-                cfg[prop] = override[prop];
-            }
-        });
-
-        return cfg;
-    };
-
-    /**
-     * Uses the module build config object to create an flattened version
-     * of the module, with deep dependencies included.
-     *
-     * @param {Object} module the module object from the build config info.
-     *
-     * @param {Object} layer the layer object returned from build.traceDependencies.
-     *
-     * @param {Object} the build config object.
-     *
-     * @returns {Object} with two properties: "text", the text of the flattened
-     * module, and "buildText", a string of text representing which files were
-     * included in the flattened module text.
-     */
-    build.flattenModule = function (module, layer, config) {
-        var fileContents, sourceMapGenerator,
-            sourceMapBase,
-            buildFileContents = '';
-
-        return prim().start(function () {
-            var reqIndex, currContents, fileForSourceMap,
-                moduleName, shim, packageMain, packageName,
-                parts, builder, writeApi,
-                namespace, namespaceWithDot, stubModulesByName,
-                context = layer.context,
-                onLayerEnds = [],
-                onLayerEndAdded = {};
-
-            //Use override settings, particularly for pragmas
-            //Do this before the var readings since it reads config values.
-            if (module.override) {
-                config = build.createOverrideConfig(config, module.override);
-            }
-
-            namespace = config.namespace || '';
-            namespaceWithDot = namespace ? namespace + '.' : '';
-            stubModulesByName = (module.stubModules && module.stubModules._byName) || {};
-
-            //Start build output for the module.
-            module.onCompleteData = {
-                name: module.name,
-                path: (config.dir ? module._buildPath.replace(config.dir, "") : module._buildPath),
-                included: []
-            };
-
-            buildFileContents += "\n" +
-                                  module.onCompleteData.path +
-                                 "\n----------------\n";
-
-            //If there was an existing file with require in it, hoist to the top.
-            if (layer.existingRequireUrl) {
-                reqIndex = layer.buildFilePaths.indexOf(layer.existingRequireUrl);
-                if (reqIndex !== -1) {
-                    layer.buildFilePaths.splice(reqIndex, 1);
-                    layer.buildFilePaths.unshift(layer.existingRequireUrl);
-                }
-            }
-
-            if (config.generateSourceMaps) {
-                sourceMapBase = config.dir || config.baseUrl;
-                fileForSourceMap = module._buildPath === 'FUNCTION' ?
-                                   (module.name || module.include[0] || 'FUNCTION') + '.build.js' :
-                                   module._buildPath.replace(sourceMapBase, '');
-                sourceMapGenerator = new SourceMapGenerator.SourceMapGenerator({
-                    file: fileForSourceMap
-                });
-            }
-
-            //Write the built module to disk, and build up the build output.
-            fileContents = "";
-            return prim.serial(layer.buildFilePaths.map(function (path) {
-                return function () {
-                    var lineCount,
-                        singleContents = '';
-
-                    moduleName = layer.buildFileToModule[path];
-                    packageName = moduleName.split('/').shift();
-
-                    //If the moduleName is for a package main, then update it to the
-                    //real main value.
-                    packageMain = layer.context.config.pkgs &&
-                                    getOwn(layer.context.config.pkgs, packageName);
-                    if (packageMain !== moduleName) {
-                        // Not a match, clear packageMain
-                        packageMain = undefined;
-                    }
-
-                    return prim().start(function () {
-                        //Figure out if the module is a result of a build plugin, and if so,
-                        //then delegate to that plugin.
-                        parts = context.makeModuleMap(moduleName);
-                        builder = parts.prefix && getOwn(context.defined, parts.prefix);
-                        if (builder) {
-                            if (builder.onLayerEnd && falseProp(onLayerEndAdded, parts.prefix)) {
-                                onLayerEnds.push(builder);
-                                onLayerEndAdded[parts.prefix] = true;
-                            }
-
-                            if (builder.write) {
-                                writeApi = function (input) {
-                                    singleContents += "\n" + addSemiColon(input, config);
-                                    if (config.onBuildWrite) {
-                                        singleContents = config.onBuildWrite(moduleName, path, singleContents);
-                                    }
-                                };
-                                writeApi.asModule = function (moduleName, input) {
-                                    singleContents += "\n" +
-                                        addSemiColon(build.toTransport(namespace, moduleName, path, input, layer, {
-                                            useSourceUrl: layer.context.config.useSourceUrl
-                                        }), config);
-                                    if (config.onBuildWrite) {
-                                        singleContents = config.onBuildWrite(moduleName, path, singleContents);
-                                    }
-                                };
-                                builder.write(parts.prefix, parts.name, writeApi);
-                            }
-                            return;
-                        } else {
-                            return prim().start(function () {
-                                if (hasProp(stubModulesByName, moduleName)) {
-                                    //Just want to insert a simple module definition instead
-                                    //of the source module. Useful for plugins that inline
-                                    //all their resources.
-                                    if (hasProp(layer.context.plugins, moduleName)) {
-                                        //Slightly different content for plugins, to indicate
-                                        //that dynamic loading will not work.
-                                        return 'define({load: function(id){throw new Error("Dynamic load not allowed: " + id);}});';
-                                    } else {
-                                        return 'define({});';
-                                    }
-                                } else {
-                                    return require._cacheReadAsync(path);
-                                }
-                            }).then(function (text) {
-                                var hasPackageName;
-
-                                currContents = text;
-
-                                if (config.cjsTranslate &&
-                                    (!config.shim || !lang.hasProp(config.shim, moduleName))) {
-                                    currContents = commonJs.convert(path, currContents);
-                                }
-
-                                if (config.onBuildRead) {
-                                    currContents = config.onBuildRead(moduleName, path, currContents);
-                                }
-
-                                if (packageMain) {
-                                    hasPackageName = (packageName === parse.getNamedDefine(currContents));
-                                }
-
-                                if (namespace) {
-                                    currContents = pragma.namespace(currContents, namespace);
-                                }
-
-                                currContents = build.toTransport(namespace, moduleName, path, currContents, layer, {
-                                    useSourceUrl: config.useSourceUrl
-                                });
-
-                                if (packageMain && !hasPackageName) {
-                                    currContents = addSemiColon(currContents, config) + '\n';
-                                    currContents += namespaceWithDot + "define('" +
-                                                    packageName + "', ['" + moduleName +
-                                                    "'], function (main) { return main; });\n";
-                                }
-
-                                if (config.onBuildWrite) {
-                                    currContents = config.onBuildWrite(moduleName, path, currContents);
-                                }
-
-                                //Semicolon is for files that are not well formed when
-                                //concatenated with other content.
-                                singleContents += addSemiColon(currContents, config);
-                            });
-                        }
-                    }).then(function () {
-                        var refPath, pluginId, resourcePath,
-                            sourceMapPath, sourceMapLineNumber,
-                            shortPath = path.replace(config.dir, "");
-
-                        module.onCompleteData.included.push(shortPath);
-                        buildFileContents += shortPath + "\n";
-
-                        //Some files may not have declared a require module, and if so,
-                        //put in a placeholder call so the require does not try to load them
-                        //after the module is processed.
-                        //If we have a name, but no defined module, then add in the placeholder.
-                        if (moduleName && falseProp(layer.modulesWithNames, moduleName) && !config.skipModuleInsertion) {
-                            shim = config.shim && (getOwn(config.shim, moduleName) || (packageMain && getOwn(config.shim, moduleName) || getOwn(config.shim, packageName)));
-                            if (shim) {
-                                if (config.wrapShim) {
-                                    singleContents = '(function(root) {' +
-                                                     '\n' + namespaceWithDot + 'define("' + moduleName + '", ' +
-                                                     (shim.deps && shim.deps.length ?
-                                                            build.makeJsArrayString(shim.deps) + ', ' : '[], ') +
-                                                    'function() {\n' +
-                                                    '      return (function() {\n' +
-                                                             singleContents +
-                                                             (shim.exportsFn ? shim.exportsFn() : '') +
-                                                    '      }).apply(root, arguments);\n' +
-                                                    '    });\n' +
-                                                    '}(this));\n';
-                                } else {
-                                    singleContents += '\n' + namespaceWithDot + 'define("' + moduleName + '", ' +
-                                                     (shim.deps && shim.deps.length ?
-                                                            build.makeJsArrayString(shim.deps) + ', ' : '') +
-                                                     (shim.exportsFn ? shim.exportsFn() : 'function(){}') +
-                                                     ');\n';
-                                }
-                            } else {
-                                singleContents += '\n' + namespaceWithDot + 'define("' + moduleName + '", function(){});\n';
-                            }
-                        }
-
-                        //Add line break at end of file, instead of at beginning,
-                        //so source map line numbers stay correct, but still allow
-                        //for some space separation between files in case ASI issues
-                        //for concatenation would cause an error otherwise.
-                        singleContents += '\n';
-
-                        //Add to the source map
-                        if (sourceMapGenerator) {
-                            refPath = config.out ? config.baseUrl : module._buildPath;
-                            parts = path.split('!');
-                            if (parts.length === 1) {
-                                //Not a plugin resource, fix the path
-                                sourceMapPath = build.makeRelativeFilePath(refPath, path);
-                            } else {
-                                //Plugin resource. If it looks like just a plugin
-                                //followed by a module ID, pull off the plugin
-                                //and put it at the end of the name, otherwise
-                                //just leave it alone.
-                                pluginId = parts.shift();
-                                resourcePath = parts.join('!');
-                                if (resourceIsModuleIdRegExp.test(resourcePath)) {
-                                    sourceMapPath = build.makeRelativeFilePath(refPath, require.toUrl(resourcePath)) +
-                                                    '!' + pluginId;
-                                } else {
-                                    sourceMapPath = path;
-                                }
-                            }
-
-                            sourceMapLineNumber = fileContents.split('\n').length - 1;
-                            lineCount = singleContents.split('\n').length;
-                            for (var i = 1; i <= lineCount; i += 1) {
-                                sourceMapGenerator.addMapping({
-                                    generated: {
-                                        line: sourceMapLineNumber + i,
-                                        column: 0
-                                    },
-                                    original: {
-                                        line: i,
-                                        column: 0
-                                    },
-                                    source: sourceMapPath
-                                });
-                            }
-
-                            //Store the content of the original in the source
-                            //map since other transforms later like minification
-                            //can mess up translating back to the original
-                            //source.
-                            sourceMapGenerator.setSourceContent(sourceMapPath, singleContents);
-                        }
-
-                        //Add the file to the final contents
-                        fileContents += singleContents;
-                    });
-                };
-            })).then(function () {
-                if (onLayerEnds.length) {
-                    onLayerEnds.forEach(function (builder) {
-                        var path;
-                        if (typeof module.out === 'string') {
-                            path = module.out;
-                        } else if (typeof module._buildPath === 'string') {
-                            path = module._buildPath;
-                        }
-                        builder.onLayerEnd(function (input) {
-                            fileContents += "\n" + addSemiColon(input, config);
-                        }, {
-                            name: module.name,
-                            path: path
-                        });
-                    });
-                }
-
-                if (module.create) {
-                    //The ID is for a created layer. Write out
-                    //a module definition for it in case the
-                    //built file is used with enforceDefine
-                    //(#432)
-                    fileContents += '\n' + namespaceWithDot + 'define("' + module.name + '", function(){});\n';
-                }
-
-                //Add a require at the end to kick start module execution, if that
-                //was desired. Usually this is only specified when using small shim
-                //loaders like almond.
-                if (module.insertRequire) {
-                    fileContents += '\n' + namespaceWithDot + 'require(["' + module.insertRequire.join('", "') + '"]);\n';
-                }
-            });
-        }).then(function () {
-            return {
-                text: config.wrap ?
-                        config.wrap.start + fileContents + config.wrap.end :
-                        fileContents,
-                buildText: buildFileContents,
-                sourceMap: sourceMapGenerator ?
-                              JSON.stringify(sourceMapGenerator.toJSON(), null, '  ') :
-                              undefined
-            };
-        });
-    };
-
-    //Converts an JS array of strings to a string representation.
-    //Not using JSON.stringify() for Rhino's sake.
-    build.makeJsArrayString = function (ary) {
-        return '["' + ary.map(function (item) {
-            //Escape any double quotes, backslashes
-            return lang.jsEscape(item);
-        }).join('","') + '"]';
-    };
-
-    build.toTransport = function (namespace, moduleName, path, contents, layer, options) {
-        var baseUrl = layer && layer.context.config.baseUrl;
-
-        function onFound(info) {
-            //Only mark this module as having a name if not a named module,
-            //or if a named module and the name matches expectations.
-            if (layer && (info.needsId || info.foundId === moduleName)) {
-                layer.modulesWithNames[moduleName] = true;
-            }
-        }
-
-        //Convert path to be a local one to the baseUrl, useful for
-        //useSourceUrl.
-        if (baseUrl) {
-            path = path.replace(baseUrl, '');
-        }
-
-        return transform.toTransport(namespace, moduleName, path, contents, onFound, options);
-    };
-
-    return build;
-});
-
-    }
-
-
-    /**
-     * Sets the default baseUrl for requirejs to be directory of top level
-     * script.
-     */
-    function setBaseUrl(fileName) {
-        //Use the file name's directory as the baseUrl if available.
-        dir = fileName.replace(/\\/g, '/');
-        if (dir.indexOf('/') !== -1) {
-            dir = dir.split('/');
-            dir.pop();
-            dir = dir.join('/');
-            //Make sure dir is JS-escaped, since it will be part of a JS string.
-            exec("require({baseUrl: '" + dir.replace(/[\\"']/g, '\\$&') + "'});");
-        }
-    }
-
-    function createRjsApi() {
-        //Create a method that will run the optimzer given an object
-        //config.
-        requirejs.optimize = function (config, callback, errback) {
-            if (!loadedOptimizedLib) {
-                loadLib();
-                loadedOptimizedLib = true;
-            }
-
-            //Create the function that will be called once build modules
-            //have been loaded.
-            var runBuild = function (build, logger, quit) {
-                //Make sure config has a log level, and if not,
-                //make it "silent" by default.
-                config.logLevel = config.hasOwnProperty('logLevel') ?
-                                  config.logLevel : logger.SILENT;
-
-                //Reset build internals first in case this is part
-                //of a long-running server process that could have
-                //exceptioned out in a bad state. It is only defined
-                //after the first call though.
-                if (requirejs._buildReset) {
-                    requirejs._buildReset();
-                    requirejs._cacheReset();
-                }
-
-                function done(result) {
-                    //And clean up, in case something else triggers
-                    //a build in another pathway.
-                    if (requirejs._buildReset) {
-                        requirejs._buildReset();
-                        requirejs._cacheReset();
-                    }
-
-                    // Ensure errors get propagated to the errback
-                    if (result instanceof Error) {
-                      throw result;
-                    }
-
-                    return result;
-                }
-
-                errback = errback || function (err) {
-                    // Using console here since logger may have
-                    // turned off error logging. Since quit is
-                    // called want to be sure a message is printed.
-                    console.log(err);
-                    quit(1);
-                };
-
-                build(config).then(done, done).then(callback, errback);
-            };
-
-            requirejs({
-                context: 'build'
-            }, ['build', 'logger', 'env!env/quit'], runBuild);
-        };
-
-        requirejs.tools = {
-            useLib: function (contextName, callback) {
-                if (!callback) {
-                    callback = contextName;
-                    contextName = 'uselib';
-                }
-
-                if (!useLibLoaded[contextName]) {
-                    loadLib();
-                    useLibLoaded[contextName] = true;
-                }
-
-                var req = requirejs({
-                    context: contextName
-                });
-
-                req(['build'], function () {
-                    callback(req);
-                });
-            }
-        };
-
-        requirejs.define = define;
-    }
-
-    //If in Node, and included via a require('requirejs'), just export and
-    //THROW IT ON THE GROUND!
-    if (env === 'node' && reqMain !== module) {
-        setBaseUrl(path.resolve(reqMain ? reqMain.filename : '.'));
-
-        createRjsApi();
-
-        module.exports = requirejs;
-        return;
-    } else if (env === 'browser') {
-        //Only option is to use the API.
-        setBaseUrl(location.href);
-        createRjsApi();
-        return;
-    } else if ((env === 'rhino' || env === 'xpconnect') &&
-            //User sets up requirejsAsLib variable to indicate it is loaded
-            //via load() to be used as a library.
-            typeof requirejsAsLib !== 'undefined' && requirejsAsLib) {
-        //This script is loaded via rhino's load() method, expose the
-        //API and get out.
-        setBaseUrl(fileName);
-        createRjsApi();
-        return;
-    }
-
-    if (commandOption === 'o') {
-        //Do the optimizer work.
-        loadLib();
-
-        /**
- * @license Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-
-/*
- * Create a build.js file that has the build options you want and pass that
- * build file to this file to do the build. See example.build.js for more information.
- */
-
-/*jslint strict: false, nomen: false */
-/*global require: false */
-
-require({
-    baseUrl: require.s.contexts._.config.baseUrl,
-    //Use a separate context than the default context so that the
-    //build can use the default context.
-    context: 'build',
-    catchError: {
-        define: true
-    }
-},       ['env!env/args', 'env!env/quit', 'logger', 'build'],
-function (args, quit, logger, build) {
-    build(args).then(function () {}, function (err) {
-        logger.error(err);
-        quit(1);
-    });
-});
-
-
-    } else if (commandOption === 'v') {
-        console.log('r.js: ' + version +
-                    ', RequireJS: ' + this.requirejsVars.require.version +
-                    ', UglifyJS2: 2.4.12, UglifyJS: 1.3.4');
-    } else if (commandOption === 'convert') {
-        loadLib();
-
-        this.requirejsVars.require(['env!env/args', 'commonJs', 'env!env/print'],
-            function (args, commonJs, print) {
-
-                var srcDir, outDir;
-                srcDir = args[0];
-                outDir = args[1];
-
-                if (!srcDir || !outDir) {
-                    print('Usage: path/to/commonjs/modules output/dir');
-                    return;
-                }
-
-                commonJs.convertDir(args[0], args[1]);
-            });
-    } else {
-        //Just run an app
-
-        //Load the bundled libraries for use in the app.
-        if (commandOption === 'lib') {
-            loadLib();
-        }
-
-        setBaseUrl(fileName);
-
-        if (exists(fileName)) {
-            exec(readFile(fileName), fileName);
-        } else {
-            showHelp();
-        }
-    }
-
-}((typeof console !== 'undefined' ? console : undefined),
-    (typeof Packages !== 'undefined' || (typeof window === 'undefined' &&
-        typeof Components !== 'undefined' && Components.interfaces) ?
-        Array.prototype.slice.call(arguments, 0) : []),
-    (typeof readFile !== 'undefined' ? readFile : undefined)));
Binary file sbin/res/rhino.jar has changed
--- a/server/pom.xml	Wed May 14 14:52:34 2014 +0200
+++ b/server/pom.xml	Fri May 16 09:23:11 2014 +0200
@@ -105,35 +105,29 @@
                     </overlays>
                     <webResources>
                         <resource>
-                            <directory>../client/js</directory>
+                            <directory>../client/dist/js</directory>
                             <includes>
-                                <include>i18n.js</include>
-                                <include>defaults.js</include>
-                                <include>full-json.js</include>
-                                <include>*-bin.js</include>
-                                <include>models.js</include>
-                                <include>paper-renderer.js</include>
-                                <include>main.js</include>
+                                <include>*.js</include>
                             </includes>
                             <targetPath>static/js</targetPath>
                         </resource>
                         <resource>
-                            <directory>../client/lib</directory>
+                            <directory>../client/dist/lib</directory>
                             <targetPath>static/lib</targetPath>
                         </resource>
                         <resource>
-                            <directory>../client/css</directory>
+                            <directory>../client/dist/css</directory>
                             <includes>
                                 <include>*.css</include>
                             </includes>
                             <targetPath>static/css</targetPath>
                         </resource>
                         <resource>
-                            <directory>../client/img</directory>
+                            <directory>../client/dist/img</directory>
                             <targetPath>static/img</targetPath>
                         </resource>
                         <resource>
-                            <directory>../client/data</directory>
+                            <directory>../client/dist/data</directory>
                             <includes>
                                 <include>properties.json</include>
                             </includes>
--- a/server/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/WEB-INF/templates/renkanProjectEdit.html	Fri May 16 09:23:11 2014 +0200
@@ -15,15 +15,14 @@
         <script src="lib/backbone.js" th:src="@{/static/lib/backbone.js}"></script>
         <script src="lib/backbone-relational.js" th:src="@{/static/lib/backbone-relational.js}"></script>
         <script src="lib/paper.js" th:src="@{/static/lib/paper.js}"></script>
-        <script src="js/main.js" th:src="@{/static/js/main.js}"></script>
-        <script src="js/defaults.js" th:src="@{/static/js/defaults.js}"></script>
-        <script src="js/i18n.js" th:src="@{/static/js/i18n.js}"></script>
-        <script src="js/models.js" th:src="@{/static/js/models.js}"></script>
-        <script src="js/wikipedia-bin.js" th:src="@{/static/js/wikipedia-bin.js}"></script>
-        <script src="js/ldtjson-bin.js" th:src="@{/static/js/ldtjson-bin.js}"></script>
-        <script src="js/list-bin.js" th:src="@{/static/js/list-bin.js}"></script>
-        <script src="js/paper-renderer.js" th:src="@{/static/js/paper-renderer.js}"></script>
-        <script type="text/javascript" src="js/config.js" th:src="@{/static/js/config.js}"></script>
+        <script type="text/javascript" th:inline="javascript">
+        /*<![CDATA[*/
+            var require = {
+                baseUrl: /*[[@{/static/js/}]]*/""
+            };
+        /*]]>*/
+        </script>
+        <script src="js/config.js" th:src="@{/static/js/config.js}"></script>
         <script type="text/javascript" th:inline="javascript">
             var cowebConfig = {
                 baseUrl: window.location.protocol + '//' + window.location.host,
@@ -34,7 +33,8 @@
         </script>
         <script type="text/javascript" src="lib/dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true" th:src="@{/static/lib/dojo/dojo.js}"></script>                
         <script type="text/javascript" th:inline="javascript">
-            $(function() {
+        /*<![CDATA[*/
+            function startRenkan() {
             	var renkan_config = {
                     static_url : /*[[@{/static/}]]*/ "",
                     read_only: true,
@@ -87,8 +87,10 @@
                     corenkan.app.onStatusChange = function(status) {
                     };
                 });
-            });
+            }
+        /*]]>*/
         </script>
+        <script src="js/renkan.js" th:src="@{/static/js/renkan.js}"></script>
         <link rel="stylesheet" href="css/renkan.css" th:href="@{/static/css/renkan.css}"/>
         <link rel="stylesheet" href="../../static/css/style.css" th:href="@{/static/css/style.css}"/>
         <link rel="stylesheet" href="../../static/css/renkanProject.css" th:href="@{/static/css/renkanProject.css}"/>
--- a/server/src/main/webapp/WEB-INF/templates/renkanProjectPublish.html	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/WEB-INF/templates/renkanProjectPublish.html	Fri May 16 09:23:11 2014 +0200
@@ -13,17 +13,19 @@
         <script src="lib/backbone.js" th:src="@{/static/lib/backbone.js}"></script>
         <script src="lib/backbone-relational.js" th:src="@{/static/lib/backbone-relational.js}"></script>
         <script src="lib/paper.js" th:src="@{/static/lib/paper.js}"></script>
-        <script src="js/main.js" th:src="@{/static/js/main.js}"></script>
-        <script src="js/defaults.js" th:src="@{/static/js/defaults.js}"></script>
-        <script src="js/i18n.js" th:src="@{/static/js/i18n.js}"></script>
-        <script src="js/models.js" th:src="@{/static/js/models.js}"></script>
-        <script src="js/full-json.js" th:src="@{/static/js/full-json.js}"></script>
-        <script src="js/paper-renderer.js" th:src="@{/static/js/paper-renderer.js}"></script>
         <script type="text/javascript" th:inline="javascript">
         /*<![CDATA[*/
-            var _renkan;
-            $(function() {
-                _renkan = new Rkns.Renkan({
+            var require = {
+                baseUrl: /*[[@{/static/js/}]]*/""
+            };
+        /*]]>*/
+        </script>
+        <script src="lib/require.js" th:src="@{/static/lib/require.js}"></script>
+        <script src="js/renkan.js" th:src="@{/static/js/renkan.js}"></script>
+        <script type="text/javascript" th:inline="javascript">
+        /*<![CDATA[*/
+            function startRenkan() {
+                var _renkan = new Rkns.Renkan({
                 	static_url:/*[[@{/static/}]]*/ "",
                 	editor_mode: false,
                 	show_bins: false,
@@ -35,8 +37,8 @@
                 Rkns.jsonIO(_renkan, {
                     url: /*[[@{/rest/projects/}+${project.id}]]*/ "../metadataplayer/json/renkan.json"
                 });
-            });
-        /*]]>*/    
+            }
+        /*]]>*/
         </script>
         <link rel="stylesheet" href="css/renkan.css" th:href="@{/static/css/renkan.css}"/>
         <link href="../../static/css/style.css" rel="stylesheet" th:href="@{/static/css/style.css}"/>
--- a/server/src/main/webapp/static/js/config.js	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/static/js/config.js	Fri May 16 09:23:11 2014 +0200
@@ -14,6 +14,7 @@
 	   corenkan: 'static/js/corenkan',
 	   rcolor: 'static/lib/rcolor',
 	   underscore: 'static/lib/underscore-min',
+	   jquery: 'static/lib/jquery.min',
 	},
 	packages:[{
 		name: 'dojo',
--- a/server/src/main/webapp/static/lib/dojo/_firebug/firebug.js	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/static/lib/dojo/_firebug/firebug.js	Fri May 16 09:23:11 2014 +0200
@@ -1,5 +1,5 @@
 /*
-	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
+	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
 	Available via Academic Free License >= 2.1 OR the modified BSD license.
 	see: http://dojotoolkit.org/license for details
 */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/src/main/webapp/static/lib/dojo/_firebug/firebug.js.uncompressed.js	Fri May 16 09:23:11 2014 +0200
@@ -0,0 +1,1191 @@
+define("dojo/_firebug/firebug", [
+	"../_base/kernel",
+	"require",
+	"../_base/html",
+	"../sniff",
+	"../_base/array",
+	"../_base/lang",
+	"../_base/event",
+	"../_base/unload"], function(dojo, require, html, has){
+
+	// module:
+	//		dojo/_firebug/firebug
+	// summary:
+	//		Firebug Lite, the baby brother to Joe Hewitt's Firebug for Mozilla Firefox
+	// description:
+	//		Opens a console for logging, debugging, and error messages.
+	//		Contains partial functionality to Firebug. See function list below.
+	//
+	//		NOTE:
+	//		Firebug is a Firefox extension created by Joe Hewitt (see license). You do not need Dojo to run Firebug.
+	//		Firebug Lite is included in Dojo by permission from Joe Hewitt
+	//		If you are new to Firebug, or used to the Dojo 0.4 dojo.debug, you can learn Firebug
+	//		functionality by reading the function comments below or visiting http://www.getfirebug.com/docs.html
+	//
+	//		NOTE:
+	//		To test Firebug Lite in Firefox:
+	//
+	//		- FF2: set "console = null" before loading dojo and set djConfig.isDebug=true
+	//		- FF3: disable Firebug and set djConfig.isDebug=true
+	//
+	// example:
+	//		Supports inline objects in object inspector window (only simple trace of dom nodes, however)
+	//	|	console.log("my object", {foo:"bar"})
+	// example:
+	//		Option for console to open in popup window
+	//	|	var djConfig = {isDebug: true, popup:true };
+	// example:
+	//		Option for console height (ignored for popup)
+	//	|	var djConfig = {isDebug: true, debugHeight:100 }
+
+
+	var isNewIE = (/Trident/.test(window.navigator.userAgent));
+	if(isNewIE){
+		// Fixing IE's console
+		// IE doesn't insert space between arguments. How annoying.
+		var calls = ["log", "info", "debug", "warn", "error"];
+		for(var i=0;i<calls.length;i++){
+			var m = calls[i];
+			if(!console[m] ||console[m]._fake){
+				// IE9 doesn't have console.debug method, a fake one is added later
+				continue;
+			}
+			var n = "_"+calls[i];
+			console[n] = console[m];
+			console[m] = (function(){
+				var type = n;
+				return function(){
+					console[type](Array.prototype.join.call(arguments, " "));
+				};
+			})();
+		}
+		// clear the console on load. This is more than a convenience - too many logs crashes it.
+		// If closed it throws an error
+		try{ console.clear(); }catch(e){}
+	}
+
+	if(
+		has("ff") ||								// Firefox has Firebug
+		has("chrome") ||							// Chrome 3+ has a console
+		has("safari") ||							// Safari 4 has a console
+		isNewIE ||									// Has the new IE console
+		window.firebug ||							// Testing for mozilla firebug lite
+		(typeof console != "undefined" && console.firebug) || //The firebug console
+		dojo.config.useCustomLogger ||				// Allow custom loggers
+		has("air")									// isDebug triggers AIRInsector, not Firebug
+	){
+		return;
+	}
+
+	// don't build firebug in iframes
+	try{
+		if(window != window.parent){
+			// but if we've got a parent logger, connect to it
+			if(window.parent["console"]){
+				window.console = window.parent.console;
+			}
+			return;
+		}
+	}catch(e){/*squelch*/}
+
+	// ***************************************************************************
+	// Placing these variables before the functions that use them to avoid a
+	// shrinksafe bug where variable renaming does not happen correctly otherwise.
+
+	// most of the objects in this script are run anonomously
+	var _firebugDoc = document;
+	var _firebugWin = window;
+	var __consoleAnchorId__ = 0;
+
+	var consoleFrame = null;
+	var consoleBody = null;
+	var consoleObjectInspector = null;
+	var fireBugTabs = null;
+	var commandLine = null;
+	var consoleToolbar = null;
+
+	var frameVisible = false;
+	var messageQueue = [];
+	var groupStack = [];
+	var timeMap = {};
+	var countMap = {};
+
+	var consoleDomInspector = null;
+	var _inspectionMoveConnection;
+	var _inspectionClickConnection;
+	var _inspectionEnabled = false;
+	var _inspectionTimer = null;
+	var _inspectTempNode = document.createElement("div");
+
+
+	var _inspectCurrentNode;
+	var _restoreBorderStyle;
+
+	// ***************************************************************************
+
+	window.console = {
+		_connects: [],
+		log: function(){
+			// summary:
+			//		Sends arguments to console.
+			logFormatted(arguments, "");
+		},
+
+		debug: function(){
+			// summary:
+			//		Sends arguments to console. Missing finctionality to show script line of trace.
+			logFormatted(arguments, "debug");
+		},
+
+		info: function(){
+			// summary:
+			//		Sends arguments to console, highlighted with (I) icon.
+			logFormatted(arguments, "info");
+		},
+
+		warn: function(){
+			// summary:
+			//		Sends warning arguments to console, highlighted with (!) icon and blue style.
+			logFormatted(arguments, "warning");
+		},
+
+		error: function(){
+			// summary:
+			//		Sends error arguments (object) to console, highlighted with (X) icon and yellow style
+			//		NEW: error object now displays in object inspector
+			logFormatted(arguments, "error");
+		},
+
+		assert: function(truth, message){
+			// summary:
+			//		Tests for true. Throws exception if false.
+			if(!truth){
+				var args = [];
+				for(var i = 1; i < arguments.length; ++i){
+					args.push(arguments[i]);
+				}
+
+				logFormatted(args.length ? args : ["Assertion Failure"], "error");
+				throw message ? message : "Assertion Failure";
+			}
+		},
+
+		dir: function(obj){
+			var str = printObject( obj );
+			str = str.replace(/\n/g, "<br />");
+			str = str.replace(/\t/g, "&nbsp;&nbsp;&nbsp;&nbsp;");
+			logRow([str], "dir");
+		},
+
+		dirxml: function(node){
+			var html = [];
+			appendNode(node, html);
+			logRow(html, "dirxml");
+		},
+
+		group: function(){
+			// summary:
+			//		collects log messages into a group, starting with this call and ending with
+			//		groupEnd(). Missing collapse functionality
+			logRow(arguments, "group", pushGroup);
+		},
+
+		groupEnd: function(){
+			// summary:
+			//		Closes group. See above
+			logRow(arguments, "", popGroup);
+		},
+
+		time: function(name){
+			// summary:
+			//		Starts timers assigned to name given in argument. Timer stops and displays on timeEnd(title);
+			// example:
+			//	|	console.time("load");
+			//	|	console.time("myFunction");
+			//	|	console.timeEnd("load");
+			//	|	console.timeEnd("myFunction");
+			timeMap[name] = new Date().getTime();
+		},
+
+		timeEnd: function(name){
+			// summary:
+			//		See above.
+			if(name in timeMap){
+				var delta = (new Date()).getTime() - timeMap[name];
+				logFormatted([name+ ":", delta+"ms"]);
+				delete timeMap[name];
+			}
+		},
+
+		count: function(name){
+			// summary:
+			//		Not supported
+			if(!countMap[name]) countMap[name] = 0;
+			countMap[name]++;
+			logFormatted([name+": "+countMap[name]]);
+		},
+
+		trace: function(_value){
+			var stackAmt = _value || 3;
+			var f = console.trace.caller; //function that called trace
+			console.log(">>> console.trace(stack)");
+			for(var i=0;i<stackAmt;i++){
+				var func = f.toString();
+				var args=[];
+				for (var a = 0; a < f.arguments.length; a++){
+					args.push(f.arguments[a]);
+				}
+				if(f.arguments.length){
+					console.dir({"function":func, "arguments":args});
+				}else{
+					console.dir({"function":func});
+				}
+
+				f = f.caller;
+			}
+		},
+
+		profile: function(){
+			// summary:
+			//		Not supported
+			this.warn(["profile() not supported."]);
+		},
+
+		profileEnd: function(){ },
+
+		clear: function(){
+			// summary:
+			//		Clears message console. Do not call this directly
+			if(consoleBody){
+				while(consoleBody.childNodes.length){
+					dojo.destroy(consoleBody.firstChild);
+				}
+			}
+			dojo.forEach(this._connects,dojo.disconnect);
+		},
+
+		open: function(){
+			// summary:
+			//		Opens message console. Do not call this directly
+			toggleConsole(true);
+		},
+
+		close: function(){
+			// summary:
+			//		Closes message console. Do not call this directly
+			if(frameVisible){
+				toggleConsole();
+			}
+		},
+		_restoreBorder: function(){
+			if(_inspectCurrentNode){
+				_inspectCurrentNode.style.border = _restoreBorderStyle;
+			}
+		},
+		openDomInspector: function(){
+			_inspectionEnabled = true;
+			consoleBody.style.display = "none";
+			consoleDomInspector.style.display = "block";
+			consoleObjectInspector.style.display = "none";
+			document.body.style.cursor = "pointer";
+			_inspectionMoveConnection = dojo.connect(document, "mousemove", function(evt){
+				if(!_inspectionEnabled){ return; }
+				if(!_inspectionTimer){
+					_inspectionTimer = setTimeout(function(){ _inspectionTimer = null; }, 50);
+				}else{
+					return;
+				}
+				var node = evt.target;
+				if(node && (_inspectCurrentNode !== node)){
+					var parent = true;
+
+					console._restoreBorder();
+					var html = [];
+					appendNode(node, html);
+					consoleDomInspector.innerHTML = html.join("");
+
+					_inspectCurrentNode = node;
+					_restoreBorderStyle = _inspectCurrentNode.style.border;
+					_inspectCurrentNode.style.border = "#0000FF 1px solid";
+				}
+			});
+			setTimeout(function(){
+				_inspectionClickConnection = dojo.connect(document, "click", function(evt){
+					document.body.style.cursor = "";
+					_inspectionEnabled = !_inspectionEnabled;
+					dojo.disconnect(_inspectionClickConnection);
+					// console._restoreBorder();
+				});
+			}, 30);
+		},
+		_closeDomInspector: function(){
+			document.body.style.cursor = "";
+			dojo.disconnect(_inspectionMoveConnection);
+			dojo.disconnect(_inspectionClickConnection);
+			_inspectionEnabled = false;
+			console._restoreBorder();
+		},
+		openConsole:function(){
+			// summary:
+			//		Closes object inspector and opens message console. Do not call this directly
+			consoleBody.style.display = "block";
+			consoleDomInspector.style.display = "none";
+			consoleObjectInspector.style.display = "none";
+			console._closeDomInspector();
+		},
+		openObjectInspector:function(){
+			consoleBody.style.display = "none";
+			consoleDomInspector.style.display = "none";
+			consoleObjectInspector.style.display = "block";
+			console._closeDomInspector();
+		},
+		recss: function(){
+			// this is placed in dojo since the console is most likely
+			// in another window and dojo is easilly accessible
+			var i,a,s;a=document.getElementsByTagName('link');
+			for(i=0;i<a.length;i++){
+				s=a[i];
+				if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href){
+					var h=s.href.replace(/(&|%5C?)forceReload=\d+/,'');
+					s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+new Date().valueOf();
+				}
+			}
+		}
+	};
+
+	// ***************************************************************************
+
+	function toggleConsole(forceOpen){
+		frameVisible = forceOpen || !frameVisible;
+		if(consoleFrame){
+			consoleFrame.style.display = frameVisible ? "block" : "none";
+		}
+	}
+
+	function focusCommandLine(){
+		toggleConsole(true);
+		if(commandLine){
+			commandLine.focus();
+		}
+	}
+
+	function openWin(x,y,w,h){
+		var win = window.open("","_firebug","status=0,menubar=0,resizable=1,top="+y+",left="+x+",width="+w+",height="+h+",scrollbars=1,addressbar=0");
+		if(!win){
+			var msg = "Firebug Lite could not open a pop-up window, most likely because of a blocker.\n" +
+				"Either enable pop-ups for this domain, or change the djConfig to popup=false.";
+			alert(msg);
+		}
+		createResizeHandler(win);
+		var newDoc=win.document;
+		//Safari needs an HTML height
+		var HTMLstring=	'<html style="height:100%;"><head><title>Firebug Lite</title></head>\n' +
+					'<body bgColor="#ccc" style="height:97%;" onresize="opener.onFirebugResize()">\n' +
+					'<div id="fb"></div>' +
+					'</body></html>';
+
+		newDoc.write(HTMLstring);
+		newDoc.close();
+		return win;
+	}
+
+	function createResizeHandler(wn){
+		// summary:
+		//		Creates handle for onresize window. Called from script in popup's body tag (so that it will work with IE).
+		//
+
+		var d = new Date();
+			d.setTime(d.getTime()+(60*24*60*60*1000)); // 60 days
+			d = d.toUTCString();
+
+			var dc = wn.document,
+				getViewport;
+
+			if (wn.innerWidth){
+				getViewport = function(){
+					return{w:wn.innerWidth, h:wn.innerHeight};
+				};
+			}else if (dc.documentElement && dc.documentElement.clientWidth){
+				getViewport = function(){
+					return{w:dc.documentElement.clientWidth, h:dc.documentElement.clientHeight};
+				};
+			}else if (dc.body){
+				getViewport = function(){
+					return{w:dc.body.clientWidth, h:dc.body.clientHeight};
+				};
+			}
+
+
+		window.onFirebugResize = function(){
+
+			//resize the height of the console log body
+			layout(getViewport().h);
+
+			clearInterval(wn._firebugWin_resize);
+			wn._firebugWin_resize = setTimeout(function(){
+				var x = wn.screenLeft,
+					y = wn.screenTop,
+					w = wn.outerWidth  || wn.document.body.offsetWidth,
+					h = wn.outerHeight || wn.document.body.offsetHeight;
+
+				document.cookie = "_firebugPosition=" + [x,y,w,h].join(",") + "; expires="+d+"; path=/";
+
+			 }, 5000); //can't capture window.onMove - long timeout gives better chance of capturing a resize, then the move
+
+		};
+	}
+
+
+	/*****************************************************************************/
+
+
+	function createFrame(){
+		if(consoleFrame){
+			return;
+		}
+		toggleConsole(true);
+		if(dojo.config.popup){
+			var containerHeight = "100%";
+			var cookieMatch = document.cookie.match(/(?:^|; )_firebugPosition=([^;]*)/);
+			var p = cookieMatch ? cookieMatch[1].split(",") : [2,2,320,480];
+
+			_firebugWin = openWin(p[0],p[1],p[2],p[3]);	// global
+			_firebugDoc = _firebugWin.document;			// global
+
+			dojo.config.debugContainerId = 'fb';
+
+			// connecting popup
+			_firebugWin.console = window.console;
+			_firebugWin.dojo = window.dojo;
+		}else{
+			_firebugDoc = document;
+			containerHeight = (dojo.config.debugHeight || 300) + "px";
+		}
+
+		var styleElement = _firebugDoc.createElement("link");
+		styleElement.href = require.toUrl("./firebug.css");
+		styleElement.rel = "stylesheet";
+		styleElement.type = "text/css";
+		var styleParent = _firebugDoc.getElementsByTagName("head");
+		if(styleParent){
+			styleParent = styleParent[0];
+		}
+		if(!styleParent){
+			styleParent = _firebugDoc.getElementsByTagName("html")[0];
+		}
+		if(has("ie")){
+			window.setTimeout(function(){ styleParent.appendChild(styleElement); }, 0);
+		}else{
+			styleParent.appendChild(styleElement);
+		}
+
+		if(dojo.config.debugContainerId){
+			consoleFrame = _firebugDoc.getElementById(dojo.config.debugContainerId);
+		}
+		if(!consoleFrame){
+			consoleFrame = _firebugDoc.createElement("div");
+			_firebugDoc.body.appendChild(consoleFrame);
+		}
+		consoleFrame.className += " firebug";
+		consoleFrame.id = "firebug";
+		consoleFrame.style.height = containerHeight;
+		consoleFrame.style.display = (frameVisible ? "block" : "none");
+
+		var buildLink = function(label, title, method, _class){
+			return '<li class="'+_class+'"><a href="javascript:void(0);" onclick="console.'+ method +'(); return false;" title="'+title+'">'+label+'</a></li>';
+		};
+		consoleFrame.innerHTML =
+			  '<div id="firebugToolbar">'
+			+ '  <ul id="fireBugTabs" class="tabs">'
+
+			+ buildLink("Clear", "Remove All Console Logs", "clear", "")
+			+ buildLink("ReCSS", "Refresh CSS without reloading page", "recss", "")
+
+			+ buildLink("Console", "Show Console Logs", "openConsole", "gap")
+			+ buildLink("DOM", "Show DOM Inspector", "openDomInspector", "")
+			+ buildLink("Object", "Show Object Inspector", "openObjectInspector", "")
+			+ ((dojo.config.popup) ? "" : buildLink("Close", "Close the console", "close", "gap"))
+
+			+ '	</ul>'
+			+ '</div>'
+			+ '<input type="text" id="firebugCommandLine" />'
+			+ '<div id="firebugLog"></div>'
+			+ '<div id="objectLog" style="display:none;">Click on an object in the Log display</div>'
+			+ '<div id="domInspect" style="display:none;">Hover over HTML elements in the main page. Click to hold selection.</div>';
+
+
+		consoleToolbar = _firebugDoc.getElementById("firebugToolbar");
+
+		commandLine = _firebugDoc.getElementById("firebugCommandLine");
+		addEvent(commandLine, "keydown", onCommandLineKeyDown);
+
+		addEvent(_firebugDoc, has("ie") || has("safari") ? "keydown" : "keypress", onKeyDown);
+
+		consoleBody = _firebugDoc.getElementById("firebugLog");
+		consoleObjectInspector = _firebugDoc.getElementById("objectLog");
+		consoleDomInspector = _firebugDoc.getElementById("domInspect");
+		fireBugTabs = _firebugDoc.getElementById("fireBugTabs");
+		layout();
+		flush();
+	}
+
+	dojo.addOnLoad(createFrame);
+
+	function clearFrame(){
+		_firebugDoc = null;
+
+		if(_firebugWin.console){
+			_firebugWin.console.clear();
+		}
+		_firebugWin = null;
+		consoleFrame = null;
+		consoleBody = null;
+		consoleObjectInspector = null;
+		consoleDomInspector = null;
+		commandLine = null;
+		messageQueue = [];
+		groupStack = [];
+		timeMap = {};
+	}
+
+
+	function evalCommandLine(){
+		var text = commandLine.value;
+		commandLine.value = "";
+
+		logRow([">  ", text], "command");
+
+		var value;
+		try{
+			value = eval(text);
+		}catch(e){
+			console.debug(e); // put exception on the console
+		}
+
+		console.log(value);
+	}
+
+	function layout(h){
+		var tHeight = 25; //consoleToolbar.offsetHeight; // tab style not ready on load - throws off layout
+		var height = h ?
+			h  - (tHeight + commandLine.offsetHeight +25 + (h*.01)) + "px" :
+			(consoleFrame.offsetHeight - tHeight - commandLine.offsetHeight) + "px";
+
+		consoleBody.style.top = tHeight + "px";
+		consoleBody.style.height = height;
+		consoleObjectInspector.style.height = height;
+		consoleObjectInspector.style.top = tHeight + "px";
+		consoleDomInspector.style.height = height;
+		consoleDomInspector.style.top = tHeight + "px";
+		commandLine.style.bottom = 0;
+
+		dojo.addOnWindowUnload(clearFrame);
+	}
+
+	function logRow(message, className, handler){
+		if(consoleBody){
+			writeMessage(message, className, handler);
+		}else{
+			messageQueue.push([message, className, handler]);
+		}
+	}
+
+	function flush(){
+		var queue = messageQueue;
+		messageQueue = [];
+
+		for(var i = 0; i < queue.length; ++i){
+			writeMessage(queue[i][0], queue[i][1], queue[i][2]);
+		}
+	}
+
+	function writeMessage(message, className, handler){
+		var isScrolledToBottom =
+			consoleBody.scrollTop + consoleBody.offsetHeight >= consoleBody.scrollHeight;
+
+		handler = handler||writeRow;
+
+		handler(message, className);
+
+		if(isScrolledToBottom){
+			consoleBody.scrollTop = consoleBody.scrollHeight - consoleBody.offsetHeight;
+		}
+	}
+
+	function appendRow(row){
+		var container = groupStack.length ? groupStack[groupStack.length-1] : consoleBody;
+		container.appendChild(row);
+	}
+
+	function writeRow(message, className){
+		var row = consoleBody.ownerDocument.createElement("div");
+		row.className = "logRow" + (className ? " logRow-"+className : "");
+		row.innerHTML = message.join("");
+		appendRow(row);
+	}
+
+	function pushGroup(message, className){
+		logFormatted(message, className);
+
+		//var groupRow = consoleBody.ownerDocument.createElement("div");
+		//groupRow.className = "logGroup";
+		var groupRowBox = consoleBody.ownerDocument.createElement("div");
+		groupRowBox.className = "logGroupBox";
+		//groupRow.appendChild(groupRowBox);
+		appendRow(groupRowBox);
+		groupStack.push(groupRowBox);
+	}
+
+	function popGroup(){
+		groupStack.pop();
+	}
+
+	// ***************************************************************************
+
+	function logFormatted(objects, className){
+		var html = [];
+
+		var format = objects[0];
+		var objIndex = 0;
+
+		if(typeof(format) != "string"){
+			format = "";
+			objIndex = -1;
+		}
+
+		var parts = parseFormat(format);
+
+		for(var i = 0; i < parts.length; ++i){
+			var part = parts[i];
+			if(part && typeof part == "object"){
+				part.appender(objects[++objIndex], html);
+			}else{
+				appendText(part, html);
+			}
+		}
+
+
+		var ids = [];
+		var obs = [];
+		for(i = objIndex+1; i < objects.length; ++i){
+			appendText(" ", html);
+
+			var object = objects[i];
+			if(object === undefined || object === null ){
+				appendNull(object, html);
+
+			}else if(typeof(object) == "string"){
+				appendText(object, html);
+
+			}else if(object instanceof Date){
+				appendText(object.toString(), html);
+
+			}else if(object.nodeType == 9){
+				appendText("[ XmlDoc ]", html);
+
+			}else{
+				// Create link for object inspector
+				// need to create an ID for this link, since it is currently text
+				var id = "_a" + __consoleAnchorId__++;
+				ids.push(id);
+				// need to save the object, so the arrays line up
+				obs.push(object);
+				var str = '<a id="'+id+'" href="javascript:void(0);">'+getObjectAbbr(object)+'</a>';
+
+				appendLink( str , html);
+			}
+		}
+
+		logRow(html, className);
+
+		// Now that the row is inserted in the DOM, loop through all of the links that were just created
+		for(i=0; i<ids.length; i++){
+			var btn = _firebugDoc.getElementById(ids[i]);
+			if(!btn){ continue; }
+
+			// store the object in the dom btn for reference later
+			// avoid parsing these objects unless necessary
+			btn.obj = obs[i];
+
+			_firebugWin.console._connects.push(dojo.connect(btn, "onclick", function(){
+
+				console.openObjectInspector();
+
+				try{
+					printObject(this.obj);
+				}catch(e){
+					this.obj = e;
+				}
+				consoleObjectInspector.innerHTML = "<pre>" + printObject( this.obj ) + "</pre>";
+			}));
+		}
+	}
+
+	function parseFormat(format){
+		var parts = [];
+
+		var reg = /((^%|[^\\]%)(\d+)?(\.)([a-zA-Z]))|((^%|[^\\]%)([a-zA-Z]))/;
+		var appenderMap = {s: appendText, d: appendInteger, i: appendInteger, f: appendFloat};
+
+		for(var m = reg.exec(format); m; m = reg.exec(format)){
+			var type = m[8] ? m[8] : m[5];
+			var appender = type in appenderMap ? appenderMap[type] : appendObject;
+			var precision = m[3] ? parseInt(m[3]) : (m[4] == "." ? -1 : 0);
+
+			parts.push(format.substr(0, m[0][0] == "%" ? m.index : m.index+1));
+			parts.push({appender: appender, precision: precision});
+
+			format = format.substr(m.index+m[0].length);
+		}
+
+		parts.push(format);
+
+		return parts;
+	}
+
+	function escapeHTML(value){
+		function replaceChars(ch){
+			switch(ch){
+				case "<":
+					return "&lt;";
+				case ">":
+					return "&gt;";
+				case "&":
+					return "&amp;";
+				case "'":
+					return "&#39;";
+				case '"':
+					return "&quot;";
+			}
+			return "?";
+		}
+		return String(value).replace(/[<>&"']/g, replaceChars);
+	}
+
+	function objectToString(object){
+		try{
+			return object+"";
+		}catch(e){
+			return null;
+		}
+	}
+
+	// ***************************************************************************
+	function appendLink(object, html){
+		// needed for object links - no HTML escaping
+		html.push( objectToString(object) );
+	}
+
+	function appendText(object, html){
+		html.push(escapeHTML(objectToString(object)));
+	}
+
+	function appendNull(object, html){
+		html.push('<span class="objectBox-null">', escapeHTML(objectToString(object)), '</span>');
+	}
+
+	function appendString(object, html){
+		html.push('<span class="objectBox-string">&quot;', escapeHTML(objectToString(object)),
+			'&quot;</span>');
+	}
+
+	function appendInteger(object, html){
+		html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
+	}
+
+	function appendFloat(object, html){
+		html.push('<span class="objectBox-number">', escapeHTML(objectToString(object)), '</span>');
+	}
+
+	function appendFunction(object, html){
+		html.push('<span class="objectBox-function">', getObjectAbbr(object), '</span>');
+	}
+
+	function appendObject(object, html){
+		try{
+			if(object === undefined){
+				appendNull("undefined", html);
+			}else if(object === null){
+				appendNull("null", html);
+			}else if(typeof object == "string"){
+				appendString(object, html);
+			}else if(typeof object == "number"){
+				appendInteger(object, html);
+			}else if(typeof object == "function"){
+				appendFunction(object, html);
+			}else if(object.nodeType == 1){
+				appendSelector(object, html);
+			}else if(typeof object == "object"){
+				appendObjectFormatted(object, html);
+			}else{
+				appendText(object, html);
+			}
+		}catch(e){
+			/* squelch */
+		}
+	}
+
+	function appendObjectFormatted(object, html){
+		var text = objectToString(object);
+		var reObject = /\[object (.*?)\]/;
+
+		var m = reObject.exec(text);
+		html.push('<span class="objectBox-object">', m ? m[1] : text, '</span>');
+	}
+
+	function appendSelector(object, html){
+		html.push('<span class="objectBox-selector">');
+
+		html.push('<span class="selectorTag">', escapeHTML(object.nodeName.toLowerCase()), '</span>');
+		if(object.id){
+			html.push('<span class="selectorId">#', escapeHTML(object.id), '</span>');
+		}
+		if(object.className){
+			html.push('<span class="selectorClass">.', escapeHTML(object.className), '</span>');
+		}
+
+		html.push('</span>');
+	}
+
+	function appendNode(node, html){
+		if(node.nodeType == 1){
+			html.push(
+				'<div class="objectBox-element">',
+					'&lt;<span class="nodeTag">', node.nodeName.toLowerCase(), '</span>');
+
+			for(var i = 0; i < node.attributes.length; ++i){
+				var attr = node.attributes[i];
+				if(!attr.specified){ continue; }
+
+				html.push('&nbsp;<span class="nodeName">', attr.nodeName.toLowerCase(),
+					'</span>=&quot;<span class="nodeValue">', escapeHTML(attr.nodeValue),
+					'</span>&quot;');
+			}
+
+			if(node.firstChild){
+				html.push('&gt;</div><div class="nodeChildren">');
+
+				for(var child = node.firstChild; child; child = child.nextSibling){
+					appendNode(child, html);
+				}
+
+				html.push('</div><div class="objectBox-element">&lt;/<span class="nodeTag">',
+					node.nodeName.toLowerCase(), '&gt;</span></div>');
+			}else{
+				html.push('/&gt;</div>');
+			}
+		}else if (node.nodeType == 3){
+			html.push('<div class="nodeText">', escapeHTML(node.nodeValue),
+				'</div>');
+		}
+	}
+
+	// ***************************************************************************
+
+	function addEvent(object, name, handler){
+		if(document.all){
+			object.attachEvent("on"+name, handler);
+		}else{
+			object.addEventListener(name, handler, false);
+		}
+	}
+
+	function removeEvent(object, name, handler){
+		if(document.all){
+			object.detachEvent("on"+name, handler);
+		}else{
+			object.removeEventListener(name, handler, false);
+		}
+	}
+
+	function cancelEvent(event){
+		if(document.all){
+			event.cancelBubble = true;
+		}else{
+			event.stopPropagation();
+		}
+	}
+
+	function onError(msg, href, lineNo){
+		var lastSlash = href.lastIndexOf("/");
+		var fileName = lastSlash == -1 ? href : href.substr(lastSlash+1);
+
+		var html = [
+			'<span class="errorMessage">', msg, '</span>',
+			'<div class="objectBox-sourceLink">', fileName, ' (line ', lineNo, ')</div>'
+		];
+
+		logRow(html, "error");
+	}
+
+
+	//After converting to div instead of iframe, now getting two keydowns right away in IE 6.
+	//Make sure there is a little bit of delay.
+	var onKeyDownTime = new Date().getTime();
+
+	function onKeyDown(event){
+		var timestamp = (new Date()).getTime();
+		if(timestamp > onKeyDownTime + 200){
+			event = dojo.fixEvent(event);
+			var keys = dojo.keys;
+			var ekc = event.keyCode;
+			onKeyDownTime = timestamp;
+			if(ekc == keys.F12){
+				toggleConsole();
+			}else if(
+				(ekc == keys.NUMPAD_ENTER || ekc == 76) &&
+				event.shiftKey &&
+				(event.metaKey || event.ctrlKey)
+			){
+				focusCommandLine();
+			}else{
+				return;
+			}
+			cancelEvent(event);
+		}
+	}
+
+	function onCommandLineKeyDown(e){
+		var dk = dojo.keys;
+		if(e.keyCode == 13 && commandLine.value){
+			addToHistory(commandLine.value);
+			evalCommandLine();
+		}else if(e.keyCode == 27){
+			commandLine.value = "";
+		}else if(e.keyCode == dk.UP_ARROW || e.charCode == dk.UP_ARROW){
+			navigateHistory("older");
+		}else if(e.keyCode == dk.DOWN_ARROW || e.charCode == dk.DOWN_ARROW){
+			navigateHistory("newer");
+		}else if(e.keyCode == dk.HOME || e.charCode == dk.HOME){
+			historyPosition = 1;
+			navigateHistory("older");
+		}else if(e.keyCode == dk.END || e.charCode == dk.END){
+			historyPosition = 999999;
+			navigateHistory("newer");
+		}
+	}
+
+	var historyPosition = -1;
+	var historyCommandLine = null;
+
+	function addToHistory(value){
+		var history = cookie("firebug_history");
+		history = (history) ? dojo.fromJson(history) : [];
+		var pos = dojo.indexOf(history, value);
+		if (pos != -1){
+			history.splice(pos, 1);
+		}
+		history.push(value);
+		cookie("firebug_history", dojo.toJson(history), 30);
+		while(history.length && !cookie("firebug_history")){
+			history.shift();
+			cookie("firebug_history", dojo.toJson(history), 30);
+		}
+		historyCommandLine = null;
+		historyPosition = -1;
+	}
+
+	function navigateHistory(direction){
+		var history = cookie("firebug_history");
+		history = (history) ? dojo.fromJson(history) : [];
+		if(!history.length){
+			return;
+		}
+
+		if(historyCommandLine === null){
+			historyCommandLine = commandLine.value;
+		}
+
+		if(historyPosition == -1){
+			historyPosition = history.length;
+		}
+
+		if(direction == "older"){
+			--historyPosition;
+			if(historyPosition < 0){
+				historyPosition = 0;
+			}
+		}else if(direction == "newer"){
+			++historyPosition;
+			if(historyPosition > history.length){
+				historyPosition = history.length;
+			}
+		}
+
+		if(historyPosition == history.length){
+			commandLine.value = historyCommandLine;
+			historyCommandLine = null;
+		}else{
+			commandLine.value = history[historyPosition];
+		}
+	}
+
+	function cookie(name, value){
+		var c = document.cookie;
+		if(arguments.length == 1){
+			var matches = c.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
+			return matches ? decodeURIComponent(matches[1]) : undefined; // String or undefined
+		}else{
+			var d = new Date();
+			d.setMonth(d.getMonth()+1);
+			document.cookie = name + "=" + encodeURIComponent(value) + ((d.toUtcString) ? "; expires=" + d.toUTCString() : "");
+		}
+	}
+
+	function isArray(it){
+		return it && it instanceof Array || typeof it == "array";
+	}
+
+	//***************************************************************************************************
+	// Print Object Helpers
+	function objectLength(o){
+		var cnt = 0;
+		for(var nm in o){
+			cnt++;
+		}
+		return cnt;
+	}
+
+	function printObject(o, i, txt, used){
+		// Recursively trace object, indenting to represent depth for display in object inspector
+		var ind = " \t";
+		txt = txt || "";
+		i = i || ind;
+		used = used || [];
+		var opnCls;
+
+		if(o && o.nodeType == 1){
+			var html = [];
+			appendNode(o, html);
+			return html.join("");
+		}
+
+		var br=",\n", cnt = 0, length = objectLength(o);
+
+		if(o instanceof Date){
+			return i + o.toString() + br;
+		}
+		looking:
+		for(var nm in o){
+			cnt++;
+			if(cnt==length){br = "\n";}
+			if(o[nm] === window || o[nm] === document){
+				// do nothing
+			}else if(o[nm] === null){
+				txt += i+nm + " : NULL" + br;
+			}else if(o[nm] && o[nm].nodeType){
+				if(o[nm].nodeType == 1){
+					//txt += i+nm + " : < "+o[nm].tagName+" id=\""+ o[nm].id+"\" />" + br;
+				}else if(o[nm].nodeType == 3){
+					txt += i+nm + " : [ TextNode "+o[nm].data + " ]" + br;
+				}
+
+			}else if(typeof o[nm] == "object" && (o[nm] instanceof String || o[nm] instanceof Number || o[nm] instanceof Boolean)){
+				txt += i+nm + " : " + o[nm] + "," + br;
+
+			}else if(o[nm] instanceof Date){
+				txt += i+nm + " : " + o[nm].toString() + br;
+
+			}else if(typeof(o[nm]) == "object" && o[nm]){
+				for(var j = 0, seen; seen = used[j]; j++){
+					if(o[nm] === seen){
+						txt += i+nm + " : RECURSION" + br;
+						continue looking;
+					}
+				}
+				used.push(o[nm]);
+
+				opnCls = (isArray(o[nm]))?["[","]"]:["{","}"];
+				txt += i+nm +" : " + opnCls[0] + "\n";//non-standard break, (no comma)
+				txt += printObject(o[nm], i+ind, "", used);
+				txt += i + opnCls[1] + br;
+
+			}else if(typeof o[nm] == "undefined"){
+				txt += i+nm + " : undefined" + br;
+			}else if(nm == "toString" && typeof o[nm] == "function"){
+				var toString = o[nm]();
+				if(typeof toString == "string" && toString.match(/function ?(.*?)\(/)){
+					toString = escapeHTML(getObjectAbbr(o[nm]));
+				}
+				txt += i+nm +" : " + toString + br;
+			}else{
+				txt += i+nm +" : "+ escapeHTML(getObjectAbbr(o[nm])) + br;
+			}
+		}
+		return txt;
+	}
+
+	function getObjectAbbr(obj){
+		// Gets an abbreviation of an object for display in log
+		// X items in object, including id
+		// X items in an array
+		// TODO: Firebug Sr. actually goes by char count
+		var isError = (obj instanceof Error);
+		if(obj.nodeType == 1){
+			return escapeHTML('< '+obj.tagName.toLowerCase()+' id=\"'+ obj.id+ '\" />');
+		}
+		if(obj.nodeType == 3){
+			return escapeHTML('[TextNode: "'+obj.nodeValue+'"]');
+		}
+		var nm = (obj && (obj.id || obj.name || obj.ObjectID || obj.widgetId));
+		if(!isError && nm){ return "{"+nm+"}";	}
+
+		var obCnt = 2;
+		var arCnt = 4;
+		var cnt = 0;
+
+		if(isError){
+			nm = "[ Error: "+(obj.message || obj.description || obj)+" ]";
+		}else if(isArray(obj)){
+			nm = "[" + obj.slice(0,arCnt).join(",");
+			if(obj.length > arCnt){
+				nm += " ... ("+obj.length+" items)";
+			}
+			nm += "]";
+		}else if(typeof obj == "function"){
+			nm = obj + "";
+			var reg = /function\s*([^\(]*)(\([^\)]*\))[^\{]*\{/;
+			var m = reg.exec(nm);
+			if(m){
+				if(!m[1]){
+					m[1] = "function";
+				}
+				nm = m[1] + m[2];
+			}else{
+				nm = "function()";
+			}
+		}else if(typeof obj != "object" || typeof obj == "string"){
+			nm = obj + "";
+		}else{
+			nm = "{";
+			for(var i in obj){
+				cnt++;
+				if(cnt > obCnt){ break; }
+				nm += i+":"+escapeHTML(obj[i])+"  ";
+			}
+			nm+="}";
+		}
+
+		return nm;
+	}
+
+	//*************************************************************************************
+
+	//window.onerror = onError;
+
+	addEvent(document, has("ie") || has("safari") ? "keydown" : "keypress", onKeyDown);
+
+	if(	(document.documentElement.getAttribute("debug") == "true")||
+		(dojo.config.isDebug)
+	){
+		toggleConsole(true);
+	}
+
+	dojo.addOnWindowUnload(function(){
+		// Erase the globals and event handlers I created, to prevent spurious leak warnings
+		removeEvent(document, has("ie") || has("safari") ? "keydown" : "keypress", onKeyDown);
+		window.onFirebugResize = null;
+		window.console = null;
+	});
+
+});
--- a/server/src/main/webapp/static/lib/dojo/cookie.js	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/static/lib/dojo/cookie.js	Fri May 16 09:23:11 2014 +0200
@@ -1,5 +1,5 @@
 /*
-	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
+	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
 	Available via Academic Free License >= 2.1 OR the modified BSD license.
 	see: http://dojotoolkit.org/license for details
 */
--- a/server/src/main/webapp/static/lib/dojo/dojo.js	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/static/lib/dojo/dojo.js	Fri May 16 09:23:11 2014 +0200
@@ -1,5 +1,5 @@
 /*
-	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
+	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
 	Available via Academic Free License >= 2.1 OR the modified BSD license.
 	see: http://dojotoolkit.org/license for details
 */
@@ -12,4 +12,4 @@
 */
 
 //>>built
-(function(_1,_2){var _3=function(){},_4=function(it){for(var p in it){return 0;}return 1;},_5={}.toString,_6=function(it){return _5.call(it)=="[object Function]";},_7=function(it){return _5.call(it)=="[object String]";},_8=function(it){return _5.call(it)=="[object Array]";},_9=function(_a,_b){if(_a){for(var i=0;i<_a.length;){_b(_a[i++]);}}},_c=function(_d,_e){for(var p in _e){_d[p]=_e[p];}return _d;},_f=function(_10,_11){return _c(new Error(_10),{src:"dojoLoader",info:_11});},_12=1,uid=function(){return "_"+_12++;},req=function(_13,_14,_15){return _16(_13,_14,_15,0,req);},_17=this,doc=_17.document,_18=doc&&doc.createElement("DiV"),has=req.has=function(_19){return _6(_1a[_19])?(_1a[_19]=_1a[_19](_17,doc,_18)):_1a[_19];},_1a=has.cache=_2.hasCache;has.add=function(_1b,_1c,now,_1d){(_1a[_1b]===undefined||_1d)&&(_1a[_1b]=_1c);return now&&has(_1b);};0&&has.add("host-node",_1.has&&"host-node" in _1.has?_1.has["host-node"]:(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8));if(0){require("./_base/configNode.js").config(_2);_2.loaderPatch.nodeRequire=require;}0&&has.add("host-rhino",_1.has&&"host-rhino" in _1.has?_1.has["host-rhino"]:(typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object")));if(0){for(var _1e=_1.baseUrl||".",arg,_1f=this.arguments,i=0;i<_1f.length;){arg=(_1f[i++]+"").split("=");if(arg[0]=="baseUrl"){_1e=arg[1];break;}}load(_1e+"/_base/configRhino.js");rhinoDojoConfig(_2,_1e,_1f);}for(var p in _1.has){has.add(p,_1.has[p],0,1);}var _20=1,_21=2,_22=3,_23=4,_24=5;if(0){_20="requested";_21="arrived";_22="not-a-module";_23="executing";_24="executed";}var _25=0,_26="sync",xd="xd",_27=[],_28=0,_29=_3,_2a=_3,_2b;if(1){req.isXdUrl=_3;req.initSyncLoader=function(_2c,_2d,_2e){if(!_28){_28=_2c;_29=_2d;_2a=_2e;}return {sync:_26,requested:_20,arrived:_21,nonmodule:_22,executing:_23,executed:_24,syncExecStack:_27,modules:_2f,execQ:_30,getModule:_31,injectModule:_32,setArrived:_33,signal:_34,finishExec:_35,execModule:_36,dojoRequirePlugin:_28,getLegacyMode:function(){return _25;},guardCheckComplete:_37};};if(1){var _38=location.protocol,_39=location.host;req.isXdUrl=function(url){if(/^\./.test(url)){return false;}if(/^\/\//.test(url)){return true;}var _3a=url.match(/^([^\/\:]+\:)\/+([^\/]+)/);return _3a&&(_3a[1]!=_38||(_39&&_3a[2]!=_39));};1||has.add("dojo-xhr-factory",1);has.add("dojo-force-activex-xhr",1&&!doc.addEventListener&&window.location.protocol=="file:");has.add("native-xhr",typeof XMLHttpRequest!="undefined");if(has("native-xhr")&&!has("dojo-force-activex-xhr")){_2b=function(){return new XMLHttpRequest();};}else{for(var _3b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],_3c,i=0;i<3;){try{_3c=_3b[i++];if(new ActiveXObject(_3c)){break;}}catch(e){}}_2b=function(){return new ActiveXObject(_3c);};}req.getXhr=_2b;has.add("dojo-gettext-api",1);req.getText=function(url,_3d,_3e){var xhr=_2b();xhr.open("GET",_3f(url),false);xhr.send(null);if(xhr.status==200||(!location.host&&!xhr.status)){if(_3e){_3e(xhr.responseText,_3d);}}else{throw _f("xhrFailed",xhr.status);}return xhr.responseText;};}}else{req.async=1;}var _40=new Function("return eval(arguments[0]);");req.eval=function(_41,_42){return _40(_41+"\r\n////@ sourceURL="+_42);};var _43={},_44="error",_34=req.signal=function(_45,_46){var _47=_43[_45];_9(_47&&_47.slice(0),function(_48){_48.apply(null,_8(_46)?_46:[_46]);});},on=req.on=function(_49,_4a){var _4b=_43[_49]||(_43[_49]=[]);_4b.push(_4a);return {remove:function(){for(var i=0;i<_4b.length;i++){if(_4b[i]===_4a){_4b.splice(i,1);return;}}}};};var _4c=[],_4d={},_4e=[],_4f={},map=req.map={},_50=[],_2f={},_51="",_52={},_53="url:",_54={},_55={};if(1){var _56=function(_57){var p,_58,_59,now,m;for(p in _54){_58=_54[p];_59=p.match(/^url\:(.+)/);if(_59){_52[_53+_5a(_59[1],_57)]=_58;}else{if(p=="*now"){now=_58;}else{if(p!="*noref"){m=_5b(p,_57);_52[m.mid]=_52[_53+m.url]=_58;}}}}if(now){now(_5c(_57));}_54={};},_5d=function(s){return s.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){return "\\"+c;});},_5e=function(map,_5f){_5f.splice(0,_5f.length);for(var p in map){_5f.push([p,map[p],new RegExp("^"+_5d(p)+"(/|$)"),p.length]);}_5f.sort(function(lhs,rhs){return rhs[3]-lhs[3];});return _5f;},_60=function(_61){var _62=_61.name;if(!_62){_62=_61;_61={name:_62};}_61=_c({main:"main"},_61);_61.location=_61.location?_61.location:_62;if(_61.packageMap){map[_62]=_61.packageMap;}if(!_61.main.indexOf("./")){_61.main=_61.main.substring(2);}_4f[_62]=_61;},_63=[],_64=function(_65,_66,_67){for(var p in _65){if(p=="waitSeconds"){req.waitms=(_65[p]||0)*1000;}if(p=="cacheBust"){_51=_65[p]?(_7(_65[p])?_65[p]:(new Date()).getTime()+""):"";}if(p=="baseUrl"||p=="combo"){req[p]=_65[p];}if(1&&p=="async"){var _68=_65[p];req.legacyMode=_25=(_7(_68)&&/sync|legacyAsync/.test(_68)?_68:(!_68?_26:false));req.async=!_25;}if(_65[p]!==_1a){req.rawConfig[p]=_65[p];p!="has"&&has.add("config-"+p,_65[p],0,_66);}}if(!req.baseUrl){req.baseUrl="./";}if(!/\/$/.test(req.baseUrl)){req.baseUrl+="/";}for(p in _65.has){has.add(p,_65.has[p],0,_66);}_9(_65.packages,_60);for(_1e in _65.packagePaths){_9(_65.packagePaths[_1e],function(_69){var _6a=_1e+"/"+_69;if(_7(_69)){_69={name:_69};}_69.location=_6a;_60(_69);});}_5e(_c(map,_65.map),_50);_9(_50,function(_6b){_6b[1]=_5e(_6b[1],[]);if(_6b[0]=="*"){_50.star=_6b;}});_5e(_c(_4d,_65.paths),_4e);_9(_65.aliases,function(_6c){if(_7(_6c[0])){_6c[0]=new RegExp("^"+_5d(_6c[0])+"$");}_4c.push(_6c);});if(_66){_63.push({config:_65.config});}else{for(p in _65.config){var _6d=_31(p,_67);_6d.config=_c(_6d.config||{},_65.config[p]);}}if(_65.cache){_56();_54=_65.cache;if(_65.cache["*noref"]){_56();}}_34("config",[_65,req.rawConfig]);};if(has("dojo-cdn")||1){var _6e=doc.getElementsByTagName("script"),i=0,_6f,_70,src,_71;while(i<_6e.length){_6f=_6e[i++];if((src=_6f.getAttribute("src"))&&(_71=src.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){_70=_71[3]||"";_2.baseUrl=_2.baseUrl||_70;src=(_6f.getAttribute("data-dojo-config")||_6f.getAttribute("djConfig"));if(src){_55=req.eval("({ "+src+" })","data-dojo-config");}if(0){var _72=_6f.getAttribute("data-main");if(_72){_55.deps=_55.deps||[_72];}}break;}}}if(0){try{if(window.parent!=window&&window.parent.require){var doh=window.parent.require("doh");doh&&_c(_55,doh.testConfig);}}catch(e){}}req.rawConfig={};_64(_2,1);if(has("dojo-cdn")){_4f.dojo.location=_70;if(_70){_70+="/";}_4f.dijit.location=_70+"../dijit/";_4f.dojox.location=_70+"../dojox/";}_64(_1,1);_64(_55,1);}else{_4d=_2.paths;_4e=_2.pathsMapProg;_4f=_2.packs;_4c=_2.aliases;_50=_2.mapProgs;_2f=_2.modules;_52=_2.cache;_51=_2.cacheBust;req.rawConfig=_2;}if(0){req.combo=req.combo||{add:_3};var _73=0,_74=[],_75=null;}var _76=function(_77){_37(function(){_9(_77.deps,_32);if(0&&_73&&!_75){_75=setTimeout(function(){_73=0;_75=null;req.combo.done(function(_78,url){var _79=function(){_7a(0,_78);_7b();};_74.push(_78);_7c=_78;req.injectUrl(url,_79,_78);_7c=0;},req);},0);}});},_16=function(a1,a2,a3,_7d,_7e){var _7f,_80;if(_7(a1)){_7f=_31(a1,_7d,true);if(_7f&&_7f.executed){return _7f.result;}throw _f("undefinedModule",a1);}if(!_8(a1)){_64(a1,0,_7d);a1=a2;a2=a3;}if(_8(a1)){if(!a1.length){a2&&a2();}else{_80="require*"+uid();for(var mid,_81=[],i=0;i<a1.length;){mid=a1[i++];_81.push(_31(mid,_7d));}_7f=_c(_82("",_80,0,""),{injected:_21,deps:_81,def:a2||_3,require:_7d?_7d.require:req,gc:1});_2f[_7f.mid]=_7f;_76(_7f);var _83=_84&&_25!=_26;_37(function(){_36(_7f,_83);});if(!_7f.executed){_30.push(_7f);}_7b();}}return _7e;},_5c=function(_85){if(!_85){return req;}var _86=_85.require;if(!_86){_86=function(a1,a2,a3){return _16(a1,a2,a3,_85,_86);};_85.require=_c(_86,req);_86.module=_85;_86.toUrl=function(_87){return _5a(_87,_85);};_86.toAbsMid=function(mid){return _b4(mid,_85);};if(0){_86.undef=function(mid){req.undef(mid,_85);};}if(1){_86.syncLoadNls=function(mid){var _88=_5b(mid,_85),_89=_2f[_88.mid];if(!_89||!_89.executed){_8a=_52[_88.mid]||_52[_53+_88.url];if(_8a){_8b(_8a);_89=_2f[_88.mid];}}return _89&&_89.executed&&_89.result;};}}return _86;},_30=[],_8c=[],_8d={},_8e=function(_8f){_8f.injected=_20;_8d[_8f.mid]=1;if(_8f.url){_8d[_8f.url]=_8f.pack||1;}_90();},_33=function(_91){_91.injected=_21;delete _8d[_91.mid];if(_91.url){delete _8d[_91.url];}if(_4(_8d)){_92();1&&_25==xd&&(_25=_26);}},_93=req.idle=function(){return !_8c.length&&_4(_8d)&&!_30.length&&!_84;},_94=function(_95,map){if(map){for(var i=0;i<map.length;i++){if(map[i][2].test(_95)){return map[i];}}}return 0;},_96=function(_97){var _98=[],_99,_9a;_97=_97.replace(/\\/g,"/").split("/");while(_97.length){_99=_97.shift();if(_99==".."&&_98.length&&_9a!=".."){_98.pop();_9a=_98[_98.length-1];}else{if(_99!="."){_98.push(_9a=_99);}}}return _98.join("/");},_82=function(pid,mid,_9b,url){if(1){var xd=req.isXdUrl(url);return {pid:pid,mid:mid,pack:_9b,url:url,executed:0,def:0,isXd:xd,isAmd:!!(xd||(_4f[pid]&&_4f[pid].isAmd))};}else{return {pid:pid,mid:mid,pack:_9b,url:url,executed:0,def:0};}},_9c=function(mid,_9d,_9e,_9f,_a0,_a1,_a2,_a3){var pid,_a4,_a5,_a6,_a7,url,_a8,_a9,_aa;_aa=mid;_a9=/^\./.test(mid);if(/(^\/)|(\:)|(\.js$)/.test(mid)||(_a9&&!_9d)){return _82(0,mid,0,mid);}else{mid=_96(_a9?(_9d.mid+"/../"+mid):mid);if(/^\./.test(mid)){throw _f("irrationalPath",mid);}if(_9d){_a7=_94(_9d.mid,_a1);}_a7=_a7||_a1.star;_a7=_a7&&_94(mid,_a7[1]);if(_a7){mid=_a7[1]+mid.substring(_a7[3]);}_71=mid.match(/^([^\/]+)(\/(.+))?$/);pid=_71?_71[1]:"";if((_a4=_9e[pid])){mid=pid+"/"+(_a5=(_71[3]||_a4.main));}else{pid="";}var _ab=0,_ac=0;_9(_4c,function(_ad){var _ae=mid.match(_ad[0]);if(_ae&&_ae.length>_ab){_ac=_6(_ad[1])?mid.replace(_ad[0],_ad[1]):_ad[1];}});if(_ac){return _9c(_ac,0,_9e,_9f,_a0,_a1,_a2,_a3);}_a8=_9f[mid];if(_a8){return _a3?_82(_a8.pid,_a8.mid,_a8.pack,_a8.url):_9f[mid];}}_a7=_94(mid,_a2);if(_a7){url=_a7[1]+mid.substring(_a7[3]);}else{if(pid){url=_a4.location+"/"+_a5;}else{if(has("config-tlmSiblingOfDojo")){url="../"+mid;}else{url=mid;}}}if(!(/(^\/)|(\:)/.test(url))){url=_a0+url;}url+=".js";return _82(pid,mid,_a4,_96(url));},_5b=function(mid,_af){return _9c(mid,_af,_4f,_2f,req.baseUrl,_50,_4e);},_b0=function(_b1,_b2,_b3){return _b1.normalize?_b1.normalize(_b2,function(mid){return _b4(mid,_b3);}):_b4(_b2,_b3);},_b5=0,_31=function(mid,_b6,_b7){var _b8,_b9,_ba,_bb;_b8=mid.match(/^(.+?)\!(.*)$/);if(_b8){_b9=_31(_b8[1],_b6,_b7);if(1&&_25==_26&&!_b9.executed){_32(_b9);if(_b9.injected===_21&&!_b9.executed){_37(function(){_36(_b9);});}if(_b9.executed){_bc(_b9);}else{_30.unshift(_b9);}}if(_b9.executed===_24&&!_b9.load){_bc(_b9);}if(_b9.load){_ba=_b0(_b9,_b8[2],_b6);mid=(_b9.mid+"!"+(_b9.dynamic?++_b5+"!":"")+_ba);}else{_ba=_b8[2];mid=_b9.mid+"!"+(++_b5)+"!waitingForPlugin";}_bb={plugin:_b9,mid:mid,req:_5c(_b6),prid:_ba};}else{_bb=_5b(mid,_b6);}return _2f[_bb.mid]||(!_b7&&(_2f[_bb.mid]=_bb));},_b4=req.toAbsMid=function(mid,_bd){return _5b(mid,_bd).mid;},_5a=req.toUrl=function(_be,_bf){var _c0=_5b(_be+"/x",_bf),url=_c0.url;return _3f(_c0.pid===0?_be:url.substring(0,url.length-5));},_c1={injected:_21,executed:_24,def:_22,result:_22},_c2=function(mid){return _2f[mid]=_c({mid:mid},_c1);},_c3=_c2("require"),_c4=_c2("exports"),_c5=_c2("module"),_c6=function(_c7,_c8){req.trace("loader-run-factory",[_c7.mid]);var _c9=_c7.def,_ca;1&&_27.unshift(_c7);if(has("config-dojo-loader-catches")){try{_ca=_6(_c9)?_c9.apply(null,_c8):_c9;}catch(e){_34(_44,_c7.result=_f("factoryThrew",[_c7,e]));}}else{_ca=_6(_c9)?_c9.apply(null,_c8):_c9;}_c7.result=_ca===undefined&&_c7.cjs?_c7.cjs.exports:_ca;1&&_27.shift(_c7);},_cb={},_cc=0,_bc=function(_cd){var _ce=_cd.result;_cd.dynamic=_ce.dynamic;_cd.normalize=_ce.normalize;_cd.load=_ce.load;return _cd;},_cf=function(_d0){var map={};_9(_d0.loadQ,function(_d1){var _d2=_b0(_d0,_d1.prid,_d1.req.module),mid=_d0.dynamic?_d1.mid.replace(/waitingForPlugin$/,_d2):(_d0.mid+"!"+_d2),_d3=_c(_c({},_d1),{mid:mid,prid:_d2,injected:0});if(!_2f[mid]){_e5(_2f[mid]=_d3);}map[_d1.mid]=_2f[mid];_33(_d1);delete _2f[_d1.mid];});_d0.loadQ=0;var _d4=function(_d5){for(var _d6,_d7=_d5.deps||[],i=0;i<_d7.length;i++){_d6=map[_d7[i].mid];if(_d6){_d7[i]=_d6;}}};for(var p in _2f){_d4(_2f[p]);}_9(_30,_d4);},_35=function(_d8){req.trace("loader-finish-exec",[_d8.mid]);_d8.executed=_24;_d8.defOrder=_cc++;1&&_9(_d8.provides,function(cb){cb();});if(_d8.loadQ){_bc(_d8);_cf(_d8);}for(i=0;i<_30.length;){if(_30[i]===_d8){_30.splice(i,1);}else{i++;}}if(/^require\*/.test(_d8.mid)){delete _2f[_d8.mid];}},_d9=[],_36=function(_da,_db){if(_da.executed===_23){req.trace("loader-circular-dependency",[_d9.concat(_da.mid).join("->")]);return (!_da.def||_db)?_cb:(_da.cjs&&_da.cjs.exports);}if(!_da.executed){if(!_da.def){return _cb;}var mid=_da.mid,_dc=_da.deps||[],arg,_dd,_de=[],i=0;if(0){_d9.push(mid);req.trace("loader-exec-module",["exec",_d9.length,mid]);}_da.executed=_23;while(i<_dc.length){arg=_dc[i++];_dd=((arg===_c3)?_5c(_da):((arg===_c4)?_da.cjs.exports:((arg===_c5)?_da.cjs:_36(arg,_db))));if(_dd===_cb){_da.executed=0;req.trace("loader-exec-module",["abort",mid]);0&&_d9.pop();return _cb;}_de.push(_dd);}_c6(_da,_de);_35(_da);0&&_d9.pop();}return _da.result;},_84=0,_37=function(_df){try{_84++;_df();}finally{_84--;}if(_93()){_34("idle",[]);}},_7b=function(){if(_84){return;}_37(function(){_29();for(var _e0,_e1,i=0;i<_30.length;){_e0=_cc;_e1=_30[i];_36(_e1);if(_e0!=_cc){_29();i=0;}else{i++;}}});};if(0){req.undef=function(_e2,_e3){var _e4=_31(_e2,_e3);_33(_e4);delete _2f[_e4.mid];};}if(1){if(has("dojo-loader-eval-hint-url")===undefined){has.add("dojo-loader-eval-hint-url",1);}var _3f=function(url){url+="";return url+(_51?((/\?/.test(url)?"&":"?")+_51):"");},_e5=function(_e6){var _e7=_e6.plugin;if(_e7.executed===_24&&!_e7.load){_bc(_e7);}var _e8=function(def){_e6.result=def;_33(_e6);_35(_e6);_7b();};if(_e7.load){_e7.load(_e6.prid,_e6.req,_e8);}else{if(_e7.loadQ){_e7.loadQ.push(_e6);}else{_e7.loadQ=[_e6];_30.unshift(_e7);_32(_e7);}}},_8a=0,_7c=0,_e9=0,_8b=function(_ea,_eb){if(has("config-stripStrict")){_ea=_ea.replace(/"use strict"/g,"");}_e9=1;if(has("config-dojo-loader-catches")){try{if(_ea===_8a){_8a.call(null);}else{req.eval(_ea,has("dojo-loader-eval-hint-url")?_eb.url:_eb.mid);}}catch(e){_34(_44,_f("evalModuleThrew",_eb));}}else{if(_ea===_8a){_8a.call(null);}else{req.eval(_ea,has("dojo-loader-eval-hint-url")?_eb.url:_eb.mid);}}_e9=0;},_32=function(_ec){var mid=_ec.mid,url=_ec.url;if(_ec.executed||_ec.injected||_8d[mid]||(_ec.url&&((_ec.pack&&_8d[_ec.url]===_ec.pack)||_8d[_ec.url]==1))){return;}_8e(_ec);if(0){var _ed=0;if(_ec.plugin&&_ec.plugin.isCombo){req.combo.add(_ec.plugin.mid,_ec.prid,0,req);_ed=1;}else{if(!_ec.plugin){_ed=req.combo.add(0,_ec.mid,_ec.url,req);}}if(_ed){_73=1;return;}}if(_ec.plugin){_e5(_ec);return;}var _ee=function(){_7a(_ec);if(_ec.injected!==_21){_33(_ec);_c(_ec,_c1);req.trace("loader-define-nonmodule",[_ec.url]);}if(1&&_25){!_27.length&&_7b();}else{_7b();}};_8a=_52[mid]||_52[_53+_ec.url];if(_8a){req.trace("loader-inject",["cache",_ec.mid,url]);_8b(_8a,_ec);_ee();return;}if(1&&_25){if(_ec.isXd){_25==_26&&(_25=xd);}else{if(_ec.isAmd&&_25!=_26){}else{var _ef=function(_f0){if(_25==_26){_27.unshift(_ec);_8b(_f0,_ec);_27.shift();_7a(_ec);if(!_ec.cjs){_33(_ec);_35(_ec);}if(_ec.finish){var _f1=mid+"*finish",_f2=_ec.finish;delete _ec.finish;def(_f1,["dojo",("dojo/require!"+_f2.join(",")).replace(/\./g,"/")],function(_f3){_9(_f2,function(mid){_f3.require(mid);});});_30.unshift(_31(_f1));}_ee();}else{_f0=_2a(_ec,_f0);if(_f0){_8b(_f0,_ec);_ee();}else{_7c=_ec;req.injectUrl(_3f(url),_ee,_ec);_7c=0;}}};req.trace("loader-inject",["xhr",_ec.mid,url,_25!=_26]);if(has("config-dojo-loader-catches")){try{req.getText(url,_25!=_26,_ef);}catch(e){_34(_44,_f("xhrInjectFailed",[_ec,e]));}}else{req.getText(url,_25!=_26,_ef);}return;}}}req.trace("loader-inject",["script",_ec.mid,url]);_7c=_ec;req.injectUrl(_3f(url),_ee,_ec);_7c=0;},_f4=function(_f5,_f6,def){req.trace("loader-define-module",[_f5.mid,_f6]);if(0&&_f5.plugin&&_f5.plugin.isCombo){_f5.result=_6(def)?def():def;_33(_f5);_35(_f5);return _f5;}var mid=_f5.mid;if(_f5.injected===_21){_34(_44,_f("multipleDefine",_f5));return _f5;}_c(_f5,{deps:_f6,def:def,cjs:{id:_f5.mid,uri:_f5.url,exports:(_f5.result={}),setExports:function(_f7){_f5.cjs.exports=_f7;},config:function(){return _f5.config;}}});for(var i=0;i<_f6.length;i++){_f6[i]=_31(_f6[i],_f5);}if(1&&_25&&!_8d[mid]){_76(_f5);_30.push(_f5);_7b();}_33(_f5);if(!_6(def)&&!_f6.length){_f5.result=def;_35(_f5);}return _f5;},_7a=function(_f8,_f9){var _fa=[],_fb,_fc;while(_8c.length){_fc=_8c.shift();_f9&&(_fc[0]=_f9.shift());_fb=(_fc[0]&&_31(_fc[0]))||_f8;_fa.push([_fb,_fc[1],_fc[2]]);}_56(_f8);_9(_fa,function(_fd){_76(_f4.apply(null,_fd));});};}var _fe=0,_92=_3,_90=_3;if(1){_92=function(){_fe&&clearTimeout(_fe);_fe=0;},_90=function(){_92();if(req.waitms){_fe=window.setTimeout(function(){_92();_34(_44,_f("timeout",_8d));},req.waitms);}};}if(1){has.add("ie-event-behavior",!!doc.attachEvent&&(typeof opera==="undefined"||opera.toString()!="[object Opera]"));}if(1&&(1||1)){var _ff=function(node,_100,_101,_102){if(!has("ie-event-behavior")){node.addEventListener(_100,_102,false);return function(){node.removeEventListener(_100,_102,false);};}else{node.attachEvent(_101,_102);return function(){node.detachEvent(_101,_102);};}},_103=_ff(window,"load","onload",function(){req.pageLoaded=1;doc.readyState!="complete"&&(doc.readyState="complete");_103();});if(1){var _104=doc.getElementsByTagName("script")[0],_105=_104.parentNode;req.injectUrl=function(url,_106,_107){var node=_107.node=doc.createElement("script"),_108=function(e){e=e||window.event;var node=e.target||e.srcElement;if(e.type==="load"||/complete|loaded/.test(node.readyState)){_109();_10a();_106&&_106();}},_109=_ff(node,"load","onreadystatechange",_108),_10a=_ff(node,"error","onerror",function(e){_109();_10a();_34(_44,_f("scriptError",[url,e]));});node.type="text/javascript";node.charset="utf-8";node.src=url;_105.insertBefore(node,_104);return node;};}}if(1){req.log=function(){try{for(var i=0;i<arguments.length;i++){}}catch(e){}};}else{req.log=_3;}if(0){var _10b=req.trace=function(_10c,args){if(_10b.on&&_10b.group[_10c]){_34("trace",[_10c,args]);for(var arg,dump=[],text="trace:"+_10c+(args.length?(":"+args[0]):""),i=1;i<args.length;){arg=args[i++];if(_7(arg)){text+=", "+arg;}else{dump.push(arg);}}req.log(text);dump.length&&dump.push(".");req.log.apply(req,dump);}};_c(_10b,{on:1,group:{},set:function(_10d,_10e){if(_7(_10d)){_10b.group[_10d]=_10e;}else{_c(_10b.group,_10d);}}});_10b.set(_c(_c(_c({},_2.trace),_1.trace),_55.trace));on("config",function(_10f){_10f.trace&&_10b.set(_10f.trace);});}else{req.trace=_3;}var def=function(mid,_110,_111){var _112=arguments.length,_113=["require","exports","module"],args=[0,mid,_110];if(_112==1){args=[0,(_6(mid)?_113:[]),mid];}else{if(_112==2&&_7(mid)){args=[mid,(_6(_110)?_113:[]),_110];}else{if(_112==3){args=[mid,_110,_111];}}}if(0&&args[1]===_113){args[2].toString().replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"").replace(/require\(["']([\w\!\-_\.\/]+)["']\)/g,function(_114,dep){args[1].push(dep);});}req.trace("loader-define",args.slice(0,2));var _115=args[0]&&_31(args[0]),_116;if(_115&&!_8d[_115.mid]){_76(_f4(_115,args[1],args[2]));}else{if(!has("ie-event-behavior")||!1||_e9){_8c.push(args);}else{_115=_115||_7c;if(!_115){for(mid in _8d){_116=_2f[mid];if(_116&&_116.node&&_116.node.readyState==="interactive"){_115=_116;break;}}if(0&&!_115){for(var i=0;i<_74.length;i++){_115=_74[i];if(_115.node&&_115.node.readyState==="interactive"){break;}_115=0;}}}if(0&&_8(_115)){_76(_f4(_31(_115.shift()),args[1],args[2]));if(!_115.length){_74.splice(i,1);}}else{if(_115){_56(_115);_76(_f4(_115,args[1],args[2]));}else{_34(_44,_f("ieDefineFailed",args[0]));}}_7b();}}};def.amd={vendor:"dojotoolkit.org"};if(0){req.def=def;}_c(_c(req,_2.loaderPatch),_1.loaderPatch);on(_44,function(arg){try{console.error(arg);if(arg instanceof Error){for(var p in arg){}}}catch(e){}});_c(req,{uid:uid,cache:_52,packs:_4f});if(0){_c(req,{paths:_4d,aliases:_4c,modules:_2f,legacyMode:_25,execQ:_30,defQ:_8c,waiting:_8d,packs:_4f,mapProgs:_50,pathsMapProg:_4e,listenerQueues:_43,computeMapProg:_5e,runMapProg:_94,compactPath:_96,getModuleInfo:_9c});}if(_17.define){if(1){_34(_44,_f("defineAlreadyDefined",0));}return;}else{_17.define=def;_17.require=req;if(0){require=req;}}if(0&&req.combo&&req.combo.plugins){var _117=req.combo.plugins,_118;for(_118 in _117){_c(_c(_31(_118),_117[_118]),{isCombo:1,executed:"executed",load:1});}}if(1){_9(_63,function(c){_64(c);});var _119=_55.deps||_1.deps||_2.deps,_11a=_55.callback||_1.callback||_2.callback;req.boot=(_119||_11a)?[_119||[],_11a]:0;}if(!1){!req.async&&req(["dojo"]);req.boot&&req.apply(null,req.boot);}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:".",name:"dojo"}]});require({cache:{"dojo/_base/fx":function(){define(["./kernel","./config","./lang","../Evented","./Color","./connect","./sniff","../dom","../dom-style"],function(dojo,_11b,lang,_11c,_11d,_11e,has,dom,_11f){var _120=lang.mixin;var _121={};var _122=_121._Line=function(_123,end){this.start=_123;this.end=end;};_122.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};var _124=_121.Animation=function(args){_120(this,args);if(lang.isArray(this.curve)){this.curve=new _122(this.curve[0],this.curve[1]);}};_124.prototype=new _11c();lang.extend(_124,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _125=this._percent,_126=this.easing;return _126?_126(_125):_125;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(_11b.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_127,_128){var _129=this;if(_129._delayTimer){_129._clearTimer();}if(_128){_129._stopTimer();_129._active=_129._paused=false;_129._percent=0;}else{if(_129._active&&!_129._paused){return _129;}}_129._fire("beforeBegin",[_129.node]);var de=_127||_129.delay,_12a=lang.hitch(_129,"_play",_128);if(de>0){_129._delayTimer=setTimeout(_12a,de);return _129;}_12a();return _129;},_play:function(_12b){var _12c=this;if(_12c._delayTimer){_12c._clearTimer();}_12c._startTime=new Date().valueOf();if(_12c._paused){_12c._startTime-=_12c.duration*_12c._percent;}_12c._active=true;_12c._paused=false;var _12d=_12c.curve.getValue(_12c._getStep());if(!_12c._percent){if(!_12c._startRepeatCount){_12c._startRepeatCount=_12c.repeat;}_12c._fire("onBegin",[_12d]);}_12c._fire("onPlay",[_12d]);_12c._cycle();return _12c;},pause:function(){var _12e=this;if(_12e._delayTimer){_12e._clearTimer();}_12e._stopTimer();if(!_12e._active){return _12e;}_12e._paused=true;_12e._fire("onPause",[_12e.curve.getValue(_12e._getStep())]);return _12e;},gotoPercent:function(_12f,_130){var _131=this;_131._stopTimer();_131._active=_131._paused=true;_131._percent=_12f;if(_130){_131.play();}return _131;},stop:function(_132){var _133=this;if(_133._delayTimer){_133._clearTimer();}if(!_133._timer){return _133;}_133._stopTimer();if(_132){_133._percent=1;}_133._fire("onStop",[_133.curve.getValue(_133._getStep())]);_133._active=_133._paused=false;return _133;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _134=this;if(_134._active){var curr=new Date().valueOf();var step=_134.duration===0?1:(curr-_134._startTime)/(_134.duration);if(step>=1){step=1;}_134._percent=step;if(_134.easing){step=_134.easing(step);}_134._fire("onAnimate",[_134.curve.getValue(step)]);if(_134._percent<1){_134._startTimer();}else{_134._active=false;if(_134.repeat>0){_134.repeat--;_134.play(null,true);}else{if(_134.repeat==-1){_134.play(null,true);}else{if(_134._startRepeatCount){_134.repeat=_134._startRepeatCount;_134._startRepeatCount=0;}}}_134._percent=0;_134._fire("onEnd",[_134.node]);!_134.repeat&&_134._stopTimer();}}return _134;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_135=null,_136={run:function(){}};lang.extend(_124,{_startTimer:function(){if(!this._timer){this._timer=_11e.connect(_136,"run",this,"_cycle");ctr++;}if(!_135){_135=setInterval(lang.hitch(_136,"run"),this.rate);}},_stopTimer:function(){if(this._timer){_11e.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_135);_135=null;ctr=0;}}});var _137=has("ie")?function(node){var ns=node.style;if(!ns.width.length&&_11f.get(node,"width")=="auto"){ns.width="auto";}}:function(){};_121._fade=function(args){args.node=dom.byId(args.node);var _138=_120({properties:{}},args),_139=(_138.properties.opacity={});_139.start=!("start" in _138)?function(){return +_11f.get(_138.node,"opacity")||0;}:_138.start;_139.end=_138.end;var anim=_121.animateProperty(_138);_11e.connect(anim,"beforeBegin",lang.partial(_137,_138.node));return anim;};_121.fadeIn=function(args){return _121._fade(_120({end:1},args));};_121.fadeOut=function(args){return _121._fade(_120({end:0},args));};_121._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _13a=function(_13b){this._properties=_13b;for(var p in _13b){var prop=_13b[p];if(prop.start instanceof _11d){prop.tempColor=new _11d();}}};_13a.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_13c=prop.start;if(_13c instanceof _11d){ret[p]=_11d.blendColors(_13c,prop.end,r,prop.tempColor).toCss();}else{if(!lang.isArray(_13c)){ret[p]=((prop.end-_13c)*r)+_13c+(p!="opacity"?prop.units||"px":0);}}}return ret;};_121.animateProperty=function(args){var n=args.node=dom.byId(args.node);if(!args.easing){args.easing=dojo._defaultEasing;}var anim=new _124(args);_11e.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(lang.isFunction(prop)){prop=prop(n);}prop=pm[p]=_120({},(lang.isObject(prop)?prop:{end:prop}));if(lang.isFunction(prop.start)){prop.start=prop.start(n);}if(lang.isFunction(prop.end)){prop.end=prop.end(n);}var _13d=(p.toLowerCase().indexOf("color")>=0);function _13e(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=_11f.get(node,p);return (p=="opacity")?+v:(_13d?v:parseFloat(v));};if(!("end" in prop)){prop.end=_13e(n,p);}else{if(!("start" in prop)){prop.start=_13e(n,p);}}if(_13d){prop.start=new _11d(prop.start);prop.end=new _11d(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _13a(pm);});_11e.connect(anim,"onAnimate",lang.hitch(_11f,"set",anim.node));return anim;};_121.anim=function(node,_13f,_140,_141,_142,_143){return _121.animateProperty({node:node,duration:_140||_124.prototype.duration,properties:_13f,easing:_141,onEnd:_142}).play(_143||0);};if(1){_120(dojo,_121);dojo._Animation=_124;}return _121;});},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(lang,dom,ioq,json){function _144(obj,name,_145){if(_145===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_145];}else{if(lang.isArray(val)){val.push(_145);}else{obj[name]=_145;}}};var _146="file|submit|image|reset|button";var form={fieldToObject:function fieldToObject(_147){var ret=null;_147=dom.byId(_147);if(_147){var _148=_147.name,type=(_147.type||"").toLowerCase();if(_148&&type&&!_147.disabled){if(type=="radio"||type=="checkbox"){if(_147.checked){ret=_147.value;}}else{if(_147.multiple){ret=[];var _149=[_147.firstChild];while(_149.length){for(var node=_149.pop();node;node=node.nextSibling){if(node.nodeType==1&&node.tagName.toLowerCase()=="option"){if(node.selected){ret.push(node.value);}}else{if(node.nextSibling){_149.push(node.nextSibling);}if(node.firstChild){_149.push(node.firstChild);}break;}}}}else{ret=_147.value;}}}}return ret;},toObject:function formToObject(_14a){var ret={},_14b=dom.byId(_14a).elements;for(var i=0,l=_14b.length;i<l;++i){var item=_14b[i],_14c=item.name,type=(item.type||"").toLowerCase();if(_14c&&type&&_146.indexOf(type)<0&&!item.disabled){_144(ret,_14c,form.fieldToObject(item));if(type=="image"){ret[_14c+".x"]=ret[_14c+".y"]=ret[_14c].x=ret[_14c].y=0;}}}return ret;},toQuery:function formToQuery(_14d){return ioq.objectToQuery(form.toObject(_14d));},toJson:function formToJson(_14e,_14f){return json.stringify(form.toObject(_14e),null,_14f?4:0);}};return form;});},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_150,has,_151,_152,lang,xhr,json,_153){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _154=dojo.i18n={},_155=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_156=function(root,_157,_158,_159){for(var _15a=[_158+_159],_15b=_157.split("-"),_15c="",i=0;i<_15b.length;i++){_15c+=(_15c?"-":"")+_15b[i];if(!root||root[_15c]){_15a.push(_158+_15c+"/"+_159);}}return _15a;},_15d={},_15e=function(_15f,_160,_161){_161=_161?_161.toLowerCase():dojo.locale;_15f=_15f.replace(/\./g,"/");_160=_160.replace(/\./g,"/");return (/root/i.test(_161))?(_15f+"/nls/"+_160):(_15f+"/nls/"+_161+"/"+_160);},_162=dojo.getL10nName=function(_163,_164,_165){return _163=_153.id+"!"+_15e(_163,_164,_165);},_166=function(_167,_168,_169,_16a,_16b,load){_167([_168],function(root){var _16c=lang.clone(root.root),_16d=_156(!root._v1x&&root,_16b,_169,_16a);_167(_16d,function(){for(var i=1;i<_16d.length;i++){_16c=lang.mixin(lang.clone(_16c),arguments[i]);}var _16e=_168+"/"+_16b;_15d[_16e]=_16c;load();});});},_16f=function(id,_170){return /^\./.test(id)?_170(id):id;},_171=function(_172){var list=_152.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_172);return list;},load=function(id,_173,load){if(has("dojo-preload-i18n-Api")){var _174=id.split("*"),_175=_174[1]=="preload";if(_175){if(!_15d[id]){_15d[id]=1;_176(_174[2],json.parse(_174[3]),1,_173);}load(1);}if(_175||_177(id,_173,load)){return;}}var _178=_155.exec(id),_179=_178[1]+"/",_17a=_178[5]||_178[4],_17b=_179+_17a,_17c=(_178[5]&&_178[4]),_17d=_17c||dojo.locale,_17e=_17b+"/"+_17d,_17f=_17c?[_17d]:_171(_17d),_180=_17f.length,_181=function(){if(!--_180){load(lang.delegate(_15d[_17e]));}};_151.forEach(_17f,function(_182){var _183=_17b+"/"+_182;if(has("dojo-preload-i18n-Api")){_184(_183);}if(!_15d[_183]){_166(_173,_17b,_179,_17a,_182,_181);}else{_181();}});};if(has("dojo-unit-tests")){var _185=_154.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _186=_154.normalizeLocale=function(_187){var _188=_187?_187.toLowerCase():dojo.locale;return _188=="root"?"ROOT":_188;},isXd=function(mid,_189){return (1&&1)?_189.isXdUrl(_150.toUrl(mid+".js")):true;},_18a=0,_18b=[],_176=_154._preloadLocalizations=function(_18c,_18d,_18e,_18f){_18f=_18f||_150;function _190(mid,_191){if(isXd(mid,_18f)||_18e){_18f([mid],_191);}else{_19b([mid],_191,_18f);}};function _192(_193,func){var _194=_193.split("-");while(_194.length){if(func(_194.join("-"))){return;}_194.pop();}func("ROOT");};function _195(_196){_196=_186(_196);_192(_196,function(loc){if(_151.indexOf(_18d,loc)>=0){var mid=_18c.replace(/\./g,"/")+"_"+loc;_18a++;_190(mid,function(_197){for(var p in _197){_15d[_150.toAbsMid(p)+"/"+loc]=_197[p];}--_18a;while(!_18a&&_18b.length){load.apply(null,_18b.shift());}});return true;}return false;});};_195();_151.forEach(dojo.config.extraLocale,_195);},_177=function(id,_198,load){if(_18a){_18b.push([id,_198,load]);}return _18a;},_184=function(){};}if(1){var _199={},_19a=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},"+"\t   require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return __amdValue;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}"),_19b=function(deps,_19c,_19d){var _19e=[];_151.forEach(deps,function(mid){var url=_19d.toUrl(mid+".js");function load(text){var _19f=_19a(text,_184,mid,_199);if(_19f===_199){_19e.push(_15d[url]=_199.result);}else{if(_19f instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_19f);_19f={};}_19e.push(_15d[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_19f:{root:_19f,_v1x:1}));}};if(_15d[url]){_19e.push(_15d[url]);}else{var _1a0=_19d.syncLoadNls(mid);if(_1a0){_19e.push(_1a0);}else{if(!xhr){try{_19d.getText(url,true,load);}catch(e){_19e.push(_15d[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_19e.push(_15d[url]={});}});}}}});_19c&&_19c.apply(null,_19e);};_184=function(_1a1){for(var _1a2,_1a3=_1a1.split("/"),_1a4=dojo.global[_1a3[0]],i=1;_1a4&&i<_1a3.length-1;_1a4=_1a4[_1a3[i++]]){}if(_1a4){_1a2=_1a4[_1a3[i]];if(!_1a2){_1a2=_1a4[_1a3[i].replace(/-/g,"_")];}if(_1a2){_15d[_1a1]=_1a2;}}return _1a2;};_154.getLocalization=function(_1a5,_1a6,_1a7){var _1a8,_1a9=_15e(_1a5,_1a6,_1a7);load(_1a9,(!isXd(_1a9,_150)?function(deps,_1aa){_19b(deps,_1aa,_150);}:_150),function(_1ab){_1a8=_1ab;});return _1a8;};if(has("dojo-unit-tests")){_185.push(function(doh){doh.register("tests.i18n.unit",function(t){var _1ac;_1ac=_19a("{prop:1}",_184,"nonsense",_199);t.is({prop:1},_1ac);t.is(undefined,_1ac[1]);_1ac=_19a("({prop:1})",_184,"nonsense",_199);t.is({prop:1},_1ac);t.is(undefined,_1ac[1]);_1ac=_19a("{'prop-x':1}",_184,"nonsense",_199);t.is({"prop-x":1},_1ac);t.is(undefined,_1ac[1]);_1ac=_19a("({'prop-x':1})",_184,"nonsense",_199);t.is({"prop-x":1},_1ac);t.is(undefined,_1ac[1]);_1ac=_19a("define({'prop-x':1})",_184,"nonsense",_199);t.is(_199,_1ac);t.is({"prop-x":1},_199.result);_1ac=_19a("define('some/module', {'prop-x':1})",_184,"nonsense",_199);t.is(_199,_1ac);t.is({"prop-x":1},_199.result);_1ac=_19a("this is total nonsense and should throw an error",_184,"nonsense",_199);t.is(_1ac instanceof Error,true);});});}}return lang.mixin(_154,{dynamic:true,normalize:_16f,load:load,cache:_15d});});},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(lang,_1ad,_1ae){"use strict";var _1af=new _1ae;var emit=_1af.emit;_1af.emit=null;function _1b0(args){setTimeout(function(){emit.apply(_1af,args);},0);};_1ad.prototype.trace=function(){var args=lang._toArray(arguments);this.then(function(_1b1){_1b0(["resolved",_1b1].concat(args));},function(_1b2){_1b0(["rejected",_1b2].concat(args));},function(_1b3){_1b0(["progress",_1b3].concat(args));});return this;};_1ad.prototype.traceRejected=function(){var args=lang._toArray(arguments);this.otherwise(function(_1b4){_1b0(["rejected",_1b4].concat(args));});return this;};return _1af;});},"dojo/errors/RequestError":function(){define(["./create"],function(_1b5){return _1b5("RequestError",function(_1b6,_1b7){this.response=_1b7;});});},"dojo/_base/html":function(){define("dojo/_base/html",["./kernel","../dom","../dom-style","../dom-attr","../dom-prop","../dom-class","../dom-construct","../dom-geometry"],function(dojo,dom,_1b8,attr,prop,cls,ctr,geom){dojo.byId=dom.byId;dojo.isDescendant=dom.isDescendant;dojo.setSelectable=dom.setSelectable;dojo.getAttr=attr.get;dojo.setAttr=attr.set;dojo.hasAttr=attr.has;dojo.removeAttr=attr.remove;dojo.getNodeProp=attr.getNodeProp;dojo.attr=function(node,name,_1b9){if(arguments.length==2){return attr[typeof name=="string"?"get":"set"](node,name);}return attr.set(node,name,_1b9);};dojo.hasClass=cls.contains;dojo.addClass=cls.add;dojo.removeClass=cls.remove;dojo.toggleClass=cls.toggle;dojo.replaceClass=cls.replace;dojo._toDom=dojo.toDom=ctr.toDom;dojo.place=ctr.place;dojo.create=ctr.create;dojo.empty=function(node){ctr.empty(node);};dojo._destroyElement=dojo.destroy=function(node){ctr.destroy(node);};dojo._getPadExtents=dojo.getPadExtents=geom.getPadExtents;dojo._getBorderExtents=dojo.getBorderExtents=geom.getBorderExtents;dojo._getPadBorderExtents=dojo.getPadBorderExtents=geom.getPadBorderExtents;dojo._getMarginExtents=dojo.getMarginExtents=geom.getMarginExtents;dojo._getMarginSize=dojo.getMarginSize=geom.getMarginSize;dojo._getMarginBox=dojo.getMarginBox=geom.getMarginBox;dojo.setMarginBox=geom.setMarginBox;dojo._getContentBox=dojo.getContentBox=geom.getContentBox;dojo.setContentSize=geom.setContentSize;dojo._isBodyLtr=dojo.isBodyLtr=geom.isBodyLtr;dojo._docScroll=dojo.docScroll=geom.docScroll;dojo._getIeDocumentElementOffset=dojo.getIeDocumentElementOffset=geom.getIeDocumentElementOffset;dojo._fixIeBiDiScrollLeft=dojo.fixIeBiDiScrollLeft=geom.fixIeBiDiScrollLeft;dojo.position=geom.position;dojo.marginBox=function marginBox(node,box){return box?geom.setMarginBox(node,box):geom.getMarginBox(node);};dojo.contentBox=function contentBox(node,box){return box?geom.setContentSize(node,box):geom.getContentBox(node);};dojo.coords=function(node,_1ba){dojo.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");node=dom.byId(node);var s=_1b8.getComputedStyle(node),mb=geom.getMarginBox(node,s);var abs=geom.position(node,_1ba);mb.x=abs.x;mb.y=abs.y;return mb;};dojo.getProp=prop.get;dojo.setProp=prop.set;dojo.prop=function(node,name,_1bb){if(arguments.length==2){return prop[typeof name=="string"?"get":"set"](node,name);}return prop.set(node,name,_1bb);};dojo.getStyle=_1b8.get;dojo.setStyle=_1b8.set;dojo.getComputedStyle=_1b8.getComputedStyle;dojo.__toPixelValue=dojo.toPixelValue=_1b8.toPixelValue;dojo.style=function(node,name,_1bc){switch(arguments.length){case 1:return _1b8.get(node);case 2:return _1b8[typeof name=="string"?"get":"set"](node,name);}return _1b8.set(node,name,_1bc);};return dojo;});},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(has,_1bd,_1be,_1bf){var i,p,_1c0={},_1c1={},dojo={config:_1bd,global:this,dijit:_1c0,dojox:_1c1};var _1c2={dojo:["dojo",dojo],dijit:["dijit",_1c0],dojox:["dojox",_1c1]},_1c3=(_1be.map&&_1be.map[_1bf.id.match(/[^\/]+/)[0]]),item;for(p in _1c3){if(_1c2[p]){_1c2[p][0]=_1c3[p];}else{_1c2[p]=[_1c3[p],{}];}}for(p in _1c2){item=_1c2[p];item[1]._scopeName=item[0];if(!_1bd.noGlobals){this[item[0]]=item[1];}}dojo.scopeMap=_1c2;dojo.baseUrl=dojo.config.baseUrl=_1be.baseUrl;dojo.isAsync=!1||_1be.async;dojo.locale=_1bd.locale;var rev="$Rev: 30226 $".match(/\d+/);dojo.version={major:1,minor:8,patch:3,flag:"",revision:rev?+rev[0]:NaN,toString:function(){var v=dojo.version;return v.major+"."+v.minor+"."+v.patch+v.flag+" ("+v.revision+")";}};1||has.add("extend-dojo",1);(Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}"))(dojo);if(0){dojo.exit=function(_1c4){quit(_1c4);};}else{dojo.exit=function(){};}1||has.add("dojo-guarantee-console",1);if(1){typeof console!="undefined"||(console={});var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var tn;i=0;while((tn=cn[i++])){if(!console[tn]){(function(){var tcn=tn+"";console[tcn]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console["log"](a.join(" "));}:function(){};console[tcn]._fake=true;})();}}}has.add("dojo-debug-messages",!!_1bd.isDebug);dojo.deprecated=dojo.experimental=function(){};if(has("dojo-debug-messages")){dojo.deprecated=function(_1c5,_1c6,_1c7){var _1c8="DEPRECATED: "+_1c5;if(_1c6){_1c8+=" "+_1c6;}if(_1c7){_1c8+=" -- will be removed in version: "+_1c7;}console.warn(_1c8);};dojo.experimental=function(_1c9,_1ca){var _1cb="EXPERIMENTAL: "+_1c9+" -- APIs subject to change without notice.";if(_1ca){_1cb+=" "+_1ca;}console.warn(_1cb);};}1||has.add("dojo-modulePaths",1);if(1){if(_1bd.modulePaths){dojo.deprecated("dojo.modulePaths","use paths configuration");var _1cc={};for(p in _1bd.modulePaths){_1cc[p.replace(/\./g,"/")]=_1bd.modulePaths[p];}_1be({paths:_1cc});}}1||has.add("dojo-moduleUrl",1);if(1){dojo.moduleUrl=function(_1cd,url){dojo.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var _1ce=null;if(_1cd){_1ce=_1be.toUrl(_1cd.replace(/\./g,"/")+(url?("/"+url):"")+"/*.*").replace(/\/\*\.\*/,"")+(url?"":"/");}return _1ce;};}dojo._hasResource={};return dojo;});},"dojo/io-query":function(){define(["./_base/lang"],function(lang){var _1cf={};return {objectToQuery:function objectToQuery(map){var enc=encodeURIComponent,_1d0=[];for(var name in map){var _1d1=map[name];if(_1d1!=_1cf[name]){var _1d2=enc(name)+"=";if(lang.isArray(_1d1)){for(var i=0,l=_1d1.length;i<l;++i){_1d0.push(_1d2+enc(_1d1[i]));}}else{_1d0.push(_1d2+enc(_1d1));}}}return _1d0.join("&");},queryToObject:function queryToObject(str){var dec=decodeURIComponent,qp=str.split("&"),ret={},name,val;for(var i=0,l=qp.length,item;i<l;++i){item=qp[i];if(item.length){var s=item.indexOf("=");if(s<0){name=dec(item);val="";}else{name=dec(item.slice(0,s));val=dec(item.slice(s+1));}if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(lang.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}}return ret;}};});},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(dojo,_1d3,_1d4,_1d5,has,lang,when){var _1d6=function(){};var _1d7=Object.freeze||function(){};var _1d8=dojo.Deferred=function(_1d9){var _1da,_1db,_1dc,head,_1dd;var _1de=(this.promise=new _1d4());function _1df(_1e0){if(_1db){throw new Error("This deferred has already been resolved");}_1da=_1e0;_1db=true;_1e1();};function _1e1(){var _1e2;while(!_1e2&&_1dd){var _1e3=_1dd;_1dd=_1dd.next;if((_1e2=(_1e3.progress==_1d6))){_1db=false;}var func=(_1dc?_1e3.error:_1e3.resolved);if(has("config-useDeferredInstrumentation")){if(_1dc&&_1d3.instrumentRejected){_1d3.instrumentRejected(_1da,!!func);}}if(func){try{var _1e4=func(_1da);if(_1e4&&typeof _1e4.then==="function"){_1e4.then(lang.hitch(_1e3.deferred,"resolve"),lang.hitch(_1e3.deferred,"reject"),lang.hitch(_1e3.deferred,"progress"));continue;}var _1e5=_1e2&&_1e4===undefined;if(_1e2&&!_1e5){_1dc=_1e4 instanceof Error;}_1e3.deferred[_1e5&&_1dc?"reject":"resolve"](_1e5?_1da:_1e4);}catch(e){_1e3.deferred.reject(e);}}else{if(_1dc){_1e3.deferred.reject(_1da);}else{_1e3.deferred.resolve(_1da);}}}};this.resolve=this.callback=function(_1e6){this.fired=0;this.results=[_1e6,null];_1df(_1e6);};this.reject=this.errback=function(_1e7){_1dc=true;this.fired=1;if(has("config-useDeferredInstrumentation")){if(_1d3.instrumentRejected){_1d3.instrumentRejected(_1e7,!!_1dd);}}_1df(_1e7);this.results=[null,_1e7];};this.progress=function(_1e8){var _1e9=_1dd;while(_1e9){var _1ea=_1e9.progress;_1ea&&_1ea(_1e8);_1e9=_1e9.next;}};this.addCallbacks=function(_1eb,_1ec){this.then(_1eb,_1ec,_1d6);return this;};_1de.then=this.then=function(_1ed,_1ee,_1ef){var _1f0=_1ef==_1d6?this:new _1d8(_1de.cancel);var _1f1={resolved:_1ed,error:_1ee,progress:_1ef,deferred:_1f0};if(_1dd){head=head.next=_1f1;}else{_1dd=head=_1f1;}if(_1db){_1e1();}return _1f0.promise;};var _1f2=this;_1de.cancel=this.cancel=function(){if(!_1db){var _1f3=_1d9&&_1d9(_1f2);if(!_1db){if(!(_1f3 instanceof Error)){_1f3=new _1d5(_1f3);}_1f3.log=false;_1f2.reject(_1f3);}}};_1d7(_1de);};lang.extend(_1d8,{addCallback:function(_1f4){return this.addCallbacks(lang.hitch.apply(dojo,arguments));},addErrback:function(_1f5){return this.addCallbacks(null,lang.hitch.apply(dojo,arguments));},addBoth:function(_1f6){var _1f7=lang.hitch.apply(dojo,arguments);return this.addCallbacks(_1f7,_1f7);},fired:-1});_1d8.when=dojo.when=when;return _1d8;});},"dojo/NodeList-dom":function(){define(["./_base/kernel","./query","./_base/array","./_base/lang","./dom-class","./dom-construct","./dom-geometry","./dom-attr","./dom-style"],function(dojo,_1f8,_1f9,lang,_1fa,_1fb,_1fc,_1fd,_1fe){var _1ff=function(a){return a.length==1&&(typeof a[0]=="string");};var _200=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};var _201=_1f8.NodeList,awc=_201._adaptWithCondition,aafe=_201._adaptAsForEach,aam=_201._adaptAsMap;function _202(_203){return function(node,name,_204){if(arguments.length==2){return _203[typeof name=="string"?"get":"set"](node,name);}return _203.set(node,name,_204);};};lang.extend(_201,{_normalize:function(_205,_206){var _207=_205.parse===true;if(typeof _205.template=="string"){var _208=_205.templateFunc||(dojo.string&&dojo.string.substitute);_205=_208?_208(_205.template,_205):_205;}var type=(typeof _205);if(type=="string"||type=="number"){_205=_1fb.toDom(_205,(_206&&_206.ownerDocument));if(_205.nodeType==11){_205=lang._toArray(_205.childNodes);}else{_205=[_205];}}else{if(!lang.isArrayLike(_205)){_205=[_205];}else{if(!lang.isArray(_205)){_205=lang._toArray(_205);}}}if(_207){_205._runParse=true;}return _205;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_209,_20a,_20b){if(_209.nodeType!=1&&_20a=="only"){return;}var _20c=_209,_20d;var _20e=ary.length;for(var i=_20e-1;i>=0;i--){var node=(_20b?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_20d){_20d=_20c.ownerDocument.createElement("div");}_20d.appendChild(node);dojo.parser.parse(_20d);node=_20d.firstChild;while(_20d.firstChild){_20d.removeChild(_20d.firstChild);}}if(i==_20e-1){_1fb.place(node,_20c,_20a);}else{_20c.parentNode.insertBefore(node,_20c);}_20c=node;}},position:aam(_1fc.position),attr:awc(_202(_1fd),_1ff),style:awc(_202(_1fe),_1ff),addClass:aafe(_1fa.add),removeClass:aafe(_1fa.remove),toggleClass:aafe(_1fa.toggle),replaceClass:aafe(_1fa.replace),empty:aafe(_1fb.empty),removeAttr:aafe(_1fd.remove),marginBox:aam(_1fc.getMarginBox),place:function(_20f,_210){var item=_1f8(_20f)[0];return this.forEach(function(node){_1fb.place(node,item,_210);});},orphan:function(_211){return (_211?_1f8._filterResult(this,_211):this).forEach(_200);},adopt:function(_212,_213){return _1f8(_212).place(this[0],_213)._stash(this);},query:function(_214){if(!_214){return this;}var ret=new _201;this.map(function(node){_1f8(_214,node).forEach(function(_215){if(_215!==undefined){ret.push(_215);}});});return ret._stash(this);},filter:function(_216){var a=arguments,_217=this,_218=0;if(typeof _216=="string"){_217=_1f8._filterResult(this,a[0]);if(a.length==1){return _217._stash(this);}_218=1;}return this._wrap(_1f9.filter(_217,a[_218],a[_218+1]),this);},addContent:function(_219,_21a){_219=this._normalize(_219,this[0]);for(var i=0,node;(node=this[i]);i++){this._place(_219,node,_21a,i>0);}return this;}});return _201;});},"dojo/query":function(){define(["./_base/kernel","./has","./dom","./on","./_base/array","./_base/lang","./selector/_loader","./selector/_loader!default"],function(dojo,has,dom,on,_21b,lang,_21c,_21d){"use strict";has.add("array-extensible",function(){return lang.delegate([],{length:1}).length==1&&!has("bug-for-in-skips-shadowed");});var ap=Array.prototype,aps=ap.slice,apc=ap.concat,_21e=_21b.forEach;var tnl=function(a,_21f,_220){var _221=new (_220||this._NodeListCtor||nl)(a);return _21f?_221._stash(_21f):_221;};var _222=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||dojo.global;return function(node){a[0]=node;return f.apply(o,a);};};var _223=function(f,o){return function(){this.forEach(_222(f,arguments,o));return this;};};var _224=function(f,o){return function(){return this.map(_222(f,arguments,o));};};var _225=function(f,o){return function(){return this.filter(_222(f,arguments,o));};};var _226=function(f,g,o){return function(){var a=arguments,body=_222(f,a,o);if(g.call(o||dojo.global,a)){return this.map(body);}this.forEach(body);return this;};};var _227=function(_228){var _229=this instanceof nl&&has("array-extensible");if(typeof _228=="number"){_228=Array(_228);}var _22a=(_228&&"length" in _228)?_228:arguments;if(_229||!_22a.sort){var _22b=_229?this:[],l=_22b.length=_22a.length;for(var i=0;i<l;i++){_22b[i]=_22a[i];}if(_229){return _22b;}_22a=_22b;}lang._mixin(_22a,nlp);_22a._NodeListCtor=function(_22c){return nl(_22c);};return _22a;};var nl=_227,nlp=nl.prototype=has("array-extensible")?[]:{};nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_224;nl._adaptAsForEach=_223;nl._adaptAsFilter=_225;nl._adaptWithCondition=_226;_21e(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});_21e(["indexOf","lastIndexOf","every","some"],function(name){var f=_21b[name];nlp[name]=function(){return f.apply(dojo,[this].concat(aps.call(arguments,0)));};});lang.extend(_227,{constructor:nl,_NodeListCtor:nl,toString:function(){return this.join(",");},_stash:function(_22d){this._parent=_22d;return this;},on:function(_22e,_22f){var _230=this.map(function(node){return on(node,_22e,_22f);});_230.remove=function(){for(var i=0;i<_230.length;i++){_230[i].remove();}};return _230;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor(0);}},concat:function(item){var t=aps.call(this,0),m=_21b.map(arguments,function(a){return aps.call(a,0);});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(_21b.map(this,func,obj),this);},forEach:function(_231,_232){_21e(this,_231,_232);return this;},filter:function(_233){var a=arguments,_234=this,_235=0;if(typeof _233=="string"){_234=_236._filterResult(this,a[0]);if(a.length==1){return _234._stash(this);}_235=1;}return this._wrap(_21b.filter(_234,a[_235],a[_235+1]),this);},instantiate:function(_237,_238){var c=lang.isFunction(_237)?_237:lang.getObject(_237);_238=_238||{};return this.forEach(function(node){new c(_238,node);});},at:function(){var t=new this._NodeListCtor(0);_21e(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});function _239(_23a,_23b){var _23c=function(_23d,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new _23b([]);}}var _23e=typeof _23d=="string"?_23a(_23d,root):_23d?_23d.orphan?_23d:[_23d]:[];if(_23e.orphan){return _23e;}return new _23b(_23e);};_23c.matches=_23a.match||function(node,_23f,root){return _23c.filter([node],_23f,root).length>0;};_23c.filter=_23a.filter||function(_240,_241,root){return _23c(_241,root).filter(function(node){return _21b.indexOf(_240,node)>-1;});};if(typeof _23a!="function"){var _242=_23a.search;_23a=function(_243,root){return _242(root||document,_243);};}return _23c;};var _236=_239(_21d,_227);dojo.query=_239(_21d,function(_244){return _227(_244);});_236.load=function(id,_245,_246){_21c.load(id,_245,function(_247){_246(_239(_247,_227));});};dojo._filterQueryResult=_236._filterResult=function(_248,_249,root){return new _227(_236.filter(_248,_249,root));};dojo.NodeList=_236.NodeList=_227;return _236;});},"dojo/has":function(){define(["require","module"],function(_24a,_24b){var has=_24a.has||function(){};if(!1){var _24c=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,_24d=this,doc=_24c&&document,_24e=doc&&doc.createElement("DiV"),_24f=(_24b.config&&_24b.config())||{};has=function(name){return typeof _24f[name]=="function"?(_24f[name]=_24f[name](_24d,doc,_24e)):_24f[name];};has.cache=_24f;has.add=function(name,test,now,_250){(typeof _24f[name]=="undefined"||_250)&&(_24f[name]=test);return now&&has(name);};1||has.add("host-browser",_24c);1||has.add("dom",_24c);1||has.add("dojo-dom-ready-api",1);1||has.add("dojo-sniff",1);}if(1){has.add("dom-addeventlistener",!!document.addEventListener);has.add("touch","ontouchstart" in document);has.add("device-width",screen.availWidth||innerWidth);var form=document.createElement("form");has.add("dom-attributes-explicit",form.attributes.length==0);has.add("dom-attributes-specified-flag",form.attributes.length>0&&form.attributes.length<40);}has.clearElement=function(_251){_251.innerHTML="";return _251;};has.normalize=function(id,_252){var _253=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=_253[i++];if(term==":"){return 0;}else{if(_253[i++]=="?"){if(!skip&&has(term)){return get();}else{get(true);return get(skip);}}return term||0;}};id=get();return id&&_252(id);};has.load=function(id,_254,_255){if(id){_254([id],_255);}else{_255();}};return has;});},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","./json","./lang","./array"],function(dojo,has,_256,_257,json,lang,_258){if(!1){console.error("cannot load the Dojo v1.x loader with a foreign loader");return 0;}1||has.add("dojo-fast-sync-require",1);var _259=function(id){return {src:_257.id,id:id};},_25a=function(name){return name.replace(/\./g,"/");},_25b=/\/\/>>built/,_25c=[],_25d=[],_25e=function(mid,_25f,_260){_25c.push(_260);_258.forEach(mid.split(","),function(mid){var _261=_262(mid,_25f.module);_25d.push(_261);_263(_261);});_264();},_264=(1?function(){var _265,mid;for(mid in _266){_265=_266[mid];if(_265.noReqPluginCheck===undefined){_265.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(!_265.executed&&!_265.noReqPluginCheck&&_265.injected==_267){return;}}_268(function(){var _269=_25c;_25c=[];_258.forEach(_269,function(cb){cb(1);});});}:(function(){var _26a,_26b=function(m){_26a[m.mid]=1;for(var t,_26c,deps=m.deps||[],i=0;i<deps.length;i++){_26c=deps[i];if(!(t=_26a[_26c.mid])){if(t===0||!_26b(_26c)){_26a[m.mid]=0;return false;}}}return true;};return function(){var _26d,mid;_26a={};for(mid in _266){_26d=_266[mid];if(_26d.executed||_26d.noReqPluginCheck){_26a[mid]=1;}else{if(_26d.noReqPluginCheck!==0){_26d.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(_26d.noReqPluginCheck){_26a[mid]=1;}else{if(_26d.injected!==_299){_26a[mid]=0;}}}}for(var t,i=0,end=_25d.length;i<end;i++){_26d=_25d[i];if(!(t=_26a[_26d.mid])){if(t===0||!_26b(_26d)){return;}}}_268(function(){var _26e=_25c;_25c=[];_258.forEach(_26e,function(cb){cb(1);});});};})()),_26f=function(mid,_270,_271){_270([mid],function(_272){_270(_272.names,function(){for(var _273="",args=[],i=0;i<arguments.length;i++){_273+="var "+_272.names[i]+"= arguments["+i+"]; ";args.push(arguments[i]);}eval(_273);var _274=_270.module,_275=[],_276,_277={provide:function(_278){_278=_25a(_278);var _279=_262(_278,_274);if(_279!==_274){_29f(_279);}},require:function(_27a,_27b){_27a=_25a(_27a);_27b&&(_262(_27a,_274).result=_29a);_275.push(_27a);},requireLocalization:function(_27c,_27d,_27e){if(!_276){_276=["dojo/i18n"];}_27e=(_27e||dojo.locale).toLowerCase();_27c=_25a(_27c)+"/nls/"+(/root/i.test(_27e)?"":_27e+"/")+_25a(_27d);if(_262(_27c,_274).isXd){_276.push("dojo/i18n!"+_27c);}},loadInit:function(f){f();}},hold={},p;try{for(p in _277){hold[p]=dojo[p];dojo[p]=_277[p];}_272.def.apply(null,args);}catch(e){_27f("error",[_259("failedDojoLoadInit"),e]);}finally{for(p in _277){dojo[p]=hold[p];}}if(_276){_275=_275.concat(_276);}if(_275.length){_25e(_275.join(","),_270,_271);}else{_271();}});});},_280=function(text,_281,_282){var _283=/\(|\)/g,_284=1,_285;_283.lastIndex=_281;while((_285=_283.exec(text))){if(_285[0]==")"){_284-=1;}else{_284+=1;}if(_284==0){break;}}if(_284!=0){throw "unmatched paren around character "+_283.lastIndex+" in: "+text;}return [dojo.trim(text.substring(_282,_283.lastIndex))+";\n",_283.lastIndex];},_286=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,_287=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,_288=/(^|\s)(require|define)\s*\(/m,_289=function(text,_28a){var _28b,_28c,_28d,_28e,_28f=[],_290=[],_291=[];_28a=_28a||text.replace(_286,function(_292){_287.lastIndex=_288.lastIndex=0;return (_287.test(_292)||_288.test(_292))?"":_292;});while((_28b=_287.exec(_28a))){_28c=_287.lastIndex;_28d=_28c-_28b[0].length;_28e=_280(_28a,_28c,_28d);if(_28b[2]=="loadInit"){_28f.push(_28e[0]);}else{_290.push(_28e[0]);}_287.lastIndex=_28e[1];}_291=_28f.concat(_290);if(_291.length||!_288.test(_28a)){return [text.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),_291.join(""),_291];}else{return 0;}},_293=function(_294,text){var _295,id,_296=[],_297=[];if(_25b.test(text)||!(_295=_289(text))){return 0;}id=_294.mid+"-*loadInit";for(var p in _262("dojo",_294).result.scopeMap){_296.push(p);_297.push("\""+p+"\"");}return "// xdomain rewrite of "+_294.mid+"\n"+"define('"+id+"',{\n"+"\tnames:"+dojo.toJson(_296)+",\n"+"\tdef:function("+_296.join(",")+"){"+_295[1]+"}"+"});\n\n"+"define("+dojo.toJson(_296.concat(["dojo/loadInit!"+id]))+", function("+_296.join(",")+"){\n"+_295[0]+"});";},_298=_256.initSyncLoader(_25e,_264,_293),sync=_298.sync,_267=_298.requested,_299=_298.arrived,_29a=_298.nonmodule,_29b=_298.executing,_29c=_298.executed,_29d=_298.syncExecStack,_266=_298.modules,_29e=_298.execQ,_262=_298.getModule,_263=_298.injectModule,_29f=_298.setArrived,_27f=_298.signal,_2a0=_298.finishExec,_2a1=_298.execModule,_2a2=_298.getLegacyMode,_268=_298.guardCheckComplete;_25e=_298.dojoRequirePlugin;dojo.provide=function(mid){var _2a3=_29d[0],_2a4=lang.mixin(_262(_25a(mid),_256.module),{executed:_29b,result:lang.getObject(mid,true)});_29f(_2a4);if(_2a3){(_2a3.provides||(_2a3.provides=[])).push(function(){_2a4.result=lang.getObject(mid);delete _2a4.provides;_2a4.executed!==_29c&&_2a0(_2a4);});}return _2a4.result;};has.add("config-publishRequireResult",1,0,0);dojo.require=function(_2a5,_2a6){function _2a7(mid,_2a8){var _2a9=_262(_25a(mid),_256.module);if(_29d.length&&_29d[0].finish){_29d[0].finish.push(mid);return undefined;}if(_2a9.executed){return _2a9.result;}_2a8&&(_2a9.result=_29a);var _2aa=_2a2();_263(_2a9);_2aa=_2a2();if(_2a9.executed!==_29c&&_2a9.injected===_299){_298.guardCheckComplete(function(){_2a1(_2a9);});}if(_2a9.executed){return _2a9.result;}if(_2aa==sync){if(_2a9.cjs){_29e.unshift(_2a9);}else{_29d.length&&(_29d[0].finish=[mid]);}}else{_29e.push(_2a9);}return undefined;};var _2ab=_2a7(_2a5,_2a6);if(has("config-publishRequireResult")&&!lang.exists(_2a5)&&_2ab!==undefined){lang.setObject(_2a5,_2ab);}return _2ab;};dojo.loadInit=function(f){f();};dojo.registerModulePath=function(_2ac,_2ad){var _2ae={};_2ae[_2ac.replace(/\./g,"/")]=_2ad;_256({paths:_2ae});};dojo.platformRequire=function(_2af){var _2b0=(_2af.common||[]).concat(_2af[dojo._name]||_2af["default"]||[]),temp;while(_2b0.length){if(lang.isArray(temp=_2b0.shift())){dojo.require.apply(dojo,temp);}else{dojo.require(temp);}}};dojo.requireIf=dojo.requireAfterIf=function(_2b1,_2b2,_2b3){if(_2b1){dojo.require(_2b2,_2b3);}};dojo.requireLocalization=function(_2b4,_2b5,_2b6){_256(["../i18n"],function(i18n){i18n.getLocalization(_2b4,_2b5,_2b6);});};return {extractLegacyApiApplications:_289,require:_25e,loadInit:_26f};});},"dojo/json":function(){define(["./has"],function(has){"use strict";var _2b7=typeof JSON!="undefined";has.add("json-parse",_2b7);has.add("json-stringify",_2b7&&JSON.stringify({a:0},function(k,v){return v||1;})=="{\"a\":1}");if(has("json-stringify")){return JSON;}else{var _2b8=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};return {parse:has("json-parse")?JSON.parse:function(str,_2b9){if(_2b9&&!/^([\s\[\{]*(?:"(?:\\.|[^"])+"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str)){throw new SyntaxError("Invalid characters in JSON");}return eval("("+str+")");},stringify:function(_2ba,_2bb,_2bc){var _2bd;if(typeof _2bb=="string"){_2bc=_2bb;_2bb=null;}function _2be(it,_2bf,key){if(_2bb){it=_2bb(key,it);}var val,_2c0=typeof it;if(_2c0=="number"){return isFinite(it)?it+"":"null";}if(_2c0=="boolean"){return it+"";}if(it===null){return "null";}if(typeof it=="string"){return _2b8(it);}if(_2c0=="function"||_2c0=="undefined"){return _2bd;}if(typeof it.toJSON=="function"){return _2be(it.toJSON(key),_2bf,key);}if(it instanceof Date){return "\"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z\"".replace(/\{(\w+)(\+)?\}/g,function(t,prop,plus){var num=it["getUTC"+prop]()+(plus?1:0);return num<10?"0"+num:num;});}if(it.valueOf()!==it){return _2be(it.valueOf(),_2bf,key);}var _2c1=_2bc?(_2bf+_2bc):"";var sep=_2bc?" ":"";var _2c2=_2bc?"\n":"";if(it instanceof Array){var itl=it.length,res=[];for(key=0;key<itl;key++){var obj=it[key];val=_2be(obj,_2c1,key);if(typeof val!="string"){val="null";}res.push(_2c2+_2c1+val);}return "["+res.join(",")+_2c2+_2bf+"]";}var _2c3=[];for(key in it){var _2c4;if(it.hasOwnProperty(key)){if(typeof key=="number"){_2c4="\""+key+"\"";}else{if(typeof key=="string"){_2c4=_2b8(key);}else{continue;}}val=_2be(it[key],_2c1,key);if(typeof val!="string"){continue;}_2c3.push(_2c2+_2c1+_2c4+":"+sep+val);}}return "{"+_2c3.join(",")+_2c2+_2bf+"}";};return _2be(_2ba,"","");}};}});},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var mix=lang.mixin,op=Object.prototype,opts=op.toString,xtor=new Function,_2c5=0,_2c6="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _2c7(_2c8,_2c9){var _2ca=[],_2cb=[{cls:0,refs:[]}],_2cc={},_2cd=1,l=_2c8.length,i=0,j,lin,base,top,_2ce,rec,name,refs;for(;i<l;++i){base=_2c8[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_2c9);}else{if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_2c9);}}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){_2ce=lin[j].prototype;if(!_2ce.hasOwnProperty("declaredClass")){_2ce.declaredClass="uniqName_"+(_2c5++);}name=_2ce.declaredClass;if(!_2cc.hasOwnProperty(name)){_2cc[name]={count:0,refs:[],cls:lin[j]};++_2cd;}rec=_2cc[name];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_2cb[0].refs.push(top);}while(_2cb.length){top=_2cb.pop();_2ca.push(top.cls);--_2cd;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break;}_2ca.push(top.cls);--_2cd;}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){_2cb.push(top);}}}}if(_2cd){err("can't build consistent linearization",_2c9);}base=_2c8[0];_2ca[0]=base?base._meta&&base===_2ca[_2ca.length-base._meta.bases.length]?base._meta.bases.length:1:0;return _2ca;};function _2cf(args,a,f){var name,_2d0,_2d1,_2d2,meta,base,_2d3,opf,pos,_2d4=this._inherited=this._inherited||{};if(typeof args=="string"){name=args;args=a;a=f;}f=0;_2d2=args.callee;name=name||_2d2.nom;if(!name){err("can't deduce a name to call inherited()",this.declaredClass);}meta=this.constructor._meta;_2d1=meta.bases;pos=_2d4.p;if(name!=_2c6){if(_2d4.c!==_2d2){pos=0;base=_2d1[0];meta=base._meta;if(meta.hidden[name]!==_2d2){_2d0=meta.chains;if(_2d0&&typeof _2d0[name]=="string"){err("calling chained method with inherited: "+name,this.declaredClass);}do{meta=base._meta;_2d3=base.prototype;if(meta&&(_2d3[name]===_2d2&&_2d3.hasOwnProperty(name)||meta.hidden[name]===_2d2)){break;}}while(base=_2d1[++pos]);pos=base?pos:-1;}}base=_2d1[++pos];if(base){_2d3=base.prototype;if(base._meta&&_2d3.hasOwnProperty(name)){f=_2d3[name];}else{opf=op[name];do{_2d3=base.prototype;f=_2d3[name];if(f&&(base._meta?_2d3.hasOwnProperty(name):f!==opf)){break;}}while(base=_2d1[++pos]);}}f=base&&f||op[name];}else{if(_2d4.c!==_2d2){pos=0;meta=_2d1[0]._meta;if(meta&&meta.ctor!==_2d2){_2d0=meta.chains;if(!_2d0||_2d0.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(base=_2d1[++pos]){meta=base._meta;if(meta&&meta.ctor===_2d2){break;}}pos=base?pos:-1;}}while(base=_2d1[++pos]){meta=base._meta;f=meta?meta.ctor:base;if(f){break;}}f=base&&f;}_2d4.c=f;_2d4.p=pos;if(f){return a===true?f:f.apply(this,a||args);}};function _2d5(name,args){if(typeof name=="string"){return this.__inherited(name,args,true);}return this.__inherited(name,true);};function _2d6(args,a1,a2){var f=this.getInherited(args,a1);if(f){return f.apply(this,a2||a1||args);}};var _2d7=dojo.config.isDebug?_2d6:_2cf;function _2d8(cls){var _2d9=this.constructor._meta.bases;for(var i=0,l=_2d9.length;i<l;++i){if(_2d9[i]===cls){return true;}}return this instanceof cls;};function _2da(_2db,_2dc){for(var name in _2dc){if(name!=_2c6&&_2dc.hasOwnProperty(name)){_2db[name]=_2dc[name];}}if(has("bug-for-in-skips-shadowed")){for(var _2dd=lang._extraNames,i=_2dd.length;i;){name=_2dd[--i];if(name!=_2c6&&_2dc.hasOwnProperty(name)){_2db[name]=_2dc[name];}}}};function _2de(_2df,_2e0){var name,t;for(name in _2e0){t=_2e0[name];if((t!==op[name]||!(name in op))&&name!=_2c6){if(opts.call(t)=="[object Function]"){t.nom=name;}_2df[name]=t;}}if(has("bug-for-in-skips-shadowed")){for(var _2e1=lang._extraNames,i=_2e1.length;i;){name=_2e1[--i];t=_2e0[name];if((t!==op[name]||!(name in op))&&name!=_2c6){if(opts.call(t)=="[object Function]"){t.nom=name;}_2df[name]=t;}}}return _2df;};function _2e2(_2e3){_2e4.safeMixin(this.prototype,_2e3);return this;};function _2e5(_2e6){return _2e4([this].concat(_2e6));};function _2e7(_2e8,_2e9){return function(){var a=arguments,args=a,a0=a[0],f,i,m,l=_2e8.length,_2ea;if(!(this instanceof a.callee)){return _2eb(a);}if(_2e9&&(a0&&a0.preamble||this.preamble)){_2ea=new Array(_2e8.length);_2ea[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_2e8[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_2ea[i]=a;}}for(i=l-1;i>=0;--i){f=_2e8[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_2ea?_2ea[i]:a);}}f=this.postscript;if(f){f.apply(this,args);}};};function _2ec(ctor,_2ed){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _2eb(a);}if(_2ed){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(ctor){ctor.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _2ee(_2ef){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _2eb(a);}for(;f=_2ef[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _2f0(name,_2f1,_2f2){return function(){var b,m,f,i=0,step=1;if(_2f2){i=_2f1.length-1;step=-1;}for(;b=_2f1[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments);}}};};function _2f3(ctor){xtor.prototype=ctor.prototype;var t=new xtor;xtor.prototype=null;return t;};function _2eb(args){var ctor=args.callee,t=_2f3(ctor);ctor.apply(t,args);return t;};function _2e4(_2f4,_2f5,_2f6){if(typeof _2f4!="string"){_2f6=_2f5;_2f5=_2f4;_2f4="";}_2f6=_2f6||{};var _2f7,i,t,ctor,name,_2f8,_2f9,_2fa=1,_2fb=_2f5;if(opts.call(_2f5)=="[object Array]"){_2f8=_2c7(_2f5,_2f4);t=_2f8[0];_2fa=_2f8.length-t;_2f5=_2f8[_2fa];}else{_2f8=[0];if(_2f5){if(opts.call(_2f5)=="[object Function]"){t=_2f5._meta;_2f8=_2f8.concat(t?t.bases:_2f5);}else{err("base class is not a callable constructor.",_2f4);}}else{if(_2f5!==null){err("unknown base class. Did you use dojo.require to pull it in?",_2f4);}}}if(_2f5){for(i=_2fa-1;;--i){_2f7=_2f3(_2f5);if(!i){break;}t=_2f8[i];(t._meta?_2da:mix)(_2f7,t.prototype);ctor=new Function;ctor.superclass=_2f5;ctor.prototype=_2f7;_2f5=_2f7.constructor=ctor;}}else{_2f7={};}_2e4.safeMixin(_2f7,_2f6);t=_2f6.constructor;if(t!==op.constructor){t.nom=_2c6;_2f7.constructor=t;}for(i=_2fa-1;i;--i){t=_2f8[i]._meta;if(t&&t.chains){_2f9=mix(_2f9||{},t.chains);}}if(_2f7["-chains-"]){_2f9=mix(_2f9||{},_2f7["-chains-"]);}t=!_2f9||!_2f9.hasOwnProperty(_2c6);_2f8[0]=ctor=(_2f9&&_2f9.constructor==="manual")?_2ee(_2f8):(_2f8.length==1?_2ec(_2f6.constructor,t):_2e7(_2f8,t));ctor._meta={bases:_2f8,hidden:_2f6,chains:_2f9,parents:_2fb,ctor:_2f6.constructor};ctor.superclass=_2f5&&_2f5.prototype;ctor.extend=_2e2;ctor.createSubclass=_2e5;ctor.prototype=_2f7;_2f7.constructor=ctor;_2f7.getInherited=_2d5;_2f7.isInstanceOf=_2d8;_2f7.inherited=_2d7;_2f7.__inherited=_2cf;if(_2f4){_2f7.declaredClass=_2f4;lang.setObject(_2f4,ctor);}if(_2f9){for(name in _2f9){if(_2f7[name]&&typeof _2f9[name]=="string"&&name!=_2c6){t=_2f7[name]=_2f0(name,_2f8,_2f9[name]==="after");t.nom=name;}}}return ctor;};dojo.safeMixin=_2e4.safeMixin=_2de;dojo.declare=_2e4;return _2e4;});},"dojo/dom":function(){define(["./sniff","./_base/window"],function(has,win){if(has("ie")<=7){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}var dom={};if(has("ie")){dom.byId=function(id,doc){if(typeof id!="string"){return id;}var _2fc=doc||win.doc,te=id&&_2fc.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_2fc.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dom.byId=function(id,doc){return ((typeof id=="string")?(doc||win.doc).getElementById(id):id)||null;};}dom.isDescendant=function(node,_2fd){try{node=dom.byId(node);_2fd=dom.byId(_2fd);while(node){if(node==_2fd){return true;}node=node.parentNode;}}catch(e){}return false;};has.add("css-user-select",function(_2fe,doc,_2ff){if(!_2ff){return false;}var _300=_2ff.style;var _301=["Khtml","O","ms","Moz","Webkit"],i=_301.length,name="userSelect",_302;do{if(typeof _300[name]!=="undefined"){return name;}}while(i--&&(name=_301[i]+"UserSelect"));return false;});var _303=has("css-user-select");dom.setSelectable=_303?function(node,_304){dom.byId(node).style[_303]=_304?"":"none";}:function(node,_305){node=dom.byId(node);var _306=node.getElementsByTagName("*"),i=_306.length;if(_305){node.removeAttribute("unselectable");while(i--){_306[i].removeAttribute("unselectable");}}else{node.setAttribute("unselectable","on");while(i--){_306[i].setAttribute("unselectable","on");}}};return dom;});},"dojo/_base/browser":function(){if(require.has){require.has.add("config-selectorEngine","acme");}define(["../ready","./kernel","./connect","./unload","./window","./event","./html","./NodeList","../query","./xhr","./fx"],function(dojo){return dojo;});},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_307,lang,win){var trim=lang.trim;var each=_307.forEach;var _308=function(){return win.doc;};var _309=(_308().compatMode)=="BackCompat";var _30a=">~+";var _30b=false;var _30c=function(){return true;};var _30d=function(_30e){if(_30a.indexOf(_30e.slice(-1))>=0){_30e+=" * ";}else{_30e+=" ";}var ts=function(s,e){return trim(_30e.slice(s,e));};var _30f=[];var _310=-1,_311=-1,_312=-1,_313=-1,_314=-1,inId=-1,_315=-1,_316,lc="",cc="",_317;var x=0,ql=_30e.length,_318=null,_319=null;var _31a=function(){if(_315>=0){var tv=(_315==x)?null:ts(_315,x);_318[(_30a.indexOf(tv)<0)?"tag":"oper"]=tv;_315=-1;}};var _31b=function(){if(inId>=0){_318.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _31c=function(){if(_314>=0){_318.classes.push(ts(_314+1,x).replace(/\\/g,""));_314=-1;}};var _31d=function(){_31b();_31a();_31c();};var _31e=function(){_31d();if(_313>=0){_318.pseudos.push({name:ts(_313+1,x)});}_318.loops=(_318.pseudos.length||_318.attrs.length||_318.classes.length);_318.oquery=_318.query=ts(_317,x);_318.otag=_318.tag=(_318["oper"])?null:(_318.tag||"*");if(_318.tag){_318.tag=_318.tag.toUpperCase();}if(_30f.length&&(_30f[_30f.length-1].oper)){_318.infixOper=_30f.pop();_318.query=_318.infixOper.query+" "+_318.query;}_30f.push(_318);_318=null;};for(;lc=cc,cc=_30e.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_318){_317=x;_318={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return _30b?this.otag:this.tag;}};_315=x;}if(_316){if(cc==_316){_316=null;}continue;}else{if(cc=="'"||cc=="\""){_316=cc;continue;}}if(_310>=0){if(cc=="]"){if(!_319.attr){_319.attr=ts(_310+1,x);}else{_319.matchFor=ts((_312||_310+1),x);}var cmf=_319.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_319.matchFor=cmf.slice(1,-1);}}if(_319.matchFor){_319.matchFor=_319.matchFor.replace(/\\/g,"");}_318.attrs.push(_319);_319=null;_310=_312=-1;}else{if(cc=="="){var _31f=("|~^$*".indexOf(lc)>=0)?lc:"";_319.type=_31f+cc;_319.attr=ts(_310+1,x-_31f.length);_312=x+1;}}}else{if(_311>=0){if(cc==")"){if(_313>=0){_319.value=ts(_311+1,x);}_313=_311=-1;}}else{if(cc=="#"){_31d();inId=x+1;}else{if(cc=="."){_31d();_314=x;}else{if(cc==":"){_31d();_313=x;}else{if(cc=="["){_31d();_310=x;_319={};}else{if(cc=="("){if(_313>=0){_319={name:ts(_313+1,x),value:null};_318.pseudos.push(_319);}_311=x;}else{if((cc==" ")&&(lc!=cc)){_31e();}}}}}}}}}return _30f;};var _320=function(_321,_322){if(!_321){return _322;}if(!_322){return _321;}return function(){return _321.apply(window,arguments)&&_322.apply(window,arguments);};};var _323=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _324=function(n){return (1==n.nodeType);};var _325="";var _326=function(elem,attr){if(!elem){return _325;}if(attr=="class"){return elem.className||_325;}if(attr=="for"){return elem.htmlFor||_325;}if(attr=="style"){return elem.style.cssText||_325;}return (_30b?elem.getAttribute(attr):elem.getAttribute(attr,2))||_325;};var _327={"*=":function(attr,_328){return function(elem){return (_326(elem,attr).indexOf(_328)>=0);};},"^=":function(attr,_329){return function(elem){return (_326(elem,attr).indexOf(_329)==0);};},"$=":function(attr,_32a){return function(elem){var ea=" "+_326(elem,attr);var _32b=ea.lastIndexOf(_32a);return _32b>-1&&(_32b==(ea.length-_32a.length));};},"~=":function(attr,_32c){var tval=" "+_32c+" ";return function(elem){var ea=" "+_326(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_32d){var _32e=_32d+"-";return function(elem){var ea=_326(elem,attr);return ((ea==_32d)||(ea.indexOf(_32e)==0));};},"=":function(attr,_32f){return function(elem){return (_326(elem,attr)==_32f);};}};var _330=(typeof _308().firstChild.nextElementSibling=="undefined");var _331=!_330?"nextElementSibling":"nextSibling";var _332=!_330?"previousElementSibling":"previousSibling";var _333=(_330?_324:_30c);var _334=function(node){while(node=node[_332]){if(_333(node)){return false;}}return true;};var _335=function(node){while(node=node[_331]){if(_333(node)){return false;}}return true;};var _336=function(node){var root=node.parentNode;root=root.nodeType!=7?root:root.nextSibling;var i=0,tret=root.children||root.childNodes,ci=(node["_i"]||node.getAttribute("_i")||-1),cl=(root["_l"]||(typeof root.getAttribute!=="undefined"?root.getAttribute("_l"):-1));if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}if(has("ie")&&typeof root.setAttribute!=="undefined"){root.setAttribute("_l",l);}else{root["_l"]=l;}ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_331]){if(_333(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _337=function(elem){return !((_336(elem))%2);};var _338=function(elem){return ((_336(elem))%2);};var _339={"checked":function(name,_33a){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_33b){return function(elem){return elem.disabled;};},"enabled":function(name,_33c){return function(elem){return !elem.disabled;};},"first-child":function(){return _334;},"last-child":function(){return _335;},"only-child":function(name,_33d){return function(node){return _334(node)&&_335(node);};},"empty":function(name,_33e){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_33f){var cz=_33f.charAt(0);if(cz=="\""||cz=="'"){_33f=_33f.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_33f)>=0);};},"not":function(name,_340){var p=_30d(_340)[0];var _341={el:1};if(p.tag!="*"){_341.tag=1;}if(!p.classes.length){_341.classes=1;}var ntf=_342(p,_341);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_343){var pi=parseInt;if(_343=="odd"){return _338;}else{if(_343=="even"){return _337;}}if(_343.indexOf("n")!=-1){var _344=_343.split("n",2);var pred=_344[0]?((_344[0]=="-")?-1:pi(_344[0])):1;var idx=_344[1]?pi(_344[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_336(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_343=idx;}}var _345=pi(_343);return function(elem){return (_336(elem)==_345);};}};var _346=(has("ie")<9||has("ie")==9&&has("quirks"))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_30b?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _342=function(_347,_348){if(!_347){return _30c;}_348=_348||{};var ff=null;if(!("el" in _348)){ff=_320(ff,_324);}if(!("tag" in _348)){if(_347.tag!="*"){ff=_320(ff,function(elem){return (elem&&((_30b?elem.tagName:elem.tagName.toUpperCase())==_347.getTag()));});}}if(!("classes" in _348)){each(_347.classes,function(_349,idx,arr){var re=new RegExp("(?:^|\\s)"+_349+"(?:\\s|$)");ff=_320(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _348)){each(_347.pseudos,function(_34a){var pn=_34a.name;if(_339[pn]){ff=_320(ff,_339[pn](pn,_34a.value));}});}if(!("attrs" in _348)){each(_347.attrs,function(attr){var _34b;var a=attr.attr;if(attr.type&&_327[attr.type]){_34b=_327[attr.type](a,attr.matchFor);}else{if(a.length){_34b=_346(a);}}if(_34b){ff=_320(ff,_34b);}});}if(!("id" in _348)){if(_347.id){ff=_320(ff,function(elem){return (!!elem&&(elem.id==_347.id));});}}if(!ff){if(!("default" in _348)){ff=_30c;}}return ff;};var _34c=function(_34d){return function(node,ret,bag){while(node=node[_331]){if(_330&&(!_324(node))){continue;}if((!bag||_34e(node,bag))&&_34d(node)){ret.push(node);}break;}return ret;};};var _34f=function(_350){return function(root,ret,bag){var te=root[_331];while(te){if(_333(te)){if(bag&&!_34e(te,bag)){break;}if(_350(te)){ret.push(te);}}te=te[_331];}return ret;};};var _351=function(_352){_352=_352||_30c;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_333(te)&&(!bag||_34e(te,bag))&&(_352(te,x))){ret.push(te);}}return ret;};};var _353=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _354={};var _355=function(_356){var _357=_354[_356.query];if(_357){return _357;}var io=_356.infixOper;var oper=(io?io.oper:"");var _358=_342(_356,{el:1});var qt=_356.tag;var _359=("*"==qt);var ecs=_308()["getElementsByClassName"];if(!oper){if(_356.id){_358=(!_356.loops&&_359)?_30c:_342(_356,{el:1,id:1});_357=function(root,arr){var te=dom.byId(_356.id,(root.ownerDocument||root));if(!te||!_358(te)){return;}if(9==root.nodeType){return _323(te,arr);}else{if(_353(te,root)){return _323(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_356.classes.length&&!_309){_358=_342(_356,{el:1,classes:1,id:1});var _35a=_356.classes.join(" ");_357=function(root,arr,bag){var ret=_323(0,arr),te,x=0;var tret=root.getElementsByClassName(_35a);while((te=tret[x++])){if(_358(te,root)&&_34e(te,bag)){ret.push(te);}}return ret;};}else{if(!_359&&!_356.loops){_357=function(root,arr,bag){var ret=_323(0,arr),te,x=0;var tag=_356.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_34e(te,bag)){ret.push(te);}}return ret;};}else{_358=_342(_356,{el:1,tag:1,id:1});_357=function(root,arr,bag){var ret=_323(0,arr),te,x=0;var tag=_356.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_358(te,root)&&_34e(te,bag)){ret.push(te);}}return ret;};}}}}else{var _35b={el:1};if(_359){_35b.tag=1;}_358=_342(_356,_35b);if("+"==oper){_357=_34c(_358);}else{if("~"==oper){_357=_34f(_358);}else{if(">"==oper){_357=_351(_358);}}}}return _354[_356.query]=_357;};var _35c=function(root,_35d){var _35e=_323(root),qp,x,te,qpl=_35d.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_35d[i];x=_35e.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_355(qp);for(var j=0;(te=_35e[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_35e=ret;}return ret;};var _35f={},_360={};var _361=function(_362){var _363=_30d(trim(_362));if(_363.length==1){var tef=_355(_363[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _35c(root,_363);};};var _364=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _365=!!_308()[qsa];var _366=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _367=function(_368,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_368;};var _369=/([^[]*)([^\]]*])?/g;var _36a=function(_36b,_36c,att){return _36c.replace(_366,_367)+(att||"");};var _36d=function(_36e,_36f){_36e=_36e.replace(_369,_36a);if(_365){var _370=_360[_36e];if(_370&&!_36f){return _370;}}var _371=_35f[_36e];if(_371){return _371;}var qcz=_36e.charAt(0);var _372=(-1==_36e.indexOf(" "));if((_36e.indexOf("#")>=0)&&(_372)){_36f=true;}var _373=(_365&&(!_36f)&&(_30a.indexOf(qcz)==-1)&&(!has("ie")||(_36e.indexOf(":")==-1))&&(!(_309&&(_36e.indexOf(".")>=0)))&&(_36e.indexOf(":contains")==-1)&&(_36e.indexOf(":checked")==-1)&&(_36e.indexOf("|=")==-1));if(_373){var tq=(_30a.indexOf(_36e.charAt(_36e.length-1))>=0)?(_36e+" *"):_36e;return _360[_36e]=function(root){try{if(!((9==root.nodeType)||_372)){throw "";}var r=root[qsa](tq);r[_364]=true;return r;}catch(e){return _36d(_36e,true)(root);}};}else{var _374=_36e.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _35f[_36e]=((_374.length<2)?_361(_36e):function(root){var _375=0,ret=[],tp;while((tp=_374[_375++])){ret=ret.concat(_361(tp)(root));}return ret;});}};var _376=0;var _377=has("ie")?function(node){if(_30b){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_376)||_376);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_376));};var _34e=function(node,bag){if(!bag){return 1;}var id=_377(node);if(!bag[id]){return bag[id]=1;}return 0;};var _378="_zipIdx";var _379=function(arr){if(arr&&arr.nozip){return arr;}var ret=[];if(!arr||!arr.length){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_376++;var x,te;if(has("ie")&&_30b){var _37a=_376+"";arr[0].setAttribute(_378,_37a);for(x=1;te=arr[x];x++){if(arr[x].getAttribute(_378)!=_37a){ret.push(te);}te.setAttribute(_378,_37a);}}else{if(has("ie")&&arr.commentStrip){try{for(x=1;te=arr[x];x++){if(_324(te)){ret.push(te);}}}catch(e){}}else{if(arr[0]){arr[0][_378]=_376;}for(x=1;te=arr[x];x++){if(arr[x][_378]!=_376){ret.push(te);}te[_378]=_376;}}}return ret;};var _37b=function(_37c,root){root=root||_308();var od=root.ownerDocument||root;_30b=(od.createElement("div").tagName==="div");var r=_36d(_37c)(root);if(r&&r.nozip){return r;}return _379(r);};_37b.filter=function(_37d,_37e,root){var _37f=[],_380=_30d(_37e),_381=(_380.length==1&&!/[^\w#\.]/.test(_37e))?_342(_380[0]):function(node){return _307.indexOf(_37b(_37e,dom.byId(root)),node)!=-1;};for(var x=0,te;te=_37d[x];x++){if(_381(te)){_37f.push(te);}}return _37f;};return _37b;});},"dojo/errors/RequestTimeoutError":function(){define("dojo/errors/RequestTimeoutError",["./create","./RequestError"],function(_382,_383){return _382("RequestTimeoutError",null,_383,{dojoType:"timeout"});});},"dojo/dom-style":function(){define("dojo/dom-style",["./sniff","./dom"],function(has,dom){var _384,_385={};if(has("webkit")){_384=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(has("ie")&&(has("ie")<9||has("quirks"))){_384=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{};};}else{_384=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}_385.getComputedStyle=_384;var _386;if(!has("ie")){_386=function(_387,_388){return parseFloat(_388)||0;};}else{_386=function(_389,_38a){if(!_38a){return 0;}if(_38a=="medium"){return 4;}if(_38a.slice&&_38a.slice(-2)=="px"){return parseFloat(_38a);}var s=_389.style,rs=_389.runtimeStyle,cs=_389.currentStyle,_38b=s.left,_38c=rs.left;rs.left=cs.left;try{s.left=_38a;_38a=s.pixelLeft;}catch(e){_38a=0;}s.left=_38b;rs.left=_38c;return _38a;};}_385.toPixelValue=_386;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};var _38d=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return _384(node).opacity;};var _38e=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node,_38f){var ov=_38f*100,_390=_38f==1;node.style.zoom=_390?"":1;if(!af(node)){if(_390){return _38f;}node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}else{af(node,1).Opacity=ov;}af(node,1).Enabled=!_390;if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_38e(td,_38f);}}}return _38f;}:function(node,_391){return node.style.opacity=_391;};var _392={left:true,top:true};var _393=/margin|padding|width|height|max|min|offset/;function _394(node,type,_395){type=type.toLowerCase();if(has("ie")){if(_395=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_395){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _392)){_392[type]=_393.test(type);}return _392[type]?_386(node,_395):_395;};var _396=has("ie")?"styleFloat":"cssFloat",_397={"cssFloat":_396,"styleFloat":_396,"float":_396};_385.get=function getStyle(node,name){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");if(l==2&&op){return _38d(n);}name=_397[name]||name;var s=_385.getComputedStyle(n);return (l==1)?s:_394(n,name,s[name]||n.style[name]);};_385.set=function setStyle(node,name,_398){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");name=_397[name]||name;if(l==3){return op?_38e(n,_398):n.style[name]=_398;}for(var x in name){_385.set(node,x,name[x]);}return _385.getComputedStyle(n);};return _385;});},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(has,win,dom,_399){var geom={};geom.boxModel="content-box";if(has("ie")){geom.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}geom.getPadExtents=function getPadExtents(node,_39a){node=dom.byId(node);var s=_39a||_399.getComputedStyle(node),px=_399.toPixelValue,l=px(node,s.paddingLeft),t=px(node,s.paddingTop),r=px(node,s.paddingRight),b=px(node,s.paddingBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};var none="none";geom.getBorderExtents=function getBorderExtents(node,_39b){node=dom.byId(node);var px=_399.toPixelValue,s=_39b||_399.getComputedStyle(node),l=s.borderLeftStyle!=none?px(node,s.borderLeftWidth):0,t=s.borderTopStyle!=none?px(node,s.borderTopWidth):0,r=s.borderRightStyle!=none?px(node,s.borderRightWidth):0,b=s.borderBottomStyle!=none?px(node,s.borderBottomWidth):0;return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getPadBorderExtents=function getPadBorderExtents(node,_39c){node=dom.byId(node);var s=_39c||_399.getComputedStyle(node),p=geom.getPadExtents(node,s),b=geom.getBorderExtents(node,s);return {l:p.l+b.l,t:p.t+b.t,r:p.r+b.r,b:p.b+b.b,w:p.w+b.w,h:p.h+b.h};};geom.getMarginExtents=function getMarginExtents(node,_39d){node=dom.byId(node);var s=_39d||_399.getComputedStyle(node),px=_399.toPixelValue,l=px(node,s.marginLeft),t=px(node,s.marginTop),r=px(node,s.marginRight),b=px(node,s.marginBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getMarginBox=function getMarginBox(node,_39e){node=dom.byId(node);var s=_39e||_399.getComputedStyle(node),me=geom.getMarginExtents(node,s),l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode,px=_399.toPixelValue,pcs;if(has("mozilla")){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl;t=st;}else{if(p&&p.style){pcs=_399.getComputedStyle(p);if(pcs.overflow!="visible"){l+=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t+=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}}else{if(has("opera")||(has("ie")==8&&!has("quirks"))){if(p){pcs=_399.getComputedStyle(p);l-=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t-=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};geom.getContentBox=function getContentBox(node,_39f){node=dom.byId(node);var s=_39f||_399.getComputedStyle(node),w=node.clientWidth,h,pe=geom.getPadExtents(node,s),be=geom.getBorderExtents(node,s);if(!w){w=node.offsetWidth;h=node.offsetHeight;}else{h=node.clientHeight;be.w=be.h=0;}if(has("opera")){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};function _3a0(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};function _3a1(node){return node.tagName.toLowerCase()=="button"||node.tagName.toLowerCase()=="input"&&(node.getAttribute("type")||"").toLowerCase()=="button";};function _3a2(node){return geom.boxModel=="border-box"||node.tagName.toLowerCase()=="table"||_3a1(node);};geom.setContentSize=function setContentSize(node,box,_3a3){node=dom.byId(node);var w=box.w,h=box.h;if(_3a2(node)){var pb=geom.getPadBorderExtents(node,_3a3);if(w>=0){w+=pb.w;}if(h>=0){h+=pb.h;}}_3a0(node,NaN,NaN,w,h);};var _3a4={l:0,t:0,w:0,h:0};geom.setMarginBox=function setMarginBox(node,box,_3a5){node=dom.byId(node);var s=_3a5||_399.getComputedStyle(node),w=box.w,h=box.h,pb=_3a2(node)?_3a4:geom.getPadBorderExtents(node,s),mb=geom.getMarginExtents(node,s);if(has("webkit")){if(_3a1(node)){var ns=node.style;if(w>=0&&!ns.width){ns.width="4px";}if(h>=0&&!ns.height){ns.height="4px";}}}if(w>=0){w=Math.max(w-pb.w-mb.w,0);}if(h>=0){h=Math.max(h-pb.h-mb.h,0);}_3a0(node,box.l,box.t,w,h);};geom.isBodyLtr=function isBodyLtr(doc){doc=doc||win.doc;return (win.body(doc).dir||doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};geom.docScroll=function docScroll(doc){doc=doc||win.doc;var node=win.doc.parentWindow||win.doc.defaultView;return "pageXOffset" in node?{x:node.pageXOffset,y:node.pageYOffset}:(node=has("quirks")?win.body(doc):doc.documentElement)&&{x:geom.fixIeBiDiScrollLeft(node.scrollLeft||0,doc),y:node.scrollTop||0};};if(has("ie")){geom.getIeDocumentElementOffset=function getIeDocumentElementOffset(doc){doc=doc||win.doc;var de=doc.documentElement;if(has("ie")<8){var r=de.getBoundingClientRect(),l=r.left,t=r.top;if(has("ie")<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};}geom.fixIeBiDiScrollLeft=function fixIeBiDiScrollLeft(_3a6,doc){doc=doc||win.doc;var ie=has("ie");if(ie&&!geom.isBodyLtr(doc)){var qk=has("quirks"),de=qk?win.body(doc):doc.documentElement,pwin=win.global;if(ie==6&&!qk&&pwin.frameElement&&de.scrollHeight>de.clientHeight){_3a6+=de.clientLeft;}return (ie<8||qk)?(_3a6+de.clientWidth-de.scrollWidth):-_3a6;}return _3a6;};geom.position=function(node,_3a7){node=dom.byId(node);var db=win.body(node.ownerDocument),ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(has("ie")<9){var _3a8=geom.getIeDocumentElementOffset(node.ownerDocument);ret.x-=_3a8.x+(has("quirks")?db.clientLeft+db.offsetLeft:0);ret.y-=_3a8.y+(has("quirks")?db.clientTop+db.offsetTop:0);}if(_3a7){var _3a9=geom.docScroll(node.ownerDocument);ret.x+=_3a9.x;ret.y+=_3a9.y;}return ret;};geom.getMarginSize=function getMarginSize(node,_3aa){node=dom.byId(node);var me=geom.getMarginExtents(node,_3aa||_399.getComputedStyle(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};geom.normalizeEvent=function(_3ab){if(!("layerX" in _3ab)){_3ab.layerX=_3ab.offsetX;_3ab.layerY=_3ab.offsetY;}if(!has("dom-addeventlistener")){var se=_3ab.target;var doc=(se&&se.ownerDocument)||document;var _3ac=has("quirks")?doc.body:doc.documentElement;var _3ad=geom.getIeDocumentElementOffset(doc);_3ab.pageX=_3ab.clientX+geom.fixIeBiDiScrollLeft(_3ac.scrollLeft||0,doc)-_3ad.x;_3ab.pageY=_3ab.clientY+(_3ac.scrollTop||0)-_3ad.y;}};return geom;});},"dojo/dom-prop":function(){define(["exports","./_base/kernel","./sniff","./_base/lang","./dom","./dom-style","./dom-construct","./_base/connect"],function(_3ae,dojo,has,lang,dom,_3af,ctr,conn){var _3b0={},_3b1=0,_3b2=dojo._scopeName+"attrid";_3ae.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};_3ae.get=function getProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3b3=_3ae.names[lc]||name;return node[_3b3];};_3ae.set=function setProp(node,name,_3b4){node=dom.byId(node);var l=arguments.length;if(l==2&&typeof name!="string"){for(var x in name){_3ae.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_3b5=_3ae.names[lc]||name;if(_3b5=="style"&&typeof _3b4!="string"){_3af.set(node,_3b4);return node;}if(_3b5=="innerHTML"){if(has("ie")&&node.tagName.toLowerCase() in {col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}){ctr.empty(node);node.appendChild(ctr.toDom(_3b4,node.ownerDocument));}else{node[_3b5]=_3b4;}return node;}if(lang.isFunction(_3b4)){var _3b6=node[_3b2];if(!_3b6){_3b6=_3b1++;node[_3b2]=_3b6;}if(!_3b0[_3b6]){_3b0[_3b6]={};}var h=_3b0[_3b6][_3b5];if(h){conn.disconnect(h);}else{try{delete node[_3b5];}catch(e){}}if(_3b4){_3b0[_3b6][_3b5]=conn.connect(node,_3b5,_3b4);}else{node[_3b5]=null;}return node;}node[_3b5]=_3b4;return node;};});},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(_3b7,_3b8){"use strict";return function when(_3b9,_3ba,_3bb,_3bc){var _3bd=_3b9&&typeof _3b9.then==="function";var _3be=_3bd&&_3b9 instanceof _3b8;if(!_3bd){if(_3ba){return _3ba(_3b9);}else{return new _3b7().resolve(_3b9);}}else{if(!_3be){var _3bf=new _3b7(_3b9.cancel);_3b9.then(_3bf.resolve,_3bf.reject,_3bf.progress);_3b9=_3bf.promise;}}if(_3ba||_3bb||_3bc){return _3b9.then(_3ba,_3bb,_3bc);}return _3b9;};});},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(_3c0,has,lang,dom,_3c1,prop){var _3c2={innerHTML:1,className:1,htmlFor:has("ie"),value:1},_3c3={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _3c4(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};_3c0.has=function hasAttr(node,name){var lc=name.toLowerCase();return _3c2[prop.names[lc]||name]||_3c4(dom.byId(node),_3c3[lc]||name);};_3c0.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3c5=prop.names[lc]||name,_3c6=_3c2[_3c5],_3c7=node[_3c5];if(_3c6&&typeof _3c7!="undefined"){return _3c7;}if(_3c5!="href"&&(typeof _3c7=="boolean"||lang.isFunction(_3c7))){return _3c7;}var _3c8=_3c3[lc]||name;return _3c4(node,_3c8)?node.getAttribute(_3c8):null;};_3c0.set=function setAttr(node,name,_3c9){node=dom.byId(node);if(arguments.length==2){for(var x in name){_3c0.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_3ca=prop.names[lc]||name,_3cb=_3c2[_3ca];if(_3ca=="style"&&typeof _3c9!="string"){_3c1.set(node,_3c9);return node;}if(_3cb||typeof _3c9=="boolean"||lang.isFunction(_3c9)){return prop.set(node,name,_3c9);}node.setAttribute(_3c3[lc]||name,_3c9);return node;};_3c0.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(_3c3[name.toLowerCase()]||name);};_3c0.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3cc=prop.names[lc]||name;if((_3cc in node)&&_3cc!="href"){return node[_3cc];}var _3cd=_3c3[lc]||name;return _3c4(node,_3cd)?node.getAttribute(_3cd):null;};});},"dojo/dom-construct":function(){define(["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr","./on"],function(_3ce,dojo,has,win,dom,attr,on){var _3cf={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_3d0=/<\s*([\w\:]+)/,_3d1={},_3d2=0,_3d3="__"+dojo._scopeName+"ToDomId";for(var _3d4 in _3cf){if(_3cf.hasOwnProperty(_3d4)){var tw=_3cf[_3d4];tw.pre=_3d4=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}function _3d5(node,ref){var _3d6=ref.parentNode;if(_3d6){_3d6.insertBefore(node,ref);}};function _3d7(node,ref){var _3d8=ref.parentNode;if(_3d8){if(_3d8.lastChild==ref){_3d8.appendChild(node);}else{_3d8.insertBefore(node,ref.nextSibling);}}};_3ce.toDom=function toDom(frag,doc){doc=doc||win.doc;var _3d9=doc[_3d3];if(!_3d9){doc[_3d3]=_3d9=++_3d2+"";_3d1[_3d9]=doc.createElement("div");}frag+="";var _3da=frag.match(_3d0),tag=_3da?_3da[1].toLowerCase():"",_3db=_3d1[_3d9],wrap,i,fc,df;if(_3da&&_3cf[tag]){wrap=_3cf[tag];_3db.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_3db=_3db.firstChild;}}else{_3db.innerHTML=frag;}if(_3db.childNodes.length==1){return _3db.removeChild(_3db.firstChild);}df=doc.createDocumentFragment();while((fc=_3db.firstChild)){df.appendChild(fc);}return df;};_3ce.place=function place(node,_3dc,_3dd){_3dc=dom.byId(_3dc);if(typeof node=="string"){node=/^\s*</.test(node)?_3ce.toDom(node,_3dc.ownerDocument):dom.byId(node);}if(typeof _3dd=="number"){var cn=_3dc.childNodes;if(!cn.length||cn.length<=_3dd){_3dc.appendChild(node);}else{_3d5(node,cn[_3dd<0?0:_3dd]);}}else{switch(_3dd){case "before":_3d5(node,_3dc);break;case "after":_3d7(node,_3dc);break;case "replace":_3dc.parentNode.replaceChild(node,_3dc);break;case "only":_3ce.empty(_3dc);_3dc.appendChild(node);break;case "first":if(_3dc.firstChild){_3d5(node,_3dc.firstChild);break;}default:_3dc.appendChild(node);}}return node;};_3ce.create=function create(tag,_3de,_3df,pos){var doc=win.doc;if(_3df){_3df=dom.byId(_3df);doc=_3df.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_3de){attr.set(tag,_3de);}if(_3df){_3ce.place(tag,_3df,pos);}return tag;};var _3e0=has("ie")?function(node){try{node.innerHTML="";}catch(e){for(var c;c=node.lastChild;){_3e1(c,node);}}}:function(node){node.innerHTML="";};_3ce.empty=function empty(node){_3e0(dom.byId(node));};function _3e1(node,_3e2){if(node.firstChild){_3e0(node);}if(_3e2){_3e2.removeChild(node);}};_3ce.destroy=function destroy(node){node=dom.byId(node);if(!node){return;}_3e1(node,node.parentNode);};});},"dojo/request/xhr":function(){define("dojo/request/xhr",["../errors/RequestError","./watch","./handlers","./util","../has"],function(_3e3,_3e4,_3e5,util,has){has.add("native-xhr",function(){return typeof XMLHttpRequest!=="undefined";});has.add("dojo-force-activex-xhr",function(){return has("activex")&&!document.addEventListener&&window.location.protocol==="file:";});has.add("native-xhr2",function(){if(!has("native-xhr")){return;}var x=new XMLHttpRequest();return typeof x["addEventListener"]!=="undefined"&&(typeof opera==="undefined"||typeof x["upload"]!=="undefined");});has.add("native-formdata",function(){return typeof FormData==="function";});function _3e6(_3e7,_3e8){var _3e9=_3e7.xhr;_3e7.status=_3e7.xhr.status;_3e7.text=_3e9.responseText;if(_3e7.options.handleAs==="xml"){_3e7.data=_3e9.responseXML;}if(!_3e8){try{_3e5(_3e7);}catch(e){_3e8=e;}}if(_3e8){this.reject(_3e8);}else{if(util.checkStatus(_3e9.status)){this.resolve(_3e7);}else{_3e8=new _3e3("Unable to load "+_3e7.url+" status: "+_3e9.status,_3e7);this.reject(_3e8);}}};var _3ea,_3eb,_3ec,_3ed;if(has("native-xhr2")){_3ea=function(_3ee){return !this.isFulfilled();};_3ed=function(dfd,_3ef){_3ef.xhr.abort();};_3ec=function(_3f0,dfd,_3f1){function _3f2(evt){dfd.handleResponse(_3f1);};function _3f3(evt){var _3f4=evt.target;var _3f5=new _3e3("Unable to load "+_3f1.url+" status: "+_3f4.status,_3f1);dfd.handleResponse(_3f1,_3f5);};function _3f6(evt){if(evt.lengthComputable){_3f1.loaded=evt.loaded;_3f1.total=evt.total;dfd.progress(_3f1);}};_3f0.addEventListener("load",_3f2,false);_3f0.addEventListener("error",_3f3,false);_3f0.addEventListener("progress",_3f6,false);return function(){_3f0.removeEventListener("load",_3f2,false);_3f0.removeEventListener("error",_3f3,false);_3f0.removeEventListener("progress",_3f6,false);};};}else{_3ea=function(_3f7){return _3f7.xhr.readyState;};_3eb=function(_3f8){return 4===_3f8.xhr.readyState;};_3ed=function(dfd,_3f9){var xhr=_3f9.xhr;var _3fa=typeof xhr.abort;if(_3fa==="function"||_3fa==="object"||_3fa==="unknown"){xhr.abort();}};}var _3fb,_3fc={data:null,query:null,sync:false,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"}};function xhr(url,_3fd,_3fe){var _3ff=util.parseArgs(url,util.deepCreate(_3fc,_3fd),has("native-formdata")&&_3fd&&_3fd.data&&_3fd.data instanceof FormData);url=_3ff.url;_3fd=_3ff.options;var _400,last=function(){_400&&_400();};var dfd=util.deferred(_3ff,_3ed,_3ea,_3eb,_3e6,last);var _401=_3ff.xhr=xhr._create();if(!_401){dfd.cancel(new _3e3("XHR was not created"));return _3fe?dfd:dfd.promise;}_3ff.getHeader=function(_402){return this.xhr.getResponseHeader(_402);};if(_3ec){_400=_3ec(_401,dfd,_3ff);}var data=_3fd.data,_403=!_3fd.sync,_404=_3fd.method;try{_401.open(_404,url,_403,_3fd.user||_3fb,_3fd.password||_3fb);if(_3fd.withCredentials){_401.withCredentials=_3fd.withCredentials;}var _405=_3fd.headers,_406;if(_405){for(var hdr in _405){if(hdr.toLowerCase()==="content-type"){_406=_405[hdr];}else{if(_405[hdr]){_401.setRequestHeader(hdr,_405[hdr]);}}}}if(_406&&_406!==false){_401.setRequestHeader("Content-Type",_406);}if(!_405||!("X-Requested-With" in _405)){_401.setRequestHeader("X-Requested-With","XMLHttpRequest");}if(util.notify){util.notify.emit("send",_3ff,dfd.promise.cancel);}_401.send(data);}catch(e){dfd.reject(e);}_3e4(dfd);_401=null;return _3fe?dfd:dfd.promise;};xhr._create=function(){throw new Error("XMLHTTP not available");};if(has("native-xhr")&&!has("dojo-force-activex-xhr")){xhr._create=function(){return new XMLHttpRequest();};}else{if(has("activex")){try{new ActiveXObject("Msxml2.XMLHTTP");xhr._create=function(){return new ActiveXObject("Msxml2.XMLHTTP");};}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP");xhr._create=function(){return new ActiveXObject("Microsoft.XMLHTTP");};}catch(e){}}}}util.addCommonMethods(xhr);return xhr;});},"dojo/text":function(){define(["./_base/kernel","require","./has","./_base/xhr"],function(dojo,_407,has,xhr){var _408;if(1){_408=function(url,sync,load){xhr("GET",{url:url,sync:!!sync,load:load,headers:dojo.config.textPluginHeaders||{}});};}else{if(_407.getText){_408=_407.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _409={},_40a=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _40b=text.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_40b){text=_40b[1];}}else{text="";}return text;},_40c={},_40d={};dojo.cache=function(_40e,url,_40f){var key;if(typeof _40e=="string"){if(/\//.test(_40e)){key=_40e;_40f=url;}else{key=_407.toUrl(_40e.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_40e+"";_40f=url;}var val=(_40f!=undefined&&typeof _40f!="string")?_40f.value:_40f,_410=_40f&&_40f.sanitize;if(typeof val=="string"){_409[key]=val;return _410?_40a(val):val;}else{if(val===null){delete _409[key];return null;}else{if(!(key in _409)){_408(key,true,function(text){_409[key]=text;});}return _410?_40a(_409[key]):_409[key];}}};return {dynamic:true,normalize:function(id,_411){var _412=id.split("!"),url=_412[0];return (/^\./.test(url)?_411(url):url)+(_412[1]?"!"+_412[1]:"");},load:function(id,_413,load){var _414=id.split("!"),_415=_414.length>1,_416=_414[0],url=_413.toUrl(_414[0]),_417="url:"+url,text=_40c,_418=function(text){load(_415?_40a(text):text);};if(_416 in _409){text=_409[_416];}else{if(_417 in _413.cache){text=_413.cache[_417];}else{if(url in _409){text=_409[url];}}}if(text===_40c){if(_40d[url]){_40d[url].push(_418);}else{var _419=_40d[url]=[_418];_408(url,!_413.async,function(text){_409[_416]=_409[url]=text;for(var i=0;i<_419.length;){_419[i++](text);}delete _40d[url];});}}else{_418(text);}}};});},"dojo/keys":function(){define("dojo/keys",["./_base/kernel","./sniff"],function(dojo,has){return dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:has("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:has("mac")&&!has("air")?(has("safari")?91:224):17};});},"dojo/domReady":function(){define(["./has"],function(has){var _41a=this,doc=document,_41b={"loaded":1,"complete":1},_41c=typeof doc.readyState!="string",_41d=!!_41b[doc.readyState];if(_41c){doc.readyState="loading";}if(!_41d){var _41e=[],_41f=[],_420=function(evt){evt=evt||_41a.event;if(_41d||(evt.type=="readystatechange"&&!_41b[doc.readyState])){return;}_41d=1;if(_41c){doc.readyState="complete";}while(_41e.length){(_41e.shift())(doc);}},on=function(node,_421){node.addEventListener(_421,_420,false);_41e.push(function(){node.removeEventListener(_421,_420,false);});};if(!has("dom-addeventlistener")){on=function(node,_422){_422="on"+_422;node.attachEvent(_422,_420);_41e.push(function(){node.detachEvent(_422,_420);});};var div=doc.createElement("div");try{if(div.doScroll&&_41a.frameElement===null){_41f.push(function(){try{div.doScroll("left");return 1;}catch(e){}});}}catch(e){}}on(doc,"DOMContentLoaded");on(_41a,"load");if("onreadystatechange" in doc){on(doc,"readystatechange");}else{if(!_41c){_41f.push(function(){return _41b[doc.readyState];});}}if(_41f.length){var _423=function(){if(_41d){return;}var i=_41f.length;while(i--){if(_41f[i]()){_420("poller");return;}}setTimeout(_423,30);};_423();}}function _424(_425){if(_41d){_425(doc);}else{_41e.push(_425);}};_424.load=function(id,req,load){_424(load);};return _424;});},"dojo/_base/lang":function(){define("dojo/_base/lang",["./kernel","../has","../sniff"],function(dojo,has){has.add("bug-for-in-skips-shadowed",function(){for(var i in {toString:1}){return 0;}return 1;});var _426=has("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_427=_426.length,_428=function(_429,_42a,_42b){var p,i=0,_42c=dojo.global;if(!_42b){if(!_429.length){return _42c;}else{p=_429[i++];try{_42b=dojo.scopeMap[p]&&dojo.scopeMap[p][1];}catch(e){}_42b=_42b||(p in _42c?_42c[p]:(_42a?_42c[p]={}:undefined));}}while(_42b&&(p=_429[i++])){_42b=(p in _42b?_42b[p]:(_42a?_42b[p]={}:undefined));}return _42b;},opts=Object.prototype.toString,_42d=function(obj,_42e,_42f){return (_42f||[]).concat(Array.prototype.slice.call(obj,_42e||0));},_430=/\{([^\}]+)\}/g;var lang={_extraNames:_426,_mixin:function(dest,_431,_432){var name,s,i,_433={};for(name in _431){s=_431[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _433)||_433[name]!==s))){dest[name]=_432?_432(s):s;}}if(has("bug-for-in-skips-shadowed")){if(_431){for(i=0;i<_427;++i){name=_426[i];s=_431[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _433)||_433[name]!==s))){dest[name]=_432?_432(s):s;}}}}return dest;},mixin:function(dest,_434){if(!dest){dest={};}for(var i=1,l=arguments.length;i<l;i++){lang._mixin(dest,arguments[i]);}return dest;},setObject:function(name,_435,_436){var _437=name.split("."),p=_437.pop(),obj=_428(_437,true,_436);return obj&&p?(obj[p]=_435):undefined;},getObject:function(name,_438,_439){return _428(name.split("."),_438,_439);},exists:function(name,obj){return lang.getObject(name,false,obj)!==undefined;},isString:function(it){return (typeof it=="string"||it instanceof String);},isArray:function(it){return it&&(it instanceof Array||typeof it=="array");},isFunction:function(it){return opts.call(it)==="[object Function]";},isObject:function(it){return it!==undefined&&(it===null||typeof it=="object"||lang.isArray(it)||lang.isFunction(it));},isArrayLike:function(it){return it&&it!==undefined&&!lang.isString(it)&&!lang.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(lang.isArray(it)||isFinite(it.length));},isAlien:function(it){return it&&!lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));},extend:function(ctor,_43a){for(var i=1,l=arguments.length;i<l;i++){lang._mixin(ctor.prototype,arguments[i]);}return ctor;},_hitchArgs:function(_43b,_43c){var pre=lang._toArray(arguments,2);var _43d=lang.isString(_43c);return function(){var args=lang._toArray(arguments);var f=_43d?(_43b||dojo.global)[_43c]:_43c;return f&&f.apply(_43b||this,pre.concat(args));};},hitch:function(_43e,_43f){if(arguments.length>2){return lang._hitchArgs.apply(dojo,arguments);}if(!_43f){_43f=_43e;_43e=null;}if(lang.isString(_43f)){_43e=_43e||dojo.global;if(!_43e[_43f]){throw (["lang.hitch: scope[\"",_43f,"\"] is null (scope=\"",_43e,"\")"].join(""));}return function(){return _43e[_43f].apply(_43e,arguments||[]);};}return !_43e?_43f:function(){return _43f.apply(_43e,arguments||[]);};},delegate:(function(){function TMP(){};return function(obj,_440){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_440){lang._mixin(tmp,_440);}return tmp;};})(),_toArray:has("ie")?(function(){function slow(obj,_441,_442){var arr=_442||[];for(var x=_441||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};return function(obj){return ((obj.item)?slow:_42d).apply(this,arguments);};})():_42d,partial:function(_443){var arr=[null];return lang.hitch.apply(dojo,arr.concat(lang._toArray(arguments)));},clone:function(src){if(!src||typeof src!="object"||lang.isFunction(src)){return src;}if(src.nodeType&&"cloneNode" in src){return src.cloneNode(true);}if(src instanceof Date){return new Date(src.getTime());}if(src instanceof RegExp){return new RegExp(src);}var r,i,l;if(lang.isArray(src)){r=[];for(i=0,l=src.length;i<l;++i){if(i in src){r.push(lang.clone(src[i]));}}}else{r=src.constructor?new src.constructor():{};}return lang._mixin(r,src,lang.clone);},trim:String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");},replace:function(tmpl,map,_444){return tmpl.replace(_444||_430,lang.isFunction(map)?map:function(_445,k){return lang.getObject(k,false,map);});}};1&&lang.mixin(dojo,lang);return lang;});},"dojo/request/util":function(){define("dojo/request/util",["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang"],function(_446,_447,_448,_449,_44a,_44b,lang){_446.deepCopy=function deepCopy(_44c,_44d){for(var name in _44d){var tval=_44c[name],sval=_44d[name];if(tval!==sval){if(tval&&typeof tval==="object"&&sval&&typeof sval==="object"){_446.deepCopy(tval,sval);}else{_44c[name]=sval;}}}return _44c;};_446.deepCreate=function deepCreate(_44e,_44f){_44f=_44f||{};var _450=lang.delegate(_44e),name,_451;for(name in _44e){_451=_44e[name];if(_451&&typeof _451==="object"){_450[name]=_446.deepCreate(_451,_44f[name]);}}return _446.deepCopy(_450,_44f);};var _452=Object.freeze||function(obj){return obj;};function _453(_454){return _452(_454);};_446.deferred=function deferred(_455,_456,_457,_458,_459,last){var def=new _449(function(_45a){_456&&_456(def,_455);if(!_45a||!(_45a instanceof _447)&&!(_45a instanceof _448)){return new _448("Request canceled",_455);}return _45a;});def.response=_455;def.isValid=_457;def.isReady=_458;def.handleResponse=_459;function _45b(_45c){_45c.response=_455;throw _45c;};var _45d=def.then(_453).otherwise(_45b);if(_446.notify){_45d.then(lang.hitch(_446.notify,"emit","load"),lang.hitch(_446.notify,"emit","error"));}var _45e=_45d.then(function(_45f){return _45f.data||_45f.text;});var _460=_452(lang.delegate(_45e,{response:_45d}));if(last){def.then(function(_461){last.call(def,_461);},function(_462){last.call(def,_455,_462);});}def.promise=_460;def.then=_460.then;return def;};_446.addCommonMethods=function addCommonMethods(_463,_464){_44b.forEach(_464||["GET","POST","PUT","DELETE"],function(_465){_463[(_465==="DELETE"?"DEL":_465).toLowerCase()]=function(url,_466){_466=lang.delegate(_466||{});_466.method=_465;return _463(url,_466);};});};_446.parseArgs=function parseArgs(url,_467,_468){var data=_467.data,_469=_467.query;if(data&&!_468){if(typeof data==="object"){_467.data=_44a.objectToQuery(data);}}if(_469){if(typeof _469==="object"){_469=_44a.objectToQuery(_469);}if(_467.preventCache){_469+=(_469?"&":"")+"request.preventCache="+(+(new Date));}}else{if(_467.preventCache){_469="request.preventCache="+(+(new Date));}}if(url&&_469){url+=(~url.indexOf("?")?"&":"?")+_469;}return {url:url,options:_467,getHeader:function(_46a){return null;}};};_446.checkStatus=function(stat){stat=stat||0;return (stat>=200&&stat<300)||stat===304||stat===1223||!stat;};});},"dojo/Evented":function(){define("dojo/Evented",["./aspect","./on"],function(_46b,on){"use strict";var _46c=_46b.after;function _46d(){};_46d.prototype={on:function(type,_46e){return on.parse(this,type,_46e,function(_46f,type){return _46c(_46f,"on"+type,_46e,true);});},emit:function(type,_470){var args=[this];args.push.apply(args,arguments);return on.emit.apply(on,args);}};return _46d;});},"dojo/mouse":function(){define("dojo/mouse",["./_base/kernel","./on","./has","./dom","./_base/window"],function(dojo,on,has,dom,win){has.add("dom-quirks",win.doc&&win.doc.compatMode=="BackCompat");has.add("events-mouseenter",win.doc&&"onmouseenter" in win.doc.createElement("div"));has.add("events-mousewheel",win.doc&&"onmousewheel" in win.doc);var _471;if((has("dom-quirks")&&has("ie"))||!has("dom-addeventlistener")){_471={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_472){return e.button&_472;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{_471={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_473){return e.button==_473;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}dojo.mouseButtons=_471;function _474(type,_475){var _476=function(node,_477){return on(node,type,function(evt){if(_475){return _475(evt,_477);}if(!dom.isDescendant(evt.relatedTarget,node)){return _477.call(this,evt);}});};_476.bubble=function(_478){return _474(type,function(evt,_479){var _47a=_478(evt.target);var _47b=evt.relatedTarget;if(_47a&&(_47a!=(_47b&&_47b.nodeType==1&&_478(_47b)))){return _479.call(_47a,evt);}});};return _476;};var _47c;if(has("events-mousewheel")){_47c="mousewheel";}else{_47c=function(node,_47d){return on(node,"DOMMouseScroll",function(evt){evt.wheelDelta=-evt.detail;_47d.call(this,evt);});};}return {_eventHandler:_474,enter:_474("mouseover"),leave:_474("mouseout"),wheel:_47c,isLeft:_471.isLeft,isMiddle:_471.isMiddle,isRight:_471.isRight};});},"dojo/topic":function(){define("dojo/topic",["./Evented"],function(_47e){var hub=new _47e;return {publish:function(_47f,_480){return hub.emit.apply(hub,arguments);},subscribe:function(_481,_482){return hub.on.apply(hub,arguments);}};});},"dojo/_base/xhr":function(){define("dojo/_base/xhr",["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],function(dojo,has,_483,ioq,dom,_484,_485,_486,json,lang,_487,on,_488,_489,_48a,util){dojo._xhrObj=_48a._create;var cfg=dojo.config;dojo.objectToQuery=ioq.objectToQuery;dojo.queryToObject=ioq.queryToObject;dojo.fieldToObject=_484.fieldToObject;dojo.formToObject=_484.toObject;dojo.formToQuery=_484.toQuery;dojo.formToJson=_484.toJson;dojo._blockAsync=false;var _48b=dojo._contentHandlers=dojo.contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){return json.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!_486.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _48c=xhr.responseText;var _48d=_48c.indexOf("/*");var _48e=_48c.lastIndexOf("*/");if(_48d==-1||_48e==-1){throw new Error("JSON was not comment filtered");}return json.fromJson(_48c.substring(_48d+2,_48e));},"javascript":function(xhr){return dojo.eval(xhr.responseText);},"xml":function(xhr){var _48f=xhr.responseXML;if(has("ie")){if((!_48f||!_48f.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_487.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_48f=dom;}catch(e){return false;}return true;});}}return _48f;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _48b["json-comment-filtered"](xhr);}else{return _48b["json"](xhr);}}};dojo._ioSetArgs=function(args,_490,_491,_492){var _493={args:args,url:args.url};var _494=null;if(args.form){var form=dom.byId(args.form);var _495=form.getAttributeNode("action");_493.url=_493.url||(_495?_495.value:null);_494=_484.toObject(form);}var _496=[{}];if(_494){_496.push(_494);}if(args.content){_496.push(args.content);}if(args.preventCache){_496.push({"dojo.preventCache":new Date().valueOf()});}_493.query=ioq.objectToQuery(lang.mixin.apply(null,_496));_493.handleAs=args.handleAs||"text";var d=new _485(function(dfd){dfd.canceled=true;_490&&_490(dfd);var err=dfd.ioArgs.error;if(!err){err=new Error("request cancelled");err.dojoType="cancel";dfd.ioArgs.error=err;}return err;});d.addCallback(_491);var ld=args.load;if(ld&&lang.isFunction(ld)){d.addCallback(function(_497){return ld.call(args,_497,_493);});}var err=args.error;if(err&&lang.isFunction(err)){d.addErrback(function(_498){return err.call(args,_498,_493);});}var _499=args.handle;if(_499&&lang.isFunction(_499)){d.addBoth(function(_49a){return _499.call(args,_49a,_493);});}d.addErrback(function(_49b){return _492(_49b,d);});if(cfg.ioPublish&&dojo.publish&&_493.args.ioPublish!==false){d.addCallbacks(function(res){dojo.publish("/dojo/io/load",[d,res]);return res;},function(res){dojo.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){dojo.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_493;return d;};var _49c=function(dfd){var ret=_48b[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _49d=function(_49e,dfd){if(!dfd.ioArgs.args.failOk){console.error(_49e);}return _49e;};var _49f=function(dfd){if(_4a0<=0){_4a0=0;if(cfg.ioPublish&&dojo.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){dojo.publish("/dojo/io/stop");}}};var _4a0=0;_488.after(_489,"_onAction",function(){_4a0-=1;});_488.after(_489,"_onInFlight",_49f);dojo._ioCancelAll=_489.cancelAll;dojo._ioNotifyStart=function(dfd){if(cfg.ioPublish&&dojo.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_4a0){dojo.publish("/dojo/io/start");}_4a0+=1;dojo.publish("/dojo/io/send",[dfd]);}};dojo._ioWatch=function(dfd,_4a1,_4a2,_4a3){var args=dfd.ioArgs.options=dfd.ioArgs.args;lang.mixin(dfd,{response:dfd.ioArgs,isValid:function(_4a4){return _4a1(dfd);},isReady:function(_4a5){return _4a2(dfd);},handleResponse:function(_4a6){return _4a3(dfd);}});_489(dfd);_49f(dfd);};var _4a7="application/x-www-form-urlencoded";dojo._ioAddQueryToUrl=function(_4a8){if(_4a8.query.length){_4a8.url+=(_4a8.url.indexOf("?")==-1?"?":"&")+_4a8.query;_4a8.query=null;}};dojo.xhr=function(_4a9,args,_4aa){var rDfd;var dfd=dojo._ioSetArgs(args,function(dfd){rDfd&&rDfd.cancel();},_49c,_49d);var _4ab=dfd.ioArgs;if("postData" in args){_4ab.query=args.postData;}else{if("putData" in args){_4ab.query=args.putData;}else{if("rawBody" in args){_4ab.query=args.rawBody;}else{if((arguments.length>2&&!_4aa)||"POST|PUT".indexOf(_4a9.toUpperCase())===-1){dojo._ioAddQueryToUrl(_4ab);}}}}var _4ac={method:_4a9,handleAs:"text",timeout:args.timeout,withCredentials:args.withCredentials,ioArgs:_4ab};if(typeof args.headers!=="undefined"){_4ac.headers=args.headers;}if(typeof args.contentType!=="undefined"){if(!_4ac.headers){_4ac.headers={};}_4ac.headers["Content-Type"]=args.contentType;}if(typeof _4ab.query!=="undefined"){_4ac.data=_4ab.query;}if(typeof args.sync!=="undefined"){_4ac.sync=args.sync;}dojo._ioNotifyStart(dfd);try{rDfd=_48a(_4ab.url,_4ac,true);}catch(e){dfd.cancel();return dfd;}dfd.ioArgs.xhr=rDfd.response.xhr;rDfd.then(function(){dfd.resolve(dfd);}).otherwise(function(_4ad){_4ab.error=_4ad;if(_4ad.response){_4ad.status=_4ad.response.status;_4ad.responseText=_4ad.response.text;_4ad.xhr=_4ad.response.xhr;}dfd.reject(_4ad);});return dfd;};dojo.xhrGet=function(args){return dojo.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return dojo.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return dojo.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return dojo.xhr("DELETE",args);};dojo._isDocumentOk=function(x){return util.checkStatus(x.status);};dojo._getText=function(url){var _4ae;dojo.xhrGet({url:url,sync:true,load:function(text){_4ae=text;}});return _4ae;};lang.mixin(dojo.xhr,{_xhrObj:dojo._xhrObj,fieldToObject:_484.fieldToObject,formToObject:_484.toObject,objectToQuery:ioq.objectToQuery,formToQuery:_484.toQuery,formToJson:_484.toJson,queryToObject:ioq.queryToObject,contentHandlers:_48b,_ioSetArgs:dojo._ioSetArgs,_ioCancelAll:dojo._ioCancelAll,_ioNotifyStart:dojo._ioNotifyStart,_ioWatch:dojo._ioWatch,_ioAddQueryToUrl:dojo._ioAddQueryToUrl,_isDocumentOk:dojo._isDocumentOk,_getText:dojo._getText,get:dojo.xhrGet,post:dojo.xhrPost,put:dojo.xhrPut,del:dojo.xhrDelete});return dojo.xhr;});},"dojo/loadInit":function(){define("dojo/loadInit",["./_base/loader"],function(_4af){return {dynamic:0,normalize:function(id){return id;},load:_4af.loadInit};});},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(dojo,lang,on){var win=window;var _4b0={addOnWindowUnload:function(obj,_4b1){if(!dojo.windowUnloaded){on(win,"unload",(dojo.windowUnloaded=function(){}));}on(win,"unload",lang.hitch(obj,_4b1));},addOnUnload:function(obj,_4b2){on(win,"beforeunload",lang.hitch(obj,_4b2));}};dojo.addOnWindowUnload=_4b0.addOnWindowUnload;dojo.addOnUnload=_4b0.addOnUnload;return _4b0;});},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(has,lang,_4b3,_4b4,_4b5){"use strict";var _4b6=0,_4b7=1,_4b8=2;var _4b9="This deferred has already been fulfilled.";var _4ba=Object.freeze||function(){};var _4bb=function(_4bc,type,_4bd,_4be,_4bf){if(1){if(type===_4b8&&_4c0.instrumentRejected&&_4bc.length===0){_4c0.instrumentRejected(_4bd,false,_4be,_4bf);}}for(var i=0;i<_4bc.length;i++){_4c1(_4bc[i],type,_4bd,_4be);}};var _4c1=function(_4c2,type,_4c3,_4c4){var func=_4c2[type];var _4c5=_4c2.deferred;if(func){try{var _4c6=func(_4c3);if(type===_4b6){if(typeof _4c6!=="undefined"){_4c7(_4c5,type,_4c6);}}else{if(_4c6&&typeof _4c6.then==="function"){_4c2.cancel=_4c6.cancel;_4c6.then(_4c8(_4c5,_4b7),_4c8(_4c5,_4b8),_4c8(_4c5,_4b6));return;}_4c7(_4c5,_4b7,_4c6);}}catch(error){_4c7(_4c5,_4b8,error);}}else{_4c7(_4c5,type,_4c3);}if(1){if(type===_4b8&&_4c0.instrumentRejected){_4c0.instrumentRejected(_4c3,!!func,_4c4,_4c5.promise);}}};var _4c8=function(_4c9,type){return function(_4ca){_4c7(_4c9,type,_4ca);};};var _4c7=function(_4cb,type,_4cc){if(!_4cb.isCanceled()){switch(type){case _4b6:_4cb.progress(_4cc);break;case _4b7:_4cb.resolve(_4cc);break;case _4b8:_4cb.reject(_4cc);break;}}};var _4c0=function(_4cd){var _4ce=this.promise=new _4b4();var _4cf=this;var _4d0,_4d1,_4d2;var _4d3=false;var _4d4=[];if(1&&Error.captureStackTrace){Error.captureStackTrace(_4cf,_4c0);Error.captureStackTrace(_4ce,_4c0);}this.isResolved=_4ce.isResolved=function(){return _4d0===_4b7;};this.isRejected=_4ce.isRejected=function(){return _4d0===_4b8;};this.isFulfilled=_4ce.isFulfilled=function(){return !!_4d0;};this.isCanceled=_4ce.isCanceled=function(){return _4d3;};this.progress=function(_4d5,_4d6){if(!_4d0){_4bb(_4d4,_4b6,_4d5,null,_4cf);return _4ce;}else{if(_4d6===true){throw new Error(_4b9);}else{return _4ce;}}};this.resolve=function(_4d7,_4d8){if(!_4d0){_4bb(_4d4,_4d0=_4b7,_4d1=_4d7,null,_4cf);_4d4=null;return _4ce;}else{if(_4d8===true){throw new Error(_4b9);}else{return _4ce;}}};var _4d9=this.reject=function(_4da,_4db){if(!_4d0){if(1&&Error.captureStackTrace){Error.captureStackTrace(_4d2={},_4d9);}_4bb(_4d4,_4d0=_4b8,_4d1=_4da,_4d2,_4cf);_4d4=null;return _4ce;}else{if(_4db===true){throw new Error(_4b9);}else{return _4ce;}}};this.then=_4ce.then=function(_4dc,_4dd,_4de){var _4df=[_4de,_4dc,_4dd];_4df.cancel=_4ce.cancel;_4df.deferred=new _4c0(function(_4e0){return _4df.cancel&&_4df.cancel(_4e0);});if(_4d0&&!_4d4){_4c1(_4df,_4d0,_4d1,_4d2);}else{_4d4.push(_4df);}return _4df.deferred.promise;};this.cancel=_4ce.cancel=function(_4e1,_4e2){if(!_4d0){if(_4cd){var _4e3=_4cd(_4e1);_4e1=typeof _4e3==="undefined"?_4e1:_4e3;}_4d3=true;if(!_4d0){if(typeof _4e1==="undefined"){_4e1=new _4b3();}_4d9(_4e1);return _4e1;}else{if(_4d0===_4b8&&_4d1===_4e1){return _4e1;}}}else{if(_4e2===true){throw new Error(_4b9);}}};_4ba(_4ce);};_4c0.prototype.toString=function(){return "[object Deferred]";};if(_4b5){_4b5(_4c0);}return _4c0;});},"dojo/_base/NodeList":function(){define("dojo/_base/NodeList",["./kernel","../query","./array","./html","../NodeList-dom"],function(dojo,_4e4,_4e5){var _4e6=_4e4.NodeList,nlp=_4e6.prototype;nlp.connect=_4e6._adaptAsForEach(function(){return dojo.connect.apply(this,arguments);});nlp.coords=_4e6._adaptAsMap(dojo.coords);_4e6.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];_4e5.forEach(_4e6.events,function(evt){var _4e7="on"+evt;nlp[_4e7]=function(a,b){return this.connect(_4e7,a,b);};});dojo.NodeList=_4e6;return _4e6;});},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(dojo,lang,_4e8,_4e9){var _4ea=dojo.Color=function(_4eb){if(_4eb){this.setColor(_4eb);}};_4ea.named={"black":[0,0,0],"silver":[192,192,192],"gray":[128,128,128],"white":[255,255,255],"maroon":[128,0,0],"red":[255,0,0],"purple":[128,0,128],"fuchsia":[255,0,255],"green":[0,128,0],"lime":[0,255,0],"olive":[128,128,0],"yellow":[255,255,0],"navy":[0,0,128],"blue":[0,0,255],"teal":[0,128,128],"aqua":[0,255,255],"transparent":_4e9.transparentColor||[0,0,0,0]};lang.extend(_4ea,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_4ec){if(lang.isString(_4ec)){_4ea.fromString(_4ec,this);}else{if(lang.isArray(_4ec)){_4ea.fromArray(_4ec,this);}else{this._set(_4ec.r,_4ec.g,_4ec.b,_4ec.a);if(!(_4ec instanceof _4ea)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=_4e8.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_4ed){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_4ed?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});_4ea.blendColors=dojo.blendColors=function(_4ee,end,_4ef,obj){var t=obj||new _4ea();_4e8.forEach(["r","g","b","a"],function(x){t[x]=_4ee[x]+(end[x]-_4ee[x])*_4ef;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};_4ea.fromRgb=dojo.colorFromRgb=function(_4f0,obj){var m=_4f0.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&_4ea.fromArray(m[1].split(/\s*,\s*/),obj);};_4ea.fromHex=dojo.colorFromHex=function(_4f1,obj){var t=obj||new _4ea(),bits=(_4f1.length==4)?4:8,mask=(1<<bits)-1;_4f1=Number("0x"+_4f1.substr(1));if(isNaN(_4f1)){return null;}_4e8.forEach(["b","g","r"],function(x){var c=_4f1&mask;_4f1>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};_4ea.fromArray=dojo.colorFromArray=function(a,obj){var t=obj||new _4ea();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};_4ea.fromString=dojo.colorFromString=function(str,obj){var a=_4ea.named[str];return a&&_4ea.fromArray(a,obj)||_4ea.fromRgb(str,obj)||_4ea.fromHex(str,obj);};return _4ea;});},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(_4f2,has,lang,_4f3){function _4f4(_4f5,_4f6,_4f7){var _4f8="";if(_4f5&&_4f5.stack){_4f8+=_4f5.stack;}if(_4f6&&_4f6.stack){_4f8+="\n    ----------------------------------------\n    rejected"+_4f6.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ");}if(_4f7&&_4f7.stack){_4f8+="\n    ----------------------------------------\n"+_4f7.stack;}console.error(_4f5,_4f8);};function _4f9(_4fa,_4fb,_4fc,_4fd){if(!_4fb){_4f4(_4fa,_4fc,_4fd);}};var _4fe=[];var _4ff=false;var _500=1000;function _501(_502,_503,_504,_505){if(_503){_4f3.some(_4fe,function(obj,ix){if(obj.error===_502){_4fe.splice(ix,1);return true;}});}else{if(!_4f3.some(_4fe,function(obj){return obj.error===_502;})){_4fe.push({error:_502,rejection:_504,deferred:_505,timestamp:new Date().getTime()});}}if(!_4ff){_4ff=setTimeout(_506,_500);}};function _506(){var now=new Date().getTime();var _507=now-_500;_4fe=_4f3.filter(_4fe,function(obj){if(obj.timestamp<_507){_4f4(obj.error,obj.rejection,obj.deferred);return false;}return true;});if(_4fe.length){_4ff=setTimeout(_506,_4fe[0].timestamp+_500-now);}else{_4ff=false;}};return function(_508){var _509=has("config-useDeferredInstrumentation");if(_509){_4f2.on("resolved",lang.hitch(console,"log","resolved"));_4f2.on("rejected",lang.hitch(console,"log","rejected"));_4f2.on("progress",lang.hitch(console,"log","progress"));var args=[];if(typeof _509==="string"){args=_509.split(",");_509=args.shift();}if(_509==="report-rejections"){_508.instrumentRejected=_4f9;}else{if(_509==="report-unhandled-rejections"||_509===true||_509===1){_508.instrumentRejected=_501;_500=parseInt(args[0],10)||_500;}else{throw new Error("Unsupported instrumentation usage <"+_509+">");}}}};});},"dojo/selector/_loader":function(){define(["../has","require"],function(has,_50a){"use strict";var _50b=document.createElement("div");has.add("dom-qsa2.1",!!_50b.querySelectorAll);has.add("dom-qsa3",function(){try{_50b.innerHTML="<p class='TEST'></p>";return _50b.querySelectorAll(".TEST:empty").length==1;}catch(e){}});var _50c;var acme="./acme",lite="./lite";return {load:function(id,_50d,_50e,_50f){var req=_50a;id=id=="default"?has("config-selectorEngine")||"css3":id;id=id=="css2"||id=="lite"?lite:id=="css2.1"?has("dom-qsa2.1")?lite:acme:id=="css3"?has("dom-qsa3")?lite:acme:id=="acme"?acme:(req=_50d)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var _510=true;}if(_510&&(has("dom-compliant-qsa")||_50c)){return _50e(_50c);}req([id],function(_511){if(id!="./lite"){_50c=_511;}_50e(_511);});}};});},"dojo/promise/Promise":function(){define(["../_base/lang"],function(lang){"use strict";function _512(){throw new TypeError("abstract");};return lang.extend(function Promise(){},{then:function(_513,_514,_515){_512();},cancel:function(_516,_517){_512();},isResolved:function(){_512();},isRejected:function(){_512();},isFulfilled:function(){_512();},isCanceled:function(){_512();},always:function(_518){return this.then(_518,_518);},otherwise:function(_519){return this.then(null,_519);},trace:function(){return this;},traceRejected:function(){return this;},toString:function(){return "[object Promise]";}});});},"dojo/request/watch":function(){define(["./util","../errors/RequestTimeoutError","../errors/CancelError","../_base/array","../_base/window","../has!host-browser?dom-addeventlistener?:../on:"],function(util,_51a,_51b,_51c,win,on){var _51d=null,_51e=[];function _51f(){var now=+(new Date);for(var i=0,dfd;i<_51e.length&&(dfd=_51e[i]);i++){var _520=dfd.response,_521=_520.options;if((dfd.isCanceled&&dfd.isCanceled())||(dfd.isValid&&!dfd.isValid(_520))){_51e.splice(i--,1);_522._onAction&&_522._onAction();}else{if(dfd.isReady&&dfd.isReady(_520)){_51e.splice(i--,1);dfd.handleResponse(_520);_522._onAction&&_522._onAction();}else{if(dfd.startTime){if(dfd.startTime+(_521.timeout||0)<now){_51e.splice(i--,1);dfd.cancel(new _51a("Timeout exceeded",_520));_522._onAction&&_522._onAction();}}}}}_522._onInFlight&&_522._onInFlight(dfd);if(!_51e.length){clearInterval(_51d);_51d=null;}};function _522(dfd){if(dfd.response.options.timeout){dfd.startTime=+(new Date);}if(dfd.isFulfilled()){return;}_51e.push(dfd);if(!_51d){_51d=setInterval(_51f,50);}if(dfd.response.options.sync){_51f();}};_522.cancelAll=function cancelAll(){try{_51c.forEach(_51e,function(dfd){try{dfd.cancel(new _51b("All requests canceled."));}catch(e){}});}catch(e){}};if(win&&on&&win.doc.attachEvent){on(win.global,"unload",function(){_522.cancelAll();});}return _522;});},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(_523,dojo,has){"use strict";if(1){var _524=window.ScriptEngineMajorVersion;has.add("jscript",_524&&(_524()+ScriptEngineMinorVersion()/10));has.add("event-orientationchange",has("touch")&&!has("android"));has.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);}var on=function(_525,type,_526,_527){if(typeof _525.on=="function"&&typeof type!="function"){return _525.on(type,_526);}return on.parse(_525,type,_526,_528,_527,this);};on.pausable=function(_529,type,_52a,_52b){var _52c;var _52d=on(_529,type,function(){if(!_52c){return _52a.apply(this,arguments);}},_52b);_52d.pause=function(){_52c=true;};_52d.resume=function(){_52c=false;};return _52d;};on.once=function(_52e,type,_52f,_530){var _531=on(_52e,type,function(){_531.remove();return _52f.apply(this,arguments);});return _531;};on.parse=function(_532,type,_533,_534,_535,_536){if(type.call){return type.call(_536,_532,_533);}if(type.indexOf(",")>-1){var _537=type.split(/\s*,\s*/);var _538=[];var i=0;var _539;while(_539=_537[i++]){_538.push(_534(_532,_539,_533,_535,_536));}_538.remove=function(){for(var i=0;i<_538.length;i++){_538[i].remove();}};return _538;}return _534(_532,type,_533,_535,_536);};var _53a=/^touch/;function _528(_53b,type,_53c,_53d,_53e){var _53f=type.match(/(.*):(.*)/);if(_53f){type=_53f[2];_53f=_53f[1];return on.selector(_53f,type).call(_53e,_53b,_53c);}if(has("touch")){if(_53a.test(type)){_53c=_540(_53c);}if(!has("event-orientationchange")&&(type=="orientationchange")){type="resize";_53b=window;_53c=_540(_53c);}}if(_541){_53c=_541(_53c);}if(_53b.addEventListener){var _542=type in _543,_544=_542?_543[type]:type;_53b.addEventListener(_544,_53c,_542);return {remove:function(){_53b.removeEventListener(_544,_53c,_542);}};}type="on"+type;if(_545&&_53b.attachEvent){return _545(_53b,type,_53c);}throw new Error("Target must be an event emitter");};on.selector=function(_546,_547,_548){return function(_549,_54a){var _54b=typeof _546=="function"?{matches:_546}:this,_54c=_547.bubble;function _54d(_54e){_54b=_54b&&_54b.matches?_54b:dojo.query;while(!_54b.matches(_54e,_546,_549)){if(_54e==_549||_548===false||!(_54e=_54e.parentNode)||_54e.nodeType!=1){return;}}return _54e;};if(_54c){return on(_549,_54c(_54d),_54a);}return on(_549,_547,function(_54f){var _550=_54d(_54f.target);return _550&&_54a.call(_550,_54f);});};};function _551(){this.cancelable=false;};function _552(){this.bubbles=false;};var _553=[].slice,_554=on.emit=function(_555,type,_556){var args=_553.call(arguments,2);var _557="on"+type;if("parentNode" in _555){var _558=args[0]={};for(var i in _556){_558[i]=_556[i];}_558.preventDefault=_551;_558.stopPropagation=_552;_558.target=_555;_558.type=type;_556=_558;}do{_555[_557]&&_555[_557].apply(_555,args);}while(_556&&_556.bubbles&&(_555=_555.parentNode));return _556&&_556.cancelable&&_556;};var _543={};if(!has("event-stopimmediatepropagation")){var _559=function(){this.immediatelyStopped=true;this.modified=true;};var _541=function(_55a){return function(_55b){if(!_55b.immediatelyStopped){_55b.stopImmediatePropagation=_559;return _55a.apply(this,arguments);}};};}if(has("dom-addeventlistener")){_543={focusin:"focus",focusout:"blur"};on.emit=function(_55c,type,_55d){if(_55c.dispatchEvent&&document.createEvent){var _55e=_55c.ownerDocument.createEvent("HTMLEvents");_55e.initEvent(type,!!_55d.bubbles,!!_55d.cancelable);for(var i in _55d){var _55f=_55d[i];if(!(i in _55e)){_55e[i]=_55d[i];}}return _55c.dispatchEvent(_55e)&&_55e;}return _554.apply(on,arguments);};}else{on._fixEvent=function(evt,_560){if(!evt){var w=_560&&(_560.ownerDocument||_560.document||_560).parentWindow||window;evt=w.event;}if(!evt){return evt;}if(_561&&evt.type==_561.type){evt=_561;}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_560||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_562;evt.preventDefault=_563;}switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_564(evt);break;}}return evt;};var _561,_565=function(_566){this.handle=_566;};_565.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _567=function(_568){return function(evt){evt=on._fixEvent(evt,this);var _569=_568.call(this,evt);if(evt.modified){if(!_561){setTimeout(function(){_561=null;});}_561=evt;}return _569;};};var _545=function(_56a,type,_56b){_56b=_567(_56b);if(((_56a.ownerDocument?_56a.ownerDocument.parentWindow:_56a.parentWindow||_56a.window||window)!=top||has("jscript")<5.8)&&!has("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _56c=_56a[type];if(!_56c||!_56c.listeners){var _56d=_56c;_56c=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");_56c.listeners=[];_56a[type]=_56c;_56c.global=this;if(_56d){_56c.listeners.push(_dojoIEListeners_.push(_56d)-1);}}var _56e;_56c.listeners.push(_56e=(_56c.global._dojoIEListeners_.push(_56b)-1));return new _565(_56e);}return _523.after(_56a,type,_56b,true);};var _564=function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _562=function(){this.cancelBubble=true;};var _563=on._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){try{this.keyCode=0;}catch(e){}}this.defaultPrevented=true;this.returnValue=false;};}if(has("touch")){var _56f=function(){};var _570=window.orientation;var _540=function(_571){return function(_572){var _573=_572.corrected;if(!_573){var type=_572.type;try{delete _572.type;}catch(e){}if(_572.type){_56f.prototype=_572;var _573=new _56f;_573.preventDefault=function(){_572.preventDefault();};_573.stopPropagation=function(){_572.stopPropagation();};}else{_573=_572;_573.type=type;}_572.corrected=_573;if(type=="resize"){if(_570==window.orientation){return null;}_570=window.orientation;_573.type="orientationchange";return _571.call(this,_573);}if(!("rotation" in _573)){_573.rotation=0;_573.scale=1;}var _574=_573.changedTouches[0];for(var i in _574){delete _573[i];_573[i]=_574[i];}}return _571.call(this,_573);};};}return on;});},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(dojo,lang,has){if(!1){return has;}dojo._name="browser";lang.mixin(dojo,{isBrowser:true,isFF:has("ff"),isIE:has("ie"),isKhtml:has("khtml"),isWebKit:has("webkit"),isMozilla:has("mozilla"),isMoz:has("mozilla"),isOpera:has("opera"),isSafari:has("safari"),isChrome:has("chrome"),isMac:has("mac"),isIos:has("ios"),isAndroid:has("android"),isWii:has("wii"),isQuirks:has("quirks"),isAir:has("air")});dojo.locale=dojo.locale||(has("ie")?navigator.userLanguage:navigator.language).toLowerCase();return has;});},"dojo/errors/create":function(){define(["../_base/lang"],function(lang){return function(name,ctor,base,_575){base=base||Error;var _576=function(_577){if(base===Error){if(Error.captureStackTrace){Error.captureStackTrace(this,_576);}var err=Error.call(this,_577),prop;for(prop in err){if(err.hasOwnProperty(prop)){this[prop]=err[prop];}}this.message=_577;this.stack=err.stack;}else{base.apply(this,arguments);}if(ctor){ctor.apply(this,arguments);}};_576.prototype=lang.delegate(base.prototype,_575);_576.prototype.name=name;_576.prototype.constructor=_576;return _576;};});},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var _578={},u;function _579(fn){return _578[fn]=new Function("item","index","array",fn);};function _57a(some){var _57b=!some;return function(a,fn,o){var i=0,l=a&&a.length||0,_57c;if(l&&typeof a=="string"){a=a.split("");}if(typeof fn=="string"){fn=_578[fn]||_579(fn);}if(o){for(;i<l;++i){_57c=!fn.call(o,a[i],i,a);if(some^_57c){return !_57c;}}}else{for(;i<l;++i){_57c=!fn(a[i],i,a);if(some^_57c){return !_57c;}}}return _57b;};};function _57d(up){var _57e=1,_57f=0,_580=0;if(!up){_57e=_57f=_580=-1;}return function(a,x,from,last){if(last&&_57e>0){return _581.lastIndexOf(a,x,from);}var l=a&&a.length||0,end=up?l+_580:_57f,i;if(from===u){i=up?_57f:l+_580;}else{if(from<0){i=l+from;if(i<0){i=_57f;}}else{i=from>=l?l+_580:from;}}if(l&&typeof a=="string"){a=a.split("");}for(;i!=end;i+=_57e){if(a[i]==x){return i;}}return -1;};};var _581={every:_57a(false),some:_57a(true),indexOf:_57d(true),lastIndexOf:_57d(false),forEach:function(arr,_582,_583){var i=0,l=arr&&arr.length||0;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _582=="string"){_582=_578[_582]||_579(_582);}if(_583){for(;i<l;++i){_582.call(_583,arr[i],i,arr);}}else{for(;i<l;++i){_582(arr[i],i,arr);}}},map:function(arr,_584,_585,Ctr){var i=0,l=arr&&arr.length||0,out=new (Ctr||Array)(l);if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _584=="string"){_584=_578[_584]||_579(_584);}if(_585){for(;i<l;++i){out[i]=_584.call(_585,arr[i],i,arr);}}else{for(;i<l;++i){out[i]=_584(arr[i],i,arr);}}return out;},filter:function(arr,_586,_587){var i=0,l=arr&&arr.length||0,out=[],_588;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _586=="string"){_586=_578[_586]||_579(_586);}if(_587){for(;i<l;++i){_588=arr[i];if(_586.call(_587,_588,i,arr)){out.push(_588);}}}else{for(;i<l;++i){_588=arr[i];if(_586(_588,i,arr)){out.push(_588);}}}return out;},clearCache:function(){_578={};}};1&&lang.mixin(dojo,_581);return _581;});},"dojo/_base/json":function(){define(["./kernel","../json"],function(dojo,json){dojo.fromJson=function(js){return eval("("+js+")");};dojo._escapeString=json.stringify;dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_589){return json.stringify(it,function(key,_58a){if(_58a){var tf=_58a.__json__||_58a.json;if(typeof tf=="function"){return tf.call(_58a);}}return _58a;},_589&&dojo.toJsonIndentStr);};return dojo;});},"dojo/_base/window":function(){define("dojo/_base/window",["./kernel","./lang","../sniff"],function(dojo,lang,has){var ret={global:dojo.global,doc:this["document"]||null,body:function(doc){doc=doc||dojo.doc;return doc.body||doc.getElementsByTagName("body")[0];},setContext:function(_58b,_58c){dojo.global=ret.global=_58b;dojo.doc=ret.doc=_58c;},withGlobal:function(_58d,_58e,_58f,_590){var _591=dojo.global;try{dojo.global=ret.global=_58d;return ret.withDoc.call(null,_58d.document,_58e,_58f,_590);}finally{dojo.global=ret.global=_591;}},withDoc:function(_592,_593,_594,_595){var _596=ret.doc,oldQ=has("quirks"),_597=has("ie"),isIE,mode,pwin;try{dojo.doc=ret.doc=_592;dojo.isQuirks=has.add("quirks",dojo.doc.compatMode=="BackCompat",true,true);if(has("ie")){if((pwin=_592.parentWindow)&&pwin.navigator){isIE=parseFloat(pwin.navigator.appVersion.split("MSIE ")[1])||undefined;mode=_592.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}dojo.isIE=has.add("ie",isIE,true,true);}}if(_594&&typeof _593=="string"){_593=_594[_593];}return _593.apply(_594,_595||[]);}finally{dojo.doc=ret.doc=_596;dojo.isQuirks=has.add("quirks",oldQ,true,true);dojo.isIE=has.add("ie",_597,true,true);}}};1&&lang.mixin(dojo,ret);return ret;});},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(lang,_598,dom){var _599="className";var cls,_59a=/\s+/,a1=[""];function _59b(s){if(typeof s=="string"||s instanceof String){if(s&&!_59a.test(s)){a1[0]=s;return a1;}var a=s.split(_59a);if(a.length&&!a[0]){a.shift();}if(a.length&&!a[a.length-1]){a.pop();}return a;}if(!s){return [];}return _598.filter(s,function(x){return x;});};var _59c={};cls={contains:function containsClass(node,_59d){return ((" "+dom.byId(node)[_599]+" ").indexOf(" "+_59d+" ")>=0);},add:function addClass(node,_59e){node=dom.byId(node);_59e=_59b(_59e);var cls=node[_599],_59f;cls=cls?" "+cls+" ":" ";_59f=cls.length;for(var i=0,len=_59e.length,c;i<len;++i){c=_59e[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_59f<cls.length){node[_599]=cls.substr(1,cls.length-2);}},remove:function removeClass(node,_5a0){node=dom.byId(node);var cls;if(_5a0!==undefined){_5a0=_59b(_5a0);cls=" "+node[_599]+" ";for(var i=0,len=_5a0.length;i<len;++i){cls=cls.replace(" "+_5a0[i]+" "," ");}cls=lang.trim(cls);}else{cls="";}if(node[_599]!=cls){node[_599]=cls;}},replace:function replaceClass(node,_5a1,_5a2){node=dom.byId(node);_59c[_599]=node[_599];cls.remove(_59c,_5a2);cls.add(_59c,_5a1);if(node[_599]!==_59c[_599]){node[_599]=_59c[_599];}},toggle:function toggleClass(node,_5a3,_5a4){node=dom.byId(node);if(_5a4===undefined){_5a3=_59b(_5a3);for(var i=0,len=_5a3.length,c;i<len;++i){c=_5a3[i];cls[cls.contains(node,c)?"remove":"add"](node,c);}}else{cls[_5a4?"add":"remove"](node,_5a3);}return _5a4;}};return cls;});},"dojo/_base/config":function(){define(["../has","require"],function(has,_5a5){var _5a6={};if(1){var src=_5a5.rawConfig,p;for(p in src){_5a6[p]=src[p];}}else{var _5a7=function(_5a8,_5a9,_5aa){for(p in _5a8){p!="has"&&has.add(_5a9+p,_5a8[p],0,_5aa);}};_5a6=1?_5a5.rawConfig:this.dojoConfig||this.djConfig||{};_5a7(_5a6,"config",1);_5a7(_5a6.has,"",1);}return _5a6;});},"dojo/main":function(){define(["./_base/kernel","./has","require","./sniff","./_base/lang","./_base/array","./_base/config","./ready","./_base/declare","./_base/connect","./_base/Deferred","./_base/json","./_base/Color","./has!dojo-firebug?./_firebug/firebug","./_base/browser","./_base/loader"],function(_5ab,has,_5ac,_5ad,lang,_5ae,_5af,_5b0){if(_5af.isDebug){_5ac(["./_firebug/firebug"]);}1||has.add("dojo-config-require",1);if(1){var deps=_5af.require;if(deps){deps=_5ae.map(lang.isArray(deps)?deps:[deps],function(item){return item.replace(/\./g,"/");});if(_5ab.isAsync){_5ac(deps);}else{_5b0(1,function(){_5ac(deps);});}}}return _5ab;});},"dojo/_base/event":function(){define("dojo/_base/event",["./kernel","../on","../has","../dom-geometry"],function(dojo,on,has,dom){if(on._fixEvent){var _5b1=on._fixEvent;on._fixEvent=function(evt,se){evt=_5b1(evt,se);if(evt){dom.normalizeEvent(evt);}return evt;};}var ret={fix:function(evt,_5b2){if(on._fixEvent){return on._fixEvent(evt,_5b2);}return evt;},stop:function(evt){if(has("dom-addeventlistener")||(evt&&evt.preventDefault)){evt.preventDefault();evt.stopPropagation();}else{evt=evt||window.event;evt.cancelBubble=true;on._preventDefault.call(evt);}}};if(1){dojo.fixEvent=ret.fix;dojo.stopEvent=ret.stop;}return ret;});},"dojo/sniff":function(){define(["./has"],function(has){if(1){var n=navigator,dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);has.add("air",dua.indexOf("AdobeAIR")>=0),has.add("khtml",dav.indexOf("Konqueror")>=0?tv:undefined);has.add("webkit",parseFloat(dua.split("WebKit/")[1])||undefined);has.add("chrome",parseFloat(dua.split("Chrome/")[1])||undefined);has.add("safari",dav.indexOf("Safari")>=0&&!has("chrome")?parseFloat(dav.split("Version/")[1]):undefined);has.add("mac",dav.indexOf("Macintosh")>=0);has.add("quirks",document.compatMode=="BackCompat");has.add("ios",/iPhone|iPod|iPad/.test(dua));has.add("android",parseFloat(dua.split("Android ")[1])||undefined);if(!has("webkit")){if(dua.indexOf("Opera")>=0){has.add("opera",tv>=9.8?parseFloat(dua.split("Version/")[1])||tv:tv);}if(dua.indexOf("Gecko")>=0&&!has("khtml")&&!has("webkit")){has.add("mozilla",tv);}if(has("mozilla")){has.add("ff",parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined);}if(document.all&&!has("opera")){var isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var mode=document.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}has.add("ie",isIE);}has.add("wii",typeof opera!="undefined"&&opera.wiiremote);}}return has;});},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has"],function(JSON,_5b3,_5b4,has){has.add("activex",typeof ActiveXObject!=="undefined");var _5b5;if(has("activex")){var dp=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];_5b5=function(_5b6){var _5b7=_5b6.data;if(!_5b7||!_5b7.documentElement){var text=_5b6.text;_5b4.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(text);_5b7=dom;}catch(e){return false;}return true;});}return _5b7;};}var _5b8={"javascript":function(_5b9){return _5b3.eval(_5b9.text||"");},"json":function(_5ba){return JSON.parse(_5ba.text||null);},"xml":_5b5};function _5bb(_5bc){var _5bd=_5b8[_5bc.options.handleAs];_5bc.data=_5bd?_5bd(_5bc):(_5bc.data||_5bc.text);return _5bc;};_5bb.register=function(name,_5be){_5b8[name]=_5be;};return _5bb;});},"dojo/aspect":function(){define("dojo/aspect",[],function(){"use strict";var _5bf,_5c0=0;function _5c1(_5c2,type,_5c3,_5c4){var _5c5=_5c2[type];var _5c6=type=="around";var _5c7;if(_5c6){var _5c8=_5c3(function(){return _5c5.advice(this,arguments);});_5c7={remove:function(){_5c7.cancelled=true;},advice:function(_5c9,args){return _5c7.cancelled?_5c5.advice(_5c9,args):_5c8.apply(_5c9,args);}};}else{_5c7={remove:function(){var _5ca=_5c7.previous;var next=_5c7.next;if(!next&&!_5ca){delete _5c2[type];}else{if(_5ca){_5ca.next=next;}else{_5c2[type]=next;}if(next){next.previous=_5ca;}}},id:_5c0++,advice:_5c3,receiveArguments:_5c4};}if(_5c5&&!_5c6){if(type=="after"){while(_5c5.next&&(_5c5=_5c5.next)){}_5c5.next=_5c7;_5c7.previous=_5c5;}else{if(type=="before"){_5c2[type]=_5c7;_5c7.next=_5c5;_5c5.previous=_5c7;}}}else{_5c2[type]=_5c7;}return _5c7;};function _5cb(type){return function(_5cc,_5cd,_5ce,_5cf){var _5d0=_5cc[_5cd],_5d1;if(!_5d0||_5d0.target!=_5cc){_5cc[_5cd]=_5d1=function(){var _5d2=_5c0;var args=arguments;var _5d3=_5d1.before;while(_5d3){args=_5d3.advice.apply(this,args)||args;_5d3=_5d3.next;}if(_5d1.around){var _5d4=_5d1.around.advice(this,args);}var _5d5=_5d1.after;while(_5d5&&_5d5.id<_5d2){if(_5d5.receiveArguments){var _5d6=_5d5.advice.apply(this,args);_5d4=_5d6===_5bf?_5d4:_5d6;}else{_5d4=_5d5.advice.call(this,_5d4,args);}_5d5=_5d5.next;}return _5d4;};if(_5d0){_5d1.around={advice:function(_5d7,args){return _5d0.apply(_5d7,args);}};}_5d1.target=_5cc;}var _5d8=_5c1((_5d1||_5d0),type,_5ce,_5cf);_5ce=null;return _5d8;};};var _5d9=_5cb("after");var _5da=_5cb("before");var _5db=_5cb("around");return {before:_5da,around:_5db,after:_5d9};});},"dojo/ready":function(){define("dojo/ready",["./_base/kernel","./has","require","./domReady","./_base/lang"],function(dojo,has,_5dc,_5dd,lang){var _5de=0,_5df,_5e0=[],_5e1=0,_5e2=function(){_5de=1;dojo._postLoad=dojo.config.afterOnLoad=true;if(_5e0.length){_5df(_5e3);}},_5e3=function(){if(_5de&&!_5e1&&_5e0.length){_5e1=1;var f=_5e0.shift();try{f();}finally{_5e1=0;}_5e1=0;if(_5e0.length){_5df(_5e3);}}};_5dc.on("idle",_5e3);_5df=function(){if(_5dc.idle()){_5e3();}};var _5e4=dojo.ready=dojo.addOnLoad=function(_5e5,_5e6,_5e7){var _5e8=lang._toArray(arguments);if(typeof _5e5!="number"){_5e7=_5e6;_5e6=_5e5;_5e5=1000;}else{_5e8.shift();}_5e7=_5e7?lang.hitch.apply(dojo,_5e8):function(){_5e6();};_5e7.priority=_5e5;for(var i=0;i<_5e0.length&&_5e5>=_5e0[i].priority;i++){}_5e0.splice(i,0,_5e7);_5df();};1||has.add("dojo-config-addOnLoad",1);if(1){var dca=dojo.config.addOnLoad;if(dca){_5e4[(lang.isArray(dca)?"apply":"call")](dojo,dca);}}if(1&&dojo.config.parseOnLoad&&!dojo.isAsync){_5e4(99,function(){if(!dojo.parser){dojo.deprecated("Add explicit require(['dojo/parser']);","","2.0");_5dc(["dojo/parser"]);}});}if(1){_5dd(_5e2);}else{_5e2();}return _5e4;});},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(dojo,on,hub,_5e9,_5ea,_5eb,has,lang){has.add("events-keypress-typed",function(){var _5ec={charCode:0};try{_5ec=document.createEvent("KeyboardEvent");(_5ec.initKeyboardEvent||_5ec.initKeyEvent).call(_5ec,"keypress",true,true,null,false,false,false,false,9,3);}catch(e){}return _5ec.charCode==0&&!has("opera");});function _5ed(obj,_5ee,_5ef,_5f0,_5f1){_5f0=lang.hitch(_5ef,_5f0);if(!obj||!(obj.addEventListener||obj.attachEvent)){return _5e9.after(obj||dojo.global,_5ee,_5f0,true);}if(typeof _5ee=="string"&&_5ee.substring(0,2)=="on"){_5ee=_5ee.substring(2);}if(!obj){obj=dojo.global;}if(!_5f1){switch(_5ee){case "keypress":_5ee=_5f2;break;case "mouseenter":_5ee=_5eb.enter;break;case "mouseleave":_5ee=_5eb.leave;break;}}return on(obj,_5ee,_5f0,_5f1);};var _5f3={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113};var _5f4=has("mac")?"metaKey":"ctrlKey";var _5f5=function(evt,_5f6){var faux=lang.mixin({},evt,_5f6);_5f7(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};function _5f7(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _5f2;if(has("events-keypress-typed")){var _5f8=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};_5f2=function(_5f9,_5fa){var _5fb=on(_5f9,"keydown",function(evt){var k=evt.keyCode;var _5fc=(k!=13)&&k!=32&&(k!=27||!has("ie"))&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222)&&k!=229;if(_5fc||evt.ctrlKey){var c=_5fc?0:k;if(evt.ctrlKey){if(k==3||k==13){return _5fa.call(evt.currentTarget,evt);}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_5f3[c]||c;}}}}var faux=_5f5(evt,{type:"keypress",faux:true,charCode:c});_5fa.call(evt.currentTarget,faux);if(has("ie")){_5f8(evt,faux.keyCode);}}});var _5fd=on(_5f9,"keypress",function(evt){var c=evt.charCode;c=c>=32?c:0;evt=_5f5(evt,{charCode:c,faux:true});return _5fa.call(this,evt);});return {remove:function(){_5fb.remove();_5fd.remove();}};};}else{if(has("opera")){_5f2=function(_5fe,_5ff){return on(_5fe,"keypress",function(evt){var c=evt.which;if(c==3){c=99;}c=c<32&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return _5ff.call(this,_5f5(evt,{charCode:c}));});};}else{_5f2=function(_600,_601){return on(_600,"keypress",function(evt){_5f7(evt);return _601.call(this,evt);});};}}var _602={_keypress:_5f2,connect:function(obj,_603,_604,_605,_606){var a=arguments,args=[],i=0;args.push(typeof a[0]=="string"?null:a[i++],a[i++]);var a1=a[i+1];args.push(typeof a1=="string"||typeof a1=="function"?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return _5ed.apply(this,args);},disconnect:function(_607){if(_607){_607.remove();}},subscribe:function(_608,_609,_60a){return hub.subscribe(_608,lang.hitch(_609,_60a));},publish:function(_60b,args){return hub.publish.apply(hub,[_60b].concat(args));},connectPublisher:function(_60c,obj,_60d){var pf=function(){_602.publish(_60c,arguments);};return _60d?_602.connect(obj,_60d,pf):_602.connect(obj,pf);},isCopyKey:function(e){return e[_5f4];}};_602.unsubscribe=_602.disconnect;1&&lang.mixin(dojo,_602);return _602;});},"dojo/errors/CancelError":function(){define(["./create"],function(_60e){return _60e("CancelError",null,null,{dojoType:"cancel"});});}}});(function(){var _60f=this.require;_60f({cache:{}});!_60f.async&&_60f(["dojo"]);_60f.boot&&_60f.apply(null,_60f.boot);})();
\ No newline at end of file
+(function(_1,_2){var _3=function(){},_4=function(it){for(var p in it){return 0;}return 1;},_5={}.toString,_6=function(it){return _5.call(it)=="[object Function]";},_7=function(it){return _5.call(it)=="[object String]";},_8=function(it){return _5.call(it)=="[object Array]";},_9=function(_a,_b){if(_a){for(var i=0;i<_a.length;){_b(_a[i++]);}}},_c=function(_d,_e){for(var p in _e){_d[p]=_e[p];}return _d;},_f=function(_10,_11){return _c(new Error(_10),{src:"dojoLoader",info:_11});},_12=1,uid=function(){return "_"+_12++;},req=function(_13,_14,_15){return _16(_13,_14,_15,0,req);},_17=this,doc=_17.document,_18=doc&&doc.createElement("DiV"),has=req.has=function(_19){return _6(_1a[_19])?(_1a[_19]=_1a[_19](_17,doc,_18)):_1a[_19];},_1a=has.cache=_2.hasCache;has.add=function(_1b,_1c,now,_1d){(_1a[_1b]===undefined||_1d)&&(_1a[_1b]=_1c);return now&&has(_1b);};0&&has.add("host-node",_1.has&&"host-node" in _1.has?_1.has["host-node"]:(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8));if(0){require("./_base/configNode.js").config(_2);_2.loaderPatch.nodeRequire=require;}0&&has.add("host-rhino",_1.has&&"host-rhino" in _1.has?_1.has["host-rhino"]:(typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object")));if(0){for(var _1e=_1.baseUrl||".",arg,_1f=this.arguments,i=0;i<_1f.length;){arg=(_1f[i++]+"").split("=");if(arg[0]=="baseUrl"){_1e=arg[1];break;}}load(_1e+"/_base/configRhino.js");rhinoDojoConfig(_2,_1e,_1f);}for(var p in _1.has){has.add(p,_1.has[p],0,1);}var _20=1,_21=2,_22=3,_23=4,_24=5;if(0){_20="requested";_21="arrived";_22="not-a-module";_23="executing";_24="executed";}var _25=0,_26="sync",xd="xd",_27=[],_28=0,_29=_3,_2a=_3,_2b;if(1){req.isXdUrl=_3;req.initSyncLoader=function(_2c,_2d,_2e){if(!_28){_28=_2c;_29=_2d;_2a=_2e;}return {sync:_26,requested:_20,arrived:_21,nonmodule:_22,executing:_23,executed:_24,syncExecStack:_27,modules:_2f,execQ:_30,getModule:_31,injectModule:_32,setArrived:_33,signal:_34,finishExec:_35,execModule:_36,dojoRequirePlugin:_28,getLegacyMode:function(){return _25;},guardCheckComplete:_37};};if(1){var _38=location.protocol,_39=location.host;req.isXdUrl=function(url){if(/^\./.test(url)){return false;}if(/^\/\//.test(url)){return true;}var _3a=url.match(/^([^\/\:]+\:)\/+([^\/]+)/);return _3a&&(_3a[1]!=_38||(_39&&_3a[2]!=_39));};1||has.add("dojo-xhr-factory",1);has.add("dojo-force-activex-xhr",1&&!doc.addEventListener&&window.location.protocol=="file:");has.add("native-xhr",typeof XMLHttpRequest!="undefined");if(has("native-xhr")&&!has("dojo-force-activex-xhr")){_2b=function(){return new XMLHttpRequest();};}else{for(var _3b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],_3c,i=0;i<3;){try{_3c=_3b[i++];if(new ActiveXObject(_3c)){break;}}catch(e){}}_2b=function(){return new ActiveXObject(_3c);};}req.getXhr=_2b;has.add("dojo-gettext-api",1);req.getText=function(url,_3d,_3e){var xhr=_2b();xhr.open("GET",_3f(url),false);xhr.send(null);if(xhr.status==200||(!location.host&&!xhr.status)){if(_3e){_3e(xhr.responseText,_3d);}}else{throw _f("xhrFailed",xhr.status);}return xhr.responseText;};}}else{req.async=1;}var _40=new Function("return eval(arguments[0]);");req.eval=function(_41,_42){return _40(_41+"\r\n////@ sourceURL="+_42);};var _43={},_44="error",_34=req.signal=function(_45,_46){var _47=_43[_45];_9(_47&&_47.slice(0),function(_48){_48.apply(null,_8(_46)?_46:[_46]);});},on=req.on=function(_49,_4a){var _4b=_43[_49]||(_43[_49]=[]);_4b.push(_4a);return {remove:function(){for(var i=0;i<_4b.length;i++){if(_4b[i]===_4a){_4b.splice(i,1);return;}}}};};var _4c=[],_4d={},_4e=[],_4f={},map=req.map={},_50=[],_2f={},_51="",_52={},_53="url:",_54={},_55={},_56=0;if(1){var _57=function(_58){var p,_59,_5a,now,m;for(p in _54){_59=_54[p];_5a=p.match(/^url\:(.+)/);if(_5a){_52[_53+_5b(_5a[1],_58)]=_59;}else{if(p=="*now"){now=_59;}else{if(p!="*noref"){m=_5c(p,_58,true);_52[m.mid]=_52[_53+m.url]=_59;}}}}if(now){now(_5d(_58));}_54={};},_5e=function(s){return s.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){return "\\"+c;});},_5f=function(map,_60){_60.splice(0,_60.length);for(var p in map){_60.push([p,map[p],new RegExp("^"+_5e(p)+"(/|$)"),p.length]);}_60.sort(function(lhs,rhs){return rhs[3]-lhs[3];});return _60;},_61=function(_62,_63){_9(_62,function(_64){_63.push([_7(_64[0])?new RegExp("^"+_5e(_64[0])+"$"):_64[0],_64[1]]);});},_65=function(_66){var _67=_66.name;if(!_67){_67=_66;_66={name:_67};}_66=_c({main:"main"},_66);_66.location=_66.location?_66.location:_67;if(_66.packageMap){map[_67]=_66.packageMap;}if(!_66.main.indexOf("./")){_66.main=_66.main.substring(2);}_4f[_67]=_66;},_68=[],_69=function(_6a,_6b,_6c){for(var p in _6a){if(p=="waitSeconds"){req.waitms=(_6a[p]||0)*1000;}if(p=="cacheBust"){_51=_6a[p]?(_7(_6a[p])?_6a[p]:(new Date()).getTime()+""):"";}if(p=="baseUrl"||p=="combo"){req[p]=_6a[p];}if(1&&p=="async"){var _6d=_6a[p];req.legacyMode=_25=(_7(_6d)&&/sync|legacyAsync/.test(_6d)?_6d:(!_6d?_26:false));req.async=!_25;}if(_6a[p]!==_1a){req.rawConfig[p]=_6a[p];p!="has"&&has.add("config-"+p,_6a[p],0,_6b);}}if(!req.baseUrl){req.baseUrl="./";}if(!/\/$/.test(req.baseUrl)){req.baseUrl+="/";}for(p in _6a.has){has.add(p,_6a.has[p],0,_6b);}_9(_6a.packages,_65);for(_1e in _6a.packagePaths){_9(_6a.packagePaths[_1e],function(_6e){var _6f=_1e+"/"+_6e;if(_7(_6e)){_6e={name:_6e};}_6e.location=_6f;_65(_6e);});}_5f(_c(map,_6a.map),_50);_9(_50,function(_70){_70[1]=_5f(_70[1],[]);if(_70[0]=="*"){_50.star=_70;}});_5f(_c(_4d,_6a.paths),_4e);_61(_6a.aliases,_4c);if(_6b){_68.push({config:_6a.config});}else{for(p in _6a.config){var _71=_31(p,_6c);_71.config=_c(_71.config||{},_6a.config[p]);}}if(_6a.cache){_57();_54=_6a.cache;if(_6a.cache["*noref"]){_57();}}_34("config",[_6a,req.rawConfig]);};if(has("dojo-cdn")||1){var _72=doc.getElementsByTagName("script"),i=0,_73,_74,src,_75;while(i<_72.length){_73=_72[i++];if((src=_73.getAttribute("src"))&&(_75=src.match(/(((.*)\/)|^)dojo\.js(\W|$)/i))){_74=_75[3]||"";_2.baseUrl=_2.baseUrl||_74;_56=_73;}if((src=(_73.getAttribute("data-dojo-config")||_73.getAttribute("djConfig")))){_55=req.eval("({ "+src+" })","data-dojo-config");_56=_73;}if(0){if((src=_73.getAttribute("data-main"))){_55.deps=_55.deps||[src];}}}}if(0){try{if(window.parent!=window&&window.parent.require){var doh=window.parent.require("doh");doh&&_c(_55,doh.testConfig);}}catch(e){}}req.rawConfig={};_69(_2,1);if(has("dojo-cdn")){_4f.dojo.location=_74;if(_74){_74+="/";}_4f.dijit.location=_74+"../dijit/";_4f.dojox.location=_74+"../dojox/";}_69(_1,1);_69(_55,1);}else{_4d=_2.paths;_4e=_2.pathsMapProg;_4f=_2.packs;_4c=_2.aliases;_50=_2.mapProgs;_2f=_2.modules;_52=_2.cache;_51=_2.cacheBust;req.rawConfig=_2;}if(0){req.combo=req.combo||{add:_3};var _76=0,_77=[],_78=null;}var _79=function(_7a){_37(function(){_9(_7a.deps,_32);if(0&&_76&&!_78){_78=setTimeout(function(){_76=0;_78=null;req.combo.done(function(_7b,url){var _7c=function(){_7d(0,_7b);_7e();};_77.push(_7b);_7f=_7b;req.injectUrl(url,_7c,_7b);_7f=0;},req);},0);}});},_16=function(a1,a2,a3,_80,_81){var _82,_83;if(_7(a1)){_82=_31(a1,_80,true);if(_82&&_82.executed){return _82.result;}throw _f("undefinedModule",a1);}if(!_8(a1)){_69(a1,0,_80);a1=a2;a2=a3;}if(_8(a1)){if(!a1.length){a2&&a2();}else{_83="require*"+uid();for(var mid,_84=[],i=0;i<a1.length;){mid=a1[i++];_84.push(_31(mid,_80));}_82=_c(_85("",_83,0,""),{injected:_21,deps:_84,def:a2||_3,require:_80?_80.require:req,gc:1});_2f[_82.mid]=_82;_79(_82);var _86=_87&&_25!=_26;_37(function(){_36(_82,_86);});if(!_82.executed){_30.push(_82);}_7e();}}return _81;},_5d=function(_88){if(!_88){return req;}var _89=_88.require;if(!_89){_89=function(a1,a2,a3){return _16(a1,a2,a3,_88,_89);};_88.require=_c(_89,req);_89.module=_88;_89.toUrl=function(_8a){return _5b(_8a,_88);};_89.toAbsMid=function(mid){return _b8(mid,_88);};if(0){_89.undef=function(mid){req.undef(mid,_88);};}if(1){_89.syncLoadNls=function(mid){var _8b=_5c(mid,_88),_8c=_2f[_8b.mid];if(!_8c||!_8c.executed){_8d=_52[_8b.mid]||_52[_53+_8b.url];if(_8d){_8e(_8d);_8c=_2f[_8b.mid];}}return _8c&&_8c.executed&&_8c.result;};}}return _89;},_30=[],_8f=[],_90={},_91=function(_92){_92.injected=_20;_90[_92.mid]=1;if(_92.url){_90[_92.url]=_92.pack||1;}_93();},_33=function(_94){_94.injected=_21;delete _90[_94.mid];if(_94.url){delete _90[_94.url];}if(_4(_90)){_95();1&&_25==xd&&(_25=_26);}},_96=req.idle=function(){return !_8f.length&&_4(_90)&&!_30.length&&!_87;},_97=function(_98,map){if(map){for(var i=0;i<map.length;i++){if(map[i][2].test(_98)){return map[i];}}}return 0;},_99=function(_9a){var _9b=[],_9c,_9d;_9a=_9a.replace(/\\/g,"/").split("/");while(_9a.length){_9c=_9a.shift();if(_9c==".."&&_9b.length&&_9d!=".."){_9b.pop();_9d=_9b[_9b.length-1];}else{if(_9c!="."){_9b.push(_9d=_9c);}}}return _9b.join("/");},_85=function(pid,mid,_9e,url){if(1){var xd=req.isXdUrl(url);return {pid:pid,mid:mid,pack:_9e,url:url,executed:0,def:0,isXd:xd,isAmd:!!(xd||(_4f[pid]&&_4f[pid].isAmd))};}else{return {pid:pid,mid:mid,pack:_9e,url:url,executed:0,def:0};}},_9f=function(mid,_a0,_a1,_a2,_a3,_a4,_a5,_a6,_a7){var pid,_a8,_a9,_aa,url,_ab,_ac,_ad;_ad=mid;_ac=/^\./.test(mid);if(/(^\/)|(\:)|(\.js$)/.test(mid)||(_ac&&!_a0)){return _85(0,mid,0,mid);}else{mid=_99(_ac?(_a0.mid+"/../"+mid):mid);if(/^\./.test(mid)){throw _f("irrationalPath",mid);}if(_a0){_aa=_97(_a0.mid,_a4);}_aa=_aa||_a4.star;_aa=_aa&&_97(mid,_aa[1]);if(_aa){mid=_aa[1]+mid.substring(_aa[3]);}_75=mid.match(/^([^\/]+)(\/(.+))?$/);pid=_75?_75[1]:"";if((_a8=_a1[pid])){mid=pid+"/"+(_a9=(_75[3]||_a8.main));}else{pid="";}var _ae=0,_af=0;_9(_a6,function(_b0){var _b1=mid.match(_b0[0]);if(_b1&&_b1.length>_ae){_af=_6(_b0[1])?mid.replace(_b0[0],_b0[1]):_b0[1];}});if(_af){return _9f(_af,0,_a1,_a2,_a3,_a4,_a5,_a6,_a7);}_ab=_a2[mid];if(_ab){return _a7?_85(_ab.pid,_ab.mid,_ab.pack,_ab.url):_a2[mid];}}_aa=_97(mid,_a5);if(_aa){url=_aa[1]+mid.substring(_aa[3]);}else{if(pid){url=_a8.location+"/"+_a9;}else{if(has("config-tlmSiblingOfDojo")){url="../"+mid;}else{url=mid;}}}if(!(/(^\/)|(\:)/.test(url))){url=_a3+url;}url+=".js";return _85(pid,mid,_a8,_99(url));},_5c=function(mid,_b2,_b3){return _9f(mid,_b2,_4f,_2f,req.baseUrl,_b3?[]:_50,_b3?[]:_4e,_b3?[]:_4c);},_b4=function(_b5,_b6,_b7){return _b5.normalize?_b5.normalize(_b6,function(mid){return _b8(mid,_b7);}):_b8(_b6,_b7);},_b9=0,_31=function(mid,_ba,_bb){var _bc,_bd,_be,_bf;_bc=mid.match(/^(.+?)\!(.*)$/);if(_bc){_bd=_31(_bc[1],_ba,_bb);if(1&&_25==_26&&!_bd.executed){_32(_bd);if(_bd.injected===_21&&!_bd.executed){_37(function(){_36(_bd);});}if(_bd.executed){_c0(_bd);}else{_30.unshift(_bd);}}if(_bd.executed===_24&&!_bd.load){_c0(_bd);}if(_bd.load){_be=_b4(_bd,_bc[2],_ba);mid=(_bd.mid+"!"+(_bd.dynamic?++_b9+"!":"")+_be);}else{_be=_bc[2];mid=_bd.mid+"!"+(++_b9)+"!waitingForPlugin";}_bf={plugin:_bd,mid:mid,req:_5d(_ba),prid:_be};}else{_bf=_5c(mid,_ba);}return _2f[_bf.mid]||(!_bb&&(_2f[_bf.mid]=_bf));},_b8=req.toAbsMid=function(mid,_c1){return _5c(mid,_c1).mid;},_5b=req.toUrl=function(_c2,_c3){var _c4=_5c(_c2+"/x",_c3),url=_c4.url;return _3f(_c4.pid===0?_c2:url.substring(0,url.length-5));},_c5={injected:_21,executed:_24,def:_22,result:_22},_c6=function(mid){return _2f[mid]=_c({mid:mid},_c5);},_c7=_c6("require"),_c8=_c6("exports"),_c9=_c6("module"),_ca=function(_cb,_cc){req.trace("loader-run-factory",[_cb.mid]);var _cd=_cb.def,_ce;1&&_27.unshift(_cb);if(has("config-dojo-loader-catches")){try{_ce=_6(_cd)?_cd.apply(null,_cc):_cd;}catch(e){_34(_44,_cb.result=_f("factoryThrew",[_cb,e]));}}else{_ce=_6(_cd)?_cd.apply(null,_cc):_cd;}_cb.result=_ce===undefined&&_cb.cjs?_cb.cjs.exports:_ce;1&&_27.shift(_cb);},_cf={},_d0=0,_c0=function(_d1){var _d2=_d1.result;_d1.dynamic=_d2.dynamic;_d1.normalize=_d2.normalize;_d1.load=_d2.load;return _d1;},_d3=function(_d4){var map={};_9(_d4.loadQ,function(_d5){var _d6=_b4(_d4,_d5.prid,_d5.req.module),mid=_d4.dynamic?_d5.mid.replace(/waitingForPlugin$/,_d6):(_d4.mid+"!"+_d6),_d7=_c(_c({},_d5),{mid:mid,prid:_d6,injected:0});if(!_2f[mid]){_e9(_2f[mid]=_d7);}map[_d5.mid]=_2f[mid];_33(_d5);delete _2f[_d5.mid];});_d4.loadQ=0;var _d8=function(_d9){for(var _da,_db=_d9.deps||[],i=0;i<_db.length;i++){_da=map[_db[i].mid];if(_da){_db[i]=_da;}}};for(var p in _2f){_d8(_2f[p]);}_9(_30,_d8);},_35=function(_dc){req.trace("loader-finish-exec",[_dc.mid]);_dc.executed=_24;_dc.defOrder=_d0++;1&&_9(_dc.provides,function(cb){cb();});if(_dc.loadQ){_c0(_dc);_d3(_dc);}for(i=0;i<_30.length;){if(_30[i]===_dc){_30.splice(i,1);}else{i++;}}if(/^require\*/.test(_dc.mid)){delete _2f[_dc.mid];}},_dd=[],_36=function(_de,_df){if(_de.executed===_23){req.trace("loader-circular-dependency",[_dd.concat(_de.mid).join("->")]);return (!_de.def||_df)?_cf:(_de.cjs&&_de.cjs.exports);}if(!_de.executed){if(!_de.def){return _cf;}var mid=_de.mid,_e0=_de.deps||[],arg,_e1,_e2=[],i=0;if(0){_dd.push(mid);req.trace("loader-exec-module",["exec",_dd.length,mid]);}_de.executed=_23;while((arg=_e0[i++])){_e1=((arg===_c7)?_5d(_de):((arg===_c8)?_de.cjs.exports:((arg===_c9)?_de.cjs:_36(arg,_df))));if(_e1===_cf){_de.executed=0;req.trace("loader-exec-module",["abort",mid]);0&&_dd.pop();return _cf;}_e2.push(_e1);}_ca(_de,_e2);_35(_de);0&&_dd.pop();}return _de.result;},_87=0,_37=function(_e3){try{_87++;_e3();}finally{_87--;}if(_96()){_34("idle",[]);}},_7e=function(){if(_87){return;}_37(function(){_29();for(var _e4,_e5,i=0;i<_30.length;){_e4=_d0;_e5=_30[i];_36(_e5);if(_e4!=_d0){_29();i=0;}else{i++;}}});};if(0){req.undef=function(_e6,_e7){var _e8=_31(_e6,_e7);_33(_e8);_c(_e8,{def:0,executed:0,injected:0,node:0});};}if(1){if(has("dojo-loader-eval-hint-url")===undefined){has.add("dojo-loader-eval-hint-url",1);}var _3f=function(url){url+="";return url+(_51?((/\?/.test(url)?"&":"?")+_51):"");},_e9=function(_ea){var _eb=_ea.plugin;if(_eb.executed===_24&&!_eb.load){_c0(_eb);}var _ec=function(def){_ea.result=def;_33(_ea);_35(_ea);_7e();};if(_eb.load){_eb.load(_ea.prid,_ea.req,_ec);}else{if(_eb.loadQ){_eb.loadQ.push(_ea);}else{_eb.loadQ=[_ea];_30.unshift(_eb);_32(_eb);}}},_8d=0,_7f=0,_ed=0,_8e=function(_ee,_ef){if(has("config-stripStrict")){_ee=_ee.replace(/"use strict"/g,"");}_ed=1;if(has("config-dojo-loader-catches")){try{if(_ee===_8d){_8d.call(null);}else{req.eval(_ee,has("dojo-loader-eval-hint-url")?_ef.url:_ef.mid);}}catch(e){_34(_44,_f("evalModuleThrew",_ef));}}else{if(_ee===_8d){_8d.call(null);}else{req.eval(_ee,has("dojo-loader-eval-hint-url")?_ef.url:_ef.mid);}}_ed=0;},_32=function(_f0){var mid=_f0.mid,url=_f0.url;if(_f0.executed||_f0.injected||_90[mid]||(_f0.url&&((_f0.pack&&_90[_f0.url]===_f0.pack)||_90[_f0.url]==1))){return;}_91(_f0);if(0){var _f1=0;if(_f0.plugin&&_f0.plugin.isCombo){req.combo.add(_f0.plugin.mid,_f0.prid,0,req);_f1=1;}else{if(!_f0.plugin){_f1=req.combo.add(0,_f0.mid,_f0.url,req);}}if(_f1){_76=1;return;}}if(_f0.plugin){_e9(_f0);return;}var _f2=function(){_7d(_f0);if(_f0.injected!==_21){if(has("dojo-enforceDefine")){_34(_44,_f("noDefine",_f0));return;}_33(_f0);_c(_f0,_c5);req.trace("loader-define-nonmodule",[_f0.url]);}if(1&&_25){!_27.length&&_7e();}else{_7e();}};_8d=_52[mid]||_52[_53+_f0.url];if(_8d){req.trace("loader-inject",["cache",_f0.mid,url]);_8e(_8d,_f0);_f2();return;}if(1&&_25){if(_f0.isXd){_25==_26&&(_25=xd);}else{if(_f0.isAmd&&_25!=_26){}else{var _f3=function(_f4){if(_25==_26){_27.unshift(_f0);_8e(_f4,_f0);_27.shift();_7d(_f0);if(!_f0.cjs){_33(_f0);_35(_f0);}if(_f0.finish){var _f5=mid+"*finish",_f6=_f0.finish;delete _f0.finish;def(_f5,["dojo",("dojo/require!"+_f6.join(",")).replace(/\./g,"/")],function(_f7){_9(_f6,function(mid){_f7.require(mid);});});_30.unshift(_31(_f5));}_f2();}else{_f4=_2a(_f0,_f4);if(_f4){_8e(_f4,_f0);_f2();}else{_7f=_f0;req.injectUrl(_3f(url),_f2,_f0);_7f=0;}}};req.trace("loader-inject",["xhr",_f0.mid,url,_25!=_26]);if(has("config-dojo-loader-catches")){try{req.getText(url,_25!=_26,_f3);}catch(e){_34(_44,_f("xhrInjectFailed",[_f0,e]));}}else{req.getText(url,_25!=_26,_f3);}return;}}}req.trace("loader-inject",["script",_f0.mid,url]);_7f=_f0;req.injectUrl(_3f(url),_f2,_f0);_7f=0;},_f8=function(_f9,_fa,def){req.trace("loader-define-module",[_f9.mid,_fa]);if(0&&_f9.plugin&&_f9.plugin.isCombo){_f9.result=_6(def)?def():def;_33(_f9);_35(_f9);return _f9;}var mid=_f9.mid;if(_f9.injected===_21){_34(_44,_f("multipleDefine",_f9));return _f9;}_c(_f9,{deps:_fa,def:def,cjs:{id:_f9.mid,uri:_f9.url,exports:(_f9.result={}),setExports:function(_fb){_f9.cjs.exports=_fb;},config:function(){return _f9.config;}}});for(var i=0;_fa[i];i++){_fa[i]=_31(_fa[i],_f9);}if(1&&_25&&!_90[mid]){_79(_f9);_30.push(_f9);_7e();}_33(_f9);if(!_6(def)&&!_fa.length){_f9.result=def;_35(_f9);}return _f9;},_7d=function(_fc,_fd){var _fe=[],_ff,args;while(_8f.length){args=_8f.shift();_fd&&(args[0]=_fd.shift());_ff=(args[0]&&_31(args[0]))||_fc;_fe.push([_ff,args[1],args[2]]);}_57(_fc);_9(_fe,function(args){_79(_f8.apply(null,args));});};}var _100=0,_95=_3,_93=_3;if(1){_95=function(){_100&&clearTimeout(_100);_100=0;};_93=function(){_95();if(req.waitms){_100=window.setTimeout(function(){_95();_34(_44,_f("timeout",_90));},req.waitms);}};}if(1){has.add("ie-event-behavior",doc.attachEvent&&typeof Windows==="undefined"&&(typeof opera==="undefined"||opera.toString()!="[object Opera]"));}if(1&&(1||1)){var _101=function(node,_102,_103,_104){if(!has("ie-event-behavior")){node.addEventListener(_102,_104,false);return function(){node.removeEventListener(_102,_104,false);};}else{node.attachEvent(_103,_104);return function(){node.detachEvent(_103,_104);};}},_105=_101(window,"load","onload",function(){req.pageLoaded=1;doc.readyState!="complete"&&(doc.readyState="complete");_105();});if(1){var _72=doc.getElementsByTagName("script"),i=0,_73;while(!_56){if(!/^dojo/.test((_73=_72[i++])&&_73.type)){_56=_73;}}req.injectUrl=function(url,_106,_107){var node=_107.node=doc.createElement("script"),_108=function(e){e=e||window.event;var node=e.target||e.srcElement;if(e.type==="load"||/complete|loaded/.test(node.readyState)){_109();_10a();_106&&_106();}},_109=_101(node,"load","onreadystatechange",_108),_10a=_101(node,"error","onerror",function(e){_109();_10a();_34(_44,_f("scriptError",[url,e]));});node.type="text/javascript";node.charset="utf-8";node.src=url;_56.parentNode.insertBefore(node,_56);return node;};}}if(1){req.log=function(){try{for(var i=0;i<arguments.length;i++){}}catch(e){}};}else{req.log=_3;}if(0){var _10b=req.trace=function(_10c,args){if(_10b.on&&_10b.group[_10c]){_34("trace",[_10c,args]);for(var arg,dump=[],text="trace:"+_10c+(args.length?(":"+args[0]):""),i=1;i<args.length;){arg=args[i++];if(_7(arg)){text+=", "+arg;}else{dump.push(arg);}}req.log(text);dump.length&&dump.push(".");req.log.apply(req,dump);}};_c(_10b,{on:1,group:{},set:function(_10d,_10e){if(_7(_10d)){_10b.group[_10d]=_10e;}else{_c(_10b.group,_10d);}}});_10b.set(_c(_c(_c({},_2.trace),_1.trace),_55.trace));on("config",function(_10f){_10f.trace&&_10b.set(_10f.trace);});}else{req.trace=_3;}var def=function(mid,_110,_111){var _112=arguments.length,_113=["require","exports","module"],args=[0,mid,_110];if(_112==1){args=[0,(_6(mid)?_113:[]),mid];}else{if(_112==2&&_7(mid)){args=[mid,(_6(_110)?_113:[]),_110];}else{if(_112==3){args=[mid,_110,_111];}}}if(0&&args[1]===_113){args[2].toString().replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"").replace(/require\(["']([\w\!\-_\.\/]+)["']\)/g,function(_114,dep){args[1].push(dep);});}req.trace("loader-define",args.slice(0,2));var _115=args[0]&&_31(args[0]),_116;if(_115&&!_90[_115.mid]){_79(_f8(_115,args[1],args[2]));}else{if(!has("ie-event-behavior")||!1||_ed){_8f.push(args);}else{_115=_115||_7f;if(!_115){for(mid in _90){_116=_2f[mid];if(_116&&_116.node&&_116.node.readyState==="interactive"){_115=_116;break;}}if(0&&!_115){for(var i=0;i<_77.length;i++){_115=_77[i];if(_115.node&&_115.node.readyState==="interactive"){break;}_115=0;}}}if(0&&_8(_115)){_79(_f8(_31(_115.shift()),args[1],args[2]));if(!_115.length){_77.splice(i,1);}}else{if(_115){_57(_115);_79(_f8(_115,args[1],args[2]));}else{_34(_44,_f("ieDefineFailed",args[0]));}}_7e();}}};def.amd={vendor:"dojotoolkit.org"};if(0){req.def=def;}_c(_c(req,_2.loaderPatch),_1.loaderPatch);on(_44,function(arg){try{console.error(arg);if(arg instanceof Error){for(var p in arg){}}}catch(e){}});_c(req,{uid:uid,cache:_52,packs:_4f});if(0){_c(req,{paths:_4d,aliases:_4c,modules:_2f,legacyMode:_25,execQ:_30,defQ:_8f,waiting:_90,packs:_4f,mapProgs:_50,pathsMapProg:_4e,listenerQueues:_43,computeMapProg:_5f,computeAliases:_61,runMapProg:_97,compactPath:_99,getModuleInfo:_9f});}if(_17.define){if(1){_34(_44,_f("defineAlreadyDefined",0));}return;}else{_17.define=def;_17.require=req;if(0){require=req;}}if(0&&req.combo&&req.combo.plugins){var _117=req.combo.plugins,_118;for(_118 in _117){_c(_c(_31(_118),_117[_118]),{isCombo:1,executed:"executed",load:1});}}if(1){_9(_68,function(c){_69(c);});var _119=_55.deps||_1.deps||_2.deps,_11a=_55.callback||_1.callback||_2.callback;req.boot=(_119||_11a)?[_119||[],_11a]:0;}if(!1){!req.async&&req(["dojo"]);req.boot&&req.apply(null,req.boot);}})(this.dojoConfig||this.djConfig||this.require||{},{async:0,hasCache:{"config-selectorEngine":"acme","config-tlmSiblingOfDojo":1,"dojo-built":1,"dojo-loader":1,dom:1,"host-browser":1},packages:[{location:"../dijit",name:"dijit"},{location:"../dojox",name:"dojox"},{location:".",name:"dojo"}]});require({cache:{"dojo/request/default":function(){define(["exports","require","../has"],function(_11b,_11c,has){var _11d=has("config-requestProvider"),_11e;if(1){_11e="./xhr";}else{if(0){_11e="./node";}}if(!_11d){_11d=_11e;}_11b.getPlatformDefaultId=function(){return _11e;};_11b.load=function(id,_11f,_120,_121){_11c([id=="platform"?_11e:_11d],function(_122){_120(_122);});};});},"dojo/_base/fx":function(){define(["./kernel","./config","./lang","../Evented","./Color","../aspect","../sniff","../dom","../dom-style"],function(dojo,_123,lang,_124,_125,_126,has,dom,_127){var _128=lang.mixin;var _129={};var _12a=_129._Line=function(_12b,end){this.start=_12b;this.end=end;};_12a.prototype.getValue=function(n){return ((this.end-this.start)*n)+this.start;};var _12c=_129.Animation=function(args){_128(this,args);if(lang.isArray(this.curve)){this.curve=new _12a(this.curve[0],this.curve[1]);}};_12c.prototype=new _124();lang.extend(_12c,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var _12d=this._percent,_12e=this.easing;return _12e?_12e(_12d):_12d;},_fire:function(evt,args){var a=args||[];if(this[evt]){if(_123.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}return this;},play:function(_12f,_130){var _131=this;if(_131._delayTimer){_131._clearTimer();}if(_130){_131._stopTimer();_131._active=_131._paused=false;_131._percent=0;}else{if(_131._active&&!_131._paused){return _131;}}_131._fire("beforeBegin",[_131.node]);var de=_12f||_131.delay,_132=lang.hitch(_131,"_play",_130);if(de>0){_131._delayTimer=setTimeout(_132,de);return _131;}_132();return _131;},_play:function(_133){var _134=this;if(_134._delayTimer){_134._clearTimer();}_134._startTime=new Date().valueOf();if(_134._paused){_134._startTime-=_134.duration*_134._percent;}_134._active=true;_134._paused=false;var _135=_134.curve.getValue(_134._getStep());if(!_134._percent){if(!_134._startRepeatCount){_134._startRepeatCount=_134.repeat;}_134._fire("onBegin",[_135]);}_134._fire("onPlay",[_135]);_134._cycle();return _134;},pause:function(){var _136=this;if(_136._delayTimer){_136._clearTimer();}_136._stopTimer();if(!_136._active){return _136;}_136._paused=true;_136._fire("onPause",[_136.curve.getValue(_136._getStep())]);return _136;},gotoPercent:function(_137,_138){var _139=this;_139._stopTimer();_139._active=_139._paused=true;_139._percent=_137;if(_138){_139.play();}return _139;},stop:function(_13a){var _13b=this;if(_13b._delayTimer){_13b._clearTimer();}if(!_13b._timer){return _13b;}_13b._stopTimer();if(_13a){_13b._percent=1;}_13b._fire("onStop",[_13b.curve.getValue(_13b._getStep())]);_13b._active=_13b._paused=false;return _13b;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _13c=this;if(_13c._active){var curr=new Date().valueOf();var step=_13c.duration===0?1:(curr-_13c._startTime)/(_13c.duration);if(step>=1){step=1;}_13c._percent=step;if(_13c.easing){step=_13c.easing(step);}_13c._fire("onAnimate",[_13c.curve.getValue(step)]);if(_13c._percent<1){_13c._startTimer();}else{_13c._active=false;if(_13c.repeat>0){_13c.repeat--;_13c.play(null,true);}else{if(_13c.repeat==-1){_13c.play(null,true);}else{if(_13c._startRepeatCount){_13c.repeat=_13c._startRepeatCount;_13c._startRepeatCount=0;}}}_13c._percent=0;_13c._fire("onEnd",[_13c.node]);!_13c.repeat&&_13c._stopTimer();}}return _13c;},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer;}});var ctr=0,_13d=null,_13e={run:function(){}};lang.extend(_12c,{_startTimer:function(){if(!this._timer){this._timer=_126.after(_13e,"run",lang.hitch(this,"_cycle"),true);ctr++;}if(!_13d){_13d=setInterval(lang.hitch(_13e,"run"),this.rate);}},_stopTimer:function(){if(this._timer){this._timer.remove();this._timer=null;ctr--;}if(ctr<=0){clearInterval(_13d);_13d=null;ctr=0;}}});var _13f=has("ie")?function(node){var ns=node.style;if(!ns.width.length&&_127.get(node,"width")=="auto"){ns.width="auto";}}:function(){};_129._fade=function(args){args.node=dom.byId(args.node);var _140=_128({properties:{}},args),_141=(_140.properties.opacity={});_141.start=!("start" in _140)?function(){return +_127.get(_140.node,"opacity")||0;}:_140.start;_141.end=_140.end;var anim=_129.animateProperty(_140);_126.after(anim,"beforeBegin",lang.partial(_13f,_140.node),true);return anim;};_129.fadeIn=function(args){return _129._fade(_128({end:1},args));};_129.fadeOut=function(args){return _129._fade(_128({end:0},args));};_129._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _142=function(_143){this._properties=_143;for(var p in _143){var prop=_143[p];if(prop.start instanceof _125){prop.tempColor=new _125();}}};_142.prototype.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p],_144=prop.start;if(_144 instanceof _125){ret[p]=_125.blendColors(_144,prop.end,r,prop.tempColor).toCss();}else{if(!lang.isArray(_144)){ret[p]=((prop.end-_144)*r)+_144+(p!="opacity"?prop.units||"px":0);}}}return ret;};_129.animateProperty=function(args){var n=args.node=dom.byId(args.node);if(!args.easing){args.easing=dojo._defaultEasing;}var anim=new _12c(args);_126.after(anim,"beforeBegin",lang.hitch(anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];if(lang.isFunction(prop)){prop=prop(n);}prop=pm[p]=_128({},(lang.isObject(prop)?prop:{end:prop}));if(lang.isFunction(prop.start)){prop.start=prop.start(n);}if(lang.isFunction(prop.end)){prop.end=prop.end(n);}var _145=(p.toLowerCase().indexOf("color")>=0);function _146(node,p){var v={height:node.offsetHeight,width:node.offsetWidth}[p];if(v!==undefined){return v;}v=_127.get(node,p);return (p=="opacity")?+v:(_145?v:parseFloat(v));};if(!("end" in prop)){prop.end=_146(n,p);}else{if(!("start" in prop)){prop.start=_146(n,p);}}if(_145){prop.start=new _125(prop.start);prop.end=new _125(prop.end);}else{prop.start=(p=="opacity")?+prop.start:parseFloat(prop.start);}}this.curve=new _142(pm);}),true);_126.after(anim,"onAnimate",lang.hitch(_127,"set",anim.node),true);return anim;};_129.anim=function(node,_147,_148,_149,_14a,_14b){return _129.animateProperty({node:node,duration:_148||_12c.prototype.duration,properties:_147,easing:_149,onEnd:_14a}).play(_14b||0);};if(1){_128(dojo,_129);dojo._Animation=_12c;}return _129;});},"dojo/dom-form":function(){define(["./_base/lang","./dom","./io-query","./json"],function(lang,dom,ioq,json){function _14c(obj,name,_14d){if(_14d===null){return;}var val=obj[name];if(typeof val=="string"){obj[name]=[val,_14d];}else{if(lang.isArray(val)){val.push(_14d);}else{obj[name]=_14d;}}};var _14e="file|submit|image|reset|button";var form={fieldToObject:function fieldToObject(_14f){var ret=null;_14f=dom.byId(_14f);if(_14f){var _150=_14f.name,type=(_14f.type||"").toLowerCase();if(_150&&type&&!_14f.disabled){if(type=="radio"||type=="checkbox"){if(_14f.checked){ret=_14f.value;}}else{if(_14f.multiple){ret=[];var _151=[_14f.firstChild];while(_151.length){for(var node=_151.pop();node;node=node.nextSibling){if(node.nodeType==1&&node.tagName.toLowerCase()=="option"){if(node.selected){ret.push(node.value);}}else{if(node.nextSibling){_151.push(node.nextSibling);}if(node.firstChild){_151.push(node.firstChild);}break;}}}}else{ret=_14f.value;}}}}return ret;},toObject:function formToObject(_152){var ret={},_153=dom.byId(_152).elements;for(var i=0,l=_153.length;i<l;++i){var item=_153[i],_154=item.name,type=(item.type||"").toLowerCase();if(_154&&type&&_14e.indexOf(type)<0&&!item.disabled){_14c(ret,_154,form.fieldToObject(item));if(type=="image"){ret[_154+".x"]=ret[_154+".y"]=ret[_154].x=ret[_154].y=0;}}}return ret;},toQuery:function formToQuery(_155){return ioq.objectToQuery(form.toObject(_155));},toJson:function formToJson(_156,_157){return json.stringify(form.toObject(_156),null,_157?4:0);}};return form;});},"dojo/i18n":function(){define(["./_base/kernel","require","./has","./_base/array","./_base/config","./_base/lang","./_base/xhr","./json","module"],function(dojo,_158,has,_159,_15a,lang,xhr,json,_15b){has.add("dojo-preload-i18n-Api",1);1||has.add("dojo-v1x-i18n-Api",1);var _15c=dojo.i18n={},_15d=/(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,_15e=function(root,_15f,_160,_161){for(var _162=[_160+_161],_163=_15f.split("-"),_164="",i=0;i<_163.length;i++){_164+=(_164?"-":"")+_163[i];if(!root||root[_164]){_162.push(_160+_164+"/"+_161);_162.specificity=_164;}}return _162;},_165={},_166=function(_167,_168,_169){_169=_169?_169.toLowerCase():dojo.locale;_167=_167.replace(/\./g,"/");_168=_168.replace(/\./g,"/");return (/root/i.test(_169))?(_167+"/nls/"+_168):(_167+"/nls/"+_169+"/"+_168);},_16a=dojo.getL10nName=function(_16b,_16c,_16d){return _16b=_15b.id+"!"+_166(_16b,_16c,_16d);},_16e=function(_16f,_170,_171,_172,_173,load){_16f([_170],function(root){var _174=lang.clone(root.root||root.ROOT),_175=_15e(!root._v1x&&root,_173,_171,_172);_16f(_175,function(){for(var i=1;i<_175.length;i++){_174=lang.mixin(lang.clone(_174),arguments[i]);}var _176=_170+"/"+_173;_165[_176]=_174;_174.$locale=_175.specificity;load();});});},_177=function(id,_178){return /^\./.test(id)?_178(id):id;},_179=function(_17a){var list=_15a.extraLocale||[];list=lang.isArray(list)?list:[list];list.push(_17a);return list;},load=function(id,_17b,load){if(has("dojo-preload-i18n-Api")){var _17c=id.split("*"),_17d=_17c[1]=="preload";if(_17d){if(!_165[id]){_165[id]=1;_17e(_17c[2],json.parse(_17c[3]),1,_17b);}load(1);}if(_17d||_17f(id,_17b,load)){return;}}var _180=_15d.exec(id),_181=_180[1]+"/",_182=_180[5]||_180[4],_183=_181+_182,_184=(_180[5]&&_180[4]),_185=_184||dojo.locale||"",_186=_183+"/"+_185,_187=_184?[_185]:_179(_185),_188=_187.length,_189=function(){if(!--_188){load(lang.delegate(_165[_186]));}};_159.forEach(_187,function(_18a){var _18b=_183+"/"+_18a;if(has("dojo-preload-i18n-Api")){_18c(_18b);}if(!_165[_18b]){_16e(_17b,_183,_181,_182,_18a,_189);}else{_189();}});};if(has("dojo-unit-tests")){var _18d=_15c.unitTests=[];}if(has("dojo-preload-i18n-Api")||1){var _18e=_15c.normalizeLocale=function(_18f){var _190=_18f?_18f.toLowerCase():dojo.locale;return _190=="root"?"ROOT":_190;},isXd=function(mid,_191){return (1&&1)?_191.isXdUrl(_158.toUrl(mid+".js")):true;},_192=0,_193=[],_17e=_15c._preloadLocalizations=function(_194,_195,_196,_197){_197=_197||_158;function _198(mid,_199){if(isXd(mid,_197)||_196){_197([mid],_199);}else{_1b3([mid],_199,_197);}};function _19a(_19b,func){var _19c=_19b.split("-");while(_19c.length){if(func(_19c.join("-"))){return;}_19c.pop();}func("ROOT");};function _19d(){_192++;};function _19e(){--_192;while(!_192&&_193.length){load.apply(null,_193.shift());}};function _19f(path,name,loc,_1a0){return _1a0.toAbsMid(path+name+"/"+loc);};function _1a1(_1a2){_1a2=_18e(_1a2);_19a(_1a2,function(loc){if(_159.indexOf(_195,loc)>=0){var mid=_194.replace(/\./g,"/")+"_"+loc;_19d();_198(mid,function(_1a3){for(var p in _1a3){var _1a4=_1a3[p],_1a5=p.match(/(.+)\/([^\/]+)$/),_1a6,_1a7;if(!_1a5){continue;}_1a6=_1a5[2];_1a7=_1a5[1]+"/";_1a4._localized=_1a4._localized||{};var _1a8;if(loc==="ROOT"){var root=_1a8=_1a4._localized;delete _1a4._localized;root.root=_1a4;_165[_158.toAbsMid(p)]=root;}else{_1a8=_1a4._localized;_165[_19f(_1a7,_1a6,loc,_158)]=_1a4;}if(loc!==_1a2){function _1a9(_1aa,_1ab,_1ac,_1ad){var _1ae=[],_1af=[];_19a(_1a2,function(loc){if(_1ad[loc]){_1ae.push(_158.toAbsMid(_1aa+loc+"/"+_1ab));_1af.push(_19f(_1aa,_1ab,loc,_158));}});if(_1ae.length){_19d();_197(_1ae,function(){for(var i=0;i<_1ae.length;i++){_1ac=lang.mixin(lang.clone(_1ac),arguments[i]);_165[_1af[i]]=_1ac;}_165[_19f(_1aa,_1ab,_1a2,_158)]=lang.clone(_1ac);_19e();});}else{_165[_19f(_1aa,_1ab,_1a2,_158)]=_1ac;}};_1a9(_1a7,_1a6,_1a4,_1a8);}}_19e();});return true;}return false;});};_1a1();_159.forEach(dojo.config.extraLocale,_1a1);},_17f=function(id,_1b0,load){if(_192){_193.push([id,_1b0,load]);}return _192;},_18c=function(){};}if(1){var _1b1={},_1b2=new Function("__bundle","__checkForLegacyModules","__mid","__amdValue","var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},"+"\t   require = function(){define.called = 1;};"+"try{"+"define.called = 0;"+"eval(__bundle);"+"if(define.called==1)"+"return __amdValue;"+"if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"+"return __checkForLegacyModules;"+"}catch(e){}"+"try{"+"return eval('('+__bundle+')');"+"}catch(e){"+"return e;"+"}"),_1b3=function(deps,_1b4,_1b5){var _1b6=[];_159.forEach(deps,function(mid){var url=_1b5.toUrl(mid+".js");function load(text){var _1b7=_1b2(text,_18c,mid,_1b1);if(_1b7===_1b1){_1b6.push(_165[url]=_1b1.result);}else{if(_1b7 instanceof Error){console.error("failed to evaluate i18n bundle; url="+url,_1b7);_1b7={};}_1b6.push(_165[url]=(/nls\/[^\/]+\/[^\/]+$/.test(url)?_1b7:{root:_1b7,_v1x:1}));}};if(_165[url]){_1b6.push(_165[url]);}else{var _1b8=_1b5.syncLoadNls(mid);if(_1b8){_1b6.push(_1b8);}else{if(!xhr){try{_1b5.getText(url,true,load);}catch(e){_1b6.push(_165[url]={});}}else{xhr.get({url:url,sync:true,load:load,error:function(){_1b6.push(_165[url]={});}});}}}});_1b4&&_1b4.apply(null,_1b6);};_18c=function(_1b9){for(var _1ba,_1bb=_1b9.split("/"),_1bc=dojo.global[_1bb[0]],i=1;_1bc&&i<_1bb.length-1;_1bc=_1bc[_1bb[i++]]){}if(_1bc){_1ba=_1bc[_1bb[i]];if(!_1ba){_1ba=_1bc[_1bb[i].replace(/-/g,"_")];}if(_1ba){_165[_1b9]=_1ba;}}return _1ba;};_15c.getLocalization=function(_1bd,_1be,_1bf){var _1c0,_1c1=_166(_1bd,_1be,_1bf);load(_1c1,(!isXd(_1c1,_158)?function(deps,_1c2){_1b3(deps,_1c2,_158);}:_158),function(_1c3){_1c0=_1c3;});return _1c0;};if(has("dojo-unit-tests")){_18d.push(function(doh){doh.register("tests.i18n.unit",function(t){var _1c4;_1c4=_1b2("{prop:1}",_18c,"nonsense",_1b1);t.is({prop:1},_1c4);t.is(undefined,_1c4[1]);_1c4=_1b2("({prop:1})",_18c,"nonsense",_1b1);t.is({prop:1},_1c4);t.is(undefined,_1c4[1]);_1c4=_1b2("{'prop-x':1}",_18c,"nonsense",_1b1);t.is({"prop-x":1},_1c4);t.is(undefined,_1c4[1]);_1c4=_1b2("({'prop-x':1})",_18c,"nonsense",_1b1);t.is({"prop-x":1},_1c4);t.is(undefined,_1c4[1]);_1c4=_1b2("define({'prop-x':1})",_18c,"nonsense",_1b1);t.is(_1b1,_1c4);t.is({"prop-x":1},_1b1.result);_1c4=_1b2("define('some/module', {'prop-x':1})",_18c,"nonsense",_1b1);t.is(_1b1,_1c4);t.is({"prop-x":1},_1b1.result);_1c4=_1b2("this is total nonsense and should throw an error",_18c,"nonsense",_1b1);t.is(_1c4 instanceof Error,true);});});}}return lang.mixin(_15c,{dynamic:true,normalize:_177,load:load,cache:_165,getL10nName:_16a});});},"dojo/promise/tracer":function(){define(["../_base/lang","./Promise","../Evented"],function(lang,_1c5,_1c6){"use strict";var _1c7=new _1c6;var emit=_1c7.emit;_1c7.emit=null;function _1c8(args){setTimeout(function(){emit.apply(_1c7,args);},0);};_1c5.prototype.trace=function(){var args=lang._toArray(arguments);this.then(function(_1c9){_1c8(["resolved",_1c9].concat(args));},function(_1ca){_1c8(["rejected",_1ca].concat(args));},function(_1cb){_1c8(["progress",_1cb].concat(args));});return this;};_1c5.prototype.traceRejected=function(){var args=lang._toArray(arguments);this.otherwise(function(_1cc){_1c8(["rejected",_1cc].concat(args));});return this;};return _1c7;});},"dojo/errors/RequestError":function(){define(["./create"],function(_1cd){return _1cd("RequestError",function(_1ce,_1cf){this.response=_1cf;});});},"dojo/_base/html":function(){define(["./kernel","../dom","../dom-style","../dom-attr","../dom-prop","../dom-class","../dom-construct","../dom-geometry"],function(dojo,dom,_1d0,attr,prop,cls,ctr,geom){dojo.byId=dom.byId;dojo.isDescendant=dom.isDescendant;dojo.setSelectable=dom.setSelectable;dojo.getAttr=attr.get;dojo.setAttr=attr.set;dojo.hasAttr=attr.has;dojo.removeAttr=attr.remove;dojo.getNodeProp=attr.getNodeProp;dojo.attr=function(node,name,_1d1){if(arguments.length==2){return attr[typeof name=="string"?"get":"set"](node,name);}return attr.set(node,name,_1d1);};dojo.hasClass=cls.contains;dojo.addClass=cls.add;dojo.removeClass=cls.remove;dojo.toggleClass=cls.toggle;dojo.replaceClass=cls.replace;dojo._toDom=dojo.toDom=ctr.toDom;dojo.place=ctr.place;dojo.create=ctr.create;dojo.empty=function(node){ctr.empty(node);};dojo._destroyElement=dojo.destroy=function(node){ctr.destroy(node);};dojo._getPadExtents=dojo.getPadExtents=geom.getPadExtents;dojo._getBorderExtents=dojo.getBorderExtents=geom.getBorderExtents;dojo._getPadBorderExtents=dojo.getPadBorderExtents=geom.getPadBorderExtents;dojo._getMarginExtents=dojo.getMarginExtents=geom.getMarginExtents;dojo._getMarginSize=dojo.getMarginSize=geom.getMarginSize;dojo._getMarginBox=dojo.getMarginBox=geom.getMarginBox;dojo.setMarginBox=geom.setMarginBox;dojo._getContentBox=dojo.getContentBox=geom.getContentBox;dojo.setContentSize=geom.setContentSize;dojo._isBodyLtr=dojo.isBodyLtr=geom.isBodyLtr;dojo._docScroll=dojo.docScroll=geom.docScroll;dojo._getIeDocumentElementOffset=dojo.getIeDocumentElementOffset=geom.getIeDocumentElementOffset;dojo._fixIeBiDiScrollLeft=dojo.fixIeBiDiScrollLeft=geom.fixIeBiDiScrollLeft;dojo.position=geom.position;dojo.marginBox=function marginBox(node,box){return box?geom.setMarginBox(node,box):geom.getMarginBox(node);};dojo.contentBox=function contentBox(node,box){return box?geom.setContentSize(node,box):geom.getContentBox(node);};dojo.coords=function(node,_1d2){dojo.deprecated("dojo.coords()","Use dojo.position() or dojo.marginBox().");node=dom.byId(node);var s=_1d0.getComputedStyle(node),mb=geom.getMarginBox(node,s);var abs=geom.position(node,_1d2);mb.x=abs.x;mb.y=abs.y;return mb;};dojo.getProp=prop.get;dojo.setProp=prop.set;dojo.prop=function(node,name,_1d3){if(arguments.length==2){return prop[typeof name=="string"?"get":"set"](node,name);}return prop.set(node,name,_1d3);};dojo.getStyle=_1d0.get;dojo.setStyle=_1d0.set;dojo.getComputedStyle=_1d0.getComputedStyle;dojo.__toPixelValue=dojo.toPixelValue=_1d0.toPixelValue;dojo.style=function(node,name,_1d4){switch(arguments.length){case 1:return _1d0.get(node);case 2:return _1d0[typeof name=="string"?"get":"set"](node,name);}return _1d0.set(node,name,_1d4);};return dojo;});},"dojo/_base/kernel":function(){define(["../has","./config","require","module"],function(has,_1d5,_1d6,_1d7){var i,p,_1d8={},_1d9={},dojo={config:_1d5,global:this,dijit:_1d8,dojox:_1d9};var _1da={dojo:["dojo",dojo],dijit:["dijit",_1d8],dojox:["dojox",_1d9]},_1db=(_1d6.map&&_1d6.map[_1d7.id.match(/[^\/]+/)[0]]),item;for(p in _1db){if(_1da[p]){_1da[p][0]=_1db[p];}else{_1da[p]=[_1db[p],{}];}}for(p in _1da){item=_1da[p];item[1]._scopeName=item[0];if(!_1d5.noGlobals){this[item[0]]=item[1];}}dojo.scopeMap=_1da;dojo.baseUrl=dojo.config.baseUrl=_1d6.baseUrl;dojo.isAsync=!1||_1d6.async;dojo.locale=_1d5.locale;var rev="$Rev: fd52c96 $".match(/[0-9a-f]{7,}/);dojo.version={major:1,minor:9,patch:3,flag:"",revision:rev?rev[0]:NaN,toString:function(){var v=dojo.version;return v.major+"."+v.minor+"."+v.patch+v.flag+" ("+v.revision+")";}};1||has.add("extend-dojo",1);(Function("d","d.eval = function(){return d.global.eval ? d.global.eval(arguments[0]) : eval(arguments[0]);}"))(dojo);if(0){dojo.exit=function(_1dc){quit(_1dc);};}else{dojo.exit=function(){};}1||has.add("dojo-guarantee-console",1);if(1){typeof console!="undefined"||(console={});var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var tn;i=0;while((tn=cn[i++])){if(!console[tn]){(function(){var tcn=tn+"";console[tcn]=("log" in console)?function(){var a=Array.apply({},arguments);a.unshift(tcn+":");console["log"](a.join(" "));}:function(){};console[tcn]._fake=true;})();}}}has.add("dojo-debug-messages",!!_1d5.isDebug);dojo.deprecated=dojo.experimental=function(){};if(has("dojo-debug-messages")){dojo.deprecated=function(_1dd,_1de,_1df){var _1e0="DEPRECATED: "+_1dd;if(_1de){_1e0+=" "+_1de;}if(_1df){_1e0+=" -- will be removed in version: "+_1df;}console.warn(_1e0);};dojo.experimental=function(_1e1,_1e2){var _1e3="EXPERIMENTAL: "+_1e1+" -- APIs subject to change without notice.";if(_1e2){_1e3+=" "+_1e2;}console.warn(_1e3);};}1||has.add("dojo-modulePaths",1);if(1){if(_1d5.modulePaths){dojo.deprecated("dojo.modulePaths","use paths configuration");var _1e4={};for(p in _1d5.modulePaths){_1e4[p.replace(/\./g,"/")]=_1d5.modulePaths[p];}_1d6({paths:_1e4});}}1||has.add("dojo-moduleUrl",1);if(1){dojo.moduleUrl=function(_1e5,url){dojo.deprecated("dojo.moduleUrl()","use require.toUrl","2.0");var _1e6=null;if(_1e5){_1e6=_1d6.toUrl(_1e5.replace(/\./g,"/")+(url?("/"+url):"")+"/*.*").replace(/\/\*\.\*/,"")+(url?"":"/");}return _1e6;};}dojo._hasResource={};return dojo;});},"dojo/io-query":function(){define(["./_base/lang"],function(lang){var _1e7={};return {objectToQuery:function objectToQuery(map){var enc=encodeURIComponent,_1e8=[];for(var name in map){var _1e9=map[name];if(_1e9!=_1e7[name]){var _1ea=enc(name)+"=";if(lang.isArray(_1e9)){for(var i=0,l=_1e9.length;i<l;++i){_1e8.push(_1ea+enc(_1e9[i]));}}else{_1e8.push(_1ea+enc(_1e9));}}}return _1e8.join("&");},queryToObject:function queryToObject(str){var dec=decodeURIComponent,qp=str.split("&"),ret={},name,val;for(var i=0,l=qp.length,item;i<l;++i){item=qp[i];if(item.length){var s=item.indexOf("=");if(s<0){name=dec(item);val="";}else{name=dec(item.slice(0,s));val=dec(item.slice(s+1));}if(typeof ret[name]=="string"){ret[name]=[ret[name]];}if(lang.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}}return ret;}};});},"dojo/_base/Deferred":function(){define(["./kernel","../Deferred","../promise/Promise","../errors/CancelError","../has","./lang","../when"],function(dojo,_1eb,_1ec,_1ed,has,lang,when){var _1ee=function(){};var _1ef=Object.freeze||function(){};var _1f0=dojo.Deferred=function(_1f1){var _1f2,_1f3,_1f4,_1f5,_1f6,head,_1f7;var _1f8=(this.promise=new _1ec());function _1f9(_1fa){if(_1f3){throw new Error("This deferred has already been resolved");}_1f2=_1fa;_1f3=true;_1fb();};function _1fb(){var _1fc;while(!_1fc&&_1f7){var _1fd=_1f7;_1f7=_1f7.next;if((_1fc=(_1fd.progress==_1ee))){_1f3=false;}var func=(_1f6?_1fd.error:_1fd.resolved);if(has("config-useDeferredInstrumentation")){if(_1f6&&_1eb.instrumentRejected){_1eb.instrumentRejected(_1f2,!!func);}}if(func){try{var _1fe=func(_1f2);if(_1fe&&typeof _1fe.then==="function"){_1fe.then(lang.hitch(_1fd.deferred,"resolve"),lang.hitch(_1fd.deferred,"reject"),lang.hitch(_1fd.deferred,"progress"));continue;}var _1ff=_1fc&&_1fe===undefined;if(_1fc&&!_1ff){_1f6=_1fe instanceof Error;}_1fd.deferred[_1ff&&_1f6?"reject":"resolve"](_1ff?_1f2:_1fe);}catch(e){_1fd.deferred.reject(e);}}else{if(_1f6){_1fd.deferred.reject(_1f2);}else{_1fd.deferred.resolve(_1f2);}}}};this.isResolved=_1f8.isResolved=function(){return _1f5==0;};this.isRejected=_1f8.isRejected=function(){return _1f5==1;};this.isFulfilled=_1f8.isFulfilled=function(){return _1f5>=0;};this.isCanceled=_1f8.isCanceled=function(){return _1f4;};this.resolve=this.callback=function(_200){this.fired=_1f5=0;this.results=[_200,null];_1f9(_200);};this.reject=this.errback=function(_201){_1f6=true;this.fired=_1f5=1;if(has("config-useDeferredInstrumentation")){if(_1eb.instrumentRejected){_1eb.instrumentRejected(_201,!!_1f7);}}_1f9(_201);this.results=[null,_201];};this.progress=function(_202){var _203=_1f7;while(_203){var _204=_203.progress;_204&&_204(_202);_203=_203.next;}};this.addCallbacks=function(_205,_206){this.then(_205,_206,_1ee);return this;};_1f8.then=this.then=function(_207,_208,_209){var _20a=_209==_1ee?this:new _1f0(_1f8.cancel);var _20b={resolved:_207,error:_208,progress:_209,deferred:_20a};if(_1f7){head=head.next=_20b;}else{_1f7=head=_20b;}if(_1f3){_1fb();}return _20a.promise;};var _20c=this;_1f8.cancel=this.cancel=function(){if(!_1f3){var _20d=_1f1&&_1f1(_20c);if(!_1f3){if(!(_20d instanceof Error)){_20d=new _1ed(_20d);}_20d.log=false;_20c.reject(_20d);}}_1f4=true;};_1ef(_1f8);};lang.extend(_1f0,{addCallback:function(_20e){return this.addCallbacks(lang.hitch.apply(dojo,arguments));},addErrback:function(_20f){return this.addCallbacks(null,lang.hitch.apply(dojo,arguments));},addBoth:function(_210){var _211=lang.hitch.apply(dojo,arguments);return this.addCallbacks(_211,_211);},fired:-1});_1f0.when=dojo.when=when;return _1f0;});},"dojo/NodeList-dom":function(){define(["./_base/kernel","./query","./_base/array","./_base/lang","./dom-class","./dom-construct","./dom-geometry","./dom-attr","./dom-style"],function(dojo,_212,_213,lang,_214,_215,_216,_217,_218){var _219=function(a){return a.length==1&&(typeof a[0]=="string");};var _21a=function(node){var p=node.parentNode;if(p){p.removeChild(node);}};var _21b=_212.NodeList,awc=_21b._adaptWithCondition,aafe=_21b._adaptAsForEach,aam=_21b._adaptAsMap;function _21c(_21d){return function(node,name,_21e){if(arguments.length==2){return _21d[typeof name=="string"?"get":"set"](node,name);}return _21d.set(node,name,_21e);};};lang.extend(_21b,{_normalize:function(_21f,_220){var _221=_21f.parse===true;if(typeof _21f.template=="string"){var _222=_21f.templateFunc||(dojo.string&&dojo.string.substitute);_21f=_222?_222(_21f.template,_21f):_21f;}var type=(typeof _21f);if(type=="string"||type=="number"){_21f=_215.toDom(_21f,(_220&&_220.ownerDocument));if(_21f.nodeType==11){_21f=lang._toArray(_21f.childNodes);}else{_21f=[_21f];}}else{if(!lang.isArrayLike(_21f)){_21f=[_21f];}else{if(!lang.isArray(_21f)){_21f=lang._toArray(_21f);}}}if(_221){_21f._runParse=true;}return _21f;},_cloneNode:function(node){return node.cloneNode(true);},_place:function(ary,_223,_224,_225){if(_223.nodeType!=1&&_224=="only"){return;}var _226=_223,_227;var _228=ary.length;for(var i=_228-1;i>=0;i--){var node=(_225?this._cloneNode(ary[i]):ary[i]);if(ary._runParse&&dojo.parser&&dojo.parser.parse){if(!_227){_227=_226.ownerDocument.createElement("div");}_227.appendChild(node);dojo.parser.parse(_227);node=_227.firstChild;while(_227.firstChild){_227.removeChild(_227.firstChild);}}if(i==_228-1){_215.place(node,_226,_224);}else{_226.parentNode.insertBefore(node,_226);}_226=node;}},position:aam(_216.position),attr:awc(_21c(_217),_219),style:awc(_21c(_218),_219),addClass:aafe(_214.add),removeClass:aafe(_214.remove),toggleClass:aafe(_214.toggle),replaceClass:aafe(_214.replace),empty:aafe(_215.empty),removeAttr:aafe(_217.remove),marginBox:aam(_216.getMarginBox),place:function(_229,_22a){var item=_212(_229)[0];return this.forEach(function(node){_215.place(node,item,_22a);});},orphan:function(_22b){return (_22b?_212._filterResult(this,_22b):this).forEach(_21a);},adopt:function(_22c,_22d){return _212(_22c).place(this[0],_22d)._stash(this);},query:function(_22e){if(!_22e){return this;}var ret=new _21b;this.map(function(node){_212(_22e,node).forEach(function(_22f){if(_22f!==undefined){ret.push(_22f);}});});return ret._stash(this);},filter:function(_230){var a=arguments,_231=this,_232=0;if(typeof _230=="string"){_231=_212._filterResult(this,a[0]);if(a.length==1){return _231._stash(this);}_232=1;}return this._wrap(_213.filter(_231,a[_232],a[_232+1]),this);},addContent:function(_233,_234){_233=this._normalize(_233,this[0]);for(var i=0,node;(node=this[i]);i++){if(_233.length){this._place(_233,node,_234,i>0);}else{_215.empty(node);}}return this;}});return _21b;});},"dojo/query":function(){define(["./_base/kernel","./has","./dom","./on","./_base/array","./_base/lang","./selector/_loader","./selector/_loader!default"],function(dojo,has,dom,on,_235,lang,_236,_237){"use strict";has.add("array-extensible",function(){return lang.delegate([],{length:1}).length==1&&!has("bug-for-in-skips-shadowed");});var ap=Array.prototype,aps=ap.slice,apc=ap.concat,_238=_235.forEach;var tnl=function(a,_239,_23a){var _23b=new (_23a||this._NodeListCtor||nl)(a);return _239?_23b._stash(_239):_23b;};var _23c=function(f,a,o){a=[0].concat(aps.call(a,0));o=o||dojo.global;return function(node){a[0]=node;return f.apply(o,a);};};var _23d=function(f,o){return function(){this.forEach(_23c(f,arguments,o));return this;};};var _23e=function(f,o){return function(){return this.map(_23c(f,arguments,o));};};var _23f=function(f,o){return function(){return this.filter(_23c(f,arguments,o));};};var _240=function(f,g,o){return function(){var a=arguments,body=_23c(f,a,o);if(g.call(o||dojo.global,a)){return this.map(body);}this.forEach(body);return this;};};var _241=function(_242){var _243=this instanceof nl&&has("array-extensible");if(typeof _242=="number"){_242=Array(_242);}var _244=(_242&&"length" in _242)?_242:arguments;if(_243||!_244.sort){var _245=_243?this:[],l=_245.length=_244.length;for(var i=0;i<l;i++){_245[i]=_244[i];}if(_243){return _245;}_244=_245;}lang._mixin(_244,nlp);_244._NodeListCtor=function(_246){return nl(_246);};return _244;};var nl=_241,nlp=nl.prototype=has("array-extensible")?[]:{};nl._wrap=nlp._wrap=tnl;nl._adaptAsMap=_23e;nl._adaptAsForEach=_23d;nl._adaptAsFilter=_23f;nl._adaptWithCondition=_240;_238(["slice","splice"],function(name){var f=ap[name];nlp[name]=function(){return this._wrap(f.apply(this,arguments),name=="slice"?this:null);};});_238(["indexOf","lastIndexOf","every","some"],function(name){var f=_235[name];nlp[name]=function(){return f.apply(dojo,[this].concat(aps.call(arguments,0)));};});lang.extend(_241,{constructor:nl,_NodeListCtor:nl,toString:function(){return this.join(",");},_stash:function(_247){this._parent=_247;return this;},on:function(_248,_249){var _24a=this.map(function(node){return on(node,_248,_249);});_24a.remove=function(){for(var i=0;i<_24a.length;i++){_24a[i].remove();}};return _24a;},end:function(){if(this._parent){return this._parent;}else{return new this._NodeListCtor(0);}},concat:function(item){var t=aps.call(this,0),m=_235.map(arguments,function(a){return aps.call(a,0);});return this._wrap(apc.apply(t,m),this);},map:function(func,obj){return this._wrap(_235.map(this,func,obj),this);},forEach:function(_24b,_24c){_238(this,_24b,_24c);return this;},filter:function(_24d){var a=arguments,_24e=this,_24f=0;if(typeof _24d=="string"){_24e=_250._filterResult(this,a[0]);if(a.length==1){return _24e._stash(this);}_24f=1;}return this._wrap(_235.filter(_24e,a[_24f],a[_24f+1]),this);},instantiate:function(_251,_252){var c=lang.isFunction(_251)?_251:lang.getObject(_251);_252=_252||{};return this.forEach(function(node){new c(_252,node);});},at:function(){var t=new this._NodeListCtor(0);_238(arguments,function(i){if(i<0){i=this.length+i;}if(this[i]){t.push(this[i]);}},this);return t._stash(this);}});function _253(_254,_255){var _256=function(_257,root){if(typeof root=="string"){root=dom.byId(root);if(!root){return new _255([]);}}var _258=typeof _257=="string"?_254(_257,root):_257?(_257.end&&_257.on)?_257:[_257]:[];if(_258.end&&_258.on){return _258;}return new _255(_258);};_256.matches=_254.match||function(node,_259,root){return _256.filter([node],_259,root).length>0;};_256.filter=_254.filter||function(_25a,_25b,root){return _256(_25b,root).filter(function(node){return _235.indexOf(_25a,node)>-1;});};if(typeof _254!="function"){var _25c=_254.search;_254=function(_25d,root){return _25c(root||document,_25d);};}return _256;};var _250=_253(_237,_241);dojo.query=_253(_237,function(_25e){return _241(_25e);});_250.load=function(id,_25f,_260){_236.load(id,_25f,function(_261){_260(_253(_261,_241));});};dojo._filterQueryResult=_250._filterResult=function(_262,_263,root){return new _241(_250.filter(_262,_263,root));};dojo.NodeList=_250.NodeList=_241;return _250;});},"dojo/has":function(){define(["require","module"],function(_264,_265){var has=_264.has||function(){};if(!1){var _266=typeof window!="undefined"&&typeof location!="undefined"&&typeof document!="undefined"&&window.location==location&&window.document==document,_267=this,doc=_266&&document,_268=doc&&doc.createElement("DiV"),_269=(_265.config&&_265.config())||{};has=function(name){return typeof _269[name]=="function"?(_269[name]=_269[name](_267,doc,_268)):_269[name];};has.cache=_269;has.add=function(name,test,now,_26a){(typeof _269[name]=="undefined"||_26a)&&(_269[name]=test);return now&&has(name);};1||has.add("host-browser",_266);0&&has.add("host-node",(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8));0&&has.add("host-rhino",(typeof load=="function"&&(typeof Packages=="function"||typeof Packages=="object")));1||has.add("dom",_266);1||has.add("dojo-dom-ready-api",1);1||has.add("dojo-sniff",1);}if(1){has.add("dom-addeventlistener",!!document.addEventListener);has.add("touch","ontouchstart" in document||window.navigator.msMaxTouchPoints>0);has.add("device-width",screen.availWidth||innerWidth);var form=document.createElement("form");has.add("dom-attributes-explicit",form.attributes.length==0);has.add("dom-attributes-specified-flag",form.attributes.length>0&&form.attributes.length<40);}has.clearElement=function(_26b){_26b.innerHTML="";return _26b;};has.normalize=function(id,_26c){var _26d=id.match(/[\?:]|[^:\?]*/g),i=0,get=function(skip){var term=_26d[i++];if(term==":"){return 0;}else{if(_26d[i++]=="?"){if(!skip&&has(term)){return get();}else{get(true);return get(skip);}}return term||0;}};id=get();return id&&_26c(id);};has.load=function(id,_26e,_26f){if(id){_26e([id],_26f);}else{_26f();}};return has;});},"dojo/_base/loader":function(){define(["./kernel","../has","require","module","../json","./lang","./array"],function(dojo,has,_270,_271,json,lang,_272){if(!1){console.error("cannot load the Dojo v1.x loader with a foreign loader");return 0;}1||has.add("dojo-fast-sync-require",1);var _273=function(id){return {src:_271.id,id:id};},_274=function(name){return name.replace(/\./g,"/");},_275=/\/\/>>built/,_276=[],_277=[],_278=function(mid,_279,_27a){_276.push(_27a);_272.forEach(mid.split(","),function(mid){var _27b=_27c(mid,_279.module);_277.push(_27b);_27d(_27b);});_27e();},_27e=(1?function(){var _27f,mid;for(mid in _280){_27f=_280[mid];if(_27f.noReqPluginCheck===undefined){_27f.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(!_27f.executed&&!_27f.noReqPluginCheck&&_27f.injected==_281){return;}}_282(function(){var _283=_276;_276=[];_272.forEach(_283,function(cb){cb(1);});});}:(function(){var _284,_285=function(m){_284[m.mid]=1;for(var t,_286,deps=m.deps||[],i=0;i<deps.length;i++){_286=deps[i];if(!(t=_284[_286.mid])){if(t===0||!_285(_286)){_284[m.mid]=0;return false;}}}return true;};return function(){var _287,mid;_284={};for(mid in _280){_287=_280[mid];if(_287.executed||_287.noReqPluginCheck){_284[mid]=1;}else{if(_287.noReqPluginCheck!==0){_287.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;}if(_287.noReqPluginCheck){_284[mid]=1;}else{if(_287.injected!==_2b3){_284[mid]=0;}}}}for(var t,i=0,end=_277.length;i<end;i++){_287=_277[i];if(!(t=_284[_287.mid])){if(t===0||!_285(_287)){return;}}}_282(function(){var _288=_276;_276=[];_272.forEach(_288,function(cb){cb(1);});});};})()),_289=function(mid,_28a,_28b){_28a([mid],function(_28c){_28a(_28c.names,function(){for(var _28d="",args=[],i=0;i<arguments.length;i++){_28d+="var "+_28c.names[i]+"= arguments["+i+"]; ";args.push(arguments[i]);}eval(_28d);var _28e=_28a.module,_28f=[],_290,_291={provide:function(_292){_292=_274(_292);var _293=_27c(_292,_28e);if(_293!==_28e){_2b9(_293);}},require:function(_294,_295){_294=_274(_294);_295&&(_27c(_294,_28e).result=_2b4);_28f.push(_294);},requireLocalization:function(_296,_297,_298){if(!_290){_290=["dojo/i18n"];}_298=(_298||dojo.locale).toLowerCase();_296=_274(_296)+"/nls/"+(/root/i.test(_298)?"":_298+"/")+_274(_297);if(_27c(_296,_28e).isXd){_290.push("dojo/i18n!"+_296);}},loadInit:function(f){f();}},hold={},p;try{for(p in _291){hold[p]=dojo[p];dojo[p]=_291[p];}_28c.def.apply(null,args);}catch(e){_299("error",[_273("failedDojoLoadInit"),e]);}finally{for(p in _291){dojo[p]=hold[p];}}if(_290){_28f=_28f.concat(_290);}if(_28f.length){_278(_28f.join(","),_28a,_28b);}else{_28b();}});});},_29a=function(text,_29b,_29c){var _29d=/\(|\)/g,_29e=1,_29f;_29d.lastIndex=_29b;while((_29f=_29d.exec(text))){if(_29f[0]==")"){_29e-=1;}else{_29e+=1;}if(_29e==0){break;}}if(_29e!=0){throw "unmatched paren around character "+_29d.lastIndex+" in: "+text;}return [dojo.trim(text.substring(_29c,_29d.lastIndex))+";\n",_29d.lastIndex];},_2a0=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,_2a1=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,_2a2=/(^|\s)(require|define)\s*\(/m,_2a3=function(text,_2a4){var _2a5,_2a6,_2a7,_2a8,_2a9=[],_2aa=[],_2ab=[];_2a4=_2a4||text.replace(_2a0,function(_2ac){_2a1.lastIndex=_2a2.lastIndex=0;return (_2a1.test(_2ac)||_2a2.test(_2ac))?"":_2ac;});while((_2a5=_2a1.exec(_2a4))){_2a6=_2a1.lastIndex;_2a7=_2a6-_2a5[0].length;_2a8=_29a(_2a4,_2a6,_2a7);if(_2a5[2]=="loadInit"){_2a9.push(_2a8[0]);}else{_2aa.push(_2a8[0]);}_2a1.lastIndex=_2a8[1];}_2ab=_2a9.concat(_2aa);if(_2ab.length||!_2a2.test(_2a4)){return [text.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),_2ab.join(""),_2ab];}else{return 0;}},_2ad=function(_2ae,text){var _2af,id,_2b0=[],_2b1=[];if(_275.test(text)||!(_2af=_2a3(text))){return 0;}id=_2ae.mid+"-*loadInit";for(var p in _27c("dojo",_2ae).result.scopeMap){_2b0.push(p);_2b1.push("\""+p+"\"");}return "// xdomain rewrite of "+_2ae.mid+"\n"+"define('"+id+"',{\n"+"\tnames:"+json.stringify(_2b0)+",\n"+"\tdef:function("+_2b0.join(",")+"){"+_2af[1]+"}"+"});\n\n"+"define("+json.stringify(_2b0.concat(["dojo/loadInit!"+id]))+", function("+_2b0.join(",")+"){\n"+_2af[0]+"});";},_2b2=_270.initSyncLoader(_278,_27e,_2ad),sync=_2b2.sync,_281=_2b2.requested,_2b3=_2b2.arrived,_2b4=_2b2.nonmodule,_2b5=_2b2.executing,_2b6=_2b2.executed,_2b7=_2b2.syncExecStack,_280=_2b2.modules,_2b8=_2b2.execQ,_27c=_2b2.getModule,_27d=_2b2.injectModule,_2b9=_2b2.setArrived,_299=_2b2.signal,_2ba=_2b2.finishExec,_2bb=_2b2.execModule,_2bc=_2b2.getLegacyMode,_282=_2b2.guardCheckComplete;_278=_2b2.dojoRequirePlugin;dojo.provide=function(mid){var _2bd=_2b7[0],_2be=lang.mixin(_27c(_274(mid),_270.module),{executed:_2b5,result:lang.getObject(mid,true)});_2b9(_2be);if(_2bd){(_2bd.provides||(_2bd.provides=[])).push(function(){_2be.result=lang.getObject(mid);delete _2be.provides;_2be.executed!==_2b6&&_2ba(_2be);});}return _2be.result;};has.add("config-publishRequireResult",1,0,0);dojo.require=function(_2bf,_2c0){function _2c1(mid,_2c2){var _2c3=_27c(_274(mid),_270.module);if(_2b7.length&&_2b7[0].finish){_2b7[0].finish.push(mid);return undefined;}if(_2c3.executed){return _2c3.result;}_2c2&&(_2c3.result=_2b4);var _2c4=_2bc();_27d(_2c3);_2c4=_2bc();if(_2c3.executed!==_2b6&&_2c3.injected===_2b3){_2b2.guardCheckComplete(function(){_2bb(_2c3);});}if(_2c3.executed){return _2c3.result;}if(_2c4==sync){if(_2c3.cjs){_2b8.unshift(_2c3);}else{_2b7.length&&(_2b7[0].finish=[mid]);}}else{_2b8.push(_2c3);}return undefined;};var _2c5=_2c1(_2bf,_2c0);if(has("config-publishRequireResult")&&!lang.exists(_2bf)&&_2c5!==undefined){lang.setObject(_2bf,_2c5);}return _2c5;};dojo.loadInit=function(f){f();};dojo.registerModulePath=function(_2c6,_2c7){var _2c8={};_2c8[_2c6.replace(/\./g,"/")]=_2c7;_270({paths:_2c8});};dojo.platformRequire=function(_2c9){var _2ca=(_2c9.common||[]).concat(_2c9[dojo._name]||_2c9["default"]||[]),temp;while(_2ca.length){if(lang.isArray(temp=_2ca.shift())){dojo.require.apply(dojo,temp);}else{dojo.require(temp);}}};dojo.requireIf=dojo.requireAfterIf=function(_2cb,_2cc,_2cd){if(_2cb){dojo.require(_2cc,_2cd);}};dojo.requireLocalization=function(_2ce,_2cf,_2d0){_270(["../i18n"],function(i18n){i18n.getLocalization(_2ce,_2cf,_2d0);});};return {extractLegacyApiApplications:_2a3,require:_278,loadInit:_289};});},"dojo/json":function(){define(["./has"],function(has){"use strict";var _2d1=typeof JSON!="undefined";has.add("json-parse",_2d1);has.add("json-stringify",_2d1&&JSON.stringify({a:0},function(k,v){return v||1;})=="{\"a\":1}");if(has("json-stringify")){return JSON;}else{var _2d2=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};return {parse:has("json-parse")?JSON.parse:function(str,_2d3){if(_2d3&&!/^([\s\[\{]*(?:"(?:\\.|[^"])*"|-?\d[\d\.]*(?:[Ee][+-]?\d+)?|null|true|false|)[\s\]\}]*(?:,|:|$))+$/.test(str)){throw new SyntaxError("Invalid characters in JSON");}return eval("("+str+")");},stringify:function(_2d4,_2d5,_2d6){var _2d7;if(typeof _2d5=="string"){_2d6=_2d5;_2d5=null;}function _2d8(it,_2d9,key){if(_2d5){it=_2d5(key,it);}var val,_2da=typeof it;if(_2da=="number"){return isFinite(it)?it+"":"null";}if(_2da=="boolean"){return it+"";}if(it===null){return "null";}if(typeof it=="string"){return _2d2(it);}if(_2da=="function"||_2da=="undefined"){return _2d7;}if(typeof it.toJSON=="function"){return _2d8(it.toJSON(key),_2d9,key);}if(it instanceof Date){return "\"{FullYear}-{Month+}-{Date}T{Hours}:{Minutes}:{Seconds}Z\"".replace(/\{(\w+)(\+)?\}/g,function(t,prop,plus){var num=it["getUTC"+prop]()+(plus?1:0);return num<10?"0"+num:num;});}if(it.valueOf()!==it){return _2d8(it.valueOf(),_2d9,key);}var _2db=_2d6?(_2d9+_2d6):"";var sep=_2d6?" ":"";var _2dc=_2d6?"\n":"";if(it instanceof Array){var itl=it.length,res=[];for(key=0;key<itl;key++){var obj=it[key];val=_2d8(obj,_2db,key);if(typeof val!="string"){val="null";}res.push(_2dc+_2db+val);}return "["+res.join(",")+_2dc+_2d9+"]";}var _2dd=[];for(key in it){var _2de;if(it.hasOwnProperty(key)){if(typeof key=="number"){_2de="\""+key+"\"";}else{if(typeof key=="string"){_2de=_2d2(key);}else{continue;}}val=_2d8(it[key],_2db,key);if(typeof val!="string"){continue;}_2dd.push(_2dc+_2db+_2de+":"+sep+val);}}return "{"+_2dd.join(",")+_2dc+_2d9+"}";};return _2d8(_2d4,"","");}};}});},"dojo/_base/declare":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var mix=lang.mixin,op=Object.prototype,opts=op.toString,xtor=new Function,_2df=0,_2e0="constructor";function err(msg,cls){throw new Error("declare"+(cls?" "+cls:"")+": "+msg);};function _2e1(_2e2,_2e3){var _2e4=[],_2e5=[{cls:0,refs:[]}],_2e6={},_2e7=1,l=_2e2.length,i=0,j,lin,base,top,_2e8,rec,name,refs;for(;i<l;++i){base=_2e2[i];if(!base){err("mixin #"+i+" is unknown. Did you use dojo.require to pull it in?",_2e3);}else{if(opts.call(base)!="[object Function]"){err("mixin #"+i+" is not a callable constructor.",_2e3);}}lin=base._meta?base._meta.bases:[base];top=0;for(j=lin.length-1;j>=0;--j){_2e8=lin[j].prototype;if(!_2e8.hasOwnProperty("declaredClass")){_2e8.declaredClass="uniqName_"+(_2df++);}name=_2e8.declaredClass;if(!_2e6.hasOwnProperty(name)){_2e6[name]={count:0,refs:[],cls:lin[j]};++_2e7;}rec=_2e6[name];if(top&&top!==rec){rec.refs.push(top);++top.count;}top=rec;}++top.count;_2e5[0].refs.push(top);}while(_2e5.length){top=_2e5.pop();_2e4.push(top.cls);--_2e7;while(refs=top.refs,refs.length==1){top=refs[0];if(!top||--top.count){top=0;break;}_2e4.push(top.cls);--_2e7;}if(top){for(i=0,l=refs.length;i<l;++i){top=refs[i];if(!--top.count){_2e5.push(top);}}}}if(_2e7){err("can't build consistent linearization",_2e3);}base=_2e2[0];_2e4[0]=base?base._meta&&base===_2e4[_2e4.length-base._meta.bases.length]?base._meta.bases.length:1:0;return _2e4;};function _2e9(args,a,f){var name,_2ea,_2eb,_2ec,meta,base,_2ed,opf,pos,_2ee=this._inherited=this._inherited||{};if(typeof args=="string"){name=args;args=a;a=f;}f=0;_2ec=args.callee;name=name||_2ec.nom;if(!name){err("can't deduce a name to call inherited()",this.declaredClass);}meta=this.constructor._meta;_2eb=meta.bases;pos=_2ee.p;if(name!=_2e0){if(_2ee.c!==_2ec){pos=0;base=_2eb[0];meta=base._meta;if(meta.hidden[name]!==_2ec){_2ea=meta.chains;if(_2ea&&typeof _2ea[name]=="string"){err("calling chained method with inherited: "+name,this.declaredClass);}do{meta=base._meta;_2ed=base.prototype;if(meta&&(_2ed[name]===_2ec&&_2ed.hasOwnProperty(name)||meta.hidden[name]===_2ec)){break;}}while(base=_2eb[++pos]);pos=base?pos:-1;}}base=_2eb[++pos];if(base){_2ed=base.prototype;if(base._meta&&_2ed.hasOwnProperty(name)){f=_2ed[name];}else{opf=op[name];do{_2ed=base.prototype;f=_2ed[name];if(f&&(base._meta?_2ed.hasOwnProperty(name):f!==opf)){break;}}while(base=_2eb[++pos]);}}f=base&&f||op[name];}else{if(_2ee.c!==_2ec){pos=0;meta=_2eb[0]._meta;if(meta&&meta.ctor!==_2ec){_2ea=meta.chains;if(!_2ea||_2ea.constructor!=="manual"){err("calling chained constructor with inherited",this.declaredClass);}while(base=_2eb[++pos]){meta=base._meta;if(meta&&meta.ctor===_2ec){break;}}pos=base?pos:-1;}}while(base=_2eb[++pos]){meta=base._meta;f=meta?meta.ctor:base;if(f){break;}}f=base&&f;}_2ee.c=f;_2ee.p=pos;if(f){return a===true?f:f.apply(this,a||args);}};function _2ef(name,args){if(typeof name=="string"){return this.__inherited(name,args,true);}return this.__inherited(name,true);};function _2f0(args,a1,a2){var f=this.getInherited(args,a1);if(f){return f.apply(this,a2||a1||args);}};var _2f1=dojo.config.isDebug?_2f0:_2e9;function _2f2(cls){var _2f3=this.constructor._meta.bases;for(var i=0,l=_2f3.length;i<l;++i){if(_2f3[i]===cls){return true;}}return this instanceof cls;};function _2f4(_2f5,_2f6){for(var name in _2f6){if(name!=_2e0&&_2f6.hasOwnProperty(name)){_2f5[name]=_2f6[name];}}if(has("bug-for-in-skips-shadowed")){for(var _2f7=lang._extraNames,i=_2f7.length;i;){name=_2f7[--i];if(name!=_2e0&&_2f6.hasOwnProperty(name)){_2f5[name]=_2f6[name];}}}};function _2f8(_2f9,_2fa){var name,t;for(name in _2fa){t=_2fa[name];if((t!==op[name]||!(name in op))&&name!=_2e0){if(opts.call(t)=="[object Function]"){t.nom=name;}_2f9[name]=t;}}if(has("bug-for-in-skips-shadowed")){for(var _2fb=lang._extraNames,i=_2fb.length;i;){name=_2fb[--i];t=_2fa[name];if((t!==op[name]||!(name in op))&&name!=_2e0){if(opts.call(t)=="[object Function]"){t.nom=name;}_2f9[name]=t;}}}return _2f9;};function _2fc(_2fd){_2fe.safeMixin(this.prototype,_2fd);return this;};function _2ff(_300,_301){return _2fe([this].concat(_300),_301||{});};function _302(_303,_304){return function(){var a=arguments,args=a,a0=a[0],f,i,m,l=_303.length,_305;if(!(this instanceof a.callee)){return _306(a);}if(_304&&(a0&&a0.preamble||this.preamble)){_305=new Array(_303.length);_305[0]=a;for(i=0;;){a0=a[0];if(a0){f=a0.preamble;if(f){a=f.apply(this,a)||a;}}f=_303[i].prototype;f=f.hasOwnProperty("preamble")&&f.preamble;if(f){a=f.apply(this,a)||a;}if(++i==l){break;}_305[i]=a;}}for(i=l-1;i>=0;--i){f=_303[i];m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,_305?_305[i]:a);}}f=this.postscript;if(f){f.apply(this,args);}};};function _307(ctor,_308){return function(){var a=arguments,t=a,a0=a[0],f;if(!(this instanceof a.callee)){return _306(a);}if(_308){if(a0){f=a0.preamble;if(f){t=f.apply(this,t)||t;}}f=this.preamble;if(f){f.apply(this,t);}}if(ctor){ctor.apply(this,a);}f=this.postscript;if(f){f.apply(this,a);}};};function _309(_30a){return function(){var a=arguments,i=0,f,m;if(!(this instanceof a.callee)){return _306(a);}for(;f=_30a[i];++i){m=f._meta;f=m?m.ctor:f;if(f){f.apply(this,a);break;}}f=this.postscript;if(f){f.apply(this,a);}};};function _30b(name,_30c,_30d){return function(){var b,m,f,i=0,step=1;if(_30d){i=_30c.length-1;step=-1;}for(;b=_30c[i];i+=step){m=b._meta;f=(m?m.hidden:b.prototype)[name];if(f){f.apply(this,arguments);}}};};function _30e(ctor){xtor.prototype=ctor.prototype;var t=new xtor;xtor.prototype=null;return t;};function _306(args){var ctor=args.callee,t=_30e(ctor);ctor.apply(t,args);return t;};function _2fe(_30f,_310,_311){if(typeof _30f!="string"){_311=_310;_310=_30f;_30f="";}_311=_311||{};var _312,i,t,ctor,name,_313,_314,_315=1,_316=_310;if(opts.call(_310)=="[object Array]"){_313=_2e1(_310,_30f);t=_313[0];_315=_313.length-t;_310=_313[_315];}else{_313=[0];if(_310){if(opts.call(_310)=="[object Function]"){t=_310._meta;_313=_313.concat(t?t.bases:_310);}else{err("base class is not a callable constructor.",_30f);}}else{if(_310!==null){err("unknown base class. Did you use dojo.require to pull it in?",_30f);}}}if(_310){for(i=_315-1;;--i){_312=_30e(_310);if(!i){break;}t=_313[i];(t._meta?_2f4:mix)(_312,t.prototype);ctor=new Function;ctor.superclass=_310;ctor.prototype=_312;_310=_312.constructor=ctor;}}else{_312={};}_2fe.safeMixin(_312,_311);t=_311.constructor;if(t!==op.constructor){t.nom=_2e0;_312.constructor=t;}for(i=_315-1;i;--i){t=_313[i]._meta;if(t&&t.chains){_314=mix(_314||{},t.chains);}}if(_312["-chains-"]){_314=mix(_314||{},_312["-chains-"]);}t=!_314||!_314.hasOwnProperty(_2e0);_313[0]=ctor=(_314&&_314.constructor==="manual")?_309(_313):(_313.length==1?_307(_311.constructor,t):_302(_313,t));ctor._meta={bases:_313,hidden:_311,chains:_314,parents:_316,ctor:_311.constructor};ctor.superclass=_310&&_310.prototype;ctor.extend=_2fc;ctor.createSubclass=_2ff;ctor.prototype=_312;_312.constructor=ctor;_312.getInherited=_2ef;_312.isInstanceOf=_2f2;_312.inherited=_2f1;_312.__inherited=_2e9;if(_30f){_312.declaredClass=_30f;lang.setObject(_30f,ctor);}if(_314){for(name in _314){if(_312[name]&&typeof _314[name]=="string"&&name!=_2e0){t=_312[name]=_30b(name,_313,_314[name]==="after");t.nom=name;}}}return ctor;};dojo.safeMixin=_2fe.safeMixin=_2f8;dojo.declare=_2fe;return _2fe;});},"dojo/dom":function(){define(["./sniff","./_base/window"],function(has,win){if(has("ie")<=7){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}var dom={};if(has("ie")){dom.byId=function(id,doc){if(typeof id!="string"){return id;}var _317=doc||win.doc,te=id&&_317.getElementById(id);if(te&&(te.attributes.id.value==id||te.id==id)){return te;}else{var eles=_317.all[id];if(!eles||eles.nodeName){eles=[eles];}var i=0;while((te=eles[i++])){if((te.attributes&&te.attributes.id&&te.attributes.id.value==id)||te.id==id){return te;}}}};}else{dom.byId=function(id,doc){return ((typeof id=="string")?(doc||win.doc).getElementById(id):id)||null;};}dom.isDescendant=function(node,_318){try{node=dom.byId(node);_318=dom.byId(_318);while(node){if(node==_318){return true;}node=node.parentNode;}}catch(e){}return false;};has.add("css-user-select",function(_319,doc,_31a){if(!_31a){return false;}var _31b=_31a.style;var _31c=["Khtml","O","ms","Moz","Webkit"],i=_31c.length,name="userSelect",_31d;do{if(typeof _31b[name]!=="undefined"){return name;}}while(i--&&(name=_31c[i]+"UserSelect"));return false;});var _31e=has("css-user-select");dom.setSelectable=_31e?function(node,_31f){dom.byId(node).style[_31e]=_31f?"":"none";}:function(node,_320){node=dom.byId(node);var _321=node.getElementsByTagName("*"),i=_321.length;if(_320){node.removeAttribute("unselectable");while(i--){_321[i].removeAttribute("unselectable");}}else{node.setAttribute("unselectable","on");while(i--){_321[i].setAttribute("unselectable","on");}}};return dom;});},"dojo/_base/browser":function(){if(require.has){require.has.add("config-selectorEngine","acme");}define(["../ready","./kernel","./connect","./unload","./window","./event","./html","./NodeList","../query","./xhr","./fx"],function(dojo){return dojo;});},"dojo/selector/acme":function(){define(["../dom","../sniff","../_base/array","../_base/lang","../_base/window"],function(dom,has,_322,lang,win){var trim=lang.trim;var each=_322.forEach;var _323=function(){return win.doc;};var _324=(_323().compatMode)=="BackCompat";var _325=">~+";var _326=false;var _327=function(){return true;};var _328=function(_329){if(_325.indexOf(_329.slice(-1))>=0){_329+=" * ";}else{_329+=" ";}var ts=function(s,e){return trim(_329.slice(s,e));};var _32a=[];var _32b=-1,_32c=-1,_32d=-1,_32e=-1,_32f=-1,inId=-1,_330=-1,_331,lc="",cc="",_332;var x=0,ql=_329.length,_333=null,_334=null;var _335=function(){if(_330>=0){var tv=(_330==x)?null:ts(_330,x);_333[(_325.indexOf(tv)<0)?"tag":"oper"]=tv;_330=-1;}};var _336=function(){if(inId>=0){_333.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _337=function(){if(_32f>=0){_333.classes.push(ts(_32f+1,x).replace(/\\/g,""));_32f=-1;}};var _338=function(){_336();_335();_337();};var _339=function(){_338();if(_32e>=0){_333.pseudos.push({name:ts(_32e+1,x)});}_333.loops=(_333.pseudos.length||_333.attrs.length||_333.classes.length);_333.oquery=_333.query=ts(_332,x);_333.otag=_333.tag=(_333["oper"])?null:(_333.tag||"*");if(_333.tag){_333.tag=_333.tag.toUpperCase();}if(_32a.length&&(_32a[_32a.length-1].oper)){_333.infixOper=_32a.pop();_333.query=_333.infixOper.query+" "+_333.query;}_32a.push(_333);_333=null;};for(;lc=cc,cc=_329.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_333){_332=x;_333={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return _326?this.otag:this.tag;}};_330=x;}if(_331){if(cc==_331){_331=null;}continue;}else{if(cc=="'"||cc=="\""){_331=cc;continue;}}if(_32b>=0){if(cc=="]"){if(!_334.attr){_334.attr=ts(_32b+1,x);}else{_334.matchFor=ts((_32d||_32b+1),x);}var cmf=_334.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_334.matchFor=cmf.slice(1,-1);}}if(_334.matchFor){_334.matchFor=_334.matchFor.replace(/\\/g,"");}_333.attrs.push(_334);_334=null;_32b=_32d=-1;}else{if(cc=="="){var _33a=("|~^$*".indexOf(lc)>=0)?lc:"";_334.type=_33a+cc;_334.attr=ts(_32b+1,x-_33a.length);_32d=x+1;}}}else{if(_32c>=0){if(cc==")"){if(_32e>=0){_334.value=ts(_32c+1,x);}_32e=_32c=-1;}}else{if(cc=="#"){_338();inId=x+1;}else{if(cc=="."){_338();_32f=x;}else{if(cc==":"){_338();_32e=x;}else{if(cc=="["){_338();_32b=x;_334={};}else{if(cc=="("){if(_32e>=0){_334={name:ts(_32e+1,x),value:null};_333.pseudos.push(_334);}_32c=x;}else{if((cc==" ")&&(lc!=cc)){_339();}}}}}}}}}return _32a;};var _33b=function(_33c,_33d){if(!_33c){return _33d;}if(!_33d){return _33c;}return function(){return _33c.apply(window,arguments)&&_33d.apply(window,arguments);};};var _33e=function(i,arr){var r=arr||[];if(i){r.push(i);}return r;};var _33f=function(n){return (1==n.nodeType);};var _340="";var _341=function(elem,attr){if(!elem){return _340;}if(attr=="class"){return elem.className||_340;}if(attr=="for"){return elem.htmlFor||_340;}if(attr=="style"){return elem.style.cssText||_340;}return (_326?elem.getAttribute(attr):elem.getAttribute(attr,2))||_340;};var _342={"*=":function(attr,_343){return function(elem){return (_341(elem,attr).indexOf(_343)>=0);};},"^=":function(attr,_344){return function(elem){return (_341(elem,attr).indexOf(_344)==0);};},"$=":function(attr,_345){return function(elem){var ea=" "+_341(elem,attr);var _346=ea.lastIndexOf(_345);return _346>-1&&(_346==(ea.length-_345.length));};},"~=":function(attr,_347){var tval=" "+_347+" ";return function(elem){var ea=" "+_341(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_348){var _349=_348+"-";return function(elem){var ea=_341(elem,attr);return ((ea==_348)||(ea.indexOf(_349)==0));};},"=":function(attr,_34a){return function(elem){return (_341(elem,attr)==_34a);};}};var _34b=(typeof _323().firstChild.nextElementSibling=="undefined");var _34c=!_34b?"nextElementSibling":"nextSibling";var _34d=!_34b?"previousElementSibling":"previousSibling";var _34e=(_34b?_33f:_327);var _34f=function(node){while(node=node[_34d]){if(_34e(node)){return false;}}return true;};var _350=function(node){while(node=node[_34c]){if(_34e(node)){return false;}}return true;};var _351=function(node){var root=node.parentNode;root=root.nodeType!=7?root:root.nextSibling;var i=0,tret=root.children||root.childNodes,ci=(node["_i"]||node.getAttribute("_i")||-1),cl=(root["_l"]||(typeof root.getAttribute!=="undefined"?root.getAttribute("_l"):-1));if(!tret){return -1;}var l=tret.length;if(cl==l&&ci>=0&&cl>=0){return ci;}if(has("ie")&&typeof root.setAttribute!=="undefined"){root.setAttribute("_l",l);}else{root["_l"]=l;}ci=-1;for(var te=root["firstElementChild"]||root["firstChild"];te;te=te[_34c]){if(_34e(te)){if(has("ie")){te.setAttribute("_i",++i);}else{te["_i"]=++i;}if(node===te){ci=i;}}}return ci;};var _352=function(elem){return !((_351(elem))%2);};var _353=function(elem){return ((_351(elem))%2);};var _354={"checked":function(name,_355){return function(elem){return !!("checked" in elem?elem.checked:elem.selected);};},"disabled":function(name,_356){return function(elem){return elem.disabled;};},"enabled":function(name,_357){return function(elem){return !elem.disabled;};},"first-child":function(){return _34f;},"last-child":function(){return _350;},"only-child":function(name,_358){return function(node){return _34f(node)&&_350(node);};},"empty":function(name,_359){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt===1)||(nt==3)){return false;}}return true;};},"contains":function(name,_35a){var cz=_35a.charAt(0);if(cz=="\""||cz=="'"){_35a=_35a.slice(1,-1);}return function(elem){return (elem.innerHTML.indexOf(_35a)>=0);};},"not":function(name,_35b){var p=_328(_35b)[0];var _35c={el:1};if(p.tag!="*"){_35c.tag=1;}if(!p.classes.length){_35c.classes=1;}var ntf=_35d(p,_35c);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_35e){var pi=parseInt;if(_35e=="odd"){return _353;}else{if(_35e=="even"){return _352;}}if(_35e.indexOf("n")!=-1){var _35f=_35e.split("n",2);var pred=_35f[0]?((_35f[0]=="-")?-1:pi(_35f[0])):1;var idx=_35f[1]?pi(_35f[1]):0;var lb=0,ub=-1;if(pred>0){if(idx<0){idx=(idx%pred)&&(pred+(idx%pred));}else{if(idx>0){if(idx>=pred){lb=idx-idx%pred;}idx=idx%pred;}}}else{if(pred<0){pred*=-1;if(idx>0){ub=idx;idx=idx%pred;}}}if(pred>0){return function(elem){var i=_351(elem);return (i>=lb)&&(ub<0||i<=ub)&&((i%pred)==idx);};}else{_35e=idx;}}var _360=pi(_35e);return function(elem){return (_351(elem)==_360);};}};var _361=(has("ie")<9||has("ie")==9&&has("quirks"))?function(cond){var clc=cond.toLowerCase();if(clc=="class"){cond="className";}return function(elem){return (_326?elem.getAttribute(cond):elem[cond]||elem[clc]);};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _35d=function(_362,_363){if(!_362){return _327;}_363=_363||{};var ff=null;if(!("el" in _363)){ff=_33b(ff,_33f);}if(!("tag" in _363)){if(_362.tag!="*"){ff=_33b(ff,function(elem){return (elem&&((_326?elem.tagName:elem.tagName.toUpperCase())==_362.getTag()));});}}if(!("classes" in _363)){each(_362.classes,function(_364,idx,arr){var re=new RegExp("(?:^|\\s)"+_364+"(?:\\s|$)");ff=_33b(ff,function(elem){return re.test(elem.className);});ff.count=idx;});}if(!("pseudos" in _363)){each(_362.pseudos,function(_365){var pn=_365.name;if(_354[pn]){ff=_33b(ff,_354[pn](pn,_365.value));}});}if(!("attrs" in _363)){each(_362.attrs,function(attr){var _366;var a=attr.attr;if(attr.type&&_342[attr.type]){_366=_342[attr.type](a,attr.matchFor);}else{if(a.length){_366=_361(a);}}if(_366){ff=_33b(ff,_366);}});}if(!("id" in _363)){if(_362.id){ff=_33b(ff,function(elem){return (!!elem&&(elem.id==_362.id));});}}if(!ff){if(!("default" in _363)){ff=_327;}}return ff;};var _367=function(_368){return function(node,ret,bag){while(node=node[_34c]){if(_34b&&(!_33f(node))){continue;}if((!bag||_369(node,bag))&&_368(node)){ret.push(node);}break;}return ret;};};var _36a=function(_36b){return function(root,ret,bag){var te=root[_34c];while(te){if(_34e(te)){if(bag&&!_369(te,bag)){break;}if(_36b(te)){ret.push(te);}}te=te[_34c];}return ret;};};var _36c=function(_36d){_36d=_36d||_327;return function(root,ret,bag){var te,x=0,tret=root.children||root.childNodes;while(te=tret[x++]){if(_34e(te)&&(!bag||_369(te,bag))&&(_36d(te,x))){ret.push(te);}}return ret;};};var _36e=function(node,root){var pn=node.parentNode;while(pn){if(pn==root){break;}pn=pn.parentNode;}return !!pn;};var _36f={};var _370=function(_371){var _372=_36f[_371.query];if(_372){return _372;}var io=_371.infixOper;var oper=(io?io.oper:"");var _373=_35d(_371,{el:1});var qt=_371.tag;var _374=("*"==qt);var ecs=_323()["getElementsByClassName"];if(!oper){if(_371.id){_373=(!_371.loops&&_374)?_327:_35d(_371,{el:1,id:1});_372=function(root,arr){var te=dom.byId(_371.id,(root.ownerDocument||root));if(!te||!_373(te)){return;}if(9==root.nodeType){return _33e(te,arr);}else{if(_36e(te,root)){return _33e(te,arr);}}};}else{if(ecs&&/\{\s*\[native code\]\s*\}/.test(String(ecs))&&_371.classes.length&&!_324){_373=_35d(_371,{el:1,classes:1,id:1});var _375=_371.classes.join(" ");_372=function(root,arr,bag){var ret=_33e(0,arr),te,x=0;var tret=root.getElementsByClassName(_375);while((te=tret[x++])){if(_373(te,root)&&_369(te,bag)){ret.push(te);}}return ret;};}else{if(!_374&&!_371.loops){_372=function(root,arr,bag){var ret=_33e(0,arr),te,x=0;var tag=_371.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_369(te,bag)){ret.push(te);}}return ret;};}else{_373=_35d(_371,{el:1,tag:1,id:1});_372=function(root,arr,bag){var ret=_33e(0,arr),te,x=0;var tag=_371.getTag(),tret=tag?root.getElementsByTagName(tag):[];while((te=tret[x++])){if(_373(te,root)&&_369(te,bag)){ret.push(te);}}return ret;};}}}}else{var _376={el:1};if(_374){_376.tag=1;}_373=_35d(_371,_376);if("+"==oper){_372=_367(_373);}else{if("~"==oper){_372=_36a(_373);}else{if(">"==oper){_372=_36c(_373);}}}}return _36f[_371.query]=_372;};var _377=function(root,_378){var _379=_33e(root),qp,x,te,qpl=_378.length,bag,ret;for(var i=0;i<qpl;i++){ret=[];qp=_378[i];x=_379.length-1;if(x>0){bag={};ret.nozip=true;}var gef=_370(qp);for(var j=0;(te=_379[j]);j++){gef(te,ret,bag);}if(!ret.length){break;}_379=ret;}return ret;};var _37a={},_37b={};var _37c=function(_37d){var _37e=_328(trim(_37d));if(_37e.length==1){var tef=_370(_37e[0]);return function(root){var r=tef(root,[]);if(r){r.nozip=true;}return r;};}return function(root){return _377(root,_37e);};};var _37f=has("ie")?"commentStrip":"nozip";var qsa="querySelectorAll";var _380=!!_323()[qsa];var _381=/\\[>~+]|n\+\d|([^ \\])?([>~+])([^ =])?/g;var _382=function(_383,pre,ch,post){return ch?(pre?pre+" ":"")+ch+(post?" "+post:""):_383;};var _384=/([^[]*)([^\]]*])?/g;var _385=function(_386,_387,att){return _387.replace(_381,_382)+(att||"");};var _388=function(_389,_38a){_389=_389.replace(_384,_385);if(_380){var _38b=_37b[_389];if(_38b&&!_38a){return _38b;}}var _38c=_37a[_389];if(_38c){return _38c;}var qcz=_389.charAt(0);var _38d=(-1==_389.indexOf(" "));if((_389.indexOf("#")>=0)&&(_38d)){_38a=true;}var _38e=(_380&&(!_38a)&&(_325.indexOf(qcz)==-1)&&(!has("ie")||(_389.indexOf(":")==-1))&&(!(_324&&(_389.indexOf(".")>=0)))&&(_389.indexOf(":contains")==-1)&&(_389.indexOf(":checked")==-1)&&(_389.indexOf("|=")==-1));if(_38e){var tq=(_325.indexOf(_389.charAt(_389.length-1))>=0)?(_389+" *"):_389;return _37b[_389]=function(root){try{if(!((9==root.nodeType)||_38d)){throw "";}var r=root[qsa](tq);r[_37f]=true;return r;}catch(e){return _388(_389,true)(root);}};}else{var _38f=_389.match(/([^\s,](?:"(?:\\.|[^"])+"|'(?:\\.|[^'])+'|[^,])*)/g);return _37a[_389]=((_38f.length<2)?_37c(_389):function(root){var _390=0,ret=[],tp;while((tp=_38f[_390++])){ret=ret.concat(_37c(tp)(root));}return ret;});}};var _391=0;var _392=has("ie")?function(node){if(_326){return (node.getAttribute("_uid")||node.setAttribute("_uid",++_391)||_391);}else{return node.uniqueID;}}:function(node){return (node._uid||(node._uid=++_391));};var _369=function(node,bag){if(!bag){return 1;}var id=_392(node);if(!bag[id]){return bag[id]=1;}return 0;};var _393="_zipIdx";var _394=function(arr){if(arr&&arr.nozip){return arr;}if(!arr||!arr.length){return [];}if(arr.length<2){return [arr[0]];}var ret=[];_391++;var x,te;if(has("ie")&&_326){var _395=_391+"";for(x=0;x<arr.length;x++){if((te=arr[x])&&te.getAttribute(_393)!=_395){ret.push(te);te.setAttribute(_393,_395);}}}else{if(has("ie")&&arr.commentStrip){try{for(x=0;x<arr.length;x++){if((te=arr[x])&&_33f(te)){ret.push(te);}}}catch(e){}}else{for(x=0;x<arr.length;x++){if((te=arr[x])&&te[_393]!=_391){ret.push(te);te[_393]=_391;}}}}return ret;};var _396=function(_397,root){root=root||_323();var od=root.ownerDocument||root;_326=(od.createElement("div").tagName==="div");var r=_388(_397)(root);if(r&&r.nozip){return r;}return _394(r);};_396.filter=function(_398,_399,root){var _39a=[],_39b=_328(_399),_39c=(_39b.length==1&&!/[^\w#\.]/.test(_399))?_35d(_39b[0]):function(node){return _322.indexOf(_396(_399,dom.byId(root)),node)!=-1;};for(var x=0,te;te=_398[x];x++){if(_39c(te)){_39a.push(te);}}return _39a;};return _396;});},"dojo/errors/RequestTimeoutError":function(){define(["./create","./RequestError"],function(_39d,_39e){return _39d("RequestTimeoutError",null,_39e,{dojoType:"timeout"});});},"dojo/dom-style":function(){define(["./sniff","./dom"],function(has,dom){var _39f,_3a0={};if(has("webkit")){_39f=function(node){var s;if(node.nodeType==1){var dv=node.ownerDocument.defaultView;s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}}return s||{};};}else{if(has("ie")&&(has("ie")<9||has("quirks"))){_39f=function(node){return node.nodeType==1&&node.currentStyle?node.currentStyle:{};};}else{_39f=function(node){return node.nodeType==1?node.ownerDocument.defaultView.getComputedStyle(node,null):{};};}}_3a0.getComputedStyle=_39f;var _3a1;if(!has("ie")){_3a1=function(_3a2,_3a3){return parseFloat(_3a3)||0;};}else{_3a1=function(_3a4,_3a5){if(!_3a5){return 0;}if(_3a5=="medium"){return 4;}if(_3a5.slice&&_3a5.slice(-2)=="px"){return parseFloat(_3a5);}var s=_3a4.style,rs=_3a4.runtimeStyle,cs=_3a4.currentStyle,_3a6=s.left,_3a7=rs.left;rs.left=cs.left;try{s.left=_3a5;_3a5=s.pixelLeft;}catch(e){_3a5=0;}s.left=_3a6;rs.left=_3a7;return _3a5;};}_3a0.toPixelValue=_3a1;var astr="DXImageTransform.Microsoft.Alpha";var af=function(n,f){try{return n.filters.item(astr);}catch(e){return f?{}:null;}};var _3a8=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node){try{return af(node).Opacity/100;}catch(e){return 1;}}:function(node){return _39f(node).opacity;};var _3a9=has("ie")<9||(has("ie")<10&&has("quirks"))?function(node,_3aa){if(_3aa===""){_3aa=1;}var ov=_3aa*100,_3ab=_3aa===1;if(_3ab){node.style.zoom="";if(af(node)){node.style.filter=node.style.filter.replace(new RegExp("\\s*progid:"+astr+"\\([^\\)]+?\\)","i"),"");}}else{node.style.zoom=1;if(af(node)){af(node,1).Opacity=ov;}else{node.style.filter+=" progid:"+astr+"(Opacity="+ov+")";}af(node,1).Enabled=true;}if(node.tagName.toLowerCase()=="tr"){for(var td=node.firstChild;td;td=td.nextSibling){if(td.tagName.toLowerCase()=="td"){_3a9(td,_3aa);}}}return _3aa;}:function(node,_3ac){return node.style.opacity=_3ac;};var _3ad={left:true,top:true};var _3ae=/margin|padding|width|height|max|min|offset/;function _3af(node,type,_3b0){type=type.toLowerCase();if(has("ie")){if(_3b0=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(type=="fontweight"){switch(_3b0){case 700:return "bold";case 400:default:return "normal";}}}if(!(type in _3ad)){_3ad[type]=_3ae.test(type);}return _3ad[type]?_3a1(node,_3b0):_3b0;};var _3b1={cssFloat:1,styleFloat:1,"float":1};_3a0.get=function getStyle(node,name){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");if(l==2&&op){return _3a8(n);}name=_3b1[name]?"cssFloat" in n.style?"cssFloat":"styleFloat":name;var s=_3a0.getComputedStyle(n);return (l==1)?s:_3af(n,name,s[name]||n.style[name]);};_3a0.set=function setStyle(node,name,_3b2){var n=dom.byId(node),l=arguments.length,op=(name=="opacity");name=_3b1[name]?"cssFloat" in n.style?"cssFloat":"styleFloat":name;if(l==3){return op?_3a9(n,_3b2):n.style[name]=_3b2;}for(var x in name){_3a0.set(node,x,name[x]);}return _3a0.getComputedStyle(n);};return _3a0;});},"dojo/dom-geometry":function(){define(["./sniff","./_base/window","./dom","./dom-style"],function(has,win,dom,_3b3){var geom={};geom.boxModel="content-box";if(has("ie")){geom.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";}geom.getPadExtents=function getPadExtents(node,_3b4){node=dom.byId(node);var s=_3b4||_3b3.getComputedStyle(node),px=_3b3.toPixelValue,l=px(node,s.paddingLeft),t=px(node,s.paddingTop),r=px(node,s.paddingRight),b=px(node,s.paddingBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};var none="none";geom.getBorderExtents=function getBorderExtents(node,_3b5){node=dom.byId(node);var px=_3b3.toPixelValue,s=_3b5||_3b3.getComputedStyle(node),l=s.borderLeftStyle!=none?px(node,s.borderLeftWidth):0,t=s.borderTopStyle!=none?px(node,s.borderTopWidth):0,r=s.borderRightStyle!=none?px(node,s.borderRightWidth):0,b=s.borderBottomStyle!=none?px(node,s.borderBottomWidth):0;return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getPadBorderExtents=function getPadBorderExtents(node,_3b6){node=dom.byId(node);var s=_3b6||_3b3.getComputedStyle(node),p=geom.getPadExtents(node,s),b=geom.getBorderExtents(node,s);return {l:p.l+b.l,t:p.t+b.t,r:p.r+b.r,b:p.b+b.b,w:p.w+b.w,h:p.h+b.h};};geom.getMarginExtents=function getMarginExtents(node,_3b7){node=dom.byId(node);var s=_3b7||_3b3.getComputedStyle(node),px=_3b3.toPixelValue,l=px(node,s.marginLeft),t=px(node,s.marginTop),r=px(node,s.marginRight),b=px(node,s.marginBottom);return {l:l,t:t,r:r,b:b,w:l+r,h:t+b};};geom.getMarginBox=function getMarginBox(node,_3b8){node=dom.byId(node);var s=_3b8||_3b3.getComputedStyle(node),me=geom.getMarginExtents(node,s),l=node.offsetLeft-me.l,t=node.offsetTop-me.t,p=node.parentNode,px=_3b3.toPixelValue,pcs;if(has("mozilla")){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl;t=st;}else{if(p&&p.style){pcs=_3b3.getComputedStyle(p);if(pcs.overflow!="visible"){l+=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t+=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}}else{if(has("opera")||(has("ie")==8&&!has("quirks"))){if(p){pcs=_3b3.getComputedStyle(p);l-=pcs.borderLeftStyle!=none?px(node,pcs.borderLeftWidth):0;t-=pcs.borderTopStyle!=none?px(node,pcs.borderTopWidth):0;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};geom.getContentBox=function getContentBox(node,_3b9){node=dom.byId(node);var s=_3b9||_3b3.getComputedStyle(node),w=node.clientWidth,h,pe=geom.getPadExtents(node,s),be=geom.getBorderExtents(node,s);if(!w){w=node.offsetWidth;h=node.offsetHeight;}else{h=node.clientHeight;be.w=be.h=0;}if(has("opera")){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};function _3ba(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};function _3bb(node){return node.tagName.toLowerCase()=="button"||node.tagName.toLowerCase()=="input"&&(node.getAttribute("type")||"").toLowerCase()=="button";};function _3bc(node){return geom.boxModel=="border-box"||node.tagName.toLowerCase()=="table"||_3bb(node);};geom.setContentSize=function setContentSize(node,box,_3bd){node=dom.byId(node);var w=box.w,h=box.h;if(_3bc(node)){var pb=geom.getPadBorderExtents(node,_3bd);if(w>=0){w+=pb.w;}if(h>=0){h+=pb.h;}}_3ba(node,NaN,NaN,w,h);};var _3be={l:0,t:0,w:0,h:0};geom.setMarginBox=function setMarginBox(node,box,_3bf){node=dom.byId(node);var s=_3bf||_3b3.getComputedStyle(node),w=box.w,h=box.h,pb=_3bc(node)?_3be:geom.getPadBorderExtents(node,s),mb=geom.getMarginExtents(node,s);if(has("webkit")){if(_3bb(node)){var ns=node.style;if(w>=0&&!ns.width){ns.width="4px";}if(h>=0&&!ns.height){ns.height="4px";}}}if(w>=0){w=Math.max(w-pb.w-mb.w,0);}if(h>=0){h=Math.max(h-pb.h-mb.h,0);}_3ba(node,box.l,box.t,w,h);};geom.isBodyLtr=function isBodyLtr(doc){doc=doc||win.doc;return (win.body(doc).dir||doc.documentElement.dir||"ltr").toLowerCase()=="ltr";};geom.docScroll=function docScroll(doc){doc=doc||win.doc;var node=win.doc.parentWindow||win.doc.defaultView;return "pageXOffset" in node?{x:node.pageXOffset,y:node.pageYOffset}:(node=has("quirks")?win.body(doc):doc.documentElement)&&{x:geom.fixIeBiDiScrollLeft(node.scrollLeft||0,doc),y:node.scrollTop||0};};if(has("ie")){geom.getIeDocumentElementOffset=function getIeDocumentElementOffset(doc){doc=doc||win.doc;var de=doc.documentElement;if(has("ie")<8){var r=de.getBoundingClientRect(),l=r.left,t=r.top;if(has("ie")<7){l+=de.clientLeft;t+=de.clientTop;}return {x:l<0?0:l,y:t<0?0:t};}else{return {x:0,y:0};}};}geom.fixIeBiDiScrollLeft=function fixIeBiDiScrollLeft(_3c0,doc){doc=doc||win.doc;var ie=has("ie");if(ie&&!geom.isBodyLtr(doc)){var qk=has("quirks"),de=qk?win.body(doc):doc.documentElement,pwin=win.global;if(ie==6&&!qk&&pwin.frameElement&&de.scrollHeight>de.clientHeight){_3c0+=de.clientLeft;}return (ie<8||qk)?(_3c0+de.clientWidth-de.scrollWidth):-_3c0;}return _3c0;};geom.position=function(node,_3c1){node=dom.byId(node);var db=win.body(node.ownerDocument),ret=node.getBoundingClientRect();ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};if(has("ie")<9){var _3c2=geom.getIeDocumentElementOffset(node.ownerDocument);ret.x-=_3c2.x+(has("quirks")?db.clientLeft+db.offsetLeft:0);ret.y-=_3c2.y+(has("quirks")?db.clientTop+db.offsetTop:0);}if(_3c1){var _3c3=geom.docScroll(node.ownerDocument);ret.x+=_3c3.x;ret.y+=_3c3.y;}return ret;};geom.getMarginSize=function getMarginSize(node,_3c4){node=dom.byId(node);var me=geom.getMarginExtents(node,_3c4||_3b3.getComputedStyle(node));var size=node.getBoundingClientRect();return {w:(size.right-size.left)+me.w,h:(size.bottom-size.top)+me.h};};geom.normalizeEvent=function(_3c5){if(!("layerX" in _3c5)){_3c5.layerX=_3c5.offsetX;_3c5.layerY=_3c5.offsetY;}if(!has("dom-addeventlistener")){var se=_3c5.target;var doc=(se&&se.ownerDocument)||document;var _3c6=has("quirks")?doc.body:doc.documentElement;var _3c7=geom.getIeDocumentElementOffset(doc);_3c5.pageX=_3c5.clientX+geom.fixIeBiDiScrollLeft(_3c6.scrollLeft||0,doc)-_3c7.x;_3c5.pageY=_3c5.clientY+(_3c6.scrollTop||0)-_3c7.y;}};return geom;});},"dojo/dom-prop":function(){define(["exports","./_base/kernel","./sniff","./_base/lang","./dom","./dom-style","./dom-construct","./_base/connect"],function(_3c8,dojo,has,lang,dom,_3c9,ctr,conn){var _3ca={},_3cb=0,_3cc=dojo._scopeName+"attrid";_3c8.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"};_3c8.get=function getProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3cd=_3c8.names[lc]||name;return node[_3cd];};_3c8.set=function setProp(node,name,_3ce){node=dom.byId(node);var l=arguments.length;if(l==2&&typeof name!="string"){for(var x in name){_3c8.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_3cf=_3c8.names[lc]||name;if(_3cf=="style"&&typeof _3ce!="string"){_3c9.set(node,_3ce);return node;}if(_3cf=="innerHTML"){if(has("ie")&&node.tagName.toLowerCase() in {col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,tr:1,title:1}){ctr.empty(node);node.appendChild(ctr.toDom(_3ce,node.ownerDocument));}else{node[_3cf]=_3ce;}return node;}if(lang.isFunction(_3ce)){var _3d0=node[_3cc];if(!_3d0){_3d0=_3cb++;node[_3cc]=_3d0;}if(!_3ca[_3d0]){_3ca[_3d0]={};}var h=_3ca[_3d0][_3cf];if(h){conn.disconnect(h);}else{try{delete node[_3cf];}catch(e){}}if(_3ce){_3ca[_3d0][_3cf]=conn.connect(node,_3cf,_3ce);}else{node[_3cf]=null;}return node;}node[_3cf]=_3ce;return node;};});},"dojo/when":function(){define(["./Deferred","./promise/Promise"],function(_3d1,_3d2){"use strict";return function when(_3d3,_3d4,_3d5,_3d6){var _3d7=_3d3&&typeof _3d3.then==="function";var _3d8=_3d7&&_3d3 instanceof _3d2;if(!_3d7){if(arguments.length>1){return _3d4?_3d4(_3d3):_3d3;}else{return new _3d1().resolve(_3d3);}}else{if(!_3d8){var _3d9=new _3d1(_3d3.cancel);_3d3.then(_3d9.resolve,_3d9.reject,_3d9.progress);_3d3=_3d9.promise;}}if(_3d4||_3d5||_3d6){return _3d3.then(_3d4,_3d5,_3d6);}return _3d3;};});},"dojo/dom-attr":function(){define(["exports","./sniff","./_base/lang","./dom","./dom-style","./dom-prop"],function(_3da,has,lang,dom,_3db,prop){var _3dc={innerHTML:1,className:1,htmlFor:has("ie"),value:1},_3dd={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"};function _3de(node,name){var attr=node.getAttributeNode&&node.getAttributeNode(name);return attr&&attr.specified;};_3da.has=function hasAttr(node,name){var lc=name.toLowerCase();return _3dc[prop.names[lc]||name]||_3de(dom.byId(node),_3dd[lc]||name);};_3da.get=function getAttr(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3df=prop.names[lc]||name,_3e0=_3dc[_3df],_3e1=node[_3df];if(_3e0&&typeof _3e1!="undefined"){return _3e1;}if(_3df!="href"&&(typeof _3e1=="boolean"||lang.isFunction(_3e1))){return _3e1;}var _3e2=_3dd[lc]||name;return _3de(node,_3e2)?node.getAttribute(_3e2):null;};_3da.set=function setAttr(node,name,_3e3){node=dom.byId(node);if(arguments.length==2){for(var x in name){_3da.set(node,x,name[x]);}return node;}var lc=name.toLowerCase(),_3e4=prop.names[lc]||name,_3e5=_3dc[_3e4];if(_3e4=="style"&&typeof _3e3!="string"){_3db.set(node,_3e3);return node;}if(_3e5||typeof _3e3=="boolean"||lang.isFunction(_3e3)){return prop.set(node,name,_3e3);}node.setAttribute(_3dd[lc]||name,_3e3);return node;};_3da.remove=function removeAttr(node,name){dom.byId(node).removeAttribute(_3dd[name.toLowerCase()]||name);};_3da.getNodeProp=function getNodeProp(node,name){node=dom.byId(node);var lc=name.toLowerCase(),_3e6=prop.names[lc]||name;if((_3e6 in node)&&_3e6!="href"){return node[_3e6];}var _3e7=_3dd[lc]||name;return _3de(node,_3e7)?node.getAttribute(_3e7):null;};});},"dojo/dom-construct":function(){define(["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr"],function(_3e8,dojo,has,win,dom,attr){var _3e9={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_3ea=/<\s*([\w\:]+)/,_3eb={},_3ec=0,_3ed="__"+dojo._scopeName+"ToDomId";for(var _3ee in _3e9){if(_3e9.hasOwnProperty(_3ee)){var tw=_3e9[_3ee];tw.pre=_3ee=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}var _3ef;if(has("ie")<=8){_3ef=function(doc){doc.__dojo_html5_tested="yes";var div=_3f0("div",{innerHTML:"<nav>a</nav>",style:{visibility:"hidden"}},doc.body);if(div.childNodes.length!==1){("abbr article aside audio canvas details figcaption figure footer header "+"hgroup mark meter nav output progress section summary time video").replace(/\b\w+\b/g,function(n){doc.createElement(n);});}_3f1(div);};}function _3f2(node,ref){var _3f3=ref.parentNode;if(_3f3){_3f3.insertBefore(node,ref);}};function _3f4(node,ref){var _3f5=ref.parentNode;if(_3f5){if(_3f5.lastChild==ref){_3f5.appendChild(node);}else{_3f5.insertBefore(node,ref.nextSibling);}}};_3e8.toDom=function toDom(frag,doc){doc=doc||win.doc;var _3f6=doc[_3ed];if(!_3f6){doc[_3ed]=_3f6=++_3ec+"";_3eb[_3f6]=doc.createElement("div");}if(has("ie")<=8){if(!doc.__dojo_html5_tested&&doc.body){_3ef(doc);}}frag+="";var _3f7=frag.match(_3ea),tag=_3f7?_3f7[1].toLowerCase():"",_3f8=_3eb[_3f6],wrap,i,fc,df;if(_3f7&&_3e9[tag]){wrap=_3e9[tag];_3f8.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i){_3f8=_3f8.firstChild;}}else{_3f8.innerHTML=frag;}if(_3f8.childNodes.length==1){return _3f8.removeChild(_3f8.firstChild);}df=doc.createDocumentFragment();while((fc=_3f8.firstChild)){df.appendChild(fc);}return df;};_3e8.place=function place(node,_3f9,_3fa){_3f9=dom.byId(_3f9);if(typeof node=="string"){node=/^\s*</.test(node)?_3e8.toDom(node,_3f9.ownerDocument):dom.byId(node);}if(typeof _3fa=="number"){var cn=_3f9.childNodes;if(!cn.length||cn.length<=_3fa){_3f9.appendChild(node);}else{_3f2(node,cn[_3fa<0?0:_3fa]);}}else{switch(_3fa){case "before":_3f2(node,_3f9);break;case "after":_3f4(node,_3f9);break;case "replace":_3f9.parentNode.replaceChild(node,_3f9);break;case "only":_3e8.empty(_3f9);_3f9.appendChild(node);break;case "first":if(_3f9.firstChild){_3f2(node,_3f9.firstChild);break;}default:_3f9.appendChild(node);}}return node;};var _3f0=_3e8.create=function _3f0(tag,_3fb,_3fc,pos){var doc=win.doc;if(_3fc){_3fc=dom.byId(_3fc);doc=_3fc.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_3fb){attr.set(tag,_3fb);}if(_3fc){_3e8.place(tag,_3fc,pos);}return tag;};function _3fd(node){if(node.canHaveChildren){try{node.innerHTML="";return;}catch(e){}}for(var c;c=node.lastChild;){_3fe(c,node);}};_3e8.empty=function empty(node){_3fd(dom.byId(node));};function _3fe(node,_3ff){if(node.firstChild){_3fd(node);}if(_3ff){has("ie")&&_3ff.canHaveChildren&&"removeNode" in node?node.removeNode(false):_3ff.removeChild(node);}};var _3f1=_3e8.destroy=function _3f1(node){node=dom.byId(node);if(!node){return;}_3fe(node,node.parentNode);};});},"dojo/request/xhr":function(){define(["../errors/RequestError","./watch","./handlers","./util","../has"],function(_400,_401,_402,util,has){has.add("native-xhr",function(){return typeof XMLHttpRequest!=="undefined";});has.add("dojo-force-activex-xhr",function(){return has("activex")&&!document.addEventListener&&window.location.protocol==="file:";});has.add("native-xhr2",function(){if(!has("native-xhr")){return;}var x=new XMLHttpRequest();return typeof x["addEventListener"]!=="undefined"&&(typeof opera==="undefined"||typeof x["upload"]!=="undefined");});has.add("native-formdata",function(){return typeof FormData==="function";});function _403(_404,_405){var _406=_404.xhr;_404.status=_404.xhr.status;_404.text=_406.responseText;if(_404.options.handleAs==="xml"){_404.data=_406.responseXML;}if(!_405){try{_402(_404);}catch(e){_405=e;}}if(_405){this.reject(_405);}else{if(util.checkStatus(_406.status)){this.resolve(_404);}else{_405=new _400("Unable to load "+_404.url+" status: "+_406.status,_404);this.reject(_405);}}};var _407,_408,_409,_40a;if(has("native-xhr2")){_407=function(_40b){return !this.isFulfilled();};_40a=function(dfd,_40c){_40c.xhr.abort();};_409=function(_40d,dfd,_40e){function _40f(evt){dfd.handleResponse(_40e);};function _410(evt){var _411=evt.target;var _412=new _400("Unable to load "+_40e.url+" status: "+_411.status,_40e);dfd.handleResponse(_40e,_412);};function _413(evt){if(evt.lengthComputable){_40e.loaded=evt.loaded;_40e.total=evt.total;dfd.progress(_40e);}};_40d.addEventListener("load",_40f,false);_40d.addEventListener("error",_410,false);_40d.addEventListener("progress",_413,false);return function(){_40d.removeEventListener("load",_40f,false);_40d.removeEventListener("error",_410,false);_40d.removeEventListener("progress",_413,false);_40d=null;};};}else{_407=function(_414){return _414.xhr.readyState;};_408=function(_415){return 4===_415.xhr.readyState;};_40a=function(dfd,_416){var xhr=_416.xhr;var _417=typeof xhr.abort;if(_417==="function"||_417==="object"||_417==="unknown"){xhr.abort();}};}function _418(_419){return this.xhr.getResponseHeader(_419);};var _41a,_41b={data:null,query:null,sync:false,method:"GET"};function xhr(url,_41c,_41d){var _41e=util.parseArgs(url,util.deepCreate(_41b,_41c),has("native-formdata")&&_41c&&_41c.data&&_41c.data instanceof FormData);url=_41e.url;_41c=_41e.options;var _41f,last=function(){_41f&&_41f();};var dfd=util.deferred(_41e,_40a,_407,_408,_403,last);var _420=_41e.xhr=xhr._create();if(!_420){dfd.cancel(new _400("XHR was not created"));return _41d?dfd:dfd.promise;}_41e.getHeader=_418;if(_409){_41f=_409(_420,dfd,_41e);}var data=_41c.data,_421=!_41c.sync,_422=_41c.method;try{_420.open(_422,url,_421,_41c.user||_41a,_41c.password||_41a);if(_41c.withCredentials){_420.withCredentials=_41c.withCredentials;}var _423=_41c.headers,_424="application/x-www-form-urlencoded";if(_423){for(var hdr in _423){if(hdr.toLowerCase()==="content-type"){_424=_423[hdr];}else{if(_423[hdr]){_420.setRequestHeader(hdr,_423[hdr]);}}}}if(_424&&_424!==false){_420.setRequestHeader("Content-Type",_424);}if(!_423||!("X-Requested-With" in _423)){_420.setRequestHeader("X-Requested-With","XMLHttpRequest");}if(util.notify){util.notify.emit("send",_41e,dfd.promise.cancel);}_420.send(data);}catch(e){dfd.reject(e);}_401(dfd);_420=null;return _41d?dfd:dfd.promise;};xhr._create=function(){throw new Error("XMLHTTP not available");};if(has("native-xhr")&&!has("dojo-force-activex-xhr")){xhr._create=function(){return new XMLHttpRequest();};}else{if(has("activex")){try{new ActiveXObject("Msxml2.XMLHTTP");xhr._create=function(){return new ActiveXObject("Msxml2.XMLHTTP");};}catch(e){try{new ActiveXObject("Microsoft.XMLHTTP");xhr._create=function(){return new ActiveXObject("Microsoft.XMLHTTP");};}catch(e){}}}}util.addCommonMethods(xhr);return xhr;});},"dojo/text":function(){define(["./_base/kernel","require","./has","./request"],function(dojo,_425,has,_426){var _427;if(1){_427=function(url,sync,load){_426(url,{sync:!!sync}).then(load);};}else{if(_425.getText){_427=_425.getText;}else{console.error("dojo/text plugin failed to load because loader does not support getText");}}var _428={},_429=function(text){if(text){text=text.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _42a=text.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_42a){text=_42a[1];}}else{text="";}return text;},_42b={},_42c={};dojo.cache=function(_42d,url,_42e){var key;if(typeof _42d=="string"){if(/\//.test(_42d)){key=_42d;_42e=url;}else{key=_425.toUrl(_42d.replace(/\./g,"/")+(url?("/"+url):""));}}else{key=_42d+"";_42e=url;}var val=(_42e!=undefined&&typeof _42e!="string")?_42e.value:_42e,_42f=_42e&&_42e.sanitize;if(typeof val=="string"){_428[key]=val;return _42f?_429(val):val;}else{if(val===null){delete _428[key];return null;}else{if(!(key in _428)){_427(key,true,function(text){_428[key]=text;});}return _42f?_429(_428[key]):_428[key];}}};return {dynamic:true,normalize:function(id,_430){var _431=id.split("!"),url=_431[0];return (/^\./.test(url)?_430(url):url)+(_431[1]?"!"+_431[1]:"");},load:function(id,_432,load){var _433=id.split("!"),_434=_433.length>1,_435=_433[0],url=_432.toUrl(_433[0]),_436="url:"+url,text=_42b,_437=function(text){load(_434?_429(text):text);};if(_435 in _428){text=_428[_435];}else{if(_432.cache&&_436 in _432.cache){text=_432.cache[_436];}else{if(url in _428){text=_428[url];}}}if(text===_42b){if(_42c[url]){_42c[url].push(_437);}else{var _438=_42c[url]=[_437];_427(url,!_432.async,function(text){_428[_435]=_428[url]=text;for(var i=0;i<_438.length;){_438[i++](text);}delete _42c[url];});}}else{_437(text);}}};});},"dojo/keys":function(){define(["./_base/kernel","./sniff"],function(dojo,has){return dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:has("webkit")?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,UP_DPAD:175,DOWN_DPAD:176,LEFT_DPAD:177,RIGHT_DPAD:178,copyKey:has("mac")&&!has("air")?(has("safari")?91:224):17};});},"dojo/domReady":function(){define(["./has"],function(has){var _439=this,doc=document,_43a={"loaded":1,"complete":1},_43b=typeof doc.readyState!="string",_43c=!!_43a[doc.readyState],_43d=[],_43e;function _43f(_440){_43d.push(_440);if(_43c){_441();}};_43f.load=function(id,req,load){_43f(load);};_43f._Q=_43d;_43f._onQEmpty=function(){};if(_43b){doc.readyState="loading";}function _441(){if(_43e){return;}_43e=true;while(_43d.length){try{(_43d.shift())(doc);}catch(err){}}_43e=false;_43f._onQEmpty();};if(!_43c){var _442=[],_443=function(evt){evt=evt||_439.event;if(_43c||(evt.type=="readystatechange"&&!_43a[doc.readyState])){return;}if(_43b){doc.readyState="complete";}_43c=1;_441();},on=function(node,_444){node.addEventListener(_444,_443,false);_43d.push(function(){node.removeEventListener(_444,_443,false);});};if(!has("dom-addeventlistener")){on=function(node,_445){_445="on"+_445;node.attachEvent(_445,_443);_43d.push(function(){node.detachEvent(_445,_443);});};var div=doc.createElement("div");try{if(div.doScroll&&_439.frameElement===null){_442.push(function(){try{div.doScroll("left");return 1;}catch(e){}});}}catch(e){}}on(doc,"DOMContentLoaded");on(_439,"load");if("onreadystatechange" in doc){on(doc,"readystatechange");}else{if(!_43b){_442.push(function(){return _43a[doc.readyState];});}}if(_442.length){var _446=function(){if(_43c){return;}var i=_442.length;while(i--){if(_442[i]()){_443("poller");return;}}setTimeout(_446,30);};_446();}}return _43f;});},"dojo/_base/lang":function(){define(["./kernel","../has","../sniff"],function(dojo,has){has.add("bug-for-in-skips-shadowed",function(){for(var i in {toString:1}){return 0;}return 1;});var _447=has("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_448=_447.length,_449=function(_44a,_44b,_44c){var p,i=0,_44d=dojo.global;if(!_44c){if(!_44a.length){return _44d;}else{p=_44a[i++];try{_44c=dojo.scopeMap[p]&&dojo.scopeMap[p][1];}catch(e){}_44c=_44c||(p in _44d?_44d[p]:(_44b?_44d[p]={}:undefined));}}while(_44c&&(p=_44a[i++])){_44c=(p in _44c?_44c[p]:(_44b?_44c[p]={}:undefined));}return _44c;},opts=Object.prototype.toString,_44e=function(obj,_44f,_450){return (_450||[]).concat(Array.prototype.slice.call(obj,_44f||0));},_451=/\{([^\}]+)\}/g;var lang={_extraNames:_447,_mixin:function(dest,_452,_453){var name,s,i,_454={};for(name in _452){s=_452[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _454)||_454[name]!==s))){dest[name]=_453?_453(s):s;}}if(has("bug-for-in-skips-shadowed")){if(_452){for(i=0;i<_448;++i){name=_447[i];s=_452[name];if(!(name in dest)||(dest[name]!==s&&(!(name in _454)||_454[name]!==s))){dest[name]=_453?_453(s):s;}}}}return dest;},mixin:function(dest,_455){if(!dest){dest={};}for(var i=1,l=arguments.length;i<l;i++){lang._mixin(dest,arguments[i]);}return dest;},setObject:function(name,_456,_457){var _458=name.split("."),p=_458.pop(),obj=_449(_458,true,_457);return obj&&p?(obj[p]=_456):undefined;},getObject:function(name,_459,_45a){return _449(name.split("."),_459,_45a);},exists:function(name,obj){return lang.getObject(name,false,obj)!==undefined;},isString:function(it){return (typeof it=="string"||it instanceof String);},isArray:function(it){return it&&(it instanceof Array||typeof it=="array");},isFunction:function(it){return opts.call(it)==="[object Function]";},isObject:function(it){return it!==undefined&&(it===null||typeof it=="object"||lang.isArray(it)||lang.isFunction(it));},isArrayLike:function(it){return it&&it!==undefined&&!lang.isString(it)&&!lang.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(lang.isArray(it)||isFinite(it.length));},isAlien:function(it){return it&&!lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));},extend:function(ctor,_45b){for(var i=1,l=arguments.length;i<l;i++){lang._mixin(ctor.prototype,arguments[i]);}return ctor;},_hitchArgs:function(_45c,_45d){var pre=lang._toArray(arguments,2);var _45e=lang.isString(_45d);return function(){var args=lang._toArray(arguments);var f=_45e?(_45c||dojo.global)[_45d]:_45d;return f&&f.apply(_45c||this,pre.concat(args));};},hitch:function(_45f,_460){if(arguments.length>2){return lang._hitchArgs.apply(dojo,arguments);}if(!_460){_460=_45f;_45f=null;}if(lang.isString(_460)){_45f=_45f||dojo.global;if(!_45f[_460]){throw (["lang.hitch: scope[\"",_460,"\"] is null (scope=\"",_45f,"\")"].join(""));}return function(){return _45f[_460].apply(_45f,arguments||[]);};}return !_45f?_460:function(){return _460.apply(_45f,arguments||[]);};},delegate:(function(){function TMP(){};return function(obj,_461){TMP.prototype=obj;var tmp=new TMP();TMP.prototype=null;if(_461){lang._mixin(tmp,_461);}return tmp;};})(),_toArray:has("ie")?(function(){function slow(obj,_462,_463){var arr=_463||[];for(var x=_462||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};return function(obj){return ((obj.item)?slow:_44e).apply(this,arguments);};})():_44e,partial:function(_464){var arr=[null];return lang.hitch.apply(dojo,arr.concat(lang._toArray(arguments)));},clone:function(src){if(!src||typeof src!="object"||lang.isFunction(src)){return src;}if(src.nodeType&&"cloneNode" in src){return src.cloneNode(true);}if(src instanceof Date){return new Date(src.getTime());}if(src instanceof RegExp){return new RegExp(src);}var r,i,l;if(lang.isArray(src)){r=[];for(i=0,l=src.length;i<l;++i){if(i in src){r.push(lang.clone(src[i]));}}}else{r=src.constructor?new src.constructor():{};}return lang._mixin(r,src,lang.clone);},trim:String.prototype.trim?function(str){return str.trim();}:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");},replace:function(tmpl,map,_465){return tmpl.replace(_465||_451,lang.isFunction(map)?map:function(_466,k){return lang.getObject(k,false,map);});}};1&&lang.mixin(dojo,lang);return lang;});},"dojo/request/util":function(){define(["exports","../errors/RequestError","../errors/CancelError","../Deferred","../io-query","../_base/array","../_base/lang","../promise/Promise"],function(_467,_468,_469,_46a,_46b,_46c,lang,_46d){_467.deepCopy=function deepCopy(_46e,_46f){for(var name in _46f){var tval=_46e[name],sval=_46f[name];if(tval!==sval){if(tval&&typeof tval==="object"&&sval&&typeof sval==="object"){_467.deepCopy(tval,sval);}else{_46e[name]=sval;}}}return _46e;};_467.deepCreate=function deepCreate(_470,_471){_471=_471||{};var _472=lang.delegate(_470),name,_473;for(name in _470){_473=_470[name];if(_473&&typeof _473==="object"){_472[name]=_467.deepCreate(_473,_471[name]);}}return _467.deepCopy(_472,_471);};var _474=Object.freeze||function(obj){return obj;};function _475(_476){return _474(_476);};function _477(_478){return _478.data||_478.text;};_467.deferred=function deferred(_479,_47a,_47b,_47c,_47d,last){var def=new _46a(function(_47e){_47a&&_47a(def,_479);if(!_47e||!(_47e instanceof _468)&&!(_47e instanceof _469)){return new _469("Request canceled",_479);}return _47e;});def.response=_479;def.isValid=_47b;def.isReady=_47c;def.handleResponse=_47d;function _47f(_480){_480.response=_479;throw _480;};var _481=def.then(_475).otherwise(_47f);if(_467.notify){_481.then(lang.hitch(_467.notify,"emit","load"),lang.hitch(_467.notify,"emit","error"));}var _482=_481.then(_477);var _483=new _46d();for(var prop in _482){if(_482.hasOwnProperty(prop)){_483[prop]=_482[prop];}}_483.response=_481;_474(_483);if(last){def.then(function(_484){last.call(def,_484);},function(_485){last.call(def,_479,_485);});}def.promise=_483;def.then=_483.then;return def;};_467.addCommonMethods=function addCommonMethods(_486,_487){_46c.forEach(_487||["GET","POST","PUT","DELETE"],function(_488){_486[(_488==="DELETE"?"DEL":_488).toLowerCase()]=function(url,_489){_489=lang.delegate(_489||{});_489.method=_488;return _486(url,_489);};});};_467.parseArgs=function parseArgs(url,_48a,_48b){var data=_48a.data,_48c=_48a.query;if(data&&!_48b){if(typeof data==="object"){_48a.data=_46b.objectToQuery(data);}}if(_48c){if(typeof _48c==="object"){_48c=_46b.objectToQuery(_48c);}if(_48a.preventCache){_48c+=(_48c?"&":"")+"request.preventCache="+(+(new Date));}}else{if(_48a.preventCache){_48c="request.preventCache="+(+(new Date));}}if(url&&_48c){url+=(~url.indexOf("?")?"&":"?")+_48c;}return {url:url,options:_48a,getHeader:function(_48d){return null;}};};_467.checkStatus=function(stat){stat=stat||0;return (stat>=200&&stat<300)||stat===304||stat===1223||!stat;};});},"dojo/Evented":function(){define(["./aspect","./on"],function(_48e,on){"use strict";var _48f=_48e.after;function _490(){};_490.prototype={on:function(type,_491){return on.parse(this,type,_491,function(_492,type){return _48f(_492,"on"+type,_491,true);});},emit:function(type,_493){var args=[this];args.push.apply(args,arguments);return on.emit.apply(on,args);}};return _490;});},"dojo/mouse":function(){define(["./_base/kernel","./on","./has","./dom","./_base/window"],function(dojo,on,has,dom,win){has.add("dom-quirks",win.doc&&win.doc.compatMode=="BackCompat");has.add("events-mouseenter",win.doc&&"onmouseenter" in win.doc.createElement("div"));has.add("events-mousewheel",win.doc&&"onmousewheel" in win.doc);var _494;if((has("dom-quirks")&&has("ie"))||!has("dom-addeventlistener")){_494={LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(e,_495){return e.button&_495;},isLeft:function(e){return e.button&1;},isMiddle:function(e){return e.button&4;},isRight:function(e){return e.button&2;}};}else{_494={LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(e,_496){return e.button==_496;},isLeft:function(e){return e.button==0;},isMiddle:function(e){return e.button==1;},isRight:function(e){return e.button==2;}};}dojo.mouseButtons=_494;function _497(type,_498){var _499=function(node,_49a){return on(node,type,function(evt){if(_498){return _498(evt,_49a);}if(!dom.isDescendant(evt.relatedTarget,node)){return _49a.call(this,evt);}});};_499.bubble=function(_49b){return _497(type,function(evt,_49c){var _49d=_49b(evt.target);var _49e=evt.relatedTarget;if(_49d&&(_49d!=(_49e&&_49e.nodeType==1&&_49b(_49e)))){return _49c.call(_49d,evt);}});};return _499;};var _49f;if(has("events-mousewheel")){_49f="mousewheel";}else{_49f=function(node,_4a0){return on(node,"DOMMouseScroll",function(evt){evt.wheelDelta=-evt.detail;_4a0.call(this,evt);});};}return {_eventHandler:_497,enter:_497("mouseover"),leave:_497("mouseout"),wheel:_49f,isLeft:_494.isLeft,isMiddle:_494.isMiddle,isRight:_494.isRight};});},"dojo/_base/xhr":function(){define(["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],function(dojo,has,_4a1,ioq,dom,_4a2,_4a3,_4a4,json,lang,_4a5,on,_4a6,_4a7,_4a8,util){dojo._xhrObj=_4a8._create;var cfg=dojo.config;dojo.objectToQuery=ioq.objectToQuery;dojo.queryToObject=ioq.queryToObject;dojo.fieldToObject=_4a2.fieldToObject;dojo.formToObject=_4a2.toObject;dojo.formToQuery=_4a2.toQuery;dojo.formToJson=_4a2.toJson;dojo._blockAsync=false;var _4a9=dojo._contentHandlers=dojo.contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){return json.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!_4a4.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var _4aa=xhr.responseText;var _4ab=_4aa.indexOf("/*");var _4ac=_4aa.lastIndexOf("*/");if(_4ab==-1||_4ac==-1){throw new Error("JSON was not comment filtered");}return json.fromJson(_4aa.substring(_4ab+2,_4ac));},"javascript":function(xhr){return dojo.eval(xhr.responseText);},"xml":function(xhr){var _4ad=xhr.responseXML;if(_4ad&&has("dom-qsa2.1")&&!_4ad.querySelectorAll&&has("dom-parser")){_4ad=new DOMParser().parseFromString(xhr.responseText,"application/xml");}if(has("ie")){if((!_4ad||!_4ad.documentElement)){var ms=function(n){return "MSXML"+n+".DOMDocument";};var dp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_4a5.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_4ad=dom;}catch(e){return false;}return true;});}}return _4ad;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return _4a9["json-comment-filtered"](xhr);}else{return _4a9["json"](xhr);}}};dojo._ioSetArgs=function(args,_4ae,_4af,_4b0){var _4b1={args:args,url:args.url};var _4b2=null;if(args.form){var form=dom.byId(args.form);var _4b3=form.getAttributeNode("action");_4b1.url=_4b1.url||(_4b3?_4b3.value:null);_4b2=_4a2.toObject(form);}var _4b4=[{}];if(_4b2){_4b4.push(_4b2);}if(args.content){_4b4.push(args.content);}if(args.preventCache){_4b4.push({"dojo.preventCache":new Date().valueOf()});}_4b1.query=ioq.objectToQuery(lang.mixin.apply(null,_4b4));_4b1.handleAs=args.handleAs||"text";var d=new _4a3(function(dfd){dfd.canceled=true;_4ae&&_4ae(dfd);var err=dfd.ioArgs.error;if(!err){err=new Error("request cancelled");err.dojoType="cancel";dfd.ioArgs.error=err;}return err;});d.addCallback(_4af);var ld=args.load;if(ld&&lang.isFunction(ld)){d.addCallback(function(_4b5){return ld.call(args,_4b5,_4b1);});}var err=args.error;if(err&&lang.isFunction(err)){d.addErrback(function(_4b6){return err.call(args,_4b6,_4b1);});}var _4b7=args.handle;if(_4b7&&lang.isFunction(_4b7)){d.addBoth(function(_4b8){return _4b7.call(args,_4b8,_4b1);});}d.addErrback(function(_4b9){return _4b0(_4b9,d);});if(cfg.ioPublish&&dojo.publish&&_4b1.args.ioPublish!==false){d.addCallbacks(function(res){dojo.publish("/dojo/io/load",[d,res]);return res;},function(res){dojo.publish("/dojo/io/error",[d,res]);return res;});d.addBoth(function(res){dojo.publish("/dojo/io/done",[d,res]);return res;});}d.ioArgs=_4b1;return d;};var _4ba=function(dfd){var ret=_4a9[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);return ret===undefined?null:ret;};var _4bb=function(_4bc,dfd){if(!dfd.ioArgs.args.failOk){console.error(_4bc);}return _4bc;};var _4bd=function(dfd){if(_4be<=0){_4be=0;if(cfg.ioPublish&&dojo.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){dojo.publish("/dojo/io/stop");}}};var _4be=0;_4a6.after(_4a7,"_onAction",function(){_4be-=1;});_4a6.after(_4a7,"_onInFlight",_4bd);dojo._ioCancelAll=_4a7.cancelAll;dojo._ioNotifyStart=function(dfd){if(cfg.ioPublish&&dojo.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_4be){dojo.publish("/dojo/io/start");}_4be+=1;dojo.publish("/dojo/io/send",[dfd]);}};dojo._ioWatch=function(dfd,_4bf,_4c0,_4c1){var args=dfd.ioArgs.options=dfd.ioArgs.args;lang.mixin(dfd,{response:dfd.ioArgs,isValid:function(_4c2){return _4bf(dfd);},isReady:function(_4c3){return _4c0(dfd);},handleResponse:function(_4c4){return _4c1(dfd);}});_4a7(dfd);_4bd(dfd);};var _4c5="application/x-www-form-urlencoded";dojo._ioAddQueryToUrl=function(_4c6){if(_4c6.query.length){_4c6.url+=(_4c6.url.indexOf("?")==-1?"?":"&")+_4c6.query;_4c6.query=null;}};dojo.xhr=function(_4c7,args,_4c8){var rDfd;var dfd=dojo._ioSetArgs(args,function(dfd){rDfd&&rDfd.cancel();},_4ba,_4bb);var _4c9=dfd.ioArgs;if("postData" in args){_4c9.query=args.postData;}else{if("putData" in args){_4c9.query=args.putData;}else{if("rawBody" in args){_4c9.query=args.rawBody;}else{if((arguments.length>2&&!_4c8)||"POST|PUT".indexOf(_4c7.toUpperCase())===-1){dojo._ioAddQueryToUrl(_4c9);}}}}var _4ca={method:_4c7,handleAs:"text",timeout:args.timeout,withCredentials:args.withCredentials,ioArgs:_4c9};if(typeof args.headers!=="undefined"){_4ca.headers=args.headers;}if(typeof args.contentType!=="undefined"){if(!_4ca.headers){_4ca.headers={};}_4ca.headers["Content-Type"]=args.contentType;}if(typeof _4c9.query!=="undefined"){_4ca.data=_4c9.query;}if(typeof args.sync!=="undefined"){_4ca.sync=args.sync;}dojo._ioNotifyStart(dfd);try{rDfd=_4a8(_4c9.url,_4ca,true);}catch(e){dfd.cancel();return dfd;}dfd.ioArgs.xhr=rDfd.response.xhr;rDfd.then(function(){dfd.resolve(dfd);}).otherwise(function(_4cb){_4c9.error=_4cb;if(_4cb.response){_4cb.status=_4cb.response.status;_4cb.responseText=_4cb.response.text;_4cb.xhr=_4cb.response.xhr;}dfd.reject(_4cb);});return dfd;};dojo.xhrGet=function(args){return dojo.xhr("GET",args);};dojo.rawXhrPost=dojo.xhrPost=function(args){return dojo.xhr("POST",args,true);};dojo.rawXhrPut=dojo.xhrPut=function(args){return dojo.xhr("PUT",args,true);};dojo.xhrDelete=function(args){return dojo.xhr("DELETE",args);};dojo._isDocumentOk=function(x){return util.checkStatus(x.status);};dojo._getText=function(url){var _4cc;dojo.xhrGet({url:url,sync:true,load:function(text){_4cc=text;}});return _4cc;};lang.mixin(dojo.xhr,{_xhrObj:dojo._xhrObj,fieldToObject:_4a2.fieldToObject,formToObject:_4a2.toObject,objectToQuery:ioq.objectToQuery,formToQuery:_4a2.toQuery,formToJson:_4a2.toJson,queryToObject:ioq.queryToObject,contentHandlers:_4a9,_ioSetArgs:dojo._ioSetArgs,_ioCancelAll:dojo._ioCancelAll,_ioNotifyStart:dojo._ioNotifyStart,_ioWatch:dojo._ioWatch,_ioAddQueryToUrl:dojo._ioAddQueryToUrl,_isDocumentOk:dojo._isDocumentOk,_getText:dojo._getText,get:dojo.xhrGet,post:dojo.xhrPost,put:dojo.xhrPut,del:dojo.xhrDelete});return dojo.xhr;});},"dojo/topic":function(){define(["./Evented"],function(_4cd){var hub=new _4cd;return {publish:function(_4ce,_4cf){return hub.emit.apply(hub,arguments);},subscribe:function(_4d0,_4d1){return hub.on.apply(hub,arguments);}};});},"dojo/loadInit":function(){define(["./_base/loader"],function(_4d2){return {dynamic:0,normalize:function(id){return id;},load:_4d2.loadInit};});},"dojo/_base/unload":function(){define(["./kernel","./lang","../on"],function(dojo,lang,on){var win=window;var _4d3={addOnWindowUnload:function(obj,_4d4){if(!dojo.windowUnloaded){on(win,"unload",(dojo.windowUnloaded=function(){}));}on(win,"unload",lang.hitch(obj,_4d4));},addOnUnload:function(obj,_4d5){on(win,"beforeunload",lang.hitch(obj,_4d5));}};dojo.addOnWindowUnload=_4d3.addOnWindowUnload;dojo.addOnUnload=_4d3.addOnUnload;return _4d3;});},"dojo/Deferred":function(){define(["./has","./_base/lang","./errors/CancelError","./promise/Promise","./promise/instrumentation"],function(has,lang,_4d6,_4d7,_4d8){"use strict";var _4d9=0,_4da=1,_4db=2;var _4dc="This deferred has already been fulfilled.";var _4dd=Object.freeze||function(){};var _4de=function(_4df,type,_4e0,_4e1,_4e2){if(1){if(type===_4db&&_4e3.instrumentRejected&&_4df.length===0){_4e3.instrumentRejected(_4e0,false,_4e1,_4e2);}}for(var i=0;i<_4df.length;i++){_4e4(_4df[i],type,_4e0,_4e1);}};var _4e4=function(_4e5,type,_4e6,_4e7){var func=_4e5[type];var _4e8=_4e5.deferred;if(func){try{var _4e9=func(_4e6);if(type===_4d9){if(typeof _4e9!=="undefined"){_4ea(_4e8,type,_4e9);}}else{if(_4e9&&typeof _4e9.then==="function"){_4e5.cancel=_4e9.cancel;_4e9.then(_4eb(_4e8,_4da),_4eb(_4e8,_4db),_4eb(_4e8,_4d9));return;}_4ea(_4e8,_4da,_4e9);}}catch(error){_4ea(_4e8,_4db,error);}}else{_4ea(_4e8,type,_4e6);}if(1){if(type===_4db&&_4e3.instrumentRejected){_4e3.instrumentRejected(_4e6,!!func,_4e7,_4e8.promise);}}};var _4eb=function(_4ec,type){return function(_4ed){_4ea(_4ec,type,_4ed);};};var _4ea=function(_4ee,type,_4ef){if(!_4ee.isCanceled()){switch(type){case _4d9:_4ee.progress(_4ef);break;case _4da:_4ee.resolve(_4ef);break;case _4db:_4ee.reject(_4ef);break;}}};var _4e3=function(_4f0){var _4f1=this.promise=new _4d7();var _4f2=this;var _4f3,_4f4,_4f5;var _4f6=false;var _4f7=[];if(1&&Error.captureStackTrace){Error.captureStackTrace(_4f2,_4e3);Error.captureStackTrace(_4f1,_4e3);}this.isResolved=_4f1.isResolved=function(){return _4f3===_4da;};this.isRejected=_4f1.isRejected=function(){return _4f3===_4db;};this.isFulfilled=_4f1.isFulfilled=function(){return !!_4f3;};this.isCanceled=_4f1.isCanceled=function(){return _4f6;};this.progress=function(_4f8,_4f9){if(!_4f3){_4de(_4f7,_4d9,_4f8,null,_4f2);return _4f1;}else{if(_4f9===true){throw new Error(_4dc);}else{return _4f1;}}};this.resolve=function(_4fa,_4fb){if(!_4f3){_4de(_4f7,_4f3=_4da,_4f4=_4fa,null,_4f2);_4f7=null;return _4f1;}else{if(_4fb===true){throw new Error(_4dc);}else{return _4f1;}}};var _4fc=this.reject=function(_4fd,_4fe){if(!_4f3){if(1&&Error.captureStackTrace){Error.captureStackTrace(_4f5={},_4fc);}_4de(_4f7,_4f3=_4db,_4f4=_4fd,_4f5,_4f2);_4f7=null;return _4f1;}else{if(_4fe===true){throw new Error(_4dc);}else{return _4f1;}}};this.then=_4f1.then=function(_4ff,_500,_501){var _502=[_501,_4ff,_500];_502.cancel=_4f1.cancel;_502.deferred=new _4e3(function(_503){return _502.cancel&&_502.cancel(_503);});if(_4f3&&!_4f7){_4e4(_502,_4f3,_4f4,_4f5);}else{_4f7.push(_502);}return _502.deferred.promise;};this.cancel=_4f1.cancel=function(_504,_505){if(!_4f3){if(_4f0){var _506=_4f0(_504);_504=typeof _506==="undefined"?_504:_506;}_4f6=true;if(!_4f3){if(typeof _504==="undefined"){_504=new _4d6();}_4fc(_504);return _504;}else{if(_4f3===_4db&&_4f4===_504){return _504;}}}else{if(_505===true){throw new Error(_4dc);}}};_4dd(_4f1);};_4e3.prototype.toString=function(){return "[object Deferred]";};if(_4d8){_4d8(_4e3);}return _4e3;});},"dojo/_base/NodeList":function(){define(["./kernel","../query","./array","./html","../NodeList-dom"],function(dojo,_507,_508){var _509=_507.NodeList,nlp=_509.prototype;nlp.connect=_509._adaptAsForEach(function(){return dojo.connect.apply(this,arguments);});nlp.coords=_509._adaptAsMap(dojo.coords);_509.events=["blur","focus","change","click","error","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","submit"];_508.forEach(_509.events,function(evt){var _50a="on"+evt;nlp[_50a]=function(a,b){return this.connect(_50a,a,b);};});dojo.NodeList=_509;return _509;});},"dojo/request":function(){define(["./request/default!"],function(_50b){return _50b;});},"dojo/_base/Color":function(){define(["./kernel","./lang","./array","./config"],function(dojo,lang,_50c,_50d){var _50e=dojo.Color=function(_50f){if(_50f){this.setColor(_50f);}};_50e.named={"black":[0,0,0],"silver":[192,192,192],"gray":[128,128,128],"white":[255,255,255],"maroon":[128,0,0],"red":[255,0,0],"purple":[128,0,128],"fuchsia":[255,0,255],"green":[0,128,0],"lime":[0,255,0],"olive":[128,128,0],"yellow":[255,255,0],"navy":[0,0,128],"blue":[0,0,255],"teal":[0,128,128],"aqua":[0,255,255],"transparent":_50d.transparentColor||[0,0,0,0]};lang.extend(_50e,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_510){if(lang.isString(_510)){_50e.fromString(_510,this);}else{if(lang.isArray(_510)){_50e.fromArray(_510,this);}else{this._set(_510.r,_510.g,_510.b,_510.a);if(!(_510 instanceof _50e)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=_50c.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_511){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_511?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});_50e.blendColors=dojo.blendColors=function(_512,end,_513,obj){var t=obj||new _50e();_50c.forEach(["r","g","b","a"],function(x){t[x]=_512[x]+(end[x]-_512[x])*_513;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};_50e.fromRgb=dojo.colorFromRgb=function(_514,obj){var m=_514.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&_50e.fromArray(m[1].split(/\s*,\s*/),obj);};_50e.fromHex=dojo.colorFromHex=function(_515,obj){var t=obj||new _50e(),bits=(_515.length==4)?4:8,mask=(1<<bits)-1;_515=Number("0x"+_515.substr(1));if(isNaN(_515)){return null;}_50c.forEach(["b","g","r"],function(x){var c=_515&mask;_515>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};_50e.fromArray=dojo.colorFromArray=function(a,obj){var t=obj||new _50e();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};_50e.fromString=dojo.colorFromString=function(str,obj){var a=_50e.named[str];return a&&_50e.fromArray(a,obj)||_50e.fromRgb(str,obj)||_50e.fromHex(str,obj);};return _50e;});},"dojo/promise/instrumentation":function(){define(["./tracer","../has","../_base/lang","../_base/array"],function(_516,has,lang,_517){function _518(_519,_51a,_51b){var _51c="";if(_519&&_519.stack){_51c+=_519.stack;}if(_51a&&_51a.stack){_51c+="\n    ----------------------------------------\n    rejected"+_51a.stack.split("\n").slice(1).join("\n").replace(/^\s+/," ");}if(_51b&&_51b.stack){_51c+="\n    ----------------------------------------\n"+_51b.stack;}console.error(_519,_51c);};function _51d(_51e,_51f,_520,_521){if(!_51f){_518(_51e,_520,_521);}};var _522=[];var _523=false;var _524=1000;function _525(_526,_527,_528,_529){if(_527){_517.some(_522,function(obj,ix){if(obj.error===_526){_522.splice(ix,1);return true;}});}else{if(!_517.some(_522,function(obj){return obj.error===_526;})){_522.push({error:_526,rejection:_528,deferred:_529,timestamp:new Date().getTime()});}}if(!_523){_523=setTimeout(_52a,_524);}};function _52a(){var now=new Date().getTime();var _52b=now-_524;_522=_517.filter(_522,function(obj){if(obj.timestamp<_52b){_518(obj.error,obj.rejection,obj.deferred);return false;}return true;});if(_522.length){_523=setTimeout(_52a,_522[0].timestamp+_524-now);}else{_523=false;}};return function(_52c){var _52d=has("config-useDeferredInstrumentation");if(_52d){_516.on("resolved",lang.hitch(console,"log","resolved"));_516.on("rejected",lang.hitch(console,"log","rejected"));_516.on("progress",lang.hitch(console,"log","progress"));var args=[];if(typeof _52d==="string"){args=_52d.split(",");_52d=args.shift();}if(_52d==="report-rejections"){_52c.instrumentRejected=_51d;}else{if(_52d==="report-unhandled-rejections"||_52d===true||_52d===1){_52c.instrumentRejected=_525;_524=parseInt(args[0],10)||_524;}else{throw new Error("Unsupported instrumentation usage <"+_52d+">");}}}};});},"dojo/selector/_loader":function(){define(["../has","require"],function(has,_52e){"use strict";var _52f=document.createElement("div");has.add("dom-qsa2.1",!!_52f.querySelectorAll);has.add("dom-qsa3",function(){try{_52f.innerHTML="<p class='TEST'></p>";return _52f.querySelectorAll(".TEST:empty").length==1;}catch(e){}});var _530;var acme="./acme",lite="./lite";return {load:function(id,_531,_532,_533){var req=_52e;id=id=="default"?has("config-selectorEngine")||"css3":id;id=id=="css2"||id=="lite"?lite:id=="css2.1"?has("dom-qsa2.1")?lite:acme:id=="css3"?has("dom-qsa3")?lite:acme:id=="acme"?acme:(req=_531)&&id;if(id.charAt(id.length-1)=="?"){id=id.substring(0,id.length-1);var _534=true;}if(_534&&(has("dom-compliant-qsa")||_530)){return _532(_530);}req([id],function(_535){if(id!="./lite"){_530=_535;}_532(_535);});}};});},"dojo/promise/Promise":function(){define(["../_base/lang"],function(lang){"use strict";function _536(){throw new TypeError("abstract");};return lang.extend(function Promise(){},{then:function(_537,_538,_539){_536();},cancel:function(_53a,_53b){_536();},isResolved:function(){_536();},isRejected:function(){_536();},isFulfilled:function(){_536();},isCanceled:function(){_536();},always:function(_53c){return this.then(_53c,_53c);},otherwise:function(_53d){return this.then(null,_53d);},trace:function(){return this;},traceRejected:function(){return this;},toString:function(){return "[object Promise]";}});});},"dojo/request/watch":function(){define(["./util","../errors/RequestTimeoutError","../errors/CancelError","../_base/array","../_base/window","../has!host-browser?dom-addeventlistener?:../on:"],function(util,_53e,_53f,_540,win,on){var _541=null,_542=[];function _543(){var now=+(new Date);for(var i=0,dfd;i<_542.length&&(dfd=_542[i]);i++){var _544=dfd.response,_545=_544.options;if((dfd.isCanceled&&dfd.isCanceled())||(dfd.isValid&&!dfd.isValid(_544))){_542.splice(i--,1);_546._onAction&&_546._onAction();}else{if(dfd.isReady&&dfd.isReady(_544)){_542.splice(i--,1);dfd.handleResponse(_544);_546._onAction&&_546._onAction();}else{if(dfd.startTime){if(dfd.startTime+(_545.timeout||0)<now){_542.splice(i--,1);dfd.cancel(new _53e("Timeout exceeded",_544));_546._onAction&&_546._onAction();}}}}}_546._onInFlight&&_546._onInFlight(dfd);if(!_542.length){clearInterval(_541);_541=null;}};function _546(dfd){if(dfd.response.options.timeout){dfd.startTime=+(new Date);}if(dfd.isFulfilled()){return;}_542.push(dfd);if(!_541){_541=setInterval(_543,50);}if(dfd.response.options.sync){_543();}};_546.cancelAll=function cancelAll(){try{_540.forEach(_542,function(dfd){try{dfd.cancel(new _53f("All requests canceled."));}catch(e){}});}catch(e){}};if(win&&on&&win.doc.attachEvent){on(win.global,"unload",function(){_546.cancelAll();});}return _546;});},"dojo/on":function(){define(["./has!dom-addeventlistener?:./aspect","./_base/kernel","./sniff"],function(_547,dojo,has){"use strict";if(1){var _548=window.ScriptEngineMajorVersion;has.add("jscript",_548&&(_548()+ScriptEngineMinorVersion()/10));has.add("event-orientationchange",has("touch")&&!has("android"));has.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);has.add("event-focusin",function(_549,doc,_54a){return "onfocusin" in _54a;});}var on=function(_54b,type,_54c,_54d){if(typeof _54b.on=="function"&&typeof type!="function"&&!_54b.nodeType){return _54b.on(type,_54c);}return on.parse(_54b,type,_54c,_54e,_54d,this);};on.pausable=function(_54f,type,_550,_551){var _552;var _553=on(_54f,type,function(){if(!_552){return _550.apply(this,arguments);}},_551);_553.pause=function(){_552=true;};_553.resume=function(){_552=false;};return _553;};on.once=function(_554,type,_555,_556){var _557=on(_554,type,function(){_557.remove();return _555.apply(this,arguments);});return _557;};on.parse=function(_558,type,_559,_55a,_55b,_55c){if(type.call){return type.call(_55c,_558,_559);}if(type.indexOf(",")>-1){var _55d=type.split(/\s*,\s*/);var _55e=[];var i=0;var _55f;while(_55f=_55d[i++]){_55e.push(_55a(_558,_55f,_559,_55b,_55c));}_55e.remove=function(){for(var i=0;i<_55e.length;i++){_55e[i].remove();}};return _55e;}return _55a(_558,type,_559,_55b,_55c);};var _560=/^touch/;function _54e(_561,type,_562,_563,_564){var _565=type.match(/(.*):(.*)/);if(_565){type=_565[2];_565=_565[1];return on.selector(_565,type).call(_564,_561,_562);}if(has("touch")){if(_560.test(type)){_562=_566(_562);}if(!has("event-orientationchange")&&(type=="orientationchange")){type="resize";_561=window;_562=_566(_562);}}if(_567){_562=_567(_562);}if(_561.addEventListener){var _568=type in _569,_56a=_568?_569[type]:type;_561.addEventListener(_56a,_562,_568);return {remove:function(){_561.removeEventListener(_56a,_562,_568);}};}type="on"+type;if(_56b&&_561.attachEvent){return _56b(_561,type,_562);}throw new Error("Target must be an event emitter");};on.selector=function(_56c,_56d,_56e){return function(_56f,_570){var _571=typeof _56c=="function"?{matches:_56c}:this,_572=_56d.bubble;function _573(_574){_571=_571&&_571.matches?_571:dojo.query;while(!_571.matches(_574,_56c,_56f)){if(_574==_56f||_56e===false||!(_574=_574.parentNode)||_574.nodeType!=1){return;}}return _574;};if(_572){return on(_56f,_572(_573),_570);}return on(_56f,_56d,function(_575){var _576=_573(_575.target);return _576&&_570.call(_576,_575);});};};function _577(){this.cancelable=false;this.defaultPrevented=true;};function _578(){this.bubbles=false;};var _579=[].slice,_57a=on.emit=function(_57b,type,_57c){var args=_579.call(arguments,2);var _57d="on"+type;if("parentNode" in _57b){var _57e=args[0]={};for(var i in _57c){_57e[i]=_57c[i];}_57e.preventDefault=_577;_57e.stopPropagation=_578;_57e.target=_57b;_57e.type=type;_57c=_57e;}do{_57b[_57d]&&_57b[_57d].apply(_57b,args);}while(_57c&&_57c.bubbles&&(_57b=_57b.parentNode));return _57c&&_57c.cancelable&&_57c;};var _569=has("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!has("event-stopimmediatepropagation")){var _57f=function(){this.immediatelyStopped=true;this.modified=true;};var _567=function(_580){return function(_581){if(!_581.immediatelyStopped){_581.stopImmediatePropagation=_57f;return _580.apply(this,arguments);}};};}if(has("dom-addeventlistener")){on.emit=function(_582,type,_583){if(_582.dispatchEvent&&document.createEvent){var _584=_582.ownerDocument||document;var _585=_584.createEvent("HTMLEvents");_585.initEvent(type,!!_583.bubbles,!!_583.cancelable);for(var i in _583){if(!(i in _585)){_585[i]=_583[i];}}return _582.dispatchEvent(_585)&&_585;}return _57a.apply(on,arguments);};}else{on._fixEvent=function(evt,_586){if(!evt){var w=_586&&(_586.ownerDocument||_586.document||_586).parentWindow||window;evt=w.event;}if(!evt){return evt;}try{if(_587&&evt.type==_587.type&&evt.srcElement==_587.target){evt=_587;}}catch(e){}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_586||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_588;evt.preventDefault=_589;}switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_58a(evt);break;}}return evt;};var _587,_58b=function(_58c){this.handle=_58c;};_58b.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _58d=function(_58e){return function(evt){evt=on._fixEvent(evt,this);var _58f=_58e.call(this,evt);if(evt.modified){if(!_587){setTimeout(function(){_587=null;});}_587=evt;}return _58f;};};var _56b=function(_590,type,_591){_591=_58d(_591);if(((_590.ownerDocument?_590.ownerDocument.parentWindow:_590.parentWindow||_590.window||window)!=top||has("jscript")<5.8)&&!has("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _592=_590[type];if(!_592||!_592.listeners){var _593=_592;_592=Function("event","var callee = arguments.callee; for(var i = 0; i<callee.listeners.length; i++){var listener = _dojoIEListeners_[callee.listeners[i]]; if(listener){listener.call(this,event);}}");_592.listeners=[];_590[type]=_592;_592.global=this;if(_593){_592.listeners.push(_dojoIEListeners_.push(_593)-1);}}var _594;_592.listeners.push(_594=(_592.global._dojoIEListeners_.push(_591)-1));return new _58b(_594);}return _547.after(_590,type,_591,true);};var _58a=function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _588=function(){this.cancelBubble=true;};var _589=on._preventDefault=function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){try{this.keyCode=0;}catch(e){}}this.defaultPrevented=true;this.returnValue=false;this.modified=true;};}if(has("touch")){var _595=function(){};var _596=window.orientation;var _566=function(_597){return function(_598){var _599=_598.corrected;if(!_599){var type=_598.type;try{delete _598.type;}catch(e){}if(_598.type){if(has("mozilla")){var _599={};for(var name in _598){_599[name]=_598[name];}}else{_595.prototype=_598;var _599=new _595;}_599.preventDefault=function(){_598.preventDefault();};_599.stopPropagation=function(){_598.stopPropagation();};}else{_599=_598;_599.type=type;}_598.corrected=_599;if(type=="resize"){if(_596==window.orientation){return null;}_596=window.orientation;_599.type="orientationchange";return _597.call(this,_599);}if(!("rotation" in _599)){_599.rotation=0;_599.scale=1;}var _59a=_599.changedTouches[0];for(var i in _59a){delete _599[i];_599[i]=_59a[i];}}return _597.call(this,_599);};};}return on;});},"dojo/_base/sniff":function(){define(["./kernel","./lang","../sniff"],function(dojo,lang,has){if(!1){return has;}dojo._name="browser";lang.mixin(dojo,{isBrowser:true,isFF:has("ff"),isIE:has("ie"),isKhtml:has("khtml"),isWebKit:has("webkit"),isMozilla:has("mozilla"),isMoz:has("mozilla"),isOpera:has("opera"),isSafari:has("safari"),isChrome:has("chrome"),isMac:has("mac"),isIos:has("ios"),isAndroid:has("android"),isWii:has("wii"),isQuirks:has("quirks"),isAir:has("air")});return has;});},"dojo/errors/create":function(){define(["../_base/lang"],function(lang){return function(name,ctor,base,_59b){base=base||Error;var _59c=function(_59d){if(base===Error){if(Error.captureStackTrace){Error.captureStackTrace(this,_59c);}var err=Error.call(this,_59d),prop;for(prop in err){if(err.hasOwnProperty(prop)){this[prop]=err[prop];}}this.message=_59d;this.stack=err.stack;}else{base.apply(this,arguments);}if(ctor){ctor.apply(this,arguments);}};_59c.prototype=lang.delegate(base.prototype,_59b);_59c.prototype.name=name;_59c.prototype.constructor=_59c;return _59c;};});},"dojo/_base/array":function(){define(["./kernel","../has","./lang"],function(dojo,has,lang){var _59e={},u;function _59f(fn){return _59e[fn]=new Function("item","index","array",fn);};function _5a0(some){var _5a1=!some;return function(a,fn,o){var i=0,l=a&&a.length||0,_5a2;if(l&&typeof a=="string"){a=a.split("");}if(typeof fn=="string"){fn=_59e[fn]||_59f(fn);}if(o){for(;i<l;++i){_5a2=!fn.call(o,a[i],i,a);if(some^_5a2){return !_5a2;}}}else{for(;i<l;++i){_5a2=!fn(a[i],i,a);if(some^_5a2){return !_5a2;}}}return _5a1;};};function _5a3(up){var _5a4=1,_5a5=0,_5a6=0;if(!up){_5a4=_5a5=_5a6=-1;}return function(a,x,from,last){if(last&&_5a4>0){return _5a7.lastIndexOf(a,x,from);}var l=a&&a.length||0,end=up?l+_5a6:_5a5,i;if(from===u){i=up?_5a5:l+_5a6;}else{if(from<0){i=l+from;if(i<0){i=_5a5;}}else{i=from>=l?l+_5a6:from;}}if(l&&typeof a=="string"){a=a.split("");}for(;i!=end;i+=_5a4){if(a[i]==x){return i;}}return -1;};};var _5a7={every:_5a0(false),some:_5a0(true),indexOf:_5a3(true),lastIndexOf:_5a3(false),forEach:function(arr,_5a8,_5a9){var i=0,l=arr&&arr.length||0;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _5a8=="string"){_5a8=_59e[_5a8]||_59f(_5a8);}if(_5a9){for(;i<l;++i){_5a8.call(_5a9,arr[i],i,arr);}}else{for(;i<l;++i){_5a8(arr[i],i,arr);}}},map:function(arr,_5aa,_5ab,Ctr){var i=0,l=arr&&arr.length||0,out=new (Ctr||Array)(l);if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _5aa=="string"){_5aa=_59e[_5aa]||_59f(_5aa);}if(_5ab){for(;i<l;++i){out[i]=_5aa.call(_5ab,arr[i],i,arr);}}else{for(;i<l;++i){out[i]=_5aa(arr[i],i,arr);}}return out;},filter:function(arr,_5ac,_5ad){var i=0,l=arr&&arr.length||0,out=[],_5ae;if(l&&typeof arr=="string"){arr=arr.split("");}if(typeof _5ac=="string"){_5ac=_59e[_5ac]||_59f(_5ac);}if(_5ad){for(;i<l;++i){_5ae=arr[i];if(_5ac.call(_5ad,_5ae,i,arr)){out.push(_5ae);}}}else{for(;i<l;++i){_5ae=arr[i];if(_5ac(_5ae,i,arr)){out.push(_5ae);}}}return out;},clearCache:function(){_59e={};}};1&&lang.mixin(dojo,_5a7);return _5a7;});},"dojo/_base/json":function(){define(["./kernel","../json"],function(dojo,json){dojo.fromJson=function(js){return eval("("+js+")");};dojo._escapeString=json.stringify;dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_5af){return json.stringify(it,function(key,_5b0){if(_5b0){var tf=_5b0.__json__||_5b0.json;if(typeof tf=="function"){return tf.call(_5b0);}}return _5b0;},_5af&&dojo.toJsonIndentStr);};return dojo;});},"dojo/_base/window":function(){define(["./kernel","./lang","../sniff"],function(dojo,lang,has){var ret={global:dojo.global,doc:this["document"]||null,body:function(doc){doc=doc||dojo.doc;return doc.body||doc.getElementsByTagName("body")[0];},setContext:function(_5b1,_5b2){dojo.global=ret.global=_5b1;dojo.doc=ret.doc=_5b2;},withGlobal:function(_5b3,_5b4,_5b5,_5b6){var _5b7=dojo.global;try{dojo.global=ret.global=_5b3;return ret.withDoc.call(null,_5b3.document,_5b4,_5b5,_5b6);}finally{dojo.global=ret.global=_5b7;}},withDoc:function(_5b8,_5b9,_5ba,_5bb){var _5bc=ret.doc,oldQ=has("quirks"),_5bd=has("ie"),isIE,mode,pwin;try{dojo.doc=ret.doc=_5b8;dojo.isQuirks=has.add("quirks",dojo.doc.compatMode=="BackCompat",true,true);if(has("ie")){if((pwin=_5b8.parentWindow)&&pwin.navigator){isIE=parseFloat(pwin.navigator.appVersion.split("MSIE ")[1])||undefined;mode=_5b8.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}dojo.isIE=has.add("ie",isIE,true,true);}}if(_5ba&&typeof _5b9=="string"){_5b9=_5ba[_5b9];}return _5b9.apply(_5ba,_5bb||[]);}finally{dojo.doc=ret.doc=_5bc;dojo.isQuirks=has.add("quirks",oldQ,true,true);dojo.isIE=has.add("ie",_5bd,true,true);}}};1&&lang.mixin(dojo,ret);return ret;});},"dojo/dom-class":function(){define(["./_base/lang","./_base/array","./dom"],function(lang,_5be,dom){var _5bf="className";var cls,_5c0=/\s+/,a1=[""];function _5c1(s){if(typeof s=="string"||s instanceof String){if(s&&!_5c0.test(s)){a1[0]=s;return a1;}var a=s.split(_5c0);if(a.length&&!a[0]){a.shift();}if(a.length&&!a[a.length-1]){a.pop();}return a;}if(!s){return [];}return _5be.filter(s,function(x){return x;});};var _5c2={};cls={contains:function containsClass(node,_5c3){return ((" "+dom.byId(node)[_5bf]+" ").indexOf(" "+_5c3+" ")>=0);},add:function addClass(node,_5c4){node=dom.byId(node);_5c4=_5c1(_5c4);var cls=node[_5bf],_5c5;cls=cls?" "+cls+" ":" ";_5c5=cls.length;for(var i=0,len=_5c4.length,c;i<len;++i){c=_5c4[i];if(c&&cls.indexOf(" "+c+" ")<0){cls+=c+" ";}}if(_5c5<cls.length){node[_5bf]=cls.substr(1,cls.length-2);}},remove:function removeClass(node,_5c6){node=dom.byId(node);var cls;if(_5c6!==undefined){_5c6=_5c1(_5c6);cls=" "+node[_5bf]+" ";for(var i=0,len=_5c6.length;i<len;++i){cls=cls.replace(" "+_5c6[i]+" "," ");}cls=lang.trim(cls);}else{cls="";}if(node[_5bf]!=cls){node[_5bf]=cls;}},replace:function replaceClass(node,_5c7,_5c8){node=dom.byId(node);_5c2[_5bf]=node[_5bf];cls.remove(_5c2,_5c8);cls.add(_5c2,_5c7);if(node[_5bf]!==_5c2[_5bf]){node[_5bf]=_5c2[_5bf];}},toggle:function toggleClass(node,_5c9,_5ca){node=dom.byId(node);if(_5ca===undefined){_5c9=_5c1(_5c9);for(var i=0,len=_5c9.length,c;i<len;++i){c=_5c9[i];cls[cls.contains(node,c)?"remove":"add"](node,c);}}else{cls[_5ca?"add":"remove"](node,_5c9);}return _5ca;}};return cls;});},"dojo/_base/config":function(){define(["../has","require"],function(has,_5cb){var _5cc={};if(1){var src=_5cb.rawConfig,p;for(p in src){_5cc[p]=src[p];}}else{var _5cd=function(_5ce,_5cf,_5d0){for(p in _5ce){p!="has"&&has.add(_5cf+p,_5ce[p],0,_5d0);}};_5cc=1?_5cb.rawConfig:this.dojoConfig||this.djConfig||{};_5cd(_5cc,"config",1);_5cd(_5cc.has,"",1);}if(!_5cc.locale&&typeof navigator!="undefined"){_5cc.locale=(navigator.language||navigator.userLanguage).toLowerCase();}return _5cc;});},"dojo/main":function(){define(["./_base/kernel","./has","require","./sniff","./_base/lang","./_base/array","./_base/config","./ready","./_base/declare","./_base/connect","./_base/Deferred","./_base/json","./_base/Color","./has!dojo-firebug?./_firebug/firebug","./_base/browser","./_base/loader"],function(_5d1,has,_5d2,_5d3,lang,_5d4,_5d5,_5d6){if(_5d5.isDebug){_5d2(["./_firebug/firebug"]);}1||has.add("dojo-config-require",1);if(1){var deps=_5d5.require;if(deps){deps=_5d4.map(lang.isArray(deps)?deps:[deps],function(item){return item.replace(/\./g,"/");});if(_5d1.isAsync){_5d2(deps);}else{_5d6(1,function(){_5d2(deps);});}}}return _5d1;});},"dojo/_base/event":function(){define(["./kernel","../on","../has","../dom-geometry"],function(dojo,on,has,dom){if(on._fixEvent){var _5d7=on._fixEvent;on._fixEvent=function(evt,se){evt=_5d7(evt,se);if(evt){dom.normalizeEvent(evt);}return evt;};}var ret={fix:function(evt,_5d8){if(on._fixEvent){return on._fixEvent(evt,_5d8);}return evt;},stop:function(evt){if(has("dom-addeventlistener")||(evt&&evt.preventDefault)){evt.preventDefault();evt.stopPropagation();}else{evt=evt||window.event;evt.cancelBubble=true;on._preventDefault.call(evt);}}};if(1){dojo.fixEvent=ret.fix;dojo.stopEvent=ret.stop;}return ret;});},"dojo/sniff":function(){define(["./has"],function(has){if(1){var n=navigator,dua=n.userAgent,dav=n.appVersion,tv=parseFloat(dav);has.add("air",dua.indexOf("AdobeAIR")>=0);has.add("msapp",parseFloat(dua.split("MSAppHost/")[1])||undefined);has.add("khtml",dav.indexOf("Konqueror")>=0?tv:undefined);has.add("webkit",parseFloat(dua.split("WebKit/")[1])||undefined);has.add("chrome",parseFloat(dua.split("Chrome/")[1])||undefined);has.add("safari",dav.indexOf("Safari")>=0&&!has("chrome")?parseFloat(dav.split("Version/")[1]):undefined);has.add("mac",dav.indexOf("Macintosh")>=0);has.add("quirks",document.compatMode=="BackCompat");if(dua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=dua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os);has.add("ios",os);}has.add("android",parseFloat(dua.split("Android ")[1])||undefined);has.add("bb",(dua.indexOf("BlackBerry")>=0||dua.indexOf("BB10")>=0)&&parseFloat(dua.split("Version/")[1])||undefined);has.add("trident",parseFloat(dav.split("Trident/")[1])||undefined);has.add("svg",typeof SVGAngle!=="undefined");if(!has("webkit")){if(dua.indexOf("Opera")>=0){has.add("opera",tv>=9.8?parseFloat(dua.split("Version/")[1])||tv:tv);}if(dua.indexOf("Gecko")>=0&&!has("khtml")&&!has("webkit")&&!has("trident")){has.add("mozilla",tv);}if(has("mozilla")){has.add("ff",parseFloat(dua.split("Firefox/")[1]||dua.split("Minefield/")[1])||undefined);}if(document.all&&!has("opera")){var isIE=parseFloat(dav.split("MSIE ")[1])||undefined;var mode=document.documentMode;if(mode&&mode!=5&&Math.floor(isIE)!=mode){isIE=mode;}has.add("ie",isIE);}has.add("wii",typeof opera!="undefined"&&opera.wiiremote);}}return has;});},"dojo/request/handlers":function(){define(["../json","../_base/kernel","../_base/array","../has","../selector/_loader"],function(JSON,_5d9,_5da,has){has.add("activex",typeof ActiveXObject!=="undefined");has.add("dom-parser",function(_5db){return "DOMParser" in _5db;});var _5dc;if(has("activex")){var dp=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML.DOMDocument"];_5dc=function(_5dd){var _5de=_5dd.data;if(_5de&&has("dom-qsa2.1")&&!_5de.querySelectorAll&&has("dom-parser")){_5de=new DOMParser().parseFromString(_5dd.text,"application/xml");}if(!_5de||!_5de.documentElement){var text=_5dd.text;_5da.some(dp,function(p){try{var dom=new ActiveXObject(p);dom.async=false;dom.loadXML(text);_5de=dom;}catch(e){return false;}return true;});}return _5de;};}var _5df={"javascript":function(_5e0){return _5d9.eval(_5e0.text||"");},"json":function(_5e1){return JSON.parse(_5e1.text||null);},"xml":_5dc};function _5e2(_5e3){var _5e4=_5df[_5e3.options.handleAs];_5e3.data=_5e4?_5e4(_5e3):(_5e3.data||_5e3.text);return _5e3;};_5e2.register=function(name,_5e5){_5df[name]=_5e5;};return _5e2;});},"dojo/aspect":function(){define([],function(){"use strict";var _5e6,_5e7=0;function _5e8(_5e9,type,_5ea,_5eb){var _5ec=_5e9[type];var _5ed=type=="around";var _5ee;if(_5ed){var _5ef=_5ea(function(){return _5ec.advice(this,arguments);});_5ee={remove:function(){if(_5ef){_5ef=_5e9=_5ea=null;}},advice:function(_5f0,args){return _5ef?_5ef.apply(_5f0,args):_5ec.advice(_5f0,args);}};}else{_5ee={remove:function(){if(_5ee.advice){var _5f1=_5ee.previous;var next=_5ee.next;if(!next&&!_5f1){delete _5e9[type];}else{if(_5f1){_5f1.next=next;}else{_5e9[type]=next;}if(next){next.previous=_5f1;}}_5e9=_5ea=_5ee.advice=null;}},id:_5e7++,advice:_5ea,receiveArguments:_5eb};}if(_5ec&&!_5ed){if(type=="after"){while(_5ec.next&&(_5ec=_5ec.next)){}_5ec.next=_5ee;_5ee.previous=_5ec;}else{if(type=="before"){_5e9[type]=_5ee;_5ee.next=_5ec;_5ec.previous=_5ee;}}}else{_5e9[type]=_5ee;}return _5ee;};function _5f2(type){return function(_5f3,_5f4,_5f5,_5f6){var _5f7=_5f3[_5f4],_5f8;if(!_5f7||_5f7.target!=_5f3){_5f3[_5f4]=_5f8=function(){var _5f9=_5e7;var args=arguments;var _5fa=_5f8.before;while(_5fa){args=_5fa.advice.apply(this,args)||args;_5fa=_5fa.next;}if(_5f8.around){var _5fb=_5f8.around.advice(this,args);}var _5fc=_5f8.after;while(_5fc&&_5fc.id<_5f9){if(_5fc.receiveArguments){var _5fd=_5fc.advice.apply(this,args);_5fb=_5fd===_5e6?_5fb:_5fd;}else{_5fb=_5fc.advice.call(this,_5fb,args);}_5fc=_5fc.next;}return _5fb;};if(_5f7){_5f8.around={advice:function(_5fe,args){return _5f7.apply(_5fe,args);}};}_5f8.target=_5f3;}var _5ff=_5e8((_5f8||_5f7),type,_5f5,_5f6);_5f5=null;return _5ff;};};var _600=_5f2("after");var _601=_5f2("before");var _602=_5f2("around");return {before:_601,around:_602,after:_600};});},"dojo/ready":function(){define(["./_base/kernel","./has","require","./domReady","./_base/lang"],function(dojo,has,_603,_604,lang){var _605=0,_606=[],_607=0,_608=function(){_605=1;dojo._postLoad=dojo.config.afterOnLoad=true;_609();},_609=function(){if(_607){return;}_607=1;while(_605&&(!_604||_604._Q.length==0)&&(_603.idle?_603.idle():true)&&_606.length){var f=_606.shift();try{f();}catch(e){e.info=e.message;if(_603.signal){_603.signal("error",e);}else{throw e;}}}_607=0;};_603.on&&_603.on("idle",_609);if(_604){_604._onQEmpty=_609;}var _60a=dojo.ready=dojo.addOnLoad=function(_60b,_60c,_60d){var _60e=lang._toArray(arguments);if(typeof _60b!="number"){_60d=_60c;_60c=_60b;_60b=1000;}else{_60e.shift();}_60d=_60d?lang.hitch.apply(dojo,_60e):function(){_60c();};_60d.priority=_60b;for(var i=0;i<_606.length&&_60b>=_606[i].priority;i++){}_606.splice(i,0,_60d);_609();};1||has.add("dojo-config-addOnLoad",1);if(1){var dca=dojo.config.addOnLoad;if(dca){_60a[(lang.isArray(dca)?"apply":"call")](dojo,dca);}}if(1&&dojo.config.parseOnLoad&&!dojo.isAsync){_60a(99,function(){if(!dojo.parser){dojo.deprecated("Add explicit require(['dojo/parser']);","","2.0");_603(["dojo/parser"]);}});}if(_604){_604(_608);}else{_608();}return _60a;});},"dojo/_base/connect":function(){define(["./kernel","../on","../topic","../aspect","./event","../mouse","./sniff","./lang","../keys"],function(dojo,on,hub,_60f,_610,_611,has,lang){has.add("events-keypress-typed",function(){var _612={charCode:0};try{_612=document.createEvent("KeyboardEvent");(_612.initKeyboardEvent||_612.initKeyEvent).call(_612,"keypress",true,true,null,false,false,false,false,9,3);}catch(e){}return _612.charCode==0&&!has("opera");});function _613(obj,_614,_615,_616,_617){_616=lang.hitch(_615,_616);if(!obj||!(obj.addEventListener||obj.attachEvent)){return _60f.after(obj||dojo.global,_614,_616,true);}if(typeof _614=="string"&&_614.substring(0,2)=="on"){_614=_614.substring(2);}if(!obj){obj=dojo.global;}if(!_617){switch(_614){case "keypress":_614=_618;break;case "mouseenter":_614=_611.enter;break;case "mouseleave":_614=_611.leave;break;}}return on(obj,_614,_616,_617);};var _619={106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39,229:113};var _61a=has("mac")?"metaKey":"ctrlKey";var _61b=function(evt,_61c){var faux=lang.mixin({},evt,_61c);_61d(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};function _61d(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";evt.charOrCode=evt.keyChar||evt.keyCode;};var _618;if(has("events-keypress-typed")){var _61e=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};_618=function(_61f,_620){var _621=on(_61f,"keydown",function(evt){var k=evt.keyCode;var _622=(k!=13)&&k!=32&&(k!=27||!has("ie"))&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222)&&k!=229;if(_622||evt.ctrlKey){var c=_622?0:k;if(evt.ctrlKey){if(k==3||k==13){return _620.call(evt.currentTarget,evt);}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=_619[c]||c;}}}}var faux=_61b(evt,{type:"keypress",faux:true,charCode:c});_620.call(evt.currentTarget,faux);if(has("ie")){_61e(evt,faux.keyCode);}}});var _623=on(_61f,"keypress",function(evt){var c=evt.charCode;c=c>=32?c:0;evt=_61b(evt,{charCode:c,faux:true});return _620.call(this,evt);});return {remove:function(){_621.remove();_623.remove();}};};}else{if(has("opera")){_618=function(_624,_625){return on(_624,"keypress",function(evt){var c=evt.which;if(c==3){c=99;}c=c<32&&!evt.shiftKey?0:c;if(evt.ctrlKey&&!evt.shiftKey&&c>=65&&c<=90){c+=32;}return _625.call(this,_61b(evt,{charCode:c}));});};}else{_618=function(_626,_627){return on(_626,"keypress",function(evt){_61d(evt);return _627.call(this,evt);});};}}var _628={_keypress:_618,connect:function(obj,_629,_62a,_62b,_62c){var a=arguments,args=[],i=0;args.push(typeof a[0]=="string"?null:a[i++],a[i++]);var a1=a[i+1];args.push(typeof a1=="string"||typeof a1=="function"?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return _613.apply(this,args);},disconnect:function(_62d){if(_62d){_62d.remove();}},subscribe:function(_62e,_62f,_630){return hub.subscribe(_62e,lang.hitch(_62f,_630));},publish:function(_631,args){return hub.publish.apply(hub,[_631].concat(args));},connectPublisher:function(_632,obj,_633){var pf=function(){_628.publish(_632,arguments);};return _633?_628.connect(obj,_633,pf):_628.connect(obj,pf);},isCopyKey:function(e){return e[_61a];}};_628.unsubscribe=_628.disconnect;1&&lang.mixin(dojo,_628);return _628;});},"dojo/errors/CancelError":function(){define(["./create"],function(_634){return _634("CancelError",null,null,{dojoType:"cancel"});});}}});(function(){var _635=this.require;_635({cache:{}});!_635.async&&_635(["dojo"]);_635.boot&&_635.apply(null,_635.boot);})();
\ No newline at end of file
--- a/server/src/main/webapp/static/lib/dojo/regexp.js	Wed May 14 14:52:34 2014 +0200
+++ b/server/src/main/webapp/static/lib/dojo/regexp.js	Fri May 16 09:23:11 2014 +0200
@@ -1,5 +1,5 @@
 /*
-	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
+	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
 	Available via Academic Free License >= 2.1 OR the modified BSD license.
 	see: http://dojotoolkit.org/license for details
 */