Socket
Socket
Sign inDemoInstall

zone.js

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zone.js - npm Package Compare versions

Comparing version 0.5.10 to 0.5.11

lib/browser/jasmine-patch.ts

148

dist/jasmine-patch.js

@@ -1,72 +0,100 @@

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var jasminePatch = require('../jasmine/patch');
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
jasminePatch.apply();
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
},{"../jasmine/patch":2}],2:[function(require,module,exports){
(function (global){
'use strict';
// Patch jasmine's it and fit functions so that the `done` callback always resets the zone
// to the jasmine zone, which should be the root zone. (angular/zone.js#91)
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
function apply() {
if (!global.zone) {
throw new Error('zone.js does not seem to be installed');
}
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
if (!global.zone.isRootZone()) {
throw new Error('The jasmine patch should be called from the root zone');
}
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
var jasmineZone = global.zone;
var originalIt = global.it;
var originalFit = global.fit;
/******/ // Flag the module as loaded
/******/ module.loaded = true;
// Patch jasmine `done()` and `done.fail()` so that they execute in the root zone
var patchJasmineDone = function(jasmineDone) {
var done = jasmineZone.bind(jasmineDone);
if (typeof jasmineDone.fail === 'function') {
done.fail = jasmineZone.bind(jasmineDone.fail);
}
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
return done;
}
global.it = function zoneResettingIt(description, specFn, timeOut) {
if (specFn.length) {
originalIt(description, function zoneResettingSpecFn(done) {
specFn(patchJasmineDone(done));
}, timeOut);
} else {
originalIt(description, specFn, timeOut);
}
};
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
global.fit = function zoneResettingFit(description, specFn, timeOut) {
if (specFn.length) {
originalFit(description, function zoneResettingSpecFn(done) {
specFn(patchJasmineDone(done));
}, timeOut);
} else {
originalFit(description, specFn, timeOut);
}
};
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
// global beforeEach to check if we always start from the root zone
beforeEach(function() {
expect(global.zone.isRootZone()).toBe(true);
});
}
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
if (global.jasmine) {
module.exports = {
apply: apply
};
} else {
module.exports = {
apply: function() { }
};
}
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}]},{},[1]);
var jasminePatch = __webpack_require__(1);
jasminePatch.apply();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiamFzbWluZS1wYXRjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9icm93c2VyL2phc21pbmUtcGF0Y2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBWSxZQUFZLFdBQU0sa0JBQWtCLENBQUMsQ0FBQTtBQUVqRCxZQUFZLENBQUMsS0FBSyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBqYXNtaW5lUGF0Y2ggZnJvbSAnLi4vamFzbWluZS9wYXRjaCc7XG5cbmphc21pbmVQYXRjaC5hcHBseSgpO1xuIl19
/***/ },
/* 1 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {'use strict';
// Patch jasmine's it and fit functions so that the `done` callback always resets the zone
// to the jasmine zone, which should be the root zone. (angular/zone.js#91)
function apply() {
if (!global.zone) {
throw new Error('zone.js does not seem to be installed');
}
if (!global.zone.isRootZone()) {
throw new Error('The jasmine patch should be called from the root zone');
}
// When you have in async test (test with `done` argument) jasmine will
// execute the next test synchronously in the done handle. This makes sense
// for most tests, but now with zones. With zones running next test
// synchronously means that the current zone does not get cleared. This
// results in a chain of nested zones, which makes it hard to reason about
// it. We override the `clearStack` method which forces jasmine to always
// drain the stack before next test gets executed.
jasmine.QueueRunner = (function (SuperQueueRunner) {
// Subclass the `QueueRunner` and override the `clearStack` mothed.
function alwaysClearStack(fn) {
global.zone.setTimeoutUnpatched(fn, 0);
}
function QueueRunner(options) {
options.clearStack = alwaysClearStack;
SuperQueueRunner.call(this, options);
}
QueueRunner.prototype = SuperQueueRunner.prototype;
return QueueRunner;
})(jasmine.QueueRunner);
}
exports.apply = apply;
if (global.jasmine) {
module.exports = {
apply: apply
};
}
else {
module.exports = {
apply: function () { }
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvamFzbWluZS9wYXRjaC50cyJdLCJuYW1lcyI6WyJhcHBseSIsImFsd2F5c0NsZWFyU3RhY2siLCJRdWV1ZVJ1bm5lciJdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxDQUFDO0FBQ2IsMEZBQTBGO0FBQzFGLDJFQUEyRTtBQUUzRTtJQUNFQSxFQUFFQSxDQUFDQSxDQUFDQSxDQUFDQSxNQUFNQSxDQUFDQSxJQUFJQSxDQUFDQSxDQUFDQ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bm5lci5wcm90b3R5cGU7XG4gICAgcmV0dXJuIFF1ZXVlUnVubmVyO1xuICB9KSgoPGFueT5qYXNtaW5lKS5RdWV1ZVJ1bm5lcik7XG5cbn1cblxuaWYgKCg8YW55Pmdsb2JhbCkuamFzbWluZSkge1xuICBtb2R1bGUuZXhwb3J0cyA9IHtcbiAgICBhcHBseTogYXBwbHlcbiAgfTtcbn0gZWxzZSB7XG4gIG1vZHVsZS5leHBvcnRzID0ge1xuICAgIGFwcGx5OiBmdW5jdGlvbigpIHsgfVxuICB9O1xufVxuIl19
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ }
/******/ ]);

@@ -1,1 +0,1 @@

!function n(e,o,t){function i(f,u){if(!o[f]){if(!e[f]){var a="function"==typeof require&&require;if(!u&&a)return a(f,!0);if(r)return r(f,!0);var c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c}var l=o[f]={exports:{}};e[f][0].call(l.exports,function(n){var o=e[f][1][n];return i(o?o:n)},l,l.exports,n,e,o,t)}return o[f].exports}for(var r="function"==typeof require&&require,f=0;f<t.length;f++)i(t[f]);return i}({1:[function(n,e,o){var t=n("../jasmine/patch");t.apply()},{"../jasmine/patch":2}],2:[function(n,e,o){(function(n){"use strict";function o(){if(!n.zone)throw new Error("zone.js does not seem to be installed");if(!n.zone.isRootZone())throw new Error("The jasmine patch should be called from the root zone");var e=n.zone,o=n.it,t=n.fit,i=function(n){var o=e.bind(n);return"function"==typeof n.fail&&(o.fail=e.bind(n.fail)),o};n.it=function(n,e,t){e.length?o(n,function(n){e(i(n))},t):o(n,e,t)},n.fit=function(n,e,o){e.length?t(n,function(n){e(i(n))},o):t(n,e,o)},beforeEach(function(){expect(n.zone.isRootZone()).toBe(!0)})}n.jasmine?e.exports={apply:o}:e.exports={apply:function(){}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
!function(e){function n(t){if(o[t])return o[t].exports;var r=o[t]={exports:{},id:t,loaded:!1};return e[t].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var o={};return n.m=e,n.c=o,n.p="",n(0)}([function(e,exports,n){var o=n(1);o.apply()},function(e,exports){(function(n){"use strict";function o(){if(!n.zone)throw new Error("zone.js does not seem to be installed");if(!n.zone.isRootZone())throw new Error("The jasmine patch should be called from the root zone");jasmine.QueueRunner=function(e){function o(e){n.zone.setTimeoutUnpatched(e,0)}function t(n){n.clearStack=o,e.call(this,n)}return t.prototype=e.prototype,t}(jasmine.QueueRunner)}exports.apply=o,n.jasmine?e.exports={apply:o}:e.exports={apply:function(){}}}).call(exports,function(){return this}())}]);

@@ -1,106 +0,138 @@

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
if (!global.Zone) {
throw new Error('zone.js should be installed before loading the long stack trace zone');
}
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
global.Zone.longStackTraceZone = require('../zones/long-stack-trace.js');
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"../zones/long-stack-trace.js":2}],2:[function(require,module,exports){
(function (global){
/*
* Wrapped stacktrace
*
* We need this because in some implementations, constructing a trace is slow
* and so we want to defer accessing the trace for as long as possible
*/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
'use strict';
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
function _Stacktrace(e) {
this._e = e;
};
/******/ // Flag the module as loaded
/******/ module.loaded = true;
_Stacktrace.prototype.get = function () {
if (global.zone.stackFramesFilter && this._e.stack) {
return this._e.stack
.split('\n')
.filter(global.zone.stackFramesFilter)
.join('\n');
}
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
return this._e.stack;
}
function _getStacktraceWithUncaughtError () {
return new _Stacktrace(new Error());
}
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
function _getStacktraceWithCaughtError () {
try {
throw new Error();
} catch (e) {
return new _Stacktrace(e);
}
}
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
// Some implementations of exception handling don't create a stack trace if the exception
// isn't thrown, however it's faster not to actually throw the exception.
var stack = _getStacktraceWithUncaughtError();
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
var _getStacktrace = stack && stack._e.stack
? _getStacktraceWithUncaughtError
: _getStacktraceWithCaughtError;
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = {
getLongStacktrace: function (exception) {
var traces = [];
var currentZone = this;
if (exception) {
if (currentZone.stackFramesFilter && exception.stack) {
traces.push(exception.stack.split('\n')
.filter(currentZone.stackFramesFilter)
.join('\n'));
} else {
traces.push(exception.stack);
}
}
var now = Date.now();
/* WEBPACK VAR INJECTION */(function(global) {var long_stack_trace_1 = __webpack_require__(1);
if (!global.Zone) {
throw new Error('zone.js should be installed before loading the long stack trace zone');
}
global.Zone.longStackTraceZone = long_stack_trace_1.longStackTraceZone;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS16b25lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2Jyb3dzZXIvbG9uZy1zdGFjay10cmFjZS16b25lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlDQUFpQywyQkFBMkIsQ0FBQyxDQUFBO0FBRTdELEVBQUUsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDakIsTUFBTSxJQUFJLEtBQUssQ0FBQyxzRUFBc0UsQ0FBQyxDQUFDO0FBQzFGLENBQUM7QUFFRCxNQUFNLENBQUMsSUFBSSxDQUFDLGtCQUFrQixHQUFHLHFDQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtsb25nU3RhY2tUcmFjZVpvbmV9IGZyb20gJy4uL3pvbmVzL2xvbmctc3RhY2stdHJhY2UnO1xuXG5pZiAoIWdsb2JhbC5ab25lKSB7XG4gIHRocm93IG5ldyBFcnJvcignem9uZS5qcyBzaG91bGQgYmUgaW5zdGFsbGVkIGJlZm9yZSBsb2FkaW5nIHRoZSBsb25nIHN0YWNrIHRyYWNlIHpvbmUnKTtcbn1cblxuZ2xvYmFsLlpvbmUubG9uZ1N0YWNrVHJhY2Vab25lID0gbG9uZ1N0YWNrVHJhY2Vab25lO1xuIl19
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
while (currentZone && currentZone.constructedAtException) {
traces.push(
'--- ' + (Date(currentZone.constructedAtTime)).toString() +
' - ' + (now - currentZone.constructedAtTime) + 'ms ago',
currentZone.constructedAtException.get());
currentZone = currentZone.parent;
}
/***/ },
/* 1 */
/***/ function(module, exports) {
return traces.join('\n');
},
/* WEBPACK VAR INJECTION */(function(global) {/*
* Wrapped stacktrace
*
* We need this because in some implementations, constructing a trace is slow
* and so we want to defer accessing the trace for as long as possible
*/
'use strict';
function _Stacktrace(e) {
this._e = e;
}
_Stacktrace.prototype.get = function () {
if (global.zone.stackFramesFilter && this._e.stack) {
return this._e.stack
.split('\n')
.filter(global.zone.stackFramesFilter)
.join('\n');
}
return this._e.stack;
};
function _getStacktraceWithUncaughtError() {
return new _Stacktrace(new Error());
}
function _getStacktraceWithCaughtError() {
try {
throw new Error();
}
catch (e) {
return new _Stacktrace(e);
}
}
// Some implementations of exception handling don't create a stack trace if the exception
// isn't thrown, however it's faster not to actually throw the exception.
var stack = _getStacktraceWithUncaughtError();
var _getStacktrace = stack && stack._e.stack
? _getStacktraceWithUncaughtError
: _getStacktraceWithCaughtError;
exports.longStackTraceZone = {
getLongStacktrace: function (exception) {
var traces = [];
var currentZone = this;
if (exception) {
if (currentZone.stackFramesFilter && exception.stack) {
traces.push(exception.stack.split('\n')
.filter(currentZone.stackFramesFilter)
.join('\n'));
}
else {
traces.push(exception.stack);
}
}
var now = Date.now();
while (currentZone && currentZone.constructedAtException) {
traces.push('--- ' + (new Date(currentZone.constructedAtTime)).toString() +
' - ' + (now - currentZone.constructedAtTime) + 'ms ago', currentZone.constructedAtException.get());
currentZone = currentZone.parent;
}
return traces.join('\n');
},
stackFramesFilter: function (line) {
return !/zone(-microtask)?(\.min)?\.js/.test(line);
},
onError: function (exception) {
var reporter = this.reporter || console.log.bind(console);
reporter(exception.toString());
reporter(this.getLongStacktrace(exception));
},
'$fork': function (parentFork) {
return function () {
var newZone = parentFork.apply(this, arguments);
newZone.constructedAtException = _getStacktrace();
newZone.constructedAtTime = Date.now();
return newZone;
};
}
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9uZy1zdGFjay10cmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi96b25lcy9sb25nLXN0YWNrLXRyYWNlLnRzIl0sIm5hbWVzIjpbIl9TdGFja3RyYWNlIiwiX2dldFN0YWNrdHJhY2VXaXRoVW5jYXVnaHRFcnJvciIsIl9nZXRTdGFja3RyYWNlV2l0aENhdWdodEVycm9yIl0sIm1hcHBpbmdz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F0ZS5ub3coKTtcbiAgICAgIHJldHVybiBuZXdab25lO1xuICAgIH1cbiAgfVxufTtcblxuIl19
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
stackFramesFilter: function (line) {
return !/zone(-microtask)?(\.min)?\.js/.test(line);
},
onError: function (exception) {
var reporter = this.reporter || console.log.bind(console);
reporter(exception.toString());
reporter(this.getLongStacktrace(exception));
},
'$fork': function (parentFork) {
return function() {
var newZone = parentFork.apply(this, arguments);
newZone.constructedAtException = _getStacktrace();
newZone.constructedAtTime = Date.now();
return newZone;
}
}
};
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}]},{},[1]);
/***/ }
/******/ ]);

@@ -1,1 +0,1 @@

!function t(e,n,r){function o(c,s){if(!n[c]){if(!e[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[c]={exports:{}};e[c][0].call(f.exports,function(t){var n=e[c][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c<r.length;c++)o(r[c]);return o}({1:[function(t,e,n){(function(e){"use strict";if(!e.Zone)throw new Error("zone.js should be installed before loading the long stack trace zone");e.Zone.longStackTraceZone=t("../zones/long-stack-trace.js")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../zones/long-stack-trace.js":2}],2:[function(t,e,n){(function(t){"use strict";function n(t){this._e=t}function r(){return new n(new Error)}function o(){try{throw new Error}catch(t){return new n(t)}}n.prototype.get=function(){return t.zone.stackFramesFilter&&this._e.stack?this._e.stack.split("\n").filter(t.zone.stackFramesFilter).join("\n"):this._e.stack};var i=r(),c=i&&i._e.stack?r:o;e.exports={getLongStacktrace:function(t){var e=[],n=this;t&&(n.stackFramesFilter&&t.stack?e.push(t.stack.split("\n").filter(n.stackFramesFilter).join("\n")):e.push(t.stack));for(var r=Date.now();n&&n.constructedAtException;)e.push("--- "+Date(n.constructedAtTime).toString()+" - "+(r-n.constructedAtTime)+"ms ago",n.constructedAtException.get()),n=n.parent;return e.join("\n")},stackFramesFilter:function(t){return!/zone(-microtask)?(\.min)?\.js/.test(t)},onError:function(t){var e=this.reporter||console.log.bind(console);e(t.toString()),e(this.getLongStacktrace(t))},$fork:function(t){return function(){var e=t.apply(this,arguments);return e.constructedAtException=c(),e.constructedAtTime=Date.now(),e}}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,exports,n){(function(t){var e=n(1);if(!t.Zone)throw new Error("zone.js should be installed before loading the long stack trace zone");t.Zone.longStackTraceZone=e.longStackTraceZone}).call(exports,function(){return this}())},function(t,exports){(function(t){"use strict";function n(t){this._e=t}function e(){return new n(new Error)}function r(){try{throw new Error}catch(t){return new n(t)}}n.prototype.get=function(){return t.zone.stackFramesFilter&&this._e.stack?this._e.stack.split("\n").filter(t.zone.stackFramesFilter).join("\n"):this._e.stack};var o=e(),c=o&&o._e.stack?e:r;exports.longStackTraceZone={getLongStacktrace:function(t){var n=[],e=this;t&&(e.stackFramesFilter&&t.stack?n.push(t.stack.split("\n").filter(e.stackFramesFilter).join("\n")):n.push(t.stack));for(var r=Date.now();e&&e.constructedAtException;)n.push("--- "+new Date(e.constructedAtTime).toString()+" - "+(r-e.constructedAtTime)+"ms ago",e.constructedAtException.get()),e=e.parent;return n.join("\n")},stackFramesFilter:function(t){return!/zone(-microtask)?(\.min)?\.js/.test(t)},onError:function(t){var n=this.reporter||console.log.bind(console);n(t.toString()),n(this.getLongStacktrace(t))},$fork:function(t){return function(){var n=t.apply(this,arguments);return n.constructedAtException=c(),n.constructedAtTime=Date.now(),n}}}}).call(exports,function(){return this}())}]);

@@ -1,1 +0,8 @@

!function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){(function(t){"use strict";var n=e("../core"),r=e("../microtask"),o=e("../patch/browser"),i=e("es6-promise");t.Zone&&console.warn("Zone already exported on window the object!"),t.Zone=r.addMicrotaskSupport(n.Zone),t.zone=new t.Zone,t.Promise=i.Promise,o.apply()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../core":2,"../microtask":4,"../patch/browser":5,"es6-promise":17}],2:[function(e,t,n){(function(n){"use strict";function r(e,t){var n=arguments.length?Object.create(e):this;return n.parent=e||null,Object.keys(t||{}).forEach(function(r){var o=r.substr(1);"$"===r[0]?n[o]=t[r](e[o]||function(){}):"+"===r[0]?e[o]?n[o]=function(){var n=e[o].apply(this,arguments);return t[r].apply(this,arguments),n}:n[o]=t[r]:"-"===r[0]?e[o]?n[o]=function(){return t[r].apply(this,arguments),e[o].apply(this,arguments)}:n[o]=t[r]:n[r]="object"==typeof t[r]?JSON.parse(JSON.stringify(t[r])):t[r]}),n.$id=r.nextId++,n}var o=e("./keys");r.prototype={constructor:r,fork:function(e){return this.onZoneCreated(),new r(this,e)},bind:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},bindOnce:function(e){var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},isRootZone:function(){return null===this.parent},run:function(e,t,r){r=r||[];var o=n.zone;n.zone=this;try{return this.beforeTask(),e.apply(t,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),n.zone=o}},onError:null,beforeTask:function(){},onZoneCreated:function(){},afterTask:function(){},enqueueTask:function(){},dequeueTask:function(){},addEventListener:function(){return this[o.common.addEventListener].apply(this,arguments)},removeEventListener:function(){return this[o.common.removeEventListener].apply(this,arguments)}},r.nextId=1,r.bindPromiseFn=e("./patch/promise").bindPromiseFn,t.exports={Zone:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3,"./patch/promise":12}],3:[function(e,t,n){function r(e){return"_zone$"+e}var o={addEventListener:r("addEventListener"),removeEventListener:r("removeEventListener")};t.exports={create:r,common:o}},{}],4:[function(e,t,n){(function(n){"use strict";function r(e){s._asap(this.bind(e))}function o(e){return e.prototype.scheduleMicrotask=r,e}var i,u="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),a=n.navigator&&n.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;u&&!a&&(i=Promise.resolve());var s=e("es6-promise").Promise;i&&s._setScheduler(function(e){i.then(e)}),s._setAsap(function(e,t){n.zone.scheduleMicrotask(function(){e(t)})}),t.exports={addMicrotaskSupport:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"es6-promise":17}],5:[function(e,t,n){(function(n){"use strict";function r(){o.patchSetClearFunction(n,["timeout","interval","immediate"]),o.patchRequestAnimationFrame(n,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame"]),o.patchFunction(n,["alert","prompt"]),c.apply(),f.apply(),i.apply(),u.patchClass("MutationObserver"),u.patchClass("WebKitMutationObserver"),a.apply(),s.apply(),p.apply(),l.apply()}var o=e("./functions"),i=e("./promise"),u=e("./mutation-observer"),a=e("./define-property"),s=e("./register-element"),c=(e("./websocket"),e("./event-target")),f=e("./property-descriptor"),p=e("./geolocation"),l=e("./file-reader");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./define-property":6,"./event-target":7,"./file-reader":8,"./functions":9,"./geolocation":10,"./mutation-observer":11,"./promise":12,"./property-descriptor":13,"./register-element":14,"./websocket":15}],6:[function(e,t,n){"use strict";function r(){Object.defineProperty=function(e,t,n){if(i(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=u(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=u(e,n,t[n])}),f(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return i(e,t)&&(n.configurable=!1),n}}function o(e,t,n){return n=u(e,t,n),s(e,t,n)}function i(e,t){return e&&e[p]&&e[p][t]}function u(e,t,n){return n.configurable=!0,n.configurable||(e[p]||s(e,p,{writable:!0,value:{}}),e[p][t]=!0),n}var a=e("../keys"),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.create,p=a.create("unconfigurables");t.exports={apply:r,_redefineProperty:o}},{"../keys":3}],7:[function(e,t,n){(function(n){"use strict";function r(){if(n.EventTarget)o.patchEventTargetMethods(n.EventTarget.prototype);else{var e=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];e.forEach(function(e){var t=n[e]&&n[e].prototype;t&&t.addEventListener&&o.patchEventTargetMethods(t)}),"undefined"!=typeof window&&o.patchEventTargetMethods(window)}}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16}],8:[function(e,t,n){"use strict";function r(){o.patchClass("FileReader")}var o=e("../utils");t.exports={apply:r}},{"../utils":16}],9:[function(e,t,n){(function(n){"use strict";function r(e,t){t.map(function(e){return e[0].toUpperCase()+e.substr(1)}).forEach(function(t){var r="set"+t,o=e[r];if(o){var i="clear"+t,u={},s="setInterval"===r?a.bindArguments:a.bindArgumentsOnce;n.zone[r]=function(t){var n,r=t;arguments[0]=function(){return delete u[n],r.apply(this,arguments)};var i=s(arguments);return n=o.apply(e,i),u[n]=!0,n},e[r]=function(){return n.zone[r].apply(this,arguments)};var c=e[i];n.zone[i]=function(e){return u[e]&&(delete u[e],n.zone.dequeueTask()),c.apply(this,arguments)},e[i]=function(){return n.zone[i].apply(this,arguments)}}})}function o(e,t){t.forEach(function(t){var r=e[t];r&&(n.zone[t]=function(t){var o=n.zone.isRootZone()?n.zone.fork():n.zone;return t&&(arguments[0]=function(){return o.run(t,this,arguments)}),r.apply(e,arguments)},e[t]=function(){return n.zone[t].apply(this,arguments)})})}function i(e,t){t.forEach(function(t){var r=e[t];r&&(n.zone[t]=function(t){arguments[0]=function(){return t.apply(this,arguments)};var n=a.bindArgumentsOnce(arguments);return r.apply(e,n)},e[t]=function(){return zone[t].apply(this,arguments)})})}function u(e,t){t.forEach(function(t){var r=e[t];n.zone[t]=function(){return r.apply(e,arguments)},e[t]=function(){return n.zone[t].apply(this,arguments)}})}var a=e("../utils");t.exports={patchSetClearFunction:r,patchSetFunction:i,patchRequestAnimationFrame:o,patchFunction:u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16}],10:[function(e,t,n){(function(n){"use strict";function r(){n.navigator&&n.navigator.geolocation&&o.patchPrototype(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16}],11:[function(e,t,n){(function(n){"use strict";function r(e){var t=n[e];if(t){n[e]=function(e){this[i]=new t(n.zone.bind(e,!0)),this[u]=n.zone};var r=new t(function(){});n[e].prototype.disconnect=function(){var e=this[i].disconnect.apply(this[i],arguments);return this[a]&&(this[u].dequeueTask(),this[a]=!1),e},n[e].prototype.observe=function(){return this[a]||(this[u].enqueueTask(),this[a]=!0),this[i].observe.apply(this[i],arguments)};var o;for(o in r)!function(t){"undefined"==typeof n[e].prototype&&("function"==typeof r[t]?n[e].prototype[t]=function(){return this[i][t].apply(this[i],arguments)}:Object.defineProperty(n[e].prototype,t,{set:function(e){"function"==typeof e?this[i][t]=n.zone.bind(e):this[i][t]=e},get:function(){return this[i][t]}}))}(o)}}var o=e("../keys"),i=o.create("originalInstance"),u=o.create("creationZone"),a=o.create("isActive");t.exports={patchClass:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../keys":3}],12:[function(e,t,n){(function(n){"use strict";function r(e,t){var r=n,o=e.every(function(e){return r=r[e]});o&&t.forEach(function(e){var t=r[e];t&&(r[e]=u(t))})}function o(e){var t=e.then;e.then=function(){var n=a.bindArguments(arguments),r=t.apply(e,n);return o(r)};var n=e["catch"];return e["catch"]=function(){var t=a.bindArguments(arguments),r=n.apply(e,t);return o(r)},e}function i(){if(n.Promise){a.patchPrototype(Promise.prototype,["then","catch"]);var e=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];e.forEach(function(e){r(e[0],e[1])})}}var u,a=e("../utils");u=n.Promise?function(e){return function(){var t=e.apply(this,arguments);return t instanceof Promise?t:new Promise(function(e,n){t.then(e,n)})}}:function(e){return function(){return o(e.apply(this,arguments))}},t.exports={apply:i,bindPromiseFn:u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16}],13:[function(e,t,n){(function(n){"use strict";function r(){if(!a.isWebWorker()){var e="undefined"!=typeof WebSocket;if(o()){var t=c.map(function(e){return"on"+e});a.patchProperties(HTMLElement.prototype,t),a.patchProperties(XMLHttpRequest.prototype),e&&a.patchProperties(WebSocket.prototype)}else i(),a.patchClass("XMLHttpRequest"),e&&u.apply()}}function o(){if(!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(HTMLElement.prototype,"onclick",{get:function(){return!0}});var t=document.createElement("div"),n=!!t.onclick;return Object.defineProperty(HTMLElement.prototype,"onclick",{}),n}function i(){c.forEach(function(e){var t="on"+e;document.addEventListener(e,function(e){for(var r,o=e.target;o;)o[t]&&!o[t][f]&&(r=n.zone.bind(o[t]),r[f]=o[t],o[t]=r),o=o.parentElement},!0)})}var u=e("./websocket"),a=e("../utils"),s=e("../keys"),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" "),f=s.create("unbound");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../keys":3,"../utils":16,"./websocket":15}],14:[function(e,t,n){(function(n){"use strict";function r(){if(!i.isWebWorker()&&"registerElement"in n.document){var e=document.registerElement,t=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(r,i){return i&&i.prototype&&t.forEach(function(e){if(i.prototype.hasOwnProperty(e)){var t=Object.getOwnPropertyDescriptor(i.prototype,e);t&&t.value?(t.value=n.zone.bind(t.value),o(i.prototype,e,t)):i.prototype[e]=n.zone.bind(i.prototype[e])}else i.prototype[e]&&(i.prototype[e]=n.zone.bind(i.prototype[e]))}),e.apply(document,[r,i])}}}var o=e("./define-property")._redefineProperty,i=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16,"./define-property":6}],15:[function(e,t,n){(function(n){"use strict";function r(){var e=n.WebSocket;o.patchEventTargetMethods(e.prototype),n.WebSocket=function(t,n){var r,i=arguments.length>1?new e(t,n):new e(t),u=Object.getOwnPropertyDescriptor(i,"onmessage");return u&&u.configurable===!1?(r=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(e){r[e]=function(){return i[e].apply(i,arguments)}})):r=i,o.patchProperties(r,["onclose","onerror","onmessage","onopen"]),r}}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":16}],16:[function(e,t,n){(function(n){"use strict";function r(e){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=n.zone.bind(e[t]));return e}function o(e){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=n.zone.bindOnce(e[t]));return e}function i(e,t){t.forEach(function(t){var n=e[t];n&&(e[t]=function(){return n.apply(this,r(arguments))})})}function u(){return"undefined"==typeof document}function a(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function s(e,t){(t||function(){var t=[];for(var n in e)t.push(n);return t}().filter(function(e){return"on"===e.substr(0,2)})).forEach(function(t){a(e,t)})}function c(e){e[p.common.addEventListener]=e.addEventListener,e.addEventListener=function(e,t,r){if(t&&"[object FunctionWrapper]"!==t.toString()){var o,i=e+(r?"$capturing":"$bubbling");o=t.handleEvent?function(e){return function(){e.handleEvent.apply(e,arguments)}}(t):t,t[l]=o,t[d]=t[d]||{},t[d][i]=t[d][i]||zone.bind(o),arguments[1]=t[d][i]}var u=this||n;return n.zone.addEventListener.apply(u,arguments)},e[p.common.removeEventListener]=e.removeEventListener,e.removeEventListener=function(e,t,r){var o=e+(r?"$capturing":"$bubbling");if(t&&t[d]&&t[d][o]){var i=t[d];arguments[1]=i[o],delete i[o],n.zone.dequeueTask(t[l])}var u=this||n,a=n.zone.removeEventListener.apply(u,arguments);return a}}function f(e){var t=n[e];if(t){n[e]=function(){var e=r(arguments);switch(e.length){case 0:this[y]=new t;break;case 1:this[y]=new t(e[0]);break;case 2:this[y]=new t(e[0],e[1]);break;case 3:this[y]=new t(e[0],e[1],e[2]);break;case 4:this[y]=new t(e[0],e[1],e[2],e[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new t;for(o in i)!function(t){"function"==typeof i[t]?n[e].prototype[t]=function(){return this[y][t].apply(this[y],arguments)}:Object.defineProperty(n[e].prototype,t,{set:function(e){"function"==typeof e?this[y][t]=n.zone.bind(e):this[y][t]=e},get:function(){return this[y][t]}})}(o);for(o in t)"prototype"!==o&&t.hasOwnProperty(o)&&(n[e][o]=t[o])}}var p=e("./keys"),l=p.create("originalFn"),d=p.create("boundFns"),y=p.create("originalInstance");t.exports={bindArguments:r,bindArgumentsOnce:o,patchPrototype:i,patchProperty:a,patchProperties:s,patchEventTargetMethods:c,patchClass:f,isWebWorker:u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3}],17:[function(e,t,n){(function(n,r){(function(){"use strict";function o(e){return"function"==typeof e||"object"==typeof e&&null!==e}function i(e){return"function"==typeof e}function u(e){return"object"==typeof e&&null!==e}function a(e){U=e}function s(e){G=e}function c(){return function(){n.nextTick(y)}}function f(){return function(){$(y)}}function p(){var e=0,t=new V(y),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=y,function(){e.port2.postMessage(0)}}function d(){return function(){setTimeout(y,1)}}function y(){for(var e=0;Y>e;e+=2){var t=te[e],n=te[e+1];t(n),te[e]=void 0,te[e+1]=void 0}Y=0}function h(){try{var t=e,n=t("vertx");return $=n.runOnLoop||n.runOnContext,f()}catch(r){return d()}}function v(){}function g(){return new TypeError("You cannot resolve a promise with itself")}function m(){return new TypeError("A promises callback cannot return that same promise.")}function b(e){try{return e.then}catch(t){return ie.error=t,ie}}function w(e,t,n,r){try{e.call(t,n,r)}catch(o){return o}}function E(e,t,n){G(function(e){var r=!1,o=w(n,t,function(n){r||(r=!0,t!==n?P(e,n):x(e,n))},function(t){r||(r=!0,T(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,T(e,o))},e)}function _(e,t){t._state===re?x(e,t._result):t._state===oe?T(e,t._result):j(t,void 0,function(t){P(e,t)},function(t){T(e,t)})}function k(e,t){if(t.constructor===e.constructor)_(e,t);else{var n=b(t);n===ie?T(e,ie.error):void 0===n?x(e,t):i(n)?E(e,t,n):x(e,t)}}function P(e,t){e===t?T(e,g()):o(t)?k(e,t):x(e,t)}function O(e){e._onerror&&e._onerror(e._result),z(e)}function x(e,t){e._state===ne&&(e._result=t,e._state=re,0!==e._subscribers.length&&G(z,e))}function T(e,t){e._state===ne&&(e._state=oe,e._result=t,G(O,e))}function j(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+re]=n,o[i+oe]=r,0===i&&e._state&&G(z,e)}function z(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,o,i=e._result,u=0;u<t.length;u+=3)r=t[u],o=t[u+n],r?C(n,r,o,i):o(i);e._subscribers.length=0}}function L(){this.error=null}function A(e,t){try{return e(t)}catch(n){return ue.error=n,ue}}function C(e,t,n,r){var o,u,a,s,c=i(n);if(c){if(o=A(n,r),o===ue?(s=!0,u=o.error,o=null):a=!0,t===o)return void T(t,m())}else o=r,a=!0;t._state!==ne||(c&&a?P(t,o):s?T(t,u):e===re?x(t,o):e===oe&&T(t,o))}function M(e,t){try{t(function(t){P(e,t)},function(t){T(e,t)})}catch(n){T(e,n)}}function S(e,t){var n=this;n._instanceConstructor=e,n.promise=new e(v),n._validateInput(t)?(n._input=t,n.length=t.length,n._remaining=t.length,n._init(),0===n.length?x(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&x(n.promise,n._result))):T(n.promise,n._validationError())}function q(e){return new ae(this,e).promise}function F(e){function t(e){P(o,e)}function n(e){T(o,e)}var r=this,o=new r(v);if(!K(e))return T(o,new TypeError("You must pass an array to race.")),o;for(var i=e.length,u=0;o._state===ne&&i>u;u++)j(r.resolve(e[u]),void 0,t,n);return o}function W(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(v);return P(n,e),n}function R(e){var t=this,n=new t(v);return T(n,e),n}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function D(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(e){this._id=le++,this._state=void 0,this._result=void 0,this._subscribers=[],v!==e&&(i(e)||Z(),this instanceof H||D(),M(this,e))}function I(){var e;if("undefined"!=typeof r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(e.Promise=de)}var N;N=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var $,U,X,K=N,Y=0,G=({}.toString,function(e,t){te[Y]=e,te[Y+1]=t,Y+=2,2===Y&&(U?U(y):X())}),J="undefined"!=typeof window?window:void 0,B=J||{},V=B.MutationObserver||B.WebKitMutationObserver,Q="undefined"!=typeof n&&"[object process]"==={}.toString.call(n),ee="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,te=new Array(1e3);X=Q?c():V?p():ee?l():void 0===J&&"function"==typeof e?h():d();var ne=void 0,re=1,oe=2,ie=new L,ue=new L;S.prototype._validateInput=function(e){return K(e)},S.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},S.prototype._init=function(){this._result=new Array(this.length)};var ae=S;S.prototype._enumerate=function(){for(var e=this,t=e.length,n=e.promise,r=e._input,o=0;n._state===ne&&t>o;o++)e._eachEntry(r[o],o)},S.prototype._eachEntry=function(e,t){var n=this,r=n._instanceConstructor;u(e)?e.constructor===r&&e._state!==ne?(e._onerror=null,n._settledAt(e._state,t,e._result)):n._willSettleAt(r.resolve(e),t):(n._remaining--,n._result[t]=e)},S.prototype._settledAt=function(e,t,n){var r=this,o=r.promise;o._state===ne&&(r._remaining--,e===oe?T(o,n):r._result[t]=n),0===r._remaining&&x(o,r._result)},S.prototype._willSettleAt=function(e,t){var n=this;j(e,void 0,function(e){n._settledAt(re,t,e)},function(e){n._settledAt(oe,t,e)})};var se=q,ce=F,fe=W,pe=R,le=0,de=H;H.all=se,H.race=ce,H.resolve=fe,H.reject=pe,H._setScheduler=a,H._setAsap=s,H._asap=G,H.prototype={constructor:H,then:function(e,t){var n=this,r=n._state;if(r===re&&!e||r===oe&&!t)return this;var o=new this.constructor(v),i=n._result;if(r){var u=arguments[r-1];G(function(){C(r,o,u,i)})}else j(n,o,e,t);return o},"catch":function(e){return this.then(null,e)}};var ye=I,he={Promise:de,polyfill:ye};"function"==typeof define&&define.amd?define(function(){return he}):"undefined"!=typeof t&&t.exports?t.exports=he:"undefined"!=typeof this&&(this.ES6Promise=he),ye()}).call(this)}).call(this,{},"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,exports,e){(function(t){"use strict";var n=e(1),r=e(2),o=e(6),i=e(10);o.Zone.prototype.scheduleMicrotask?console.warn("Zone-microtasks already exported on window the object!"):(n.addMicrotaskSupport(o.Zone),t.Zone=o.Zone,t.zone=new t.Zone,t.Promise=r.Promise,i.apply())}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(t){u._asap(this.bind(t))}function r(t){return t.prototype.scheduleMicrotask=n,t}var o,i="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),a=t.navigator&&t.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i&&!a&&(o=Promise.resolve());var u=e(2).Promise;o&&u._setScheduler(function(t){o.then(t)}),u._setAsap(function(e,n){t.zone.scheduleMicrotask(function(){e(n)})}),exports.addMicrotaskSupport=r}).call(exports,function(){return this}())},function(t,exports,e){var n;(function(t,r){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 3.0.2
*/
(function(){"use strict";function o(t){return"function"==typeof t||"object"==typeof t&&null!==t}function i(t){return"function"==typeof t}function a(t){return"object"==typeof t&&null!==t}function u(t){X=t}function c(t){J=t}function s(){return function(){process.nextTick(h)}}function p(){return function(){U(h)}}function f(){var t=0,e=new Q(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function l(){var t=new MessageChannel;return t.port1.onmessage=h,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(h,1)}}function h(){for(var t=0;Y>t;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}Y=0}function v(){try{var t=e(4);return U=t.runOnLoop||t.runOnContext,p()}catch(n){return d()}}function y(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function g(){return new TypeError("A promises callback cannot return that same promise.")}function b(t){try{return t.then}catch(e){return at.error=e,at}}function w(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function k(t,e,n){J(function(t){var r=!1,o=w(n,e,function(n){r||(r=!0,e!==n?T(t,n):O(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function E(t,e){e._state===ot?O(t,e._result):e._state===it?j(t,e._result):z(e,void 0,function(e){T(t,e)},function(e){j(t,e)})}function _(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=b(e);n===at?j(t,at.error):void 0===n?O(t,e):i(n)?k(t,e,n):O(t,e)}}function T(t,e){t===e?j(t,m()):o(e)?_(t,e):O(t,e)}function P(t){t._onerror&&t._onerror(t._result),L(t)}function O(t,e){t._state===rt&&(t._result=e,t._state=ot,0!==t._subscribers.length&&J(L,t))}function j(t,e){t._state===rt&&(t._state=it,t._result=e,J(P,t))}function z(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ot]=n,o[i+it]=r,0===i&&t._state&&J(L,t)}function L(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?S(n,r,o,i):o(i);t._subscribers.length=0}}function M(){this.error=null}function A(t,e){try{return t(e)}catch(n){return ut.error=n,ut}}function S(t,e,n,r){var o,a,u,c,s=i(n);if(s){if(o=A(n,r),o===ut?(c=!0,a=o.error,o=null):u=!0,e===o)return void j(e,g())}else o=r,u=!0;e._state!==rt||(s&&u?T(e,o):c?j(e,a):t===ot?O(e,o):t===it&&j(e,o))}function x(t,e){try{e(function(e){T(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function C(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(y),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?O(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&O(n.promise,n._result))):j(n.promise,n._validationError())}function F(t){return new ct(this,t).promise}function R(t){function e(t){T(o,t)}function n(t){j(o,t)}var r=this,o=new r(y);if(!K(t))return j(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===rt&&i>a;a++)z(r.resolve(t[a]),void 0,e,n);return o}function q(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return T(n,t),n}function W(t){var e=this,n=new e(y);return j(n,t),n}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function I(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(t){this._id=dt++,this._state=void 0,this._result=void 0,this._subscribers=[],y!==t&&(i(t)||Z(),this instanceof D||I(),x(this,t))}function H(){var e;if("undefined"!=typeof t)e=t;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;(!r||"[object Promise]"!==Object.prototype.toString.call(r.resolve())||r.cast)&&(e.Promise=ht)}var N;N=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var U,X,G,K=N,Y=0,J=({}.toString,function(t,e){nt[Y]=t,nt[Y+1]=e,Y+=2,2===Y&&(X?X(h):G())}),B="undefined"!=typeof window?window:void 0,V=B||{},Q=V.MutationObserver||V.WebKitMutationObserver,tt="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),et="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,nt=new Array(1e3);G=tt?s():Q?f():et?l():void 0===B?v():d();var rt=void 0,ot=1,it=2,at=new M,ut=new M;C.prototype._validateInput=function(t){return K(t)},C.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},C.prototype._init=function(){this._result=new Array(this.length)};var ct=C;C.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===rt&&e>o;o++)t._eachEntry(r[o],o)},C.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;a(t)?t.constructor===r&&t._state!==rt?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},C.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===rt&&(r._remaining--,t===it?j(o,n):r._result[e]=n),0===r._remaining&&O(o,r._result)},C.prototype._willSettleAt=function(t,e){var n=this;z(t,void 0,function(t){n._settledAt(ot,e,t)},function(t){n._settledAt(it,e,t)})};var st=F,pt=R,ft=q,lt=W,dt=0,ht=D;D.all=st,D.race=pt,D.resolve=ft,D.reject=lt,D._setScheduler=u,D._setAsap=c,D._asap=J,D.prototype={constructor:D,then:function(t,e){var n=this,r=n._state;if(r===ot&&!t||r===it&&!e)return this;var o=new this.constructor(y),i=n._result;if(r){var a=arguments[r-1];J(function(){S(r,o,a,i)})}else z(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var vt=H,yt={Promise:ht,polyfill:vt};e(5).amd?(n=function(){return yt}.call(exports,e,exports,r),!(void 0!==n&&(r.exports=n))):"undefined"!=typeof r&&r.exports?r.exports=yt:"undefined"!=typeof this&&(this.ES6Promise=yt),vt()}).call(this)}).call(exports,function(){return this}(),e(3)(t))},function(t,exports){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,exports){},function(t,exports){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,exports,e){(function(t){function n(t,e){i.hasOwnProperty(t)||(i[t]=!0,console.warn("DEPRECATION WARNING: '"+t+"' is no longer supported and will be removed in next major release. "+e))}var r=e(7),o=e(8),i={},a=function(){function e(t,n){this.parent=null,this.onError=null;var r=arguments.length?Object.create(t):this;return r.parent=t||null,Object.keys(n||{}).forEach(function(e){var o=e.substr(1);"$"===e[0]?r[o]=n[e](t[o]||function(){}):"+"===e[0]?t[o]?r[o]=function(){var r=t[o].apply(this,arguments);return n[e].apply(this,arguments),r}:r[o]=n[e]:"-"===e[0]?t[o]?r[o]=function(){return n[e].apply(this,arguments),t[o].apply(this,arguments)}:r[o]=n[e]:r[e]="object"==typeof n[e]?JSON.parse(JSON.stringify(n[e])):n[e]}),r.$id=e.nextId++,r}return e.prototype.fork=function(t){return this.onZoneCreated(),new e(this,t)},e.prototype.bind=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);e||this.enqueueTask(t);var n=this.isRootZone()?this:this.fork();return function(){return n.run(t,this,arguments)}},e.prototype.bindOnce=function(t){n("bindOnce","There is no replacement.");var e=this;return this.bind(function(){var n=t.apply(this,arguments);return e.dequeueTask(t),n})},e.prototype.isRootZone=function(){return null===this.parent},e.prototype.run=function(e,n,r){r=r||[];var o=t.zone;t.zone=this;try{return this.beforeTask(),e.apply(n,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),t.zone=o}},e.prototype.beforeTask=function(){},e.prototype.onZoneCreated=function(){},e.prototype.afterTask=function(){},e.prototype.enqueueTask=function(t){n("enqueueTask","Use addTask/addRepeatingTask/addMicroTask")},e.prototype.dequeueTask=function(t){n("dequeueTask","Use removeTask/removeRepeatingTask/removeMicroTask")},e.prototype.addTask=function(t){this.enqueueTask(t)},e.prototype.removeTask=function(t){this.dequeueTask(t)},e.prototype.addRepeatingTask=function(t){this.enqueueTask(t)},e.prototype.removeRepeatingTask=function(t){this.dequeueTask(t)},e.prototype.addMicrotask=function(t){this.enqueueTask(t)},e.prototype.removeMicrotask=function(t){this.dequeueTask(t)},e.prototype.addEventListener=function(){return this[r.common.addEventListener].apply(this,arguments)},e.prototype.removeEventListener=function(){return this[r.common.removeEventListener].apply(this,arguments)},e.nextId=1,e.bindPromiseFn=o.bindPromiseFn,e}();exports.Zone=a}).call(exports,function(){return this}())},function(t,exports){function e(t){return"_zone$"+t}exports.create=e,exports.common={addEventListener:e("addEventListener"),removeEventListener:e("removeEventListener")}},function(t,exports,e){(function(n){function r(t,e){var r=n,o=t.every(function(t){return r=r[t]});o&&e.forEach(function(t){var e=r[t];e&&(r[t]=exports.bindPromiseFn(e))})}function o(t){var e=t.then;t.then=function(){var n=a.bindArguments(arguments),r=e.apply(t,n);return o(r)};var n=t["catch"];return t["catch"]=function(){var e=a.bindArguments(arguments),r=n.apply(t,e);return o(r)},t}function i(){if(n.Promise){a.patchPrototype(Promise.prototype,["then","catch"]);var t=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];t.forEach(function(t){r(t[0],t[1])})}}var a=e(9);n.Promise?exports.bindPromiseFn=function(t){return function(){var e=t.apply(this,arguments);return e instanceof Promise?e:new Promise(function(t,n){e.then(t,n)})}}:exports.bindPromiseFn=function(t){return function(){return o(t.apply(this,arguments))}},exports.apply=i,t.exports={apply:i,bindPromiseFn:exports.bindPromiseFn}}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(e){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=t.zone.bind(e[n]));return e}function r(t,e){e.forEach(function(e){var r=t[e];r&&(t[e]=function(){return r.apply(this,n(arguments))})})}function o(){return"undefined"==typeof document}function i(t,e){var n=Object.getOwnPropertyDescriptor(t,e)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=e.substr(2),o="_"+e;n.set=function(t){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof t?(this[o]=t,this.addEventListener(r,t,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(t,e,n)}function a(t,e){(e||function(){var e=[];for(var n in t)e.push(n);return e}().filter(function(t){return"on"===t.substr(0,2)})).forEach(function(e){i(t,e)})}function u(e){e[s.common.addEventListener]=e.addEventListener,e.addEventListener=function(e,n,r){if(n&&"[object FunctionWrapper]"!==n.toString()){var o,i=e+(r?"$capturing":"$bubbling");o=n.handleEvent?function(t){return function(){t.handleEvent.apply(t,arguments)}}(n):n,n[p]=o,n[f]=n[f]||{},n[f][i]=n[f][i]||t.zone.bind(o),arguments[1]=n[f][i]}var a=this||t;return t.zone.addEventListener.apply(a,arguments)},e[s.common.removeEventListener]=e.removeEventListener,e.removeEventListener=function(e,n,r){var o=e+(r?"$capturing":"$bubbling");if(n&&n[f]&&n[f][o]){var i=n[f];arguments[1]=i[o],delete i[o],t.zone.dequeueTask(n[p])}var a=this||t,u=t.zone.removeEventListener.apply(a,arguments);return u}}function c(e){var r=t[e];if(r){t[e]=function(){var t=n(arguments);switch(t.length){case 0:this[l]=new r;break;case 1:this[l]=new r(t[0]);break;case 2:this[l]=new r(t[0],t[1]);break;case 3:this[l]=new r(t[0],t[1],t[2]);break;case 4:this[l]=new r(t[0],t[1],t[2],t[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new r;for(o in i)!function(n){"function"==typeof i[n]?t[e].prototype[n]=function(){return this[l][n].apply(this[l],arguments)}:Object.defineProperty(t[e].prototype,n,{set:function(e){"function"==typeof e?this[l][n]=t.zone.bind(e):this[l][n]=e},get:function(){return this[l][n]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(t[e][o]=r[o])}}var s=e(7);exports.bindArguments=n,exports.patchPrototype=r,exports.isWebWorker=o,exports.patchProperty=i,exports.patchProperties=a;var p=s.create("originalFn"),f=s.create("boundFns");exports.patchEventTargetMethods=u;var l=s.create("originalInstance");exports.patchClass=c}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(){r.patchSetClearFunction(t,t.Zone,[["setTimeout","clearTimeout",!1,!1],["setInterval","clearInterval",!0,!1],["setImmediate","clearImmediate",!1,!1],["requestAnimationFrame","cancelAnimationFrame",!1,!0],["mozRequestAnimationFrame","mozCancelAnimationFrame",!1,!0],["webkitRequestAnimationFrame","webkitCancelAnimationFrame",!1,!0]]),r.patchFunction(t,["alert","prompt"]),c.apply(),s.apply(),o.apply(),i.patchClass("MutationObserver"),i.patchClass("WebKitMutationObserver"),a.apply(),u.apply(),p.apply(),f.apply()}var r=e(11),o=e(8),i=e(13),a=e(14),u=e(15),c=e(16),s=e(17),p=e(19),f=e(20);exports.apply=n}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(e,n,r){function i(r,i,a,u){var c=e[r],s=e[i],p={};if(c){var f=o.createEvent("Zone#"+r+"(uint32 zone, uint32 id, uint32 delay)"),l=o.createEvent("Zone#"+i+"(uint32 zone, uint32 id)"),d=o.createScope("Zone#cb:"+r+"(uint32 zone, uint32 id, uint32 delay)");e[r]=function(){return t.zone[r].apply(t.zone,arguments)},e[i]=function(){return t.zone[i].apply(t.zone,arguments)},n.prototype[r]=function(t,n){var r=t;"function"!=typeof r&&c.apply(e,arguments);var i=this,s=null;return arguments[0]=function(){var t=i.isRootZone()||u?i:i.fork(),e=this,c=arguments;return o.leaveScope(d(t.$id,s,n),t.run(function(){return a||(delete p[s],t.removeTask(r)),r.apply(e,c)}))},a?i.addRepeatingTask(r):i.addTask(r),s=c.apply(e,arguments),p[s]=r,f(i.$id,s,n),s},n.prototype[r+"Unpatched"]=function(){return c.apply(e,arguments)},n.prototype[i]=function(t){if(l(this.$id,t),p.hasOwnProperty(t)){var n=p[t];delete p[t],a?this.removeRepeatingTask(n):this.removeTask(n)}return s.apply(e,arguments)},n.prototype[i+"Unpatched"]=function(){return s.apply(e,arguments)}}}r.forEach(function(t){i.apply(null,t)})}function r(e,n){n.forEach(function(n){var r=e[n];t.zone[n]=function(){return r.apply(e,arguments)},e[n]=function(){return t.zone[n].apply(this,arguments)}})}var o=e(12);exports.patchSetClearFunction=n,exports.patchFunction=r}).call(exports,function(){return this}())},function(t,exports){(function(t){function e(){}var n=null,r=null,o=function(){var e=t.wtf;return e&&(n=e.trace)?(r=n.events,!0):!1}();exports.enabled=o,exports.createScope=o?function(t,e){return r.createScope(t,e)}:function(t,n){return e},exports.createEvent=o?function(t,e){return r.createInstance(t,e)}:function(t,n){return e},exports.leaveScope=o?function(t,e){return n.leaveScope(t,e),e}:function(t,e){return e},exports.beginTimeRange=o?function(t,e){return n.beginTimeRange(t,e)}:function(t,e){return null},exports.endTimeRange=o?function(t){n.endTimeRange(t)}:function(t){}}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(e){var n=t[e];if(n){t[e]=function(e){this[o]=new n(t.zone.bind(e,!0)),this[i]=t.zone};var r=new n(function(){});t[e].prototype.disconnect=function(){var t=this[o].disconnect.apply(this[o],arguments);return this[a]&&(this[i].dequeueTask(),this[a]=!1),t},t[e].prototype.observe=function(){return this[a]||(this[i].enqueueTask(),this[a]=!0),this[o].observe.apply(this[o],arguments)};var u;for(u in r)!function(n){"undefined"==typeof t[e].prototype&&("function"==typeof r[n]?t[e].prototype[n]=function(){return this[o][n].apply(this[o],arguments)}:Object.defineProperty(t[e].prototype,n,{set:function(e){"function"==typeof e?this[o][n]=t.zone.bind(e):this[o][n]=e},get:function(){return this[o][n]}}))}(u)}}var r=e(7),o=r.create("originalInstance"),i=r.create("creationZone"),a=r.create("isActive");exports.patchClass=n}).call(exports,function(){return this}())},function(t,exports,e){function n(){Object.defineProperty=function(t,e,n){if(o(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);return"prototype"!==e&&(n=i(t,e,n)),u(t,e,n)},Object.defineProperties=function(t,e){return Object.keys(e).forEach(function(n){Object.defineProperty(t,n,e[n])}),t},Object.create=function(t,e){return"object"==typeof e&&Object.keys(e).forEach(function(n){e[n]=i(t,n,e[n])}),s(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var n=c(t,e);return o(t,e)&&(n.configurable=!1),n}}function r(t,e,n){return n=i(t,e,n),u(t,e,n)}function o(t,e){return t&&t[p]&&t[p][e]}function i(t,e,n){return n.configurable=!0,n.configurable||(t[p]||u(t,p,{writable:!0,value:{}}),t[p][e]=!0),n}var a=e(7),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.create,p=a.create("unconfigurables");exports.apply=n,exports._redefineProperty=r},function(t,exports,e){(function(t){function n(){if(!o.isWebWorker()&&"registerElement"in t.document){var e=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(o,i){return i&&i.prototype&&n.forEach(function(e){if(i.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(i.prototype,e);n&&n.value?(n.value=t.zone.bind(n.value),r._redefineProperty(i.prototype,e,n)):i.prototype[e]=t.zone.bind(i.prototype[e])}else i.prototype[e]&&(i.prototype[e]=t.zone.bind(i.prototype[e]))}),e.apply(document,[o,i])}}}var r=e(14),o=e(9);exports.apply=n}).call(exports,function(){return this}())},function(t,exports,e){(function(t){"use strict";function n(){if(t.EventTarget)r.patchEventTargetMethods(t.EventTarget.prototype);else{var e=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];e.forEach(function(e){var n=t[e]&&t[e].prototype;n&&n.addEventListener&&r.patchEventTargetMethods(n)}),"undefined"!=typeof window&&r.patchEventTargetMethods(window)}}var r=e(9);exports.apply=n}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(){if(!a.isWebWorker()){var t="undefined"!=typeof WebSocket;if(r()){var e=c.map(function(t){return"on"+t});a.patchProperties(HTMLElement.prototype,e),a.patchProperties(XMLHttpRequest.prototype),t&&a.patchProperties(WebSocket.prototype)}else o(),a.patchClass("XMLHttpRequest"),t&&i.apply()}}function r(){if(!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}Object.defineProperty(HTMLElement.prototype,"onclick",{get:function(){return!0}});var e=document.createElement("div"),n=!!e.onclick;return Object.defineProperty(HTMLElement.prototype,"onclick",{}),n}function o(){c.forEach(function(e){var n="on"+e;document.addEventListener(e,function(e){for(var r,o=e.target;o;)o[n]&&!o[n][s]&&(r=t.zone.bind(o[n]),r[s]=o[n],o[n]=r),o=o.parentElement},!0)})}var i=e(18),a=e(9),u=e(7),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.apply=n;var s=u.create("unbound")}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(){var e=t.WebSocket;t.EventTarget||r.patchEventTargetMethods(e.prototype),t.WebSocket=function(t,n){var o,i=arguments.length>1?new e(t,n):new e(t),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(o=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(t){o[t]=function(){return i[t].apply(i,arguments)}})):o=i,r.patchProperties(o,["onclose","onerror","onmessage","onopen"]),o}}var r=e(9);exports.apply=n}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(){t.navigator&&t.navigator.geolocation&&r.patchPrototype(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}var r=e(9);exports.apply=n}).call(exports,function(){return this}())},function(t,exports,e){function n(){r.patchClass("FileReader")}var r=e(9);exports.apply=n}]);

@@ -1,1 +0,1 @@

!function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(t){"use strict";var n=e("../core"),r=e("../patch/browser");t.Zone&&console.warn("Zone already exported on window the object!"),t.Zone=n.Zone,t.zone=new t.Zone,r.apply()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../core":2,"../patch/browser":4}],2:[function(e,t,n){(function(n){"use strict";function r(e,t){var n=arguments.length?Object.create(e):this;return n.parent=e||null,Object.keys(t||{}).forEach(function(r){var o=r.substr(1);"$"===r[0]?n[o]=t[r](e[o]||function(){}):"+"===r[0]?e[o]?n[o]=function(){var n=e[o].apply(this,arguments);return t[r].apply(this,arguments),n}:n[o]=t[r]:"-"===r[0]?e[o]?n[o]=function(){return t[r].apply(this,arguments),e[o].apply(this,arguments)}:n[o]=t[r]:n[r]="object"==typeof t[r]?JSON.parse(JSON.stringify(t[r])):t[r]}),n.$id=r.nextId++,n}var o=e("./keys");r.prototype={constructor:r,fork:function(e){return this.onZoneCreated(),new r(this,e)},bind:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},bindOnce:function(e){var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},isRootZone:function(){return null===this.parent},run:function(e,t,r){r=r||[];var o=n.zone;n.zone=this;try{return this.beforeTask(),e.apply(t,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),n.zone=o}},onError:null,beforeTask:function(){},onZoneCreated:function(){},afterTask:function(){},enqueueTask:function(){},dequeueTask:function(){},addEventListener:function(){return this[o.common.addEventListener].apply(this,arguments)},removeEventListener:function(){return this[o.common.removeEventListener].apply(this,arguments)}},r.nextId=1,r.bindPromiseFn=e("./patch/promise").bindPromiseFn,t.exports={Zone:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3,"./patch/promise":11}],3:[function(e,t,n){function r(e){return"_zone$"+e}var o={addEventListener:r("addEventListener"),removeEventListener:r("removeEventListener")};t.exports={create:r,common:o}},{}],4:[function(e,t,n){(function(n){"use strict";function r(){o.patchSetClearFunction(n,["timeout","interval","immediate"]),o.patchRequestAnimationFrame(n,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame"]),o.patchFunction(n,["alert","prompt"]),c.apply(),p.apply(),i.apply(),a.patchClass("MutationObserver"),a.patchClass("WebKitMutationObserver"),u.apply(),s.apply(),f.apply(),l.apply()}var o=e("./functions"),i=e("./promise"),a=e("./mutation-observer"),u=e("./define-property"),s=e("./register-element"),c=(e("./websocket"),e("./event-target")),p=e("./property-descriptor"),f=e("./geolocation"),l=e("./file-reader");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./define-property":5,"./event-target":6,"./file-reader":7,"./functions":8,"./geolocation":9,"./mutation-observer":10,"./promise":11,"./property-descriptor":12,"./register-element":13,"./websocket":14}],5:[function(e,t,n){"use strict";function r(){Object.defineProperty=function(e,t,n){if(i(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=a(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=a(e,n,t[n])}),p(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return i(e,t)&&(n.configurable=!1),n}}function o(e,t,n){return n=a(e,t,n),s(e,t,n)}function i(e,t){return e&&e[f]&&e[f][t]}function a(e,t,n){return n.configurable=!0,n.configurable||(e[f]||s(e,f,{writable:!0,value:{}}),e[f][t]=!0),n}var u=e("../keys"),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.create,f=u.create("unconfigurables");t.exports={apply:r,_redefineProperty:o}},{"../keys":3}],6:[function(e,t,n){(function(n){"use strict";function r(){if(n.EventTarget)o.patchEventTargetMethods(n.EventTarget.prototype);else{var e=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];e.forEach(function(e){var t=n[e]&&n[e].prototype;t&&t.addEventListener&&o.patchEventTargetMethods(t)}),"undefined"!=typeof window&&o.patchEventTargetMethods(window)}}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15}],7:[function(e,t,n){"use strict";function r(){o.patchClass("FileReader")}var o=e("../utils");t.exports={apply:r}},{"../utils":15}],8:[function(e,t,n){(function(n){"use strict";function r(e,t){t.map(function(e){return e[0].toUpperCase()+e.substr(1)}).forEach(function(t){var r="set"+t,o=e[r];if(o){var i="clear"+t,a={},s="setInterval"===r?u.bindArguments:u.bindArgumentsOnce;n.zone[r]=function(t){var n,r=t;arguments[0]=function(){return delete a[n],r.apply(this,arguments)};var i=s(arguments);return n=o.apply(e,i),a[n]=!0,n},e[r]=function(){return n.zone[r].apply(this,arguments)};var c=e[i];n.zone[i]=function(e){return a[e]&&(delete a[e],n.zone.dequeueTask()),c.apply(this,arguments)},e[i]=function(){return n.zone[i].apply(this,arguments)}}})}function o(e,t){t.forEach(function(t){var r=e[t];r&&(n.zone[t]=function(t){var o=n.zone.isRootZone()?n.zone.fork():n.zone;return t&&(arguments[0]=function(){return o.run(t,this,arguments)}),r.apply(e,arguments)},e[t]=function(){return n.zone[t].apply(this,arguments)})})}function i(e,t){t.forEach(function(t){var r=e[t];r&&(n.zone[t]=function(t){arguments[0]=function(){return t.apply(this,arguments)};var n=u.bindArgumentsOnce(arguments);return r.apply(e,n)},e[t]=function(){return zone[t].apply(this,arguments)})})}function a(e,t){t.forEach(function(t){var r=e[t];n.zone[t]=function(){return r.apply(e,arguments)},e[t]=function(){return n.zone[t].apply(this,arguments)}})}var u=e("../utils");t.exports={patchSetClearFunction:r,patchSetFunction:i,patchRequestAnimationFrame:o,patchFunction:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15}],9:[function(e,t,n){(function(n){"use strict";function r(){n.navigator&&n.navigator.geolocation&&o.patchPrototype(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15}],10:[function(e,t,n){(function(n){"use strict";function r(e){var t=n[e];if(t){n[e]=function(e){this[i]=new t(n.zone.bind(e,!0)),this[a]=n.zone};var r=new t(function(){});n[e].prototype.disconnect=function(){var e=this[i].disconnect.apply(this[i],arguments);return this[u]&&(this[a].dequeueTask(),this[u]=!1),e},n[e].prototype.observe=function(){return this[u]||(this[a].enqueueTask(),this[u]=!0),this[i].observe.apply(this[i],arguments)};var o;for(o in r)!function(t){"undefined"==typeof n[e].prototype&&("function"==typeof r[t]?n[e].prototype[t]=function(){return this[i][t].apply(this[i],arguments)}:Object.defineProperty(n[e].prototype,t,{set:function(e){"function"==typeof e?this[i][t]=n.zone.bind(e):this[i][t]=e},get:function(){return this[i][t]}}))}(o)}}var o=e("../keys"),i=o.create("originalInstance"),a=o.create("creationZone"),u=o.create("isActive");t.exports={patchClass:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../keys":3}],11:[function(e,t,n){(function(n){"use strict";function r(e,t){var r=n,o=e.every(function(e){return r=r[e]});o&&t.forEach(function(e){var t=r[e];t&&(r[e]=a(t))})}function o(e){var t=e.then;e.then=function(){var n=u.bindArguments(arguments),r=t.apply(e,n);return o(r)};var n=e["catch"];return e["catch"]=function(){var t=u.bindArguments(arguments),r=n.apply(e,t);return o(r)},e}function i(){if(n.Promise){u.patchPrototype(Promise.prototype,["then","catch"]);var e=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];e.forEach(function(e){r(e[0],e[1])})}}var a,u=e("../utils");a=n.Promise?function(e){return function(){var t=e.apply(this,arguments);return t instanceof Promise?t:new Promise(function(e,n){t.then(e,n)})}}:function(e){return function(){return o(e.apply(this,arguments))}},t.exports={apply:i,bindPromiseFn:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15}],12:[function(e,t,n){(function(n){"use strict";function r(){if(!u.isWebWorker()){var e="undefined"!=typeof WebSocket;if(o()){var t=c.map(function(e){return"on"+e});u.patchProperties(HTMLElement.prototype,t),u.patchProperties(XMLHttpRequest.prototype),e&&u.patchProperties(WebSocket.prototype)}else i(),u.patchClass("XMLHttpRequest"),e&&a.apply()}}function o(){if(!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(HTMLElement.prototype,"onclick",{get:function(){return!0}});var t=document.createElement("div"),n=!!t.onclick;return Object.defineProperty(HTMLElement.prototype,"onclick",{}),n}function i(){c.forEach(function(e){var t="on"+e;document.addEventListener(e,function(e){for(var r,o=e.target;o;)o[t]&&!o[t][p]&&(r=n.zone.bind(o[t]),r[p]=o[t],o[t]=r),o=o.parentElement},!0)})}var a=e("./websocket"),u=e("../utils"),s=e("../keys"),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" "),p=s.create("unbound");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../keys":3,"../utils":15,"./websocket":14}],13:[function(e,t,n){(function(n){"use strict";function r(){if(!i.isWebWorker()&&"registerElement"in n.document){var e=document.registerElement,t=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(r,i){return i&&i.prototype&&t.forEach(function(e){if(i.prototype.hasOwnProperty(e)){var t=Object.getOwnPropertyDescriptor(i.prototype,e);t&&t.value?(t.value=n.zone.bind(t.value),o(i.prototype,e,t)):i.prototype[e]=n.zone.bind(i.prototype[e])}else i.prototype[e]&&(i.prototype[e]=n.zone.bind(i.prototype[e]))}),e.apply(document,[r,i])}}}var o=e("./define-property")._redefineProperty,i=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15,"./define-property":5}],14:[function(e,t,n){(function(n){"use strict";function r(){var e=n.WebSocket;o.patchEventTargetMethods(e.prototype),n.WebSocket=function(t,n){var r,i=arguments.length>1?new e(t,n):new e(t),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(r=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(e){r[e]=function(){return i[e].apply(i,arguments)}})):r=i,o.patchProperties(r,["onclose","onerror","onmessage","onopen"]),r}}var o=e("../utils");t.exports={apply:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../utils":15}],15:[function(e,t,n){(function(n){"use strict";function r(e){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=n.zone.bind(e[t]));return e}function o(e){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=n.zone.bindOnce(e[t]));return e}function i(e,t){t.forEach(function(t){var n=e[t];n&&(e[t]=function(){return n.apply(this,r(arguments))})})}function a(){return"undefined"==typeof document}function u(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function s(e,t){(t||function(){var t=[];for(var n in e)t.push(n);return t}().filter(function(e){return"on"===e.substr(0,2)})).forEach(function(t){u(e,t)})}function c(e){e[f.common.addEventListener]=e.addEventListener,e.addEventListener=function(e,t,r){if(t&&"[object FunctionWrapper]"!==t.toString()){var o,i=e+(r?"$capturing":"$bubbling");o=t.handleEvent?function(e){return function(){e.handleEvent.apply(e,arguments)}}(t):t,t[l]=o,t[d]=t[d]||{},t[d][i]=t[d][i]||zone.bind(o),arguments[1]=t[d][i]}var a=this||n;return n.zone.addEventListener.apply(a,arguments)},e[f.common.removeEventListener]=e.removeEventListener,e.removeEventListener=function(e,t,r){var o=e+(r?"$capturing":"$bubbling");if(t&&t[d]&&t[d][o]){var i=t[d];arguments[1]=i[o],delete i[o],n.zone.dequeueTask(t[l])}var a=this||n,u=n.zone.removeEventListener.apply(a,arguments);return u}}function p(e){var t=n[e];if(t){n[e]=function(){var e=r(arguments);switch(e.length){case 0:this[y]=new t;break;case 1:this[y]=new t(e[0]);break;case 2:this[y]=new t(e[0],e[1]);break;case 3:this[y]=new t(e[0],e[1],e[2]);break;case 4:this[y]=new t(e[0],e[1],e[2],e[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new t;for(o in i)!function(t){"function"==typeof i[t]?n[e].prototype[t]=function(){return this[y][t].apply(this[y],arguments)}:Object.defineProperty(n[e].prototype,t,{set:function(e){"function"==typeof e?this[y][t]=n.zone.bind(e):this[y][t]=e},get:function(){return this[y][t]}})}(o);for(o in t)"prototype"!==o&&t.hasOwnProperty(o)&&(n[e][o]=t[o])}}var f=e("./keys"),l=f.create("originalFn"),d=f.create("boundFns"),y=f.create("originalInstance");t.exports={bindArguments:r,bindArgumentsOnce:o,patchPrototype:i,patchProperty:u,patchProperties:s,patchEventTargetMethods:c,patchClass:p,isWebWorker:a}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3}]},{},[1]);
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){var n=t(1),r=t(5);e.Zone?console.warn("Zone already exported on window the object!"):(e.Zone=n.Zone,e.zone=new e.Zone,r.apply()),exports.Zone=e.Zone}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(e,t){i.hasOwnProperty(e)||(i[e]=!0,console.warn("DEPRECATION WARNING: '"+e+"' is no longer supported and will be removed in next major release. "+t))}var r=t(2),o=t(3),i={},a=function(){function t(e,n){this.parent=null,this.onError=null;var r=arguments.length?Object.create(e):this;return r.parent=e||null,Object.keys(n||{}).forEach(function(t){var o=t.substr(1);"$"===t[0]?r[o]=n[t](e[o]||function(){}):"+"===t[0]?e[o]?r[o]=function(){var r=e[o].apply(this,arguments);return n[t].apply(this,arguments),r}:r[o]=n[t]:"-"===t[0]?e[o]?r[o]=function(){return n[t].apply(this,arguments),e[o].apply(this,arguments)}:r[o]=n[t]:r[t]="object"==typeof n[t]?JSON.parse(JSON.stringify(n[t])):n[t]}),r.$id=t.nextId++,r}return t.prototype.fork=function(e){return this.onZoneCreated(),new t(this,e)},t.prototype.bind=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},t.prototype.bindOnce=function(e){n("bindOnce","There is no replacement.");var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},t.prototype.isRootZone=function(){return null===this.parent},t.prototype.run=function(t,n,r){r=r||[];var o=e.zone;e.zone=this;try{return this.beforeTask(),t.apply(n,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),e.zone=o}},t.prototype.beforeTask=function(){},t.prototype.onZoneCreated=function(){},t.prototype.afterTask=function(){},t.prototype.enqueueTask=function(e){n("enqueueTask","Use addTask/addRepeatingTask/addMicroTask")},t.prototype.dequeueTask=function(e){n("dequeueTask","Use removeTask/removeRepeatingTask/removeMicroTask")},t.prototype.addTask=function(e){this.enqueueTask(e)},t.prototype.removeTask=function(e){this.dequeueTask(e)},t.prototype.addRepeatingTask=function(e){this.enqueueTask(e)},t.prototype.removeRepeatingTask=function(e){this.dequeueTask(e)},t.prototype.addMicrotask=function(e){this.enqueueTask(e)},t.prototype.removeMicrotask=function(e){this.dequeueTask(e)},t.prototype.addEventListener=function(){return this[r.common.addEventListener].apply(this,arguments)},t.prototype.removeEventListener=function(){return this[r.common.removeEventListener].apply(this,arguments)},t.nextId=1,t.bindPromiseFn=o.bindPromiseFn,t}();exports.Zone=a}).call(exports,function(){return this}())},function(e,exports){function t(e){return"_zone$"+e}exports.create=t,exports.common={addEventListener:t("addEventListener"),removeEventListener:t("removeEventListener")}},function(e,exports,t){(function(n){function r(e,t){var r=n,o=e.every(function(e){return r=r[e]});o&&t.forEach(function(e){var t=r[e];t&&(r[e]=exports.bindPromiseFn(t))})}function o(e){var t=e.then;e.then=function(){var n=a.bindArguments(arguments),r=t.apply(e,n);return o(r)};var n=e["catch"];return e["catch"]=function(){var t=a.bindArguments(arguments),r=n.apply(e,t);return o(r)},e}function i(){if(n.Promise){a.patchPrototype(Promise.prototype,["then","catch"]);var e=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];e.forEach(function(e){r(e[0],e[1])})}}var a=t(4);n.Promise?exports.bindPromiseFn=function(e){return function(){var t=e.apply(this,arguments);return t instanceof Promise?t:new Promise(function(e,n){t.then(e,n)})}}:exports.bindPromiseFn=function(e){return function(){return o(e.apply(this,arguments))}},exports.apply=i,e.exports={apply:i,bindPromiseFn:exports.bindPromiseFn}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){for(var n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=e.zone.bind(t[n]));return t}function r(e,t){t.forEach(function(t){var r=e[t];r&&(e[t]=function(){return r.apply(this,n(arguments))})})}function o(){return"undefined"==typeof document}function i(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function a(e,t){(t||function(){var t=[];for(var n in e)t.push(n);return t}().filter(function(e){return"on"===e.substr(0,2)})).forEach(function(t){i(e,t)})}function u(t){t[s.common.addEventListener]=t.addEventListener,t.addEventListener=function(t,n,r){if(n&&"[object FunctionWrapper]"!==n.toString()){var o,i=t+(r?"$capturing":"$bubbling");o=n.handleEvent?function(e){return function(){e.handleEvent.apply(e,arguments)}}(n):n,n[p]=o,n[f]=n[f]||{},n[f][i]=n[f][i]||e.zone.bind(o),arguments[1]=n[f][i]}var a=this||e;return e.zone.addEventListener.apply(a,arguments)},t[s.common.removeEventListener]=t.removeEventListener,t.removeEventListener=function(t,n,r){var o=t+(r?"$capturing":"$bubbling");if(n&&n[f]&&n[f][o]){var i=n[f];arguments[1]=i[o],delete i[o],e.zone.dequeueTask(n[p])}var a=this||e,u=e.zone.removeEventListener.apply(a,arguments);return u}}function c(t){var r=e[t];if(r){e[t]=function(){var e=n(arguments);switch(e.length){case 0:this[l]=new r;break;case 1:this[l]=new r(e[0]);break;case 2:this[l]=new r(e[0],e[1]);break;case 3:this[l]=new r(e[0],e[1],e[2]);break;case 4:this[l]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new r;for(o in i)!function(n){"function"==typeof i[n]?e[t].prototype[n]=function(){return this[l][n].apply(this[l],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[l][n]=e.zone.bind(t):this[l][n]=t},get:function(){return this[l][n]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[t][o]=r[o])}}var s=t(2);exports.bindArguments=n,exports.patchPrototype=r,exports.isWebWorker=o,exports.patchProperty=i,exports.patchProperties=a;var p=s.create("originalFn"),f=s.create("boundFns");exports.patchEventTargetMethods=u;var l=s.create("originalInstance");exports.patchClass=c}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){r.patchSetClearFunction(e,e.Zone,[["setTimeout","clearTimeout",!1,!1],["setInterval","clearInterval",!0,!1],["setImmediate","clearImmediate",!1,!1],["requestAnimationFrame","cancelAnimationFrame",!1,!0],["mozRequestAnimationFrame","mozCancelAnimationFrame",!1,!0],["webkitRequestAnimationFrame","webkitCancelAnimationFrame",!1,!0]]),r.patchFunction(e,["alert","prompt"]),c.apply(),s.apply(),o.apply(),i.patchClass("MutationObserver"),i.patchClass("WebKitMutationObserver"),a.apply(),u.apply(),p.apply(),f.apply()}var r=t(6),o=t(3),i=t(8),a=t(9),u=t(10),c=t(11),s=t(12),p=t(14),f=t(15);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t,n,r){function i(r,i,a,u){var c=t[r],s=t[i],p={};if(c){var f=o.createEvent("Zone#"+r+"(uint32 zone, uint32 id, uint32 delay)"),l=o.createEvent("Zone#"+i+"(uint32 zone, uint32 id)"),d=o.createScope("Zone#cb:"+r+"(uint32 zone, uint32 id, uint32 delay)");t[r]=function(){return e.zone[r].apply(e.zone,arguments)},t[i]=function(){return e.zone[i].apply(e.zone,arguments)},n.prototype[r]=function(e,n){var r=e;"function"!=typeof r&&c.apply(t,arguments);var i=this,s=null;return arguments[0]=function(){var e=i.isRootZone()||u?i:i.fork(),t=this,c=arguments;return o.leaveScope(d(e.$id,s,n),e.run(function(){return a||(delete p[s],e.removeTask(r)),r.apply(t,c)}))},a?i.addRepeatingTask(r):i.addTask(r),s=c.apply(t,arguments),p[s]=r,f(i.$id,s,n),s},n.prototype[r+"Unpatched"]=function(){return c.apply(t,arguments)},n.prototype[i]=function(e){if(l(this.$id,e),p.hasOwnProperty(e)){var n=p[e];delete p[e],a?this.removeRepeatingTask(n):this.removeTask(n)}return s.apply(t,arguments)},n.prototype[i+"Unpatched"]=function(){return s.apply(t,arguments)}}}r.forEach(function(e){i.apply(null,e)})}function r(t,n){n.forEach(function(n){var r=t[n];e.zone[n]=function(){return r.apply(t,arguments)},t[n]=function(){return e.zone[n].apply(this,arguments)}})}var o=t(7);exports.patchSetClearFunction=n,exports.patchFunction=r}).call(exports,function(){return this}())},function(e,exports){(function(e){function t(){}var n=null,r=null,o=function(){var t=e.wtf;return t&&(n=t.trace)?(r=n.events,!0):!1}();exports.enabled=o,exports.createScope=o?function(e,t){return r.createScope(e,t)}:function(e,n){return t},exports.createEvent=o?function(e,t){return r.createInstance(e,t)}:function(e,n){return t},exports.leaveScope=o?function(e,t){return n.leaveScope(e,t),t}:function(e,t){return t},exports.beginTimeRange=o?function(e,t){return n.beginTimeRange(e,t)}:function(e,t){return null},exports.endTimeRange=o?function(e){n.endTimeRange(e)}:function(e){}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){var n=e[t];if(n){e[t]=function(t){this[o]=new n(e.zone.bind(t,!0)),this[i]=e.zone};var r=new n(function(){});e[t].prototype.disconnect=function(){var e=this[o].disconnect.apply(this[o],arguments);return this[a]&&(this[i].dequeueTask(),this[a]=!1),e},e[t].prototype.observe=function(){return this[a]||(this[i].enqueueTask(),this[a]=!0),this[o].observe.apply(this[o],arguments)};var u;for(u in r)!function(n){"undefined"==typeof e[t].prototype&&("function"==typeof r[n]?e[t].prototype[n]=function(){return this[o][n].apply(this[o],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[o][n]=e.zone.bind(t):this[o][n]=t},get:function(){return this[o][n]}}))}(u)}}var r=t(2),o=r.create("originalInstance"),i=r.create("creationZone"),a=r.create("isActive");exports.patchClass=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=i(e,t,n)),u(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=i(e,n,t[n])}),s(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=i(e,t,n),u(e,t,n)}function o(e,t){return e&&e[p]&&e[p][t]}function i(e,t,n){return n.configurable=!0,n.configurable||(e[p]||u(e,p,{writable:!0,value:{}}),e[p][t]=!0),n}var a=t(2),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.create,p=a.create("unconfigurables");exports.apply=n,exports._redefineProperty=r},function(e,exports,t){(function(e){function n(){if(!o.isWebWorker()&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(o,i){return i&&i.prototype&&n.forEach(function(t){if(i.prototype.hasOwnProperty(t)){var n=Object.getOwnPropertyDescriptor(i.prototype,t);n&&n.value?(n.value=e.zone.bind(n.value),r._redefineProperty(i.prototype,t,n)):i.prototype[t]=e.zone.bind(i.prototype[t])}else i.prototype[t]&&(i.prototype[t]=e.zone.bind(i.prototype[t]))}),t.apply(document,[o,i])}}}var r=t(9),o=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){if(e.EventTarget)r.patchEventTargetMethods(e.EventTarget.prototype);else{var t=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];t.forEach(function(t){var n=e[t]&&e[t].prototype;n&&n.addEventListener&&r.patchEventTargetMethods(n)}),"undefined"!=typeof window&&r.patchEventTargetMethods(window)}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){if(!a.isWebWorker()){var e="undefined"!=typeof WebSocket;if(r()){var t=c.map(function(e){return"on"+e});a.patchProperties(HTMLElement.prototype,t),a.patchProperties(XMLHttpRequest.prototype),e&&a.patchProperties(WebSocket.prototype)}else o(),a.patchClass("XMLHttpRequest"),e&&i.apply()}}function r(){if(!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(HTMLElement.prototype,"onclick",{get:function(){return!0}});var t=document.createElement("div"),n=!!t.onclick;return Object.defineProperty(HTMLElement.prototype,"onclick",{}),n}function o(){c.forEach(function(t){var n="on"+t;document.addEventListener(t,function(t){for(var r,o=t.target;o;)o[n]&&!o[n][s]&&(r=e.zone.bind(o[n]),r[s]=o[n],o[n]=r),o=o.parentElement},!0)})}var i=t(13),a=t(4),u=t(2),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.apply=n;var s=u.create("unbound")}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,i=arguments.length>1?new t(e,n):new t(e),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(o=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return i[e].apply(i,arguments)}})):o=i,r.patchProperties(o,["onclose","onerror","onmessage","onopen"]),o}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){e.navigator&&e.navigator.geolocation&&r.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){r.patchClass("FileReader")}var r=t(4);exports.apply=n}]);
{
"name": "zone.js",
"version": "0.5.10",
"version": "0.5.11",
"description": "Zones for JavaScript",

@@ -15,2 +15,5 @@ "main": "lib/zone.js",

"scripts": {
"postinstall": "tsd install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"test": "karma start karma.conf.js",

@@ -24,3 +27,3 @@ "serve": "python -m SimpleHTTPServer 8000"

"author": "Brian Ford",
"license": "Apache-2.0",
"license": "MIT",
"bugs": {

@@ -33,14 +36,19 @@ "url": "https://github.com/angular/zone.js/issues"

"devDependencies": {
"browserify": "^9.0.8",
"gulp": "^3.8.11",
"gulp-util": "^3.0.7",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"jasmine-core": "^2.2.0",
"karma": "^0.12.31",
"karma-browserify": "^4.1.2",
"karma-chrome-launcher": "^0.1.7",
"karma-firefox-launcher": "^0.1.4",
"karma-jasmine": "^0.3.5",
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.10",
"karma": "^0.13.14",
"karma-chrome-launcher": "^0.2.1",
"karma-jasmine": "^0.3.6",
"karma-sourcemap-loader": "^0.3.6",
"karma-webpack": "^1.7.0",
"ts-loader": "^0.6.0",
"tsd": "^0.6.5",
"typescript": "^1.7.3",
"webpack": "^1.12.2",
"nodejs-websocket": "^1.2.0",

@@ -47,0 +55,0 @@ "vinyl-buffer": "^1.0.0",

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

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

Sorry, the diff of this file is not supported yet

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