New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

steal

Package Overview
Dependencies
Maintainers
2
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steal - npm Package Compare versions

Comparing version 0.6.0-pre.0 to 0.6.0

docs/pages/quick-start.md

2

docs/module-config.md

@@ -8,3 +8,3 @@ @typedef {*} @config

If System.paths["@config"] is not specified, its default path will obey the following rules:
If `System.paths["@config"]` is not specified, its default path will obey the following rules:

@@ -11,0 +11,0 @@ - If `steal.js` is in <i>ROOT/bower_components/steal/steal.js</i>, `@config` will be looked for in

@typedef {{}} $css
@parent StealJS.modules
@option {{}} The `$css` module is configured to process CSS modules. By default,
@option {{}}
The `$css` module is configured to process CSS modules. By default,
extensions that end with `.css!` will use the `$css` module. The default path to `$css`

@@ -6,0 +7,0 @@ module is `steal/css.js`.

@typedef {{}} $less
@parent StealJS.modules
@option {{}} The `@less` module is configured to process [LESS](http://lesscss.org) modules. By default,
@option {{}}
The `@less` module is configured to process [LESS](http://lesscss.org) modules. By default,
extensions that end with `.less!` will use the `$less` module. The default path to `$css`

@@ -6,0 +7,0 @@ module is `steal/less.js`.

@@ -5,6 +5,6 @@ @typedef {*} @loader

`@loader` is primarily only needed to be used in your [@config] to ensure that you are configuring
the correct loader. Since [System] represents the global System loader using it within your
the correct loader. Since [System](steal#section_LoaderandSystemnamespaces) represents the global System loader using it within your
config doesn't guarantee that you are configuring the correct loader. In scenarios where
you want to build multiple apps in parallel -- for example if you have several apps set
up to build in a Grunt task -- using `loader` is necessarily so that your [@config] options
you want to build multiple apps in parallel, for example if you have several apps set
up to build in a Grunt task, using `loader` is necessarily so that your [@config] options
are set on the proper loader.

@@ -19,3 +19,3 @@

To use `@loader` simply import it into your config and use it in the same way you
would use [System].
would use [System](steal#section_LoaderandSystemnamespaces).

@@ -22,0 +22,0 @@ import loader from "@loader";

@@ -105,3 +105,3 @@ @module {*} npm

When `"my-module"` is imported, `my-module@1.2.3#my-main` will be the actual module name being
When `my-module` is imported, `my-module@1.2.3#my-main` will be the actual module name being
imported. This path that `my-main` will be found depends on the `directories.lib` setting.

@@ -153,3 +153,3 @@

Use npmIgnore to prevent package information from being loaded for specified dependencies
or the `peerDependencies`, `devDependencies`, or `dependencies`. The following
in the `peerDependencies`, `devDependencies` or `dependencies`. The following
ignores a package.json's `devDependencies` and `cssify`. But all other

@@ -181,3 +181,3 @@ dependencies will be loaded:

Set to true to ignore browserfy's `"browser"` and `"browserify"` configurations.
Set to true to ignore browserfy's `browser` and `browserify` configurations.

@@ -197,3 +197,3 @@ ```js

In the following setup, `"my-project/my-utils"` will be looked for in
In the following setup, `my-project/my-utils` will be looked for in
`my-project/src/my-utils.js`:

@@ -200,0 +200,0 @@

@@ -42,3 +42,3 @@ @page guides.Contributing Contributing

- [ES6ModuleLoader](https://github.com/ModuleLoader/es6-module-loader) - Provides the [Loader] and [System] Polyfill.
- [ES6ModuleLoader](https://github.com/ModuleLoader/es6-module-loader) - Provides the [Loader](steal#section_LoaderandSystemnamespaces) and [System](steal#section_LoaderandSystemnamespaces) Polyfill.
- [SystemJS](https://github.com/systemjs/systemjs) - Provides most System extensions

@@ -45,0 +45,0 @@ like [System.paths], [System.map] and the [syntax.amd AMD] and [syntax.CommonJS CommonJS] syntaxes.

@@ -10,6 +10,6 @@ @page steal

Steal is a module loader that supports a wide variety of
syntaxes and configuration options. It makes modular development, test,
syntaxes and configuration options. It makes modular development, test
and production workflows simple.
There are three basic steps when using Steal:
There are four basic steps when using Steal:

@@ -43,7 +43,9 @@ - Install steal

/
node_modules/
package.json
myapp.js
myapp.html
```
/
node_modules/
package.json
myapp.js
myapp.html
```

@@ -66,7 +68,7 @@ ### Add the script tag

Most configuration is done in the `"system"` property of
Most configuration is done in the `system` property of
package.json. The special npm configuration options are listed [npm here].
The following _package.json_ only loads the "dependencies".
The following _package.json_ only loads the `dependencies`.

@@ -102,4 +104,54 @@ ```

... coming soon ...
Using Bower is similar to using NPM but has a few options specific to how Bower works.
### Install
```
> bower install steal --save
> bower install canjs --save
```
### Use
If you are using a typical installation of Bower using it can be as simple as:
```html
<script src="bower_components/steal/steal.js" main="myapp"></script>
```
This will load your `bower.json` file and use your `dependencies` to configure packages
that you are using (such as CanJS in this example). Unlike NPM, with Bower your
`devDependencies` are not configured by default, although this may change in the future.
To enable the configuration of devDependencies add the following to your script tag:
```html
bower-dev="true"
```
#### Specifying components folder
Unlike NPM, Bower allows you to configure an alternate folder to install dependencies
rather than the default `bower_components`. If you are using a different folder
you can specify that as an attribute in the script tag as well:
```html
bower-path="vendor"
```
Will look for dependencies in `System.baseURL` + "/vendor".
### Importing in your app
From here using packages is the same as if you used NPM, just import them into
_myapp.js_ and do what you need:
```js
import can from "canjs";
var renderer = can.stache("<h1>StealJS {{what}}</h1>");
can.$("body").append(renderer({
what: "rocks!"
}));
```
## Download basics

@@ -112,14 +164,16 @@

[Download Steal](https://github.com/bitovi/steal/archive/master.zip) and unzip into your public folder.
[Download Steal](https://github.com/bitovi/steal/archive/master.zip) and unzip into your application's folder.
In your application's public folder, create _myapp.js_,
_myapp.html_, and _config.js_. You should have something like:
In your application's folder, create _myapp.js_,
_myapp.html_ and _config.js_. You should have something like:
/
steal/
ext/
steal.js
steal.production.js
myapp.js
myapp.html
```
/
steal/
ext/
steal.js
steal.production.js
myapp.js
myapp.html
```

@@ -152,2 +206,6 @@ ### Add the script tag

> Note: Steal makes an AJAX request for the above example. Both client and server will need
> to accept/handle CORS requests properly when using remote resources.
### Import modules and make stuff happen

@@ -157,3 +215,3 @@

```
```js
// myapp.js

@@ -164,3 +222,14 @@ import $ from "jquery";

## Loader and System objects
Loader is a proposed constructor, allowing for the creating of custom ES6 module loaders. Documentation
can be found [here](http://whatwg.github.io/loader/).
System is the proposed default Loader, allowing for APIs such
as [System.import] and [System.config]. Documentation and polyfill information can be
found [here](https://github.com/ModuleLoader/es6-module-loader).
Loader and System are currently
polyfilled by [SystemJS](https://github.com/systemjs/systemjs).
## Configuring the `System` loader

@@ -193,3 +262,3 @@

If you are using bower or npm, your app's bower.json or package.json will be loaded automatically. System
configuration happens in their `"system"` properties:
configuration happens in their `system` properties:

@@ -196,0 +265,0 @@ {

@@ -7,153 +7,21 @@ @page StealJS

StealJS is a module loader and builder that will
help you create the next great app or open source project. Its designed to simplify
dependency management while being extremely powerful and flexible.
StealJS is a module loader and builder that will help you create the next great app. Its designed to simplify dependency management while being extremely powerful and flexible.
Its module loader, [steal], supports
the future - [ES6 Module Loader](https://github.com/ModuleLoader/es6-module-loader) syntax -
StealJS is composed of two parts.
- [steal] - the module loader
- [steal-tools] - the builder
### The Module loader
[steal Steal] supports the future - [ES6 Module Loader](https://github.com/ModuleLoader/es6-module-loader) syntax -
with everything [traceur supports](https://github.com/google/traceur-compiler/wiki/LanguageFeatures),
while supporting [syntax.amd], and [syntax.CommonJS]. It can load [npm] modules without configuration.
Steal makes common use cases as simply as possible. Steal automatically
Steal makes your development workflow simple and easy. Steal automatically
loads a [@config config] and [@dev development tools] module, supports css and less, and makes it easy to switch
between development and production [System.env environments].
Its builder, [steal-tools],
lets you build an application or export your project to AMD,
CommonJS or standalone formats. But steal-tools'
killer feature, is it can build progressively loaded apps that
balance caching and the number of script requests, resulting
in lightning-fast load times.
### The Builder
[steal-tools Steal-tools] builds your application or exports your project to AMD, CommonJS or standalone formats.
And [steal-tools] can build progressively loaded apps that balance caching and script requests resulting in lightning-fast load times.
## Quick Start
The following uses npm to install steal, steal-tools, grunt,
and jQuery and creates a little app that writes `Hello World` to
the page and build it. An application does not need to be setup this way
to work. Other common ways of setting up steal can be found [steal here].
### Install
Install [Node.js](http://nodejs.org/) on your
computer. Locate the folder that contains all your static content, scripts, and
styles. This is your [System.baseURL BASE] folder. Within that folder,
create a __package.json__:
> npm init
When it asks for the "main" entrypoint, write "main.js".
Also within that folder,
use [npm](https://www.npmjs.org/) to install steal, steal-tools, jquery, and
[grunt](http://gruntjs.com/):
> npm install steal --save-dev
> npm install steal-tools --save-dev
> npm install jquery --save-dev
> npm install grunt-cli --save-dev
Your `BASE` folder should contain all your static scripts and
resources. It should now look like this:
BASE/
node_modules/
steal/
steal-tools/
grunt-cli/
jquery/
package.json
### Setup
Create `index.html` and `main.js`, files in your BASE folder so it looks like:
BASE/
node_modules/
package.json
index.html
main.js
`index.html` loads your app. Add the following code that loads `steal` and
tells steal to load the `main` module.
<!DOCTYPE html>
<html>
<body>
<script src="./node_modules/steal/steal.js"
data-main="main">
</script>
</body>
</html>
Steal uses _pacakge.json_ to configure its behavior. Find the full details on
the [npm npm extension page]. Most of the configuration happens within
a special "system" property. Its worth creating it now in case you'll
need it later.
```
// package.json
{
...
"system": {},
...
}
```
`main.js` is the entrypoint of the application. It should load import your
apps other modules and kickoff the application. Write the following in `main.js`:
import $ from "jquery";
$(document.body).append("<h1>Hello World!</h1>");
This imports jQuery with ES6 module syntax.
### Run in the browser
Open `index.html` in the browser. You should see a big "Hello World".
### Build
Create a `Gruntfile.js` in your BASE folder. Configure grunt to
call `stealBuild`
module.exports = function (grunt) {
grunt.initConfig({
"steal-build": {
default: {
options: {
system: {
main: "main",
config: __dirname+"/stealconfig.js"
}
}
}
}
});
grunt.loadNpmTasks("steal-tools");
grunt.registerTask("build",["steal-build"]);
};
After saving `Gruntfile.js` run:
> grunt build
### Switch to production
Change `index.html` to look like:
<!DOCTYPE html>
<html>
<body>
<script src="./node_modules/steal/steal.production.js"
data-main="main">
</script>
</body>
</html>
### Run in production
Open `index.html` in the browser. You should see a big "Hello World". If you check
the network tab, you should see only two scripts load.
For more information, checkout [StealJS.why], or our step-by-step [StealJS.quick-start] guide to help you get up and running.

@@ -19,13 +19,13 @@ @function syntax.CommonJS CommonJS

like CommonJS because it doesn't require a wrapper function. You might define a module like so:
```
var can = require("can");
var _ = require("underscore");
var myModule = require("some_module/some_module");
var can = require("can");
var _ = require("underscore");
var myModule = require("some_module/some_module");
module.exports = can.Component.extend({
module.exports = can.Component.extend({
});
```
With CommonJS a single file will always define a single module. In includes 3 key objects: `require`, `exports` and `module`.
});
With CommonJS a single file will always define a single module. In includes 3 key objects, `require`, `exports`, and `module`.
**require** is used to import modules as dependencies. In the above example, `can` is being imported using require.

@@ -32,0 +32,0 @@

@@ -18,13 +18,15 @@ @function syntax.es6 ES6

This will import `can` from the can module, assuming it is the default exported value. If a module exports several values you can specify which to import using curl braces. Take an example of a Math module that exports several functions to do operations, it might be defined like so:
This will import `can` from the can module, assuming it is the default exported value. If a module exports several values you can specify which to import using curly braces. Take an example of a `Math` module that exports several functions to do operations; it might be defined like so:
export function add(a, b) {
return a + b;
}
```
export function add(a, b) {
return a + b;
}
export function subtract(a, b) {
return a - b;
}
export function subtract(a, b) {
return a - b;
}
```
To import one or more of these exported values use curl braces in your module like so:
To import one or more of these exported values use curly braces in your module like so:

@@ -38,7 +40,7 @@ import { add, subtract } from "math";

If you want to export a single value you can do so using the `default` keyword like so:
export default function add(a, b){
return a + b;
}
```
export default function add(a, b){
return a + b;
}
```
Because Traceur is a full ES6 to ES5 compiler you can use many ES6 features beyond just module loading. Listing these is beyond the scope of this document, but you can check out many of the language features Traceur supports [here](https://github.com/google/traceur-compiler/wiki/LanguageFeatures).

@@ -45,0 +47,0 @@

@@ -21,4 +21,6 @@ @property {String} System.baseURL

System.baseURL = "../libs";
System.import("mylib") // looks in ../libs/mylib
```
System.baseURL = "../libs";
System.import("mylib") // looks in ../libs/mylib
```

@@ -25,0 +27,0 @@ This behavior can futher be modified by [System.paths]

@@ -12,7 +12,9 @@ @property {Boolean} System.bowerDev

By default, the [Bower plugin](https://github.com/bitovi/system-bower) will only load configurations for deps listed in `dependencies`. In some cases you might want to also load the `devDependencies`, for example when running unit tests. to do so just include `bowerDev` in the script tag when loading Steal:
By default, the [Bower plugin](https://github.com/bitovi/system-bower) will only load configurations for deps listed in `dependencies`. In some cases you might want to also load the `devDependencies`, for example when running unit tests. To do so just include `bowerDev` in the script tag when loading Steal:
<script src="bower_components/steal/steal.js"
data-bower-dev="true"
data-main="tests"></script>
```
<script src="bower_components/steal/steal.js"
data-bower-dev="true"
data-main="tests"></script>
```

@@ -19,0 +21,0 @@ ## Implementation

@@ -12,7 +12,9 @@ @property {String} System.bowerPath

When using the [Bower plugin](https://github.com/bitovi/system-bower) by default it will assume dependencies are located at `System.baseURL` + `/bower_components`, which is the default location that Bower installs dependencies. Since this is configurable by Bower itself, `bowerPath` provices a way to point to the directory where you install Bower deps. Using in the script tag is the best option:
When using the [Bower plugin](https://github.com/bitovi/system-bower) by default it will assume dependencies are located at `System.baseURL` + `/bower_components`, which is the default location that Bower installs dependencies. Since this is configurable by Bower itself, `bowerPath` provices a way to point to the directory where you install Bower dependencies. Using in the script tag is the best option:
<script src="vendor/steal/steal.js"
data-bower-path="vendor"
data-main="main"></script>
```
<script src="vendor/steal/steal.js"
data-bower-path="vendor"
data-main="main"></script>
```

@@ -19,0 +21,0 @@ Would load the Bower configuration file for, for example, `lodash` in `vendor/lodash/bower.json`.

@@ -10,5 +10,21 @@ @property {Object} System.buildConfig

System.buildConfig = {
map: {jquery : "domless-jquery"}
};
In an application's build process, it may be necessary to overwrite existing configuration properties, such as paths or maps. For example, a jQuery based application may have a configuration such as:
```
System.config({
map: {
"can/util/util": "can/util/jquery/jquery"
}
});
```
However, during the build, DOM access may not be available. Altering the configuration as follows will be necessary:
```
System.config({
buildConfig: {
map: {
"can/util/util": "can/util/domless/domless"
}
}
};
```

@@ -13,2 +13,20 @@ @property {Array.<moduleName>} System.bundle

System.bundle = ["progressive/moduleA","progressive/moduleB"]
It is possible to load an app in chunks, rather than one single production file. If there is modules segmented by "pages", for example:
- A home screen in "js/pages/home"
- Search results in "js/pages/search"
- Details in "js/pages/details"
It will be more efficient to load "search" and "details" progressively, making the "home" page load lighter. `System.bundle` allows you to create multiple production files by defining the starting point:
System.bundle = ["js/pages/home","js/pages/search","js/pages/details"]
Within the main application, the condition may exist such as:
```
import $ from 'jquery';
if(/*route === home*/) {
System.import('js/pages/home', function() {});
}
```

@@ -18,6 +18,8 @@ @property {Object<moduleName, Array.<moduleName>>} System.bundles

System.bundles["jqueryui.custom"] = [
"jqueryui.autocomplete",
"jqueryui.datepicker"
];
```
System.bundles["jqueryui.custom"] = [
"jqueryui.autocomplete",
"jqueryui.datepicker"
];
```

@@ -31,7 +33,9 @@ If `bundle` is passed to [steal-tools], it will write out where to load bundles in the production bundles.

System.config({
main: "myapp",
env: "production"
});
System.bundles["bundles/myapp"] = ["myapp"]
```
System.config({
main: "myapp",
env: "production"
});
System.bundles["bundles/myapp"] = ["myapp"]
```

@@ -38,0 +42,0 @@ This way, when the `"myapp"` module is imported, System will load ["bundles/myapp"]. Use [System.bundlesPath]

@@ -17,47 +17,52 @@ @property {String} System.bundlesPath

In [System.env production], the [System.main] module will be assumed to be within a
_"bundles/[MAIN\_MODULE\_NAME]"_ module. For example, if the main module is `"myapp"`,
a `"bundles/myapp"` module is automatically configured to contain it:
_"bundles/[MAIN\_MODULE\_NAME]"_ module. For example, if the main module is `myapp`,
a `bundles/myapp` module is automatically configured to contain it:
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
</script>
```
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
</script>
```
`System.bundlesPath` tells the client where all bundles can be found by configuring
[System.paths]. For example, if bundlesPath is set to "packages":
[System.paths]. For example, if bundlesPath is set to `packages`:
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production"
bundles-path="packages">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
System.paths["bundles/*"] = "packages/*.js";
System.paths["bundles/*.css"] = "packages/*.css";
</script>
```
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production"
bundles-path="packages">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
System.paths["bundles/*"] = "packages/*.js";
System.paths["bundles/*.css"] = "packages/*.css";
</script>
```
Often, `bundlesPath` should be the same value as what's passed in [steal-tools.build]. If
`bundlesPath` is not set, it will set the default bundles paths:
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production"
bundles-path="packages">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
System.paths["bundles/*"] = "dist/bundles/*.js";
System.paths["bundles/*.css"] = "dist/bundles/*.css";
</script>
```
<script src="steal/steal.js"
config="./config.js"
main="myapp"
env="production"
bundles-path="packages">
</script>
<script>
System.bundles["bundles/myapp"] //-> ["myapp"]
System.paths["bundles/*"] = "dist/bundles/*.js";
System.paths["bundles/*.css"] = "dist/bundles/*.css";
</script>
```
If a path rule for `System.paths["bundles/*"]` or `System.paths["bundles/*.css"]`
exist, `buildsPath` will not overwrite them.
exist, `bundlesPath` will not overwrite them.

@@ -23,23 +23,29 @@ @property {String} System.configPath

<script src="../path/to/steal/steal.js"
config-path="../path/to/stealconfig.js"
main="app">
</script>
```
<script src="../path/to/steal/steal.js"
config-path="../path/to/stealconfig.js"
main="app">
</script>
```
or
<script src="../path/to/steal/steal.js"
config="../path/to/stealconfig.js"
main="app">
</script>
```
<script src="../path/to/steal/steal.js"
config="../path/to/stealconfig.js"
main="app">
</script>
```
instead of having to specify it like:
<script src="../path/to/steal/steal.js"
paths.@config="../path/to/stealconfig.js"
main="app">
</script>
```
<script src="../path/to/steal/steal.js"
paths.@config="../path/to/stealconfig.js"
main="app">
</script>
```
But it can be specified with any of the approaches in [System.config].
It also can be specified with any of the approaches in [System.config].

@@ -19,30 +19,37 @@ @property {String} System.env

System.config({
main: "myapp",
env: "production"
});
```
System.config({
main: "myapp",
env: "production"
});
```
Sets:
System.bundles["bundles/myapp"] //-> ["myapp"]
System.meta["bundles/myapp"] //-> {format: "amd"}
System.paths["bundles/*"] //-> "dist/bundles/*.js"
System.paths["bundles/*.css"] //-> "dist/bundles/*.css"
```
System.bundles["bundles/myapp"] //-> ["myapp"]
System.meta["bundles/myapp"] //-> {format: "amd"}
System.paths["bundles/*"] //-> "dist/bundles/*.js"
System.paths["bundles/*.css"] //-> "dist/bundles/*.css"
```
Setting `System.env` to "production" must happen prior to loading `steal.js`. So it should
Setting `System.env` to `"production"` must happen prior to loading `steal.js`. So it should
be [System.config configured] via the `steal.js` script tag like:
<script src="../path/to/steal/steal.js"
data-env="production"
data-main="myapp">
</script>
```
<script src="../path/to/steal/steal.js"
data-env="production"
data-main="myapp">
</script>
```
Or specified prior to steal loading like:
<script>
steal = {env: "production"}
</script>
<script src="../path/to/steal/steal.js"
data-env="production">
</script>
```
<script>
steal = {env: "production"}
</script>
<script src="../path/to/steal/steal.js"
data-env="production">
</script>
```

@@ -9,3 +9,3 @@ @property {Object.<String,moduleName>} System.ext

Specifies a plugin to add when an extension is matched in a module name. `steal.js` includes
defauls of:
defaults of:

@@ -20,18 +20,18 @@ System.ext //-> {"css": "$css", "less": "$less"}

System.ext = {
"ejs" : "lib/ejs.ejs"
};
```
System.config({
ext: {
stache: 'can/view/stache/system'
}
})
```
allows:
System.import("foo.css")
System.import("foo.stache!")
Without having to write:
System.import("foo.css!steal/css");
System.import("foo.stache!can/view/system/stache");
By default, `steal.js` configures `css` to point to "$css" and `less` to point to "$less".
## Implementation
Implemented by steal.
By default, `steal.js` configures `css` to point to "$css" and `less` to point to "$less".

@@ -16,12 +16,14 @@ @property {Object<moduleName,*>} System.instantiated

<script>
steal = {
instantiated: {
"bundles/myapp.css!$css" : null
}
}
</script>
<script src="../../steal/steal.js"
main="myapp"
env="production">
</script>
```
<script>
steal = {
instantiated: {
"bundles/myapp.css!" : null
}
}
</script>
<script src="../../steal/steal.js"
main="myapp"
env="production">
</script>
```

@@ -10,31 +10,38 @@ @property {Object} System.lessOptions

You can see the list of possible options in the less [docs page](http://lesscss.org/usage/index.html#command-line-usage-options),
one of the available options is `strictMath`, by default the less compiler will process all maths in your css e.g.
You can see the list of possible options in the less [docs page](http://lesscss.org/usage/index.html#command-line-usage-options). One of the available options is `strictMath`, which by default, the less compiler will process all maths in your css.
.foo {
height: calc(100% - 10px);
}
```
.foo {
height: calc(100% - 10px);
}
```
will be proccesed currently, if you want to change that, you'd do the following:
If you want to change `strictMath` processing, you'd do the following:
System.config({
main: "myapp",
lessOptions: {
strictMath: true // default value is false.
}
});
```
System.config({
main: "myapp",
lessOptions: {
strictMath: true // default value is false.
}
});
```
with this in place, less will only proccess maths that is inside un-necessary parenthesis e.g
With this in place, less will only proccess maths that is inside un-necessary parenthesis.
.foo {
height: calc(100% - (10px - 5px));
}
```
.foo {
height: calc(100% - (10px - 5px));
}
```
will be compiled to:
.foo {
height: calc(100% - 5px);
}
```
.foo {
height: calc(100% - 5px);
}
```
`lessOptions.paths` and `lessOptions.filename` are used internally by StealJS and any value
provided will be ignored.

@@ -41,6 +41,8 @@ @property {moduleName|Array<moduleName>} System.main

<script src="../node_modules/steal/steal.js">
</script>
In [System.env production], make sure your script specifies `"main"` so the correct bundle to load
```
<script src="../node_modules/steal/steal.js">
</script>
```
In [System.env production], make sure your script specifies `main` so the correct bundle to load
can be known.
@property {Object.<moduleGlob, moduleName|Object.<moduleGlob,moduleName>>} System.map
@parent StealJS.config
Alter [moduleName]s.
Alter [moduleName] keys.

@@ -6,0 +6,0 @@ @option {Object.<moduleGlob, moduleName|Object.<moduleGlob,moduleName>>}

@@ -12,3 +12,3 @@ @property {Object.<glob,glob>} System.paths

If paths for [@config], [@dev], [@traceur],
[$css], [$less], "bundles/*", and "bundles/*.css" are not set, `steal.js`
[$css], [$less], "bundles/\*" and "bundles/\*.css" are not set, `steal.js`
will provide [default paths](#section_Defaultpathsconfiguredbysteal).

@@ -41,5 +41,9 @@

This would allow you to do: `import throttle from "lodash/functions/throttle"` to
load only the throttle function.
This would allow you to do:
```
import throttle from "lodash/functions/throttle"
```
to load only the throttle function.
See [this issue](https://github.com/systemjs/systemjs/issues/113) on why `css` and other extensions have

@@ -61,4 +65,4 @@ strange rules.

- [$less] - defaults to _STEAL\_BASE/steal/less.js_
- `"bundles/*"` - defaults to _"dist/bundles/*.js"_
- `"bundles/*.css"` - defaults to _"dist/bundles/*css"_
- `"bundles/*"` - defaults to _"dist/bundles/\*.js"_
- `"bundles/*.css"` - defaults to _"dist/bundles/\*css"_

@@ -65,0 +69,0 @@ _Note: `STEAL_BASE` is the parent folder of the steal folder._

@property {String} System.stealPath
@parent StealJS.config
Specify the path to `steal.js`'s root folder and set many other configuration
Specify the path to the `steal.js` root folder and set many other configuration
values as side effects. This should not typically be called directly.

@@ -6,0 +6,0 @@

@@ -11,3 +11,3 @@ @typedef {{}} load.metadata metadata

@option {Array.<moduleName>} deps dependencies.
@option {Array.<moduleName>} deps Dependencies.

@@ -14,0 +14,0 @@ @option {String} exports What should be exported.

@@ -481,3 +481,3 @@ (function(global){

attr.nodeName );
options[optionName] = attr.value;
options[optionName] = (attr.value === "") ? true : attr.value;
});

@@ -518,6 +518,6 @@

configDeferred = System.import(System.configMain);
configDeferred = System["import"](System.configMain);
return appDeferred = configDeferred.then(function(cfg){
return System.main ? System.import(System.main) : cfg;
return System.main ? System["import"](System.main) : cfg;
})["catch"](function(e){

@@ -529,5 +529,4 @@ console.log(e);

configDeferred = System["import"](System.configMain);
configDeferred = System.import(System.configMain);
devDeferred = configDeferred.then(function(){

@@ -541,6 +540,6 @@ // If a configuration was passed to startup we'll use that to overwrite

return System.import("@dev");
return System["import"]("@dev");
},function(e){
console.log("steal - error loading @config.",e);
return steal.System.import("@dev");
return steal.System["import"]("@dev");
});

@@ -559,3 +558,3 @@

return Promise.all( map(main,function(main){
return System.import(main)
return System["import"](main)
}) );

@@ -562,0 +561,0 @@ }).then(function(){

{
"name": "steal",
"description": "Gets JavaScript.",
"version": "0.6.0-pre.0",
"version": "0.6.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Bitovi",

@@ -15,4 +15,4 @@ # steal

For information on contributing and developing `steal`, go [here](http://127.0.0.1:8125/steal.com/docs/guides.Contributing.html).
For information on contributing and developing `steal`, go [here](http://stealjs.com/docs/guides.Contributing.html).

@@ -42,3 +42,3 @@ var getScriptOptions = function () {

attr.nodeName );
options[optionName] = attr.value;
options[optionName] = (attr.value === "") ? true : attr.value;
});

@@ -79,6 +79,6 @@

configDeferred = System.import(System.configMain);
configDeferred = System["import"](System.configMain);
return appDeferred = configDeferred.then(function(cfg){
return System.main ? System.import(System.main) : cfg;
return System.main ? System["import"](System.main) : cfg;
})["catch"](function(e){

@@ -90,5 +90,4 @@ console.log(e);

configDeferred = System["import"](System.configMain);
configDeferred = System.import(System.configMain);
devDeferred = configDeferred.then(function(){

@@ -102,6 +101,6 @@ // If a configuration was passed to startup we'll use that to overwrite

return System.import("@dev");
return System["import"]("@dev");
},function(e){
console.log("steal - error loading @config.",e);
return steal.System.import("@dev");
return steal.System["import"]("@dev");
});

@@ -120,3 +119,3 @@

return Promise.all( map(main,function(main){
return System.import(main)
return System["import"](main)
}) );

@@ -123,0 +122,0 @@ }).then(function(){

/*
* steal v0.5.0-pre.2
* steal v0.6.0-pre.0
*

@@ -7,2 +7,2 @@ * Copyright (c) 2015 Bitovi; Licensed MIT

!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.Promise=a():"undefined"!=typeof global?global.Promise=a():"undefined"!=typeof self&&(self.Promise=a())}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){var c=a("../lib/decorators/unhandledRejection"),d=c(a("../lib/Promise"));b.exports="undefined"!=typeof global?global.Promise=d:"undefined"!=typeof self?self.Promise=d:d},{"../lib/Promise":2,"../lib/decorators/unhandledRejection":4}],2:[function(b,c){!function(a){"use strict";a(function(a){var b=a("./makePromise"),c=a("./Scheduler"),d=a("./env").asap;return b({scheduler:new c(d)})})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"./Scheduler":3,"./env":5,"./makePromise":7}],3:[function(b,c){!function(a){"use strict";a(function(){function a(a){this._async=a,this._running=!1,this._queue=new Array(65536),this._queueLen=0,this._afterQueue=new Array(16),this._afterQueueLen=0;var b=this;this.drain=function(){b._drain()}}return a.prototype.enqueue=function(a){this._queue[this._queueLen++]=a,this.run()},a.prototype.afterQueue=function(a){this._afterQueue[this._afterQueueLen++]=a,this.run()},a.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},a.prototype._drain=function(){for(var a=0;a<this._queueLen;++a)this._queue[a].run(),this._queue[a]=void 0;for(this._queueLen=0,this._running=!1,a=0;a<this._afterQueueLen;++a)this._afterQueue[a].run(),this._afterQueue[a]=void 0;this._afterQueueLen=0},a})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],4:[function(b,c){!function(a){"use strict";a(function(a){function b(a){throw a}function c(){}var d=a("../env").setTimer,e=a("../format");return function(a){function f(a){a.handled||(n.push(a),k("Potentially unhandled rejection ["+a.id+"] "+e.formatError(a.value)))}function g(a){var b=n.indexOf(a);b>=0&&(n.splice(b,1),l("Handled previous rejection ["+a.id+"] "+e.formatObject(a.value)))}function h(a,b){m.push(a,b),null===o&&(o=d(i,0))}function i(){for(o=null;m.length>0;)m.shift()(m.shift())}var j,k=c,l=c;"undefined"!=typeof console&&(j=console,k="undefined"!=typeof j.error?function(a){j.error(a)}:function(a){j.log(a)},l="undefined"!=typeof j.info?function(a){j.info(a)}:function(a){j.log(a)}),a.onPotentiallyUnhandledRejection=function(a){h(f,a)},a.onPotentiallyUnhandledRejectionHandled=function(a){h(g,a)},a.onFatalRejection=function(a){h(b,a.value)};var m=[],n=[],o=null;return a}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"../env":5,"../format":6}],5:[function(b,c){!function(a){"use strict";a(function(a){function b(){return"undefined"!=typeof process&&null!==process&&"function"==typeof process.nextTick}function c(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function d(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode(""),e=new a(b);e.observe(d,{characterData:!0});var f=0;return function(a){c=a,d.data=f^=1}}var e,f="undefined"!=typeof setTimeout&&setTimeout,g=function(a,b){return setTimeout(a,b)},h=function(a){return clearTimeout(a)},i=function(a){return f(a,0)};if(b())i=function(a){return process.nextTick(a)};else if(e=c())i=d(e);else if(!f){var j=a,k=j("vertx");g=function(a,b){return k.setTimer(b,a)},h=k.cancelTimer,i=k.runOnLoop||k.runOnContext}return{setTimer:g,clearTimer:h,asap:i}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{}],6:[function(b,c){!function(a){"use strict";a(function(){function a(a){var c="object"==typeof a&&null!==a&&a.stack?a.stack:b(a);return a instanceof Error?c:c+" (WARNING: non-Error used)"}function b(a){var b=String(a);return"[object Object]"===b&&"undefined"!=typeof JSON&&(b=c(a,b)),b}function c(a,b){try{return JSON.stringify(a)}catch(c){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],7:[function(b,c){!function(a){"use strict";a(function(){return function(a){function b(a,b){this._handler=a===t?b:c(a)}function c(a){function b(a){e.resolve(a)}function c(a){e.reject(a)}function d(a){e.notify(a)}var e=new v;try{a(b,c,d)}catch(f){c(f)}return e}function d(a){return I(a)?a:new b(t,new w(q(a)))}function e(a){return new b(t,new w(new z(a)))}function f(){return Z}function g(){return new b(t,new v)}function h(a,b){var c=new v(a.receiver,a.join().context);return new b(t,c)}function i(a){return k(S,null,a)}function j(a,b){return k(N,a,b)}function k(a,c,d){function e(b,e,g){g.resolved||l(d,f,b,a(c,e,b),g)}function f(a,b,c){k[a]=b,0===--j&&c.become(new y(k))}for(var g,h="function"==typeof c?e:f,i=new v,j=d.length>>>0,k=new Array(j),m=0;m<d.length&&!i.resolved;++m)g=d[m],void 0!==g||m in d?l(d,h,m,g,i):--j;return 0===j&&i.become(new y(k)),new b(t,i)}function l(a,b,c,d,e){if(J(d)){var f=r(d),g=f.state();0===g?f.fold(b,c,void 0,e):g>0?b(c,f.value,e):(e.become(f),m(a,c+1,f))}else b(c,d,e)}function m(a,b,c){for(var d=b;d<a.length;++d)n(q(a[d]),c)}function n(a,b){if(a!==b){var c=a.state();0===c?a.visit(a,void 0,a._unreport):0>c&&a._unreport()}}function o(a){return"object"!=typeof a||null===a?e(new TypeError("non-iterable passed to race()")):0===a.length?f():1===a.length?d(a[0]):p(a)}function p(a){var c,d,e,f=new v;for(c=0;c<a.length;++c)if(d=a[c],void 0!==d||c in a){if(e=q(d),0!==e.state()){f.become(e),m(a,c+1,e);break}e.visit(f,f.resolve,f.reject)}return new b(t,f)}function q(a){return I(a)?a._handler.join():J(a)?s(a):new y(a)}function r(a){return I(a)?a._handler.join():s(a)}function s(a){try{var b=a.then;return"function"==typeof b?new x(b,a):new y(a)}catch(c){return new z(c)}}function t(){}function u(){}function v(a,c){b.createContext(this,c),this.consumers=void 0,this.receiver=a,this.handler=void 0,this.resolved=!1}function w(a){this.handler=a}function x(a,b){v.call(this),U.enqueue(new F(a,b,this))}function y(a){b.createContext(this),this.value=a}function z(a){b.createContext(this),this.id=++X,this.value=a,this.handled=!1,this.reported=!1,this._report()}function A(a,b){this.rejection=a,this.context=b}function B(a){this.rejection=a}function C(){return new z(new TypeError("Promise cycle"))}function D(a,b){this.continuation=a,this.handler=b}function E(a,b){this.handler=b,this.value=a}function F(a,b,c){this._then=a,this.thenable=b,this.resolver=c}function G(a,b,c,d,e){try{a.call(b,c,d,e)}catch(f){d(f)}}function H(a,b,c,d){this.f=a,this.z=b,this.c=c,this.to=d,this.resolver=W,this.receiver=this}function I(a){return a instanceof b}function J(a){return("object"==typeof a||"function"==typeof a)&&null!==a}function K(a,c,d,e){return"function"!=typeof a?e.become(c):(b.enterContext(c),O(a,c.value,d,e),void b.exitContext())}function L(a,c,d,e,f){return"function"!=typeof a?f.become(d):(b.enterContext(d),P(a,c,d.value,e,f),void b.exitContext())}function M(a,c,d,e,f){return"function"!=typeof a?f.notify(c):(b.enterContext(d),Q(a,c,e,f),void b.exitContext())}function N(a,b,c){try{return a(b,c)}catch(d){return e(d)}}function O(a,b,c,d){try{d.become(q(a.call(c,b)))}catch(e){d.become(new z(e))}}function P(a,b,c,d,e){try{a.call(d,b,c,e)}catch(f){e.become(new z(f))}}function Q(a,b,c,d){try{d.notify(a.call(c,b))}catch(e){d.notify(e)}}function R(a,b){b.prototype=V(a.prototype),b.prototype.constructor=b}function S(a,b){return b}function T(){}var U=a.scheduler,V=Object.create||function(a){function b(){}return b.prototype=a,new b};b.resolve=d,b.reject=e,b.never=f,b._defer=g,b._handler=q,b.prototype.then=function(a,b,c){var d=this._handler,e=d.join().state();if("function"!=typeof a&&e>0||"function"!=typeof b&&0>e)return new this.constructor(t,d);var f=this._beget(),g=f._handler;return d.chain(g,d.receiver,a,b,c),f},b.prototype["catch"]=function(a){return this.then(void 0,a)},b.prototype._beget=function(){return h(this._handler,this.constructor)},b.all=i,b.race=o,b._traverse=j,b._visitRemaining=m,t.prototype.when=t.prototype.become=t.prototype.notify=t.prototype.fail=t.prototype._unreport=t.prototype._report=T,t.prototype._state=0,t.prototype.state=function(){return this._state},t.prototype.join=function(){for(var a=this;void 0!==a.handler;)a=a.handler;return a},t.prototype.chain=function(a,b,c,d,e){this.when({resolver:a,receiver:b,fulfilled:c,rejected:d,progress:e})},t.prototype.visit=function(a,b,c,d){this.chain(W,a,b,c,d)},t.prototype.fold=function(a,b,c,d){this.when(new H(a,b,c,d))},R(t,u),u.prototype.become=function(a){a.fail()};var W=new u;R(t,v),v.prototype._state=0,v.prototype.resolve=function(a){this.become(q(a))},v.prototype.reject=function(a){this.resolved||this.become(new z(a))},v.prototype.join=function(){if(!this.resolved)return this;for(var a=this;void 0!==a.handler;)if(a=a.handler,a===this)return this.handler=C();return a},v.prototype.run=function(){var a=this.consumers,b=this.join();this.consumers=void 0;for(var c=0;c<a.length;++c)b.when(a[c])},v.prototype.become=function(a){this.resolved||(this.resolved=!0,this.handler=a,void 0!==this.consumers&&U.enqueue(this),void 0!==this.context&&a._report(this.context))},v.prototype.when=function(a){this.resolved?U.enqueue(new D(a,this.handler)):void 0===this.consumers?this.consumers=[a]:this.consumers.push(a)},v.prototype.notify=function(a){this.resolved||U.enqueue(new E(a,this))},v.prototype.fail=function(a){var b="undefined"==typeof a?this.context:a;this.resolved&&this.handler.join().fail(b)},v.prototype._report=function(a){this.resolved&&this.handler.join()._report(a)},v.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},R(t,w),w.prototype.when=function(a){U.enqueue(new D(a,this))},w.prototype._report=function(a){this.join()._report(a)},w.prototype._unreport=function(){this.join()._unreport()},R(v,x),R(t,y),y.prototype._state=1,y.prototype.fold=function(a,b,c,d){L(a,b,this,c,d)},y.prototype.when=function(a){K(a.fulfilled,this,a.receiver,a.resolver)};var X=0;R(t,z),z.prototype._state=-1,z.prototype.fold=function(a,b,c,d){d.become(this)},z.prototype.when=function(a){"function"==typeof a.rejected&&this._unreport(),K(a.rejected,this,a.receiver,a.resolver)},z.prototype._report=function(a){U.afterQueue(new A(this,a))},z.prototype._unreport=function(){this.handled||(this.handled=!0,U.afterQueue(new B(this)))},z.prototype.fail=function(a){b.onFatalRejection(this,void 0===a?this.context:a)},A.prototype.run=function(){this.rejection.handled||(this.rejection.reported=!0,b.onPotentiallyUnhandledRejection(this.rejection,this.context))},B.prototype.run=function(){this.rejection.reported&&b.onPotentiallyUnhandledRejectionHandled(this.rejection)},b.createContext=b.enterContext=b.exitContext=b.onPotentiallyUnhandledRejection=b.onPotentiallyUnhandledRejectionHandled=b.onFatalRejection=T;var Y=new t,Z=new b(t,Y);return D.prototype.run=function(){this.handler.join().when(this.continuation)},E.prototype.run=function(){var a=this.handler.consumers;if(void 0!==a)for(var b,c=0;c<a.length;++c)b=a[c],M(b.progress,this.value,this.handler,b.receiver,b.resolver)},F.prototype.run=function(){function a(a){d.resolve(a)}function b(a){d.reject(a)}function c(a){d.notify(a)}var d=this.resolver;G(this._then,this.thenable,a,b,c)},H.prototype.fulfilled=function(a){this.f.call(this.c,this.z,a,this.to)},H.prototype.rejected=function(a){this.to.reject(a)},H.prototype.progress=function(a){this.to.notify(a)},b}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}]},{},[1])(1)}),function(__global){function __eval(__source,__global,load){var __curRegister=System.register;System.register=function(a,b,c){"string"!=typeof a&&(c=b,b=a),load.declare=c,load.depsList=b};try{eval('(function() { var __moduleName = "'+(load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(e){throw("SyntaxError"==e.name||"TypeError"==e.name)&&(e.message="Evaluating "+(load.name||load.address)+"\n "+e.message),e}System.register=__curRegister}$__Object$getPrototypeOf=Object.getPrototypeOf||function(a){return a.__proto__};var $__Object$defineProperty;!function(){try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(a){$__Object$defineProperty=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}(),$__Object$create=Object.create||function(a,b){function c(){}if(c.prototype=a,"object"==typeof b)for(prop in b)b.hasOwnProperty(prop)&&(c[prop]=b[prop]);return new c},function(){function a(a){return{status:"loading",name:a,linkSets:[],dependencies:[],metadata:{}}}function b(a,b,c){return new A(g({step:c.address?"fetch":"locate",loader:a,moduleName:b,moduleMetadata:c&&c.metadata||{},moduleSource:c.source,moduleAddress:c.address}))}function c(b,c,e,f){return new A(function(a){a(b.loaderObj.normalize(c,e,f))}).then(function(c){var e;if(b.modules[c])return e=a(c),e.status="linked",e.module=b.modules[c],e;for(var f=0,g=b.loads.length;g>f;f++)if(e=b.loads[f],e.name==c)return e;return e=a(c),b.loads.push(e),d(b,e),e})}function d(a,b){e(a,b,A.resolve().then(function(){return a.loaderObj.locate({name:b.name,metadata:b.metadata})}))}function e(a,b,c){f(a,b,c.then(function(c){return"loading"==b.status?(b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})):void 0}))}function f(a,b,d){d.then(function(c){return"loading"==b.status?a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:c}):void 0}).then(function(c){return"loading"==b.status?(b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})):void 0}).then(function(d){if("loading"==b.status){if(void 0===d)b.address=b.address||"<Anonymous Module "+ ++D+">",b.isDeclarative=!0,a.loaderObj.parse(b);else{if("object"!=typeof d)throw TypeError("Invalid instantiate return value");b.depsList=d.deps||[],b.execute=d.execute,b.isDeclarative=!1}b.dependencies=[];for(var e=b.depsList,f=[],g=0,h=e.length;h>g;g++)(function(d,e){f.push(c(a,d,b.name,b.address).then(function(a){if(b.dependencies[e]={key:d,value:a.name},"linked"!=a.status)for(var c=b.linkSets.concat([]),f=0,g=c.length;g>f;f++)i(c[f],a)}))})(e[g],g);return A.all(f)}}).then(function(){b.status="loaded";for(var a=b.linkSets.concat([]),c=0,d=a.length;d>c;c++)k(a[c],b)})["catch"](function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;e>d;d++)l(c[d],b,a)})}function g(b){return function(c){var g=b.loader,i=b.moduleName,j=b.step;if(g.modules[i])throw new TypeError('"'+i+'" already exists in the module table');for(var k,l=0,m=g.loads.length;m>l;l++)if(g.loads[l].name==i)return k=g.loads[l],k.linkSets[0].done.then(function(){c(k)});var n=a(i);n.metadata=b.moduleMetadata;var o=h(g,n);g.loads.push(n),c(o.done),"locate"==j?d(g,n):"fetch"==j?e(g,n,A.resolve(b.moduleAddress)):(n.address=b.moduleAddress,f(g,n,A.resolve(b.moduleSource)))}}function h(a,b){var c={loader:a,loads:[],startingLoad:b,loadingCount:0};return c.done=new A(function(a,b){c.resolve=a,c.reject=b}),i(c,b),c}function i(a,b){for(var c=0,d=a.loads.length;d>c;c++)if(a.loads[c]==b)return;a.loads.push(b),b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;d>c;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;h>g;g++)if(e.loads[g].name==f){i(a,e.loads[g]);break}}}function j(a){var b=!1;try{p(a,function(c,d){l(a,c,d),b=!0})}catch(c){l(a,null,c),b=!0}return b}function k(a,b){if(a.loadingCount--,!(a.loadingCount>0)){var c=a.startingLoad;if(a.loader.loaderObj.execute===!1){for(var d=[].concat(a.loads),e=0,f=d.length;f>e;e++){var b=d[e];b.module=b.isDeclarative?{name:b.name,module:E({}),evaluated:!0}:{module:E({})},b.status="linked",m(a.loader,b)}return a.resolve(c)}var g=j(a);g||a.resolve(c)}}function l(a,b,c){var d=a.loader;a.loads[0].name!=b.name&&(c=w(c,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"<unknown>")+"\n")),c=w(c,'Error loading "'+b.name+'" at '+(b.address||"<unknown>")+"\n");for(var e=a.loads.concat([]),f=0,g=e.length;g>f;f++){var b=e[f];d.loaderObj.failed=d.loaderObj.failed||[],-1==B.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var h=B.call(b.linkSets,a);if(b.linkSets.splice(h,1),0==b.linkSets.length){var i=B.call(a.loader.loads,b);-1!=i&&a.loader.loads.splice(i,1)}}a.reject(c)}function m(a,b){if(a.loaderObj.trace){a.loaderObj.loads||(a.loaderObj.loads={});var c={};b.dependencies.forEach(function(a){c[a.key]=a.value}),a.loaderObj.loads[b.name]={name:b.name,deps:b.dependencies.map(function(a){return a.key}),depMap:c,address:b.address,metadata:b.metadata,source:b.source,kind:b.isDeclarative?"declarative":"dynamic"}}b.name&&(a.modules[b.name]=b.module);var d=B.call(a.loads,b);-1!=d&&a.loads.splice(d,1);for(var e=0,f=b.linkSets.length;f>e;e++)d=B.call(b.linkSets[e].loads,b),-1!=d&&b.linkSets[e].loads.splice(d,1);b.linkSets.splice(0,b.linkSets.length)}function n(a,b,c,d){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==B.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var e=0,f=b.length;f>e;e++)for(var g=b[e],h=0;h<a.dependencies.length;h++)if(g.name==a.dependencies[h].value){var i=a.groupIndex+(g.isDeclarative!=a.isDeclarative);if(void 0===g.groupIndex||g.groupIndex<i){if(g.groupIndex&&(c[g.groupIndex].splice(B.call(c[g.groupIndex],g),1),0==c[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=i}n(g,b,c,d)}}}function o(a,b,c){try{var d=b.execute()}catch(e){return void c(b,e)}return d&&d instanceof y?d:void c(b,new TypeError("Execution must define a Module instance"))}function p(a,b){var c=a.loader;if(a.loads.length){var d=[],e=a.loads[0];e.groupIndex=0,n(e,a.loads,d,c);for(var f=e.isDeclarative==d.length%2,g=d.length-1;g>=0;g--){for(var h=d[g],i=0;i<h.length;i++){var j=h[i];if(f)r(j,a.loads,c);else{var k=o(a,j,b);if(!k)return;j.module={name:j.name,module:k},j.status="linked"}m(c,j)}f=!f}}}function q(a,b){var c=b.moduleRecords;return c[a]||(c[a]={name:a,dependencies:[],module:new y,importers:[]})}function r(a,b,c){if(!a.module){var d=a.module=q(a.name,c),e=a.module.module,f=a.declare.call(__global,function(a,b){d.locked=!0,e[a]=b;for(var c=0,f=d.importers.length;f>c;c++){var g=d.importers[c];if(!g.locked){var h=B.call(g.dependencies,d);g.setters[h](e)}}return d.locked=!1,b});d.setters=f.setters,d.execute=f.execute;for(var g=0,h=a.dependencies.length;h>g;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;k<b.length;k++)b[k].name==i&&(b[k].module?j=q(i,c):(r(b[k],b,c),j=b[k].module));j.importers?(d.dependencies.push(j),j.importers.push(d)):d.dependencies.push(null),d.setters[g]&&d.setters[g](j.module)}a.status="linked"}}function s(a,b){return u(b.module,[],a),b.module.module}function t(a){try{a.execute.call(__global)}catch(b){return b}}function u(a,b,c){var d=v(a,b,c);if(d)throw d}function v(a,b,c){if(!a.evaluated&&a.dependencies){b.push(a);for(var d,e=a.dependencies,f=0,g=e.length;g>f;f++){var h=e[f];if(h&&-1==B.call(b,h)&&(d=v(h,b,c)))return d=w(d,"Error evaluating "+h.name+"\n")}if(a.failed)return new Error("Module failed execution.");if(!a.evaluated)return a.evaluated=!0,d=t(a),d?a.failed=!0:Object.preventExtensions&&Object.preventExtensions(a.module),a.execute=void 0,d}}function w(a,b){return a instanceof Error?a.message=b+a.message:a=b+a,a}function x(a){if("object"!=typeof a)throw new TypeError("Options must be an object");a.normalize&&(this.normalize=a.normalize),a.locate&&(this.locate=a.locate),a.fetch&&(this.fetch=a.fetch),a.translate&&(this.translate=a.translate),a.instantiate&&(this.instantiate=a.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},C(this,"global",{get:function(){return __global}}),this.traceurOptions={}}function y(){}function z(a,b,c){var d=a._loader.importPromises;return d[b]=c.then(function(a){return d[b]=void 0,a},function(a){throw d[b]=void 0,a})}var A=__global.Promise||require("when/es6-shim/Promise");__global.console&&(console.assert=console.assert||function(){});var B=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},C=$__Object$defineProperty,D=0;x.prototype={constructor:x,define:function(a,b,c){if(this._loader.importPromises[a])throw new TypeError("Module is already loading.");return z(this,a,new A(g({step:"translate",loader:this._loader,moduleName:a,moduleMetadata:c&&c.metadata||{},moduleSource:b,moduleAddress:c&&c.address})))},"delete":function(a){return this._loader.modules[a]?delete this._loader.modules[a]:!1},get:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this),this._loader.modules[a].module):void 0},has:function(a){return!!this._loader.modules[a]},"import":function(a,c){var d=this;return A.resolve(d.normalize(a,c&&c.name,c&&c.address)).then(function(a){var e=d._loader;return e.modules[a]?(u(e.modules[a],[],e._loader),e.modules[a].module):e.importPromises[a]||z(d,a,b(e,a,c||{}).then(function(b){return delete e.importPromises[a],s(e,b)}))})},load:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this._loader),A.resolve(this._loader.modules[a].module)):this._loader.importPromises[a]||z(this,a,b(this._loader,a,{}))},module:function(b,c){var d=a();d.address=c&&c.address;var e=h(this._loader,d),g=A.resolve(b),i=this._loader,j=e.done.then(function(){return s(i,d)});return f(i,d,g),j},newModule:function(a){if("object"!=typeof a)throw new TypeError("Expected object");var b=new y;for(var c in a)!function(c){C(b,c,{configurable:!1,enumerable:!0,get:function(){return a[c]}})}(c);return Object.preventExtensions&&Object.preventExtensions(b),b},set:function(a,b){if(!(b instanceof y))throw new TypeError("Loader.set("+a+", module) must be a module");this._loader.modules[a]={module:b}},normalize:function(a){return a},locate:function(a){return a.name},fetch:function(){throw new TypeError("Fetch not implemented")},translate:function(a){return a.source},parse:function(){throw new TypeError("Loader.parse is not implemented")},instantiate:function(){}};var E=x.prototype.newModule;!function(){function a(a,b,c){try{return b.compile(a,c)}catch(d){throw d[0]}}var b;x.prototype.parse=function(c){if(!b)if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)b=require("traceur");else{if(!__global.traceur)throw new TypeError("Include Traceur for module syntax support");b=__global.traceur}c.isDeclarative=!0;var d=this.traceurOptions||{};d.modules="instantiate",d.script=!1,d.sourceMaps="inline",d.filename=c.address;var e=new b.Compiler(d),f=a(c.source,e,d.filename);if(!f)throw new Error("Error evaluating module "+c.address);var g=e.getSourceMap();__global.btoa&&g&&(f+="!eval"),f='var __moduleAddress = "'+c.address+'";'+f,__eval(f,__global,c)}}(),"object"==typeof exports&&(module.exports=x),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||x,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=x}(),function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}function c(c,d){return d=a(d||""),c=a(c||""),d&&c?(d.protocol||c.protocol)+(d.protocol||d.authority?d.authority:c.authority)+b(d.protocol||d.authority||"/"===d.pathname.charAt(0)?d.pathname:d.pathname?(c.authority&&!c.pathname?"/":"")+c.pathname.slice(0,c.pathname.lastIndexOf("/")+1)+d.pathname:c.pathname)+(d.protocol||d.authority||d.pathname?d.search:d.search||c.search)+d.hash:null}function d(){document.removeEventListener("DOMContentLoaded",d,!1),window.removeEventListener("load",d,!1),e()}function e(){for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++){var c=a[b];if("module"==c.type){var d=c.innerHTML.substr(1);__global.System.module(d)["catch"](function(a){setTimeout(function(){throw a})})}}}var f,g="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,h="undefined"!=typeof window&&!g,i="undefined"!=typeof process&&!!process.platform.match(/^win/),j=__global.Promise||require("when/es6-shim/Promise");if("undefined"!=typeof XMLHttpRequest)f=function(a,b,c){function d(){b(f.responseText)}function e(){c(f.statusText+": "+a||"XHR error")}var f=new XMLHttpRequest,g=!0,h=!1;if(!("withCredentials"in f)){var i=/^(\w+:)?\/\/([^\/]+)/.exec(a);i&&(g=i[2]===window.location.host,i[1]&&(g&=i[1]===window.location.protocol))}g||"undefined"==typeof XDomainRequest||(f=new XDomainRequest,f.onload=d,f.onerror=e,f.ontimeout=e,f.onprogress=function(){},f.timeout=0,h=!0),f.onreadystatechange=function(){4===f.readyState&&(200===f.status||0==f.status&&f.responseText?d():e())},f.open("GET",a,!0),h&&setTimeout(function(){f.send()},0),f.send(null)};else{if("undefined"==typeof require)throw new TypeError("No environment fetch API available.");var k;f=function(a,b,c){if("file:"!=a.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";return k=k||require("fs"),a=a.substr(5),i&&(a=a.replace(/\//g,"\\")),k.readFile(a,function(a,d){return a?c(a):void b(d+"")})}}var l=function(a){function b(b){if(a.call(this,b||{}),"undefined"!=typeof location&&location.href){var c=__global.location.href.split("#")[0].split("?")[0];this.baseURL=c.substring(0,c.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",i&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return b.__proto__=null!==a?a:Function.prototype,b.prototype=$__Object$create(null!==a?a.prototype:null),$__Object$defineProperty(b.prototype,"constructor",{value:b}),$__Object$defineProperty(b.prototype,"global",{get:function(){return h?window:g?self:__global},enumerable:!1}),$__Object$defineProperty(b.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(b.prototype,"normalize",{value:function(a,b){if("string"!=typeof a)throw new TypeError("Module name must be a string");var c=a.split("/");if(0==c.length)throw new TypeError("No module name provided");var d=0,e=!1,f=0;if("."==c[0]){if(d++,d==c.length)throw new TypeError('Illegal module name "'+a+'"');e=!0}else{for(;".."==c[d];)if(d++,d==c.length)throw new TypeError('Illegal module name "'+a+'"');d&&(e=!0),f=d}for(var g=d;g<c.length;g++){var h=c[g];if(""==h||"."==h||".."==h)throw new TypeError('Illegal module name "'+a+'"')}if(!e)return a;{var i=[],j=(b||"").split("/");j.length-1-f}return i=i.concat(j.splice(0,j.length-1-f)),i=i.concat(c.splice(d,c.length-d)),i.join("/")},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"locate",{value:function(a){var b,d=a.name,e="";for(var f in this.paths){var g=f.split("*");if(g.length>2)throw new TypeError("Only one wildcard in a path is permitted");if(1==g.length){if(d==f&&f.length>e.length){e=f;break}}else d.substr(0,g[0].length)==g[0]&&d.substr(d.length-g[1].length)==g[1]&&(e=f,b=d.substr(g[0].length,d.length-g[1].length-g[0].length))}var i=this.paths[e];return b&&(i=i.replace("*",b)),h&&(i=i.replace(/#/g,"%23")),c(this.baseURL,i)},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"fetch",{value:function(a){var b=this;return new j(function(d,e){f(c(b.baseURL,a.address),function(a){d(a)},e)})},enumerable:!1,writable:!0}),b}(__global.LoaderPolyfill),m=new l;if("object"==typeof exports&&(module.exports=m),__global.System=m,h&&"undefined"!=typeof document.getElementsByTagName){var n=document.getElementsByTagName("script");n=n[n.length-1],"complete"===document.readyState?setTimeout(e):document.addEventListener&&(document.addEventListener("DOMContentLoaded",d,!1),window.addEventListener("load",d,!1)),n.getAttribute("data-init")&&window[n.getAttribute("data-init")]()}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function($__global){$__global.upgradeSystemLoader=function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(b,c){function d(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return c=a(c||""),b=a(b||""),c&&b?(c.protocol||b.protocol)+(c.protocol||c.authority?c.authority:b.authority)+d(c.protocol||c.authority||"/"===c.pathname.charAt(0)?c.pathname:c.pathname?(b.authority&&!b.pathname?"/":"")+b.pathname.slice(0,b.pathname.lastIndexOf("/")+1)+c.pathname:b.pathname)+(c.protocol||c.authority||c.pathname?c.search:c.search||b.search)+c.hash:null}function c(a){function b(a,b){var c=a.meta&&a.meta[b.name];if(c)for(var d in c)b.metadata[d]=b.metadata[d]||c[d]}var c=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,d=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;a.meta={};var e=a.locate;a.locate=function(a){return b(this,a),e.call(this,a)};var f=a.translate;a.translate=function(a){var e=a.source.match(c);if(e)for(var g=e[0].match(d),h=0;h<g.length;h++){var i=g[h].length,j=g[h].substr(0,1);if(";"==g[h].substr(i-1,1)&&i--,'"'==j||"'"==j){var k=g[h].substr(1,g[h].length-3),l=k.substr(0,k.indexOf(" "));if(l){var m=k.substr(l.length+1,k.length-l.length-1);a.metadata[l]instanceof Array?a.metadata[l].push(m):a.metadata[l]||(a.metadata[l]=m)}}}return b(this,a),f.call(this,a)}}function d(a){function c(a){var c=this;"@traceur"==a.name&&(p=m);var d,e=a.source.lastIndexOf("\n");-1!=e&&"//# sourceMappingURL="==a.source.substr(e+1,21)&&(d=a.source.substr(e+22,a.source.length-e-22),"undefined"!=typeof b&&(d=b(a.address,d))),__eval(a.source,a.address,d),"@traceur"==a.name&&(c.global.traceurSystem=c.global.System,c.global.System=p)}function d(a){for(var b=[],c=0,d=a.length;d>c;c++)-1==n.call(b,a[c])&&b.push(a[c]);return b}function e(b,c,d,e){"string"!=typeof b&&(e=d,d=c,c=b,b=null),r=!0;var f;if(f="boolean"==typeof d?{declarative:!1,deps:c,execute:e,executingRequire:d}:{declarative:!0,deps:c,declare:d},b)f.name=b,a.defined[b]||(a.defined[b]=f);else if(f.declarative){if(q)throw new TypeError("Multiple anonymous System.register calls in the same module file.");q=f}}function f(a){if(!a.register){a.register=e,a.defined||(a.defined={});var b=a.onScriptLoad;a.onScriptLoad=function(a){b(a),q&&(a.metadata.entry=q),r&&(a.metadata.format=a.metadata.format||"register",a.metadata.registered=!0)}}}function g(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==n.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=a.normalizedDeps.length;e>d;d++){var f=a.normalizedDeps[d],h=b.defined[f];if(h&&!h.evaluated){var i=a.groupIndex+(h.declarative!=a.declarative);if(void 0===h.groupIndex||h.groupIndex<i){if(h.groupIndex&&(c[h.groupIndex].splice(n.call(c[h.groupIndex],h),1),0==c[h.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");h.groupIndex=i}g(h,b,c)}}}}function h(a,b){var c=b.defined[a];c.groupIndex=0;var d=[];g(c,b,d);for(var e=!!c.declarative==d.length%2,f=d.length-1;f>=0;f--){for(var h=d[f],i=0;i<h.length;i++){var k=h[i];e?j(k,b):l(k,b)
}e=!e}}function i(a){return s[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}function j(a,b){if(!a.module){var c=a.module=i(a.name),d=a.module.exports,e=a.declare.call(b.global,function(a,b){c.locked=!0,d[a]=b;for(var e=0,f=c.importers.length;f>e;e++){var g=c.importers[e];if(!g.locked){var h=n.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,k=a.normalizedDeps[f],l=b.defined[k],m=s[k];m?h=m.exports:l&&!l.declarative?h={"default":l.module.exports,__useDefault:!0}:l?(j(l,b),m=l.module,h=m.exports):h=b.get(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function k(a,b){var c,d=b.defined[a];if(d)d.declarative?o(a,[],b):d.evaluated||l(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function l(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var e=0,f=a.normalizedDeps.length;f>e;e++){var g=a.normalizedDeps[e],h=b.defined[g];h&&l(h,b)}a.evaluated=!0;var i=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return k(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);i&&(d.exports=i)}}function o(a,b,c){var d=c.defined[a];if(!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==n.call(b,g)&&(c.defined[g]?o(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof n&&(n=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var p;a.__exec=c;var q,r;f(a);var s={},t=/System\.register/,u=a.fetch;a.fetch=function(a){var b=this;return f(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,u.call(b,a))};var v=a.translate;a.translate=function(a){return this.register=e,this.__exec=c,a.metadata.deps=a.metadata.deps||[],Promise.resolve(v.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(t))&&(a.metadata.format="register"),b})};var w=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var f=c.global.System=c.global.System||c,g=f.register;if(f.register=e,c.__exec(a),f.register=g,q&&(b=q),!b&&f.defined[a.name]&&(b=f.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:[],execute:function(){return c.newModule({})}};if(!b)return w.call(this,a);c.defined[a.name]=b,b.deps=d(b.deps),b.name=a.name;for(var i=[],j=0,k=b.deps.length;k>j;j++)i.push(Promise.resolve(c.normalize(b.deps[j],a.name)));return Promise.all(i).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){h(a.name,c),o(a.name,[],c),c.defined[a.name]=void 0;var d=c.newModule(b.declarative?b.module.exports:{"default":b.module.exports,__useDefault:!0});return d}}})}}function e(a){var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var d;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)d="file:"+process.cwd()+"/";else if("undefined"==typeof window)d=a.global.location.href;else if(d=document.baseURI,!d){var e=document.getElementsByTagName("base");d=e[0]&&e[0].href||window.location.href}var f,g=a.locate;a.locate=function(a){return this.baseURL!=f&&(f=b(d,this.baseURL),"/"!=f.substr(f.length-1,1)&&(f+="/"),this.baseURL=f),Promise.resolve(g.call(this,a))};var h=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/\$traceurRuntime/,j=a.translate;a.translate=function(a){var b=this;if("@traceur"==a.name||"@traceur-runtime"==a.name)return j.call(b,a);if(("es6"==a.metadata.format||!a.metadata.format&&a.source.match(h))&&(a.metadata.format="es6",!b.global.traceur))return b["import"]("@traceur").then(function(){return j.call(b,a)});if(!b.global.$traceurRuntime&&a.source.match(i)){var c=$__global.System;return b["import"]("@traceur-runtime").then(function(){return $__global.System=c,j.call(b,a)})}return j.call(b,a)};var k=a.instantiate;a.instantiate=function(a){var b=this;return"@traceur"==a.name||"@traceur-runtime"==a.name?(b.__exec(a),{deps:[],execute:function(){return b.newModule({})}}):k.call(b,a)}}function f(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){if(!a.has("@@global-helpers")){var c,d,e=a.global.hasOwnProperty,f={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,g){for(var h=0;h<g.length;h++){var i=f[g[h]];if(i)for(var j in i)a.global[j]=i[j]}c={},d=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB"];for(var k in a.global)if(-1==n.call(d,k)&&(!e||a.global.hasOwnProperty(k)))try{c[k]=a.global[k]}catch(l){d.push(k)}},retrieveGlobal:function(g,h,i){var j,k,l={};if(i){for(var m=[],o=0;o<deps.length;o++)m.push(require(deps[o]));j=i.apply(a.global,m)}else if(h){var p=h.split(".")[0];j=b(h,a.global),l[p]=a.global[p]}else for(var q in a.global)-1==n.call(d,q)&&(e&&!a.global.hasOwnProperty(q)||q==a.global||c[q]==a.global[q]||(l[q]=a.global[q],j?j!==a.global[q]&&(k=!0):void 0===j&&(j=a.global[q])));return f[g]=l,k?l:j}}))}}c(a);var d=a.instantiate;a.instantiate=function(a){var b=this;c(b);var e=a.metadata.exports;return a.metadata.format||(a.metadata.format="global"),"global"==a.metadata.format&&(a.metadata.execute=function(c,d,f){b.get("@@global-helpers").prepareGlobal(f.id,a.metadata.deps),e&&(a.source+='\nthis["'+e+'"] = '+e+";");var g=b.global.define;return b.global.define=void 0,b.global.module=void 0,b.global.exports=void 0,b.__exec(a),b.global.define=g,b.get("@@global-helpers").retrieveGlobal(f.id,e,a.metadata.init)}),d.call(b,a)}}function g(a){function b(a){d.lastIndex=0;var b=[];a.length/a.split("\n").length<200&&(a=a.replace(e,""));for(var c;c=d.exec(a);)b.push(c[1].substr(1,c[1].length-2));return b}var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.]|module\.)(exports\s*\[['"]|\exports\s*\.)|(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])module\.exports\s*\=/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):e.metadata.deps,e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),m._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:m._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),f.call(this,e)}}function h(a){function b(a,b){a=a.replace(k,"");var c=a.match(o),d=(c[1].split(",")[b]||"require").replace(p,""),e=q[d]||(q[d]=new RegExp(l+d+m,"g"));e.lastIndex=0;for(var f,g=[];f=e.exec(a);)g.push(f[2]||f[3]);return g}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,g){"string"!=typeof c&&(g=e,e=c,c=null),e instanceof Array||(g=e,e=["require","exports","module"]),"function"!=typeof g&&(g=function(a){return function(){return a}}(g)),void 0===e[e.length-1]&&e.pop();var h,i,j;if(-1!=(h=n.call(e,"require"))){e.splice(h,1);var k=g.toString();e=e.concat(b(k,h))}-1!=(i=n.call(e,"exports"))&&e.splice(i,1),-1!=(j=n.call(e,"module"))&&e.splice(j,1);var l={deps:e,execute:function(b,c,k){for(var l=[],m=0;m<e.length;m++)l.push(b(e[m]));k.uri=a.baseURL+k.id,k.config=function(){},-1!=j&&l.splice(j,0,k),-1!=i&&l.splice(i,0,c),-1!=h&&l.splice(h,0,d(k.id,b,a));var n=g.apply(f,l);return"undefined"==typeof n&&k&&(n=k.exports),"undefined"!=typeof n?n:void 0}};if(c)r=0!=e.length||r||s?null:l,s=!0,a.register(c,l.deps,!1,l.execute);else{if(r)throw new TypeError("Multiple defines for anonymous module");r=l}}var e=a.onScriptLoad;a.onScriptLoad=function(a){e(a),(r||s)&&(a.metadata.format="defined",a.metadata.registered=!0),r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)},c.amd={},a.amdDefine=c}function g(a){a.amdDefine||e(a),r=null,s=null;var b=a.global;t=b.module,u=b.exports,v=b.define,b.module=void 0,b.exports=void 0,b.define&&b.define===a.amdDefine||(b.define=a.amdDefine)}function h(a){var b=a.global;b.define=v,b.module=t,b.exports=u}var i="undefined"!=typeof module&&module.exports,j=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,k=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",m="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",o=/\(([^\)]*)\)/,p=/^\s+|\s+$/g,q={};a.amdRequire=c;var r,s,t,u,v;if(e(a),a.scriptLoader){var w=a.fetch;a.fetch=function(a){return g(this),w.call(this,a)}}var x=a.instantiate;a.instantiate=function(a){var b=this;if("amd"==a.metadata.format||!a.metadata.format&&a.source.match(j)){if(a.metadata.format="amd",b.execute!==!1&&(g(b),b.__exec(a),h(b),!r&&!s&&!i))throw new TypeError("AMD module "+a.name+" did not define");r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)}return x.call(b,a)}}function i(a){function b(a,b){return a.length<b.length?!1:a.substr(0,b.length)!=b?!1:a[b.length]&&"/"!=a[b.length]?!1:!0}function c(a){for(var b=1,c=0,d=a.length;d>c;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{};var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function j(a){"undefined"==typeof n&&(n=Array.prototype.indexOf);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.substr(0,a.length-3)})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function k(a){"undefined"==typeof n&&(n=Array.prototype.indexOf),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=n.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function l(a){a.depCache=a.depCache||{},loaderLocate=a.locate,a.locate=function(a){var b=this;b.depCache||(b.depCache={});var c=b.depCache[a.name];if(c)for(var d=0;d<c.length;d++)b.load(c[d]);return loaderLocate.call(b,a)}}$__global.upgradeSystemLoader=void 0;var m,n=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1};return function(){var a=$__global.System;m=$__global.System=new LoaderPolyfill(a),m.baseURL=a.baseURL,m.paths={"*":"*.js"},m.originalSystem=a}(),m.noConflict=function(){$__global.SystemJS=m,$__global.System=m.originalSystem},c(m),d(m),e(m),f(m),g(m),h(m),i(m),j(m),k(m),l(m),m.paths["@traceur"]||(m.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):m.baseURL+(m.baseURL.lastIndexOf("/")==m.baseURL.length-1?"":"/"))+"traceur.js"),m.paths["@traceur-runtime"]||(m.paths["@traceur-runtime"]=$__curScript&&$__curScript.getAttribute("data-traceur-runtime-src")||m.paths["@traceur"].replace(/\.js$/,"-runtime.js")),m};var $__curScript,__eval;!function(){var doEval;__eval=function(a,b,c){a+="\n//# sourceURL="+b+(c?"\n//# sourceMappingURL="+c:"");try{doEval(a)}catch(d){var e="Error evaluating "+b+"\n";throw d instanceof Error?d.message=e+d.message:d=e+d,d}};var __upgradeSystemLoader=$__global.upgradeSystemLoader;$__global.upgradeSystemLoader=function(){var a=$__global.System;__upgradeSystemLoader.call($__global),$__global.System.clone=function(){var b=$__global.System;$__global.System=a;var c=__upgradeSystemLoader.call($__global);return $__global.System=b,c}};var isWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window;if(isBrowser){var head,scripts=document.getElementsByTagName("script");if($__curScript=scripts[scripts.length-1],doEval=function(a){head||(head=document.head||document.body||document.documentElement);var b=document.createElement("script");b.text=a;var c,d=window.onerror;if(window.onerror=function(a){c=a},head.appendChild(b),head.removeChild(b),window.onerror=d,c)throw c},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var curPath=$__curScript.src,basePath=curPath.substr(0,curPath.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+basePath+'es6-module-loader.js" data-init="upgradeSystemLoader"></script>')}}else if(isWorker)if(doEval=function(source){try{eval(source)}catch(e){throw e}},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var basePath="";try{throw new TypeError("Unable to get Worker base path.")}catch(err){var idx=err.stack.indexOf("at ")+3,withSystem=err.stack.substr(idx,err.stack.substr(idx).indexOf("\n"));basePath=withSystem.substr(0,withSystem.lastIndexOf("/")+1)}importScripts(basePath+"es6-module-loader.js")}else{var es6ModuleLoader=require("es6-module-loader");$__global.System=es6ModuleLoader.System,$__global.Loader=es6ModuleLoader.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var vm=require("vm");doEval=function(a){vm.runInThisContext(a)}}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){function b(a){function b(a){function b(){for(var b,d=[],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?d.push(n(arguments[e])):b=arguments[e];"function"!=typeof b&&(b=function(a){return function(){return a}}(b)),c={deps:d,execute:function(c){for(var e=[],f=0;f<d.length;f++)e.push(c(d[f]));var g=b.apply(a.global,e);return"undefined"!=typeof g?g:void 0}}}c=null,a.global.module=void 0,a.global.exports=void 0,a.global.steal=b}var c,d=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,e=a.instantiate;return a.instantiate=function(a){var f=this;if("steal"===a.metadata.format||!a.metadata.format&&a.source.match(d)){a.metadata.format="steal";var g=f.global.steal;if(b(f),f.__exec(a),f.global.steal=g,!c)throw"Steal module "+a.name+" did not call steal";c&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(c.deps):c.deps,a.metadata.execute=c.execute)}return e.call(f,a)},a}var c=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},d=function(a,b){var c,d;if("number"==typeof a.length&&a.length-1 in a)for(c=0,d=a.length;d>c;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a){var b=a.lastIndexOf("/"),c=(-1==b?a:a.substr(b+1)).match(/^[\w-\s\.!]+/);return c?c[0]:""},m=function(a){var b=l(a),c=b.lastIndexOf(".");return-1!==c?b.substr(c+1):""},n=function(a){var b=a.lastIndexOf("!"),c="";if(-1!=b){var d=a.substr(0,b),e=a.substr(b+1);c="!"+e,a=d}var f=l(a),g=m(a);return"/"===a[a.length-1]?a+l(a.substr(0,a.length-1))+c:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(a)||-1!==f.indexOf(".")?"js"===g?a.substr(0,a.lastIndexOf("."))+c:a+c:a+"/"+f+c},o=function(b){function m(a){var b=/^[\s\n\r]*[\{\[]/,c=a.instantiate;return a.instantiate=function(a){var d,e=this;if(("json"===a.metadata.format||!a.metadata.format)&&b.test(a.source)){try{d=JSON.parse(a.source)}catch(f){}d&&(a.metadata.format="json",a.metadata.execute=function(){return d})}return c.call(e,a)},a}b.set("@loader",b.newModule({"default":b,__useDefault:!0}));var o,p,q,r=function(){var a=arguments,c=function(){var b,c=[];d(a,function(a){f(a)?c.push(r.System["import"](n(a))):"function"==typeof a&&(b=a)});var e=Promise.all(c);return b?e.then(function(a){return b&&b.apply(null,a)}):e};return"production"===b.env?c():o.then(c,c)};r.System=b,r.parseURI=j,r.joinURIs=k,r.normalize=n;var s=function(a){a.ext={};var b=a.normalize,c=/\.(\w+)!$/;a.normalize=function(d,e,f){var g,h=d.match(c),i=d;return h&&a.ext[g=h[1]]&&(i=d+a.ext[g]),b.call(this,i,e,f)}};s(b);var t=function(a){var b=a.normalize;a.normalize=function(a,c,d){var e,f,g=a.length-1;return"/"===a[g]&&(e=a.substring(0,g).lastIndexOf("/"),f=a.substring(e+1,g),a+=f),b.call(this,a,c,d)}};t(b),"undefined"!=typeof b&&m(b);var u=function(a,b){var c=a.config;a.config=function(e){var f=g({},e);d(b,function(b,c){if(b.set&&f[c]){var d=b.set.call(a,f[c],e);void 0!==d&&(a[c]=d),delete f[c]}}),c.call(this,f)}},v=function(a,b,c){a[b]||(a[b]=c)};b.configMain="@config",b.paths[b.configMain]="stealconfig.js",b.env="development",b.ext={css:"$css",less:"$less"},b.logLevel=0;var w="bundles/*.css",x="bundles/*";v(b.paths,w,"dist/bundles/*css"),v(b.paths,x,"dist/bundles/*.js");var y={set:function(a){var c=l(a),d=h(a);b.configMain=c,b.paths[c]=c,C.call(this),this.baseURL=(d===a?".":d)+"/"}},z={set:function(a){this.main=a,C.call(this)}},A=function(a){return{set:function(b){this[a]="object"==typeof b&&"object"==typeof r.System[a]?g(this[a]||{},b||{}):b}}},B=function(a){var b=a.lastIndexOf("!");return-1!==b?a.substr(b+1):void 0},C=function(){if("production"===this.env&&this.main){var a=this.main,c=this.bundlesName||"bundles/",d=c+l(a);v(this.meta,d,{format:"amd"});var e=B(b.configMain),f=[a,b.configMain];e&&b.set(e,b.newModule({})),this.bundles[d]=f}},D="undefined"!=typeof module&&module.exports,E="less-1.7.0";u(b,{env:{set:function(a){b.env=a,C.call(this)}},baseUrl:A("baseURL"),root:A("baseURL"),config:y,configPath:y,startId:{set:function(a){z.set.call(this,n(a))}},main:z,stealPath:{set:function(a,c){var d=a.split("/");v(this.paths,"@dev",a+"/ext/dev.js"),v(this.paths,"$css",a+"/ext/css.js"),v(this.paths,"$less",a+"/ext/less.js"),v(this.paths,"npm",a+"/ext/npm.js"),v(this.paths,"npm-extension",a+"/ext/npm-extension.js"),v(this.paths,"npm-utils",a+"/ext/npm-utils.js"),v(this.paths,"npm-crawl",a+"/ext/npm-crawl.js"),v(this.paths,"semver",a+"/ext/semver.js"),v(this.paths,"bower",a+"/ext/bower.js"),this.paths["@traceur"]=a+"/ext/traceur.js",this.paths["@traceur-runtime"]=a+"/ext/traceur-runtime.js",D?b.register("less",[],!1,function(){var a=require;return a("less")}):(v(this.paths,"less",a+"/ext/"+E+".js"),c.root||c.baseUrl||c.baseURL||c.config||c.configPath||("steal"===i(d)&&(d.pop(),"bower_components"===i(d)&&(b.configMain="bower.json!bower",C.call(this),d.pop()),"node_modules"===i(d)&&(b.configMain="package.json!npm",C.call(this),d.pop())),this.baseURL=d.join("/")+"/"))}},bundle:{set:function(a){b.bundle=a}},bundlesPath:{set:function(a){return this.paths[w]=a+"/*css",this.paths[x]=a+"/*.js",a}},instantiated:{set:function(a){var b=this;d(a||{},function(a,c){b.set(c,b.newModule(a))})}}}),r.config=function(a){return"string"==typeof a?b[a]:void b.config(a)};var F=function(){var a,b,e,f={},g=document.getElementsByTagName("script"),h=g[g.length-1];if(h){a=h.src.split("?"),b=a.shift(),e=a.join("?"),a=e.split(","),b.indexOf("steal.production")>-1&&(f.env="production"),a[0]&&(f.startId=a[0]),a[1]&&(f.env=a[1]),a=b.split("/");{a.pop()}f.stealPath=a.join("/"),d(h.attributes,function(a){var b=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);f[b]=a.value})}return f};return r.startup=function(c){if(a.document)var d=F();else var d={stealPath:__dirname};b.config(d),c&&b.config(c);return"production"==b.env?(o=b["import"](b.configMain),q=o.then(function(a){return b.main?b["import"](b.main):a})["catch"](function(a){})):"development"==b.env||"build"==b.env?(o=b["import"](b.configMain),p=o.then(function(){return c&&b.config(c),b["import"]("@dev")},function(a){return r.System["import"]("@dev")}),q=p.then(function(){if(!b.main||"build"===b.env)return o;var a=b.main;return"string"==typeof a&&(a=[a]),Promise.all(e(a,function(a){return b["import"](a)}))}).then(function(){r.dev&&r.dev.log("app loaded successfully")},function(a){})):void 0},r.done=function(){return q},r};if("undefined"!=typeof System&&b(System),"undefined"!=typeof window){var p=window.steal;window.steal=o(System),window.steal.startup(p&&"object"==typeof p&&p),window.steal.addSteal=b}else require("systemjs"),a.steal=o(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=o,module.exports=a.steal,a.steal.addSteal=b}("undefined"==typeof window?global:window);
}e=!e}}function i(a){return s[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}function j(a,b){if(!a.module){var c=a.module=i(a.name),d=a.module.exports,e=a.declare.call(b.global,function(a,b){c.locked=!0,d[a]=b;for(var e=0,f=c.importers.length;f>e;e++){var g=c.importers[e];if(!g.locked){var h=n.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,k=a.normalizedDeps[f],l=b.defined[k],m=s[k];m?h=m.exports:l&&!l.declarative?h={"default":l.module.exports,__useDefault:!0}:l?(j(l,b),m=l.module,h=m.exports):h=b.get(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function k(a,b){var c,d=b.defined[a];if(d)d.declarative?o(a,[],b):d.evaluated||l(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function l(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var e=0,f=a.normalizedDeps.length;f>e;e++){var g=a.normalizedDeps[e],h=b.defined[g];h&&l(h,b)}a.evaluated=!0;var i=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return k(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);i&&(d.exports=i)}}function o(a,b,c){var d=c.defined[a];if(!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==n.call(b,g)&&(c.defined[g]?o(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof n&&(n=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var p;a.__exec=c;var q,r;f(a);var s={},t=/System\.register/,u=a.fetch;a.fetch=function(a){var b=this;return f(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,u.call(b,a))};var v=a.translate;a.translate=function(a){return this.register=e,this.__exec=c,a.metadata.deps=a.metadata.deps||[],Promise.resolve(v.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(t))&&(a.metadata.format="register"),b})};var w=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var f=c.global.System=c.global.System||c,g=f.register;if(f.register=e,c.__exec(a),f.register=g,q&&(b=q),!b&&f.defined[a.name]&&(b=f.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:[],execute:function(){return c.newModule({})}};if(!b)return w.call(this,a);c.defined[a.name]=b,b.deps=d(b.deps),b.name=a.name;for(var i=[],j=0,k=b.deps.length;k>j;j++)i.push(Promise.resolve(c.normalize(b.deps[j],a.name)));return Promise.all(i).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){h(a.name,c),o(a.name,[],c),c.defined[a.name]=void 0;var d=c.newModule(b.declarative?b.module.exports:{"default":b.module.exports,__useDefault:!0});return d}}})}}function e(a){var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var d;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)d="file:"+process.cwd()+"/";else if("undefined"==typeof window)d=a.global.location.href;else if(d=document.baseURI,!d){var e=document.getElementsByTagName("base");d=e[0]&&e[0].href||window.location.href}var f,g=a.locate;a.locate=function(a){return this.baseURL!=f&&(f=b(d,this.baseURL),"/"!=f.substr(f.length-1,1)&&(f+="/"),this.baseURL=f),Promise.resolve(g.call(this,a))};var h=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/\$traceurRuntime/,j=a.translate;a.translate=function(a){var b=this;if("@traceur"==a.name||"@traceur-runtime"==a.name)return j.call(b,a);if(("es6"==a.metadata.format||!a.metadata.format&&a.source.match(h))&&(a.metadata.format="es6",!b.global.traceur))return b["import"]("@traceur").then(function(){return j.call(b,a)});if(!b.global.$traceurRuntime&&a.source.match(i)){var c=$__global.System;return b["import"]("@traceur-runtime").then(function(){return $__global.System=c,j.call(b,a)})}return j.call(b,a)};var k=a.instantiate;a.instantiate=function(a){var b=this;return"@traceur"==a.name||"@traceur-runtime"==a.name?(b.__exec(a),{deps:[],execute:function(){return b.newModule({})}}):k.call(b,a)}}function f(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){if(!a.has("@@global-helpers")){var c,d,e=a.global.hasOwnProperty,f={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,g){for(var h=0;h<g.length;h++){var i=f[g[h]];if(i)for(var j in i)a.global[j]=i[j]}c={},d=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB"];for(var k in a.global)if(-1==n.call(d,k)&&(!e||a.global.hasOwnProperty(k)))try{c[k]=a.global[k]}catch(l){d.push(k)}},retrieveGlobal:function(g,h,i){var j,k,l={};if(i){for(var m=[],o=0;o<deps.length;o++)m.push(require(deps[o]));j=i.apply(a.global,m)}else if(h){var p=h.split(".")[0];j=b(h,a.global),l[p]=a.global[p]}else for(var q in a.global)-1==n.call(d,q)&&(e&&!a.global.hasOwnProperty(q)||q==a.global||c[q]==a.global[q]||(l[q]=a.global[q],j?j!==a.global[q]&&(k=!0):void 0===j&&(j=a.global[q])));return f[g]=l,k?l:j}}))}}c(a);var d=a.instantiate;a.instantiate=function(a){var b=this;c(b);var e=a.metadata.exports;return a.metadata.format||(a.metadata.format="global"),"global"==a.metadata.format&&(a.metadata.execute=function(c,d,f){b.get("@@global-helpers").prepareGlobal(f.id,a.metadata.deps),e&&(a.source+='\nthis["'+e+'"] = '+e+";");var g=b.global.define;return b.global.define=void 0,b.global.module=void 0,b.global.exports=void 0,b.__exec(a),b.global.define=g,b.get("@@global-helpers").retrieveGlobal(f.id,e,a.metadata.init)}),d.call(b,a)}}function g(a){function b(a){d.lastIndex=0;var b=[];a.length/a.split("\n").length<200&&(a=a.replace(e,""));for(var c;c=d.exec(a);)b.push(c[1].substr(1,c[1].length-2));return b}var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.]|module\.)(exports\s*\[['"]|\exports\s*\.)|(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])module\.exports\s*\=/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):e.metadata.deps,e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),m._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:m._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),f.call(this,e)}}function h(a){function b(a,b){a=a.replace(k,"");var c=a.match(o),d=(c[1].split(",")[b]||"require").replace(p,""),e=q[d]||(q[d]=new RegExp(l+d+m,"g"));e.lastIndex=0;for(var f,g=[];f=e.exec(a);)g.push(f[2]||f[3]);return g}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,g){"string"!=typeof c&&(g=e,e=c,c=null),e instanceof Array||(g=e,e=["require","exports","module"]),"function"!=typeof g&&(g=function(a){return function(){return a}}(g)),void 0===e[e.length-1]&&e.pop();var h,i,j;if(-1!=(h=n.call(e,"require"))){e.splice(h,1);var k=g.toString();e=e.concat(b(k,h))}-1!=(i=n.call(e,"exports"))&&e.splice(i,1),-1!=(j=n.call(e,"module"))&&e.splice(j,1);var l={deps:e,execute:function(b,c,k){for(var l=[],m=0;m<e.length;m++)l.push(b(e[m]));k.uri=a.baseURL+k.id,k.config=function(){},-1!=j&&l.splice(j,0,k),-1!=i&&l.splice(i,0,c),-1!=h&&l.splice(h,0,d(k.id,b,a));var n=g.apply(f,l);return"undefined"==typeof n&&k&&(n=k.exports),"undefined"!=typeof n?n:void 0}};if(c)r=0!=e.length||r||s?null:l,s=!0,a.register(c,l.deps,!1,l.execute);else{if(r)throw new TypeError("Multiple defines for anonymous module");r=l}}var e=a.onScriptLoad;a.onScriptLoad=function(a){e(a),(r||s)&&(a.metadata.format="defined",a.metadata.registered=!0),r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)},c.amd={},a.amdDefine=c}function g(a){a.amdDefine||e(a),r=null,s=null;var b=a.global;t=b.module,u=b.exports,v=b.define,b.module=void 0,b.exports=void 0,b.define&&b.define===a.amdDefine||(b.define=a.amdDefine)}function h(a){var b=a.global;b.define=v,b.module=t,b.exports=u}var i="undefined"!=typeof module&&module.exports,j=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,k=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",m="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",o=/\(([^\)]*)\)/,p=/^\s+|\s+$/g,q={};a.amdRequire=c;var r,s,t,u,v;if(e(a),a.scriptLoader){var w=a.fetch;a.fetch=function(a){return g(this),w.call(this,a)}}var x=a.instantiate;a.instantiate=function(a){var b=this;if("amd"==a.metadata.format||!a.metadata.format&&a.source.match(j)){if(a.metadata.format="amd",b.execute!==!1&&(g(b),b.__exec(a),h(b),!r&&!s&&!i))throw new TypeError("AMD module "+a.name+" did not define");r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)}return x.call(b,a)}}function i(a){function b(a,b){return a.length<b.length?!1:a.substr(0,b.length)!=b?!1:a[b.length]&&"/"!=a[b.length]?!1:!0}function c(a){for(var b=1,c=0,d=a.length;d>c;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{};var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function j(a){"undefined"==typeof n&&(n=Array.prototype.indexOf);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.substr(0,a.length-3)})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function k(a){"undefined"==typeof n&&(n=Array.prototype.indexOf),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=n.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function l(a){a.depCache=a.depCache||{},loaderLocate=a.locate,a.locate=function(a){var b=this;b.depCache||(b.depCache={});var c=b.depCache[a.name];if(c)for(var d=0;d<c.length;d++)b.load(c[d]);return loaderLocate.call(b,a)}}$__global.upgradeSystemLoader=void 0;var m,n=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1};return function(){var a=$__global.System;m=$__global.System=new LoaderPolyfill(a),m.baseURL=a.baseURL,m.paths={"*":"*.js"},m.originalSystem=a}(),m.noConflict=function(){$__global.SystemJS=m,$__global.System=m.originalSystem},c(m),d(m),e(m),f(m),g(m),h(m),i(m),j(m),k(m),l(m),m.paths["@traceur"]||(m.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):m.baseURL+(m.baseURL.lastIndexOf("/")==m.baseURL.length-1?"":"/"))+"traceur.js"),m.paths["@traceur-runtime"]||(m.paths["@traceur-runtime"]=$__curScript&&$__curScript.getAttribute("data-traceur-runtime-src")||m.paths["@traceur"].replace(/\.js$/,"-runtime.js")),m};var $__curScript,__eval;!function(){var doEval;__eval=function(a,b,c){a+="\n//# sourceURL="+b+(c?"\n//# sourceMappingURL="+c:"");try{doEval(a)}catch(d){var e="Error evaluating "+b+"\n";throw d instanceof Error?d.message=e+d.message:d=e+d,d}};var __upgradeSystemLoader=$__global.upgradeSystemLoader;$__global.upgradeSystemLoader=function(){var a=$__global.System;__upgradeSystemLoader.call($__global),$__global.System.clone=function(){var b=$__global.System;$__global.System=a;var c=__upgradeSystemLoader.call($__global);return $__global.System=b,c}};var isWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window;if(isBrowser){var head,scripts=document.getElementsByTagName("script");if($__curScript=scripts[scripts.length-1],doEval=function(a){head||(head=document.head||document.body||document.documentElement);var b=document.createElement("script");b.text=a;var c,d=window.onerror;if(window.onerror=function(a){c=a},head.appendChild(b),head.removeChild(b),window.onerror=d,c)throw c},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var curPath=$__curScript.src,basePath=curPath.substr(0,curPath.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+basePath+'es6-module-loader.js" data-init="upgradeSystemLoader"></script>')}}else if(isWorker)if(doEval=function(source){try{eval(source)}catch(e){throw e}},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var basePath="";try{throw new TypeError("Unable to get Worker base path.")}catch(err){var idx=err.stack.indexOf("at ")+3,withSystem=err.stack.substr(idx,err.stack.substr(idx).indexOf("\n"));basePath=withSystem.substr(0,withSystem.lastIndexOf("/")+1)}importScripts(basePath+"es6-module-loader.js")}else{var es6ModuleLoader=require("es6-module-loader");$__global.System=es6ModuleLoader.System,$__global.Loader=es6ModuleLoader.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var vm=require("vm");doEval=function(a){vm.runInThisContext(a)}}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){function b(a){function b(a){function b(){for(var b,d=[],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?d.push(n(arguments[e])):b=arguments[e];"function"!=typeof b&&(b=function(a){return function(){return a}}(b)),c={deps:d,execute:function(c){for(var e=[],f=0;f<d.length;f++)e.push(c(d[f]));var g=b.apply(a.global,e);return"undefined"!=typeof g?g:void 0}}}c=null,a.global.module=void 0,a.global.exports=void 0,a.global.steal=b}var c,d=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,e=a.instantiate;return a.instantiate=function(a){var f=this;if("steal"===a.metadata.format||!a.metadata.format&&a.source.match(d)){a.metadata.format="steal";var g=f.global.steal;if(b(f),f.__exec(a),f.global.steal=g,!c)throw"Steal module "+a.name+" did not call steal";c&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(c.deps):c.deps,a.metadata.execute=c.execute)}return e.call(f,a)},a}var c=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},d=function(a,b){var c,d;if("number"==typeof a.length&&a.length-1 in a)for(c=0,d=a.length;d>c;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a){var b=a.lastIndexOf("/"),c=(-1==b?a:a.substr(b+1)).match(/^[\w-\s\.!]+/);return c?c[0]:""},m=function(a){var b=l(a),c=b.lastIndexOf(".");return-1!==c?b.substr(c+1):""},n=function(a){var b=a.lastIndexOf("!"),c="";if(-1!=b){var d=a.substr(0,b),e=a.substr(b+1);c="!"+e,a=d}var f=l(a),g=m(a);return"/"===a[a.length-1]?a+l(a.substr(0,a.length-1))+c:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(a)||-1!==f.indexOf(".")?"js"===g?a.substr(0,a.lastIndexOf("."))+c:a+c:a+"/"+f+c},o=function(b){function m(a){var b=/^[\s\n\r]*[\{\[]/,c=a.instantiate;return a.instantiate=function(a){var d,e=this;if(("json"===a.metadata.format||!a.metadata.format)&&b.test(a.source)){try{d=JSON.parse(a.source)}catch(f){}d&&(a.metadata.format="json",a.metadata.execute=function(){return d})}return c.call(e,a)},a}b.set("@loader",b.newModule({"default":b,__useDefault:!0}));var o,p,q,r=function(){var a=arguments,c=function(){var b,c=[];d(a,function(a){f(a)?c.push(r.System["import"](n(a))):"function"==typeof a&&(b=a)});var e=Promise.all(c);return b?e.then(function(a){return b&&b.apply(null,a)}):e};return"production"===b.env?c():o.then(c,c)};r.System=b,r.parseURI=j,r.joinURIs=k,r.normalize=n;var s=function(a){a.ext={};var b=a.normalize,c=/\.(\w+)!$/;a.normalize=function(d,e,f){var g,h=d.match(c),i=d;return h&&a.ext[g=h[1]]&&(i=d+a.ext[g]),b.call(this,i,e,f)}};s(b);var t=function(a){var b=a.normalize;a.normalize=function(a,c,d){var e,f,g=a.length-1;return"/"===a[g]&&(e=a.substring(0,g).lastIndexOf("/"),f=a.substring(e+1,g),a+=f),b.call(this,a,c,d)}};t(b),"undefined"!=typeof b&&m(b);var u=function(a,b){var c=a.config;a.config=function(e){var f=g({},e);d(b,function(b,c){if(b.set&&f[c]){var d=b.set.call(a,f[c],e);void 0!==d&&(a[c]=d),delete f[c]}}),c.call(this,f)}},v=function(a,b,c){a[b]||(a[b]=c)};b.configMain="@config",b.paths[b.configMain]="stealconfig.js",b.env="development",b.ext={css:"$css",less:"$less"},b.logLevel=0;var w="bundles/*.css",x="bundles/*";v(b.paths,w,"dist/bundles/*css"),v(b.paths,x,"dist/bundles/*.js");var y={set:function(a){var c=l(a),d=h(a);b.configMain=c,b.paths[c]=c,C.call(this),this.baseURL=(d===a?".":d)+"/"}},z={set:function(a){this.main=a,C.call(this)}},A=function(a){return{set:function(b){this[a]="object"==typeof b&&"object"==typeof r.System[a]?g(this[a]||{},b||{}):b}}},B=function(a){var b=a.lastIndexOf("!");return-1!==b?a.substr(b+1):void 0},C=function(){if("production"===this.env&&this.main){var a=this.main,c=this.bundlesName||"bundles/",d=c+l(a);v(this.meta,d,{format:"amd"});var e=B(b.configMain),f=[a,b.configMain];e&&b.set(e,b.newModule({})),this.bundles[d]=f}},D="undefined"!=typeof module&&module.exports,E="less-1.7.0";u(b,{env:{set:function(a){b.env=a,C.call(this)}},baseUrl:A("baseURL"),root:A("baseURL"),config:y,configPath:y,startId:{set:function(a){z.set.call(this,n(a))}},main:z,stealPath:{set:function(a,c){var d=a.split("/");v(this.paths,"@dev",a+"/ext/dev.js"),v(this.paths,"$css",a+"/ext/css.js"),v(this.paths,"$less",a+"/ext/less.js"),v(this.paths,"npm",a+"/ext/npm.js"),v(this.paths,"npm-extension",a+"/ext/npm-extension.js"),v(this.paths,"npm-utils",a+"/ext/npm-utils.js"),v(this.paths,"npm-crawl",a+"/ext/npm-crawl.js"),v(this.paths,"semver",a+"/ext/semver.js"),v(this.paths,"bower",a+"/ext/bower.js"),this.paths["@traceur"]=a+"/ext/traceur.js",this.paths["@traceur-runtime"]=a+"/ext/traceur-runtime.js",D?b.register("less",[],!1,function(){var a=require;return a("less")}):(v(this.paths,"less",a+"/ext/"+E+".js"),c.root||c.baseUrl||c.baseURL||c.config||c.configPath||("steal"===i(d)&&(d.pop(),"bower_components"===i(d)&&(b.configMain="bower.json!bower",C.call(this),d.pop()),"node_modules"===i(d)&&(b.configMain="package.json!npm",C.call(this),d.pop())),this.baseURL=d.join("/")+"/"))}},bundle:{set:function(a){b.bundle=a}},bundlesPath:{set:function(a){return this.paths[w]=a+"/*css",this.paths[x]=a+"/*.js",a}},instantiated:{set:function(a){var b=this;d(a||{},function(a,c){b.set(c,b.newModule(a))})}}}),r.config=function(a){return"string"==typeof a?b[a]:void b.config(a)};var F=function(){var a,b,e,f={},g=document.getElementsByTagName("script"),h=g[g.length-1];if(h){a=h.src.split("?"),b=a.shift(),e=a.join("?"),a=e.split(","),b.indexOf("steal.production")>-1&&(f.env="production"),a[0]&&(f.startId=a[0]),a[1]&&(f.env=a[1]),a=b.split("/");{a.pop()}f.stealPath=a.join("/"),d(h.attributes,function(a){var b=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);f[b]=""===a.value?!0:a.value})}return f};return r.startup=function(c){if(a.document)var d=F();else var d={stealPath:__dirname};b.config(d),c&&b.config(c);return"production"==b.env?(o=b["import"](b.configMain),q=o.then(function(a){return b.main?b["import"](b.main):a})["catch"](function(a){})):"development"==b.env||"build"==b.env?(o=b["import"](b.configMain),p=o.then(function(){return c&&b.config(c),b["import"]("@dev")},function(a){return r.System["import"]("@dev")}),q=p.then(function(){if(!b.main||"build"===b.env)return o;var a=b.main;return"string"==typeof a&&(a=[a]),Promise.all(e(a,function(a){return b["import"](a)}))}).then(function(){r.dev&&r.dev.log("app loaded successfully")},function(a){})):void 0},r.done=function(){return q},r};if("undefined"!=typeof System&&b(System),"undefined"!=typeof window){var p=window.steal;window.steal=o(System),window.steal.startup(p&&"object"==typeof p&&p),window.steal.addSteal=b}else require("systemjs"),a.steal=o(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=o,module.exports=a.steal,a.steal.addSteal=b}("undefined"==typeof window?global:window);
/*
* steal v0.5.0-pre.2
* steal v0.6.0-pre.0
*

@@ -7,2 +7,2 @@ * Copyright (c) 2015 Bitovi; Licensed MIT

!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.Promise=a():"undefined"!=typeof global?global.Promise=a():"undefined"!=typeof self&&(self.Promise=a())}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,b,a,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){var c=a("../lib/decorators/unhandledRejection"),d=c(a("../lib/Promise"));b.exports="undefined"!=typeof global?global.Promise=d:"undefined"!=typeof self?self.Promise=d:d},{"../lib/Promise":2,"../lib/decorators/unhandledRejection":4}],2:[function(b,c){!function(a){"use strict";a(function(a){var b=a("./makePromise"),c=a("./Scheduler"),d=a("./env").asap;return b({scheduler:new c(d)})})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"./Scheduler":3,"./env":5,"./makePromise":7}],3:[function(b,c){!function(a){"use strict";a(function(){function a(a){this._async=a,this._running=!1,this._queue=new Array(65536),this._queueLen=0,this._afterQueue=new Array(16),this._afterQueueLen=0;var b=this;this.drain=function(){b._drain()}}return a.prototype.enqueue=function(a){this._queue[this._queueLen++]=a,this.run()},a.prototype.afterQueue=function(a){this._afterQueue[this._afterQueueLen++]=a,this.run()},a.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},a.prototype._drain=function(){for(var a=0;a<this._queueLen;++a)this._queue[a].run(),this._queue[a]=void 0;for(this._queueLen=0,this._running=!1,a=0;a<this._afterQueueLen;++a)this._afterQueue[a].run(),this._afterQueue[a]=void 0;this._afterQueueLen=0},a})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],4:[function(b,c){!function(a){"use strict";a(function(a){function b(a){throw a}function c(){}var d=a("../env").setTimer,e=a("../format");return function(a){function f(a){a.handled||(n.push(a),k("Potentially unhandled rejection ["+a.id+"] "+e.formatError(a.value)))}function g(a){var b=n.indexOf(a);b>=0&&(n.splice(b,1),l("Handled previous rejection ["+a.id+"] "+e.formatObject(a.value)))}function h(a,b){m.push(a,b),null===o&&(o=d(i,0))}function i(){for(o=null;m.length>0;)m.shift()(m.shift())}var j,k=c,l=c;"undefined"!=typeof console&&(j=console,k="undefined"!=typeof j.error?function(a){j.error(a)}:function(a){j.log(a)},l="undefined"!=typeof j.info?function(a){j.info(a)}:function(a){j.log(a)}),a.onPotentiallyUnhandledRejection=function(a){h(f,a)},a.onPotentiallyUnhandledRejectionHandled=function(a){h(g,a)},a.onFatalRejection=function(a){h(b,a.value)};var m=[],n=[],o=null;return a}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{"../env":5,"../format":6}],5:[function(b,c){!function(a){"use strict";a(function(a){function b(){return"undefined"!=typeof process&&null!==process&&"function"==typeof process.nextTick}function c(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function d(a){function b(){var a=c;c=void 0,a()}var c,d=document.createTextNode(""),e=new a(b);e.observe(d,{characterData:!0});var f=0;return function(a){c=a,d.data=f^=1}}var e,f="undefined"!=typeof setTimeout&&setTimeout,g=function(a,b){return setTimeout(a,b)},h=function(a){return clearTimeout(a)},i=function(a){return f(a,0)};if(b())i=function(a){return process.nextTick(a)};else if(e=c())i=d(e);else if(!f){var j=a,k=j("vertx");g=function(a,b){return k.setTimer(b,a)},h=k.cancelTimer,i=k.runOnLoop||k.runOnContext}return{setTimer:g,clearTimer:h,asap:i}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a(b)})},{}],6:[function(b,c){!function(a){"use strict";a(function(){function a(a){var c="object"==typeof a&&null!==a&&a.stack?a.stack:b(a);return a instanceof Error?c:c+" (WARNING: non-Error used)"}function b(a){var b=String(a);return"[object Object]"===b&&"undefined"!=typeof JSON&&(b=c(a,b)),b}function c(a,b){try{return JSON.stringify(a)}catch(c){return b}}return{formatError:a,formatObject:b,tryStringify:c}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}],7:[function(b,c){!function(a){"use strict";a(function(){return function(a){function b(a,b){this._handler=a===t?b:c(a)}function c(a){function b(a){e.resolve(a)}function c(a){e.reject(a)}function d(a){e.notify(a)}var e=new v;try{a(b,c,d)}catch(f){c(f)}return e}function d(a){return I(a)?a:new b(t,new w(q(a)))}function e(a){return new b(t,new w(new z(a)))}function f(){return Z}function g(){return new b(t,new v)}function h(a,b){var c=new v(a.receiver,a.join().context);return new b(t,c)}function i(a){return k(S,null,a)}function j(a,b){return k(N,a,b)}function k(a,c,d){function e(b,e,g){g.resolved||l(d,f,b,a(c,e,b),g)}function f(a,b,c){k[a]=b,0===--j&&c.become(new y(k))}for(var g,h="function"==typeof c?e:f,i=new v,j=d.length>>>0,k=new Array(j),m=0;m<d.length&&!i.resolved;++m)g=d[m],void 0!==g||m in d?l(d,h,m,g,i):--j;return 0===j&&i.become(new y(k)),new b(t,i)}function l(a,b,c,d,e){if(J(d)){var f=r(d),g=f.state();0===g?f.fold(b,c,void 0,e):g>0?b(c,f.value,e):(e.become(f),m(a,c+1,f))}else b(c,d,e)}function m(a,b,c){for(var d=b;d<a.length;++d)n(q(a[d]),c)}function n(a,b){if(a!==b){var c=a.state();0===c?a.visit(a,void 0,a._unreport):0>c&&a._unreport()}}function o(a){return"object"!=typeof a||null===a?e(new TypeError("non-iterable passed to race()")):0===a.length?f():1===a.length?d(a[0]):p(a)}function p(a){var c,d,e,f=new v;for(c=0;c<a.length;++c)if(d=a[c],void 0!==d||c in a){if(e=q(d),0!==e.state()){f.become(e),m(a,c+1,e);break}e.visit(f,f.resolve,f.reject)}return new b(t,f)}function q(a){return I(a)?a._handler.join():J(a)?s(a):new y(a)}function r(a){return I(a)?a._handler.join():s(a)}function s(a){try{var b=a.then;return"function"==typeof b?new x(b,a):new y(a)}catch(c){return new z(c)}}function t(){}function u(){}function v(a,c){b.createContext(this,c),this.consumers=void 0,this.receiver=a,this.handler=void 0,this.resolved=!1}function w(a){this.handler=a}function x(a,b){v.call(this),U.enqueue(new F(a,b,this))}function y(a){b.createContext(this),this.value=a}function z(a){b.createContext(this),this.id=++X,this.value=a,this.handled=!1,this.reported=!1,this._report()}function A(a,b){this.rejection=a,this.context=b}function B(a){this.rejection=a}function C(){return new z(new TypeError("Promise cycle"))}function D(a,b){this.continuation=a,this.handler=b}function E(a,b){this.handler=b,this.value=a}function F(a,b,c){this._then=a,this.thenable=b,this.resolver=c}function G(a,b,c,d,e){try{a.call(b,c,d,e)}catch(f){d(f)}}function H(a,b,c,d){this.f=a,this.z=b,this.c=c,this.to=d,this.resolver=W,this.receiver=this}function I(a){return a instanceof b}function J(a){return("object"==typeof a||"function"==typeof a)&&null!==a}function K(a,c,d,e){return"function"!=typeof a?e.become(c):(b.enterContext(c),O(a,c.value,d,e),void b.exitContext())}function L(a,c,d,e,f){return"function"!=typeof a?f.become(d):(b.enterContext(d),P(a,c,d.value,e,f),void b.exitContext())}function M(a,c,d,e,f){return"function"!=typeof a?f.notify(c):(b.enterContext(d),Q(a,c,e,f),void b.exitContext())}function N(a,b,c){try{return a(b,c)}catch(d){return e(d)}}function O(a,b,c,d){try{d.become(q(a.call(c,b)))}catch(e){d.become(new z(e))}}function P(a,b,c,d,e){try{a.call(d,b,c,e)}catch(f){e.become(new z(f))}}function Q(a,b,c,d){try{d.notify(a.call(c,b))}catch(e){d.notify(e)}}function R(a,b){b.prototype=V(a.prototype),b.prototype.constructor=b}function S(a,b){return b}function T(){}var U=a.scheduler,V=Object.create||function(a){function b(){}return b.prototype=a,new b};b.resolve=d,b.reject=e,b.never=f,b._defer=g,b._handler=q,b.prototype.then=function(a,b,c){var d=this._handler,e=d.join().state();if("function"!=typeof a&&e>0||"function"!=typeof b&&0>e)return new this.constructor(t,d);var f=this._beget(),g=f._handler;return d.chain(g,d.receiver,a,b,c),f},b.prototype["catch"]=function(a){return this.then(void 0,a)},b.prototype._beget=function(){return h(this._handler,this.constructor)},b.all=i,b.race=o,b._traverse=j,b._visitRemaining=m,t.prototype.when=t.prototype.become=t.prototype.notify=t.prototype.fail=t.prototype._unreport=t.prototype._report=T,t.prototype._state=0,t.prototype.state=function(){return this._state},t.prototype.join=function(){for(var a=this;void 0!==a.handler;)a=a.handler;return a},t.prototype.chain=function(a,b,c,d,e){this.when({resolver:a,receiver:b,fulfilled:c,rejected:d,progress:e})},t.prototype.visit=function(a,b,c,d){this.chain(W,a,b,c,d)},t.prototype.fold=function(a,b,c,d){this.when(new H(a,b,c,d))},R(t,u),u.prototype.become=function(a){a.fail()};var W=new u;R(t,v),v.prototype._state=0,v.prototype.resolve=function(a){this.become(q(a))},v.prototype.reject=function(a){this.resolved||this.become(new z(a))},v.prototype.join=function(){if(!this.resolved)return this;for(var a=this;void 0!==a.handler;)if(a=a.handler,a===this)return this.handler=C();return a},v.prototype.run=function(){var a=this.consumers,b=this.join();this.consumers=void 0;for(var c=0;c<a.length;++c)b.when(a[c])},v.prototype.become=function(a){this.resolved||(this.resolved=!0,this.handler=a,void 0!==this.consumers&&U.enqueue(this),void 0!==this.context&&a._report(this.context))},v.prototype.when=function(a){this.resolved?U.enqueue(new D(a,this.handler)):void 0===this.consumers?this.consumers=[a]:this.consumers.push(a)},v.prototype.notify=function(a){this.resolved||U.enqueue(new E(a,this))},v.prototype.fail=function(a){var b="undefined"==typeof a?this.context:a;this.resolved&&this.handler.join().fail(b)},v.prototype._report=function(a){this.resolved&&this.handler.join()._report(a)},v.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},R(t,w),w.prototype.when=function(a){U.enqueue(new D(a,this))},w.prototype._report=function(a){this.join()._report(a)},w.prototype._unreport=function(){this.join()._unreport()},R(v,x),R(t,y),y.prototype._state=1,y.prototype.fold=function(a,b,c,d){L(a,b,this,c,d)},y.prototype.when=function(a){K(a.fulfilled,this,a.receiver,a.resolver)};var X=0;R(t,z),z.prototype._state=-1,z.prototype.fold=function(a,b,c,d){d.become(this)},z.prototype.when=function(a){"function"==typeof a.rejected&&this._unreport(),K(a.rejected,this,a.receiver,a.resolver)},z.prototype._report=function(a){U.afterQueue(new A(this,a))},z.prototype._unreport=function(){this.handled||(this.handled=!0,U.afterQueue(new B(this)))},z.prototype.fail=function(a){b.onFatalRejection(this,void 0===a?this.context:a)},A.prototype.run=function(){this.rejection.handled||(this.rejection.reported=!0,b.onPotentiallyUnhandledRejection(this.rejection,this.context))},B.prototype.run=function(){this.rejection.reported&&b.onPotentiallyUnhandledRejectionHandled(this.rejection)},b.createContext=b.enterContext=b.exitContext=b.onPotentiallyUnhandledRejection=b.onPotentiallyUnhandledRejectionHandled=b.onFatalRejection=T;var Y=new t,Z=new b(t,Y);return D.prototype.run=function(){this.handler.join().when(this.continuation)},E.prototype.run=function(){var a=this.handler.consumers;if(void 0!==a)for(var b,c=0;c<a.length;++c)b=a[c],M(b.progress,this.value,this.handler,b.receiver,b.resolver)},F.prototype.run=function(){function a(a){d.resolve(a)}function b(a){d.reject(a)}function c(a){d.notify(a)}var d=this.resolver;G(this._then,this.thenable,a,b,c)},H.prototype.fulfilled=function(a){this.f.call(this.c,this.z,a,this.to)},H.prototype.rejected=function(a){this.to.reject(a)},H.prototype.progress=function(a){this.to.notify(a)},b}})}("function"==typeof a&&a.amd?a:function(a){c.exports=a()})},{}]},{},[1])(1)}),function(__global){function __eval(__source,__global,load){var __curRegister=System.register;System.register=function(a,b,c){"string"!=typeof a&&(c=b,b=a),load.declare=c,load.depsList=b};try{eval('(function() { var __moduleName = "'+(load.name||"").replace('"','"')+'"; '+__source+" \n }).call(__global);")}catch(e){throw("SyntaxError"==e.name||"TypeError"==e.name)&&(e.message="Evaluating "+(load.name||load.address)+"\n "+e.message),e}System.register=__curRegister}$__Object$getPrototypeOf=Object.getPrototypeOf||function(a){return a.__proto__};var $__Object$defineProperty;!function(){try{Object.defineProperty({},"a",{})&&($__Object$defineProperty=Object.defineProperty)}catch(a){$__Object$defineProperty=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}(),$__Object$create=Object.create||function(a,b){function c(){}if(c.prototype=a,"object"==typeof b)for(prop in b)b.hasOwnProperty(prop)&&(c[prop]=b[prop]);return new c},function(){function a(a){return{status:"loading",name:a,linkSets:[],dependencies:[],metadata:{}}}function b(a,b,c){return new A(g({step:c.address?"fetch":"locate",loader:a,moduleName:b,moduleMetadata:c&&c.metadata||{},moduleSource:c.source,moduleAddress:c.address}))}function c(b,c,e,f){return new A(function(a){a(b.loaderObj.normalize(c,e,f))}).then(function(c){var e;if(b.modules[c])return e=a(c),e.status="linked",e.module=b.modules[c],e;for(var f=0,g=b.loads.length;g>f;f++)if(e=b.loads[f],e.name==c)return e;return e=a(c),b.loads.push(e),d(b,e),e})}function d(a,b){e(a,b,A.resolve().then(function(){return a.loaderObj.locate({name:b.name,metadata:b.metadata})}))}function e(a,b,c){f(a,b,c.then(function(c){return"loading"==b.status?(b.address=c,a.loaderObj.fetch({name:b.name,metadata:b.metadata,address:c})):void 0}))}function f(a,b,d){d.then(function(c){return"loading"==b.status?a.loaderObj.translate({name:b.name,metadata:b.metadata,address:b.address,source:c}):void 0}).then(function(c){return"loading"==b.status?(b.source=c,a.loaderObj.instantiate({name:b.name,metadata:b.metadata,address:b.address,source:c})):void 0}).then(function(d){if("loading"==b.status){if(void 0===d)b.address=b.address||"<Anonymous Module "+ ++D+">",b.isDeclarative=!0,a.loaderObj.parse(b);else{if("object"!=typeof d)throw TypeError("Invalid instantiate return value");b.depsList=d.deps||[],b.execute=d.execute,b.isDeclarative=!1}b.dependencies=[];for(var e=b.depsList,f=[],g=0,h=e.length;h>g;g++)(function(d,e){f.push(c(a,d,b.name,b.address).then(function(a){if(b.dependencies[e]={key:d,value:a.name},"linked"!=a.status)for(var c=b.linkSets.concat([]),f=0,g=c.length;g>f;f++)i(c[f],a)}))})(e[g],g);return A.all(f)}}).then(function(){b.status="loaded";for(var a=b.linkSets.concat([]),c=0,d=a.length;d>c;c++)k(a[c],b)})["catch"](function(a){b.status="failed",b.exception=a;for(var c=b.linkSets.concat([]),d=0,e=c.length;e>d;d++)l(c[d],b,a)})}function g(b){return function(c){var g=b.loader,i=b.moduleName,j=b.step;if(g.modules[i])throw new TypeError('"'+i+'" already exists in the module table');for(var k,l=0,m=g.loads.length;m>l;l++)if(g.loads[l].name==i)return k=g.loads[l],k.linkSets[0].done.then(function(){c(k)});var n=a(i);n.metadata=b.moduleMetadata;var o=h(g,n);g.loads.push(n),c(o.done),"locate"==j?d(g,n):"fetch"==j?e(g,n,A.resolve(b.moduleAddress)):(n.address=b.moduleAddress,f(g,n,A.resolve(b.moduleSource)))}}function h(a,b){var c={loader:a,loads:[],startingLoad:b,loadingCount:0};return c.done=new A(function(a,b){c.resolve=a,c.reject=b}),i(c,b),c}function i(a,b){for(var c=0,d=a.loads.length;d>c;c++)if(a.loads[c]==b)return;a.loads.push(b),b.linkSets.push(a),"loaded"!=b.status&&a.loadingCount++;for(var e=a.loader,c=0,d=b.dependencies.length;d>c;c++){var f=b.dependencies[c].value;if(!e.modules[f])for(var g=0,h=e.loads.length;h>g;g++)if(e.loads[g].name==f){i(a,e.loads[g]);break}}}function j(a){var b=!1;try{p(a,function(c,d){l(a,c,d),b=!0})}catch(c){l(a,null,c),b=!0}return b}function k(a,b){if(a.loadingCount--,!(a.loadingCount>0)){var c=a.startingLoad;if(a.loader.loaderObj.execute===!1){for(var d=[].concat(a.loads),e=0,f=d.length;f>e;e++){var b=d[e];b.module=b.isDeclarative?{name:b.name,module:E({}),evaluated:!0}:{module:E({})},b.status="linked",m(a.loader,b)}return a.resolve(c)}var g=j(a);g||a.resolve(c)}}function l(a,b,c){var d=a.loader;a.loads[0].name!=b.name&&(c=w(c,'Error loading "'+b.name+'" from "'+a.loads[0].name+'" at '+(a.loads[0].address||"<unknown>")+"\n")),c=w(c,'Error loading "'+b.name+'" at '+(b.address||"<unknown>")+"\n");for(var e=a.loads.concat([]),f=0,g=e.length;g>f;f++){var b=e[f];d.loaderObj.failed=d.loaderObj.failed||[],-1==B.call(d.loaderObj.failed,b)&&d.loaderObj.failed.push(b);var h=B.call(b.linkSets,a);if(b.linkSets.splice(h,1),0==b.linkSets.length){var i=B.call(a.loader.loads,b);-1!=i&&a.loader.loads.splice(i,1)}}a.reject(c)}function m(a,b){if(a.loaderObj.trace){a.loaderObj.loads||(a.loaderObj.loads={});var c={};b.dependencies.forEach(function(a){c[a.key]=a.value}),a.loaderObj.loads[b.name]={name:b.name,deps:b.dependencies.map(function(a){return a.key}),depMap:c,address:b.address,metadata:b.metadata,source:b.source,kind:b.isDeclarative?"declarative":"dynamic"}}b.name&&(a.modules[b.name]=b.module);var d=B.call(a.loads,b);-1!=d&&a.loads.splice(d,1);for(var e=0,f=b.linkSets.length;f>e;e++)d=B.call(b.linkSets[e].loads,b),-1!=d&&b.linkSets[e].loads.splice(d,1);b.linkSets.splice(0,b.linkSets.length)}function n(a,b,c,d){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==B.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var e=0,f=b.length;f>e;e++)for(var g=b[e],h=0;h<a.dependencies.length;h++)if(g.name==a.dependencies[h].value){var i=a.groupIndex+(g.isDeclarative!=a.isDeclarative);if(void 0===g.groupIndex||g.groupIndex<i){if(g.groupIndex&&(c[g.groupIndex].splice(B.call(c[g.groupIndex],g),1),0==c[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=i}n(g,b,c,d)}}}function o(a,b,c){try{var d=b.execute()}catch(e){return void c(b,e)}return d&&d instanceof y?d:void c(b,new TypeError("Execution must define a Module instance"))}function p(a,b){var c=a.loader;if(a.loads.length){var d=[],e=a.loads[0];e.groupIndex=0,n(e,a.loads,d,c);for(var f=e.isDeclarative==d.length%2,g=d.length-1;g>=0;g--){for(var h=d[g],i=0;i<h.length;i++){var j=h[i];if(f)r(j,a.loads,c);else{var k=o(a,j,b);if(!k)return;j.module={name:j.name,module:k},j.status="linked"}m(c,j)}f=!f}}}function q(a,b){var c=b.moduleRecords;return c[a]||(c[a]={name:a,dependencies:[],module:new y,importers:[]})}function r(a,b,c){if(!a.module){var d=a.module=q(a.name,c),e=a.module.module,f=a.declare.call(__global,function(a,b){d.locked=!0,e[a]=b;for(var c=0,f=d.importers.length;f>c;c++){var g=d.importers[c];if(!g.locked){var h=B.call(g.dependencies,d);g.setters[h](e)}}return d.locked=!1,b});d.setters=f.setters,d.execute=f.execute;for(var g=0,h=a.dependencies.length;h>g;g++){var i=a.dependencies[g].value,j=c.modules[i];if(!j)for(var k=0;k<b.length;k++)b[k].name==i&&(b[k].module?j=q(i,c):(r(b[k],b,c),j=b[k].module));j.importers?(d.dependencies.push(j),j.importers.push(d)):d.dependencies.push(null),d.setters[g]&&d.setters[g](j.module)}a.status="linked"}}function s(a,b){return u(b.module,[],a),b.module.module}function t(a){try{a.execute.call(__global)}catch(b){return b}}function u(a,b,c){var d=v(a,b,c);if(d)throw d}function v(a,b,c){if(!a.evaluated&&a.dependencies){b.push(a);for(var d,e=a.dependencies,f=0,g=e.length;g>f;f++){var h=e[f];if(h&&-1==B.call(b,h)&&(d=v(h,b,c)))return d=w(d,"Error evaluating "+h.name+"\n")}if(a.failed)return new Error("Module failed execution.");if(!a.evaluated)return a.evaluated=!0,d=t(a),d?a.failed=!0:Object.preventExtensions&&Object.preventExtensions(a.module),a.execute=void 0,d}}function w(a,b){return a instanceof Error?a.message=b+a.message:a=b+a,a}function x(a){if("object"!=typeof a)throw new TypeError("Options must be an object");a.normalize&&(this.normalize=a.normalize),a.locate&&(this.locate=a.locate),a.fetch&&(this.fetch=a.fetch),a.translate&&(this.translate=a.translate),a.instantiate&&(this.instantiate=a.instantiate),this._loader={loaderObj:this,loads:[],modules:{},importPromises:{},moduleRecords:{}},C(this,"global",{get:function(){return __global}}),this.traceurOptions={}}function y(){}function z(a,b,c){var d=a._loader.importPromises;return d[b]=c.then(function(a){return d[b]=void 0,a},function(a){throw d[b]=void 0,a})}var A=__global.Promise||require("when/es6-shim/Promise");__global.console&&(console.assert=console.assert||function(){});var B=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},C=$__Object$defineProperty,D=0;x.prototype={constructor:x,define:function(a,b,c){if(this._loader.importPromises[a])throw new TypeError("Module is already loading.");return z(this,a,new A(g({step:"translate",loader:this._loader,moduleName:a,moduleMetadata:c&&c.metadata||{},moduleSource:b,moduleAddress:c&&c.address})))},"delete":function(a){return this._loader.modules[a]?delete this._loader.modules[a]:!1},get:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this),this._loader.modules[a].module):void 0},has:function(a){return!!this._loader.modules[a]},"import":function(a,c){var d=this;return A.resolve(d.normalize(a,c&&c.name,c&&c.address)).then(function(a){var e=d._loader;return e.modules[a]?(u(e.modules[a],[],e._loader),e.modules[a].module):e.importPromises[a]||z(d,a,b(e,a,c||{}).then(function(b){return delete e.importPromises[a],s(e,b)}))})},load:function(a){return this._loader.modules[a]?(u(this._loader.modules[a],[],this._loader),A.resolve(this._loader.modules[a].module)):this._loader.importPromises[a]||z(this,a,b(this._loader,a,{}))},module:function(b,c){var d=a();d.address=c&&c.address;var e=h(this._loader,d),g=A.resolve(b),i=this._loader,j=e.done.then(function(){return s(i,d)});return f(i,d,g),j},newModule:function(a){if("object"!=typeof a)throw new TypeError("Expected object");var b=new y;for(var c in a)!function(c){C(b,c,{configurable:!1,enumerable:!0,get:function(){return a[c]}})}(c);return Object.preventExtensions&&Object.preventExtensions(b),b},set:function(a,b){if(!(b instanceof y))throw new TypeError("Loader.set("+a+", module) must be a module");this._loader.modules[a]={module:b}},normalize:function(a){return a},locate:function(a){return a.name},fetch:function(){throw new TypeError("Fetch not implemented")},translate:function(a){return a.source},parse:function(){throw new TypeError("Loader.parse is not implemented")},instantiate:function(){}};var E=x.prototype.newModule;!function(){function a(a,b,c){try{return b.compile(a,c)}catch(d){throw d[0]}}var b;x.prototype.parse=function(c){if(!b)if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)b=require("traceur");else{if(!__global.traceur)throw new TypeError("Include Traceur for module syntax support");b=__global.traceur}c.isDeclarative=!0;var d=this.traceurOptions||{};d.modules="instantiate",d.script=!1,d.sourceMaps="inline",d.filename=c.address;var e=new b.Compiler(d),f=a(c.source,e,d.filename);if(!f)throw new Error("Error evaluating module "+c.address);var g=e.getSourceMap();__global.btoa&&g&&(f+="!eval"),f='var __moduleAddress = "'+c.address+'";'+f,__eval(f,__global,c)}}(),"object"==typeof exports&&(module.exports=x),__global.Reflect=__global.Reflect||{},__global.Reflect.Loader=__global.Reflect.Loader||x,__global.Reflect.global=__global.Reflect.global||__global,__global.LoaderPolyfill=x}(),function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}function c(c,d){return d=a(d||""),c=a(c||""),d&&c?(d.protocol||c.protocol)+(d.protocol||d.authority?d.authority:c.authority)+b(d.protocol||d.authority||"/"===d.pathname.charAt(0)?d.pathname:d.pathname?(c.authority&&!c.pathname?"/":"")+c.pathname.slice(0,c.pathname.lastIndexOf("/")+1)+d.pathname:c.pathname)+(d.protocol||d.authority||d.pathname?d.search:d.search||c.search)+d.hash:null}function d(){document.removeEventListener("DOMContentLoaded",d,!1),window.removeEventListener("load",d,!1),e()}function e(){for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++){var c=a[b];if("module"==c.type){var d=c.innerHTML.substr(1);__global.System.module(d)["catch"](function(a){setTimeout(function(){throw a})})}}}var f,g="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,h="undefined"!=typeof window&&!g,i="undefined"!=typeof process&&!!process.platform.match(/^win/),j=__global.Promise||require("when/es6-shim/Promise");if("undefined"!=typeof XMLHttpRequest)f=function(a,b,c){function d(){b(f.responseText)}function e(){c(f.statusText+": "+a||"XHR error")}var f=new XMLHttpRequest,g=!0,h=!1;if(!("withCredentials"in f)){var i=/^(\w+:)?\/\/([^\/]+)/.exec(a);i&&(g=i[2]===window.location.host,i[1]&&(g&=i[1]===window.location.protocol))}g||"undefined"==typeof XDomainRequest||(f=new XDomainRequest,f.onload=d,f.onerror=e,f.ontimeout=e,f.onprogress=function(){},f.timeout=0,h=!0),f.onreadystatechange=function(){4===f.readyState&&(200===f.status||0==f.status&&f.responseText?d():e())},f.open("GET",a,!0),h&&setTimeout(function(){f.send()},0),f.send(null)};else{if("undefined"==typeof require)throw new TypeError("No environment fetch API available.");var k;f=function(a,b,c){if("file:"!=a.substr(0,5))throw"Only file URLs of the form file: allowed running in Node.";return k=k||require("fs"),a=a.substr(5),i&&(a=a.replace(/\//g,"\\")),k.readFile(a,function(a,d){return a?c(a):void b(d+"")})}}var l=function(a){function b(b){if(a.call(this,b||{}),"undefined"!=typeof location&&location.href){var c=__global.location.href.split("#")[0].split("?")[0];this.baseURL=c.substring(0,c.lastIndexOf("/")+1)}else{if("undefined"==typeof process||!process.cwd)throw new TypeError("No environment baseURL");this.baseURL="file:"+process.cwd()+"/",i&&(this.baseURL=this.baseURL.replace(/\\/g,"/"))}this.paths={"*":"*.js"}}return b.__proto__=null!==a?a:Function.prototype,b.prototype=$__Object$create(null!==a?a.prototype:null),$__Object$defineProperty(b.prototype,"constructor",{value:b}),$__Object$defineProperty(b.prototype,"global",{get:function(){return h?window:g?self:__global},enumerable:!1}),$__Object$defineProperty(b.prototype,"strict",{get:function(){return!0},enumerable:!1}),$__Object$defineProperty(b.prototype,"normalize",{value:function(a,b){if("string"!=typeof a)throw new TypeError("Module name must be a string");var c=a.split("/");if(0==c.length)throw new TypeError("No module name provided");var d=0,e=!1,f=0;if("."==c[0]){if(d++,d==c.length)throw new TypeError('Illegal module name "'+a+'"');e=!0}else{for(;".."==c[d];)if(d++,d==c.length)throw new TypeError('Illegal module name "'+a+'"');d&&(e=!0),f=d}for(var g=d;g<c.length;g++){var h=c[g];if(""==h||"."==h||".."==h)throw new TypeError('Illegal module name "'+a+'"')}if(!e)return a;{var i=[],j=(b||"").split("/");j.length-1-f}return i=i.concat(j.splice(0,j.length-1-f)),i=i.concat(c.splice(d,c.length-d)),i.join("/")},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"locate",{value:function(a){var b,d=a.name,e="";for(var f in this.paths){var g=f.split("*");if(g.length>2)throw new TypeError("Only one wildcard in a path is permitted");if(1==g.length){if(d==f&&f.length>e.length){e=f;break}}else d.substr(0,g[0].length)==g[0]&&d.substr(d.length-g[1].length)==g[1]&&(e=f,b=d.substr(g[0].length,d.length-g[1].length-g[0].length))}var i=this.paths[e];return b&&(i=i.replace("*",b)),h&&(i=i.replace(/#/g,"%23")),c(this.baseURL,i)},enumerable:!1,writable:!0}),$__Object$defineProperty(b.prototype,"fetch",{value:function(a){var b=this;return new j(function(d,e){f(c(b.baseURL,a.address),function(a){d(a)},e)})},enumerable:!1,writable:!0}),b}(__global.LoaderPolyfill),m=new l;if("object"==typeof exports&&(module.exports=m),__global.System=m,h&&"undefined"!=typeof document.getElementsByTagName){var n=document.getElementsByTagName("script");n=n[n.length-1],"complete"===document.readyState?setTimeout(e):document.addEventListener&&(document.addEventListener("DOMContentLoaded",d,!1),window.addEventListener("load",d,!1)),n.getAttribute("data-init")&&window[n.getAttribute("data-init")]()}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function($__global){$__global.upgradeSystemLoader=function(){function a(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@\/?#]*(?::[^:@\/?#]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null}function b(b,c){function d(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return c=a(c||""),b=a(b||""),c&&b?(c.protocol||b.protocol)+(c.protocol||c.authority?c.authority:b.authority)+d(c.protocol||c.authority||"/"===c.pathname.charAt(0)?c.pathname:c.pathname?(b.authority&&!b.pathname?"/":"")+b.pathname.slice(0,b.pathname.lastIndexOf("/")+1)+c.pathname:b.pathname)+(c.protocol||c.authority||c.pathname?c.search:c.search||b.search)+c.hash:null}function c(a){function b(a,b){var c=a.meta&&a.meta[b.name];if(c)for(var d in c)b.metadata[d]=b.metadata[d]||c[d]}var c=/^(\s*\/\*.*\*\/|\s*\/\/[^\n]*|\s*"[^"]+"\s*;?|\s*'[^']+'\s*;?)+/,d=/\/\*.*\*\/|\/\/[^\n]*|"[^"]+"\s*;?|'[^']+'\s*;?/g;a.meta={};var e=a.locate;a.locate=function(a){return b(this,a),e.call(this,a)};var f=a.translate;a.translate=function(a){var e=a.source.match(c);if(e)for(var g=e[0].match(d),h=0;h<g.length;h++){var i=g[h].length,j=g[h].substr(0,1);if(";"==g[h].substr(i-1,1)&&i--,'"'==j||"'"==j){var k=g[h].substr(1,g[h].length-3),l=k.substr(0,k.indexOf(" "));if(l){var m=k.substr(l.length+1,k.length-l.length-1);a.metadata[l]instanceof Array?a.metadata[l].push(m):a.metadata[l]||(a.metadata[l]=m)}}}return b(this,a),f.call(this,a)}}function d(a){function c(a){var c=this;"@traceur"==a.name&&(p=m);var d,e=a.source.lastIndexOf("\n");-1!=e&&"//# sourceMappingURL="==a.source.substr(e+1,21)&&(d=a.source.substr(e+22,a.source.length-e-22),"undefined"!=typeof b&&(d=b(a.address,d))),__eval(a.source,a.address,d),"@traceur"==a.name&&(c.global.traceurSystem=c.global.System,c.global.System=p)}function d(a){for(var b=[],c=0,d=a.length;d>c;c++)-1==n.call(b,a[c])&&b.push(a[c]);return b}function e(b,c,d,e){"string"!=typeof b&&(e=d,d=c,c=b,b=null),r=!0;var f;if(f="boolean"==typeof d?{declarative:!1,deps:c,execute:e,executingRequire:d}:{declarative:!0,deps:c,declare:d},b)f.name=b,a.defined[b]||(a.defined[b]=f);else if(f.declarative){if(q)throw new TypeError("Multiple anonymous System.register calls in the same module file.");q=f}}function f(a){if(!a.register){a.register=e,a.defined||(a.defined={});var b=a.onScriptLoad;a.onScriptLoad=function(a){b(a),q&&(a.metadata.entry=q),r&&(a.metadata.format=a.metadata.format||"register",a.metadata.registered=!0)}}}function g(a,b,c){if(c[a.groupIndex]=c[a.groupIndex]||[],-1==n.call(c[a.groupIndex],a)){c[a.groupIndex].push(a);for(var d=0,e=a.normalizedDeps.length;e>d;d++){var f=a.normalizedDeps[d],h=b.defined[f];if(h&&!h.evaluated){var i=a.groupIndex+(h.declarative!=a.declarative);if(void 0===h.groupIndex||h.groupIndex<i){if(h.groupIndex&&(c[h.groupIndex].splice(n.call(c[h.groupIndex],h),1),0==c[h.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");h.groupIndex=i}g(h,b,c)}}}}function h(a,b){var c=b.defined[a];c.groupIndex=0;var d=[];g(c,b,d);for(var e=!!c.declarative==d.length%2,f=d.length-1;f>=0;f--){for(var h=d[f],i=0;i<h.length;i++){var k=h[i];e?j(k,b):l(k,b)
}e=!e}}function i(a){return s[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}function j(a,b){if(!a.module){var c=a.module=i(a.name),d=a.module.exports,e=a.declare.call(b.global,function(a,b){c.locked=!0,d[a]=b;for(var e=0,f=c.importers.length;f>e;e++){var g=c.importers[e];if(!g.locked){var h=n.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,k=a.normalizedDeps[f],l=b.defined[k],m=s[k];m?h=m.exports:l&&!l.declarative?h={"default":l.module.exports,__useDefault:!0}:l?(j(l,b),m=l.module,h=m.exports):h=b.get(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function k(a,b){var c,d=b.defined[a];if(d)d.declarative?o(a,[],b):d.evaluated||l(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function l(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var e=0,f=a.normalizedDeps.length;f>e;e++){var g=a.normalizedDeps[e],h=b.defined[g];h&&l(h,b)}a.evaluated=!0;var i=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return k(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);i&&(d.exports=i)}}function o(a,b,c){var d=c.defined[a];if(!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==n.call(b,g)&&(c.defined[g]?o(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof n&&(n=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var p;a.__exec=c;var q,r;f(a);var s={},t=/System\.register/,u=a.fetch;a.fetch=function(a){var b=this;return f(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,u.call(b,a))};var v=a.translate;a.translate=function(a){return this.register=e,this.__exec=c,a.metadata.deps=a.metadata.deps||[],Promise.resolve(v.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(t))&&(a.metadata.format="register"),b})};var w=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var f=c.global.System=c.global.System||c,g=f.register;if(f.register=e,c.__exec(a),f.register=g,q&&(b=q),!b&&f.defined[a.name]&&(b=f.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:[],execute:function(){return c.newModule({})}};if(!b)return w.call(this,a);c.defined[a.name]=b,b.deps=d(b.deps),b.name=a.name;for(var i=[],j=0,k=b.deps.length;k>j;j++)i.push(Promise.resolve(c.normalize(b.deps[j],a.name)));return Promise.all(i).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){h(a.name,c),o(a.name,[],c),c.defined[a.name]=void 0;var d=c.newModule(b.declarative?b.module.exports:{"default":b.module.exports,__useDefault:!0});return d}}})}}function e(a){var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var d;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)d="file:"+process.cwd()+"/";else if("undefined"==typeof window)d=a.global.location.href;else if(d=document.baseURI,!d){var e=document.getElementsByTagName("base");d=e[0]&&e[0].href||window.location.href}var f,g=a.locate;a.locate=function(a){return this.baseURL!=f&&(f=b(d,this.baseURL),"/"!=f.substr(f.length-1,1)&&(f+="/"),this.baseURL=f),Promise.resolve(g.call(this,a))};var h=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/\$traceurRuntime/,j=a.translate;a.translate=function(a){var b=this;if("@traceur"==a.name||"@traceur-runtime"==a.name)return j.call(b,a);if(("es6"==a.metadata.format||!a.metadata.format&&a.source.match(h))&&(a.metadata.format="es6",!b.global.traceur))return b["import"]("@traceur").then(function(){return j.call(b,a)});if(!b.global.$traceurRuntime&&a.source.match(i)){var c=$__global.System;return b["import"]("@traceur-runtime").then(function(){return $__global.System=c,j.call(b,a)})}return j.call(b,a)};var k=a.instantiate;a.instantiate=function(a){var b=this;return"@traceur"==a.name||"@traceur-runtime"==a.name?(b.__exec(a),{deps:[],execute:function(){return b.newModule({})}}):k.call(b,a)}}function f(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){if(!a.has("@@global-helpers")){var c,d,e=a.global.hasOwnProperty,f={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,g){for(var h=0;h<g.length;h++){var i=f[g[h]];if(i)for(var j in i)a.global[j]=i[j]}c={},d=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB"];for(var k in a.global)if(-1==n.call(d,k)&&(!e||a.global.hasOwnProperty(k)))try{c[k]=a.global[k]}catch(l){d.push(k)}},retrieveGlobal:function(g,h,i){var j,k,l={};if(i){for(var m=[],o=0;o<deps.length;o++)m.push(require(deps[o]));j=i.apply(a.global,m)}else if(h){var p=h.split(".")[0];j=b(h,a.global),l[p]=a.global[p]}else for(var q in a.global)-1==n.call(d,q)&&(e&&!a.global.hasOwnProperty(q)||q==a.global||c[q]==a.global[q]||(l[q]=a.global[q],j?j!==a.global[q]&&(k=!0):void 0===j&&(j=a.global[q])));return f[g]=l,k?l:j}}))}}c(a);var d=a.instantiate;a.instantiate=function(a){var b=this;c(b);var e=a.metadata.exports;return a.metadata.format||(a.metadata.format="global"),"global"==a.metadata.format&&(a.metadata.execute=function(c,d,f){b.get("@@global-helpers").prepareGlobal(f.id,a.metadata.deps),e&&(a.source+='\nthis["'+e+'"] = '+e+";");var g=b.global.define;return b.global.define=void 0,b.global.module=void 0,b.global.exports=void 0,b.__exec(a),b.global.define=g,b.get("@@global-helpers").retrieveGlobal(f.id,e,a.metadata.init)}),d.call(b,a)}}function g(a){function b(a){d.lastIndex=0;var b=[];a.length/a.split("\n").length<200&&(a=a.replace(e,""));for(var c;c=d.exec(a);)b.push(c[1].substr(1,c[1].length-2));return b}var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.]|module\.)(exports\s*\[['"]|\exports\s*\.)|(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])module\.exports\s*\=/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):e.metadata.deps,e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),m._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:m._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),f.call(this,e)}}function h(a){function b(a,b){a=a.replace(k,"");var c=a.match(o),d=(c[1].split(",")[b]||"require").replace(p,""),e=q[d]||(q[d]=new RegExp(l+d+m,"g"));e.lastIndex=0;for(var f,g=[];f=e.exec(a);)g.push(f[2]||f[3]);return g}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,g){"string"!=typeof c&&(g=e,e=c,c=null),e instanceof Array||(g=e,e=["require","exports","module"]),"function"!=typeof g&&(g=function(a){return function(){return a}}(g)),void 0===e[e.length-1]&&e.pop();var h,i,j;if(-1!=(h=n.call(e,"require"))){e.splice(h,1);var k=g.toString();e=e.concat(b(k,h))}-1!=(i=n.call(e,"exports"))&&e.splice(i,1),-1!=(j=n.call(e,"module"))&&e.splice(j,1);var l={deps:e,execute:function(b,c,k){for(var l=[],m=0;m<e.length;m++)l.push(b(e[m]));k.uri=a.baseURL+k.id,k.config=function(){},-1!=j&&l.splice(j,0,k),-1!=i&&l.splice(i,0,c),-1!=h&&l.splice(h,0,d(k.id,b,a));var n=g.apply(f,l);return"undefined"==typeof n&&k&&(n=k.exports),"undefined"!=typeof n?n:void 0}};if(c)r=0!=e.length||r||s?null:l,s=!0,a.register(c,l.deps,!1,l.execute);else{if(r)throw new TypeError("Multiple defines for anonymous module");r=l}}var e=a.onScriptLoad;a.onScriptLoad=function(a){e(a),(r||s)&&(a.metadata.format="defined",a.metadata.registered=!0),r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)},c.amd={},a.amdDefine=c}function g(a){a.amdDefine||e(a),r=null,s=null;var b=a.global;t=b.module,u=b.exports,v=b.define,b.module=void 0,b.exports=void 0,b.define&&b.define===a.amdDefine||(b.define=a.amdDefine)}function h(a){var b=a.global;b.define=v,b.module=t,b.exports=u}var i="undefined"!=typeof module&&module.exports,j=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,k=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",m="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",o=/\(([^\)]*)\)/,p=/^\s+|\s+$/g,q={};a.amdRequire=c;var r,s,t,u,v;if(e(a),a.scriptLoader){var w=a.fetch;a.fetch=function(a){return g(this),w.call(this,a)}}var x=a.instantiate;a.instantiate=function(a){var b=this;if("amd"==a.metadata.format||!a.metadata.format&&a.source.match(j)){if(a.metadata.format="amd",b.execute!==!1&&(g(b),b.__exec(a),h(b),!r&&!s&&!i))throw new TypeError("AMD module "+a.name+" did not define");r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)}return x.call(b,a)}}function i(a){function b(a,b){return a.length<b.length?!1:a.substr(0,b.length)!=b?!1:a[b.length]&&"/"!=a[b.length]?!1:!0}function c(a){for(var b=1,c=0,d=a.length;d>c;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{};var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function j(a){"undefined"==typeof n&&(n=Array.prototype.indexOf);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.substr(0,a.length-3)})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function k(a){"undefined"==typeof n&&(n=Array.prototype.indexOf),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=n.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function l(a){a.depCache=a.depCache||{},loaderLocate=a.locate,a.locate=function(a){var b=this;b.depCache||(b.depCache={});var c=b.depCache[a.name];if(c)for(var d=0;d<c.length;d++)b.load(c[d]);return loaderLocate.call(b,a)}}$__global.upgradeSystemLoader=void 0;var m,n=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1};return function(){var a=$__global.System;m=$__global.System=new LoaderPolyfill(a),m.baseURL=a.baseURL,m.paths={"*":"*.js"},m.originalSystem=a}(),m.noConflict=function(){$__global.SystemJS=m,$__global.System=m.originalSystem},c(m),d(m),e(m),f(m),g(m),h(m),i(m),j(m),k(m),l(m),m.paths["@traceur"]||(m.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):m.baseURL+(m.baseURL.lastIndexOf("/")==m.baseURL.length-1?"":"/"))+"traceur.js"),m.paths["@traceur-runtime"]||(m.paths["@traceur-runtime"]=$__curScript&&$__curScript.getAttribute("data-traceur-runtime-src")||m.paths["@traceur"].replace(/\.js$/,"-runtime.js")),m};var $__curScript,__eval;!function(){var doEval;__eval=function(a,b,c){a+="\n//# sourceURL="+b+(c?"\n//# sourceMappingURL="+c:"");try{doEval(a)}catch(d){var e="Error evaluating "+b+"\n";throw d instanceof Error?d.message=e+d.message:d=e+d,d}};var __upgradeSystemLoader=$__global.upgradeSystemLoader;$__global.upgradeSystemLoader=function(){var a=$__global.System;__upgradeSystemLoader.call($__global),$__global.System.clone=function(){var b=$__global.System;$__global.System=a;var c=__upgradeSystemLoader.call($__global);return $__global.System=b,c}};var isWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window;if(isBrowser){var head,scripts=document.getElementsByTagName("script");if($__curScript=scripts[scripts.length-1],doEval=function(a){head||(head=document.head||document.body||document.documentElement);var b=document.createElement("script");b.text=a;var c,d=window.onerror;if(window.onerror=function(a){c=a},head.appendChild(b),head.removeChild(b),window.onerror=d,c)throw c},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var curPath=$__curScript.src,basePath=curPath.substr(0,curPath.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+basePath+'es6-module-loader.js" data-init="upgradeSystemLoader"></script>')}}else if(isWorker)if(doEval=function(source){try{eval(source)}catch(e){throw e}},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var basePath="";try{throw new TypeError("Unable to get Worker base path.")}catch(err){var idx=err.stack.indexOf("at ")+3,withSystem=err.stack.substr(idx,err.stack.substr(idx).indexOf("\n"));basePath=withSystem.substr(0,withSystem.lastIndexOf("/")+1)}importScripts(basePath+"es6-module-loader.js")}else{var es6ModuleLoader=require("es6-module-loader");$__global.System=es6ModuleLoader.System,$__global.Loader=es6ModuleLoader.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var vm=require("vm");doEval=function(a){vm.runInThisContext(a)}}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){function b(a){function b(a){function b(){for(var b,d=[],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?d.push(n(arguments[e])):b=arguments[e];"function"!=typeof b&&(b=function(a){return function(){return a}}(b)),c={deps:d,execute:function(c){for(var e=[],f=0;f<d.length;f++)e.push(c(d[f]));var g=b.apply(a.global,e);return"undefined"!=typeof g?g:void 0}}}c=null,a.global.module=void 0,a.global.exports=void 0,a.global.steal=b}var c,d=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,e=a.instantiate;return a.instantiate=function(a){var f=this;if("steal"===a.metadata.format||!a.metadata.format&&a.source.match(d)){a.metadata.format="steal";var g=f.global.steal;if(b(f),f.__exec(a),f.global.steal=g,!c)throw"Steal module "+a.name+" did not call steal";c&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(c.deps):c.deps,a.metadata.execute=c.execute)}return e.call(f,a)},a}var c=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},d=function(a,b){var c,d;if("number"==typeof a.length&&a.length-1 in a)for(c=0,d=a.length;d>c;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a){var b=a.lastIndexOf("/"),c=(-1==b?a:a.substr(b+1)).match(/^[\w-\s\.!]+/);return c?c[0]:""},m=function(a){var b=l(a),c=b.lastIndexOf(".");return-1!==c?b.substr(c+1):""},n=function(a){var b=a.lastIndexOf("!"),c="";if(-1!=b){var d=a.substr(0,b),e=a.substr(b+1);c="!"+e,a=d}var f=l(a),g=m(a);return"/"===a[a.length-1]?a+l(a.substr(0,a.length-1))+c:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(a)||-1!==f.indexOf(".")?"js"===g?a.substr(0,a.lastIndexOf("."))+c:a+c:a+"/"+f+c},o=function(b){function m(a){var b=/^[\s\n\r]*[\{\[]/,c=a.instantiate;return a.instantiate=function(a){var d,e=this;if(("json"===a.metadata.format||!a.metadata.format)&&b.test(a.source)){try{d=JSON.parse(a.source)}catch(f){}d&&(a.metadata.format="json",a.metadata.execute=function(){return d})}return c.call(e,a)},a}b.set("@loader",b.newModule({"default":b,__useDefault:!0}));var o,p,q,r=function(){var a=arguments,c=function(){var b,c=[];d(a,function(a){f(a)?c.push(r.System["import"](n(a))):"function"==typeof a&&(b=a)});var e=Promise.all(c);return b?e.then(function(a){return b&&b.apply(null,a)}):e};return"production"===b.env?c():o.then(c,c)};r.System=b,r.parseURI=j,r.joinURIs=k,r.normalize=n;var s=function(a){a.ext={};var b=a.normalize,c=/\.(\w+)!$/;a.normalize=function(d,e,f){var g,h=d.match(c),i=d;return h&&a.ext[g=h[1]]&&(i=d+a.ext[g]),b.call(this,i,e,f)}};s(b);var t=function(a){var b=a.normalize;a.normalize=function(a,c,d){var e,f,g=a.length-1;return"/"===a[g]&&(e=a.substring(0,g).lastIndexOf("/"),f=a.substring(e+1,g),a+=f),b.call(this,a,c,d)}};t(b),"undefined"!=typeof b&&m(b);var u=function(a,b){var c=a.config;a.config=function(e){var f=g({},e);d(b,function(b,c){if(b.set&&f[c]){var d=b.set.call(a,f[c],e);void 0!==d&&(a[c]=d),delete f[c]}}),c.call(this,f)}},v=function(a,b,c){a[b]||(a[b]=c)};b.configMain="@config",b.paths[b.configMain]="stealconfig.js",b.env="development",b.ext={css:"$css",less:"$less"},b.logLevel=0;var w="bundles/*.css",x="bundles/*";v(b.paths,w,"dist/bundles/*css"),v(b.paths,x,"dist/bundles/*.js");var y={set:function(a){var c=l(a),d=h(a);b.configMain=c,b.paths[c]=c,C.call(this),this.baseURL=(d===a?".":d)+"/"}},z={set:function(a){this.main=a,C.call(this)}},A=function(a){return{set:function(b){this[a]="object"==typeof b&&"object"==typeof r.System[a]?g(this[a]||{},b||{}):b}}},B=function(a){var b=a.lastIndexOf("!");return-1!==b?a.substr(b+1):void 0},C=function(){if("production"===this.env&&this.main){var a=this.main,c=this.bundlesName||"bundles/",d=c+l(a);v(this.meta,d,{format:"amd"});var e=B(b.configMain),f=[a,b.configMain];e&&b.set(e,b.newModule({})),this.bundles[d]=f}},D="undefined"!=typeof module&&module.exports,E="less-1.7.0";u(b,{env:{set:function(a){b.env=a,C.call(this)}},baseUrl:A("baseURL"),root:A("baseURL"),config:y,configPath:y,startId:{set:function(a){z.set.call(this,n(a))}},main:z,stealPath:{set:function(a,c){var d=a.split("/");v(this.paths,"@dev",a+"/ext/dev.js"),v(this.paths,"$css",a+"/ext/css.js"),v(this.paths,"$less",a+"/ext/less.js"),v(this.paths,"npm",a+"/ext/npm.js"),v(this.paths,"npm-extension",a+"/ext/npm-extension.js"),v(this.paths,"npm-utils",a+"/ext/npm-utils.js"),v(this.paths,"npm-crawl",a+"/ext/npm-crawl.js"),v(this.paths,"semver",a+"/ext/semver.js"),v(this.paths,"bower",a+"/ext/bower.js"),this.paths["@traceur"]=a+"/ext/traceur.js",this.paths["@traceur-runtime"]=a+"/ext/traceur-runtime.js",D?b.register("less",[],!1,function(){var a=require;return a("less")}):(v(this.paths,"less",a+"/ext/"+E+".js"),c.root||c.baseUrl||c.baseURL||c.config||c.configPath||("steal"===i(d)&&(d.pop(),"bower_components"===i(d)&&(b.configMain="bower.json!bower",C.call(this),d.pop()),"node_modules"===i(d)&&(b.configMain="package.json!npm",C.call(this),d.pop())),this.baseURL=d.join("/")+"/"))}},bundle:{set:function(a){b.bundle=a}},bundlesPath:{set:function(a){return this.paths[w]=a+"/*css",this.paths[x]=a+"/*.js",a}},instantiated:{set:function(a){var b=this;d(a||{},function(a,c){b.set(c,b.newModule(a))})}}}),r.config=function(a){return"string"==typeof a?b[a]:void b.config(a)};var F=function(){var a,b,e,f={},g=document.getElementsByTagName("script"),h=g[g.length-1];if(h){a=h.src.split("?"),b=a.shift(),e=a.join("?"),a=e.split(","),b.indexOf("steal.production")>-1&&(f.env="production"),a[0]&&(f.startId=a[0]),a[1]&&(f.env=a[1]),a=b.split("/");{a.pop()}f.stealPath=a.join("/"),d(h.attributes,function(a){var b=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);f[b]=a.value})}return f};return r.startup=function(c){if(a.document)var d=F();else var d={stealPath:__dirname};b.config(d),c&&b.config(c);return"production"==b.env?(o=b["import"](b.configMain),q=o.then(function(a){return b.main?b["import"](b.main):a})["catch"](function(a){})):"development"==b.env||"build"==b.env?(o=b["import"](b.configMain),p=o.then(function(){return c&&b.config(c),b["import"]("@dev")},function(a){return r.System["import"]("@dev")}),q=p.then(function(){if(!b.main||"build"===b.env)return o;var a=b.main;return"string"==typeof a&&(a=[a]),Promise.all(e(a,function(a){return b["import"](a)}))}).then(function(){r.dev&&r.dev.log("app loaded successfully")},function(a){})):void 0},r.done=function(){return q},r};if("undefined"!=typeof System&&b(System),"undefined"!=typeof window){var p=window.steal;window.steal=o(System),window.steal.startup(p&&"object"==typeof p&&p),window.steal.addSteal=b}else require("systemjs"),a.steal=o(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=o,module.exports=a.steal,a.steal.addSteal=b}("undefined"==typeof window?global:window);
}e=!e}}function i(a){return s[a]||(s[a]={name:a,dependencies:[],exports:{},importers:[]})}function j(a,b){if(!a.module){var c=a.module=i(a.name),d=a.module.exports,e=a.declare.call(b.global,function(a,b){c.locked=!0,d[a]=b;for(var e=0,f=c.importers.length;f>e;e++){var g=c.importers[e];if(!g.locked){var h=n.call(g.dependencies,c);g.setters[h](d)}}return c.locked=!1,b});if(c.setters=e.setters,c.execute=e.execute,!c.setters||!c.execute)throw new TypeError("Invalid System.register form for "+a.name);for(var f=0,g=a.normalizedDeps.length;g>f;f++){var h,k=a.normalizedDeps[f],l=b.defined[k],m=s[k];m?h=m.exports:l&&!l.declarative?h={"default":l.module.exports,__useDefault:!0}:l?(j(l,b),m=l.module,h=m.exports):h=b.get(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](h)}}}function k(a,b){var c,d=b.defined[a];if(d)d.declarative?o(a,[],b):d.evaluated||l(d,b),c=d.module.exports;else if(c=b.get(a),!c)throw new Error("Unable to load dependency "+a+".");return(!d||d.declarative)&&c&&c.__useDefault?c["default"]:c}function l(a,b){if(!a.module){var c={},d=a.module={exports:c,id:a.name};if(!a.executingRequire)for(var e=0,f=a.normalizedDeps.length;f>e;e++){var g=a.normalizedDeps[e],h=b.defined[g];h&&l(h,b)}a.evaluated=!0;var i=a.execute.call(b.global,function(c){for(var d=0,e=a.deps.length;e>d;d++)if(a.deps[d]==c)return k(a.normalizedDeps[d],b);throw new TypeError("Module "+c+" not declared as a dependency.")},c,d);i&&(d.exports=i)}}function o(a,b,c){var d=c.defined[a];if(!d.evaluated&&d.declarative){b.push(a);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==n.call(b,g)&&(c.defined[g]?o(g,b,c):c.get(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(c.global))}}"undefined"==typeof n&&(n=Array.prototype.indexOf),"undefined"==typeof __eval&&(__eval=0||eval);var p;a.__exec=c;var q,r;f(a);var s={},t=/System\.register/,u=a.fetch;a.fetch=function(a){var b=this;return f(b),b.defined[a.name]?(a.metadata.format="defined",""):(q=null,r=!1,u.call(b,a))};var v=a.translate;a.translate=function(a){return this.register=e,this.__exec=c,a.metadata.deps=a.metadata.deps||[],Promise.resolve(v.call(this,a)).then(function(b){return(a.metadata.init||a.metadata.exports)&&(a.metadata.format=a.metadata.format||"global"),("register"==a.metadata.format||!a.metadata.format&&a.source.match(t))&&(a.metadata.format="register"),b})};var w=a.instantiate;a.instantiate=function(a){var b,c=this;if(c.defined[a.name])b=c.defined[a.name],b.deps=b.deps.concat(a.metadata.deps);else if(a.metadata.entry)b=a.metadata.entry;else if(a.metadata.execute)b={declarative:!1,deps:a.metadata.deps||[],execute:a.metadata.execute,executingRequire:a.metadata.executingRequire};else if("register"==a.metadata.format){q=null,r=!1;var f=c.global.System=c.global.System||c,g=f.register;if(f.register=e,c.__exec(a),f.register=g,q&&(b=q),!b&&f.defined[a.name]&&(b=f.defined[a.name]),!r&&!a.metadata.registered)throw new TypeError(a.name+" detected as System.register but didn't execute.")}if(!b&&"es6"!=a.metadata.format)return{deps:[],execute:function(){return c.newModule({})}};if(!b)return w.call(this,a);c.defined[a.name]=b,b.deps=d(b.deps),b.name=a.name;for(var i=[],j=0,k=b.deps.length;k>j;j++)i.push(Promise.resolve(c.normalize(b.deps[j],a.name)));return Promise.all(i).then(function(d){return b.normalizedDeps=d,{deps:b.deps,execute:function(){h(a.name,c),o(a.name,[],c),c.defined[a.name]=void 0;var d=c.newModule(b.declarative?b.module.exports:{"default":b.module.exports,__useDefault:!0});return d}}})}}function e(a){var c=a["import"];a["import"]=function(a,b){return c.call(this,a,b).then(function(a){return a.__useDefault?a["default"]:a})},a.set("@empty",a.newModule({})),"undefined"!=typeof require&&(a._nodeRequire=require),a.config=function(a){for(var b in a){var c=a[b];if("object"!=typeof c||c instanceof Array)this[b]=c;else{this[b]=this[b]||{};for(var d in c)this[b][d]=c[d]}}};var d;if("undefined"==typeof window&&"undefined"==typeof WorkerGlobalScope)d="file:"+process.cwd()+"/";else if("undefined"==typeof window)d=a.global.location.href;else if(d=document.baseURI,!d){var e=document.getElementsByTagName("base");d=e[0]&&e[0].href||window.location.href}var f,g=a.locate;a.locate=function(a){return this.baseURL!=f&&(f=b(d,this.baseURL),"/"!=f.substr(f.length-1,1)&&(f+="/"),this.baseURL=f),Promise.resolve(g.call(this,a))};var h=/(^\s*|[}\);\n]\s*)(import\s+(['"]|(\*\s+as\s+)?[^"'\(\)\n;]+\s+from\s+['"]|\{)|export\s+\*\s+from\s+["']|export\s+(\{|default|function|class|var|const|let|async\s+function))/,i=/\$traceurRuntime/,j=a.translate;a.translate=function(a){var b=this;if("@traceur"==a.name||"@traceur-runtime"==a.name)return j.call(b,a);if(("es6"==a.metadata.format||!a.metadata.format&&a.source.match(h))&&(a.metadata.format="es6",!b.global.traceur))return b["import"]("@traceur").then(function(){return j.call(b,a)});if(!b.global.$traceurRuntime&&a.source.match(i)){var c=$__global.System;return b["import"]("@traceur-runtime").then(function(){return $__global.System=c,j.call(b,a)})}return j.call(b,a)};var k=a.instantiate;a.instantiate=function(a){var b=this;return"@traceur"==a.name||"@traceur-runtime"==a.name?(b.__exec(a),{deps:[],execute:function(){return b.newModule({})}}):k.call(b,a)}}function f(a){function b(a,b){for(var c=a.split(".");c.length;)b=b[c.shift()];return b}function c(a){if(!a.has("@@global-helpers")){var c,d,e=a.global.hasOwnProperty,f={};a.set("@@global-helpers",a.newModule({prepareGlobal:function(b,g){for(var h=0;h<g.length;h++){var i=f[g[h]];if(i)for(var j in i)a.global[j]=i[j]}c={},d=["indexedDB","sessionStorage","localStorage","clipboardData","frames","webkitStorageInfo","toolbar","statusbar","scrollbars","personalbar","menubar","locationbar","webkitIndexedDB"];for(var k in a.global)if(-1==n.call(d,k)&&(!e||a.global.hasOwnProperty(k)))try{c[k]=a.global[k]}catch(l){d.push(k)}},retrieveGlobal:function(g,h,i){var j,k,l={};if(i){for(var m=[],o=0;o<deps.length;o++)m.push(require(deps[o]));j=i.apply(a.global,m)}else if(h){var p=h.split(".")[0];j=b(h,a.global),l[p]=a.global[p]}else for(var q in a.global)-1==n.call(d,q)&&(e&&!a.global.hasOwnProperty(q)||q==a.global||c[q]==a.global[q]||(l[q]=a.global[q],j?j!==a.global[q]&&(k=!0):void 0===j&&(j=a.global[q])));return f[g]=l,k?l:j}}))}}c(a);var d=a.instantiate;a.instantiate=function(a){var b=this;c(b);var e=a.metadata.exports;return a.metadata.format||(a.metadata.format="global"),"global"==a.metadata.format&&(a.metadata.execute=function(c,d,f){b.get("@@global-helpers").prepareGlobal(f.id,a.metadata.deps),e&&(a.source+='\nthis["'+e+'"] = '+e+";");var g=b.global.define;return b.global.define=void 0,b.global.module=void 0,b.global.exports=void 0,b.__exec(a),b.global.define=g,b.get("@@global-helpers").retrieveGlobal(f.id,e,a.metadata.init)}),d.call(b,a)}}function g(a){function b(a){d.lastIndex=0;var b=[];a.length/a.split("\n").length<200&&(a=a.replace(e,""));for(var c;c=d.exec(a);)b.push(c[1].substr(1,c[1].length-2));return b}var c=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.]|module\.)(exports\s*\[['"]|\exports\s*\.)|(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])module\.exports\s*\=/,d=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF."'])require\s*\(\s*("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')\s*\)/g,e=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,f=a.instantiate;a.instantiate=function(e){return e.metadata.format||(c.lastIndex=0,d.lastIndex=0,(d.exec(e.source)||c.exec(e.source))&&(e.metadata.format="cjs")),"cjs"==e.metadata.format&&(e.metadata.deps=e.metadata.deps?e.metadata.deps.concat(b(e.source)):e.metadata.deps,e.metadata.executingRequire=!0,e.metadata.execute=function(b,c,d){var f=(e.address||"").split("/");f.pop(),f=f.join("/"),m._nodeRequire&&(f=f.substr(5));var g=(a.global._g={global:a.global,exports:c,module:d,require:b,__filename:m._nodeRequire?e.address.substr(5):e.address,__dirname:f},a.global.define);a.global.define=void 0;var h={name:e.name,source:"(function() {\n(function(global, exports, module, require, __filename, __dirname){\n"+e.source+"\n}).call(_g.exports, _g.global, _g.exports, _g.module, _g.require, _g.__filename, _g.__dirname);})();",address:e.address};a.__exec(h),a.global.define=g,a.global._g=void 0}),f.call(this,e)}}function h(a){function b(a,b){a=a.replace(k,"");var c=a.match(o),d=(c[1].split(",")[b]||"require").replace(p,""),e=q[d]||(q[d]=new RegExp(l+d+m,"g"));e.lastIndex=0;for(var f,g=[];f=e.exec(a);)g.push(f[2]||f[3]);return g}function c(a,b,d,e){var f=this;if("object"==typeof a&&!(a instanceof Array))return c.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if(!(a instanceof Array)){if("string"==typeof a){var g=f.get(a);return g.__useDefault?g["default"]:g}throw new TypeError("Invalid require")}Promise.all(a.map(function(a){return f["import"](a,e)})).then(function(a){b&&b.apply(null,a)},d)}function d(a,b,d){return function(e,f,g){return"string"==typeof e?b(e):c.call(d,e,f,g,{name:a})}}function e(a){function c(c,e,g){"string"!=typeof c&&(g=e,e=c,c=null),e instanceof Array||(g=e,e=["require","exports","module"]),"function"!=typeof g&&(g=function(a){return function(){return a}}(g)),void 0===e[e.length-1]&&e.pop();var h,i,j;if(-1!=(h=n.call(e,"require"))){e.splice(h,1);var k=g.toString();e=e.concat(b(k,h))}-1!=(i=n.call(e,"exports"))&&e.splice(i,1),-1!=(j=n.call(e,"module"))&&e.splice(j,1);var l={deps:e,execute:function(b,c,k){for(var l=[],m=0;m<e.length;m++)l.push(b(e[m]));k.uri=a.baseURL+k.id,k.config=function(){},-1!=j&&l.splice(j,0,k),-1!=i&&l.splice(i,0,c),-1!=h&&l.splice(h,0,d(k.id,b,a));var n=g.apply(f,l);return"undefined"==typeof n&&k&&(n=k.exports),"undefined"!=typeof n?n:void 0}};if(c)r=0!=e.length||r||s?null:l,s=!0,a.register(c,l.deps,!1,l.execute);else{if(r)throw new TypeError("Multiple defines for anonymous module");r=l}}var e=a.onScriptLoad;a.onScriptLoad=function(a){e(a),(r||s)&&(a.metadata.format="defined",a.metadata.registered=!0),r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)},c.amd={},a.amdDefine=c}function g(a){a.amdDefine||e(a),r=null,s=null;var b=a.global;t=b.module,u=b.exports,v=b.define,b.module=void 0,b.exports=void 0,b.define&&b.define===a.amdDefine||(b.define=a.amdDefine)}function h(a){var b=a.global;b.define=v,b.module=t,b.exports=u}var i="undefined"!=typeof module&&module.exports,j=/(?:^\uFEFF?|[^$_a-zA-Z\xA0-\uFFFF.])define\s*\(\s*("[^"]+"\s*,\s*|'[^']+'\s*,\s*)?\s*(\[(\s*(("[^"]+"|'[^']+')\s*,|\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*(\s*("[^"]+"|'[^']+')\s*,?)?(\s*(\/\/.*\r?\n|\/\*(.|\s)*?\*\/))*\s*\]|function\s*|{|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*\))/,k=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,l="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",m="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",o=/\(([^\)]*)\)/,p=/^\s+|\s+$/g,q={};a.amdRequire=c;var r,s,t,u,v;if(e(a),a.scriptLoader){var w=a.fetch;a.fetch=function(a){return g(this),w.call(this,a)}}var x=a.instantiate;a.instantiate=function(a){var b=this;if("amd"==a.metadata.format||!a.metadata.format&&a.source.match(j)){if(a.metadata.format="amd",b.execute!==!1&&(g(b),b.__exec(a),h(b),!r&&!s&&!i))throw new TypeError("AMD module "+a.name+" did not define");r&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(r.deps):r.deps,a.metadata.execute=r.execute)}return x.call(b,a)}}function i(a){function b(a,b){return a.length<b.length?!1:a.substr(0,b.length)!=b?!1:a[b.length]&&"/"!=a[b.length]?!1:!0}function c(a){for(var b=1,c=0,d=a.length;d>c;c++)"/"===a[c]&&b++;return b}function d(a,b,c){return c+a.substr(b)}function e(a,e,f){var g,h,i,j,k=0,l=0;if(e)for(var m in f.map){var n=f.map[m];if("object"==typeof n&&b(e,m)&&(i=c(m),!(l>=i)))for(var o in n)b(a,o)&&(j=c(o),k>=j||(g=o,k=j,h=m,l=i))}if(g)return d(a,g.length,f.map[h][g]);for(var m in f.map){var n=f.map[m];if("string"==typeof n&&b(a,m)){var j=c(m);k>=j||(g=m,k=j)}}return g?d(a,g.length,f.map[g]):a}a.map=a.map||{};var f=a.normalize;a.normalize=function(a,b,c){var d=this;d.map||(d.map={});var g=!1;return"/"==a.substr(a.length-1,1)&&(g=!0,a+="#"),Promise.resolve(f.call(d,a,b,c)).then(function(a){if(a=e(a,b,d),g){var c=a.split("/");c.pop();var f=c.pop();c.push(f),c.push(f),a=c.join("/")}return a})}}function j(a){"undefined"==typeof n&&(n=Array.prototype.indexOf);var b=a.normalize;a.normalize=function(a,c,d){var e,f=this;return c&&-1!=(e=c.indexOf("!"))&&(c=c.substr(0,e)),Promise.resolve(b.call(f,a,c,d)).then(function(a){var b=a.lastIndexOf("!");if(-1!=b){var e=a.substr(0,b),g=a.substr(b+1)||e.substr(e.lastIndexOf(".")+1);return new Promise(function(a){a(f.normalize(g,c,d))}).then(function(a){return g=a,f.normalize(e,c,d)}).then(function(a){return a+"!"+g})}return a})};var c=a.locate;a.locate=function(a){var b=this,d=a.name;if(this.defined&&this.defined[d])return c.call(this,a);var e=d.lastIndexOf("!");if(-1!=e){var f=d.substr(e+1);a.name=d.substr(0,e);var g=b.pluginLoader||b;return g["import"](f).then(function(){var c=g.get(f);return c=c["default"]||c,c.build===!1&&b.pluginLoader&&(a.metadata.build=!1),a.metadata.plugin=c,a.metadata.pluginName=f,a.metadata.pluginArgument=a.name,a.metadata.buildType=c.buildType||"js",c.locate?c.locate.call(b,a):Promise.resolve(b.locate(a)).then(function(a){return a.substr(0,a.length-3)})})}return c.call(this,a)};var d=a.fetch;a.fetch=function(a){var b=this;return a.metadata.build===!1?"":a.metadata.plugin&&a.metadata.plugin.fetch&&!a.metadata.pluginFetchCalled?(a.metadata.pluginFetchCalled=!0,a.metadata.plugin.fetch.call(b,a,d)):d.call(b,a)};var e=a.translate;a.translate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.translate?Promise.resolve(a.metadata.plugin.translate.call(b,a)).then(function(c){return c&&(a.source=c),e.call(b,a)}):e.call(b,a)};var f=a.instantiate;a.instantiate=function(a){var b=this;return a.metadata.plugin&&a.metadata.plugin.instantiate?Promise.resolve(a.metadata.plugin.instantiate.call(b,a)).then(function(c){return c?c:f.call(b,a)}):a.metadata.plugin&&a.metadata.plugin.build===!1?(a.metadata.format="defined",a.metadata.deps.push(a.metadata.pluginName),a.metadata.execute=function(){return b.newModule({})},f.call(b,a)):f.call(b,a)}}function k(a){"undefined"==typeof n&&(n=Array.prototype.indexOf),a.bundles=a.bundles||{};var b=a.fetch;a.fetch=function(a){var c=this;if(c.trace)return b.call(this,a);c.bundles||(c.bundles={});for(var d in c.bundles)if(-1!=n.call(c.bundles[d],a.name))return Promise.resolve(c.normalize(d)).then(function(a){return c.bundles[a]=c.bundles[a]||c.bundles[d],c.meta=c.meta||{},c.meta[a]=c.meta[a]||{},c.meta[a].bundle=!0,c.load(a)}).then(function(){return""});return b.call(this,a)}}function l(a){a.depCache=a.depCache||{},loaderLocate=a.locate,a.locate=function(a){var b=this;b.depCache||(b.depCache={});var c=b.depCache[a.name];if(c)for(var d=0;d<c.length;d++)b.load(c[d]);return loaderLocate.call(b,a)}}$__global.upgradeSystemLoader=void 0;var m,n=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1};return function(){var a=$__global.System;m=$__global.System=new LoaderPolyfill(a),m.baseURL=a.baseURL,m.paths={"*":"*.js"},m.originalSystem=a}(),m.noConflict=function(){$__global.SystemJS=m,$__global.System=m.originalSystem},c(m),d(m),e(m),f(m),g(m),h(m),i(m),j(m),k(m),l(m),m.paths["@traceur"]||(m.paths["@traceur"]=$__curScript&&$__curScript.getAttribute("data-traceur-src")||($__curScript&&$__curScript.src?$__curScript.src.substr(0,$__curScript.src.lastIndexOf("/")+1):m.baseURL+(m.baseURL.lastIndexOf("/")==m.baseURL.length-1?"":"/"))+"traceur.js"),m.paths["@traceur-runtime"]||(m.paths["@traceur-runtime"]=$__curScript&&$__curScript.getAttribute("data-traceur-runtime-src")||m.paths["@traceur"].replace(/\.js$/,"-runtime.js")),m};var $__curScript,__eval;!function(){var doEval;__eval=function(a,b,c){a+="\n//# sourceURL="+b+(c?"\n//# sourceMappingURL="+c:"");try{doEval(a)}catch(d){var e="Error evaluating "+b+"\n";throw d instanceof Error?d.message=e+d.message:d=e+d,d}};var __upgradeSystemLoader=$__global.upgradeSystemLoader;$__global.upgradeSystemLoader=function(){var a=$__global.System;__upgradeSystemLoader.call($__global),$__global.System.clone=function(){var b=$__global.System;$__global.System=a;var c=__upgradeSystemLoader.call($__global);return $__global.System=b,c}};var isWorker="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,isBrowser="undefined"!=typeof window;if(isBrowser){var head,scripts=document.getElementsByTagName("script");if($__curScript=scripts[scripts.length-1],doEval=function(a){head||(head=document.head||document.body||document.documentElement);var b=document.createElement("script");b.text=a;var c,d=window.onerror;if(window.onerror=function(a){c=a},head.appendChild(b),head.removeChild(b),window.onerror=d,c)throw c},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var curPath=$__curScript.src,basePath=curPath.substr(0,curPath.lastIndexOf("/")+1);document.write('<script type="text/javascript" src="'+basePath+'es6-module-loader.js" data-init="upgradeSystemLoader"></script>')}}else if(isWorker)if(doEval=function(source){try{eval(source)}catch(e){throw e}},$__global.System&&$__global.LoaderPolyfill)$__global.upgradeSystemLoader();else{var basePath="";try{throw new TypeError("Unable to get Worker base path.")}catch(err){var idx=err.stack.indexOf("at ")+3,withSystem=err.stack.substr(idx,err.stack.substr(idx).indexOf("\n"));basePath=withSystem.substr(0,withSystem.lastIndexOf("/")+1)}importScripts(basePath+"es6-module-loader.js")}else{var es6ModuleLoader=require("es6-module-loader");$__global.System=es6ModuleLoader.System,$__global.Loader=es6ModuleLoader.Loader,$__global.upgradeSystemLoader(),module.exports=$__global.System;var vm=require("vm");doEval=function(a){vm.runInThisContext(a)}}}()}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:global),function(a){function b(a){function b(a){function b(){for(var b,d=[],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?d.push(n(arguments[e])):b=arguments[e];"function"!=typeof b&&(b=function(a){return function(){return a}}(b)),c={deps:d,execute:function(c){for(var e=[],f=0;f<d.length;f++)e.push(c(d[f]));var g=b.apply(a.global,e);return"undefined"!=typeof g?g:void 0}}}c=null,a.global.module=void 0,a.global.exports=void 0,a.global.steal=b}var c,d=/(?:^\s*|[}{\(\);,\n\?\&]\s*)steal\s*\(\s*((?:"[^"]+"\s*,|'[^']+'\s*,\s*)*)/,e=a.instantiate;return a.instantiate=function(a){var f=this;if("steal"===a.metadata.format||!a.metadata.format&&a.source.match(d)){a.metadata.format="steal";var g=f.global.steal;if(b(f),f.__exec(a),f.global.steal=g,!c)throw"Steal module "+a.name+" did not call steal";c&&(a.metadata.deps=a.metadata.deps?a.metadata.deps.concat(c.deps):c.deps,a.metadata.execute=c.execute)}return e.call(f,a)},a}var c=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})},d=function(a,b){var c,d;if("number"==typeof a.length&&a.length-1 in a)for(c=0,d=a.length;d>c;c++)b.call(a[c],a[c],c,a);else for(c in a)a.hasOwnProperty(c)&&b.call(a[c],a[c],c,a);return a},e=function(a,b){var c=[];return d(a,function(a,d){c[d]=b(a,d)}),c},f=function(a){return"string"==typeof a},g=function(a,b){return d(b,function(b,c){a[c]=b}),a},h=function(a){var b=a.lastIndexOf("/");return-1!==b?a.substr(0,b):a},i=function(a){return a[a.length-1]},j=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return b?{href:b[0]||"",protocol:b[1]||"",authority:b[2]||"",host:b[3]||"",hostname:b[4]||"",port:b[5]||"",pathname:b[6]||"",search:b[7]||"",hash:b[8]||""}:null},k=function(a,b){function c(a){var b=[];return a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)}),b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}return b=j(b||""),a=j(a||""),b&&a?(b.protocol||a.protocol)+(b.protocol||b.authority?b.authority:a.authority)+c(b.protocol||b.authority||"/"===b.pathname.charAt(0)?b.pathname:b.pathname?(a.authority&&!a.pathname?"/":"")+a.pathname.slice(0,a.pathname.lastIndexOf("/")+1)+b.pathname:a.pathname)+(b.protocol||b.authority||b.pathname?b.search:b.search||a.search)+b.hash:null},l=function(a){var b=a.lastIndexOf("/"),c=(-1==b?a:a.substr(b+1)).match(/^[\w-\s\.!]+/);return c?c[0]:""},m=function(a){var b=l(a),c=b.lastIndexOf(".");return-1!==c?b.substr(c+1):""},n=function(a){var b=a.lastIndexOf("!"),c="";if(-1!=b){var d=a.substr(0,b),e=a.substr(b+1);c="!"+e,a=d}var f=l(a),g=m(a);return"/"===a[a.length-1]?a+l(a.substr(0,a.length-1))+c:/^(\w+(?:s)?:\/\/|\.|file|\/)/.test(a)||-1!==f.indexOf(".")?"js"===g?a.substr(0,a.lastIndexOf("."))+c:a+c:a+"/"+f+c},o=function(b){function m(a){var b=/^[\s\n\r]*[\{\[]/,c=a.instantiate;return a.instantiate=function(a){var d,e=this;if(("json"===a.metadata.format||!a.metadata.format)&&b.test(a.source)){try{d=JSON.parse(a.source)}catch(f){}d&&(a.metadata.format="json",a.metadata.execute=function(){return d})}return c.call(e,a)},a}b.set("@loader",b.newModule({"default":b,__useDefault:!0}));var o,p,q,r=function(){var a=arguments,c=function(){var b,c=[];d(a,function(a){f(a)?c.push(r.System["import"](n(a))):"function"==typeof a&&(b=a)});var e=Promise.all(c);return b?e.then(function(a){return b&&b.apply(null,a)}):e};return"production"===b.env?c():o.then(c,c)};r.System=b,r.parseURI=j,r.joinURIs=k,r.normalize=n;var s=function(a){a.ext={};var b=a.normalize,c=/\.(\w+)!$/;a.normalize=function(d,e,f){var g,h=d.match(c),i=d;return h&&a.ext[g=h[1]]&&(i=d+a.ext[g]),b.call(this,i,e,f)}};s(b);var t=function(a){var b=a.normalize;a.normalize=function(a,c,d){var e,f,g=a.length-1;return"/"===a[g]&&(e=a.substring(0,g).lastIndexOf("/"),f=a.substring(e+1,g),a+=f),b.call(this,a,c,d)}};t(b),"undefined"!=typeof b&&m(b);var u=function(a,b){var c=a.config;a.config=function(e){var f=g({},e);d(b,function(b,c){if(b.set&&f[c]){var d=b.set.call(a,f[c],e);void 0!==d&&(a[c]=d),delete f[c]}}),c.call(this,f)}},v=function(a,b,c){a[b]||(a[b]=c)};b.configMain="@config",b.paths[b.configMain]="stealconfig.js",b.env="development",b.ext={css:"$css",less:"$less"},b.logLevel=0;var w="bundles/*.css",x="bundles/*";v(b.paths,w,"dist/bundles/*css"),v(b.paths,x,"dist/bundles/*.js");var y={set:function(a){var c=l(a),d=h(a);b.configMain=c,b.paths[c]=c,C.call(this),this.baseURL=(d===a?".":d)+"/"}},z={set:function(a){this.main=a,C.call(this)}},A=function(a){return{set:function(b){this[a]="object"==typeof b&&"object"==typeof r.System[a]?g(this[a]||{},b||{}):b}}},B=function(a){var b=a.lastIndexOf("!");return-1!==b?a.substr(b+1):void 0},C=function(){if("production"===this.env&&this.main){var a=this.main,c=this.bundlesName||"bundles/",d=c+l(a);v(this.meta,d,{format:"amd"});var e=B(b.configMain),f=[a,b.configMain];e&&b.set(e,b.newModule({})),this.bundles[d]=f}},D="undefined"!=typeof module&&module.exports,E="less-1.7.0";u(b,{env:{set:function(a){b.env=a,C.call(this)}},baseUrl:A("baseURL"),root:A("baseURL"),config:y,configPath:y,startId:{set:function(a){z.set.call(this,n(a))}},main:z,stealPath:{set:function(a,c){var d=a.split("/");v(this.paths,"@dev",a+"/ext/dev.js"),v(this.paths,"$css",a+"/ext/css.js"),v(this.paths,"$less",a+"/ext/less.js"),v(this.paths,"npm",a+"/ext/npm.js"),v(this.paths,"npm-extension",a+"/ext/npm-extension.js"),v(this.paths,"npm-utils",a+"/ext/npm-utils.js"),v(this.paths,"npm-crawl",a+"/ext/npm-crawl.js"),v(this.paths,"semver",a+"/ext/semver.js"),v(this.paths,"bower",a+"/ext/bower.js"),this.paths["@traceur"]=a+"/ext/traceur.js",this.paths["@traceur-runtime"]=a+"/ext/traceur-runtime.js",D?b.register("less",[],!1,function(){var a=require;return a("less")}):(v(this.paths,"less",a+"/ext/"+E+".js"),c.root||c.baseUrl||c.baseURL||c.config||c.configPath||("steal"===i(d)&&(d.pop(),"bower_components"===i(d)&&(b.configMain="bower.json!bower",C.call(this),d.pop()),"node_modules"===i(d)&&(b.configMain="package.json!npm",C.call(this),d.pop())),this.baseURL=d.join("/")+"/"))}},bundle:{set:function(a){b.bundle=a}},bundlesPath:{set:function(a){return this.paths[w]=a+"/*css",this.paths[x]=a+"/*.js",a}},instantiated:{set:function(a){var b=this;d(a||{},function(a,c){b.set(c,b.newModule(a))})}}}),r.config=function(a){return"string"==typeof a?b[a]:void b.config(a)};var F=function(){var a,b,e,f={},g=document.getElementsByTagName("script"),h=g[g.length-1];if(h){a=h.src.split("?"),b=a.shift(),e=a.join("?"),a=e.split(","),b.indexOf("steal.production")>-1&&(f.env="production"),a[0]&&(f.startId=a[0]),a[1]&&(f.env=a[1]),a=b.split("/");{a.pop()}f.stealPath=a.join("/"),d(h.attributes,function(a){var b=c(0===a.nodeName.indexOf("data-")?a.nodeName.replace("data-",""):a.nodeName);f[b]=""===a.value?!0:a.value})}return f};return r.startup=function(c){if(a.document)var d=F();else var d={stealPath:__dirname};b.config(d),c&&b.config(c);return"production"==b.env?(o=b["import"](b.configMain),q=o.then(function(a){return b.main?b["import"](b.main):a})["catch"](function(a){})):"development"==b.env||"build"==b.env?(o=b["import"](b.configMain),p=o.then(function(){return c&&b.config(c),b["import"]("@dev")},function(a){return r.System["import"]("@dev")}),q=p.then(function(){if(!b.main||"build"===b.env)return o;var a=b.main;return"string"==typeof a&&(a=[a]),Promise.all(e(a,function(a){return b["import"](a)}))}).then(function(){r.dev&&r.dev.log("app loaded successfully")},function(a){})):void 0},r.done=function(){return q},r};if("undefined"!=typeof System&&b(System),"undefined"!=typeof window){var p=window.steal;window.steal=o(System),window.steal.startup(p&&"object"==typeof p&&p),window.steal.addSteal=b}else require("systemjs"),a.steal=o(System),a.steal.System=System,a.steal.dev=require("./ext/dev.js"),steal.clone=o,module.exports=a.steal,a.steal.addSteal=b}("undefined"==typeof window?global:window);

@@ -250,2 +250,6 @@ module("steal via system import");

asyncTest("allow truthy script options (#298)", function(){
makeIframe("basics/truthy_script_options.html");
});
module("json extension");

@@ -274,2 +278,4 @@

module("Bower extension");

@@ -276,0 +282,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc