redoc/dist/redoc.min.js

6910 lines
1.3 MiB
JavaScript
Raw Normal View History

2016-02-22 16:27:45 +03:00
/*eslint no-unused-vars: 0*/
/*eslint strict: 0*/
var $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };
function $buo_f(){
var e = document.createElement('script');
e.src = '//browser-update.org/update.min.js';
document.body.appendChild(e);
}
try {document.addEventListener('DOMContentLoaded', $buo_f, false);}
catch(e){window.attachEvent('onload', $buo_f);}
2016-05-18 23:03:59 +03:00
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {"use strict";
__webpack_require__(1);
var event_target_1 = __webpack_require__(2);
var define_property_1 = __webpack_require__(4);
var register_element_1 = __webpack_require__(5);
var property_descriptor_1 = __webpack_require__(6);
var timers_1 = __webpack_require__(8);
var utils_1 = __webpack_require__(3);
var set = 'set';
var clear = 'clear';
var blockingMethods = ['alert', 'prompt', 'confirm'];
var _global = typeof window == 'undefined' ? global : window;
timers_1.patchTimer(_global, set, clear, 'Timeout');
timers_1.patchTimer(_global, set, clear, 'Interval');
timers_1.patchTimer(_global, set, clear, 'Immediate');
timers_1.patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');
timers_1.patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');
timers_1.patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');
for (var i = 0; i < blockingMethods.length; i++) {
var name = blockingMethods[i];
utils_1.patchMethod(_global, name, function (delegate, symbol, name) {
return function (s, args) {
return Zone.current.run(delegate, _global, args, name);
};
});
}
event_target_1.eventTargetPatch(_global);
property_descriptor_1.propertyDescriptorPatch(_global);
utils_1.patchClass('MutationObserver');
utils_1.patchClass('WebKitMutationObserver');
utils_1.patchClass('FileReader');
define_property_1.propertyPatch();
register_element_1.registerElementPatch(_global);
// Treat XMLHTTPRequest as a macrotask.
patchXHR(_global);
var XHR_TASK = utils_1.zoneSymbol('xhrTask');
function patchXHR(window) {
function findPendingTask(target) {
var pendingTask = target[XHR_TASK];
return pendingTask;
}
function scheduleTask(task) {
var data = task.data;
data.target.addEventListener('readystatechange', function () {
if (data.target.readyState === XMLHttpRequest.DONE) {
if (!data.aborted) {
task.invoke();
}
}
});
var storedTask = data.target[XHR_TASK];
if (!storedTask) {
data.target[XHR_TASK] = task;
}
setNative.apply(data.target, data.args);
return task;
}
function placeholderCallback() {
}
function clearTask(task) {
var data = task.data;
// Note - ideally, we would call data.target.removeEventListener here, but it's too late
// to prevent it from firing. So instead, we store info for the event listener.
data.aborted = true;
return clearNative.apply(data.target, data.args);
}
var setNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {
var zone = Zone.current;
var options = {
target: self,
isPeriodic: false,
delay: null,
args: args,
aborted: false
};
return zone.scheduleMacroTask('XMLHttpRequest.send', placeholderCallback, options, scheduleTask, clearTask);
}; });
var clearNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'abort', function (delegate) { return function (self, args) {
var task = findPendingTask(self);
if (task && typeof task.type == 'string') {
// If the XHR has already completed, do nothing.
if (task.cancelFn == null) {
return;
}
task.zone.cancelTask(task);
}
// Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no task to cancel. Do nothing.
}; });
}
/// GEO_LOCATION
if (_global['navigator'] && _global['navigator'].geolocation) {
utils_1.patchPrototype(_global['navigator'].geolocation, [
'getCurrentPosition',
'watchPosition'
]);
}
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 1 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {;
;
var Zone = (function (global) {
var Zone = (function () {
function Zone(parent, zoneSpec) {
this._properties = null;
this._parent = parent;
this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';
this._properties = zoneSpec && zoneSpec.properties || {};
this._zoneDelegate = new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);
}
Object.defineProperty(Zone, "current", {
get: function () { return _currentZone; },
enumerable: true,
configurable: true
});
;
Object.defineProperty(Zone, "currentTask", {
get: function () { return _currentTask; },
enumerable: true,
configurable: true
});
;
Object.defineProperty(Zone.prototype, "parent", {
get: function () { return this._parent; },
enumerable: true,
configurable: true
});
;
Object.defineProperty(Zone.prototype, "name", {
get: function () { return this._name; },
enumerable: true,
configurable: true
});
;
Zone.prototype.get = function (key) {
var current = this;
while (current) {
if (current._properties.hasOwnProperty(key)) {
return current._properties[key];
}
current = current._parent;
}
};
Zone.prototype.fork = function (zoneSpec) {
if (!zoneSpec)
throw new Error('ZoneSpec required!');
return this._zoneDelegate.fork(this, zoneSpec);
};
Zone.prototype.wrap = function (callback, source) {
if (typeof callback !== 'function') {
throw new Error('Expecting function got: ' + callback);
}
var _callback = this._zoneDelegate.intercept(this, callback, source);
var zone = this;
return function () {
return zone.runGuarded(_callback, this, arguments, source);
};
};
Zone.prototype.run = function (callback, applyThis, applyArgs, source) {
if (applyThis === void 0) { applyThis = null; }
if (applyArgs === void 0) { applyArgs = null; }
if (source === void 0) { source = null; }
var oldZone = _currentZone;
_currentZone = this;
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
}
finally {
_currentZone = oldZone;
}
};
Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {
if (applyThis === void 0) { applyThis = null; }
if (applyArgs === void 0) { applyArgs = null; }
if (source === void 0) { source = null; }
var oldZone = _currentZone;
_currentZone = this;
try {
try {
return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
_currentZone = oldZone;
}
};
Zone.prototype.runTask = function (task, applyThis, applyArgs) {
task.runCount++;
if (task.zone != this)
throw new Error('A task can only be run in the zone which created it! (Creation: ' +
task.zone.name + '; Execution: ' + this.name + ')');
var previousTask = _currentTask;
_currentTask = task;
var oldZone = _currentZone;
_currentZone = this;
try {
if (task.type == 'macroTask' && task.data && !task.data.isPeriodic) {
task.cancelFn = null;
}
try {
return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);
}
catch (error) {
if (this._zoneDelegate.handleError(this, error)) {
throw error;
}
}
}
finally {
_currentZone = oldZone;
_currentTask = previousTask;
}
};
Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {
return this._zoneDelegate.scheduleTask(this, new ZoneTask('microTask', this, source, callback, data, customSchedule, null));
};
Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {
return this._zoneDelegate.scheduleTask(this, new ZoneTask('macroTask', this, source, callback, data, customSchedule, customCancel));
};
Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {
return this._zoneDelegate.scheduleTask(this, new ZoneTask('eventTask', this, source, callback, data, customSchedule, customCancel));
};
Zone.prototype.cancelTask = function (task) {
var value = this._zoneDelegate.cancelTask(this, task);
task.runCount = -1;
task.cancelFn = null;
return value;
};
Zone.__symbol__ = __symbol__;
return Zone;
}());
;
var ZoneDelegate = (function () {
function ZoneDelegate(zone, parentDelegate, zoneSpec) {
this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 };
this.zone = zone;
this._parentDelegate = parentDelegate;
this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);
this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);
this._interceptZS = zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);
this._interceptDlgt = zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);
this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);
this._invokeDlgt = zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);
this._handleErrorZS = zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);
this._handleErrorDlgt = zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);
this._scheduleTaskZS = zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);
this._scheduleTaskDlgt = zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);
this._invokeTaskZS = zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);
this._invokeTaskDlgt = zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);
this._cancelTaskZS = zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);
this._cancelTaskDlgt = zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);
this._hasTaskZS = zoneSpec && (zoneSpec.onHasTask ? zoneSpec : parentDelegate._hasTaskZS);
this._hasTaskDlgt = zoneSpec && (zoneSpec.onHasTask ? parentDelegate : parentDelegate._hasTaskDlgt);
}
ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {
return this._forkZS
? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec)
: new Zone(targetZone, zoneSpec);
};
ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {
return this._interceptZS
? this._interceptZS.onIntercept(this._interceptDlgt, this.zone, targetZone, callback, source)
: callback;
};
ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {
return this._invokeZS
? this._invokeZS.onInvoke(this._invokeDlgt, this.zone, targetZone, callback, applyThis, applyArgs, source)
: callback.apply(applyThis, applyArgs);
};
ZoneDelegate.prototype.handleError = function (targetZone, error) {
return this._handleErrorZS
? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this.zone, targetZone, error)
: true;
};
ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {
try {
if (this._scheduleTaskZS) {
return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this.zone, targetZone, task);
}
else if (task.scheduleFn) {
task.scheduleFn(task);
}
else if (task.type == 'microTask') {
scheduleMicroTask(task);
}
else {
throw new Error('Task is missing scheduleFn.');
}
return task;
}
finally {
if (targetZone == this.zone) {
this._updateTaskCount(task.type, 1);
}
}
};
ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {
try {
return this._invokeTaskZS
? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this.zone, targetZone, task, applyThis, applyArgs)
: task.callback.apply(applyThis, applyArgs);
}
finally {
if (targetZone == this.zone && (task.type != 'eventTask') && !(task.data && task.data.isPeriodic)) {
this._updateTaskCount(task.type, -1);
}
}
};
ZoneDelegate.prototype.cancelTask = function (targetZone, task) {
var value;
if (this._cancelTaskZS) {
value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this.zone, targetZone, task);
}
else if (!task.cancelFn) {
throw new Error('Task does not support cancellation, or is already canceled.');
}
else {
value = task.cancelFn(task);
}
if (targetZone == this.zone) {
// this should not be in the finally block, because exceptions assume not canceled.
this._updateTaskCount(task.type, -1);
}
return value;
};
ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {
return this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this.zone, targetZone, isEmpty);
};
ZoneDelegate.prototype._updateTaskCount = function (type, count) {
var counts = this._taskCounts;
var prev = counts[type];
var next = counts[type] = prev + count;
if (next < 0) {
throw new Error('More tasks executed then were scheduled.');
}
if (prev == 0 || next == 0) {
var isEmpty = {
microTask: counts.microTask > 0,
macroTask: counts.macroTask > 0,
eventTask: counts.eventTask > 0,
change: type
};
try {
this.hasTask(this.zone, isEmpty);
}
finally {
if (this._parentDelegate) {
this._parentDelegate._updateTaskCount(type, count);
}
}
}
};
return ZoneDelegate;
}());
var ZoneTask = (function () {
function ZoneTask(type, zone, source, callback, options, scheduleFn, cancelFn) {
this.runCount = 0;
this.type = type;
this.zone = zone;
this.source = source;
this.data = options;
this.scheduleFn = scheduleFn;
this.cancelFn = cancelFn;
this.callback = callback;
var self = this;
this.invoke = function () {
try {
return zone.runTask(self, this, arguments);
}
finally {
drainMicroTaskQueue();
}
};
}
return ZoneTask;
}());
function __symbol__(name) { return '__zone_symbol__' + name; }
;
var symbolSetTimeout = __symbol__('setTimeout');
var symbolPromise = __symbol__('Promise');
var symbolThen = __symbol__('then');
var _currentZone = new Zone(null, null);
var _currentTask = null;
var _microTaskQueue = [];
var _isDrainingMicrotaskQueue = false;
var _uncaughtPromiseErrors = [];
var _drainScheduled = false;
function scheduleQueueDrain() {
if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) {
// We are not running in Task, so we need to kickstart the microtask queue.
if (global[symbolPromise]) {
global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);
}
else {
global[symbolSetTimeout](drainMicroTaskQueue, 0);
}
}
}
function scheduleMicroTask(task) {
scheduleQueueDrain();
_microTaskQueue.push(task);
}
function consoleError(e) {
var rejection = e && e.rejection;
if (rejection) {
console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection);
}
console.error(e);
}
function drainMicroTaskQueue() {
if (!_isDrainingMicrotaskQueue) {
_isDrainingMicrotaskQueue = true;
while (_microTaskQueue.length) {
var queue = _microTaskQueue;
_microTaskQueue = [];
for (var i = 0; i < queue.length; i++) {
var task = queue[i];
try {
task.zone.runTask(task, null, null);
}
catch (e) {
consoleError(e);
}
}
}
while (_uncaughtPromiseErrors.length) {
var uncaughtPromiseErrors = _uncaughtPromiseErrors;
_uncaughtPromiseErrors = [];
var _loop_1 = function(i) {
var uncaughtPromiseError = uncaughtPromiseErrors[i];
try {
uncaughtPromiseError.zone.runGuarded(function () { throw uncaughtPromiseError; });
}
catch (e) {
consoleError(e);
}
};
for (var i = 0; i < uncaughtPromiseErrors.length; i++) {
_loop_1(i);
}
}
_isDrainingMicrotaskQueue = false;
_drainScheduled = false;
}
}
function isThenable(value) {
return value && value.then;
}
function forwardResolution(value) { return value; }
function forwardRejection(rejection) { return ZoneAwarePromise.reject(rejection); }
var symbolState = __symbol__('state');
var symbolValue = __symbol__('value');
var source = 'Promise.then';
var UNRESOLVED = null;
var RESOLVED = true;
var REJECTED = false;
var REJECTED_NO_CATCH = 0;
function makeResolver(promise, state) {
return function (v) {
resolvePromise(promise, state, v);
// Do not return value or you will break the Promise spec.
};
}
function resolvePromise(promise, state, value) {
if (promise[symbolState] === UNRESOLVED) {
if (value instanceof ZoneAwarePromise && value[symbolState] !== UNRESOLVED) {
clearRejectedNoCatch(value);
resolvePromise(promise, value[symbolState], value[symbolValue]);
}
else if (isThenable(value)) {
value.then(makeResolver(promise, state), makeResolver(promise, false));
}
else {
promise[symbolState] = state;
var queue = promise[symbolValue];
promise[symbolValue] = value;
for (var i = 0; i < queue.length;) {
scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);
}
if (queue.length == 0 && state == REJECTED) {
promise[symbolState] = REJECTED_NO_CATCH;
try {
throw new Error("Uncaught (in promise): " + value);
}
catch (e) {
var error = e;
error.rejection = value;
error.promise = promise;
error.zone = Zone.current;
error.task = Zone.currentTask;
_uncaughtPromiseErrors.push(error);
scheduleQueueDrain();
}
}
}
}
// Resolving an already resolved promise is a noop.
return promise;
}
function clearRejectedNoCatch(promise) {
if (promise[symbolState] === REJECTED_NO_CATCH) {
promise[symbolState] = REJECTED;
for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {
if (promise === _uncaughtPromiseErrors[i].promise) {
_uncaughtPromiseErrors.splice(i, 1);
break;
}
}
}
}
function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {
clearRejectedNoCatch(promise);
var delegate = promise[symbolState] ? onFulfilled || forwardResolution : onRejected || forwardRejection;
zone.scheduleMicroTask(source, function () {
try {
resolvePromise(chainPromise, true, zone.run(delegate, null, [promise[symbolValue]]));
}
catch (error) {
resolvePromise(chainPromise, false, error);
}
});
}
var ZoneAwarePromise = (function () {
function ZoneAwarePromise(executor) {
var promise = this;
promise[symbolState] = UNRESOLVED;
promise[symbolValue] = []; // queue;
try {
executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));
}
catch (e) {
resolvePromise(promise, false, e);
}
}
ZoneAwarePromise.resolve = function (value) {
return resolvePromise(new this(null), RESOLVED, value);
};
ZoneAwarePromise.reject = function (error) {
return resolvePromise(new this(null), REJECTED, error);
};
ZoneAwarePromise.race = function (values) {
var resolve;
var reject;
var promise = new this(function (res, rej) { resolve = res; reject = rej; });
function onResolve(value) { promise && (promise = null || resolve(value)); }
function onReject(error) { promise && (promise = null || reject(error)); }
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
var value = values_1[_i];
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then(onResolve, onReject);
}
return promise;
};
ZoneAwarePromise.all = function (values) {
var resolve;
var reject;
var promise = new this(function (res, rej) { resolve = res; reject = rej; });
var count = 0;
var resolvedValues = [];
function onReject(error) { promise && reject(error); promise = null; }
for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {
var value = values_2[_i];
if (!isThenable(value)) {
value = this.resolve(value);
}
value.then((function (index) { return function (value) {
resolvedValues[index] = value;
count--;
if (promise && !count) {
resolve(resolvedValues);
}
promise == null;
}; })(count), onReject);
count++;
}
if (!count)
resolve(resolvedValues);
return promise;
};
ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {
var chainPromise = new ZoneAwarePromise(null);
var zone = Zone.current;
if (this[symbolState] == UNRESOLVED) {
this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);
}
else {
scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);
}
return chainPromise;
};
ZoneAwarePromise.prototype.catch = function (onRejected) {
return this.then(null, onRejected);
};
return ZoneAwarePromise;
}());
var NativePromise = global[__symbol__('Promise')] = global.Promise;
global.Promise = ZoneAwarePromise;
if (NativePromise) {
var NativePromiseProtototype = NativePromise.prototype;
var NativePromiseThen_1 = NativePromiseProtototype[__symbol__('then')]
= NativePromiseProtototype.then;
NativePromiseProtototype.then = function (onResolve, onReject) {
var nativePromise = this;
return new ZoneAwarePromise(function (resolve, reject) {
NativePromiseThen_1.call(nativePromise, resolve, reject);
}).then(onResolve, onReject);
};
}
return global.Zone = Zone;
})(typeof window === 'undefined' ? global : window);
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var utils_1 = __webpack_require__(3);
var WTF_ISSUE_555 = 'Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video';
var NO_EVENT_TARGET = 'ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex'.split(',');
var EVENT_TARGET = 'EventTarget';
function eventTargetPatch(_global) {
var apis = [];
var isWtf = _global['wtf'];
if (isWtf) {
// Workaround for: https://github.com/google/tracing-framework/issues/555
apis = WTF_ISSUE_555.split(',').map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);
}
else if (_global[EVENT_TARGET]) {
apis.push(EVENT_TARGET);
}
else {
// Note: EventTarget is not available in all browsers,
// if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget
apis = NO_EVENT_TARGET;
}
for (var i = 0; i < apis.length; i++) {
var type = _global[apis[i]];
utils_1.patchEventTargetMethods(type && type.prototype);
}
}
exports.eventTargetPatch = eventTargetPatch;
/***/ },
/* 3 */
/***/ function(module, exports) {
/* WEBPACK VAR INJECTION */(function(global) {/**
* Suppress closure compiler errors about unknown 'process' variable
* @fileoverview
* @suppress {undefinedVars}
*/
"use strict";
exports.zoneSymbol = Zone['__symbol__'];
var _global = typeof window == 'undefined' ? global : window;
function bindArguments(args, source) {
for (var i = args.length - 1; i >= 0; i--) {
if (typeof args[i] === 'function') {
args[i] = Zone.current.wrap(args[i], source + '_' + i);
}
}
return args;
}
exports.bindArguments = bindArguments;
;
function patchPrototype(prototype, fnNames) {
var source = prototype.constructor['name'];
var _loop_1 = function(i) {
var name_1 = fnNames[i];
var delegate = prototype[name_1];
if (delegate) {
prototype[name_1] = (function (delegate) {
return function () {
return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));
};
})(delegate);
}
};
for (var i = 0; i < fnNames.length; i++) {
_loop_1(i);
}
}
exports.patchPrototype = patchPrototype;
;
exports.isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);
exports.isNode = (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');
exports.isBrowser = !exports.isNode && !exports.isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);
function patchProperty(obj, prop) {
var desc = Object.getOwnPropertyDescriptor(obj, prop) || {
enumerable: true,
configurable: true
};
// A property descriptor cannot have getter/setter and be writable
// deleting the writable and value properties avoids this error:
//
// TypeError: property descriptors must not specify a value or be writable when a
// getter or setter has been specified
delete desc.writable;
delete desc.value;
// substr(2) cuz 'onclick' -> 'click', etc
var eventName = prop.substr(2);
var _prop = '_' + prop;
desc.set = function (fn) {
if (this[_prop]) {
this.removeEventListener(eventName, this[_prop]);
}
if (typeof fn === 'function') {
var wrapFn = function (event) {
var result;
result = fn.apply(this, arguments);
if (result != undefined && !result)
event.preventDefault();
};
this[_prop] = wrapFn;
this.addEventListener(eventName, wrapFn, false);
}
else {
this[_prop] = null;
}
};
desc.get = function () {
return this[_prop];
};
Object.defineProperty(obj, prop, desc);
}
exports.patchProperty = patchProperty;
;
function patchOnProperties(obj, properties) {
var onProperties = [];
for (var prop in obj) {
if (prop.substr(0, 2) == 'on') {
onProperties.push(prop);
}
}
for (var j = 0; j < onProperties.length; j++) {
patchProperty(obj, onProperties[j]);
}
if (properties) {
for (var i = 0; i < properties.length; i++) {
patchProperty(obj, 'on' + properties[i]);
}
}
}
exports.patchOnProperties = patchOnProperties;
;
var EVENT_TASKS = exports.zoneSymbol('eventTasks');
var ADD_EVENT_LISTENER = 'addEventListener';
var REMOVE_EVENT_LISTENER = 'removeEventListener';
var SYMBOL_ADD_EVENT_LISTENER = exports.zoneSymbol(ADD_EVENT_LISTENER);
var SYMBOL_REMOVE_EVENT_LISTENER = exports.zoneSymbol(REMOVE_EVENT_LISTENER);
function findExistingRegisteredTask(target, handler, name, capture, remove) {
var eventTasks = target[EVENT_TASKS];
if (eventTasks) {
for (var i = 0; i < eventTasks.length; i++) {
var eventTask = eventTasks[i];
var data = eventTask.data;
if (data.handler === handler
&& data.useCapturing === capture
&& data.eventName === name) {
if (remove) {
eventTasks.splice(i, 1);
}
return eventTask;
}
}
}
return null;
}
function attachRegisteredEvent(target, eventTask) {
var eventTasks = target[EVENT_TASKS];
if (!eventTasks) {
eventTasks = target[EVENT_TASKS] = [];
}
eventTasks.push(eventTask);
}
function scheduleEventListener(eventTask) {
var meta = eventTask.data;
attachRegisteredEvent(meta.target, eventTask);
return meta.target[SYMBOL_ADD_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);
}
function cancelEventListener(eventTask) {
var meta = eventTask.data;
findExistingRegisteredTask(meta.target, eventTask.invoke, meta.eventName, meta.useCapturing, true);
meta.target[SYMBOL_REMOVE_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);
}
function zoneAwareAddEventListener(self, args) {
var eventName = args[0];
var handler = args[1];
var useCapturing = args[2] || false;
// - Inside a Web Worker, `this` is undefined, the context is `global`
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
// see https://github.com/angular/zone.js/issues/190
var target = self || _global;
var delegate = null;
if (typeof handler == 'function') {
delegate = handler;
}
else if (handler && handler.handleEvent) {
delegate = function (event) { return handler.handleEvent(event); };
}
var validZoneHandler = false;
try {
// In cross site contexts (such as WebDriver frameworks like Selenium),
// accessing the handler object here will cause an exception to be thrown which
// will fail tests prematurely.
validZoneHandler = handler && handler.toString() === "[object FunctionWrapper]";
}
catch (e) {
// Returning nothing here is fine, because objects in a cross-site context are unusable
return;
}
// Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150
if (!delegate || validZoneHandler) {
return target[SYMBOL_ADD_EVENT_LISTENER](eventName, handler, useCapturing);
}
var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, false);
if (eventTask) {
// we already registered, so this will have noop.
return target[SYMBOL_ADD_EVENT_LISTENER](eventName, eventTask.invoke, useCapturing);
}
var zone = Zone.current;
var source = target.constructor['name'] + '.addEventListener:' + eventName;
var data = {
target: target,
eventName: eventName,
name: eventName,
useCapturing: useCapturing,
handler: handler
};
zone.scheduleEventTask(source, delegate, data, scheduleEventListener, cancelEventListener);
}
function zoneAwareRemoveEventListener(self, args) {
var eventName = args[0];
var handler = args[1];
var useCapturing = args[2] || false;
// - Inside a Web Worker, `this` is undefined, the context is `global`
// - When `addEventListener` is called on the global context in strict mode, `this` is undefined
// see https://github.com/angular/zone.js/issues/190
var target = self || _global;
var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, true);
if (eventTask) {
eventTask.zone.cancelTask(eventTask);
}
else {
target[SYMBOL_REMOVE_EVENT_LISTENER](eventName, handler, useCapturing);
}
}
function patchEventTargetMethods(obj) {
if (obj && obj.addEventListener) {
patchMethod(obj, ADD_EVENT_LISTENER, function () { return zoneAwareAddEventListener; });
patchMethod(obj, REMOVE_EVENT_LISTENER, function () { return zoneAwareRemoveEventListener; });
return true;
}
else {
return false;
}
}
exports.patchEventTargetMethods = patchEventTargetMethods;
;
var originalInstanceKey = exports.zoneSymbol('originalInstance');
// wrap some native API on `window`
function patchClass(className) {
var OriginalClass = _global[className];
if (!OriginalClass)
return;
_global[className] = function () {
var a = bindArguments(arguments, className);
switch (a.length) {
case 0:
this[originalInstanceKey] = new OriginalClass();
break;
case 1:
this[originalInstanceKey] = new OriginalClass(a[0]);
break;
case 2:
this[originalInstanceKey] = new OriginalClass(a[0], a[1]);
break;
case 3:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);
break;
case 4:
this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);
break;
default: throw new Error('Arg list too long.');
}
};
var instance = new OriginalClass(function () { });
var prop;
for (prop in instance) {
(function (prop) {
if (typeof instance[prop] === 'function') {
_global[className].prototype[prop] = function () {
return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);
};
}
else {
Object.defineProperty(_global[className].prototype, prop, {
set: function (fn) {
if (typeof fn === 'function') {
this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);
}
else {
this[originalInstanceKey][prop] = fn;
}
},
get: function () {
return this[originalInstanceKey][prop];
}
});
}
}(prop));
}
for (prop in OriginalClass) {
if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {
_global[className][prop] = OriginalClass[prop];
}
}
}
exports.patchClass = patchClass;
;
function createNamedFn(name, delegate) {
try {
return (Function('f', "return function " + name + "(){return f(this, arguments)}"))(delegate);
}
catch (e) {
// if we fail, we must be CSP, just return delegate.
return function () {
return delegate(this, arguments);
};
}
}
exports.createNamedFn = createNamedFn;
function patchMethod(target, name, patchFn) {
var proto = target;
while (proto && !proto.hasOwnProperty(name)) {
proto = Object.getPrototypeOf(proto);
}
if (!proto && target[name]) {
// somehow we did not find it, but we can see it. This happens on IE for Window properties.
proto = target;
}
var delegateName = exports.zoneSymbol(name);
var delegate;
if (proto && !(delegate = proto[delegateName])) {
delegate = proto[delegateName] = proto[name];
proto[name] = createNamedFn(name, patchFn(delegate, delegateName, name));
}
return delegate;
}
exports.patchMethod = patchMethod;
/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var utils_1 = __webpack_require__(3);
/*
* This is necessary for Chrome and Chrome mobile, to enable
* things like redefining `createdCallback` on an element.
*/
var _defineProperty = Object.defineProperty;
var _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var _create = Object.create;
var unconfigurablesKey = utils_1.zoneSymbol('unconfigurables');
function propertyPatch() {
Object.defineProperty = function (obj, prop, desc) {
if (isUnconfigurable(obj, prop)) {
throw new TypeError('Cannot assign to read only property \'' + prop + '\' of ' + obj);
}
if (prop !== 'prototype') {
desc = rewriteDescriptor(obj, prop, desc);
}
return _defineProperty(obj, prop, desc);
};
Object.defineProperties = function (obj, props) {
Object.keys(props).forEach(function (prop) {
Object.defineProperty(obj, prop, props[prop]);
});
return obj;
};
Object.create = function (obj, proto) {
if (typeof proto === 'object') {
Object.keys(proto).forEach(function (prop) {
proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);
});
}
return _create(obj, proto);
};
Object.getOwnPropertyDescriptor = function (obj, prop) {
var desc = _getOwnPropertyDescriptor(obj, prop);
if (isUnconfigurable(obj, prop)) {
desc.configurable = false;
}
return desc;
};
}
exports.propertyPatch = propertyPatch;
;
function _redefineProperty(obj, prop, desc) {
desc = rewriteDescriptor(obj, prop, desc);
return _defineProperty(obj, prop, desc);
}
exports._redefineProperty = _redefineProperty;
;
function isUnconfigurable(obj, prop) {
return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];
}
function rewriteDescriptor(obj, prop, desc) {
desc.configurable = true;
if (!desc.configurable) {
if (!obj[unconfigurablesKey]) {
_defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });
}
obj[unconfigurablesKey][prop] = true;
}
return desc;
}
/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var define_property_1 = __webpack_require__(4);
var utils_1 = __webpack_require__(3);
function registerElementPatch(_global) {
if (!utils_1.isBrowser || !('registerElement' in _global.document)) {
return;
}
var _registerElement = document.registerElement;
var callbacks = [
'createdCallback',
'attachedCallback',
'detachedCallback',
'attributeChangedCallback'
];
document.registerElement = function (name, opts) {
if (opts && opts.prototype) {
callbacks.forEach(function (callback) {
var source = 'Document.registerElement::' + callback;
if (opts.prototype.hasOwnProperty(callback)) {
var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);
if (descriptor && descriptor.value) {
descriptor.value = Zone.current.wrap(descriptor.value, source);
define_property_1._redefineProperty(opts.prototype, callback, descriptor);
}
else {
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
}
}
else if (opts.prototype[callback]) {
opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);
}
});
}
return _registerElement.apply(document, [name, opts]);
};
}
exports.registerElementPatch = registerElementPatch;
/***/ },
/* 6 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var webSocketPatch = __webpack_require__(7);
var utils_1 = __webpack_require__(3);
var eventNames = '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(' ');
function propertyDescriptorPatch(_global) {
if (utils_1.isNode) {
return;
}
var supportsWebSocket = typeof WebSocket !== 'undefined';
if (canPatchViaPropertyDescriptor()) {
// for browsers that we can patch the descriptor: Chrome & Firefox
if (utils_1.isBrowser) {
utils_1.patchOnProperties(HTMLElement.prototype, eventNames);
}
utils_1.patchOnProperties(XMLHttpRequest.prototype, null);
if (typeof IDBIndex !== 'undefined') {
utils_1.patchOnProperties(IDBIndex.prototype, null);
utils_1.patchOnProperties(IDBRequest.prototype, null);
utils_1.patchOnProperties(IDBOpenDBRequest.prototype, null);
utils_1.patchOnProperties(IDBDatabase.prototype, null);
utils_1.patchOnProperties(IDBTransaction.prototype, null);
utils_1.patchOnProperties(IDBCursor.prototype, null);
}
if (supportsWebSocket) {
utils_1.patchOnProperties(WebSocket.prototype, null);
}
}
else {
// Safari, Android browsers (Jelly Bean)
patchViaCapturingAllTheEvents();
utils_1.patchClass('XMLHttpRequest');
if (supportsWebSocket) {
webSocketPatch.apply(_global);
}
}
}
exports.propertyDescriptorPatch = propertyDescriptorPatch;
function canPatchViaPropertyDescriptor() {
if (utils_1.isBrowser && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick')
&& typeof Element !== 'undefined') {
// WebKit https://bugs.webkit.org/show_bug.cgi?id=134364
// IDL interface attributes are not configurable
var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');
if (desc && !desc.configurable)
return false;
}
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {
get: function () {
return true;
}
});
var req = new XMLHttpRequest();
var result = !!req.onreadystatechange;
Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {});
return result;
}
;
var unboundKey = utils_1.zoneSymbol('unbound');
// Whenever any eventListener fires, we check the eventListener target and all parents
// for `onwhatever` properties and replace them with zone-bound functions
// - Chrome (for now)
function patchViaCapturingAllTheEvents() {
var _loop_1 = function(i) {
var property = eventNames[i];
var onproperty = 'on' + property;
document.addEventListener(property, function (event) {
var elt = event.target, bound, source;
if (elt) {
source = elt.constructor['name'] + '.' + onproperty;
}
else {
source = 'unknown.' + onproperty;
}
while (elt) {
if (elt[onproperty] && !elt[onproperty][unboundKey]) {
bound = Zone.current.wrap(elt[onproperty], source);
bound[unboundKey] = elt[onproperty];
elt[onproperty] = bound;
}
elt = elt.parentElement;
}
}, true);
};
for (var i = 0; i < eventNames.length; i++) {
_loop_1(i);
}
;
}
;
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var utils_1 = __webpack_require__(3);
// we have to patch the instance since the proto is non-configurable
function apply(_global) {
var WS = _global.WebSocket;
// On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener
// On older Chrome, no need since EventTarget was already patched
if (!_global.EventTarget) {
utils_1.patchEventTargetMethods(WS.prototype);
}
_global.WebSocket = function (a, b) {
var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);
var proxySocket;
// Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance
var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');
if (onmessageDesc && onmessageDesc.configurable === false) {
proxySocket = Object.create(socket);
['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {
proxySocket[propName] = function () {
return socket[propName].apply(socket, arguments);
};
});
}
else {
// we can patch the real socket
proxySocket = socket;
}
utils_1.patchOnProperties(proxySocket, ['close', 'error', 'message', 'open']);
return proxySocket;
};
for (var prop in WS) {
_global.WebSocket[prop] = WS[prop];
}
}
exports.apply = apply;
/***/ },
/* 8 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var utils_1 = __webpack_require__(3);
function patchTimer(window, setName, cancelName, nameSuffix) {
var setNative = null;
var clearNative = null;
setName += nameSuffix;
cancelName += nameSuffix;
function scheduleTask(task) {
var data = task.data;
data.args[0] = task.invoke;
data.handleId = setNative.apply(window, data.args);
return task;
}
function clearTask(task) {
return clearNative(task.data.handleId);
}
setNative = utils_1.patchMethod(window, setName, function (delegate) { return function (self, args) {
if (typeof args[0] === 'function') {
var zone = Zone.current;
var options = {
handleId: null,
isPeriodic: nameSuffix === 'Interval',
delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 : null,
args: args
};
return zone.scheduleMacroTask(setName, args[0], options, scheduleTask, clearTask);
}
else {
// cause an error by calling it directly.
return delegate.apply(window, args);
}
}; });
clearNative = utils_1.patchMethod(window, cancelName, function (delegate) { return function (self, args) {
var task = args[0];
if (task && typeof task.type === 'string') {
if (task.cancelFn && task.data.isPeriodic || task.runCount === 0) {
// Do not cancel already canceled functions
task.zone.cancelTask(task);
}
}
else {
// cause an error by calling it directly.
delegate.apply(window, args);
}
}; });
}
exports.patchTimer = patchTimer;
/***/ }
/******/ ]);
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
'use strict';
(function () {
var NEWLINE = '\n';
var SEP = ' ------------- ';
var IGNORE_FRAMES = [];
var creationTrace = '__creationTrace__';
var LongStackTrace = (function () {
function LongStackTrace() {
this.error = getStacktrace();
this.timestamp = new Date();
}
return LongStackTrace;
}());
function getStacktraceWithUncaughtError() {
return new Error('STACKTRACE TRACKING');
}
function getStacktraceWithCaughtError() {
try {
throw getStacktraceWithUncaughtError();
}
catch (e) {
return 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 error = getStacktraceWithUncaughtError();
var coughtError = getStacktraceWithCaughtError();
var getStacktrace = error.stack
? getStacktraceWithUncaughtError
: (coughtError.stack ? getStacktraceWithCaughtError : getStacktraceWithUncaughtError);
function getFrames(error) {
return error.stack ? error.stack.split(NEWLINE) : [];
}
function addErrorStack(lines, error) {
var trace = getFrames(error);
for (var i = 0; i < trace.length; i++) {
var frame = trace[i];
// Filter out the Frames which are part of stack capturing.
if (!(i < IGNORE_FRAMES.length && IGNORE_FRAMES[i] === frame)) {
lines.push(trace[i]);
}
}
}
function renderLongStackTrace(frames, stack) {
var longTrace = [stack];
if (frames) {
var timestamp = new Date().getTime();
for (var i = 0; i < frames.length; i++) {
var traceFrames = frames[i];
var lastTime = traceFrames.timestamp;
longTrace.push(SEP + " Elapsed: " + (timestamp - lastTime.getTime()) + " ms; At: " + lastTime + " " + SEP);
addErrorStack(longTrace, traceFrames.error);
timestamp = lastTime.getTime();
}
}
return longTrace.join(NEWLINE);
}
Zone['longStackTraceZoneSpec'] = {
name: 'long-stack-trace',
longStackTraceLimit: 10,
onScheduleTask: function (parentZoneDelegate, currentZone, targetZone, task) {
var currentTask = Zone.currentTask;
var trace = currentTask && currentTask.data && currentTask.data[creationTrace] || [];
trace = [new LongStackTrace()].concat(trace);
if (trace.length > this.longStackTraceLimit) {
trace.length = this.longStackTraceLimit;
}
if (!task.data)
task.data = {};
task.data[creationTrace] = trace;
return parentZoneDelegate.scheduleTask(targetZone, task);
},
onHandleError: function (parentZoneDelegate, currentZone, targetZone, error) {
var parentTask = Zone.currentTask;
if (error instanceof Error && parentTask) {
var descriptor = Object.getOwnPropertyDescriptor(error, 'stack');
if (descriptor) {
var delegateGet_1 = descriptor.get;
var value_1 = descriptor.value;
descriptor = {
get: function () {
return renderLongStackTrace(parentTask.data && parentTask.data[creationTrace], delegateGet_1 ? delegateGet_1.apply(this) : value_1);
}
};
Object.defineProperty(error, 'stack', descriptor);
}
else {
error.stack = renderLongStackTrace(parentTask.data && parentTask.data[creationTrace], error.stack);
}
}
return parentZoneDelegate.handleError(targetZone, error);
}
};
function captureStackTraces(stackTraces, count) {
if (count > 0) {
stackTraces.push(getFrames((new LongStackTrace()).error));
captureStackTraces(stackTraces, count - 1);
}
}
function computeIgnoreFrames() {
var frames = [];
captureStackTraces(frames, 2);
var frames1 = frames[0];
var frames2 = frames[1];
for (var i = 0; i < frames1.length; i++) {
var frame1 = frames1[i];
var frame2 = frames2[i];
if (frame1 === frame2) {
IGNORE_FRAMES.push(frame1);
}
else {
break;
}
}
}
computeIgnoreFrames();
})();
/***/ }
/******/ ]);
2016-01-25 00:27:39 +03:00
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Reflect;
(function (Reflect) {
2016-03-15 17:20:16 +03:00
"use strict";
2016-01-25 00:27:39 +03:00
// Load global or shim versions of Map, Set, and WeakMap
var functionPrototype = Object.getPrototypeOf(Function);
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
// [[Metadata]] internal slot
var __Metadata__ = new _WeakMap();
/**
* Applies a set of decorators to a property of a target object.
* @param decorators An array of decorators.
* @param target The target object.
* @param targetKey (Optional) The property key to decorate.
* @param targetDescriptor (Optional) The property descriptor for the target key
* @remarks Decorators are applied in reverse order.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* C = Reflect.decorate(decoratorsArray, C);
*
* // property (on constructor)
* Reflect.decorate(decoratorsArray, C, "staticProperty");
*
* // property (on prototype)
* Reflect.decorate(decoratorsArray, C.prototype, "property");
*
* // method (on constructor)
* Object.defineProperty(C, "staticMethod",
* Reflect.decorate(decoratorsArray, C, "staticMethod",
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
*
* // method (on prototype)
* Object.defineProperty(C.prototype, "method",
* Reflect.decorate(decoratorsArray, C.prototype, "method",
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
*
*/
function decorate(decorators, target, targetKey, targetDescriptor) {
if (!IsUndefined(targetDescriptor)) {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsObject(target)) {
throw new TypeError();
}
else if (IsUndefined(targetKey)) {
throw new TypeError();
}
else if (!IsObject(targetDescriptor)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
}
else if (!IsUndefined(targetKey)) {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsObject(target)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
}
else {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsConstructor(target)) {
throw new TypeError();
}
return DecorateConstructor(decorators, target);
}
}
Reflect.decorate = decorate;
/**
* A default metadata decorator factory that can be used on a class, class member, or parameter.
* @param metadataKey The key for the metadata entry.
* @param metadataValue The value for the metadata entry.
* @returns A decorator function.
* @remarks
* If `metadataKey` is already defined for the target and target key, the
* metadataValue for that key will be overwritten.
* @example
*
* // constructor
* @Reflect.metadata(key, value)
* class C {
* }
*
* // property (on constructor, TypeScript only)
* class C {
* @Reflect.metadata(key, value)
* static staticProperty;
* }
*
* // property (on prototype, TypeScript only)
* class C {
* @Reflect.metadata(key, value)
* property;
* }
*
* // method (on constructor)
* class C {
* @Reflect.metadata(key, value)
* static staticMethod() { }
* }
*
* // method (on prototype)
* class C {
* @Reflect.metadata(key, value)
* method() { }
* }
*
*/
function metadata(metadataKey, metadataValue) {
function decorator(target, targetKey) {
if (!IsUndefined(targetKey)) {
if (!IsObject(target)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
}
else {
if (!IsConstructor(target)) {
throw new TypeError();
}
2016-03-15 17:20:16 +03:00
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
2016-01-25 00:27:39 +03:00
}
}
return decorator;
}
Reflect.metadata = metadata;
/**
* Define a unique metadata entry on the target.
* @param metadataKey A key used to store and retrieve metadata.
* @param metadataValue A value that contains attached metadata.
* @param target The target object on which to define metadata.
* @param targetKey (Optional) The property key for the target.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* Reflect.defineMetadata("custom:annotation", options, C);
*
* // property (on constructor)
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
*
* // property (on prototype)
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
*
* // method (on constructor)
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
*
* // method (on prototype)
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
*
* // decorator factory as metadata-producing annotation.
* function MyAnnotation(options): Decorator {
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
* }
*
*/
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
}
Reflect.defineMetadata = defineMetadata;
/**
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.hasMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
*
*/
function hasMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryHasMetadata(metadataKey, target, targetKey);
}
Reflect.hasMetadata = hasMetadata;
/**
* Gets a value indicating whether the target object has the provided metadata key defined.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.hasOwnMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
*
*/
function hasOwnMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
}
Reflect.hasOwnMetadata = hasOwnMetadata;
/**
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
*
*/
function getMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryGetMetadata(metadataKey, target, targetKey);
}
Reflect.getMetadata = getMetadata;
/**
* Gets the metadata value for the provided metadata key on the target object.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getOwnMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
*
*/
function getOwnMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
}
Reflect.getOwnMetadata = getOwnMetadata;
/**
* Gets the metadata keys defined on the target object or its prototype chain.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns An array of unique metadata keys.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getMetadataKeys(C);
*
* // property (on constructor)
* result = Reflect.getMetadataKeys(C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getMetadataKeys(C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getMetadataKeys(C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getMetadataKeys(C.prototype, "method");
*
*/
function getMetadataKeys(target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryMetadataKeys(target, targetKey);
}
Reflect.getMetadataKeys = getMetadataKeys;
/**
* Gets the unique metadata keys defined on the target object.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns An array of unique metadata keys.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getOwnMetadataKeys(C);
*
* // property (on constructor)
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
*
*/
function getOwnMetadataKeys(target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryOwnMetadataKeys(target, targetKey);
}
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
/**
* Deletes the metadata entry from the target object with the provided key.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.deleteMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
*
*/
function deleteMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (IsUndefined(metadataMap)) {
return false;
}
if (!metadataMap.delete(metadataKey)) {
return false;
}
if (metadataMap.size > 0) {
return true;
}
var targetMetadata = __Metadata__.get(target);
targetMetadata.delete(targetKey);
if (targetMetadata.size > 0) {
return true;
}
__Metadata__.delete(target);
return true;
}
Reflect.deleteMetadata = deleteMetadata;
function DecorateConstructor(decorators, target) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
var decorated = decorator(target);
if (!IsUndefined(decorated)) {
if (!IsConstructor(decorated)) {
throw new TypeError();
}
target = decorated;
}
}
return target;
}
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
var decorated = decorator(target, propertyKey, descriptor);
if (!IsUndefined(decorated)) {
if (!IsObject(decorated)) {
throw new TypeError();
}
descriptor = decorated;
}
}
return descriptor;
}
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
decorator(target, propertyKey);
}
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
function GetOrCreateMetadataMap(target, targetKey, create) {
var targetMetadata = __Metadata__.get(target);
if (!targetMetadata) {
if (!create) {
return undefined;
}
targetMetadata = new _Map();
__Metadata__.set(target, targetMetadata);
}
var keyMetadata = targetMetadata.get(targetKey);
if (!keyMetadata) {
if (!create) {
return undefined;
}
keyMetadata = new _Map();
targetMetadata.set(targetKey, keyMetadata);
}
return keyMetadata;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
function OrdinaryHasMetadata(MetadataKey, O, P) {
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) {
return true;
}
var parent = GetPrototypeOf(O);
if (parent !== null) {
return OrdinaryHasMetadata(MetadataKey, parent, P);
}
return false;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (metadataMap === undefined) {
return false;
}
return Boolean(metadataMap.has(MetadataKey));
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
function OrdinaryGetMetadata(MetadataKey, O, P) {
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) {
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
}
var parent = GetPrototypeOf(O);
if (parent !== null) {
return OrdinaryGetMetadata(MetadataKey, parent, P);
}
return undefined;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (metadataMap === undefined) {
return undefined;
}
return metadataMap.get(MetadataKey);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
2016-01-25 00:27:39 +03:00
metadataMap.set(MetadataKey, MetadataValue);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
function OrdinaryMetadataKeys(O, P) {
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
var parent = GetPrototypeOf(O);
if (parent === null) {
return ownKeys;
}
var parentKeys = OrdinaryMetadataKeys(parent, P);
if (parentKeys.length <= 0) {
return ownKeys;
}
if (ownKeys.length <= 0) {
return parentKeys;
}
var set = new _Set();
var keys = [];
for (var _i = 0; _i < ownKeys.length; _i++) {
var key = ownKeys[_i];
var hasKey = set.has(key);
if (!hasKey) {
set.add(key);
keys.push(key);
}
}
for (var _a = 0; _a < parentKeys.length; _a++) {
var key = parentKeys[_a];
var hasKey = set.has(key);
if (!hasKey) {
set.add(key);
keys.push(key);
}
}
return keys;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
function OrdinaryOwnMetadataKeys(target, targetKey) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
var keys = [];
if (metadataMap) {
metadataMap.forEach(function (_, key) { return keys.push(key); });
}
return keys;
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
function IsUndefined(x) {
return x === undefined;
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
function IsArray(x) {
return Array.isArray(x);
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
function IsObject(x) {
return typeof x === "object" ? x !== null : typeof x === "function";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
function IsConstructor(x) {
return typeof x === "function";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
function IsSymbol(x) {
return typeof x === "symbol";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
function ToPropertyKey(value) {
if (IsSymbol(value)) {
return value;
}
return String(value);
}
function GetPrototypeOf(O) {
var proto = Object.getPrototypeOf(O);
if (typeof O !== "function" || O === functionPrototype) {
return proto;
}
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
// Try to determine the superclass constructor. Compatible implementations
// must either set __proto__ on a subclass constructor to the superclass constructor,
// or ensure each class has a valid `constructor` property on its prototype that
// points back to the constructor.
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
// This is the case when in ES6 or when using __proto__ in a compatible browser.
if (proto !== functionPrototype) {
return proto;
}
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
var prototype = O.prototype;
var prototypeProto = Object.getPrototypeOf(prototype);
if (prototypeProto == null || prototypeProto === Object.prototype) {
return proto;
}
// if the constructor was not a function, then we cannot determine the heritage.
var constructor = prototypeProto.constructor;
if (typeof constructor !== "function") {
return proto;
}
// if we have some kind of self-reference, then we cannot determine the heritage.
if (constructor === O) {
return proto;
}
// we have a pretty good guess at the heritage.
return constructor;
}
// naive Map shim
function CreateMapPolyfill() {
var cacheSentinel = {};
function Map() {
this._keys = [];
this._values = [];
this._cache = cacheSentinel;
}
Map.prototype = {
get size() {
return this._keys.length;
},
has: function (key) {
if (key === this._cache) {
return true;
}
if (this._find(key) >= 0) {
this._cache = key;
return true;
}
return false;
},
get: function (key) {
var index = this._find(key);
if (index >= 0) {
this._cache = key;
return this._values[index];
}
return undefined;
},
set: function (key, value) {
this.delete(key);
this._keys.push(key);
this._values.push(value);
this._cache = key;
return this;
},
delete: function (key) {
var index = this._find(key);
if (index >= 0) {
this._keys.splice(index, 1);
this._values.splice(index, 1);
this._cache = cacheSentinel;
return true;
}
return false;
},
clear: function () {
this._keys.length = 0;
this._values.length = 0;
this._cache = cacheSentinel;
},
forEach: function (callback, thisArg) {
var size = this.size;
for (var i = 0; i < size; ++i) {
var key = this._keys[i];
var value = this._values[i];
this._cache = key;
callback.call(this, value, key, this);
}
},
_find: function (key) {
var keys = this._keys;
var size = keys.length;
for (var i = 0; i < size; ++i) {
if (keys[i] === key) {
return i;
}
}
return -1;
}
};
return Map;
}
// naive Set shim
function CreateSetPolyfill() {
var cacheSentinel = {};
function Set() {
this._map = new _Map();
}
Set.prototype = {
get size() {
return this._map.length;
},
has: function (value) {
return this._map.has(value);
},
add: function (value) {
this._map.set(value, value);
return this;
},
delete: function (value) {
return this._map.delete(value);
},
clear: function () {
this._map.clear();
},
forEach: function (callback, thisArg) {
this._map.forEach(callback, thisArg);
}
};
return Set;
}
// naive WeakMap shim
function CreateWeakMapPolyfill() {
var UUID_SIZE = 16;
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
var nodeCrypto = isNode && require("crypto");
var hasOwn = Object.prototype.hasOwnProperty;
var keys = {};
var rootKey = CreateUniqueKey();
function WeakMap() {
this._key = CreateUniqueKey();
}
WeakMap.prototype = {
has: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return this._key in table;
}
return false;
},
get: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return table[this._key];
}
return undefined;
},
set: function (target, value) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
2016-01-25 00:27:39 +03:00
table[this._key] = value;
return this;
},
delete: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table && this._key in table) {
return delete table[this._key];
}
return false;
},
clear: function () {
// NOTE: not a real clear, just makes the previous data unreachable
this._key = CreateUniqueKey();
}
};
function FillRandomBytes(buffer, size) {
for (var i = 0; i < size; ++i) {
buffer[i] = Math.random() * 255 | 0;
}
}
function GenRandomBytes(size) {
if (nodeCrypto) {
var data = nodeCrypto.randomBytes(size);
return data;
}
else if (typeof Uint8Array === "function") {
var data = new Uint8Array(size);
if (typeof crypto !== "undefined") {
crypto.getRandomValues(data);
}
else if (typeof msCrypto !== "undefined") {
msCrypto.getRandomValues(data);
}
else {
FillRandomBytes(data, size);
}
return data;
}
else {
var data = new Array(size);
FillRandomBytes(data, size);
return data;
}
}
function CreateUUID() {
var data = GenRandomBytes(UUID_SIZE);
// mark as random - RFC 4122 § 4.4
data[6] = data[6] & 0x4f | 0x40;
data[8] = data[8] & 0xbf | 0x80;
var result = "";
for (var offset = 0; offset < UUID_SIZE; ++offset) {
var byte = data[offset];
if (offset === 4 || offset === 6 || offset === 8) {
result += "-";
}
if (byte < 16) {
result += "0";
}
result += byte.toString(16).toLowerCase();
}
return result;
}
function CreateUniqueKey() {
var key;
do {
key = "@@WeakMap@@" + CreateUUID();
} while (hasOwn.call(keys, key));
keys[key] = true;
return key;
}
function GetOrCreateWeakMapTable(target, create) {
if (!hasOwn.call(target, rootKey)) {
if (!create) {
return undefined;
}
Object.defineProperty(target, rootKey, { value: Object.create(null) });
}
return target[rootKey];
}
return WeakMap;
}
// hook global Reflect
(function (__global) {
if (typeof __global.Reflect !== "undefined") {
if (__global.Reflect !== Reflect) {
for (var p in Reflect) {
__global.Reflect[p] = Reflect[p];
}
}
}
else {
__global.Reflect = Reflect;
}
})(typeof window !== "undefined" ? window :
typeof WorkerGlobalScope !== "undefined" ? self :
typeof global !== "undefined" ? global :
Function("return this;")());
})(Reflect || (Reflect = {}));
2016-05-18 23:03:59 +03:00
(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(_dereq_,module,exports){
(function (global){
"use strict";
_dereq_(189);
_dereq_(2);
if (global._babelPolyfill) {
throw new Error("only one instance of babel-polyfill is allowed");
}
global._babelPolyfill = true;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"189":189,"2":2}],2:[function(_dereq_,module,exports){
module.exports = _dereq_(190);
},{"190":190}],3:[function(_dereq_,module,exports){
module.exports = function(it){
if(typeof it != 'function')throw TypeError(it + ' is not a function!');
return it;
};
},{}],4:[function(_dereq_,module,exports){
// 22.1.3.31 Array.prototype[@@unscopables]
var UNSCOPABLES = _dereq_(84)('unscopables')
, ArrayProto = Array.prototype;
if(ArrayProto[UNSCOPABLES] == undefined)_dereq_(32)(ArrayProto, UNSCOPABLES, {});
module.exports = function(key){
ArrayProto[UNSCOPABLES][key] = true;
};
},{"32":32,"84":84}],5:[function(_dereq_,module,exports){
var isObject = _dereq_(39);
module.exports = function(it){
if(!isObject(it))throw TypeError(it + ' is not an object!');
return it;
};
},{"39":39}],6:[function(_dereq_,module,exports){
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
'use strict';
var toObject = _dereq_(81)
, toIndex = _dereq_(77)
, toLength = _dereq_(80);
module.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){
var O = toObject(this)
, len = toLength(O.length)
, to = toIndex(target, len)
, from = toIndex(start, len)
, $$ = arguments
, end = $$.length > 2 ? $$[2] : undefined
, count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to)
, inc = 1;
if(from < to && to < from + count){
inc = -1;
from += count - 1;
to += count - 1;
}
while(count-- > 0){
if(from in O)O[to] = O[from];
else delete O[to];
to += inc;
from += inc;
} return O;
};
},{"77":77,"80":80,"81":81}],7:[function(_dereq_,module,exports){
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
'use strict';
var toObject = _dereq_(81)
, toIndex = _dereq_(77)
, toLength = _dereq_(80);
module.exports = [].fill || function fill(value /*, start = 0, end = @length */){
var O = toObject(this)
, length = toLength(O.length)
, $$ = arguments
, $$len = $$.length
, index = toIndex($$len > 1 ? $$[1] : undefined, length)
, end = $$len > 2 ? $$[2] : undefined
, endPos = end === undefined ? length : toIndex(end, length);
while(endPos > index)O[index++] = value;
return O;
};
},{"77":77,"80":80,"81":81}],8:[function(_dereq_,module,exports){
// false -> Array#indexOf
// true -> Array#includes
var toIObject = _dereq_(79)
, toLength = _dereq_(80)
, toIndex = _dereq_(77);
module.exports = function(IS_INCLUDES){
return function($this, el, fromIndex){
var O = toIObject($this)
, length = toLength(O.length)
, index = toIndex(fromIndex, length)
, value;
// Array#includes uses SameValueZero equality algorithm
if(IS_INCLUDES && el != el)while(length > index){
value = O[index++];
if(value != value)return true;
// Array#toIndex ignores holes, Array#includes - not
} else for(;length > index; index++)if(IS_INCLUDES || index in O){
if(O[index] === el)return IS_INCLUDES || index;
} return !IS_INCLUDES && -1;
};
};
},{"77":77,"79":79,"80":80}],9:[function(_dereq_,module,exports){
// 0 -> Array#forEach
// 1 -> Array#map
// 2 -> Array#filter
// 3 -> Array#some
// 4 -> Array#every
// 5 -> Array#find
// 6 -> Array#findIndex
var ctx = _dereq_(18)
, IObject = _dereq_(35)
, toObject = _dereq_(81)
, toLength = _dereq_(80)
, asc = _dereq_(10);
module.exports = function(TYPE){
var IS_MAP = TYPE == 1
, IS_FILTER = TYPE == 2
, IS_SOME = TYPE == 3
, IS_EVERY = TYPE == 4
, IS_FIND_INDEX = TYPE == 6
, NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
return function($this, callbackfn, that){
var O = toObject($this)
, self = IObject(O)
, f = ctx(callbackfn, that, 3)
, length = toLength(self.length)
, index = 0
, result = IS_MAP ? asc($this, length) : IS_FILTER ? asc($this, 0) : undefined
, val, res;
for(;length > index; index++)if(NO_HOLES || index in self){
val = self[index];
res = f(val, index, O);
if(TYPE){
if(IS_MAP)result[index] = res; // map
else if(res)switch(TYPE){
case 3: return true; // some
case 5: return val; // find
case 6: return index; // findIndex
case 2: result.push(val); // filter
} else if(IS_EVERY)return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
};
};
},{"10":10,"18":18,"35":35,"80":80,"81":81}],10:[function(_dereq_,module,exports){
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
var isObject = _dereq_(39)
, isArray = _dereq_(37)
, SPECIES = _dereq_(84)('species');
module.exports = function(original, length){
var C;
if(isArray(original)){
C = original.constructor;
// cross-realm fallback
if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;
if(isObject(C)){
C = C[SPECIES];
if(C === null)C = undefined;
}
} return new (C === undefined ? Array : C)(length);
};
},{"37":37,"39":39,"84":84}],11:[function(_dereq_,module,exports){
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = _dereq_(12)
, TAG = _dereq_(84)('toStringTag')
// ES3 wrong here
, ARG = cof(function(){ return arguments; }()) == 'Arguments';
module.exports = function(it){
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = (O = Object(it))[TAG]) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
},{"12":12,"84":84}],12:[function(_dereq_,module,exports){
var toString = {}.toString;
module.exports = function(it){
return toString.call(it).slice(8, -1);
};
},{}],13:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, hide = _dereq_(32)
, redefineAll = _dereq_(61)
, ctx = _dereq_(18)
, strictNew = _dereq_(70)
, defined = _dereq_(19)
, forOf = _dereq_(28)
, $iterDefine = _dereq_(43)
, step = _dereq_(45)
, ID = _dereq_(83)('id')
, $has = _dereq_(31)
, isObject = _dereq_(39)
, setSpecies = _dereq_(66)
, DESCRIPTORS = _dereq_(20)
, isExtensible = Object.isExtensible || isObject
, SIZE = DESCRIPTORS ? '_s' : 'size'
, id = 0;
var fastKey = function(it, create){
// return primitive with prefix
if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if(!$has(it, ID)){
// can't set id to frozen object
if(!isExtensible(it))return 'F';
// not necessary to add id
if(!create)return 'E';
// add missing object id
hide(it, ID, ++id);
// return object id with prefix
} return 'O' + it[ID];
};
var getEntry = function(that, key){
// fast case
var index = fastKey(key), entry;
if(index !== 'F')return that._i[index];
// frozen object case
for(entry = that._f; entry; entry = entry.n){
if(entry.k == key)return entry;
}
};
module.exports = {
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
var C = wrapper(function(that, iterable){
strictNew(that, C, NAME);
that._i = $.create(null); // index
that._f = undefined; // first entry
that._l = undefined; // last entry
that[SIZE] = 0; // size
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear(){
for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){
entry.r = true;
if(entry.p)entry.p = entry.p.n = undefined;
delete data[entry.i];
}
that._f = that._l = undefined;
that[SIZE] = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function(key){
var that = this
, entry = getEntry(that, key);
if(entry){
var next = entry.n
, prev = entry.p;
delete that._i[entry.i];
entry.r = true;
if(prev)prev.n = next;
if(next)next.p = prev;
if(that._f == entry)that._f = next;
if(that._l == entry)that._l = prev;
that[SIZE]--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /*, that = undefined */){
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)
, entry;
while(entry = entry ? entry.n : this._f){
f(entry.v, entry.k, this);
// revert to the last existing entry
while(entry && entry.r)entry = entry.p;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key){
return !!getEntry(this, key);
}
});
if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {
get: function(){
return defined(this[SIZE]);
}
});
return C;
},
def: function(that, key, value){
var entry = getEntry(that, key)
, prev, index;
// change existing entry
if(entry){
entry.v = value;
// create new entry
} else {
that._l = entry = {
i: index = fastKey(key, true), // <- index
k: key, // <- key
v: value, // <- value
p: prev = that._l, // <- previous entry
n: undefined, // <- next entry
r: false // <- removed
};
if(!that._f)that._f = entry;
if(prev)prev.n = entry;
that[SIZE]++;
// add to index
if(index !== 'F')that._i[index] = entry;
} return that;
},
getEntry: getEntry,
setStrong: function(C, NAME, IS_MAP){
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
$iterDefine(C, NAME, function(iterated, kind){
this._t = iterated; // target
this._k = kind; // kind
this._l = undefined; // previous
}, function(){
var that = this
, kind = that._k
, entry = that._l;
// revert to the last existing entry
while(entry && entry.r)entry = entry.p;
// get next entry
if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){
// or finish the iteration
that._t = undefined;
return step(1);
}
// return step by kind
if(kind == 'keys' )return step(0, entry.k);
if(kind == 'values')return step(0, entry.v);
return step(0, [entry.k, entry.v]);
}, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(NAME);
}
};
},{"18":18,"19":19,"20":20,"28":28,"31":31,"32":32,"39":39,"43":43,"45":45,"47":47,"61":61,"66":66,"70":70,"83":83}],14:[function(_dereq_,module,exports){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var forOf = _dereq_(28)
, classof = _dereq_(11);
module.exports = function(NAME){
return function toJSON(){
if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic");
var arr = [];
forOf(this, false, arr.push, arr);
return arr;
};
};
},{"11":11,"28":28}],15:[function(_dereq_,module,exports){
'use strict';
var hide = _dereq_(32)
, redefineAll = _dereq_(61)
, anObject = _dereq_(5)
, isObject = _dereq_(39)
, strictNew = _dereq_(70)
, forOf = _dereq_(28)
, createArrayMethod = _dereq_(9)
, $has = _dereq_(31)
, WEAK = _dereq_(83)('weak')
, isExtensible = Object.isExtensible || isObject
, arrayFind = createArrayMethod(5)
, arrayFindIndex = createArrayMethod(6)
, id = 0;
// fallback for frozen keys
var frozenStore = function(that){
return that._l || (that._l = new FrozenStore);
};
var FrozenStore = function(){
this.a = [];
};
var findFrozen = function(store, key){
return arrayFind(store.a, function(it){
return it[0] === key;
});
};
FrozenStore.prototype = {
get: function(key){
var entry = findFrozen(this, key);
if(entry)return entry[1];
},
has: function(key){
return !!findFrozen(this, key);
},
set: function(key, value){
var entry = findFrozen(this, key);
if(entry)entry[1] = value;
else this.a.push([key, value]);
},
'delete': function(key){
var index = arrayFindIndex(this.a, function(it){
return it[0] === key;
});
if(~index)this.a.splice(index, 1);
return !!~index;
}
};
module.exports = {
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
var C = wrapper(function(that, iterable){
strictNew(that, C, NAME);
that._i = id++; // collection id
that._l = undefined; // leak store for frozen objects
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
});
redefineAll(C.prototype, {
// 23.3.3.2 WeakMap.prototype.delete(key)
// 23.4.3.3 WeakSet.prototype.delete(value)
'delete': function(key){
if(!isObject(key))return false;
if(!isExtensible(key))return frozenStore(this)['delete'](key);
return $has(key, WEAK) && $has(key[WEAK], this._i) && delete key[WEAK][this._i];
},
// 23.3.3.4 WeakMap.prototype.has(key)
// 23.4.3.4 WeakSet.prototype.has(value)
has: function has(key){
if(!isObject(key))return false;
if(!isExtensible(key))return frozenStore(this).has(key);
return $has(key, WEAK) && $has(key[WEAK], this._i);
}
});
return C;
},
def: function(that, key, value){
if(!isExtensible(anObject(key))){
frozenStore(that).set(key, value);
} else {
$has(key, WEAK) || hide(key, WEAK, {});
key[WEAK][that._i] = value;
} return that;
},
frozenStore: frozenStore,
WEAK: WEAK
};
},{"28":28,"31":31,"32":32,"39":39,"5":5,"61":61,"70":70,"83":83,"9":9}],16:[function(_dereq_,module,exports){
'use strict';
var global = _dereq_(30)
, $export = _dereq_(23)
, redefine = _dereq_(62)
, redefineAll = _dereq_(61)
, forOf = _dereq_(28)
, strictNew = _dereq_(70)
, isObject = _dereq_(39)
, fails = _dereq_(25)
, $iterDetect = _dereq_(44)
, setToStringTag = _dereq_(67);
module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){
var Base = global[NAME]
, C = Base
, ADDER = IS_MAP ? 'set' : 'add'
, proto = C && C.prototype
, O = {};
var fixMethod = function(KEY){
var fn = proto[KEY];
redefine(proto, KEY,
KEY == 'delete' ? function(a){
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'has' ? function has(a){
return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'get' ? function get(a){
return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
} : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }
: function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }
);
};
if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){
new C().entries().next();
}))){
// create collection constructor
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
redefineAll(C.prototype, methods);
} else {
var instance = new C
// early implementations not supports chaining
, HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
, THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); })
// most early implementations doesn't supports iterables, most modern - not close it correctly
, ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new
// for early implementations -0 and +0 not the same
, BUGGY_ZERO;
if(!ACCEPT_ITERABLES){
C = wrapper(function(target, iterable){
strictNew(target, C, NAME);
var that = new Base;
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
return that;
});
C.prototype = proto;
proto.constructor = C;
}
IS_WEAK || instance.forEach(function(val, key){
BUGGY_ZERO = 1 / key === -Infinity;
});
if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){
fixMethod('delete');
fixMethod('has');
IS_MAP && fixMethod('get');
}
if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER);
// weak collections should not contains .clear method
if(IS_WEAK && proto.clear)delete proto.clear;
}
setToStringTag(C, NAME);
O[NAME] = C;
$export($export.G + $export.W + $export.F * (C != Base), O);
if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);
return C;
};
},{"23":23,"25":25,"28":28,"30":30,"39":39,"44":44,"61":61,"62":62,"67":67,"70":70}],17:[function(_dereq_,module,exports){
var core = module.exports = {version: '1.2.6'};
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
},{}],18:[function(_dereq_,module,exports){
// optional / simple context binding
var aFunction = _dereq_(3);
module.exports = function(fn, that, length){
aFunction(fn);
if(that === undefined)return fn;
switch(length){
case 1: return function(a){
return fn.call(that, a);
};
case 2: return function(a, b){
return fn.call(that, a, b);
};
case 3: return function(a, b, c){
return fn.call(that, a, b, c);
};
}
return function(/* ...args */){
return fn.apply(that, arguments);
};
};
},{"3":3}],19:[function(_dereq_,module,exports){
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function(it){
if(it == undefined)throw TypeError("Can't call method on " + it);
return it;
};
},{}],20:[function(_dereq_,module,exports){
// Thank's IE8 for his funny defineProperty
module.exports = !_dereq_(25)(function(){
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
});
},{"25":25}],21:[function(_dereq_,module,exports){
var isObject = _dereq_(39)
, document = _dereq_(30).document
// in old IE typeof document.createElement is 'object'
, is = isObject(document) && isObject(document.createElement);
module.exports = function(it){
return is ? document.createElement(it) : {};
};
},{"30":30,"39":39}],22:[function(_dereq_,module,exports){
// all enumerable object keys, includes symbols
var $ = _dereq_(47);
module.exports = function(it){
var keys = $.getKeys(it)
, getSymbols = $.getSymbols;
if(getSymbols){
var symbols = getSymbols(it)
, isEnum = $.isEnum
, i = 0
, key;
while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);
}
return keys;
};
},{"47":47}],23:[function(_dereq_,module,exports){
var global = _dereq_(30)
, core = _dereq_(17)
, hide = _dereq_(32)
, redefine = _dereq_(62)
, ctx = _dereq_(18)
, PROTOTYPE = 'prototype';
var $export = function(type, name, source){
var IS_FORCED = type & $export.F
, IS_GLOBAL = type & $export.G
, IS_STATIC = type & $export.S
, IS_PROTO = type & $export.P
, IS_BIND = type & $export.B
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
, expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})
, key, own, out, exp;
if(IS_GLOBAL)source = name;
for(key in source){
// contains in native
own = !IS_FORCED && target && key in target;
// export native or passed
out = (own ? target : source)[key];
// bind timers to global for call from export context
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// extend global
if(target && !own)redefine(target, key, out);
// export
if(exports[key] != out)hide(exports, key, exp);
if(IS_PROTO && expProto[key] != out)expProto[key] = out;
}
};
global.core = core;
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
module.exports = $export;
},{"17":17,"18":18,"30":30,"32":32,"62":62}],24:[function(_dereq_,module,exports){
var MATCH = _dereq_(84)('match');
module.exports = function(KEY){
var re = /./;
try {
'/./'[KEY](re);
} catch(e){
try {
re[MATCH] = false;
return !'/./'[KEY](re);
} catch(f){ /* empty */ }
} return true;
};
},{"84":84}],25:[function(_dereq_,module,exports){
module.exports = function(exec){
try {
return !!exec();
} catch(e){
return true;
}
};
},{}],26:[function(_dereq_,module,exports){
'use strict';
var hide = _dereq_(32)
, redefine = _dereq_(62)
, fails = _dereq_(25)
, defined = _dereq_(19)
, wks = _dereq_(84);
module.exports = function(KEY, length, exec){
var SYMBOL = wks(KEY)
, original = ''[KEY];
if(fails(function(){
var O = {};
O[SYMBOL] = function(){ return 7; };
return ''[KEY](O) != 7;
})){
redefine(String.prototype, KEY, exec(defined, SYMBOL, original));
hide(RegExp.prototype, SYMBOL, length == 2
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
? function(string, arg){ return original.call(string, this, arg); }
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
: function(string){ return original.call(string, this); }
);
}
};
},{"19":19,"25":25,"32":32,"62":62,"84":84}],27:[function(_dereq_,module,exports){
'use strict';
// 21.2.5.3 get RegExp.prototype.flags
var anObject = _dereq_(5);
module.exports = function(){
var that = anObject(this)
, result = '';
if(that.global) result += 'g';
if(that.ignoreCase) result += 'i';
if(that.multiline) result += 'm';
if(that.unicode) result += 'u';
if(that.sticky) result += 'y';
return result;
};
},{"5":5}],28:[function(_dereq_,module,exports){
var ctx = _dereq_(18)
, call = _dereq_(41)
, isArrayIter = _dereq_(36)
, anObject = _dereq_(5)
, toLength = _dereq_(80)
, getIterFn = _dereq_(85);
module.exports = function(iterable, entries, fn, that){
var iterFn = getIterFn(iterable)
, f = ctx(fn, that, entries ? 2 : 1)
, index = 0
, length, step, iterator;
if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');
// fast case for arrays with default iterator
if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){
entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
} else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){
call(iterator, f, step.value, entries);
}
};
},{"18":18,"36":36,"41":41,"5":5,"80":80,"85":85}],29:[function(_dereq_,module,exports){
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = _dereq_(79)
, getNames = _dereq_(47).getNames
, toString = {}.toString;
var windowNames = typeof window == 'object' && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function(it){
try {
return getNames(it);
} catch(e){
return windowNames.slice();
}
};
module.exports.get = function getOwnPropertyNames(it){
if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);
return getNames(toIObject(it));
};
},{"47":47,"79":79}],30:[function(_dereq_,module,exports){
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
},{}],31:[function(_dereq_,module,exports){
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
return hasOwnProperty.call(it, key);
};
},{}],32:[function(_dereq_,module,exports){
var $ = _dereq_(47)
, createDesc = _dereq_(60);
module.exports = _dereq_(20) ? function(object, key, value){
return $.setDesc(object, key, createDesc(1, value));
} : function(object, key, value){
object[key] = value;
return object;
};
},{"20":20,"47":47,"60":60}],33:[function(_dereq_,module,exports){
module.exports = _dereq_(30).document && document.documentElement;
},{"30":30}],34:[function(_dereq_,module,exports){
// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function(fn, args, that){
var un = that === undefined;
switch(args.length){
case 0: return un ? fn()
: fn.call(that);
case 1: return un ? fn(args[0])
: fn.call(that, args[0]);
case 2: return un ? fn(args[0], args[1])
: fn.call(that, args[0], args[1]);
case 3: return un ? fn(args[0], args[1], args[2])
: fn.call(that, args[0], args[1], args[2]);
case 4: return un ? fn(args[0], args[1], args[2], args[3])
: fn.call(that, args[0], args[1], args[2], args[3]);
} return fn.apply(that, args);
};
},{}],35:[function(_dereq_,module,exports){
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = _dereq_(12);
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
return cof(it) == 'String' ? it.split('') : Object(it);
};
},{"12":12}],36:[function(_dereq_,module,exports){
// check on default Array iterator
var Iterators = _dereq_(46)
, ITERATOR = _dereq_(84)('iterator')
, ArrayProto = Array.prototype;
module.exports = function(it){
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
},{"46":46,"84":84}],37:[function(_dereq_,module,exports){
// 7.2.2 IsArray(argument)
var cof = _dereq_(12);
module.exports = Array.isArray || function(arg){
return cof(arg) == 'Array';
};
},{"12":12}],38:[function(_dereq_,module,exports){
// 20.1.2.3 Number.isInteger(number)
var isObject = _dereq_(39)
, floor = Math.floor;
module.exports = function isInteger(it){
return !isObject(it) && isFinite(it) && floor(it) === it;
};
},{"39":39}],39:[function(_dereq_,module,exports){
module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
},{}],40:[function(_dereq_,module,exports){
// 7.2.8 IsRegExp(argument)
var isObject = _dereq_(39)
, cof = _dereq_(12)
, MATCH = _dereq_(84)('match');
module.exports = function(it){
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
};
},{"12":12,"39":39,"84":84}],41:[function(_dereq_,module,exports){
// call something on iterator step with safe closing on error
var anObject = _dereq_(5);
module.exports = function(iterator, fn, value, entries){
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch(e){
var ret = iterator['return'];
if(ret !== undefined)anObject(ret.call(iterator));
throw e;
}
};
},{"5":5}],42:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, descriptor = _dereq_(60)
, setToStringTag = _dereq_(67)
, IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
_dereq_(32)(IteratorPrototype, _dereq_(84)('iterator'), function(){ return this; });
module.exports = function(Constructor, NAME, next){
Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});
setToStringTag(Constructor, NAME + ' Iterator');
};
},{"32":32,"47":47,"60":60,"67":67,"84":84}],43:[function(_dereq_,module,exports){
'use strict';
var LIBRARY = _dereq_(49)
, $export = _dereq_(23)
, redefine = _dereq_(62)
, hide = _dereq_(32)
, has = _dereq_(31)
, Iterators = _dereq_(46)
, $iterCreate = _dereq_(42)
, setToStringTag = _dereq_(67)
, getProto = _dereq_(47).getProto
, ITERATOR = _dereq_(84)('iterator')
, BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
, FF_ITERATOR = '@@iterator'
, KEYS = 'keys'
, VALUES = 'values';
var returnThis = function(){ return this; };
module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
$iterCreate(Constructor, NAME, next);
var getMethod = function(kind){
if(!BUGGY && kind in proto)return proto[kind];
switch(kind){
case KEYS: return function keys(){ return new Constructor(this, kind); };
case VALUES: return function values(){ return new Constructor(this, kind); };
} return function entries(){ return new Constructor(this, kind); };
};
var TAG = NAME + ' Iterator'
, DEF_VALUES = DEFAULT == VALUES
, VALUES_BUG = false
, proto = Base.prototype
, $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
, $default = $native || getMethod(DEFAULT)
, methods, key;
// Fix native
if($native){
var IteratorPrototype = getProto($default.call(new Base));
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// FF fix
if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
// fix Array#{values, @@iterator}.name in V8 / FF
if(DEF_VALUES && $native.name !== VALUES){
VALUES_BUG = true;
$default = function values(){ return $native.call(this); };
}
}
// Define iterator
if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if(DEFAULT){
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: !DEF_VALUES ? $default : getMethod('entries')
};
if(FORCED)for(key in methods){
if(!(key in proto))redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
},{"23":23,"31":31,"32":32,"42":42,"46":46,"47":47,"49":49,"62":62,"67":67,"84":84}],44:[function(_dereq_,module,exports){
var ITERATOR = _dereq_(84)('iterator')
, SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function(){ SAFE_CLOSING = true; };
Array.from(riter, function(){ throw 2; });
} catch(e){ /* empty */ }
module.exports = function(exec, skipClosing){
if(!skipClosing && !SAFE_CLOSING)return false;
var safe = false;
try {
var arr = [7]
, iter = arr[ITERATOR]();
iter.next = function(){ safe = true; };
arr[ITERATOR] = function(){ return iter; };
exec(arr);
} catch(e){ /* empty */ }
return safe;
};
},{"84":84}],45:[function(_dereq_,module,exports){
module.exports = function(done, value){
return {value: value, done: !!done};
};
},{}],46:[function(_dereq_,module,exports){
module.exports = {};
},{}],47:[function(_dereq_,module,exports){
var $Object = Object;
module.exports = {
create: $Object.create,
getProto: $Object.getPrototypeOf,
isEnum: {}.propertyIsEnumerable,
getDesc: $Object.getOwnPropertyDescriptor,
setDesc: $Object.defineProperty,
setDescs: $Object.defineProperties,
getKeys: $Object.keys,
getNames: $Object.getOwnPropertyNames,
getSymbols: $Object.getOwnPropertySymbols,
each: [].forEach
};
},{}],48:[function(_dereq_,module,exports){
var $ = _dereq_(47)
, toIObject = _dereq_(79);
module.exports = function(object, el){
var O = toIObject(object)
, keys = $.getKeys(O)
, length = keys.length
, index = 0
, key;
while(length > index)if(O[key = keys[index++]] === el)return key;
};
},{"47":47,"79":79}],49:[function(_dereq_,module,exports){
module.exports = false;
},{}],50:[function(_dereq_,module,exports){
// 20.2.2.14 Math.expm1(x)
module.exports = Math.expm1 || function expm1(x){
return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;
};
},{}],51:[function(_dereq_,module,exports){
// 20.2.2.20 Math.log1p(x)
module.exports = Math.log1p || function log1p(x){
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
};
},{}],52:[function(_dereq_,module,exports){
// 20.2.2.28 Math.sign(x)
module.exports = Math.sign || function sign(x){
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
},{}],53:[function(_dereq_,module,exports){
var global = _dereq_(30)
, macrotask = _dereq_(76).set
, Observer = global.MutationObserver || global.WebKitMutationObserver
, process = global.process
, Promise = global.Promise
, isNode = _dereq_(12)(process) == 'process'
, head, last, notify;
var flush = function(){
var parent, domain, fn;
if(isNode && (parent = process.domain)){
process.domain = null;
parent.exit();
}
while(head){
domain = head.domain;
fn = head.fn;
if(domain)domain.enter();
fn(); // <- currently we use it only for Promise - try / catch not required
if(domain)domain.exit();
head = head.next;
} last = undefined;
if(parent)parent.enter();
};
// Node.js
if(isNode){
notify = function(){
process.nextTick(flush);
};
// browsers with MutationObserver
} else if(Observer){
var toggle = 1
, node = document.createTextNode('');
new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new
notify = function(){
node.data = toggle = -toggle;
};
// environments with maybe non-completely correct, but existent Promise
} else if(Promise && Promise.resolve){
notify = function(){
Promise.resolve().then(flush);
};
// for other environments - macrotask based on:
// - setImmediate
// - MessageChannel
// - window.postMessag
// - onreadystatechange
// - setTimeout
} else {
notify = function(){
// strange IE + webpack dev server bug - use .call(global)
macrotask.call(global, flush);
};
}
module.exports = function asap(fn){
var task = {fn: fn, next: undefined, domain: isNode && process.domain};
if(last)last.next = task;
if(!head){
head = task;
notify();
} last = task;
};
},{"12":12,"30":30,"76":76}],54:[function(_dereq_,module,exports){
// 19.1.2.1 Object.assign(target, source, ...)
var $ = _dereq_(47)
, toObject = _dereq_(81)
, IObject = _dereq_(35);
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = _dereq_(25)(function(){
var a = Object.assign
, A = {}
, B = {}
, S = Symbol()
, K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function(k){ B[k] = k; });
return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
var T = toObject(target)
, $$ = arguments
, $$len = $$.length
, index = 1
, getKeys = $.getKeys
, getSymbols = $.getSymbols
, isEnum = $.isEnum;
while($$len > index){
var S = IObject($$[index++])
, keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
, length = keys.length
, j = 0
, key;
while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
}
return T;
} : Object.assign;
},{"25":25,"35":35,"47":47,"81":81}],55:[function(_dereq_,module,exports){
// most Object methods by ES6 should accept primitives
var $export = _dereq_(23)
, core = _dereq_(17)
, fails = _dereq_(25);
module.exports = function(KEY, exec){
var fn = (core.Object || {})[KEY] || Object[KEY]
, exp = {};
exp[KEY] = exec(fn);
$export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
};
},{"17":17,"23":23,"25":25}],56:[function(_dereq_,module,exports){
var $ = _dereq_(47)
, toIObject = _dereq_(79)
, isEnum = $.isEnum;
module.exports = function(isEntries){
return function(it){
var O = toIObject(it)
, keys = $.getKeys(O)
, length = keys.length
, i = 0
, result = []
, key;
while(length > i)if(isEnum.call(O, key = keys[i++])){
result.push(isEntries ? [key, O[key]] : O[key]);
} return result;
};
};
},{"47":47,"79":79}],57:[function(_dereq_,module,exports){
// all object keys, includes non-enumerable and symbols
var $ = _dereq_(47)
, anObject = _dereq_(5)
, Reflect = _dereq_(30).Reflect;
module.exports = Reflect && Reflect.ownKeys || function ownKeys(it){
var keys = $.getNames(anObject(it))
, getSymbols = $.getSymbols;
return getSymbols ? keys.concat(getSymbols(it)) : keys;
};
},{"30":30,"47":47,"5":5}],58:[function(_dereq_,module,exports){
'use strict';
var path = _dereq_(59)
, invoke = _dereq_(34)
, aFunction = _dereq_(3);
module.exports = function(/* ...pargs */){
var fn = aFunction(this)
, length = arguments.length
, pargs = Array(length)
, i = 0
, _ = path._
, holder = false;
while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;
return function(/* ...args */){
var that = this
, $$ = arguments
, $$len = $$.length
, j = 0, k = 0, args;
if(!holder && !$$len)return invoke(fn, pargs, that);
args = pargs.slice();
if(holder)for(;length > j; j++)if(args[j] === _)args[j] = $$[k++];
while($$len > k)args.push($$[k++]);
return invoke(fn, args, that);
};
};
},{"3":3,"34":34,"59":59}],59:[function(_dereq_,module,exports){
module.exports = _dereq_(30);
},{"30":30}],60:[function(_dereq_,module,exports){
module.exports = function(bitmap, value){
return {
enumerable : !(bitmap & 1),
configurable: !(bitmap & 2),
writable : !(bitmap & 4),
value : value
};
};
},{}],61:[function(_dereq_,module,exports){
var redefine = _dereq_(62);
module.exports = function(target, src){
for(var key in src)redefine(target, key, src[key]);
return target;
};
},{"62":62}],62:[function(_dereq_,module,exports){
// add fake Function#toString
// for correct work wrapped methods / constructors with methods like LoDash isNative
var global = _dereq_(30)
, hide = _dereq_(32)
, SRC = _dereq_(83)('src')
, TO_STRING = 'toString'
, $toString = Function[TO_STRING]
, TPL = ('' + $toString).split(TO_STRING);
_dereq_(17).inspectSource = function(it){
return $toString.call(it);
};
(module.exports = function(O, key, val, safe){
if(typeof val == 'function'){
val.hasOwnProperty(SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
val.hasOwnProperty('name') || hide(val, 'name', key);
}
if(O === global){
O[key] = val;
} else {
if(!safe)delete O[key];
hide(O, key, val);
}
})(Function.prototype, TO_STRING, function toString(){
return typeof this == 'function' && this[SRC] || $toString.call(this);
});
},{"17":17,"30":30,"32":32,"83":83}],63:[function(_dereq_,module,exports){
module.exports = function(regExp, replace){
var replacer = replace === Object(replace) ? function(part){
return replace[part];
} : replace;
return function(it){
return String(it).replace(regExp, replacer);
};
};
},{}],64:[function(_dereq_,module,exports){
// 7.2.9 SameValue(x, y)
module.exports = Object.is || function is(x, y){
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
},{}],65:[function(_dereq_,module,exports){
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var getDesc = _dereq_(47).getDesc
, isObject = _dereq_(39)
, anObject = _dereq_(5);
var check = function(O, proto){
anObject(O);
if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
};
module.exports = {
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
function(test, buggy, set){
try {
set = _dereq_(18)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);
set(test, []);
buggy = !(test instanceof Array);
} catch(e){ buggy = true; }
return function setPrototypeOf(O, proto){
check(O, proto);
if(buggy)O.__proto__ = proto;
else set(O, proto);
return O;
};
}({}, false) : undefined),
check: check
};
},{"18":18,"39":39,"47":47,"5":5}],66:[function(_dereq_,module,exports){
'use strict';
var global = _dereq_(30)
, $ = _dereq_(47)
, DESCRIPTORS = _dereq_(20)
, SPECIES = _dereq_(84)('species');
module.exports = function(KEY){
var C = global[KEY];
if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {
configurable: true,
get: function(){ return this; }
});
};
},{"20":20,"30":30,"47":47,"84":84}],67:[function(_dereq_,module,exports){
var def = _dereq_(47).setDesc
, has = _dereq_(31)
, TAG = _dereq_(84)('toStringTag');
module.exports = function(it, tag, stat){
if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
};
},{"31":31,"47":47,"84":84}],68:[function(_dereq_,module,exports){
var global = _dereq_(30)
, SHARED = '__core-js_shared__'
, store = global[SHARED] || (global[SHARED] = {});
module.exports = function(key){
return store[key] || (store[key] = {});
};
},{"30":30}],69:[function(_dereq_,module,exports){
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
var anObject = _dereq_(5)
, aFunction = _dereq_(3)
, SPECIES = _dereq_(84)('species');
module.exports = function(O, D){
var C = anObject(O).constructor, S;
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
};
},{"3":3,"5":5,"84":84}],70:[function(_dereq_,module,exports){
module.exports = function(it, Constructor, name){
if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
return it;
};
},{}],71:[function(_dereq_,module,exports){
var toInteger = _dereq_(78)
, defined = _dereq_(19);
// true -> String#at
// false -> String#codePointAt
module.exports = function(TO_STRING){
return function(that, pos){
var s = String(defined(that))
, i = toInteger(pos)
, l = s.length
, a, b;
if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
};
},{"19":19,"78":78}],72:[function(_dereq_,module,exports){
// helper for String#{startsWith, endsWith, includes}
var isRegExp = _dereq_(40)
, defined = _dereq_(19);
module.exports = function(that, searchString, NAME){
if(isRegExp(searchString))throw TypeError('String#' + NAME + " doesn't accept regex!");
return String(defined(that));
};
},{"19":19,"40":40}],73:[function(_dereq_,module,exports){
// https://github.com/ljharb/proposal-string-pad-left-right
var toLength = _dereq_(80)
, repeat = _dereq_(74)
, defined = _dereq_(19);
module.exports = function(that, maxLength, fillString, left){
var S = String(defined(that))
, stringLength = S.length
, fillStr = fillString === undefined ? ' ' : String(fillString)
, intMaxLength = toLength(maxLength);
if(intMaxLength <= stringLength)return S;
if(fillStr == '')fillStr = ' ';
var fillLen = intMaxLength - stringLength
, stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));
if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen);
return left ? stringFiller + S : S + stringFiller;
};
},{"19":19,"74":74,"80":80}],74:[function(_dereq_,module,exports){
'use strict';
var toInteger = _dereq_(78)
, defined = _dereq_(19);
module.exports = function repeat(count){
var str = String(defined(this))
, res = ''
, n = toInteger(count);
if(n < 0 || n == Infinity)throw RangeError("Count can't be negative");
for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;
return res;
};
},{"19":19,"78":78}],75:[function(_dereq_,module,exports){
var $export = _dereq_(23)
, defined = _dereq_(19)
, fails = _dereq_(25)
, spaces = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'
, space = '[' + spaces + ']'
, non = '\u200b\u0085'
, ltrim = RegExp('^' + space + space + '*')
, rtrim = RegExp(space + space + '*$');
var exporter = function(KEY, exec){
var exp = {};
exp[KEY] = exec(trim);
$export($export.P + $export.F * fails(function(){
return !!spaces[KEY]() || non[KEY]() != non;
}), 'String', exp);
};
// 1 -> String#trimLeft
// 2 -> String#trimRight
// 3 -> String#trim
var trim = exporter.trim = function(string, TYPE){
string = String(defined(string));
if(TYPE & 1)string = string.replace(ltrim, '');
if(TYPE & 2)string = string.replace(rtrim, '');
return string;
};
module.exports = exporter;
},{"19":19,"23":23,"25":25}],76:[function(_dereq_,module,exports){
var ctx = _dereq_(18)
, invoke = _dereq_(34)
, html = _dereq_(33)
, cel = _dereq_(21)
, global = _dereq_(30)
, process = global.process
, setTask = global.setImmediate
, clearTask = global.clearImmediate
, MessageChannel = global.MessageChannel
, counter = 0
, queue = {}
, ONREADYSTATECHANGE = 'onreadystatechange'
, defer, channel, port;
var run = function(){
var id = +this;
if(queue.hasOwnProperty(id)){
var fn = queue[id];
delete queue[id];
fn();
}
};
var listner = function(event){
run.call(event.data);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if(!setTask || !clearTask){
setTask = function setImmediate(fn){
var args = [], i = 1;
while(arguments.length > i)args.push(arguments[i++]);
queue[++counter] = function(){
invoke(typeof fn == 'function' ? fn : Function(fn), args);
};
defer(counter);
return counter;
};
clearTask = function clearImmediate(id){
delete queue[id];
};
// Node.js 0.8-
if(_dereq_(12)(process) == 'process'){
defer = function(id){
process.nextTick(ctx(run, id, 1));
};
// Browsers with MessageChannel, includes WebWorkers
} else if(MessageChannel){
channel = new MessageChannel;
port = channel.port2;
channel.port1.onmessage = listner;
defer = ctx(port.postMessage, port, 1);
// Browsers with postMessage, skip WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
} else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){
defer = function(id){
global.postMessage(id + '', '*');
};
global.addEventListener('message', listner, false);
// IE8-
} else if(ONREADYSTATECHANGE in cel('script')){
defer = function(id){
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){
html.removeChild(this);
run.call(id);
};
};
// Rest old browsers
} else {
defer = function(id){
setTimeout(ctx(run, id, 1), 0);
};
}
}
module.exports = {
set: setTask,
clear: clearTask
};
},{"12":12,"18":18,"21":21,"30":30,"33":33,"34":34}],77:[function(_dereq_,module,exports){
var toInteger = _dereq_(78)
, max = Math.max
, min = Math.min;
module.exports = function(index, length){
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
},{"78":78}],78:[function(_dereq_,module,exports){
// 7.1.4 ToInteger
var ceil = Math.ceil
, floor = Math.floor;
module.exports = function(it){
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
},{}],79:[function(_dereq_,module,exports){
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = _dereq_(35)
, defined = _dereq_(19);
module.exports = function(it){
return IObject(defined(it));
};
},{"19":19,"35":35}],80:[function(_dereq_,module,exports){
// 7.1.15 ToLength
var toInteger = _dereq_(78)
, min = Math.min;
module.exports = function(it){
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
},{"78":78}],81:[function(_dereq_,module,exports){
// 7.1.13 ToObject(argument)
var defined = _dereq_(19);
module.exports = function(it){
return Object(defined(it));
};
},{"19":19}],82:[function(_dereq_,module,exports){
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = _dereq_(39);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function(it, S){
if(!isObject(it))return it;
var fn, val;
if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
throw TypeError("Can't convert object to primitive value");
};
},{"39":39}],83:[function(_dereq_,module,exports){
var id = 0
, px = Math.random();
module.exports = function(key){
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
},{}],84:[function(_dereq_,module,exports){
var store = _dereq_(68)('wks')
, uid = _dereq_(83)
, Symbol = _dereq_(30).Symbol;
module.exports = function(name){
return store[name] || (store[name] =
Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));
};
},{"30":30,"68":68,"83":83}],85:[function(_dereq_,module,exports){
var classof = _dereq_(11)
, ITERATOR = _dereq_(84)('iterator')
, Iterators = _dereq_(46);
module.exports = _dereq_(17).getIteratorMethod = function(it){
if(it != undefined)return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
},{"11":11,"17":17,"46":46,"84":84}],86:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, $export = _dereq_(23)
, DESCRIPTORS = _dereq_(20)
, createDesc = _dereq_(60)
, html = _dereq_(33)
, cel = _dereq_(21)
, has = _dereq_(31)
, cof = _dereq_(12)
, invoke = _dereq_(34)
, fails = _dereq_(25)
, anObject = _dereq_(5)
, aFunction = _dereq_(3)
, isObject = _dereq_(39)
, toObject = _dereq_(81)
, toIObject = _dereq_(79)
, toInteger = _dereq_(78)
, toIndex = _dereq_(77)
, toLength = _dereq_(80)
, IObject = _dereq_(35)
, IE_PROTO = _dereq_(83)('__proto__')
, createArrayMethod = _dereq_(9)
, arrayIndexOf = _dereq_(8)(false)
, ObjectProto = Object.prototype
, ArrayProto = Array.prototype
, arraySlice = ArrayProto.slice
, arrayJoin = ArrayProto.join
, defineProperty = $.setDesc
, getOwnDescriptor = $.getDesc
, defineProperties = $.setDescs
, factories = {}
, IE8_DOM_DEFINE;
if(!DESCRIPTORS){
IE8_DOM_DEFINE = !fails(function(){
return defineProperty(cel('div'), 'a', {get: function(){ return 7; }}).a != 7;
});
$.setDesc = function(O, P, Attributes){
if(IE8_DOM_DEFINE)try {
return defineProperty(O, P, Attributes);
} catch(e){ /* empty */ }
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
if('value' in Attributes)anObject(O)[P] = Attributes.value;
return O;
};
$.getDesc = function(O, P){
if(IE8_DOM_DEFINE)try {
return getOwnDescriptor(O, P);
} catch(e){ /* empty */ }
if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]);
};
$.setDescs = defineProperties = function(O, Properties){
anObject(O);
var keys = $.getKeys(Properties)
, length = keys.length
, i = 0
, P;
while(length > i)$.setDesc(O, P = keys[i++], Properties[P]);
return O;
};
}
$export($export.S + $export.F * !DESCRIPTORS, 'Object', {
// 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor: $.getDesc,
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
defineProperty: $.setDesc,
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
defineProperties: defineProperties
});
// IE 8- don't enum bug keys
var keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' +
'toLocaleString,toString,valueOf').split(',')
// Additional keys for getOwnPropertyNames
, keys2 = keys1.concat('length', 'prototype')
, keysLen1 = keys1.length;
// Create object with `null` prototype: use iframe Object with cleared prototype
var createDict = function(){
// Thrash, waste and sodomy: IE GC bug
var iframe = cel('iframe')
, i = keysLen1
, gt = '>'
, iframeDocument;
iframe.style.display = 'none';
html.appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write('<script>document.F=Object</script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while(i--)delete createDict.prototype[keys1[i]];
return createDict();
};
var createGetKeys = function(names, length){
return function(object){
var O = toIObject(object)
, i = 0
, result = []
, key;
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while(length > i)if(has(O, key = names[i++])){
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
};
var Empty = function(){};
$export($export.S, 'Object', {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
getPrototypeOf: $.getProto = $.getProto || function(O){
O = toObject(O);
if(has(O, IE_PROTO))return O[IE_PROTO];
if(typeof O.constructor == 'function' && O instanceof O.constructor){
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
},
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
getOwnPropertyNames: $.getNames = $.getNames || createGetKeys(keys2, keys2.length, true),
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
create: $.create = $.create || function(O, /*?*/Properties){
var result;
if(O !== null){
Empty.prototype = anObject(O);
result = new Empty();
Empty.prototype = null;
// add "__proto__" for Object.getPrototypeOf shim
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : defineProperties(result, Properties);
},
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
keys: $.getKeys = $.getKeys || createGetKeys(keys1, keysLen1, false)
});
var construct = function(F, len, args){
if(!(len in factories)){
for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
}
return factories[len](F, args);
};
// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
$export($export.P, 'Function', {
bind: function bind(that /*, args... */){
var fn = aFunction(this)
, partArgs = arraySlice.call(arguments, 1);
var bound = function(/* args... */){
var args = partArgs.concat(arraySlice.call(arguments));
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
};
if(isObject(fn.prototype))bound.prototype = fn.prototype;
return bound;
}
});
// fallback for not array-like ES3 strings and DOM objects
$export($export.P + $export.F * fails(function(){
if(html)arraySlice.call(html);
}), 'Array', {
slice: function(begin, end){
var len = toLength(this.length)
, klass = cof(this);
end = end === undefined ? len : end;
if(klass == 'Array')return arraySlice.call(this, begin, end);
var start = toIndex(begin, len)
, upTo = toIndex(end, len)
, size = toLength(upTo - start)
, cloned = Array(size)
, i = 0;
for(; i < size; i++)cloned[i] = klass == 'String'
? this.charAt(start + i)
: this[start + i];
return cloned;
}
});
$export($export.P + $export.F * (IObject != Object), 'Array', {
join: function join(separator){
return arrayJoin.call(IObject(this), separator === undefined ? ',' : separator);
}
});
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
$export($export.S, 'Array', {isArray: _dereq_(37)});
var createArrayReduce = function(isRight){
return function(callbackfn, memo){
aFunction(callbackfn);
var O = IObject(this)
, length = toLength(O.length)
, index = isRight ? length - 1 : 0
, i = isRight ? -1 : 1;
if(arguments.length < 2)for(;;){
if(index in O){
memo = O[index];
index += i;
break;
}
index += i;
if(isRight ? index < 0 : length <= index){
throw TypeError('Reduce of empty array with no initial value');
}
}
for(;isRight ? index >= 0 : length > index; index += i)if(index in O){
memo = callbackfn(memo, O[index], index, this);
}
return memo;
};
};
var methodize = function($fn){
return function(arg1/*, arg2 = undefined */){
return $fn(this, arg1, arguments[1]);
};
};
$export($export.P, 'Array', {
// 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
forEach: $.each = $.each || methodize(createArrayMethod(0)),
// 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
map: methodize(createArrayMethod(1)),
// 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
filter: methodize(createArrayMethod(2)),
// 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
some: methodize(createArrayMethod(3)),
// 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
every: methodize(createArrayMethod(4)),
// 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
reduce: createArrayReduce(false),
// 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
reduceRight: createArrayReduce(true),
// 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
indexOf: methodize(arrayIndexOf),
// 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
lastIndexOf: function(el, fromIndex /* = @[*-1] */){
var O = toIObject(this)
, length = toLength(O.length)
, index = length - 1;
if(arguments.length > 1)index = Math.min(index, toInteger(fromIndex));
if(index < 0)index = toLength(length + index);
for(;index >= 0; index--)if(index in O)if(O[index] === el)return index;
return -1;
}
});
// 20.3.3.1 / 15.9.4.4 Date.now()
$export($export.S, 'Date', {now: function(){ return +new Date; }});
var lz = function(num){
return num > 9 ? num : '0' + num;
};
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
// PhantomJS / old WebKit has a broken implementations
$export($export.P + $export.F * (fails(function(){
return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z';
}) || !fails(function(){
new Date(NaN).toISOString();
})), 'Date', {
toISOString: function toISOString(){
if(!isFinite(this))throw RangeError('Invalid time value');
var d = this
, y = d.getUTCFullYear()
, m = d.getUTCMilliseconds()
, s = y < 0 ? '-' : y > 9999 ? '+' : '';
return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
'-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
}
});
},{"12":12,"20":20,"21":21,"23":23,"25":25,"3":3,"31":31,"33":33,"34":34,"35":35,"37":37,"39":39,"47":47,"5":5,"60":60,"77":77,"78":78,"79":79,"8":8,"80":80,"81":81,"83":83,"9":9}],87:[function(_dereq_,module,exports){
// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)
var $export = _dereq_(23);
$export($export.P, 'Array', {copyWithin: _dereq_(6)});
_dereq_(4)('copyWithin');
},{"23":23,"4":4,"6":6}],88:[function(_dereq_,module,exports){
// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
var $export = _dereq_(23);
$export($export.P, 'Array', {fill: _dereq_(7)});
_dereq_(4)('fill');
},{"23":23,"4":4,"7":7}],89:[function(_dereq_,module,exports){
'use strict';
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
var $export = _dereq_(23)
, $find = _dereq_(9)(6)
, KEY = 'findIndex'
, forced = true;
// Shouldn't skip holes
if(KEY in [])Array(1)[KEY](function(){ forced = false; });
$export($export.P + $export.F * forced, 'Array', {
findIndex: function findIndex(callbackfn/*, that = undefined */){
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
_dereq_(4)(KEY);
},{"23":23,"4":4,"9":9}],90:[function(_dereq_,module,exports){
'use strict';
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
var $export = _dereq_(23)
, $find = _dereq_(9)(5)
, KEY = 'find'
, forced = true;
// Shouldn't skip holes
if(KEY in [])Array(1)[KEY](function(){ forced = false; });
$export($export.P + $export.F * forced, 'Array', {
find: function find(callbackfn/*, that = undefined */){
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
_dereq_(4)(KEY);
},{"23":23,"4":4,"9":9}],91:[function(_dereq_,module,exports){
'use strict';
var ctx = _dereq_(18)
, $export = _dereq_(23)
, toObject = _dereq_(81)
, call = _dereq_(41)
, isArrayIter = _dereq_(36)
, toLength = _dereq_(80)
, getIterFn = _dereq_(85);
$export($export.S + $export.F * !_dereq_(44)(function(iter){ Array.from(iter); }), 'Array', {
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = toObject(arrayLike)
, C = typeof this == 'function' ? this : Array
, $$ = arguments
, $$len = $$.length
, mapfn = $$len > 1 ? $$[1] : undefined
, mapping = mapfn !== undefined
, index = 0
, iterFn = getIterFn(O)
, length, result, step, iterator;
if(mapping)mapfn = ctx(mapfn, $$len > 2 ? $$[2] : undefined, 2);
// if object isn't iterable or it's array with default iterator - use simple case
if(iterFn != undefined && !(C == Array && isArrayIter(iterFn))){
for(iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++){
result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value;
}
} else {
length = toLength(O.length);
for(result = new C(length); length > index; index++){
result[index] = mapping ? mapfn(O[index], index) : O[index];
}
}
result.length = index;
return result;
}
});
},{"18":18,"23":23,"36":36,"41":41,"44":44,"80":80,"81":81,"85":85}],92:[function(_dereq_,module,exports){
'use strict';
var addToUnscopables = _dereq_(4)
, step = _dereq_(45)
, Iterators = _dereq_(46)
, toIObject = _dereq_(79);
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = _dereq_(43)(Array, 'Array', function(iterated, kind){
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function(){
var O = this._t
, kind = this._k
, index = this._i++;
if(!O || index >= O.length){
this._t = undefined;
return step(1);
}
if(kind == 'keys' )return step(0, index);
if(kind == 'values')return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
},{"4":4,"43":43,"45":45,"46":46,"79":79}],93:[function(_dereq_,module,exports){
'use strict';
var $export = _dereq_(23);
// WebKit Array.of isn't generic
$export($export.S + $export.F * _dereq_(25)(function(){
function F(){}
return !(Array.of.call(F) instanceof F);
}), 'Array', {
// 22.1.2.3 Array.of( ...items)
of: function of(/* ...args */){
var index = 0
, $$ = arguments
, $$len = $$.length
, result = new (typeof this == 'function' ? this : Array)($$len);
while($$len > index)result[index] = $$[index++];
result.length = $$len;
return result;
}
});
},{"23":23,"25":25}],94:[function(_dereq_,module,exports){
_dereq_(66)('Array');
},{"66":66}],95:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, isObject = _dereq_(39)
, HAS_INSTANCE = _dereq_(84)('hasInstance')
, FunctionProto = Function.prototype;
// 19.2.3.6 Function.prototype[@@hasInstance](V)
if(!(HAS_INSTANCE in FunctionProto))$.setDesc(FunctionProto, HAS_INSTANCE, {value: function(O){
if(typeof this != 'function' || !isObject(O))return false;
if(!isObject(this.prototype))return O instanceof this;
// for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:
while(O = $.getProto(O))if(this.prototype === O)return true;
return false;
}});
},{"39":39,"47":47,"84":84}],96:[function(_dereq_,module,exports){
var setDesc = _dereq_(47).setDesc
, createDesc = _dereq_(60)
, has = _dereq_(31)
, FProto = Function.prototype
, nameRE = /^\s*function ([^ (]*)/
, NAME = 'name';
// 19.2.4.2 name
NAME in FProto || _dereq_(20) && setDesc(FProto, NAME, {
configurable: true,
get: function(){
var match = ('' + this).match(nameRE)
, name = match ? match[1] : '';
has(this, NAME) || setDesc(this, NAME, createDesc(5, name));
return name;
}
});
},{"20":20,"31":31,"47":47,"60":60}],97:[function(_dereq_,module,exports){
'use strict';
var strong = _dereq_(13);
// 23.1 Map Objects
_dereq_(16)('Map', function(get){
return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key){
var entry = strong.getEntry(this, key);
return entry && entry.v;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value){
return strong.def(this, key === 0 ? 0 : key, value);
}
}, strong, true);
},{"13":13,"16":16}],98:[function(_dereq_,module,exports){
// 20.2.2.3 Math.acosh(x)
var $export = _dereq_(23)
, log1p = _dereq_(51)
, sqrt = Math.sqrt
, $acosh = Math.acosh;
// V8 bug https://code.google.com/p/v8/issues/detail?id=3509
$export($export.S + $export.F * !($acosh && Math.floor($acosh(Number.MAX_VALUE)) == 710), 'Math', {
acosh: function acosh(x){
return (x = +x) < 1 ? NaN : x > 94906265.62425156
? Math.log(x) + Math.LN2
: log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));
}
});
},{"23":23,"51":51}],99:[function(_dereq_,module,exports){
// 20.2.2.5 Math.asinh(x)
var $export = _dereq_(23);
function asinh(x){
return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));
}
$export($export.S, 'Math', {asinh: asinh});
},{"23":23}],100:[function(_dereq_,module,exports){
// 20.2.2.7 Math.atanh(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {
atanh: function atanh(x){
return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;
}
});
},{"23":23}],101:[function(_dereq_,module,exports){
// 20.2.2.9 Math.cbrt(x)
var $export = _dereq_(23)
, sign = _dereq_(52);
$export($export.S, 'Math', {
cbrt: function cbrt(x){
return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);
}
});
},{"23":23,"52":52}],102:[function(_dereq_,module,exports){
// 20.2.2.11 Math.clz32(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {
clz32: function clz32(x){
return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;
}
});
},{"23":23}],103:[function(_dereq_,module,exports){
// 20.2.2.12 Math.cosh(x)
var $export = _dereq_(23)
, exp = Math.exp;
$export($export.S, 'Math', {
cosh: function cosh(x){
return (exp(x = +x) + exp(-x)) / 2;
}
});
},{"23":23}],104:[function(_dereq_,module,exports){
// 20.2.2.14 Math.expm1(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {expm1: _dereq_(50)});
},{"23":23,"50":50}],105:[function(_dereq_,module,exports){
// 20.2.2.16 Math.fround(x)
var $export = _dereq_(23)
, sign = _dereq_(52)
, pow = Math.pow
, EPSILON = pow(2, -52)
, EPSILON32 = pow(2, -23)
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
var roundTiesToEven = function(n){
return n + 1 / EPSILON - 1 / EPSILON;
};
$export($export.S, 'Math', {
fround: function fround(x){
var $abs = Math.abs(x)
, $sign = sign(x)
, a, result;
if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;
a = (1 + EPSILON32 / EPSILON) * $abs;
result = a - (a - $abs);
if(result > MAX32 || result != result)return $sign * Infinity;
return $sign * result;
}
});
},{"23":23,"52":52}],106:[function(_dereq_,module,exports){
// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])
var $export = _dereq_(23)
, abs = Math.abs;
$export($export.S, 'Math', {
hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars
var sum = 0
, i = 0
, $$ = arguments
, $$len = $$.length
, larg = 0
, arg, div;
while(i < $$len){
arg = abs($$[i++]);
if(larg < arg){
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if(arg > 0){
div = arg / larg;
sum += div * div;
} else sum += arg;
}
return larg === Infinity ? Infinity : larg * Math.sqrt(sum);
}
});
},{"23":23}],107:[function(_dereq_,module,exports){
// 20.2.2.18 Math.imul(x, y)
var $export = _dereq_(23)
, $imul = Math.imul;
// some WebKit versions fails with big numbers, some has wrong arity
$export($export.S + $export.F * _dereq_(25)(function(){
return $imul(0xffffffff, 5) != -5 || $imul.length != 2;
}), 'Math', {
imul: function imul(x, y){
var UINT16 = 0xffff
, xn = +x
, yn = +y
, xl = UINT16 & xn
, yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
}
});
},{"23":23,"25":25}],108:[function(_dereq_,module,exports){
// 20.2.2.21 Math.log10(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {
log10: function log10(x){
return Math.log(x) / Math.LN10;
}
});
},{"23":23}],109:[function(_dereq_,module,exports){
// 20.2.2.20 Math.log1p(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {log1p: _dereq_(51)});
},{"23":23,"51":51}],110:[function(_dereq_,module,exports){
// 20.2.2.22 Math.log2(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {
log2: function log2(x){
return Math.log(x) / Math.LN2;
}
});
},{"23":23}],111:[function(_dereq_,module,exports){
// 20.2.2.28 Math.sign(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {sign: _dereq_(52)});
},{"23":23,"52":52}],112:[function(_dereq_,module,exports){
// 20.2.2.30 Math.sinh(x)
var $export = _dereq_(23)
, expm1 = _dereq_(50)
, exp = Math.exp;
// V8 near Chromium 38 has a problem with very small numbers
$export($export.S + $export.F * _dereq_(25)(function(){
return !Math.sinh(-2e-17) != -2e-17;
}), 'Math', {
sinh: function sinh(x){
return Math.abs(x = +x) < 1
? (expm1(x) - expm1(-x)) / 2
: (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);
}
});
},{"23":23,"25":25,"50":50}],113:[function(_dereq_,module,exports){
// 20.2.2.33 Math.tanh(x)
var $export = _dereq_(23)
, expm1 = _dereq_(50)
, exp = Math.exp;
$export($export.S, 'Math', {
tanh: function tanh(x){
var a = expm1(x = +x)
, b = expm1(-x);
return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));
}
});
},{"23":23,"50":50}],114:[function(_dereq_,module,exports){
// 20.2.2.34 Math.trunc(x)
var $export = _dereq_(23);
$export($export.S, 'Math', {
trunc: function trunc(it){
return (it > 0 ? Math.floor : Math.ceil)(it);
}
});
},{"23":23}],115:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, global = _dereq_(30)
, has = _dereq_(31)
, cof = _dereq_(12)
, toPrimitive = _dereq_(82)
, fails = _dereq_(25)
, $trim = _dereq_(75).trim
, NUMBER = 'Number'
, $Number = global[NUMBER]
, Base = $Number
, proto = $Number.prototype
// Opera ~12 has broken Object#toString
, BROKEN_COF = cof($.create(proto)) == NUMBER
, TRIM = 'trim' in String.prototype;
// 7.1.3 ToNumber(argument)
var toNumber = function(argument){
var it = toPrimitive(argument, false);
if(typeof it == 'string' && it.length > 2){
it = TRIM ? it.trim() : $trim(it, 3);
var first = it.charCodeAt(0)
, third, radix, maxCode;
if(first === 43 || first === 45){
third = it.charCodeAt(2);
if(third === 88 || third === 120)return NaN; // Number('+0x1') should be NaN, old V8 fix
} else if(first === 48){
switch(it.charCodeAt(1)){
case 66 : case 98 : radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
case 79 : case 111 : radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
default : return +it;
}
for(var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++){
code = digits.charCodeAt(i);
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if(code < 48 || code > maxCode)return NaN;
} return parseInt(digits, radix);
}
} return +it;
};
if(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){
$Number = function Number(value){
var it = arguments.length < 1 ? 0 : value
, that = this;
return that instanceof $Number
// check on 1..constructor(foo) case
&& (BROKEN_COF ? fails(function(){ proto.valueOf.call(that); }) : cof(that) != NUMBER)
? new Base(toNumber(it)) : toNumber(it);
};
$.each.call(_dereq_(20) ? $.getNames(Base) : (
// ES3:
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
// ES6 (in case, if modules with ES6 Number statics required before):
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
).split(','), function(key){
if(has(Base, key) && !has($Number, key)){
$.setDesc($Number, key, $.getDesc(Base, key));
}
});
$Number.prototype = proto;
proto.constructor = $Number;
_dereq_(62)(global, NUMBER, $Number);
}
},{"12":12,"20":20,"25":25,"30":30,"31":31,"47":47,"62":62,"75":75,"82":82}],116:[function(_dereq_,module,exports){
// 20.1.2.1 Number.EPSILON
var $export = _dereq_(23);
$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)});
},{"23":23}],117:[function(_dereq_,module,exports){
// 20.1.2.2 Number.isFinite(number)
var $export = _dereq_(23)
, _isFinite = _dereq_(30).isFinite;
$export($export.S, 'Number', {
isFinite: function isFinite(it){
return typeof it == 'number' && _isFinite(it);
}
});
},{"23":23,"30":30}],118:[function(_dereq_,module,exports){
// 20.1.2.3 Number.isInteger(number)
var $export = _dereq_(23);
$export($export.S, 'Number', {isInteger: _dereq_(38)});
},{"23":23,"38":38}],119:[function(_dereq_,module,exports){
// 20.1.2.4 Number.isNaN(number)
var $export = _dereq_(23);
$export($export.S, 'Number', {
isNaN: function isNaN(number){
return number != number;
}
});
},{"23":23}],120:[function(_dereq_,module,exports){
// 20.1.2.5 Number.isSafeInteger(number)
var $export = _dereq_(23)
, isInteger = _dereq_(38)
, abs = Math.abs;
$export($export.S, 'Number', {
isSafeInteger: function isSafeInteger(number){
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
}
});
},{"23":23,"38":38}],121:[function(_dereq_,module,exports){
// 20.1.2.6 Number.MAX_SAFE_INTEGER
var $export = _dereq_(23);
$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff});
},{"23":23}],122:[function(_dereq_,module,exports){
// 20.1.2.10 Number.MIN_SAFE_INTEGER
var $export = _dereq_(23);
$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff});
},{"23":23}],123:[function(_dereq_,module,exports){
// 20.1.2.12 Number.parseFloat(string)
var $export = _dereq_(23);
$export($export.S, 'Number', {parseFloat: parseFloat});
},{"23":23}],124:[function(_dereq_,module,exports){
// 20.1.2.13 Number.parseInt(string, radix)
var $export = _dereq_(23);
$export($export.S, 'Number', {parseInt: parseInt});
},{"23":23}],125:[function(_dereq_,module,exports){
// 19.1.3.1 Object.assign(target, source)
var $export = _dereq_(23);
$export($export.S + $export.F, 'Object', {assign: _dereq_(54)});
},{"23":23,"54":54}],126:[function(_dereq_,module,exports){
// 19.1.2.5 Object.freeze(O)
var isObject = _dereq_(39);
_dereq_(55)('freeze', function($freeze){
return function freeze(it){
return $freeze && isObject(it) ? $freeze(it) : it;
};
});
},{"39":39,"55":55}],127:[function(_dereq_,module,exports){
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
var toIObject = _dereq_(79);
_dereq_(55)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){
return function getOwnPropertyDescriptor(it, key){
return $getOwnPropertyDescriptor(toIObject(it), key);
};
});
},{"55":55,"79":79}],128:[function(_dereq_,module,exports){
// 19.1.2.7 Object.getOwnPropertyNames(O)
_dereq_(55)('getOwnPropertyNames', function(){
return _dereq_(29).get;
});
},{"29":29,"55":55}],129:[function(_dereq_,module,exports){
// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = _dereq_(81);
_dereq_(55)('getPrototypeOf', function($getPrototypeOf){
return function getPrototypeOf(it){
return $getPrototypeOf(toObject(it));
};
});
},{"55":55,"81":81}],130:[function(_dereq_,module,exports){
// 19.1.2.11 Object.isExtensible(O)
var isObject = _dereq_(39);
_dereq_(55)('isExtensible', function($isExtensible){
return function isExtensible(it){
return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;
};
});
},{"39":39,"55":55}],131:[function(_dereq_,module,exports){
// 19.1.2.12 Object.isFrozen(O)
var isObject = _dereq_(39);
_dereq_(55)('isFrozen', function($isFrozen){
return function isFrozen(it){
return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;
};
});
},{"39":39,"55":55}],132:[function(_dereq_,module,exports){
// 19.1.2.13 Object.isSealed(O)
var isObject = _dereq_(39);
_dereq_(55)('isSealed', function($isSealed){
return function isSealed(it){
return isObject(it) ? $isSealed ? $isSealed(it) : false : true;
};
});
},{"39":39,"55":55}],133:[function(_dereq_,module,exports){
// 19.1.3.10 Object.is(value1, value2)
var $export = _dereq_(23);
$export($export.S, 'Object', {is: _dereq_(64)});
},{"23":23,"64":64}],134:[function(_dereq_,module,exports){
// 19.1.2.14 Object.keys(O)
var toObject = _dereq_(81);
_dereq_(55)('keys', function($keys){
return function keys(it){
return $keys(toObject(it));
};
});
},{"55":55,"81":81}],135:[function(_dereq_,module,exports){
// 19.1.2.15 Object.preventExtensions(O)
var isObject = _dereq_(39);
_dereq_(55)('preventExtensions', function($preventExtensions){
return function preventExtensions(it){
return $preventExtensions && isObject(it) ? $preventExtensions(it) : it;
};
});
},{"39":39,"55":55}],136:[function(_dereq_,module,exports){
// 19.1.2.17 Object.seal(O)
var isObject = _dereq_(39);
_dereq_(55)('seal', function($seal){
return function seal(it){
return $seal && isObject(it) ? $seal(it) : it;
};
});
},{"39":39,"55":55}],137:[function(_dereq_,module,exports){
// 19.1.3.19 Object.setPrototypeOf(O, proto)
var $export = _dereq_(23);
$export($export.S, 'Object', {setPrototypeOf: _dereq_(65).set});
},{"23":23,"65":65}],138:[function(_dereq_,module,exports){
'use strict';
// 19.1.3.6 Object.prototype.toString()
var classof = _dereq_(11)
, test = {};
test[_dereq_(84)('toStringTag')] = 'z';
if(test + '' != '[object z]'){
_dereq_(62)(Object.prototype, 'toString', function toString(){
return '[object ' + classof(this) + ']';
}, true);
}
},{"11":11,"62":62,"84":84}],139:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, LIBRARY = _dereq_(49)
, global = _dereq_(30)
, ctx = _dereq_(18)
, classof = _dereq_(11)
, $export = _dereq_(23)
, isObject = _dereq_(39)
, anObject = _dereq_(5)
, aFunction = _dereq_(3)
, strictNew = _dereq_(70)
, forOf = _dereq_(28)
, setProto = _dereq_(65).set
, same = _dereq_(64)
, SPECIES = _dereq_(84)('species')
, speciesConstructor = _dereq_(69)
, asap = _dereq_(53)
, PROMISE = 'Promise'
, process = global.process
, isNode = classof(process) == 'process'
, P = global[PROMISE]
, Wrapper;
var testResolve = function(sub){
var test = new P(function(){});
if(sub)test.constructor = Object;
return P.resolve(test) === test;
};
var USE_NATIVE = function(){
var works = false;
function P2(x){
var self = new P(x);
setProto(self, P2.prototype);
return self;
}
try {
works = P && P.resolve && testResolve();
setProto(P2, P);
P2.prototype = $.create(P.prototype, {constructor: {value: P2}});
// actual Firefox has broken subclass support, test that
if(!(P2.resolve(5).then(function(){}) instanceof P2)){
works = false;
}
// actual V8 bug, https://code.google.com/p/v8/issues/detail?id=4162
if(works && _dereq_(20)){
var thenableThenGotten = false;
P.resolve($.setDesc({}, 'then', {
get: function(){ thenableThenGotten = true; }
}));
works = thenableThenGotten;
}
} catch(e){ works = false; }
return works;
}();
// helpers
var sameConstructor = function(a, b){
// library wrapper special case
if(LIBRARY && a === P && b === Wrapper)return true;
return same(a, b);
};
var getConstructor = function(C){
var S = anObject(C)[SPECIES];
return S != undefined ? S : C;
};
var isThenable = function(it){
var then;
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var PromiseCapability = function(C){
var resolve, reject;
this.promise = new C(function($$resolve, $$reject){
if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aFunction(resolve),
this.reject = aFunction(reject)
};
var perform = function(exec){
try {
exec();
} catch(e){
return {error: e};
}
};
var notify = function(record, isReject){
if(record.n)return;
record.n = true;
var chain = record.c;
asap(function(){
var value = record.v
, ok = record.s == 1
, i = 0;
var run = function(reaction){
var handler = ok ? reaction.ok : reaction.fail
, resolve = reaction.resolve
, reject = reaction.reject
, result, then;
try {
if(handler){
if(!ok)record.h = true;
result = handler === true ? value : handler(value);
if(result === reaction.promise){
reject(TypeError('Promise-chain cycle'));
} else if(then = isThenable(result)){
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch(e){
reject(e);
}
};
while(chain.length > i)run(chain[i++]); // variable length - can't use forEach
chain.length = 0;
record.n = false;
if(isReject)setTimeout(function(){
var promise = record.p
, handler, console;
if(isUnhandled(promise)){
if(isNode){
process.emit('unhandledRejection', value, promise);
} else if(handler = global.onunhandledrejection){
handler({promise: promise, reason: value});
} else if((console = global.console) && console.error){
console.error('Unhandled promise rejection', value);
}
} record.a = undefined;
}, 1);
});
};
var isUnhandled = function(promise){
var record = promise._d
, chain = record.a || record.c
, i = 0
, reaction;
if(record.h)return false;
while(chain.length > i){
reaction = chain[i++];
if(reaction.fail || !isUnhandled(reaction.promise))return false;
} return true;
};
var $reject = function(value){
var record = this;
if(record.d)return;
record.d = true;
record = record.r || record; // unwrap
record.v = value;
record.s = 2;
record.a = record.c.slice();
notify(record, true);
};
var $resolve = function(value){
var record = this
, then;
if(record.d)return;
record.d = true;
record = record.r || record; // unwrap
try {
if(record.p === value)throw TypeError("Promise can't be resolved itself");
if(then = isThenable(value)){
asap(function(){
var wrapper = {r: record, d: false}; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
} catch(e){
$reject.call(wrapper, e);
}
});
} else {
record.v = value;
record.s = 1;
notify(record, false);
}
} catch(e){
$reject.call({r: record, d: false}, e); // wrap
}
};
// constructor polyfill
if(!USE_NATIVE){
// 25.4.3.1 Promise(executor)
P = function Promise(executor){
aFunction(executor);
var record = this._d = {
p: strictNew(this, P, PROMISE), // <- promise
c: [], // <- awaiting reactions
a: undefined, // <- checked in isUnhandled reactions
s: 0, // <- state
d: false, // <- done
v: undefined, // <- value
h: false, // <- handled rejection
n: false // <- notify
};
try {
executor(ctx($resolve, record, 1), ctx($reject, record, 1));
} catch(err){
$reject.call(record, err);
}
};
_dereq_(61)(P.prototype, {
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
then: function then(onFulfilled, onRejected){
var reaction = new PromiseCapability(speciesConstructor(this, P))
, promise = reaction.promise
, record = this._d;
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
reaction.fail = typeof onRejected == 'function' && onRejected;
record.c.push(reaction);
if(record.a)record.a.push(reaction);
if(record.s)notify(record, false);
return promise;
},
// 25.4.5.1 Promise.prototype.catch(onRejected)
'catch': function(onRejected){
return this.then(undefined, onRejected);
}
});
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});
_dereq_(67)(P, PROMISE);
_dereq_(66)(PROMISE);
Wrapper = _dereq_(17)[PROMISE];
// statics
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
// 25.4.4.5 Promise.reject(r)
reject: function reject(r){
var capability = new PromiseCapability(this)
, $$reject = capability.reject;
$$reject(r);
return capability.promise;
}
});
$export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, {
// 25.4.4.6 Promise.resolve(x)
resolve: function resolve(x){
// instanceof instead of internal slot check because we should fix it without replacement native Promise core
if(x instanceof P && sameConstructor(x.constructor, this))return x;
var capability = new PromiseCapability(this)
, $$resolve = capability.resolve;
$$resolve(x);
return capability.promise;
}
});
$export($export.S + $export.F * !(USE_NATIVE && _dereq_(44)(function(iter){
P.all(iter)['catch'](function(){});
})), PROMISE, {
// 25.4.4.1 Promise.all(iterable)
all: function all(iterable){
var C = getConstructor(this)
, capability = new PromiseCapability(C)
, resolve = capability.resolve
, reject = capability.reject
, values = [];
var abrupt = perform(function(){
forOf(iterable, false, values.push, values);
var remaining = values.length
, results = Array(remaining);
if(remaining)$.each.call(values, function(promise, index){
var alreadyCalled = false;
C.resolve(promise).then(function(value){
if(alreadyCalled)return;
alreadyCalled = true;
results[index] = value;
--remaining || resolve(results);
}, reject);
});
else resolve(results);
});
if(abrupt)reject(abrupt.error);
return capability.promise;
},
// 25.4.4.4 Promise.race(iterable)
race: function race(iterable){
var C = getConstructor(this)
, capability = new PromiseCapability(C)
, reject = capability.reject;
var abrupt = perform(function(){
forOf(iterable, false, function(promise){
C.resolve(promise).then(capability.resolve, reject);
});
});
if(abrupt)reject(abrupt.error);
return capability.promise;
}
});
},{"11":11,"17":17,"18":18,"20":20,"23":23,"28":28,"3":3,"30":30,"39":39,"44":44,"47":47,"49":49,"5":5,"53":53,"61":61,"64":64,"65":65,"66":66,"67":67,"69":69,"70":70,"84":84}],140:[function(_dereq_,module,exports){
// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)
var $export = _dereq_(23)
, _apply = Function.apply;
$export($export.S, 'Reflect', {
apply: function apply(target, thisArgument, argumentsList){
return _apply.call(target, thisArgument, argumentsList);
}
});
},{"23":23}],141:[function(_dereq_,module,exports){
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
var $ = _dereq_(47)
, $export = _dereq_(23)
, aFunction = _dereq_(3)
, anObject = _dereq_(5)
, isObject = _dereq_(39)
, bind = Function.bind || _dereq_(17).Function.prototype.bind;
// MS Edge supports only 2 arguments
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
$export($export.S + $export.F * _dereq_(25)(function(){
function F(){}
return !(Reflect.construct(function(){}, [], F) instanceof F);
}), 'Reflect', {
construct: function construct(Target, args /*, newTarget*/){
aFunction(Target);
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
if(Target == newTarget){
// w/o altered newTarget, optimization for 0-4 arguments
if(args != undefined)switch(anObject(args).length){
case 0: return new Target;
case 1: return new Target(args[0]);
case 2: return new Target(args[0], args[1]);
case 3: return new Target(args[0], args[1], args[2]);
case 4: return new Target(args[0], args[1], args[2], args[3]);
}
// w/o altered newTarget, lot of arguments case
var $args = [null];
$args.push.apply($args, args);
return new (bind.apply(Target, $args));
}
// with altered newTarget, not support built-in constructors
var proto = newTarget.prototype
, instance = $.create(isObject(proto) ? proto : Object.prototype)
, result = Function.apply.call(Target, instance, args);
return isObject(result) ? result : instance;
}
});
},{"17":17,"23":23,"25":25,"3":3,"39":39,"47":47,"5":5}],142:[function(_dereq_,module,exports){
// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)
var $ = _dereq_(47)
, $export = _dereq_(23)
, anObject = _dereq_(5);
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
$export($export.S + $export.F * _dereq_(25)(function(){
Reflect.defineProperty($.setDesc({}, 1, {value: 1}), 1, {value: 2});
}), 'Reflect', {
defineProperty: function defineProperty(target, propertyKey, attributes){
anObject(target);
try {
$.setDesc(target, propertyKey, attributes);
return true;
} catch(e){
return false;
}
}
});
},{"23":23,"25":25,"47":47,"5":5}],143:[function(_dereq_,module,exports){
// 26.1.4 Reflect.deleteProperty(target, propertyKey)
var $export = _dereq_(23)
, getDesc = _dereq_(47).getDesc
, anObject = _dereq_(5);
$export($export.S, 'Reflect', {
deleteProperty: function deleteProperty(target, propertyKey){
var desc = getDesc(anObject(target), propertyKey);
return desc && !desc.configurable ? false : delete target[propertyKey];
}
});
},{"23":23,"47":47,"5":5}],144:[function(_dereq_,module,exports){
'use strict';
// 26.1.5 Reflect.enumerate(target)
var $export = _dereq_(23)
, anObject = _dereq_(5);
var Enumerate = function(iterated){
this._t = anObject(iterated); // target
this._i = 0; // next index
var keys = this._k = [] // keys
, key;
for(key in iterated)keys.push(key);
};
_dereq_(42)(Enumerate, 'Object', function(){
var that = this
, keys = that._k
, key;
do {
if(that._i >= keys.length)return {value: undefined, done: true};
} while(!((key = keys[that._i++]) in that._t));
return {value: key, done: false};
});
$export($export.S, 'Reflect', {
enumerate: function enumerate(target){
return new Enumerate(target);
}
});
},{"23":23,"42":42,"5":5}],145:[function(_dereq_,module,exports){
// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)
var $ = _dereq_(47)
, $export = _dereq_(23)
, anObject = _dereq_(5);
$export($export.S, 'Reflect', {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){
return $.getDesc(anObject(target), propertyKey);
}
});
},{"23":23,"47":47,"5":5}],146:[function(_dereq_,module,exports){
// 26.1.8 Reflect.getPrototypeOf(target)
var $export = _dereq_(23)
, getProto = _dereq_(47).getProto
, anObject = _dereq_(5);
$export($export.S, 'Reflect', {
getPrototypeOf: function getPrototypeOf(target){
return getProto(anObject(target));
}
});
},{"23":23,"47":47,"5":5}],147:[function(_dereq_,module,exports){
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
var $ = _dereq_(47)
, has = _dereq_(31)
, $export = _dereq_(23)
, isObject = _dereq_(39)
, anObject = _dereq_(5);
function get(target, propertyKey/*, receiver*/){
var receiver = arguments.length < 3 ? target : arguments[2]
, desc, proto;
if(anObject(target) === receiver)return target[propertyKey];
if(desc = $.getDesc(target, propertyKey))return has(desc, 'value')
? desc.value
: desc.get !== undefined
? desc.get.call(receiver)
: undefined;
if(isObject(proto = $.getProto(target)))return get(proto, propertyKey, receiver);
}
$export($export.S, 'Reflect', {get: get});
},{"23":23,"31":31,"39":39,"47":47,"5":5}],148:[function(_dereq_,module,exports){
// 26.1.9 Reflect.has(target, propertyKey)
var $export = _dereq_(23);
$export($export.S, 'Reflect', {
has: function has(target, propertyKey){
return propertyKey in target;
}
});
},{"23":23}],149:[function(_dereq_,module,exports){
// 26.1.10 Reflect.isExtensible(target)
var $export = _dereq_(23)
, anObject = _dereq_(5)
, $isExtensible = Object.isExtensible;
$export($export.S, 'Reflect', {
isExtensible: function isExtensible(target){
anObject(target);
return $isExtensible ? $isExtensible(target) : true;
}
});
},{"23":23,"5":5}],150:[function(_dereq_,module,exports){
// 26.1.11 Reflect.ownKeys(target)
var $export = _dereq_(23);
$export($export.S, 'Reflect', {ownKeys: _dereq_(57)});
},{"23":23,"57":57}],151:[function(_dereq_,module,exports){
// 26.1.12 Reflect.preventExtensions(target)
var $export = _dereq_(23)
, anObject = _dereq_(5)
, $preventExtensions = Object.preventExtensions;
$export($export.S, 'Reflect', {
preventExtensions: function preventExtensions(target){
anObject(target);
try {
if($preventExtensions)$preventExtensions(target);
return true;
} catch(e){
return false;
}
}
});
},{"23":23,"5":5}],152:[function(_dereq_,module,exports){
// 26.1.14 Reflect.setPrototypeOf(target, proto)
var $export = _dereq_(23)
, setProto = _dereq_(65);
if(setProto)$export($export.S, 'Reflect', {
setPrototypeOf: function setPrototypeOf(target, proto){
setProto.check(target, proto);
try {
setProto.set(target, proto);
return true;
} catch(e){
return false;
}
}
});
},{"23":23,"65":65}],153:[function(_dereq_,module,exports){
// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
var $ = _dereq_(47)
, has = _dereq_(31)
, $export = _dereq_(23)
, createDesc = _dereq_(60)
, anObject = _dereq_(5)
, isObject = _dereq_(39);
function set(target, propertyKey, V/*, receiver*/){
var receiver = arguments.length < 4 ? target : arguments[3]
, ownDesc = $.getDesc(anObject(target), propertyKey)
, existingDescriptor, proto;
if(!ownDesc){
if(isObject(proto = $.getProto(target))){
return set(proto, propertyKey, V, receiver);
}
ownDesc = createDesc(0);
}
if(has(ownDesc, 'value')){
if(ownDesc.writable === false || !isObject(receiver))return false;
existingDescriptor = $.getDesc(receiver, propertyKey) || createDesc(0);
existingDescriptor.value = V;
$.setDesc(receiver, propertyKey, existingDescriptor);
return true;
}
return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);
}
$export($export.S, 'Reflect', {set: set});
},{"23":23,"31":31,"39":39,"47":47,"5":5,"60":60}],154:[function(_dereq_,module,exports){
var $ = _dereq_(47)
, global = _dereq_(30)
, isRegExp = _dereq_(40)
, $flags = _dereq_(27)
, $RegExp = global.RegExp
, Base = $RegExp
, proto = $RegExp.prototype
, re1 = /a/g
, re2 = /a/g
// "new" creates a new object, old webkit buggy here
, CORRECT_NEW = new $RegExp(re1) !== re1;
if(_dereq_(20) && (!CORRECT_NEW || _dereq_(25)(function(){
re2[_dereq_(84)('match')] = false;
// RegExp constructor can alter flags and IsRegExp works correct with @@match
return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
}))){
$RegExp = function RegExp(p, f){
var piRE = isRegExp(p)
, fiU = f === undefined;
return !(this instanceof $RegExp) && piRE && p.constructor === $RegExp && fiU ? p
: CORRECT_NEW
? new Base(piRE && !fiU ? p.source : p, f)
: Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f);
};
$.each.call($.getNames(Base), function(key){
key in $RegExp || $.setDesc($RegExp, key, {
configurable: true,
get: function(){ return Base[key]; },
set: function(it){ Base[key] = it; }
});
});
proto.constructor = $RegExp;
$RegExp.prototype = proto;
_dereq_(62)(global, 'RegExp', $RegExp);
}
_dereq_(66)('RegExp');
},{"20":20,"25":25,"27":27,"30":30,"40":40,"47":47,"62":62,"66":66,"84":84}],155:[function(_dereq_,module,exports){
// 21.2.5.3 get RegExp.prototype.flags()
var $ = _dereq_(47);
if(_dereq_(20) && /./g.flags != 'g')$.setDesc(RegExp.prototype, 'flags', {
configurable: true,
get: _dereq_(27)
});
},{"20":20,"27":27,"47":47}],156:[function(_dereq_,module,exports){
// @@match logic
_dereq_(26)('match', 1, function(defined, MATCH){
// 21.1.3.11 String.prototype.match(regexp)
return function match(regexp){
'use strict';
var O = defined(this)
, fn = regexp == undefined ? undefined : regexp[MATCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
};
});
},{"26":26}],157:[function(_dereq_,module,exports){
// @@replace logic
_dereq_(26)('replace', 2, function(defined, REPLACE, $replace){
// 21.1.3.14 String.prototype.replace(searchValue, replaceValue)
return function replace(searchValue, replaceValue){
'use strict';
var O = defined(this)
, fn = searchValue == undefined ? undefined : searchValue[REPLACE];
return fn !== undefined
? fn.call(searchValue, O, replaceValue)
: $replace.call(String(O), searchValue, replaceValue);
};
});
},{"26":26}],158:[function(_dereq_,module,exports){
// @@search logic
_dereq_(26)('search', 1, function(defined, SEARCH){
// 21.1.3.15 String.prototype.search(regexp)
return function search(regexp){
'use strict';
var O = defined(this)
, fn = regexp == undefined ? undefined : regexp[SEARCH];
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
};
});
},{"26":26}],159:[function(_dereq_,module,exports){
// @@split logic
_dereq_(26)('split', 2, function(defined, SPLIT, $split){
// 21.1.3.17 String.prototype.split(separator, limit)
return function split(separator, limit){
'use strict';
var O = defined(this)
, fn = separator == undefined ? undefined : separator[SPLIT];
return fn !== undefined
? fn.call(separator, O, limit)
: $split.call(String(O), separator, limit);
};
});
},{"26":26}],160:[function(_dereq_,module,exports){
'use strict';
var strong = _dereq_(13);
// 23.2 Set Objects
_dereq_(16)('Set', function(get){
return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value){
return strong.def(this, value = value === 0 ? 0 : value, value);
}
}, strong);
},{"13":13,"16":16}],161:[function(_dereq_,module,exports){
'use strict';
var $export = _dereq_(23)
, $at = _dereq_(71)(false);
$export($export.P, 'String', {
// 21.1.3.3 String.prototype.codePointAt(pos)
codePointAt: function codePointAt(pos){
return $at(this, pos);
}
});
},{"23":23,"71":71}],162:[function(_dereq_,module,exports){
// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])
'use strict';
var $export = _dereq_(23)
, toLength = _dereq_(80)
, context = _dereq_(72)
, ENDS_WITH = 'endsWith'
, $endsWith = ''[ENDS_WITH];
$export($export.P + $export.F * _dereq_(24)(ENDS_WITH), 'String', {
endsWith: function endsWith(searchString /*, endPosition = @length */){
var that = context(this, searchString, ENDS_WITH)
, $$ = arguments
, endPosition = $$.length > 1 ? $$[1] : undefined
, len = toLength(that.length)
, end = endPosition === undefined ? len : Math.min(toLength(endPosition), len)
, search = String(searchString);
return $endsWith
? $endsWith.call(that, search, end)
: that.slice(end - search.length, end) === search;
}
});
},{"23":23,"24":24,"72":72,"80":80}],163:[function(_dereq_,module,exports){
var $export = _dereq_(23)
, toIndex = _dereq_(77)
, fromCharCode = String.fromCharCode
, $fromCodePoint = String.fromCodePoint;
// length should be 1, old FF problem
$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
// 21.1.2.2 String.fromCodePoint(...codePoints)
fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars
var res = []
, $$ = arguments
, $$len = $$.length
, i = 0
, code;
while($$len > i){
code = +$$[i++];
if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point');
res.push(code < 0x10000
? fromCharCode(code)
: fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
);
} return res.join('');
}
});
},{"23":23,"77":77}],164:[function(_dereq_,module,exports){
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
'use strict';
var $export = _dereq_(23)
, context = _dereq_(72)
, INCLUDES = 'includes';
$export($export.P + $export.F * _dereq_(24)(INCLUDES), 'String', {
includes: function includes(searchString /*, position = 0 */){
return !!~context(this, searchString, INCLUDES)
.indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
}
});
},{"23":23,"24":24,"72":72}],165:[function(_dereq_,module,exports){
'use strict';
var $at = _dereq_(71)(true);
// 21.1.3.27 String.prototype[@@iterator]()
_dereq_(43)(String, 'String', function(iterated){
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function(){
var O = this._t
, index = this._i
, point;
if(index >= O.length)return {value: undefined, done: true};
point = $at(O, index);
this._i += point.length;
return {value: point, done: false};
});
},{"43":43,"71":71}],166:[function(_dereq_,module,exports){
var $export = _dereq_(23)
, toIObject = _dereq_(79)
, toLength = _dereq_(80);
$export($export.S, 'String', {
// 21.1.2.4 String.raw(callSite, ...substitutions)
raw: function raw(callSite){
var tpl = toIObject(callSite.raw)
, len = toLength(tpl.length)
, $$ = arguments
, $$len = $$.length
, res = []
, i = 0;
while(len > i){
res.push(String(tpl[i++]));
if(i < $$len)res.push(String($$[i]));
} return res.join('');
}
});
},{"23":23,"79":79,"80":80}],167:[function(_dereq_,module,exports){
var $export = _dereq_(23);
$export($export.P, 'String', {
// 21.1.3.13 String.prototype.repeat(count)
repeat: _dereq_(74)
});
},{"23":23,"74":74}],168:[function(_dereq_,module,exports){
// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
'use strict';
var $export = _dereq_(23)
, toLength = _dereq_(80)
, context = _dereq_(72)
, STARTS_WITH = 'startsWith'
, $startsWith = ''[STARTS_WITH];
$export($export.P + $export.F * _dereq_(24)(STARTS_WITH), 'String', {
startsWith: function startsWith(searchString /*, position = 0 */){
var that = context(this, searchString, STARTS_WITH)
, $$ = arguments
, index = toLength(Math.min($$.length > 1 ? $$[1] : undefined, that.length))
, search = String(searchString);
return $startsWith
? $startsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
},{"23":23,"24":24,"72":72,"80":80}],169:[function(_dereq_,module,exports){
'use strict';
// 21.1.3.25 String.prototype.trim()
_dereq_(75)('trim', function($trim){
return function trim(){
return $trim(this, 3);
};
});
},{"75":75}],170:[function(_dereq_,module,exports){
'use strict';
// ECMAScript 6 symbols shim
var $ = _dereq_(47)
, global = _dereq_(30)
, has = _dereq_(31)
, DESCRIPTORS = _dereq_(20)
, $export = _dereq_(23)
, redefine = _dereq_(62)
, $fails = _dereq_(25)
, shared = _dereq_(68)
, setToStringTag = _dereq_(67)
, uid = _dereq_(83)
, wks = _dereq_(84)
, keyOf = _dereq_(48)
, $names = _dereq_(29)
, enumKeys = _dereq_(22)
, isArray = _dereq_(37)
, anObject = _dereq_(5)
, toIObject = _dereq_(79)
, createDesc = _dereq_(60)
, getDesc = $.getDesc
, setDesc = $.setDesc
, _create = $.create
, getNames = $names.get
, $Symbol = global.Symbol
, $JSON = global.JSON
, _stringify = $JSON && $JSON.stringify
, setter = false
, HIDDEN = wks('_hidden')
, isEnum = $.isEnum
, SymbolRegistry = shared('symbol-registry')
, AllSymbols = shared('symbols')
, useNative = typeof $Symbol == 'function'
, ObjectProto = Object.prototype;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function(){
return _create(setDesc({}, 'a', {
get: function(){ return setDesc(this, 'a', {value: 7}).a; }
})).a != 7;
}) ? function(it, key, D){
var protoDesc = getDesc(ObjectProto, key);
if(protoDesc)delete ObjectProto[key];
setDesc(it, key, D);
if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);
} : setDesc;
var wrap = function(tag){
var sym = AllSymbols[tag] = _create($Symbol.prototype);
sym._k = tag;
DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {
configurable: true,
set: function(value){
if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
setSymbolDesc(this, tag, createDesc(1, value));
}
});
return sym;
};
var isSymbol = function(it){
return typeof it == 'symbol';
};
var $defineProperty = function defineProperty(it, key, D){
if(D && has(AllSymbols, key)){
if(!D.enumerable){
if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));
it[HIDDEN][key] = true;
} else {
if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
D = _create(D, {enumerable: createDesc(0, false)});
} return setSymbolDesc(it, key, D);
} return setDesc(it, key, D);
};
var $defineProperties = function defineProperties(it, P){
anObject(it);
var keys = enumKeys(P = toIObject(P))
, i = 0
, l = keys.length
, key;
while(l > i)$defineProperty(it, key = keys[i++], P[key]);
return it;
};
var $create = function create(it, P){
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key){
var E = isEnum.call(this, key);
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]
? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
var D = getDesc(it = toIObject(it), key);
if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it){
var names = getNames(toIObject(it))
, result = []
, i = 0
, key;
while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);
return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
var names = getNames(toIObject(it))
, result = []
, i = 0
, key;
while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);
return result;
};
var $stringify = function stringify(it){
if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
var args = [it]
, i = 1
, $$ = arguments
, replacer, $replacer;
while($$.length > i)args.push($$[i++]);
replacer = args[1];
if(typeof replacer == 'function')$replacer = replacer;
if($replacer || !isArray(replacer))replacer = function(key, value){
if($replacer)value = $replacer.call(this, key, value);
if(!isSymbol(value))return value;
};
args[1] = replacer;
return _stringify.apply($JSON, args);
};
var buggyJSON = $fails(function(){
var S = $Symbol();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
});
// 19.4.1.1 Symbol([description])
if(!useNative){
$Symbol = function Symbol(){
if(isSymbol(this))throw TypeError('Symbol is not a constructor');
return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));
};
redefine($Symbol.prototype, 'toString', function toString(){
return this._k;
});
isSymbol = function(it){
return it instanceof $Symbol;
};
$.create = $create;
$.isEnum = $propertyIsEnumerable;
$.getDesc = $getOwnPropertyDescriptor;
$.setDesc = $defineProperty;
$.setDescs = $defineProperties;
$.getNames = $names.get = $getOwnPropertyNames;
$.getSymbols = $getOwnPropertySymbols;
if(DESCRIPTORS && !_dereq_(49)){
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
}
var symbolStatics = {
// 19.4.2.1 Symbol.for(key)
'for': function(key){
return has(SymbolRegistry, key += '')
? SymbolRegistry[key]
: SymbolRegistry[key] = $Symbol(key);
},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor: function keyFor(key){
return keyOf(SymbolRegistry, key);
},
useSetter: function(){ setter = true; },
useSimple: function(){ setter = false; }
};
// 19.4.2.2 Symbol.hasInstance
// 19.4.2.3 Symbol.isConcatSpreadable
// 19.4.2.4 Symbol.iterator
// 19.4.2.6 Symbol.match
// 19.4.2.8 Symbol.replace
// 19.4.2.9 Symbol.search
// 19.4.2.10 Symbol.species
// 19.4.2.11 Symbol.split
// 19.4.2.12 Symbol.toPrimitive
// 19.4.2.13 Symbol.toStringTag
// 19.4.2.14 Symbol.unscopables
$.each.call((
'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
'species,split,toPrimitive,toStringTag,unscopables'
).split(','), function(it){
var sym = wks(it);
symbolStatics[it] = useNative ? sym : wrap(sym);
});
setter = true;
$export($export.G + $export.W, {Symbol: $Symbol});
$export($export.S, 'Symbol', symbolStatics);
$export($export.S + $export.F * !useNative, 'Object', {
// 19.1.2.2 Object.create(O [, Properties])
create: $create,
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty: $defineProperty,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties: $defineProperties,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames: $getOwnPropertyNames,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: $getOwnPropertySymbols
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);
},{"20":20,"22":22,"23":23,"25":25,"29":29,"30":30,"31":31,"37":37,"47":47,"48":48,"49":49,"5":5,"60":60,"62":62,"67":67,"68":68,"79":79,"83":83,"84":84}],171:[function(_dereq_,module,exports){
'use strict';
var $ = _dereq_(47)
, redefine = _dereq_(62)
, weak = _dereq_(15)
, isObject = _dereq_(39)
, has = _dereq_(31)
, frozenStore = weak.frozenStore
, WEAK = weak.WEAK
, isExtensible = Object.isExtensible || isObject
, tmp = {};
// 23.3 WeakMap Objects
var $WeakMap = _dereq_(16)('WeakMap', function(get){
return function WeakMap(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.3.3.3 WeakMap.prototype.get(key)
get: function get(key){
if(isObject(key)){
if(!isExtensible(key))return frozenStore(this).get(key);
if(has(key, WEAK))return key[WEAK][this._i];
}
},
// 23.3.3.5 WeakMap.prototype.set(key, value)
set: function set(key, value){
return weak.def(this, key, value);
}
}, weak, true, true);
// IE11 WeakMap frozen keys fix
if(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){
$.each.call(['delete', 'has', 'get', 'set'], function(key){
var proto = $WeakMap.prototype
, method = proto[key];
redefine(proto, key, function(a, b){
// store frozen objects on leaky map
if(isObject(a) && !isExtensible(a)){
var result = frozenStore(this)[key](a, b);
return key == 'set' ? this : result;
// store all the rest on native weakmap
} return method.call(this, a, b);
});
});
}
},{"15":15,"16":16,"31":31,"39":39,"47":47,"62":62}],172:[function(_dereq_,module,exports){
'use strict';
var weak = _dereq_(15);
// 23.4 WeakSet Objects
_dereq_(16)('WeakSet', function(get){
return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };
}, {
// 23.4.3.1 WeakSet.prototype.add(value)
add: function add(value){
return weak.def(this, value, true);
}
}, weak, false, true);
},{"15":15,"16":16}],173:[function(_dereq_,module,exports){
'use strict';
var $export = _dereq_(23)
, $includes = _dereq_(8)(true);
$export($export.P, 'Array', {
// https://github.com/domenic/Array.prototype.includes
includes: function includes(el /*, fromIndex = 0 */){
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
_dereq_(4)('includes');
},{"23":23,"4":4,"8":8}],174:[function(_dereq_,module,exports){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = _dereq_(23);
$export($export.P, 'Map', {toJSON: _dereq_(14)('Map')});
},{"14":14,"23":23}],175:[function(_dereq_,module,exports){
// http://goo.gl/XkBrjD
var $export = _dereq_(23)
, $entries = _dereq_(56)(true);
$export($export.S, 'Object', {
entries: function entries(it){
return $entries(it);
}
});
},{"23":23,"56":56}],176:[function(_dereq_,module,exports){
// https://gist.github.com/WebReflection/9353781
var $ = _dereq_(47)
, $export = _dereq_(23)
, ownKeys = _dereq_(57)
, toIObject = _dereq_(79)
, createDesc = _dereq_(60);
$export($export.S, 'Object', {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){
var O = toIObject(object)
, setDesc = $.setDesc
, getDesc = $.getDesc
, keys = ownKeys(O)
, result = {}
, i = 0
, key, D;
while(keys.length > i){
D = getDesc(O, key = keys[i++]);
if(key in result)setDesc(result, key, createDesc(0, D));
else result[key] = D;
} return result;
}
});
},{"23":23,"47":47,"57":57,"60":60,"79":79}],177:[function(_dereq_,module,exports){
// http://goo.gl/XkBrjD
var $export = _dereq_(23)
, $values = _dereq_(56)(false);
$export($export.S, 'Object', {
values: function values(it){
return $values(it);
}
});
},{"23":23,"56":56}],178:[function(_dereq_,module,exports){
// https://github.com/benjamingr/RexExp.escape
var $export = _dereq_(23)
, $re = _dereq_(63)(/[\\^$*+?.()|[\]{}]/g, '\\$&');
$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});
},{"23":23,"63":63}],179:[function(_dereq_,module,exports){
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
var $export = _dereq_(23);
$export($export.P, 'Set', {toJSON: _dereq_(14)('Set')});
},{"14":14,"23":23}],180:[function(_dereq_,module,exports){
'use strict';
// https://github.com/mathiasbynens/String.prototype.at
var $export = _dereq_(23)
, $at = _dereq_(71)(true);
$export($export.P, 'String', {
at: function at(pos){
return $at(this, pos);
}
});
},{"23":23,"71":71}],181:[function(_dereq_,module,exports){
'use strict';
var $export = _dereq_(23)
, $pad = _dereq_(73);
$export($export.P, 'String', {
padLeft: function padLeft(maxLength /*, fillString = ' ' */){
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
}
});
},{"23":23,"73":73}],182:[function(_dereq_,module,exports){
'use strict';
var $export = _dereq_(23)
, $pad = _dereq_(73);
$export($export.P, 'String', {
padRight: function padRight(maxLength /*, fillString = ' ' */){
return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);
}
});
},{"23":23,"73":73}],183:[function(_dereq_,module,exports){
'use strict';
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
_dereq_(75)('trimLeft', function($trim){
return function trimLeft(){
return $trim(this, 1);
};
});
},{"75":75}],184:[function(_dereq_,module,exports){
'use strict';
// https://github.com/sebmarkbage/ecmascript-string-left-right-trim
_dereq_(75)('trimRight', function($trim){
return function trimRight(){
return $trim(this, 2);
};
});
},{"75":75}],185:[function(_dereq_,module,exports){
// JavaScript 1.6 / Strawman array statics shim
var $ = _dereq_(47)
, $export = _dereq_(23)
, $ctx = _dereq_(18)
, $Array = _dereq_(17).Array || Array
, statics = {};
var setStatics = function(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = $ctx(Function.call, [][key], length);
});
};
setStatics('pop,reverse,shift,keys,values,entries', 1);
setStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3);
setStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' +
'reduce,reduceRight,copyWithin,fill');
$export($export.S, 'Array', statics);
},{"17":17,"18":18,"23":23,"47":47}],186:[function(_dereq_,module,exports){
_dereq_(92);
var global = _dereq_(30)
, hide = _dereq_(32)
, Iterators = _dereq_(46)
, ITERATOR = _dereq_(84)('iterator')
, NL = global.NodeList
, HTC = global.HTMLCollection
, NLProto = NL && NL.prototype
, HTCProto = HTC && HTC.prototype
, ArrayValues = Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array;
if(NLProto && !NLProto[ITERATOR])hide(NLProto, ITERATOR, ArrayValues);
if(HTCProto && !HTCProto[ITERATOR])hide(HTCProto, ITERATOR, ArrayValues);
},{"30":30,"32":32,"46":46,"84":84,"92":92}],187:[function(_dereq_,module,exports){
var $export = _dereq_(23)
, $task = _dereq_(76);
$export($export.G + $export.B, {
setImmediate: $task.set,
clearImmediate: $task.clear
});
},{"23":23,"76":76}],188:[function(_dereq_,module,exports){
// ie9- setTimeout & setInterval additional parameters fix
var global = _dereq_(30)
, $export = _dereq_(23)
, invoke = _dereq_(34)
, partial = _dereq_(58)
, navigator = global.navigator
, MSIE = !!navigator && /MSIE .\./.test(navigator.userAgent); // <- dirty ie9- check
var wrap = function(set){
return MSIE ? function(fn, time /*, ...args */){
return set(invoke(
partial,
[].slice.call(arguments, 2),
typeof fn == 'function' ? fn : Function(fn)
), time);
} : set;
};
$export($export.G + $export.B + $export.F * MSIE, {
setTimeout: wrap(global.setTimeout),
setInterval: wrap(global.setInterval)
});
},{"23":23,"30":30,"34":34,"58":58}],189:[function(_dereq_,module,exports){
_dereq_(86);
_dereq_(170);
_dereq_(125);
_dereq_(133);
_dereq_(137);
_dereq_(138);
_dereq_(126);
_dereq_(136);
_dereq_(135);
_dereq_(131);
_dereq_(132);
_dereq_(130);
_dereq_(127);
_dereq_(129);
_dereq_(134);
_dereq_(128);
_dereq_(96);
_dereq_(95);
_dereq_(115);
_dereq_(116);
_dereq_(117);
_dereq_(118);
_dereq_(119);
_dereq_(120);
_dereq_(121);
_dereq_(122);
_dereq_(123);
_dereq_(124);
_dereq_(98);
_dereq_(99);
_dereq_(100);
_dereq_(101);
_dereq_(102);
_dereq_(103);
_dereq_(104);
_dereq_(105);
_dereq_(106);
_dereq_(107);
_dereq_(108);
_dereq_(109);
_dereq_(110);
_dereq_(111);
_dereq_(112);
_dereq_(113);
_dereq_(114);
_dereq_(163);
_dereq_(166);
_dereq_(169);
_dereq_(165);
_dereq_(161);
_dereq_(162);
_dereq_(164);
_dereq_(167);
_dereq_(168);
_dereq_(91);
_dereq_(93);
_dereq_(92);
_dereq_(94);
_dereq_(87);
_dereq_(88);
_dereq_(90);
_dereq_(89);
_dereq_(154);
_dereq_(155);
_dereq_(156);
_dereq_(157);
_dereq_(158);
_dereq_(159);
_dereq_(139);
_dereq_(97);
_dereq_(160);
_dereq_(171);
_dereq_(172);
_dereq_(140);
_dereq_(141);
_dereq_(142);
_dereq_(143);
_dereq_(144);
_dereq_(147);
_dereq_(145);
_dereq_(146);
_dereq_(148);
_dereq_(149);
_dereq_(150);
_dereq_(151);
_dereq_(153);
_dereq_(152);
_dereq_(173);
_dereq_(180);
_dereq_(181);
_dereq_(182);
_dereq_(183);
_dereq_(184);
_dereq_(178);
_dereq_(176);
_dereq_(177);
_dereq_(175);
_dereq_(174);
_dereq_(179);
_dereq_(185);
_dereq_(188);
_dereq_(187);
_dereq_(186);
module.exports = _dereq_(17);
},{"100":100,"101":101,"102":102,"103":103,"104":104,"105":105,"106":106,"107":107,"108":108,"109":109,"110":110,"111":111,"112":112,"113":113,"114":114,"115":115,"116":116,"117":117,"118":118,"119":119,"120":120,"121":121,"122":122,"123":123,"124":124,"125":125,"126":126,"127":127,"128":128,"129":129,"130":130,"131":131,"132":132,"133":133,"134":134,"135":135,"136":136,"137":137,"138":138,"139":139,"140":140,"141":141,"142":142,"143":143,"144":144,"145":145,"146":146,"147":147,"148":148,"149":149,"150":150,"151":151,"152":152,"153":153,"154":154,"155":155,"156":156,"157":157,"158":158,"159":159,"160":160,"161":161,"162":162,"163":163,"164":164,"165":165,"166":166,"167":167,"168":168,"169":169,"17":17,"170":170,"171":171,"172":172,"173":173,"174":174,"175":175,"176":176,"177":177,"178":178,"179":179,"180":180,"181":181,"182":182,"183":183,"184":184,"185":185,"186":186,"187":187,"188":188,"86":86,"87":87,"88":88,"89":89,"90":90,"91":91,"92":92,"93":93,"94":94,"95":95,"96":96,"97":97,"98":98,"99":99}],190:[function(_dereq_,module,exports){
(function (global){
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
!(function(global) {
"use strict";
var hasOwn = Object.prototype.hasOwnProperty;
var undefined; // More compressible than void 0.
var iteratorSymbol =
typeof Symbol === "function" && Symbol.iterator || "@@iterator";
var inModule = typeof module === "object";
var runtime = global.regeneratorRuntime;
if (runtime) {
if (inModule) {
// If regeneratorRuntime is defined globally and we're in a module,
// make the exports object identical to regeneratorRuntime.
module.exports = runtime;
}
// Don't bother evaluating the rest of this file if the runtime was
// already defined globally.
return;
}
// Define the runtime globally (as expected by generated code) as either
// module.exports (if we're in a module) or a new, empty object.
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided, then outerFn.prototype instanceof Generator.
var generator = Object.create((outerFn || Generator).prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
runtime.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype;
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
prototype[method] = function(arg) {
return this._invoke(method, arg);
};
});
}
runtime.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
runtime.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `value instanceof AwaitArgument` to determine if the yielded value is
// meant to be awaited. Some may consider the name of this method too
// cutesy, but they are curmudgeons.
runtime.awrap = function(arg) {
return new AwaitArgument(arg);
};
function AwaitArgument(arg) {
this.arg = arg;
}
function AsyncIterator(generator) {
// This invoke function is written in a style that assumes some
// calling function (or Promise) will handle exceptions.
function invoke(method, arg) {
var result = generator[method](arg);
var value = result.value;
return value instanceof AwaitArgument
? Promise.resolve(value.arg).then(invokeNext, invokeThrow)
: Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the
// result for this iteration will be rejected with the same
// reason. Note that rejections of yielded Promises are not
// thrown back into the generator function, as is the case
// when an awaited Promise is rejected. This difference in
// behavior between yield and await is important, because it
// allows the consumer to decide what to do with the yielded
// rejection (swallow it and continue, manually .throw it back
// into the generator, abandon iteration, whatever). With
// await, by contrast, there is no opportunity to examine the
// rejection reason outside the generator function, so the
// only option is to throw it from the await expression, and
// let the generator function handle the exception.
result.value = unwrapped;
return result;
});
}
if (typeof process === "object" && process.domain) {
invoke = process.domain.bind(invoke);
}
var invokeNext = invoke.bind(generator, "next");
var invokeThrow = invoke.bind(generator, "throw");
var invokeReturn = invoke.bind(generator, "return");
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return invoke(method, arg);
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : new Promise(function (resolve) {
resolve(callInvokeWithMethodAndArg());
});
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
);
return runtime.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
while (true) {
var delegate = context.delegate;
if (delegate) {
if (method === "return" ||
(method === "throw" && delegate.iterator[method] === undefined)) {
// A return or throw (when the delegate iterator has no throw
// method) always terminates the yield* loop.
context.delegate = null;
// If the delegate iterator has a return method, give it a
// chance to clean up.
var returnMethod = delegate.iterator["return"];
if (returnMethod) {
var record = tryCatch(returnMethod, delegate.iterator, arg);
if (record.type === "throw") {
// If the return method threw an exception, let that
// exception prevail over the original return or throw.
method = "throw";
arg = record.arg;
continue;
}
}
if (method === "return") {
// Continue with the outer return, now that the delegate
// iterator has been terminated.
continue;
}
}
var record = tryCatch(
delegate.iterator[method],
delegate.iterator,
arg
);
if (record.type === "throw") {
context.delegate = null;
// Like returning generator.throw(uncaught), but without the
// overhead of an extra function call.
method = "throw";
arg = record.arg;
continue;
}
// Delegate generator ran and handled its own exceptions so
// regardless of what the method was, we continue as if it is
// "next" with an undefined arg.
method = "next";
arg = undefined;
var info = record.arg;
if (info.done) {
context[delegate.resultName] = info.value;
context.next = delegate.nextLoc;
} else {
state = GenStateSuspendedYield;
return info;
}
context.delegate = null;
}
if (method === "next") {
context._sent = arg;
if (state === GenStateSuspendedYield) {
context.sent = arg;
} else {
context.sent = undefined;
}
} else if (method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw arg;
}
if (context.dispatchException(arg)) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
method = "next";
arg = undefined;
}
} else if (method === "return") {
context.abrupt("return", arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
var info = {
value: record.arg,
done: context.done
};
if (record.arg === ContinueSentinel) {
if (context.delegate && method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
arg = undefined;
}
} else {
return info;
}
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(arg) call above.
method = "throw";
arg = record.arg;
}
}
};
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[iteratorSymbol] = function() {
return this;
};
Gp.toString = function() {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
runtime.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
runtime.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
this.sent = undefined;
this.done = false;
this.delegate = null;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
return !!caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.next = finallyEntry.finallyLoc;
} else {
this.complete(record);
}
return ContinueSentinel;
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = record.arg;
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
return ContinueSentinel;
}
};
})(
// Among the various tricks for obtaining a reference to the global
// object, this seems to be the most reliable technique that does not
// use indirect eval (which violates Content Security Policy).
typeof global === "object" ? global :
typeof window === "object" ? window :
typeof self === "object" ? self : this
);
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{}]},{},[1]);
2016-03-15 00:42:27 +03:00
2016-05-10 11:57:40 +03:00
!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(q.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=p[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?w[a]=b:w[a]=k(b)})(d[h],arguments[h]);e(g);var i=o(a[0]);if(a.length>1)for(var h
c._reportError(a,b,q.ParseErrorLevel.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},a.prototype._checkPipes=function(a,b){var c=this;if(k.isPresent(a)){var d=new U;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J),d=this._parseInterpolation(a.value,a.sourceSpan);return k.isPresent(d)?new r.BoundTextAst(d,c,a.sourceSpan):new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this,d=a.name,f=u.preparseElement(a);if(f.type===u.PreparsedElementType.SCRIPT||f.type===u.PreparsedElementType.STYLE)return null;if(f.type===u.PreparsedElementType.STYLESHEET&&v.isStyleUrlResolvable(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],l=[],m=[],n=[],o=[],q=!1,t=[],x=p.splitNsName(d.toLowerCase())[1],y=x==B;a.attrs.forEach(function(a){var b=c._parseAttr(y,a,g,h,l,i,j),d=c._parseInlineTemplateBinding(a,n,m,o);b||d||(t.push(c.visitAttr(a,null)),g.push([a.name,a.value])),d&&(q=!0)});var A=e(d,g),C=this._parseDirectives(this.selectorMatcher,A),D=[],E=this._createDirectiveAsts(y,a.name,C,h,i,a.sourceSpan,D),F=this._createElementPropertyAsts(a.name,h,E),G=b.isTemplateElement||q,H=new z.ProviderElementContext(this.providerViewContext,b.providerContext,G,E,t,D,a.sourceSpan),I=w.htmlVisitAll(f.nonBindable?T:this,a.children,R.create(y,E,y?b.providerContext:H));H.afterElement();var J,K=k.isPresent(f.projectAs)?s.CssSelector.parse(f.projectAs)[0]:A,L=b.findNgContentIndex(K);if(f.type===u.PreparsedElementType.NG_CONTENT)k.isPresent(a.children)&&a.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",a.sourceSpan),J=new r.NgContentAst(this.ngContentCount++,q?null:L,a.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,F,a.sourceSpan),J=new r.EmbeddedTemplateAst(t,l,D,j,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:L,a.sourceSpan);else{this._assertOnlyOneComponent(E,a.sourceSpan);var M=q?null:b.findNgContentIndex(K);J=new r.ElementAst(d,t,F,l,D,H.transformedDirectiveAsts,H.transformProviders,H.transformedHasViewContainer,I,q?null:M,a.sourceSpan)}if(q){var N=e(B,n),O=this._parseDirectives(this.selectorMatcher,N),P=this._createDirectiveAsts(!0,a.name,O,m,[],a.sourceSpan,[]),Q=this._createElementPropertyAsts(a.name,m,P);this._assertNoComponentsNorElementBindingsOnTemplate(P,Q,a.sourceSpan);var S=new z.ProviderElementContext(this.providerViewContext,b.providerContext,b.isTemplateElement,P,[],[],a.sourceSpan);S.afterElement(),J=new r.EmbeddedTemplateAst([],[],[],o,S.transformedDirectiveAsts,S.transformProviders,S.transformedHasViewContainer,[J],L,a.sourceSpan)}return J},a.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==C)e=a.value;else if(a.name.startsWith(D)){var f=a.name.substring(D.length);e=0==a.value.length?f:f+" "+a.value}if(k.isPresent(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h<g.length;h++){var i=g[h];i.keyIsVar?d.push(new r.VariableAst(i.key,i.name,a.sourceSpan)):k.isPresent(i.expression)?this._parsePropertyAst(i.key,i.expression,a.sourceSpan,b,c):(b.push([i.key,""]),this._parseLiteralAttr(i.key,null,a.sourceSpan,c))}return!0}return!1},a.prototype._parseAttr=function(a,b,c,d,e,f,g){var h=this._normalizeAttributeName(b.name),i=b.value,j=k.RegExpWrapper.firstMatch(A,h),l=!1;if(k.isPresent(j))if(l=!0,k.isPresent(j[1]))this._parseProperty(j[7],i,b.sourceSpan,c,d);else if(k.isPresent(j[2])){var m=j[7];a?(this._reportError('"var-" on <template> elements is deprecated. Use "let-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseVariable(m,i,b.sourceSpan,g)):(t
b.forEach(function(a){if(a instanceof f.Statement)a.visitStatement(c,d);else if(a instanceof f.Expression)a.visitExpression(c,d);else{if(!(a instanceof f.Type))throw new h.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("f"),g=a("13"),h=a("d"),i=a("24"),j="asset://debug/lib";b.debugOutputAstAsTypeScript=d;var k=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new l(a),f=i.EmitterVisitorContext.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}();b.TypeScriptEmitter=k;var l=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return e(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(f.StmtModifier.Final)?b.print("const"):b.print("var"),b.print(" "+a.name),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),g.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),g.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name),g.isPresent(a.type)?(b.print(":"),a.type.visitType(this,b)):b.print(": any"),b.println(";")},b.prototype._visitClassGetter=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print("get "+a.name+"()"),g.isPresent(a.type)&&(b.print(":"),a.type.visitType(this,b)),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print("constructor("),this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.constructorMethod.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){a.hasModifier(f.StmtModifier.Private)&&b.print("private "),b.print(a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" => {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),b.print("function "+a.name+"("),this._visitParams(a.params,b),b.print("):"),g.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+i.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[i.CATCH_STACK_VAR.set(i.CATC
for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(t.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(e(this.peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this.peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this.index-c.offset<b)throw this._createError(e(this.peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this.peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this.peek===J)return this._decodeEntity();var b=this.index;return this._advance(),this.input[b]},a.prototype._decodeEntity=function(){var a=this._getLocation();if(this._advance(),!this._attemptCharCode(I)){var b=this._savePosition();if(this._attemptCharCodeUntilFn(l),this.peek!=O)return this._restorePosition(b),"&";this._advance();var c=this.input.substring(a.offset+1,this.index-1),d=w.NAMED_ENTITIES[c];if(t.isBlank(d))throw this._createError(f(c),this._getSpan(a));return d}var g=this._attemptCharCode(ea)||this._attemptCharCode(_),h=this._getLocation().offset;if(this._attemptCharCodeUntilFn(k),this.peek!=O)throw this._createError(e(this.peek),this._getSpan());this._advance();var i=this.input.substring(h,this.index-1);try{var j=t.NumberWrapper.parseInt(i,g?16:10);return t.StringWrapper.fromCharCode(j)}catch(m){var n=this.input.substring(a.offset+1,this.index-1);throw this._createError(f(n),this._getSpan(a))}},a.prototype._consumeRawText=function(a,b,c){var d,e=this._getLocation();this._beginToken(a?x.ESCAPABLE_RAW_TEXT:x.RAW_TEXT,e);for(var f=[];;){if(d=this._getLocation(),this._attemptCharCode(b)&&c())break;for(this.index>d.offset&&f.push(this.input.substring(d.offset,this.index));this.peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(x.COMMENT_START,a),this._requireCharCode(L),this._endToken([]);var c=this._consumeRawText(!1,L,function(){return b._attemptStr("->")});this._beginToken(x.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(x.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,V,function(){return b._attemptStr("]>")});this._beginToken(x.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(x.DOC_TYPE,a),this._attemptUntilChar(T),this._advance(),this._endToken([this.input.substring(a.offset+2,this.index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this.index,b=null;this.peek!==Q&&!j(this.peek);)this._advance();var c;this.peek===Q?(this._advance(),b=this.input.substring(a,this.index-1),c=this.index):c=a,this._requireCharCodeUntilFn(i,this.index===c?1:0);var d=this.input.substring(c,this.index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!n(this.peek))throw this._createError(e(this.peek),this._getSpan());var d=this.index;for(this._consumeTagOpenStart(a),b=this.input.substring(d,this.index).toLowerCase(),this._attemptCharCodeUntilFn(g);this.peek!==M&&this.peek!==T;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(g),this._attemptCharCode(S)&&(this._attemptCharCodeUntilFn(g),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(g);this._consumeTagOpenEnd()}catch(f){if(f instanceof ha)return this._restorePosition(c),this._beginToken(x.TEXT,a),void this._endToken(["<"]);throw f}var h=w.getHtmlTagDefinition(b).contentType;h===w.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):h===w.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,R,function(){return c._attemptCharCode(M)?(c._attemptCharCodeUntilFn(g),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn(g),!!c._attemptCharCode(T)):!1)
pipes:b.pipes,encapsulation:b.encapsulation,styles:b.styles,styleUrls:b.styleUrls});this._throwMixingViewAndComponent("styleUrls",a)}return null},a.prototype._throwMixingViewAndComponent=function(a,b){throw new g.BaseException("Component '"+f.stringify(b)+"' cannot have both '"+a+"' and '@View' set at the same time\"")},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:e.ReflectorReader}],a}();return b.ViewResolver=i,c.exports}),a.registerDynamic("3c",["18","13"],!0,function(a,b,c){"use strict";function d(a,b){if(!(b instanceof f.Type))return!1;var c=b.prototype;switch(a){case e.LifecycleHooks.AfterContentInit:return!!c.ngAfterContentInit;case e.LifecycleHooks.AfterContentChecked:return!!c.ngAfterContentChecked;case e.LifecycleHooks.AfterViewInit:return!!c.ngAfterViewInit;case e.LifecycleHooks.AfterViewChecked:return!!c.ngAfterViewChecked;case e.LifecycleHooks.OnChanges:return!!c.ngOnChanges;case e.LifecycleHooks.DoCheck:return!!c.ngDoCheck;case e.LifecycleHooks.OnDestroy:return!!c.ngOnDestroy;case e.LifecycleHooks.OnInit:return!!c.ngOnInit;default:return!1}}var e=a("18"),f=a("13");return b.hasLifecycleHook=d,c.exports}),a.registerDynamic("3d",["13","d"],!0,function(a,b,c){"use strict";function d(a,b){if(e.assertionsEnabled()&&!e.isBlank(b)){if(!e.isArray(b))throw new f.BaseException("Expected '"+a+"' to be an array of strings.");for(var c=0;c<b.length;c+=1)if(!e.isString(b[c]))throw new f.BaseException("Expected '"+a+"' to be an array of strings.")}}var e=a("13"),f=a("d");return b.assertArrayOfStrings=d,c.exports}),a.registerDynamic("2f",["11","18","13","e","d","c","39","3a","3b","3c","10","3d","38"],!0,function(a,b,c){"use strict";function d(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.directives)&&f(a.directives,c),c}function e(a,b){var c=[];return o.isPresent(b)&&f(b,c),o.isPresent(a.pipes)&&f(a.pipes,c),c}function f(a,b){for(var c=0;c<a.length;c++){var d=m.resolveForwardRef(a[c]);o.isArray(d)?f(d,b):b.push(d)}}function g(a){return o.isStringMap(a)&&o.isPresent(a.name)&&o.isPresent(a.filePath)}function h(a){return g(a)||a instanceof o.Type}function i(a){return g(a)?a.filePath:null}function j(a,b,c){if(g(b))return i(b);if(o.isPresent(c.moduleId)){var d=c.moduleId,e=y.getUrlScheme(d);return o.isPresent(e)&&e.length>0?d:"package:"+d+w.MODULE_SUFFIX}return a.importUri(b)}function k(a){return w.visitValue(a,new B,null)}var l=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},m=a("11"),n=a("18"),o=a("13"),p=a("e"),q=a("d"),r=a("c"),s=a("39"),t=a("3a"),u=a("3b"),v=a("3c"),w=a("10"),x=a("3d"),y=a("38"),z=a("18"),A=function(){function a(a,b,c,d,e,f){this._directiveResolver=a,this._pipeResolver=b,this._viewResolver=c,this._platformDirectives=d,this._platformPipes=e,this._directiveCache=new Map,this._pipeCache=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0,o.isPresent(f)?this._reflector=f:this._reflector=m.reflector}return a.prototype.sanitizeTokenName=function(a){var b=o.stringify(a);if(b.indexOf("(")>=0){var c=this._anonymousTypes.get(a);o.isBlank(c)&&(this._anonymousTypes.set(a,this._anonymousTypeIndex++),c=this._anonymousTypes.get(a)),b="anonymous_token_"+c+"_"}return w.sanitizeIdentifier(b)},a.prototype.getDirectiveMetadata=function(a){var b=this._directiveCache.get(a);if(o.isBlank(b)){var c=this._directiveResolver.resolve(a),d=null,e=null,f=[],g=i(a);if(c instanceof m.ComponentMetadata){x.assertArrayOfStrings("styles",c.styles);var h=c,k=this._viewResolver.resolve(a);x.assertArrayOfStrings("styles",k.styles),d=new r.CompileTemplateMetadata({encapsulation:k.encapsulation,template:k.template,templateUrl:k.templateUrl,styles:k.styles,styleUrls:k.styleUrls}),e=h.changeDetection,o.isPresent(c.viewProviders)&&(f=this.getProvidersMetadata(c.viewProviders)),g=j(this._reflector,a,h)}var l=[];o.isPresent(c.providers)&&(l=this.getProvidersMetadata(c.providers));var p=[],q=[];o.isPresent(c.queries)&&(p=this.getQueriesMetadata(c.queries,!1),q=this.getQueriesMeta
}),this._queries.values().forEach(function(a){return a.forEach(function(a){return a.afterChildren(b.view.updateContentQueriesMethod)})})},b.prototype.addContentNode=function(a,b){this.contentNodesByNgContentIndex[a].push(b)},b.prototype.getComponent=function(){return i.isPresent(this.component)?this._instances.get(l.identifierToken(this.component.type)):null},b.prototype.getProviderTokens=function(){return this._resolvedProviders.values().map(function(a){return p.createDiTokenExpression(a.token)})},b.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;!d.isNull();)b=d._queries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b.filter(function(a){return a.meta.descendants||1>=e})),d._directives.length>0&&e++,d=d.parent;return b=this.view.componentView.viewQueries.get(a),i.isPresent(b)&&j.ListWrapper.addAll(c,b),c},b.prototype._addQuery=function(a,b){var c="_query_"+a.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,d=q.createQueryList(a,b,c,this.view),e=new q.CompileQuery(a,d,b,this.view);return q.addQueryToTokenMap(this._queries,e),e},b.prototype._getLocalDependency=function(a,b){var c=null;if(i.isBlank(c)&&i.isPresent(b.query)&&(c=this._addQuery(b.query,null).queryList),i.isBlank(c)&&i.isPresent(b.viewQuery)&&(c=q.createQueryList(b.viewQuery,null,"_viewQuery_"+b.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(c)),i.isPresent(b.token)){if(i.isBlank(c)&&b.token.equalsTo(l.identifierToken(l.Identifiers.ChangeDetectorRef)))return a===n.ProviderAstType.Component?this._compViewExpr.prop("ref"):p.getPropertyInView(k.THIS_EXPR.prop("ref"),this.view,this.view.componentView);i.isBlank(c)&&(c=this._instances.get(b.token))}return c},b.prototype._getDependency=function(a,b){var c=this,d=null;for(b.isValue&&(d=k.literal(b.value)),i.isBlank(d)&&!b.isSkipSelf&&(d=this._getLocalDependency(a,b));i.isBlank(d)&&!c.parent.isNull();)c=c.parent,d=c._getLocalDependency(n.ProviderAstType.PublicService,new o.CompileDiDependencyMetadata({token:b.token}));return i.isBlank(d)&&(d=p.injectFromViewParentInjector(b.token,b.isOptional)),i.isBlank(d)&&(d=k.NULL_EXPR),p.getPropertyInView(d,this.view,c.view)},b}(t);b.CompileElement=u;var v=function(){function a(a,b){this.query=a,this.read=i.isPresent(a.meta.read)?a.meta.read:b}return a}(),w=function(a){function b(){a.apply(this,arguments)}return g(b,a),b.prototype.visitArray=function(a,b){var c=this;return k.literalArr(a.map(function(a){return s.visitValue(a,c,b)}))},b.prototype.visitStringMap=function(a,b){var c=this,d=[];return j.StringMapWrapper.forEach(a,function(a,e){d.push([e,s.visitValue(a,c,b)])}),k.literalMap(d)},b.prototype.visitPrimitive=function(a,b){return k.literal(a)},b.prototype.visitOther=function(a,b){if(a instanceof o.CompileIdentifierMetadata)return k.importExpr(a);if(a instanceof k.Expression)return a;throw new h.BaseException("Illegal state: Don't now how to compile value "+a)},b}(s.ValueTransformer);return c.exports}),a.registerDynamic("40",["13","d","f","15"],!0,function(a,b,c){"use strict";function d(a,b,c){if(b===c)return a;for(var d=l.THIS_EXPR,e=b;e!==c&&j.isPresent(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new k.BaseException("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof l.ReadPropExpr){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return l.replaceVarInExpression(l.THIS_EXPR.name,d,a)}function e(a,b){var c=[g(a)];return b&&c.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",c)}function f(a,b){return"viewFactory_"+a.type.name+b}function g(a){return j.isPresent(a.value)?l.literal(a.value):a.identifierIsInstance?l.importExpr(a.identifier).instantiate([],l.importType(a.identifier,[],[l.TypeModifier.Const])):l.importExpr(a.identifier)}function h(a){for(var b=[],c=l.literalArr([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof l.ArrayType?(b.length>0&&(c=c.ca
var c=l.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(c),this.compileElement.view.createMethod.addStmt(c.set(a).toDeclStmt(l.FUNCTION_TYPE,[l.StmtModifier.Private]))},a.prototype.listenToDirective=function(a,b){var c=l.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var d=l.THIS_EXPR.callMethod("eventHandler",[l.THIS_EXPR.prop(this._methodName).callMethod(l.BuiltinMethod.bind,[l.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(l.BuiltinMethod.SubscribeObservable,[d])).toDeclStmt(null,[l.StmtModifier.Final]))},a}();return b.CompileEventListener=p,b.collectEventListeners=d,b.bindDirectiveOutputs=e,b.bindRenderOutputs=f,c.exports}),a.registerDynamic("f",["13"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new fa(a,b);return c.visitExpression(d,null)}function e(a){var b=new ga;return b.visitAllStatements(a,null),b.varNames}function f(a,b){return void 0===b&&(b=null),new y(a,b)}function g(a,b){return void 0===b&&(b=null),new G(a,null,b)}function h(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),o.isPresent(a)?new s(a,b,c):null}function i(a,b){return void 0===b&&(b=null),new F(a,b)}function j(a,b){return void 0===b&&(b=null),new P(a,b)}function k(a,b){return void 0===b&&(b=null),new Q(a,b)}function l(a){return new I(a)}function m(a,b,c){return void 0===c&&(c=null),new L(a,b,c)}var n=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},o=a("13");!function(a){a[a.Const=0]="Const"}(b.TypeModifier||(b.TypeModifier={}));var p=(b.TypeModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Type=p,function(a){a[a.Dynamic=0]="Dynamic",a[a.Bool=1]="Bool",a[a.String=2]="String",a[a.Int=3]="Int",a[a.Number=4]="Number",a[a.Function=5]="Function"}(b.BuiltinTypeName||(b.BuiltinTypeName={}));var q=b.BuiltinTypeName,r=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.name=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitBuiltintType(this,b)},b}(p);b.BuiltinType=r;var s=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,d),this.value=b,this.typeParams=c}return n(b,a),b.prototype.visitType=function(a,b){return a.visitExternalType(this,b)},b}(p);b.ExternalType=s;var t=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.of=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitArrayType(this,b)},b}(p);b.ArrayType=t;var u=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.valueType=b}return n(b,a),b.prototype.visitType=function(a,b){return a.visitMapType(this,b)},b}(p);b.MapType=u,b.DYNAMIC_TYPE=new r(q.Dynamic),b.BOOL_TYPE=new r(q.Bool),b.INT_TYPE=new r(q.Int),b.NUMBER_TYPE=new r(q.Number),b.STRING_TYPE=new r(q.String),b.FUNCTION_TYPE=new r(q.Function),function(a){a[a.Equals=0]="Equals",a[a.NotEquals=1]="NotEquals",a[a.Identical=2]="Identical",a[a.NotIdentical=3]="NotIdentical",a[a.Minus=4]="Minus",a[a.Plus=5]="Plus",a[a.Divide=6]="Divide",a[a.Multiply=7]="Multiply",a[a.Modulo=8]="Modulo",a[a.And=9]="And",a[a.Or=10]="Or",a[a.Lower=11]="Lower",a[a.LowerEquals=12]="LowerEquals",a[a.Bigger=13]="Bigger",a[a.BiggerEquals=14]="BiggerEquals"}(b.BinaryOperator||(b.BinaryOperator={}));var v=b.BinaryOperator,w=function(){function a(a){this.type=a}return a.prototype.prop=function(a){return new N(this,a)},a.prototype.key=function(a,b){return void 0===b&&(b=null),new O(this,a,b)},a.prototype.callMethod=function(a,b){return new C(this,a,b)},a.prototype.callFn=function(a){return new D(this,a)},a.prototype.instantiate=function(a,b){return void 0===b&&(b=null),new E(this,a,b)},a.prototype.conditional=function(a,b){return void 0===b&&(b=null),new H(this,a,b)},a.prototype.equals=function(a){return
}();b.CompileIdentifierMetadata=w;var x=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=n.normalizeBool(c),this.isSelf=n.normalizeBool(d),this.isHost=n.normalizeBool(e),this.isSkipSelf=n.normalizeBool(f),this.isOptional=n.normalizeBool(g),this.isValue=n.normalizeBool(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),query:h(b.query,D.fromJson),viewQuery:h(b.viewQuery,D.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:i(this.token),query:i(this.query),viewQuery:i(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}();b.CompileDiDependencyMetadata=x;var y=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=n.normalizeBlank(g),this.multi=n.normalizeBool(h)}return a.fromJson=function(b){return new a({token:h(b.token,A.fromJson),useClass:h(b.useClass,C.fromJson),useExisting:h(b.useExisting,A.fromJson),useValue:h(b.useValue,w.fromJson),useFactory:h(b.useFactory,z.fromJson),multi:b.multi,deps:f(b.deps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Provider",token:i(this.token),useClass:i(this.useClass),useExisting:i(this.useExisting),useValue:i(this.useValue),useFactory:i(this.useFactory),multi:this.multi,deps:g(this.deps)}},a}();b.CompileProviderMetadata=y;var z=function(){function a(a){var b=a.runtime,c=a.name,d=a.moduleUrl,e=a.prefix,f=a.diDeps,g=a.value;this.runtime=b,this.name=c,this.prefix=e,this.moduleUrl=d,this.diDeps=j(f),this.value=g}return Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a.fromJson=function(b){return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:b.value,diDeps:f(b.diDeps,x.fromJson)})},a.prototype.toJson=function(){return{"class":"Factory",name:this.name,prefix:this.prefix,moduleUrl:this.moduleUrl,value:this.value,diDeps:g(this.diDeps)}},a}();b.CompileFactoryMetadata=z;var A=function(){function a(a){var b=a.value,c=a.identifier,d=a.identifierIsInstance;this.value=b,this.identifier=c,this.identifierIsInstance=n.normalizeBool(d)}return a.fromJson=function(b){return new a({value:b.value,identifier:h(b.identifier,w.fromJson),identifierIsInstance:b.identifierIsInstance})},a.prototype.toJson=function(){return{value:this.value,identifier:i(this.identifier),identifierIsInstance:this.identifierIsInstance}},Object.defineProperty(a.prototype,"runtimeCacheKey",{get:function(){return n.isPresent(this.identifier)?this.identifier.runtime:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"assetCacheKey",{get:function(){return n.isPresent(this.identifier)?n.isPresent(this.identifier.moduleUrl)&&n.isPresent(s.getUrlScheme(this.identifier.moduleUrl))?this.identifier.name+"|"+this.identifier.moduleUrl+"|"+this.identifierIsInstance:null:this.value},enumerable:!0,configurable:!0}),a.prototype.equalsTo=function(a){var b=this.runtimeCacheKey,c=this.assetCacheKey;return n.isPresent(b)&&b==a.runtimeCacheKey||n.isPresent(c)&&c==a.assetCacheKey},Object.defineProperty(a.prototype,"name",{get:function(){return n.isPresent(this.value)?r.sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),a}();b.CompileTokenMetadata=A;var B=function(){function a(){this._valueMap=new Map,this._values=[]}return a.prototype.add=function(a,b){var c=this.get(a);if(n.isPresent(c))throw new o.BaseException("Can only add to a TokenMap! Token: "+a.name);this._values.push(b);var d=a.runtimeCacheKey;n.isPresent(d)&&this._valueMap.set(d,b);var e=a.assetCacheKey;n.isPresent(e)
var h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){void 0===b&&(b=null)},b}(f);b.EmptyExpr=h;var i=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitImplicitReceiver(this,b)},b}(f);b.ImplicitReceiver=i;var j=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitChain(this,b)},b}(f);b.Chain=j;var k=function(a){function b(b,c,d){a.call(this),this.condition=b,this.trueExp=c,this.falseExp=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitConditional(this,b)},b}(f);b.Conditional=k;var l=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyRead(this,b)},b}(f);b.PropertyRead=l;var m=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(f);b.PropertyWrite=m;var n=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(f);b.SafePropertyRead=n;var o=function(a){function b(b,c){a.call(this),this.obj=b,this.key=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(f);b.KeyedRead=o;var p=function(a){function b(b,c,d){a.call(this),this.obj=b,this.key=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(f);b.KeyedWrite=p;var q=function(a){function b(b,c,d){a.call(this),this.exp=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(f);b.BindingPipe=q;var r=function(a){function b(b){a.call(this),this.value=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(f);b.LiteralPrimitive=r;var s=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(f);b.LiteralArray=s;var t=function(a){function b(b,c){a.call(this),this.keys=b,this.values=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(f);b.LiteralMap=t;var u=function(a){function b(b,c){a.call(this),this.strings=b,this.expressions=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(f);b.Interpolation=u;var v=function(a){function b(b,c,d){a.call(this),this.operation=b,this.left=c,this.right=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(f);b.Binary=v;var w=function(a){function b(b){a.call(this),this.expression=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(f);b.PrefixNot=w;var x=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(f);b.MethodCall=x;var y=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(f);b.SafeMethodCall=y;var z=function(a){function b(b,c){a.call(this),this.target=b,this.args=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(f);b.FunctionCall=z;var A=function(a){function b(b,c,d){a.call(this),this.ast=b,this.source=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(f);b.ASTWithSource=A;var B=function(){function a(a,b,c,d){this.key=a,this.keyI
return a.visitElementProperty(this,b)},a}();b.BoundElementPropertyAst=i;var j=function(){function a(a,b,c,d){this.name=a,this.target=b,this.handler=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitEvent(this,b)},Object.defineProperty(a.prototype,"fullName",{get:function(){return e.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),a}();b.BoundEventAst=j;var k=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}();b.ReferenceAst=k;var l=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}();b.VariableAst=l;var m=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.ElementAst=m;var n=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}();b.EmbeddedTemplateAst=n;var o=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}();b.BoundDirectivePropertyAst=o;var p=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}();b.DirectiveAst=p;var q=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();b.ProviderAst=q,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(b.ProviderAstType||(b.ProviderAstType={}));var r=(b.ProviderAstType,function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}());b.NgContentAst=r,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style"}(b.PropertyBindingType||(b.PropertyBindingType={}));b.PropertyBindingType;return b.templateVisitAll=d,c.exports}),a.registerDynamic("1d",["e","13","d","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("e"),e=a("13"),f=a("d"),g="",h=e.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),i=function(){function a(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return a.parse=function(b){for(var c,g=[],i=function(a,b){b.notSelectors.length>0&&e.isBlank(b.element)&&d.ListWrapper.isEmpty(b.classNames)&&d.ListWrapper.isEmpty(b.attrs)&&(b.element="*"),a.push(b)},j=new a,k=e.RegExpWrapper.matcher(h,b),l=j,m=!1;e.isPresent(c=e.RegExpMatcherWrapper.next(k));){if(e.isPresent(c[1])){if(m)throw new f.BaseException("Nesting :not is not allowed in a selector");m=!0,l=new a,j.notSelectors.push(l)}if(e.isPresent(c[2])&&l.setElement(c[2]),e.isPresent(c[3])&&l.addClassName(c[3]),e.isPresent(c[4])&&l.addAttribute(c[4],c[5]),e.isPresent(c[6])&&(m=!1,l=j),e.isPresent(c[7])){if(m)throw new f.BaseException("Multiple selectors in :not are not supported");i(g,j),j=l=new a}}return i(g,j),g},a.prototype.isElementSelector=function(){return e.isPresent(this.element)&&d.ListWrapper.isEmpty(this.classNames)&&d.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},a.prototype.setElement=function(a){void 0===a&&(a=null),this.element=a},a.prototype.getMatchingElementTemplate=funct
void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=V;var W=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=W;var X=function(a){function b(b){a.call(this),this.message=b}return Q(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=X;var Y=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new X("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new X("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=Y,b.RegExp=R.RegExp;var Z=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new R.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=function(a,b){return a.lastIndex=0,a.test(b)},a.matcher=function(a,b){return a.lastIndex=0,{re:a,input:b}},a.replaceAll=function(a,b,c){var d=a.exec(b),e="";a.lastIndex=0;for(var f=0;d;)e+=b.substring(f,d.index),e+=c(d),f=d.index+d[0].length,a.lastIndex=f,d=a.exec(b);return e+=b.substring(f)},a}();b.RegExpWrapper=Z;var $=function(){function a(){}return a.next=function(a){return a.re.exec(a.input)},a}();b.RegExpMatcherWrapper=$;var _=function(){function a(){}return a.apply=function(a,b){return a.apply(null,b)},a}();b.FunctionWrapper=_,b.looseIdentical=z,b.getMapKey=A,b.normalizeBlank=B,b.normalizeBool=C,b.isJsObject=D,b.print=E,b.warn=F;var aa=function(){function a(){}return a.parse=function(a){return R.JSON.parse(a)},a.stringify=function(a){return R.JSON.stringify(a,null,2)},a}();b.Json=aa;var ba=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=ba,b.setValueOnPath=G;var ca=null;return b.getSymbolIterator=H,b.evalExpression=I,b.isPrimitive=J,b.hasConstructor=K,b.bitWiseOr=L,b.bitWiseAnd=M,b.escape=N,c.exports}),a.registerDynamic("56",["a","9","5"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("a"),f=a("9"),g=a("5"),h=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.prototype.get=function(a){var b=f.PromiseWrapper.completer(),c=new XMLHttpRequest;return c.open("GET",a,!0),c.responseType="text",c.onload=function(){var d=g.isPresent(c.response)?c.response:c.responseText,e=1223===c.status?204:c.status;0===e&&(e=d?200:0),e>=200&&300>=e?b.resolve(d):b.reject("Failed to load "+a,null)},c.onerror=function(){b.reject("Failed to load "+a,null)},c.send(),b.promise},b}(e.XHR);return b.XHRImpl=h,c.exports}),a.registerDynamic("57",["58","59","5a","5b","5c","5d","5e"],!0,function(a,b,c){"use strict";var d,e=a("58"),f=a("59"),g=a("5a"),h=a("5b"),i=a("5c"),j=a("5d"),k=a("5e");return function(a){function b(){return
2016-05-18 23:03:59 +03:00
get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("67",["11","6b","64"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("6b"),f=a("64");b.EVENT_MANAGER_PLUGINS=new d.OpaqueToken("EventManagerPlugins");var g=function(){function a(a,b){var c=this;this._zone=b,a.forEach(function(a){return a.manager=c}),this._plugins=f.ListWrapper.reversed(a)}return a.prototype.addEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addEventListener(a,b,c)},a.prototype.addGlobalEventListener=function(a,b,c){var d=this._findPluginFor(b);return d.addGlobalEventListener(a,b,c)},a.prototype.getZone=function(){return this._zone},a.prototype._findPluginFor=function(a){for(var b=this._plugins,c=0;c<b.length;c++){var d=b[c];if(d.supports(a))return d}throw new e.BaseException("No event manager plugin found for event "+a)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Inject,args:[b.EVENT_MANAGER_PLUGINS]}]},{type:d.NgZone}],a}();b.EventManager=g;var h=function(){function a(){}return a.prototype.supports=function(a){return!1},a.prototype.addEventListener=function(a,b,c){throw"not implemented"},a.prototype.addGlobalEventListener=function(a,b,c){throw"not implemented"},a}();return b.EventManagerPlugin=h,c.exports}),a.registerDynamic("72",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.DOCUMENT=new d.OpaqueToken("DocumentToken"),c.exports}),a.registerDynamic("78",["65"],!0,function(a,b,c){"use strict";function d(a){return f.StringWrapper.replaceAllMapped(a,g,function(a){return"-"+a[1].toLowerCase()})}function e(a){return f.StringWrapper.replaceAllMapped(a,h,function(a){return a[1].toUpperCase()})}var f=a("65"),g=/([A-Z])/g,h=/-([a-z])/g;return b.camelCaseToDashCase=d,b.dashCaseToCamelCase=e,c.exports}),a.registerDynamic("73",["11","58","65","6b","74","67","72","5d","78"],!0,function(a,b,c){"use strict";function d(a,b){var c=s.getDOM().parentElement(a);if(b.length>0&&n.isPresent(c)){var d=s.getDOM().nextSibling(a);if(n.isPresent(d))for(var e=0;e<b.length;e++)s.getDOM().insertBefore(d,b[e]);else for(var e=0;e<b.length;e++)s.getDOM().appendChild(c,b[e])}}function e(a,b){for(var c=0;c<b.length;c++)s.getDOM().appendChild(a,b[c])}function f(a){return function(b){var c=a(b);c===!1&&s.getDOM().preventDefault(b)}}function g(a){return n.StringWrapper.replaceAll(b.CONTENT_ATTR,A,a)}function h(a){return n.StringWrapper.replaceAll(b.HOST_ATTR,A,a)}function i(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];n.isArray(e)?i(a,e,c):(e=n.StringWrapper.replaceAll(e,A,a),c.push(e))}return c}function j(a){if("@"!=a[0])return[null,a];var b=n.RegExpWrapper.firstMatch(B,a);return[b[1],b[2]]}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("11"),m=a("58"),n=a("65"),o=a("6b"),p=a("74"),q=a("67"),r=a("72"),s=a("5d"),t=a("78"),u={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"},v="template bindings={}",w=/^template bindings=(.*)$/g,x=function(){function a(a,b,c,d){this.document=a,this.eventManager=b,this.sharedStylesHost=c,this.animate=d,this._registeredComponents=new Map}return a.prototype.renderComponent=function(a){var
directives:[o,j],inputs:["isArray","final","nestOdd","childFor","isRequestSchema"],detect:!0})(o)||o}(e),a("JsonSchema",o),p={general:{check:function(){return!0},inject:function(a,b,c){a._pointer=b._pointer||c,a._displayType=b.type,b.format&&(a._displayFormat="<"+b.format+">"),b["enum"]&&(a["enum"]=b["enum"].map(function(a){return{val:a,type:typeof a}}))}},discriminator:{check:function(a){return a.discriminator},inject:function(a,b,c){return void 0===b&&(b=a),function(){a.derived=f.instance().findDerivedDefinitions(c),a.discriminator=b.discriminator}()}},array:{check:function(a){return"array"===a.type},inject:function(a,c,d){return void 0===c&&(c=a),function(){a._isArray=!0,a._pointer=c.items._pointer||k.join(c._pointer||d,["items"]),b(a,c.items,d)}()}},object:{check:function(a){return"object"===a.type&&a.properties},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c=b._pointer&&k.baseName(b._pointer);a._displayType=b.title||c||"object"}()}},noType:{check:function(a){return!a.type},inject:function(a){a._displayType="< * >",a._displayTypeHint="This field may contain data of any type",a.isTrivial=!0}},simpleType:{check:function(a){return"object"===a.type?!(a.properties&&n(a.properties).length||"object"==typeof a.additionalProperties):"array"!==a.type&&a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){a.isTrivial=!0,a._pointer&&(a._pointer=void 0,a._displayType=b.title?b.title+" ("+b.type+")":b.type)}()}},integer:{check:function(a){return"integer"===a.type||"number"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c="";b.minimum&&b.maximum?(c+=b.exclusiveMinimum?"( ":"[ ",c+=b.minimum,c+=" .. ",c+=b.maximum,c+=b.exclusiveMaximum?" )":" ]"):b.maximum?(c+=b.exclusiveMaximum?"< ":"<= ",c+=b.maximum):b.minimum&&(c+=b.exclusiveMinimum?"> ":">= ",c+=b.minimum),c&&(a._range=c)}()}},string:{check:function(a){return"string"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c;b.minLength&&b.maxLength?c="[ "+b.minLength+" .. "+b.maxLength+" ]":b.maxLength?c="<= "+b.maxLength:b.minimum&&(c=">= "+b.minLength),c&&(a._range=c+" characters")}()}},file:{check:function(a){return"file"===a.type},inject:function(a,b,c,d){return void 0===b&&(b=a),function(){a.isFile=!0;var c=void 0;c="formData"===b["in"]?k.dirName(d,1):k.dirName(d,3);var e=f.instance().byPointer(c),g=f.instance().schema;a._produces=e&&e.produces||g.produces,a._consumes=e&&e.consumes||g.consumes}()}}}}}}),a.register("8e",["11","76","86","89","93","8a","8d"],function(a){function b(a,b){b.parentNode.insertBefore(a,b.nextSibling)}var c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){c=a.Component,d=a.ElementRef,e=a.ViewContainerRef,f=a.DynamicComponentLoader},function(a){g=a.CORE_DIRECTIVES},function(a){h=a.OptionsService},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.JsonSchema}],execute:function(){"use strict";m={},n=function(){function a(a,b,c,d,e){k(this,n),this.viewRef=b,this.elementRef=c,this.dcl=d,this.optionsService=e,this.schemaMgr=a}i(a,[{key:"normalizePointer",value:function(){var a=this.schemaMgr.byPointer(this.pointer);return a&&a.$ref||this.pointer}},{key:"load",value:function(){var a=this;this.optionsService.options.disableLazySchemas||this.loaded||(this.pointer&&this.dcl.loadNextToLocation(l,this.viewRef).then(function(b){a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChanges()}),this.loaded=!0)}},{key:"loadCached",value:function(){var a=this;this.pointer=this.normalizePointer(this.pointer),m[this.pointer]?m[this.pointer].then(function(c){setTimeout(function(){var d=c.location.nativeElement;return d.querySelector(".discriminator-wrap")?void a.dcl.loadNextToLocation(l,a.viewRef).then(function(b){a.initComponent(b),b.changeDetectorRef?b.changeDetectorRef.detectChanges():b.hostView.changeDetectorRef.detectChan
}).join("");var f={type:a.type,content:c.stringify(a.content,d,e),tag:"span",classes:["token",a.type],attributes:{},language:d,parent:e};if("comment"==f.type&&(f.attributes.spellcheck="true"),a.alias){var g="Array"===b.util.type(a.alias)?a.alias:[a.alias];Array.prototype.push.apply(f.classes,g)}b.hooks.run("wrap",f);var h="";for(var i in f.attributes)h+=(h?" ":"")+i+'="'+(f.attributes[i]||"")+'"';return"<"+f.tag+' class="'+f.classes.join(" ")+'" '+h+">"+f.content+"</"+f.tag+">"},!e.document)return e.addEventListener?(e.addEventListener("message",function(a){var c=JSON.parse(a.data),d=c.language,f=c.code,g=c.immediateClose;e.postMessage(b.highlight(f,b.languages[d],d)),g&&e.close()},!1),e.Prism):e.Prism;var d=document.getElementsByTagName("script");return d=d[d.length-1],d&&(b.filename=d.src,document.addEventListener&&!d.hasAttribute("data-manual")&&document.addEventListener("DOMContentLoaded",b.highlightAll)),e.Prism}();return"undefined"!=typeof c&&c.exports&&(c.exports=f),"undefined"!=typeof d&&(d.Prism=f),f.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},f.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),f.languages.xml=f.languages.markup,f.languages.html=f.languages.markup,f.languages.mathml=f.languages.markup,f.languages.svg=f.languages.markup,f.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},f.languages.css.atrule.inside.rest=f.util.clone(f.languages.css),f.languages.markup&&(f.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:f.languages.css,alias:"language-css"}}),f.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:f.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:f.languages.css}},alias:"language-css"}},f.languages.markup.tag)),f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},f.languages.javascript=f.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),f.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*
html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:k,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};n.bullet=/(?:[*+-]|\d+\.)/,n.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,n.item=j(n.item,"gm")(/bull/g,n.bullet)(),n.list=j(n.list)(/bull/g,n.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+n.def.source+")")(),n.blockquote=j(n.blockquote)("def",n.def)(),n._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",n.html=j(n.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,n._tag)(),n.paragraph=j(n.paragraph)("hr",n.hr)("heading",n.heading)("lheading",n.lheading)("blockquote",n.blockquote)("tag","<"+n._tag)("def",n.def)(),n.normal=l({},n),n.gfm=l({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=j(n.paragraph)("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|")(),n.tables=l({},n.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),a.rules=n,a.lex=function(b,c){var d=new a(c);return d.lex(b)},a.prototype.lex=function(a){return a=a.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(a,!0)},a.prototype.token=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,a=a.replace(/^ +$/gm,"");a;)if((f=this.rules.newline.exec(a))&&(a=a.substring(f[0].length),f[0].length>1&&this.tokens.push({type:"space"})),f=this.rules.code.exec(a))a=a.substring(f[0].length),f=f[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?f:f.replace(/\n+$/,"")});else if(f=this.rules.fences.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"code",lang:f[2],text:f[3]||""});else if(f=this.rules.heading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:f[1].length,text:f[2]});else if(b&&(f=this.rules.nptable.exec(a))){for(a=a.substring(f[0].length),i={type:"table",header:f[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:f[3].replace(/\n$/,"").split("\n")},k=0;k<i.align.length;k++)/^ *-+: *$/.test(i.align[k])?i.align[k]="right":/^ *:-+: *$/.test(i.align[k])?i.align[k]="center":/^ *:-+ *$/.test(i.align[k])?i.align[k]="left":i.align[k]=null;for(k=0;k<i.cells.length;k++)i.cells[k]=i.cells[k].split(/ *\| */);this.tokens.push(i)}else if(f=this.rules.lheading.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"heading",depth:"="===f[2]?1:2,text:f[1]});else if(f=this.rules.hr.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"hr"});else if(f=this.rules.blockquote.exec(a))a=a.substring(f[0].length),this.tokens.push({type:"blockquote_start"}),f=f[0].replace(/^ *> ?/gm,""),this.token(f,b,!0),this.tokens.push({type:"blockquote_end"});else if(f=this.rules.list.exec(a)){for(a=a.substring(f[0].length),g=f[2],this.tokens.push({type:"list_start",ordered:g.length>1}),f=f[0].match(this.rules.item),d=!1,l=f.length,k=0;l>k;k++)i=f[k],j=i.length,i=i.replace(/^ *([*+-]|\d+\.) +/,""),~i.indexOf("\n ")&&(j-=i.length,i=this.options.pedantic?i.replace(/^ {1,4}/gm,""):i.replace(new RegExp("^ {1,"+j+"}","gm"),"")),this.options.smartLists&&k!==l-1&&(h=n.bullet.exec(f[k+1])[0],g===h||g.length>1&&h.length>1||(a=f.slice(k+1).join("\n")+a,k=l-1)),e=d||/\n\n(?!\s*$)/.test(i),k!==l-1&&(d="\n"===i.charAt(i.length-1),e||(e=d)),this.tokens.push({type:e?"loose_item_start":"list_item_start"}),this.token(i,!1,c),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(f=this.rules.html.exec(a))a=a.substring(f[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.s
f.className="dk-selected "+e.className,f.innerHTML=e.text,this.selectedOptions[0]=a,e.selected=!0),this.selectedIndex=g.selectedIndex,this.value=g.value,b||this.data.select.dispatchEvent(new CustomEvent("change",{bubbles:this.data.settings.bubble})),a):void 0},selectOne:function(a,b){return this.reset(!0),this._scrollTo(a),this.select(a,b)},search:function(a,b){var c,d,e,f,g,h,i,j,k=this.data.select.options,l=[];if(!a)return this.options;for(b=b?b.toLowerCase():"strict",b="fuzzy"===b?2:"partial"===b?1:0,j=new RegExp((b?"":"^")+a,"i"),c=0;c<k.length;c++)if(e=k[c].text.toLowerCase(),2==b){for(d=a.toLowerCase().split(""),f=g=h=i=0;g<e.length;)e[g]===d[f]?(h+=1+h,f++):h=0,i+=h,g++;f===d.length&&l.push({e:this.options[c],s:i,i:c})}else j.test(e)&&l.push(this.options[c]);return 2===b&&(l=l.sort(function(a,b){return b.s-a.s||a.i-b.i}).reduce(function(a,b){return a[a.length]=b.e,a},[])),l},focus:function(){this.disabled||(this.multiple?this.data.elem:this.data.elem.children[0]).focus()},reset:function(a){var b,c=this.data.select;for(this.selectedOptions.length=0,b=0;b<c.options.length;b++)c.options[b].selected=!1,l.removeClass(this.options[b],"dk-option-selected"),this.options[b].setAttribute("aria-selected","false"),!a&&c.options[b].defaultSelected&&this.select(b,!0);this.selectedOptions.length||this.multiple||this.select(0,!0)},refresh:function(){this.dispose().init(this.data.select,this.data.settings)},dispose:function(){return delete i.cache[this.data.cacheID],this.data.elem.parentNode.removeChild(this.data.elem),this.data.select.removeAttribute("data-dkCacheId"),this},handleEvent:function(a){if(!this.disabled)switch(a.type){case"click":this._delegate(a);break;case"keydown":this._keyHandler(a);break;case"keypress":this._searchOptions(a);break;case"mouseover":this._highlight(a);break;case"reset":this.reset();break;case"change":this.data.settings.change.call(this)}},_delegate:function(b){var c,d,e,f,g=b.target;if(l.hasClass(g,"dk-option-disabled"))return!1;if(this.multiple){if(l.hasClass(g,"dk-option"))if(c=a.getSelection(),"Range"===c.type&&c.collapseToStart(),b.shiftKey)if(e=this.options.indexOf(this.selectedOptions[0]),f=this.options.indexOf(this.selectedOptions[this.selectedOptions.length-1]),d=this.options.indexOf(g),d>e&&f>d&&(d=e),d>f&&f>e&&(f=e),this.reset(!0),f>d)for(;f+1>d;)this.select(d++);else for(;d>f-1;)this.select(d--);else b.ctrlKey||b.metaKey?this.select(g):(this.reset(!0),this.select(g))}else this[this.isOpen?"close":"open"](),l.hasClass(g,"dk-option")&&this.select(g)},_highlight:function(a){var b,c=a.target;if(!this.multiple){for(b=0;b<this.options.length;b++)l.removeClass(this.options[b],"dk-option-highlight");l.addClass(this.data.elem.lastChild,"dk-select-options-highlight"),l.addClass(c,"dk-option-highlight")}},_keyHandler:function(a){var b,c,d=this.selectedOptions,e=this.options,f=1,g={tab:9,enter:13,esc:27,space:32,up:38,down:40};switch(a.keyCode){case g.up:f=-1;case g.down:if(a.preventDefault(),b=d[d.length-1],l.hasClass(this.data.elem.lastChild,"dk-select-options-highlight"))for(l.removeClass(this.data.elem.lastChild,"dk-select-options-highlight"),c=0;c<e.length;c++)l.hasClass(e[c],"dk-option-highlight")&&(l.removeClass(e[c],"dk-option-highlight"),b=e[c]);f=e.indexOf(b)+f,f>e.length-1?f=e.length-1:0>f&&(f=0),this.data.select.options[f].disabled||(this.reset(!0),this.select(f),this._scrollTo(f));break;case g.space:if(!this.isOpen){a.preventDefault(),this.open();break}case g.tab:case g.enter:for(f=0;f<e.length;f++)l.hasClass(e[f],"dk-option-highlight")&&this.select(f);case g.esc:this.isOpen&&(a.preventDefault(),this.close())}},_searchOptions:function(a){var b,c=this,e=String.fromCharCode(a.keyCode||a.which),f=function(){c.data.searchTimeout&&clearTimeout(c.data.searchTimeout),c.data.searchTimeout=setTimeout(function(){c.data.searchString=""},1e3)};this.data.searchString===d&&(this.data.searchString=""),f(),this.data.searchString+=e,b=this.search(this.data.searchString,this.data.settings.search),b.length&&(l.hasClass(b[0],"dk-option-disabled")||this.selectOne(b[0]))},_scrollTo:function(a){var b,c,d,e=th
get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return g.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return g.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return g.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControlGroup]",providers:[b.controlGroupProvider],inputs:["name: ngControlGroup"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:f.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_ASYNC_VALIDATORS]}]}],c}(f.ControlContainer);return b.NgControlGroup=i,c.exports}),a.registerDynamic("ce",["11","b3","ba","be","b4","c5","c8","c9"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("ba"),h=a("be"),i=a("b4"),j=a("c5"),k=a("c8"),l=a("c9");b.formDirectiveProvider={provide:j.ControlContainer,useExisting:e.forwardRef(function(){return m})};var m=function(a){function c(b,c){a.call(this),this._validators=b,this._asyncValidators=c,this.form=null,this.directives=[],this.ngSubmit=new i.EventEmitter}return d(c,a),c.prototype.ngOnChanges=function(a){if(this._checkFormPresent(),g.StringMapWrapper.contains(a,"form")){var b=k.composeValidators(this._validators);this.form.validator=l.Validators.compose([this.form.validator,b]);var c=k.composeAsyncValidators(this._asyncValidators);this.form.asyncValidator=l.Validators.composeAsync([this.form.asyncValidator,c]),this.form.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}this._updateDomValue()},Object.defineProperty(c.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),c.prototype.addControl=function(a){var b=this.form.find(a.path);k.setUpControl(b,a),b.updateValueAndValidity({emitEvent:!1}),this.directives.push(a)},c.prototype.getControl=function(a){return this.form.find(a.path)},c.prototype.removeControl=function(a){g.ListWrapper.remove(this.directives,a)},c.prototype.addControlGroup=function(a){var b=this.form.find(a.path);k.setUpControlGroup(b,a),b.updateValueAndValidity({emitEvent:!1})},c.prototype.removeControlGroup=function(a){},c.prototype.getControlGroup=function(a){return this.form.find(a.path)},c.prototype.updateModel=function(a,b){var c=this.form.find(a.path);c.updateValue(b)},c.prototype.onSubmit=function(){return i.ObservableWrapper.callEmit(this.ngSubmit,null),!1},c.prototype._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=a.form.find(b.path);b.valueAccessor.writeValue(c.value)})},c.prototype._checkFormPresent=function(){if(f.isBlank(this.form))throw new h.BaseException('ngFormModel expects a form. Please pass one in. Example: <form [ngFormModel]="myCoolForm">')},c.decorators=[{type:e.Directive,args:[{selector:"[ngFormModel]",bindings:[b.formDirectiveProvider],inputs:["form: ngFormModel"],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_VALIDATORS]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[l.NG_ASYNC_VALIDATORS]}]}],c}(j.ControlContainer);return b.NgFormModel=m,c.e
if(a instanceof g.Control||a instanceof g.ControlGroup||a instanceof g.ControlArray)return a;if(f.isArray(a)){var b=a[0],c=a.length>1?a[1]:null,d=a.length>2?a[2]:null;return this.control(b,c,d)}return this.control(a)},a.decorators=[{type:d.Injectable}],a}();return b.FormBuilder=h,c.exports}),a.registerDynamic("c7",["11"],!0,function(a,b,c){"use strict";var d=a("11");return b.NG_VALUE_ACCESSOR=new d.OpaqueToken("NgValueAccessor"),c.exports}),a.registerDynamic("cf",["b3","be"],!0,function(a,b,c){"use strict";var d=a("b3"),e=a("be"),f=function(){function a(){}return Object.defineProperty(a.prototype,"control",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{get:function(){return d.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return d.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errors",{get:function(){return d.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pristine",{get:function(){return d.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dirty",{get:function(){return d.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"touched",{get:function(){return d.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"untouched",{get:function(){return d.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),a}();return b.AbstractControlDirective=f,c.exports}),a.registerDynamic("c6",["be","cf"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("be"),f=a("cf"),g=function(a){function b(){a.apply(this,arguments),this.name=null,this.valueAccessor=null}return d(b,a),Object.defineProperty(b.prototype,"validator",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"asyncValidator",{get:function(){return e.unimplemented()},enumerable:!0,configurable:!0}),b}(f.AbstractControlDirective);return b.NgControl=g,c.exports}),a.registerDynamic("d5",["11","b3","ba","c7","c6"],!0,function(a,b,c){"use strict";var d=a("11"),e=a("b3"),f=a("ba"),g=a("c7"),h=a("c6");b.RADIO_VALUE_ACCESSOR={provide:g.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return k}),multi:!0};var i=function(){function a(){this._accessors=[]}return a.prototype.add=function(a,b){this._accessors.push([a,b])},a.prototype.remove=function(a){for(var b=-1,c=0;c<this._accessors.length;++c)this._accessors[c][1]===a&&(b=c);f.ListWrapper.removeAt(this._accessors,b)},a.prototype.select=function(a){this._accessors.forEach(function(b){b[0].control.root===a._control.control.root&&b[1]!==a&&b[1].fireUncheck()})},a.decorators=[{type:d.Injectable}],a}();b.RadioControlRegistry=i;var j=function(){function a(a,b){this.checked=a,this.value=b}return a}();b.RadioButtonState=j;var k=function(){function a(a,b,c,d){this._renderer=a,this._elementRef=b,this._registry=c,this._injector=d,this.onChange=function(){},this.onTouched=function(){}}return a.prototype.ngOnInit=function(){this._control=this._injector.get(h.NgControl),this._registry.add(this._control,this)},a.prototype.ngOnDestroy=function(){this._registry.remove(this)},a.prototype.writeValue=function(a){this._state=a,e.isPresent(a)&&a.checked&&this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",!0)},a.prototype.registerOnChange=function(a){var b=this;this._fn=a,this.onChange=function(){a(new j(!0,b._state.value)),b._registry.select(b)}},a.prototype.fireUncheck=function(){this.
b.unimplemented=e,c.exports}),a.registerDynamic("eb",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return Object.defineProperty(a.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),a}();return b.PlatformLocation=d,c.exports}),a.registerDynamic("ee",["11","b3","be","eb","e9","ea"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("11"),f=a("b3"),g=a("be"),h=a("eb"),i=a("e9"),j=a("ea"),k=function(a){function b(b,c){if(a.call(this),this._platformLocation=b,f.isBlank(c)&&(c=this._platformLocation.getBaseHrefFromDOM()),f.isBlank(c))throw new g.BaseException("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=c}return d(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.prepareExternalUrl=function(a){return j.Location.joinWithSlash(this._baseHref,a)},b.prototype.path=function(){return this._platformLocation.pathname+j.Location.normalizeQueryParams(this._platformLocation.search)},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+j.Location.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+j.Location.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b.decorators=[{type:e.Injectable}],b.ctorParameters=[{type:h.PlatformLocation},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[i.APP_BASE_HREF]}]}],b}(i.LocationStrategy);return b.PathLocationStrategy=k,c.exports}),a.registerDynamic("b3",[],!0,function(a,b,c){"use strict";function d(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function e(a){return a.name?a.name:typeof a}function f(){T=!0}function g(){if(T)throw"Cannot enable prod mode after platform setup.";S=!1}function h(){return S}function i(a){return void 0!==a&&null!==a}function j(a){return void 0===a||null===a}function k(a){return"boolean"==typeof a}function l(a){return"number"==typeof a}function m(a){return"string"==typeof a}function n(a){return"function"==typeof a}function o(a){return n(a)}function p(a){return"object"==typeof a&&null!==a}function q(a){return p(a)&&Object.getPrototypeOf(a)===U}function r(a){return a instanceof R.Promise}function s(a){return Array.isArray(a)}function t(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function u(){}function v(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function w(a){return a}function x(a,b){return a}function y(a,b){return a[b]}function z(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function A(a){return a}function B(a){return j(a)?null:a}function C(a){return j(a)?!1:a}function D(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function E(a){console.log(a)}function F(a){console.warn(a)}function G(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var f=d.shift();e=e.hasOwnProperty(f)&&i(e[f])?e[f]:e[f]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function H(){if(j(ca))if(i(O.Symbol)&&i(Symbol.iterator))ca=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(ca=c)}return ca}function I(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[]
"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){return(0,g["default"])(a),a.indexOf((0,i["default"])(b))>=0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("130"),i=d(h);return c.exports=b["default"],c.exports}),a.registerDynamic("131",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b,c){return(0,g["default"])(a),"[object RegExp]"!==Object.prototype.toString.call(b)&&(b=new RegExp(b,c)),b.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("132",["12c","133","134","135"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if((0,g["default"])(a),!a||a.length>=2083||/\s/.test(a))return!1;if(0===a.indexOf("mailto:"))return!1;b=(0,m["default"])(b,n);var c=void 0,d=void 0,e=void 0,f=void 0,h=void 0,j=void 0,l=void 0;if(l=a.split("#"),a=l.shift(),l=a.split("?"),a=l.shift(),l=a.split("://"),l.length>1){if(c=l.shift(),b.require_valid_protocol&&-1===b.protocols.indexOf(c))return!1}else{if(b.require_protocol)return!1;b.allow_protocol_relative_urls&&"//"===a.substr(0,2)&&(l[0]=a.substr(2))}return a=l.join("://"),l=a.split("/"),a=l.shift(),l=a.split("@"),l.length>1&&(d=l.shift(),d.indexOf(":")>=0&&d.split(":").length>2)?!1:(f=l.join("@"),l=f.split(":"),e=l.shift(),l.length&&(j=l.join(":"),h=parseInt(j,10),!/^[0-9]+$/.test(j)||0>=h||h>65535)?!1:(0,k["default"])(e)||(0,i["default"])(e,b)||"localhost"===e?b.host_whitelist&&-1===b.host_whitelist.indexOf(e)?!1:!b.host_blacklist||-1===b.host_blacklist.indexOf(e):!1)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("133"),i=d(h),j=a("134"),k=d(j),l=a("135"),m=d(l),n={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};return c.exports=b["default"],c.exports}),a.registerDynamic("136",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),h.test(a)}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;return c.exports=b["default"],c.exports}),a.registerDynamic("134",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"":arguments[1];if((0,g["default"])(a),b=String(b),!b)return e(a,4)||e(a,6);if("4"===b){if(!h.test(a))return!1;var c=a.split(".").sort(function(a,b){return a-b});return c[3]<=255}if("6"===b){var d=a.split(":"),f=!1,j=e(d[d.length-1],4),k=j?7:8;if(d.length>k)return!1;if("::"===a)return!0;"::"===a.substr(0,2)?(d.shift(),d.shift(),f=!0):"::"===a.substr(a.length-2)&&(d.pop(),d.pop(),f=!0);for(var l=0;l<d.length;++l)if(""===d[l]&&l>0&&l<d.length-1){if(f)return!1;f=!0}else if(j&&l===d.length-1);else if(!i.test(d[l]))return!1;return f?d.length>=1:d.length===k}return!1}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,i=/^[0-9A-F]{1,4}$/i;return c.exports=b["default"],c.exports}),a.registerDynamic("137",["12c"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){return(0,g["default"])(a),["true","false","1","0"].indexOf(a)>=0}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f);return c.exports=b["default"],c.exports}),a.registerDynamic("138",["12c","139"],!0,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a){var b=arguments.length<=1||void 0===arguments[1]?"en-US":arguments[1];if((0,g["default"])(a),b in h.alpha)return h.alpha[b].test(a);throw new Error("Invalid locale '"+b+"'")}Object.defineProperty(b,"__esModule",{value:!0}),b["default"]=e;var f=a("12c"),g=d(f),h=a("139");r
value:!0});var e=a("153"),f=d(e),g=a("147"),h=d(g),i=a("12b"),j=d(i),k=a("12d"),l=d(k),m=a("12e"),n=d(m),o=a("12f"),p=d(o),q=a("131"),r=d(q),s=a("167"),t=d(s),u=a("132"),v=d(u),w=a("136"),x=d(w),y=a("134"),z=d(y),A=a("133"),B=d(A),C=a("137"),D=d(C),E=a("138"),F=d(E),G=a("13a"),H=d(G),I=a("13b"),J=d(I),K=a("13c"),L=d(K),M=a("13d"),N=d(M),O=a("13e"),P=d(O),Q=a("13f"),R=d(Q),S=a("140"),T=d(S),U=a("141"),V=d(U),W=a("142"),X=d(W),Y=a("143"),Z=d(Y),$=a("144"),_=d($),aa=a("145"),ba=d(aa),ca=a("146"),da=d(ca),ea=a("14e"),fa=d(ea),ga=a("148"),ha=d(ga),ia=a("149"),ja=d(ia),ka=a("14a"),la=d(ka),ma=a("14b"),na=d(ma),oa=a("14c"),pa=d(oa),qa=a("166"),ra=d(qa),sa=a("14d"),ta=d(sa),ua=a("14f"),va=d(ua),wa=a("150"),xa=d(wa),ya=a("152"),za=d(ya),Aa=a("154"),Ba=d(Aa),Ca=a("155"),Da=d(Ca),Ea=a("156"),Fa=d(Ea),Ga=a("157"),Ha=d(Ga),Ia=a("158"),Ja=d(Ia),Ka=a("159"),La=d(Ka),Ma=a("15a"),Na=d(Ma),Oa=a("151"),Pa=d(Oa),Qa=a("15b"),Ra=d(Qa),Sa=a("15c"),Ta=d(Sa),Ua=a("15d"),Va=d(Ua),Wa=a("15e"),Xa=d(Wa),Ya=a("15f"),Za=d(Ya),$a=a("160"),_a=d($a),ab=a("161"),bb=d(ab),cb=a("162"),db=d(cb),eb=a("164"),fb=d(eb),gb=a("163"),hb=d(gb),ib=a("165"),jb=d(ib),kb=a("168"),lb=d(kb),mb=a("130"),nb=d(mb),ob="5.2.0",pb={version:ob,toDate:f["default"],toFloat:h["default"],toInt:j["default"],toBoolean:l["default"],equals:n["default"],contains:p["default"],matches:r["default"],isEmail:t["default"],isURL:v["default"],isMACAddress:x["default"],isIP:z["default"],isFQDN:B["default"],isBoolean:D["default"],isAlpha:F["default"],isAlphanumeric:H["default"],isNumeric:J["default"],isLowercase:L["default"],isUppercase:N["default"],isAscii:P["default"],isFullWidth:R["default"],isHalfWidth:T["default"],isVariableWidth:V["default"],isMultibyte:X["default"],isSurrogatePair:Z["default"],isInt:_["default"],isFloat:ba["default"],isDecimal:da["default"],isHexadecimal:fa["default"],isDivisibleBy:ha["default"],isHexColor:ja["default"],isJSON:la["default"],isNull:na["default"],isLength:pa["default"],isByteLength:ra["default"],isUUID:ta["default"],isMongoId:va["default"],isDate:xa["default"],isAfter:za["default"],isBefore:Ba["default"],isIn:Da["default"],isCreditCard:Fa["default"],isISIN:Ha["default"],isISBN:Ja["default"],isMobilePhone:La["default"],isCurrency:Na["default"],isISO8601:Pa["default"],isBase64:Ra["default"],isDataURI:Ta["default"],ltrim:Va["default"],rtrim:Xa["default"],trim:Za["default"],escape:_a["default"],unescape:bb["default"],stripLow:db["default"],whitelist:fb["default"],blacklist:hb["default"],isWhitelisted:jb["default"],normalizeEmail:lb["default"],toString:nb["default"]};return b["default"]=pb,c.exports=b["default"],c.exports}),a.registerDynamic("16a",["169"],!0,function(a,b,c){return c.exports=a("169"),c.exports}),a.registerDynamic("16b",["16a"],!0,function(a,b,c){var d=a("16a"),e={date:function(a){if("string"!=typeof a)return!0;var b=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(a);return null===b?!1:!(b[2]<"01"||b[2]>"12"||b[3]<"01"||b[3]>"31")},"date-time":function(a){if("string"!=typeof a)return!0;var b=a.toLowerCase().split("t");if(!e.date(b[0]))return!1;var c=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(b[1]);return null===c?!1:!(c[1]>"23"||c[2]>"59"||c[3]>"59")},email:function(a){return"string"!=typeof a?!0:d.isEmail(a,{require_tld:!0})},hostname:function(a){if("string"!=typeof a)return!0;var b=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(a);if(b){if(a.length>255)return!1;for(var c=a.split("."),d=0;d<c.length;d++)if(c[d].length>63)return!1}return b},"host-name":function(a){return e.hostname.call(this,a)},ipv4:function(a){return"string"!=typeof a?!0:d.isIP(a,4)},ipv6:function(a){return"string"!=typeof a?!0:d.isIP(a,6)},regex:function(a){try{return RegExp(a),!0}catch(b){return!1}},uri:function(a){return this.options.strictUris?e["strict-uri"].apply(this,arguments):"string"!=typeof a||RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?").test(a)},"strict-uri":function(a){return"string"!=typeof a||d.isURL(a)}};return c.exports=e,c.exports}),a.registerDynamic("16c",["16b","1
if(this.options.noTypeless===!0){if(void 0!==b.type){var k=[];Array.isArray(b.anyOf)&&(k=k.concat(b.anyOf)),Array.isArray(b.oneOf)&&(k=k.concat(b.oneOf)),Array.isArray(b.allOf)&&(k=k.concat(b.allOf)),k.forEach(function(a){a.type||(a.type=b.type)})}void 0===b["enum"]&&void 0===b.type&&void 0===b.anyOf&&void 0===b.oneOf&&void 0===b.not&&void 0===b.$ref&&a.addError("KEYWORD_UNDEFINED_STRICT",["type"])}for(var l=Object.keys(b),m=l.length;m--;){var n=l[m];0!==n.indexOf("__")&&(void 0!==h[n]?h[n].call(this,a,b):c||this.options.noExtraKeywords===!0&&a.addError("KEYWORD_UNEXPECTED",[n]))}if(this.options.pedanticCheck===!0){if(b["enum"]){var o=g.clone(b);for(delete o["enum"],delete o["default"],a.path.push("enum"),m=b["enum"].length;m--;)a.path.push(m.toString()),e.validate.call(this,a,o,b["enum"][m]),a.path.pop();a.path.pop()}b["default"]&&(a.path.push("default"),e.validate.call(this,a,b,b["default"]),a.path.pop())}var p=a.isValid();return p&&(b.__$validated=!0),p},c.exports}),a.registerDynamic("12a",[],!0,function(a,b,c){"use strict";return b.isAbsoluteUri=function(a){return/^https?:\/\//.test(a)},b.isRelativeUri=function(a){return/.+#/.test(a)},b.whatIs=function(a){var b=typeof a;return"object"===b?null===a?"null":Array.isArray(a)?"array":"object":"number"===b?Number.isFinite(a)?a%1===0?"integer":"number":Number.isNaN(a)?"not-a-number":"unknown-number":b},b.areEqual=function d(a,c){if(a===c)return!0;var e,f;if(Array.isArray(a)&&Array.isArray(c)){if(a.length!==c.length)return!1;for(f=a.length,e=0;f>e;e++)if(!d(a[e],c[e]))return!1;return!0}if("object"===b.whatIs(a)&&"object"===b.whatIs(c)){var g=Object.keys(a),h=Object.keys(c);if(!d(g,h))return!1;for(f=g.length,e=0;f>e;e++)if(!d(a[g[e]],c[g[e]]))return!1;return!0}return!1},b.isUniqueArray=function(a,c){var d,e,f=a.length;for(d=0;f>d;d++)for(e=d+1;f>e;e++)if(b.areEqual(a[d],a[e]))return c&&c.push(d,e),!1;return!0},b.difference=function(a,b){for(var c=[],d=a.length;d--;)-1===b.indexOf(a[d])&&c.push(a[d]);return c},b.clone=function(a){if("undefined"!=typeof a){if("object"!=typeof a||null===a)return a;var b,c;if(Array.isArray(a))for(b=[],c=a.length;c--;)b[c]=a[c];else{b={};var d=Object.keys(a);for(c=d.length;c--;){var e=d[c];b[e]=a[e]}}return b}},b.cloneDeep=function(a){function b(a){if("object"!=typeof a||null===a)return a;var e,f,g;if(g=c.indexOf(a),-1!==g)return d[g];if(c.push(a),Array.isArray(a))for(e=[],d.push(e),f=a.length;f--;)e[f]=b(a[f]);else{e={},d.push(e);var h=Object.keys(a);for(f=h.length;f--;){var i=h[f];e[i]=b(a[i])}}return e}var c=[],d=[];return b(a)},b.ucs2decode=function(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d},c.exports}),a.registerDynamic("172",[],!0,function(a,b,c){return c.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{"default":0}]},simpleTypes:{"enum":["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},"default":{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean","default":!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean","default":!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],"default":{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],"default":{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueIte
type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string","enum":["oauth2"]},flow:{type:"string","enum":["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string","enum":["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string","enum":["csv","ssv","tsv","pipes"],"default":"csv"},collectionFormatWithMulti:{type:"string","enum":["csv","ssv","tsv","pipes","multi"],"default":"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},"default":{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},"enum":{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}},c.exports}),a.registerDynamic("177",["178","179","175","176"],!0,function(a,b,c){"use strict";function d(a){g.debug("Validating against the Swagger 2.0 schema");var b=i.validate(a,j);if(!b){var c=i.getLastError(),d="Swagger schema validation failed. \n"+f(c.details);throw h.syntax(c,{details:c.details},d)}g.debug(" Validated successfully")}function e(){i=new i({breakOnFirstError:!0,noExtraKeywords:!0,ignoreUnknownFormats:!1,reportPathAsArray:!0})}function f(a,b){b=b||" ";var c="";return a.forEach(function(a,d){c+=g.format("%s%s at #/%s\n",b,a.message,a.path.join("/")),a.inner&&(c+=f(a.inner,b+" "))}),c}var g=a("178"),h=a("179"),i=a("175"),j=a("176");return c.exports=d,e(),c.exports}),a.registerDynamic("17a",[],!0,function(a,b,c){return c.exports=["get","put","post","delete",
if(c.length)throw new Error("calling transform done when ws.length != 0");if(d.transforming)throw new Error("calling transform done when still transforming");return a.push(null)}c.exports=f;var h=a("194"),i=a("198");i.inherits=a("191"),i.inherits(f,h),f.prototype.push=function(a,b){return this._transformState.needTransform=!1,h.prototype.push.call(this,a,b)},f.prototype._transform=function(a,b,c){throw new Error("not implemented")},f.prototype._write=function(a,b,c){var d=this._transformState;if(d.writecb=c,d.writechunk=a,d.writeencoding=b,!d.transforming){var e=this._readableState;(d.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark)}},f.prototype._read=function(a){var b=this._transformState;null!==b.writechunk&&b.writecb&&!b.transforming?(b.transforming=!0,this._transform(b.writechunk,b.writeencoding,b.afterTransform)):b.needTransform=!0}}(a("22")),c.exports}),a.registerDynamic("19f",["19e","198","191"],!0,function(a,b,c){"use strict";function d(a){return this instanceof d?void e.call(this,a):new d(a)}c.exports=d;var e=a("19e"),f=a("198");return f.inherits=a("191"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)},c.exports}),a.registerDynamic("1a0",["193","19d","194","19e","19f","22"],!0,function(a,b,c){return function(d){var e=function(){try{return a("stream")}catch(b){}}();b=c.exports=a("193"),b.Stream=e||b,b.Readable=b,b.Writable=a("19d"),b.Duplex=a("194"),b.Transform=a("19e"),b.PassThrough=a("19f"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(c.exports=e)}(a("22")),c.exports}),a.registerDynamic("192",["1a0"],!0,function(a,b,c){return c.exports=a("1a0"),c.exports}),a.registerDynamic("1a1",["185"],!0,function(a,b,c){return function(b){var b=a("185").Buffer;c.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(b.isBuffer(a)){for(var c=new Uint8Array(a.length),d=a.length,e=0;d>e;e++)c[e]=a[e];return c.buffer}throw new Error("Argument must be a Buffer")}}(a("185").Buffer),c.exports}),a.registerDynamic("1a2",["1a1"],!0,function(a,b,c){return c.exports=a("1a1"),c.exports}),a.registerDynamic("1a3",["18f","191","190","192","1a2","185","22"],!0,function(a,b,c){var d=this;return function(b,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{var b=a.status;return null!==b&&0!==b}catch(c){return!1}}var h=a("18f"),i=a("191"),j=a("190"),k=a("192"),l=a("1a2"),m=j.IncomingMessage,n=j.readyStates,o=c.exports=function(a){var c=this;k.Writable.call(c),c._opts=a,c._body=[],c._headers={},a.auth&&c.setHeader("Authorization","Basic "+new b(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(b){c.setHeader(b,a.headers[b])});var d;if("prefer-streaming"===a.mode)d=!1;else if("allow-wrong-content-type"===a.mode)d=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");d=!0}c._mode=f(d),c.on("finish",function(){c._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();-1===p.indexOf(d)&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var c,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(c=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):b.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:c,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit
function c(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}function d(a){return"boolean"==typeof a}function e(a){return null===a}function f(a){return null==a}function g(a){return"number"==typeof a}function h(a){return"string"==typeof a}function i(a){return"symbol"==typeof a}function j(a){return void 0===a}function k(a){return"[object RegExp]"===q(a)}function l(a){return"object"==typeof a&&null!==a}function m(a){return"[object Date]"===q(a)}function n(a){return"[object Error]"===q(a)||a instanceof Error}function o(a){return"function"==typeof a}function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function q(a){return Object.prototype.toString.call(a)}b.isArray=c,b.isBoolean=d,b.isNull=e,b.isNullOrUndefined=f,b.isNumber=g,b.isString=h,b.isSymbol=i,b.isUndefined=j,b.isRegExp=k,b.isObject=l,b.isDate=m,b.isError=n,b.isFunction=o,b.isPrimitive=p,b.isBuffer=a.isBuffer}(a("185").Buffer),c.exports}),a.registerDynamic("198",["1bb"],!0,function(a,b,c){return c.exports=a("1bb"),c.exports}),a.registerDynamic("1b0",["1af","198","191"],!0,function(a,b,c){function d(a){return this instanceof d?void e.call(this,a):new d(a)}c.exports=d;var e=a("1af"),f=a("198");return f.inherits=a("191"),f.inherits(d,e),d.prototype._transform=function(a,b,c){c(null,a)},c.exports}),a.registerDynamic("1bc",["1b0"],!0,function(a,b,c){return c.exports=a("1b0"),c.exports}),a.registerDynamic("1b1",["197","191","1ab","1b2","1b3","1b4","1bc"],!0,function(a,b,c){function d(){e.call(this)}c.exports=d;var e=a("197").EventEmitter,f=a("191");return f(d,e),d.Readable=a("1ab"),d.Writable=a("1b2"),d.Duplex=a("1b3"),d.Transform=a("1b4"),d.PassThrough=a("1bc"),d.Stream=d,d.prototype.pipe=function(a,b){function c(b){a.writable&&!1===a.write(b)&&j.pause&&j.pause()}function d(){j.readable&&j.resume&&j.resume()}function f(){k||(k=!0,a.end())}function g(){k||(k=!0,"function"==typeof a.destroy&&a.destroy())}function h(a){if(i(),0===e.listenerCount(this,"error"))throw a}function i(){j.removeListener("data",c),a.removeListener("drain",d),j.removeListener("end",f),j.removeListener("close",g),j.removeListener("error",h),a.removeListener("error",h),j.removeListener("end",i),j.removeListener("close",i),a.removeListener("close",i)}var j=this;j.on("data",c),a.on("drain",d),a._isStdio||b&&b.end===!1||(j.on("end",f),j.on("close",g));var k=!1;return j.on("error",h),a.on("error",h),j.on("end",i),j.on("close",i),a.on("close",i),a.emit("pipe",j),a},c.exports}),a.registerDynamic("1bd",["1b1"],!0,function(a,b,c){return c.exports=a("1b1"),c.exports}),a.registerDynamic("1be",["1bd"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("stream"):b("1bd"),d.exports}),a.registerDynamic("1bf",["1be"],!0,function(a,b,c){return c.exports=a("1be"),c.exports}),a.registerDynamic("1c0",["1bf","17e"],!0,function(a,b,c){function d(a){for(var b=a.getAllResponseHeaders().split(/\r?\n/),c={},d=0;d<b.length;d++){var e=b[d];if(""!==e){var f=e.match(/^([^:]+):\s*(.*)/);if(f){var g=f[1].toLowerCase(),h=f[2];void 0!==c[g]?i(c[g])?c[g].push(h):c[g]=[c[g],h]:c[g]=h}else c[e]=!0}}return c}var e=a("1bf"),f=a("17e"),g=c.exports=function(a){this.offset=0,this.readable=!0};f.inherits(g,e);var h={streaming:!0,status2:!0};g.prototype.getResponse=function(a){var b=String(a.responseType).toLowerCase();return"blob"===b?a.responseBlob||a.response:"arraybuffer"===b?a.response:a.responseText},g.prototype.getHeader=function(a){return this.headers[a.toLowerCase()]},g.prototype.handle=function(a){if(2===a.readyState&&h.status2){try{this.statusCode=a.status,this.headers=d(a)}catch(b){h.status2=!1}h.status2&&this.emit("ready")}else if(h.streaming&&3===a.readyState){try{this.statusCode||(this.statusCode=a.status,this.headers=d(a),this.emit("ready"))}catch(b){}try{this._emitData(a)}catch(b){h.streaming=!1}}else 4===a.readyState&&(this.statusCode||(this.statusCode=a.status,this.emit("ready")),this._emitData(a),a.error?this.emit("error",this.getResponse(a)):this.emit("end"),this.emit("close"))},g.prototype._emitData=function(a){va
f(h))break}else{if(a.position===a.lineStart&&v(a)||c&&g(p))break;if(d(p)){if(m=a.line,n=a.lineStart,o=a.lineIndent,u(a,!1,-1),a.lineIndent>=b){l=!0,p=a.input.charCodeAt(a.position);continue}a.position=k,a.line=m,a.lineStart=n,a.lineIndent=o;break}}l&&(q(a,j,k,!1),w(a,a.line-m),j=k=a.position,l=!1),e(p)||(k=a.position+1),p=a.input.charCodeAt(++a.position)}return q(a,j,k,!1),a.result?!0:(a.kind=r,a.result=s,!1)}function y(a,b){var c,e,f;if(c=a.input.charCodeAt(a.position),39!==c)return!1;for(a.kind="scalar",a.result="",a.position++,e=f=a.position;0!==(c=a.input.charCodeAt(a.position));)if(39===c){if(q(a,e,a.position,!0),c=a.input.charCodeAt(++a.position),39!==c)return!0;e=f=a.position,a.position++}else d(c)?(q(a,e,f,!0),w(a,u(a,!1,b)),e=f=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a single quoted scalar"):(a.position++,f=a.position);o(a,"unexpected end of the stream within a single quoted scalar")}function z(a,b){var c,e,f,g,j,k;if(k=a.input.charCodeAt(a.position),34!==k)return!1;for(a.kind="scalar",a.result="",a.position++,c=e=a.position;0!==(k=a.input.charCodeAt(a.position));){if(34===k)return q(a,c,a.position,!0),a.position++,!0;if(92===k){if(q(a,c,a.position,!0),k=a.input.charCodeAt(++a.position),d(k))u(a,!1,b);else if(256>k&&ea[k])a.result+=fa[k],a.position++;else if((j=i(k))>0){for(f=j,g=0;f>0;f--)k=a.input.charCodeAt(++a.position),(j=h(k))>=0?g=(g<<4)+j:o(a,"expected hexadecimal character");a.result+=l(g),a.position++}else o(a,"unknown escape sequence");c=e=a.position}else d(k)?(q(a,c,e,!0),w(a,u(a,!1,b)),c=e=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a double quoted scalar"):(a.position++,e=a.position)}o(a,"unexpected end of the stream within a double quoted scalar")}function A(a,b){var c,d,e,g,h,i,j,k,l,m,n,p=!0,q=a.tag,r=a.anchor,t={};if(n=a.input.charCodeAt(a.position),91===n)g=93,j=!1,d=[];else{if(123!==n)return!1;g=125,j=!0,d={}}for(null!==a.anchor&&(a.anchorMap[a.anchor]=d),n=a.input.charCodeAt(++a.position);0!==n;){if(u(a,!0,b),n=a.input.charCodeAt(a.position),n===g)return a.position++,a.tag=q,a.anchor=r,a.kind=j?"mapping":"sequence",a.result=d,!0;p||o(a,"missed comma between flow collection entries"),l=k=m=null,h=i=!1,63===n&&(e=a.input.charCodeAt(a.position+1),f(e)&&(h=i=!0,a.position++,u(a,!0,b))),c=a.line,H(a,b,U,!1,!0),l=a.tag,k=a.result,u(a,!0,b),n=a.input.charCodeAt(a.position),!i&&a.line!==c||58!==n||(h=!0,n=a.input.charCodeAt(++a.position),u(a,!0,b),H(a,b,U,!1,!0),m=a.result),j?s(a,d,t,l,k,m):h?d.push(s(a,null,t,l,k,m)):d.push(k),u(a,!0,b),n=a.input.charCodeAt(a.position),44===n?(p=!0,n=a.input.charCodeAt(++a.position)):p=!1}o(a,"unexpected end of the stream within a flow collection")}function B(a,b){var c,f,g,h,i=Y,k=!1,l=!1,m=b,n=0,p=!1;if(h=a.input.charCodeAt(a.position),124===h)f=!1;else{if(62!==h)return!1;f=!0}for(a.kind="scalar",a.result="";0!==h;)if(h=a.input.charCodeAt(++a.position),43===h||45===h)Y===i?i=43===h?$:Z:o(a,"repeat of a chomping mode identifier");else{if(!((g=j(h))>=0))break;0===g?o(a,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?o(a,"repeat of an indentation width identifier"):(m=b+g-1,l=!0)}if(e(h)){do h=a.input.charCodeAt(++a.position);while(e(h));if(35===h)do h=a.input.charCodeAt(++a.position);while(!d(h)&&0!==h)}for(;0!==h;){for(t(a),a.lineIndent=0,h=a.input.charCodeAt(a.position);(!l||a.lineIndent<m)&&32===h;)a.lineIndent++,h=a.input.charCodeAt(++a.position);if(!l&&a.lineIndent>m&&(m=a.lineIndent),d(h))n++;else{if(a.lineIndent<m){i===$?a.result+=O.repeat("\n",k?1+n:n):i===Y&&k&&(a.result+="\n");break}for(f?e(h)?(p=!0,a.result+=O.repeat("\n",k?1+n:n)):p?(p=!1,a.result+=O.repeat("\n",n+1)):0===n?k&&(a.result+=" "):a.result+=O.repeat("\n",n):a.result+=O.repeat("\n",k?1+n:n),k=!0,l=!0,n=0,c=a.position;!d(h)&&0!==h;)h=a.input.charCodeAt(++a.position);q(a,c,a.position,!1)}}return!0}function C(a,b){var c,d,e,g=a.tag,h=a.anchor,i=[],j=!1;for(null!==a.anchor&&(a.anchorMap[a.anchor]=i),e=a.input.charCodeAt(a.position);0!==e&&45===e&&(d=a.input.charCodeAt(a.posit
if("/"!==b[b.length-d.length-1])return!1}return!0}function e(a){var b=a,c=/\/([gim]*)$/.exec(a),d="";return"/"===b[0]&&(c&&(d=c[1]),b=b.slice(1,b.length-d.length-1)),new RegExp(b,d)}function f(a){var b="/"+a.source+"/";return a.global&&(b+="g"),a.multiline&&(b+="m"),a.ignoreCase&&(b+="i"),b}function g(a){return"[object RegExp]"===Object.prototype.toString.call(a)}var h=a("1de");return c.exports=new h("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("1de",["1d9"],!0,function(a,b,c){"use strict";function d(a){var b={};return null!==a&&Object.keys(a).forEach(function(c){a[c].forEach(function(a){b[String(a)]=c})}),b}function e(a,b){if(b=b||{},Object.keys(b).forEach(function(b){if(-1===g.indexOf(b))throw new f('Unknown option "'+b+'" is met in definition of "'+a+'" YAML type.')}),this.tag=a,this.kind=b.kind||null,this.resolve=b.resolve||function(){return!0},this.construct=b.construct||function(a){return a},this.instanceOf=b.instanceOf||null,this.predicate=b.predicate||null,this.represent=b.represent||null,this.defaultStyle=b.defaultStyle||null,this.styleAliases=d(b.styleAliases||null),-1===h.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}var f=a("1d9"),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],h=["scalar","sequence","mapping"];return c.exports=e,c.exports}),a.registerDynamic("1f1",["1de"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;try{var b="("+a+")",c=h.parse(b,{range:!0});return"Program"===c.type&&1===c.body.length&&"ExpressionStatement"===c.body[0].type&&"FunctionExpression"===c.body[0].expression.type}catch(d){return!1}}function e(a){var b,c="("+a+")",d=h.parse(c,{range:!0}),e=[];if("Program"!==d.type||1!==d.body.length||"ExpressionStatement"!==d.body[0].type||"FunctionExpression"!==d.body[0].expression.type)throw new Error("Failed to resolve function");return d.body[0].expression.params.forEach(function(a){e.push(a.name)}),b=d.body[0].expression.body.range,new Function(e,c.slice(b[0]+1,b[1]-1))}function f(a){return a.toString()}function g(a){return"[object Function]"===Object.prototype.toString.call(a)}var h;try{var i=a;h=i("esprima")}catch(j){"undefined"!=typeof window&&(h=window.esprima)}var k=a("1de");return c.exports=new k("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("1db",["1dd","1da","1ef","1f0","1f1"],!0,function(a,b,c){"use strict";var d=a("1dd");return c.exports=d.DEFAULT=new d({include:[a("1da")],explicit:[a("1ef"),a("1f0"),a("1f1")]}),c.exports}),a.registerDynamic("1d9",[],!0,function(a,b,c){"use strict";function d(a,b){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=a,this.mark=b,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}return d.prototype=Object.create(Error.prototype),d.prototype.constructor=d,d.prototype.toString=function(a){var b=this.name+": ";return b+=this.reason||"(unknown reason)",!a&&this.mark&&(b+=" "+this.mark.toString()),b},c.exports=d,c.exports}),a.registerDynamic("1f2",["1d8","1dc","1de","1dd","1e2","1e7","1e8","1da","1db","1d9"],!0,function(a,b,c){"use strict";function d(a){return function(){throw new Error("Function "+a+" is deprecated and cannot be used.")}}var e=a("1d8"),f=a("1dc");return c.exports.Type=a("1de"),c.exports.Schema=a("1dd"),c.exports.FAILSAFE_SCHEMA=a("1e2"),c.exports.JSON_SCHEMA=a("1e7"),c.exports.CORE_SCHEMA=a("1e8"),c.exports.DEFAULT_SAFE_SCHEMA=a("1da"),c.exports.DEFAULT_FULL_SCHEMA=a("1db"),c.exports.load=e.load,c.exports.loadAll=e.loadAll,c.exports.safeLoad=e.safeLoad,c.exports.safeLoadAll=e.safeLoadAll,c.exports.dump=f.dump,c.exports.safeDump=f.safeDump,c.exports.YAMLException=a("1d9"),c.exports.MINIMAL_SCHEMA=a("1e2"),c.exports.SAFE_SCHEMA=a("1da"),c.exports.DEFAULT_SCHEMA=a("1db"),c.exports.scan=d("scan"),c.exports.parse=d("parse")
}return a}}(a("185").Buffer),c.exports}),a.registerDynamic("200",[],!0,function(a,b,c){return c.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8},c.exports}),a.registerDynamic("201",[],!0,function(a,b,c){return"function"==typeof Object.create?c.exports=function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:c.exports=function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a},c.exports}),a.registerDynamic("191",["201"],!0,function(a,b,c){return c.exports=a("201"),c.exports}),a.registerDynamic("202",["200","191","22"],!0,function(a,b,c){var d=this;return function(c){function e(a,c){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(c)?d.showHidden=c:c&&b._extend(d,c),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,c,d){if(a.customInspect&&c&&A(c.inspect)&&c.inspect!==b.inspect&&(!c.constructor||c.constructor.prototype!==c)){var e=c.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,c);if(f)return f;var g=Object.keys(c),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(c)),z(c)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(c);if(0===g.length){if(A(c)){var q=c.name?": "+c.name:"";return a.stylize("[Function"+q+"]","special")}if(w(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(y(c))return a.stylize(Date.prototype.toString.call(c),"date");if(z(c))return k(c)}var r="",s=!1,u=["{","}"];if(o(c)&&(s=!0,u=["[","]"]),A(c)){var v=c.name?": "+c.name:"";r=" [Function"+v+"]"}if(w(c)&&(r=" "+RegExp.prototype.toString.call(c)),y(c)&&(r=" "+Date.prototype.toUTCString.call(c)),z(c)&&(r=" "+k(c)),0===g.length&&(!s||0==c.length))return u[0]+r+u[1];if(0>d)return w(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var x;return x=s?l(a,c,d,p,g):g.map(function(b){return m(a,c,d,p,b,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return n
}),a.registerDynamic("21e",["21d"],!0,function(a,b,c){return c.exports={"default":a("21d"),__esModule:!0},c.exports}),a.registerDynamic("88",["21b","21e"],!0,function(a,b,c){"use strict";var d=a("21b")["default"],e=a("21e")["default"];return b["default"]=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=d(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(e?e(a,b):a.__proto__=b)},b.__esModule=!0,c.exports}),a.registerDynamic("21f",[],!0,function(a,b,c){var d=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return c.exports=function(a,b,c){if("[object Function]"!==e.call(b))throw new TypeError("iterator must be a function");var f=a.length;if(f===+f)for(var g=0;f>g;g++)b.call(c,a[g],g,a);else for(var h in a)d.call(a,h)&&b.call(c,a[h],h,a)},c.exports}),a.registerDynamic("220",["21f"],!0,function(a,b,c){return c.exports=a("21f"),c.exports}),a.registerDynamic("221",["220"],!0,function(a,b,c){"use strict";function d(a,b,c){if(3===arguments.length)return d.set(a,b,c);if(2===arguments.length)return d.get(a,b);var e=d.bind(d,a);for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f].bind(e,a));return e}var e=a("220");return c.exports=d,d.get=function(a,b){for(var c,e=d.parse(b);e.length;){if(c=e.shift(),!(c in a))throw new Error("Invalid reference token: "+c);a=a[c]}return a},d.set=function(a,b,c){for(var e,f=d.parse(b),g=f[0];f.length>1;)e=f.shift(),"-"===e&&Array.isArray(a)&&(e=a.length),g=f[0],e in a||(g.match(/^(\d+|-)$/)?a[e]=[]:a[e]={}),a=a[e];return"-"===g&&Array.isArray(a)&&(g=a.length),a[g]=c,this},d.remove=function(a,b){var c=d.parse(b),e=c.pop();if(void 0===e)throw new Error('Invalid JSON pointer for remove: "'+b+'"');delete d.get(a,d.compile(c))[e]},d.dict=function(a,b){var c={};return d.walk(a,function(a,b){c[b]=a},b),c},d.walk=function(a,b,c){var f=[];c=c||function(a){var b=Object.prototype.toString.call(a);return"[object Object]"===b||"[object Array]"===b},function g(a){e(a,function(a,e){f.push(String(e)),c(a)?g(a):b(a,d.compile(f)),f.pop()})}(a)},d.has=function(a,b){try{d.get(a,b)}catch(c){return!1}return!0},d.escape=function(a){return a.toString().replace(/~/g,"~0").replace(/\//g,"~1")},d.unescape=function(a){return a.replace(/~1/g,"/").replace(/~0/g,"~")},d.parse=function(a){if(""===a)return[];if("/"!==a.charAt(0))throw new Error("Invalid JSON pointer: "+a);return a.substring(1).split(/\//).map(d.unescape)},d.compile=function(a){return 0===a.length?"":"/"+a.map(d.escape).join("/")},c.exports}),a.registerDynamic("222",["221"],!0,function(a,b,c){return c.exports=a("221"),c.exports}),a.register("91",["87","88","89","92","222","8a"],function(a){var b,c,d,e,f,g,h;return{setters:[function(a){b=a["default"]},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]}],execute:function(){"use strict";h=function(a){function e(){g(this,e),b(Object.getPrototypeOf(e.prototype),"constructor",this).apply(this,arguments)}return c(e,a),d(e,null,[{key:"baseName",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?1:arguments[1],c=e.parse(a);return c[c.length-b]}},{key:"dirName",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?1:arguments[1],c=e.parse(a);return e.compile(c.slice(0,c.length-b))}},{key:"parse",value:function(a){var b=a;return"#"===b.charAt(0)&&(b=b.substring(1)),f._origParse(b)}},{key:"join",value:function(a,b){var c=e.parse(a),d=c.concat(b);return e.compile(d)}}]),e}(f),a("JsonPointer",h),f._origParse=f.parse,f.parse=h.parse,e(h,f),a("default",h)}}}),a.register("223",["224"],function(a){var b,c;return{setters:[function(a){b=a["default"]}],execute:function(){"use strict";c=new b(["get","put","post","delete","options","head","patch"]),a("methods",c)}}}),a.register("93",["89","91","116","124","214","223","8a","8f","aa"],function(a){var b,c,d,e,f,g,h,i,j,k;return{setters:[function(a){b=a["default"]},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["d
return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("245",["64","65","5d"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("64"),f=a("65"),g=a("5d"),h=function(a){function b(){var b=this;a.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var c=this.createElement("div",this.defaultDoc());if(f.isPresent(this.getStyle(c,"animationName")))this._animationPrefix="";else for(var d=["Webkit","Moz","O","ms"],g=0;g<d.length;g++)if(f.isPresent(this.getStyle(c,d[g]+"AnimationName"))){this._animationPrefix="-"+d[g].toLowerCase()+"-";break}var h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};e.StringMapWrapper.forEach(h,function(a,d){f.isPresent(b.getStyle(c,d))&&(b._transitionEnd=a)})}catch(i){this._animationPrefix=null,this._transitionEnd=null}}return d(b,a),b.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()},b.prototype.resolveAndSetHref=function(a,b,c){a.href=null==c?b:b+"/../"+c},b.prototy
c.exports}),a.registerDynamic("25f",["260"],!0,function(a,b,c){"use strict";var d=a("260");return b.ChangeDetectionStrategy=d.ChangeDetectionStrategy,b.ChangeDetectorRef=d.ChangeDetectorRef,b.WrappedValue=d.WrappedValue,b.SimpleChange=d.SimpleChange,b.DefaultIterableDiffer=d.DefaultIterableDiffer,b.IterableDiffers=d.IterableDiffers,b.KeyValueDiffers=d.KeyValueDiffers,b.CollectionChangeRecord=d.CollectionChangeRecord,b.KeyValueChangeRecord=d.KeyValueChangeRecord,c.exports}),a.registerDynamic("261",["262"],!0,function(a,b,c){"use strict";var d=a("262");return b.PLATFORM_DIRECTIVES=new d.OpaqueToken("Platform Directives"),b.PLATFORM_PIPES=new d.OpaqueToken("Platform Pipes"),c.exports}),a.registerDynamic("263",["264","265","266","267","268"],!0,function(a,b,c){"use strict";function d(){return f.reflector}var e=a("264"),f=a("265"),g=a("266"),h=a("267"),i=a("268");return b.PLATFORM_COMMON_PROVIDERS=[i.PLATFORM_CORE_PROVIDERS,{provide:f.Reflector,useFactory:d,deps:[]},{provide:g.ReflectorReader,useExisting:f.Reflector},h.TestabilityRegistry,e.Console],c.exports}),a.registerDynamic("269",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b){this.error=a,this.stackTrace=b}return a}();b.NgZoneError=d;var e=function(){function a(a){var b=this,c=a.trace,e=a.onEnter,f=a.onLeave,g=a.setMicrotask,h=a.setMacrotask,i=a.onError;if(this.onEnter=e,this.onLeave=f,this.setMicrotask=g,this.setMacrotask=h,this.onError=i,!Zone)throw new Error("Angular requires Zone.js polyfill.");this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(a,c,d,e,f,g){try{return b.onEnter(),a.invokeTask(d,e,f,g)}finally{b.onLeave()}},onInvoke:function(a,c,d,e,f,g,h){try{return b.onEnter(),a.invoke(d,e,f,g,h)}finally{b.onLeave()}},onHasTask:function(a,c,d,e){a.hasTask(d,e),c==d&&("microTask"==e.change?b.setMicrotask(e.microTask):"macroTask"==e.change&&b.setMacrotask(e.macroTask))},onHandleError:function(a,c,e,f){return a.handleError(e,f),b.onError(new d(f,f.stack)),!1}})}return a.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},a.prototype.runInner=function(a){return this.inner.run(a)},a.prototype.runInnerGuarded=function(a){return this.inner.runGuarded(a)},a.prototype.runOuter=function(a){return this.outer.run(a)},a}();return b.NgZoneImpl=e,c.exports}),a.registerDynamic("250",["255","269","a9","22"],!0,function(a,b,c){return function(c){"use strict";var d=a("255"),e=a("269"),f=a("a9"),g=a("269");b.NgZoneError=g.NgZoneError;var h=function(){function a(a){var b=this,c=a.enableLongStackTrace,f=void 0===c?!1:c;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new d.EventEmitter(!1),this._onMicrotaskEmpty=new d.EventEmitter(!1),this._onStable=new d.EventEmitter(!1),this._onErrorEvents=new d.EventEmitter(!1),this._zoneImpl=new e.NgZoneImpl({trace:f,onEnter:function(){b._nesting++,b._isStable&&(b._isStable=!1,b._onUnstable.emit(null))},onLeave:function(){b._nesting--,b._checkStable()},setMicrotask:function(a){b._hasPendingMicrotasks=a,b._checkStable()},setMacrotask:function(a){b._hasPendingMacrotasks=a},onError:function(a){return b._onErrorEvents.emit(a)}})}return a.isInAngularZone=function(){return e.NgZoneImpl.isInAngularZone()},a.assertInAngularZone=function(){if(!e.NgZoneImpl.isInAngularZone())throw new f.BaseException("Expected to be in Angular Zone, but it is not!")},a.assertNotInAngularZone=function(){if(e.NgZoneImpl.isInAngularZone())throw new f.BaseException("Expected to not be in Angular Zone, but it is!")},a.prototype._checkStable=function(){var a=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return a._onStable.emit(null)})}finally{this._isStable=!0}}},Object.defineProp
this.isStopped||(this.isStopped=!0,this._complete())},b.prototype.unsubscribe=function(){this.isUnsubscribed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))},b.prototype._next=function(a){this.destination.next(a)},b.prototype._error=function(a){this.destination.error(a),this.unsubscribe()},b.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},b.prototype[g.$$rxSubscriber]=function(){return this},b}(f.Subscription);b.Subscriber=i;var j=function(a){function b(b,c,d,f){a.call(this),this._parent=b;var g,h=this;e.isFunction(c)?g=c:c&&(h=c,g=c.next,d=c.error,f=c.complete,e.isFunction(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this)),this._context=h,this._next=g,this._error=d,this._complete=f}return d(b,a),b.prototype.next=function(a){if(!this.isStopped&&this._next){var b=this._parent;b.syncErrorThrowable?this.__tryOrSetError(b,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}},b.prototype.error=function(a){if(!this.isStopped){var b=this._parent;if(this._error)b.syncErrorThrowable?(this.__tryOrSetError(b,this._error,a),this.unsubscribe()):(this.__tryOrUnsub(this._error,a),this.unsubscribe());else{if(!b.syncErrorThrowable)throw this.unsubscribe(),a;b.syncErrorValue=a,b.syncErrorThrown=!0,this.unsubscribe()}}},b.prototype.complete=function(){if(!this.isStopped){var a=this._parent;this._complete?a.syncErrorThrowable?(this.__tryOrSetError(a,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},b.prototype.__tryOrUnsub=function(a,b){try{a.call(this._context,b)}catch(c){throw this.unsubscribe(),c}},b.prototype.__tryOrSetError=function(a,b,c){try{b.call(this._context,c)}catch(d){return a.syncErrorValue=d,a.syncErrorThrown=!0,!0}return!1},b.prototype._unsubscribe=function(){var a=this._parent;this._context=null,this._parent=null,a.unsubscribe()},b}(i);return c.exports}),a.registerDynamic("278",[],!0,function(a,b,c){"use strict";var d=this,e={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};b.root=e[typeof self]&&self||e[typeof window]&&window;var f=(e[typeof b]&&b&&!b.nodeType&&b,e[typeof c]&&c&&!c.nodeType&&c,e[typeof d]&&d);return!f||f.global!==f&&f.window!==f||(b.root=f),c.exports}),a.registerDynamic("277",["278"],!0,function(a,b,c){"use strict";var d=a("278"),e=d.root.Symbol;return b.$$rxSubscriber="function"==typeof e&&"function"==typeof e["for"]?e["for"]("rxSubscriber"):"@@rxSubscriber",c.exports}),a.registerDynamic("281",["276","277"],!0,function(a,b,c){"use strict";function d(a,b,c){if(a&&"object"==typeof a){if(a instanceof e.Subscriber)return a;if("function"==typeof a[f.$$rxSubscriber])return a[f.$$rxSubscriber]()}return new e.Subscriber(a,b,c)}var e=a("276"),f=a("277");return b.toSubscriber=d,c.exports}),a.registerDynamic("36",["278","279","281"],!0,function(a,b,c){"use strict";var d=a("278"),e=a("279"),f=a("281"),g=function(){function a(a){this._isScalar=!1,a&&(this._subscribe=a)}return a.prototype.lift=function(b){var c=new a;return c.source=this,c.operator=b,c},a.prototype.subscribe=function(a,b,c){var d=this.operator,e=f.toSubscriber(a,b,c);if(e.add(d?d.call(e,this):this._subscribe(e)),e.syncErrorThrowable&&(e.syncErrorThrowable=!1,e.syncErrorThrown))throw e.syncErrorValue;return e},a.prototype.forEach=function(a,b){var c=this;if(b||(d.root.Rx&&d.root.Rx.config&&d.root.Rx.config.Promise?b=d.root.Rx.config.Promise:d.root.Promise&&(b=d.root.Promise)),!b)throw new Error("no Promise impl found");return new b(function(b,d){var e=c.subscribe(function(b){if(e)try{a(b)}catch(c){d(c),e.unsubscribe()}else a(b)},d,b)})},a.prototype._subscribe=function(a){return this.source.subscribe(a)},a.prototype[e.$$observable]=function(){return this},a.create=function(b){return new a(b)},a}();return b.Observable=g,c.exports}),a.registerDynamic("255",["9c","271","33","34","35","36"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.p
this.map.set(b,c)),c.add(a)},a.prototype.get=function(a,b){void 0===b&&(b=null);var c=f.getMapKey(a),d=this.map.get(c);return f.isBlank(d)?null:d.get(a,b)},a.prototype.remove=function(a){var b=f.getMapKey(a.trackById),c=this.map.get(b);return c.remove(a)&&this.map["delete"](b),a},Object.defineProperty(a.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),a.prototype.clear=function(){this.map.clear()},a.prototype.toString=function(){return"_DuplicateMap("+f.stringify(this.map)+")"},a}();return c.exports}),a.registerDynamic("28c",["9c","a9","254","262"],!0,function(a,b,c){"use strict";var d=a("9c"),e=a("a9"),f=a("254"),g=a("262"),h=function(){function a(a){this.factories=a}return a.create=function(b,c){if(d.isPresent(c)){var e=f.ListWrapper.clone(c.factories);return b=b.concat(e),new a(b)}return new a(b)},a.extend=function(b){return new g.Provider(a,{useFactory:function(c){if(d.isBlank(c))throw new e.BaseException("Cannot extend KeyValueDiffers without a parent injector");return a.create(b,c)},deps:[[a,new g.SkipSelfMetadata,new g.OptionalMetadata]]})},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(d.isPresent(b))return b;throw new e.BaseException("Cannot find a differ supporting object '"+a+"'")},a}();return b.KeyValueDiffers=h,c.exports}),a.registerDynamic("28d",["254","9c","a9"],!0,function(a,b,c){"use strict";var d=a("254"),e=a("9c"),f=a("a9"),g=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||e.isJsObject(a)},a.prototype.create=function(a){return new h},a}();b.DefaultKeyValueDifferFactory=g;var h=function(){function a(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),a.prototype.forEachItem=function(a){var b;for(b=this._mapHead;null!==b;b=b._next)a(b)},a.prototype.forEachPreviousItem=function(a){var b;for(b=this._previousMapHead;null!==b;b=b._nextPrevious)a(b)},a.prototype.forEachChangedItem=function(a){var b;for(b=this._changesHead;null!==b;b=b._nextChanged)a(b)},a.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;null!==b;b=b._nextAdded)a(b)},a.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;null!==b;b=b._nextRemoved)a(b)},a.prototype.diff=function(a){if(e.isBlank(a)&&(a=d.MapWrapper.createFromPairs([])),!(a instanceof Map||e.isJsObject(a)))throw new f.BaseException("Error trying to diff '"+a+"'");return this.check(a)?this:null},a.prototype.onDestroy=function(){},a.prototype.check=function(a){var b=this;this._reset();var c=this._records,d=this._mapHead,f=null,g=null,h=!1;return this._forEach(a,function(a,j){var k;null!==d&&j===d.key?(k=d,e.looseIdentical(a,d.currentValue)||(d.previousValue=d.currentValue,d.currentValue=a,b._addToChanges(d))):(h=!0,null!==d&&(d._next=null,b._removeFromSeq(f,d),b._addToRemovals(d)),c.has(j)?k=c.get(j):(k=new i(j),c.set(j,k),k.currentValue=a,b._addToAdditions(k))),h&&(b._isInRemovals(k)&&b._removeFromRemovals(k),null==g?b._mapHead=k:g._next=k),f=d,g=k,d=null===d?null:d._next}),this._truncate(f,d),this.isDirty},a.prototype._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},a.prototype._truncate=function(a,b){for(;null!==b;){null===a?this._mapHead=null:a._next=null;var c=b._next;this._addToRemovals(b),a=b,b=c}for(var d=this._removalsHead;null!==d;d=d._nextRemoved)d.previousValue=d.currentValue,d.currentValue=nul
var l=a("291");b.NoProviderError=l.NoProviderError,b.AbstractProviderError=l.AbstractProviderError,b.CyclicDependencyError=l.CyclicDependencyError,b.InstantiationError=l.InstantiationError,b.InvalidProviderError=l.InvalidProviderError,b.NoAnnotationError=l.NoAnnotationError,b.OutOfBoundsError=l.OutOfBoundsError;var m=a("297");return b.OpaqueToken=m.OpaqueToken,c.exports}),a.registerDynamic("26b",["262","9c"],!0,function(a,b,c){"use strict";function d(){return""+e()+e()+e()}function e(){return g.StringWrapper.fromCharCode(97+g.Math.floor(25*g.Math.random()))}var f=a("262"),g=a("9c");return b.APP_ID=new f.OpaqueToken("AppId"),b.APP_ID_RANDOM_PROVIDER={provide:b.APP_ID,useFactory:d,deps:[]},b.PLATFORM_INITIALIZER=new f.OpaqueToken("Platform Initializer"),b.APP_INITIALIZER=new f.OpaqueToken("Application Initializer"),b.PACKAGE_ROOT_URL=new f.OpaqueToken("Application Packages Root URL"),c.exports}),a.registerDynamic("26f",["288","9c","254","a9","285","25e","260","252","26b","26a","28f"],!0,function(a,b,c){"use strict";function d(a){return e(a,[])}function e(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d instanceof A.AppElement){var f=d;if(b.push(f.nativeElement),x.isPresent(f.nestedViews))for(var g=0;g<f.nestedViews.length;g++)e(f.nestedViews[g].rootNodesOrAppElements,b)}else b.push(d)}return b}function f(a,b){var c;if(x.isBlank(a))c=I;else if(a.length<b){var d=a.length;c=y.ListWrapper.createFixedSize(b);for(var e=0;b>e;e++)c[e]=d>e?a[e]:I}else c=a;return c}function g(a,b,c,d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u){switch(a){case 1:return b+h(c)+d;case 2:return b+h(c)+d+h(e)+f;case 3:return b+h(c)+d+h(e)+f+h(g)+i;case 4:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k;case 5:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m;case 6:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o;case 7:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q;case 8:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q+h(r)+s;case 9:return b+h(c)+d+h(e)+f+h(g)+i+h(j)+k+h(l)+m+h(n)+o+h(p)+q+h(r)+s+h(t)+u;default:throw new z.BaseException("Does not support more than 9 expressions")}}function h(a){return null!=a?a.toString():""}function i(a,b,c){if(a){if(!C.devModeEqual(b,c))throw new B.ExpressionChangedAfterItHasBeenCheckedException(b,c,null);return!1}return!x.looseIdentical(b,c)}function j(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(!x.looseIdentical(a[c],b[c]))return!1;return!0}function k(a,b){var c=y.StringMapWrapper.keys(a),d=y.StringMapWrapper.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],!x.looseIdentical(a[e],b[e]))return!1;return!0}function l(a,b){return a}function m(a){var b,c;return c=G.uninitialized,function(d){return x.looseIdentical(c,d)||(c=d,b=a(d)),b}}function n(a){var b,c,d;return c=d=G.uninitialized,function(e,f){return x.looseIdentical(c,e)&&x.looseIdentical(d,f)||(c=e,d=f,b=a(e,f)),b}}function o(a){var b,c,d,e;return c=d=e=G.uninitialized,function(f,g,h){return x.looseIdentical(c,f)&&x.looseIdentical(d,g)&&x.looseIdentical(e,h)||(c=f,d=g,e=h,b=a(f,g,h)),b}}function p(a){var b,c,d,e,f;return c=d=e=f=G.uninitialized,function(g,h,i,j){return x.looseIdentical(c,g)&&x.looseIdentical(d,h)&&x.looseIdentical(e,i)&&x.looseIdentical(f,j)||(c=g,d=h,e=i,f=j,b=a(g,h,i,j)),b}}function q(a){var b,c,d,e,f,g;return c=d=e=f=g=G.uninitialized,function(h,i,j,k,l){return x.looseIdentical(c,h)&&x.looseIdentical(d,i)&&x.looseIdentical(e,j)&&x.looseIdentical(f,k)&&x.looseIdentical(g,l)||(c=h,d=i,e=j,f=k,g=l,b=a(h,i,j,k,l)),b}}function r(a){var b,c,d,e,f,g,h;return c=d=e=f=g=h=G.uninitialized,function(i,j,k,l,m,n){return x.looseIdentical(c,i)&&x.looseIdentical(d,j)&&x.looseIdentical(e,k)&&x.looseIdentical(f,l)&&x.looseIdentical(g,m)&&x.looseIdentical(h,n)||(c=i,d=j,e=k,f=l,g=m,h=n,b=a(i,j,k,l,m,n)),b}}function s(a){var b,c,d,e,f,g,h,i;return c=d=e=f=g=h=i=G.uninitialized,function(j,k,l,m,n,o,p){return x.looseIdentical(c,j)&&x.looseIdentical(d,k)&&x.looseIdentical(e,l)&&x.looseIdentical(f,m)&&x.looseIdentical(g,n)&&x.looseIdentical(h,o)&&x.looseIdentical(i,p)||(c=j,d=k,e=l,f=m,g=n,h=o,i=p,b=a(j,k,l,m,n,o,p)),b}}f
}catch(b){return null}},a.prototype._findOriginalException=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a.originalException;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException;return b},a.prototype._findOriginalStack=function(a){if(!(a instanceof e.BaseWrappedException))return null;for(var b=a,c=a.originalStack;b instanceof e.BaseWrappedException&&d.isPresent(b.originalException);)b=b.originalException,b instanceof e.BaseWrappedException&&d.isPresent(b.originalException)&&(c=b.originalStack);return c},a}();return b.ExceptionHandler=h,c.exports}),a.registerDynamic("a9",["29e","29f"],!0,function(a,b,c){"use strict";function d(a){return new TypeError(a)}function e(){throw new j("unimplemented")}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("29e"),h=a("29f"),i=a("29f");b.ExceptionHandler=i.ExceptionHandler;var j=function(a){function b(b){void 0===b&&(b="--"),a.call(this,b),this.message=b,this.stack=new Error(b).stack}return f(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.BaseException=j;var k=function(a){function b(b,c,d,e){a.call(this,b),this._wrapperMessage=b,this._originalException=c,this._originalStack=d,this._context=e,this._wrapperStack=new Error(b).stack}return f(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return h.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),b.prototype.toString=function(){return this.message},b}(g.BaseWrappedException);return b.WrappedException=k,b.makeTypeError=d,b.unimplemented=e,c.exports}),a.registerDynamic("295",["9c","a9"],!0,function(a,b,c){"use strict";function d(a){return new k(a)}function e(a,b){var c=b.useClass,d=b.useValue,e=b.useExisting,f=b.useFactory,g=b.deps,h=b.multi;return new i(a,{useClass:c,useValue:d,useExisting:e,useFactory:f,deps:g,multi:h})}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("9c"),h=a("a9"),i=function(){function a(a,b){var c=b.useClass,d=b.useValue,e=b.useExisting,f=b.useFactory,g=b.deps,h=b.multi;this.token=a,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.dependencies=g,this._multi=h}return Object.defineProperty(a.prototype,"multi",{get:function(){return g.normalizeBool(this._multi)},enumerable:!0,configurable:!0}),a}();b.Provider=i;var j=function(a){function b(b,c){var d=c.toClass,e=c.toValue,f=c.toAlias,g=c.toFactory,h=c.deps,i=c.multi;a.call(this,b,{useClass:d,useValue:e,useExisting:f,useFactory:g,deps:h,multi:i})}return f(b,a),Object.defineProperty(b.prototype,"toClass",{get:function(){return this.useClass},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toAlias",{get:function(){return this.useExisting},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toFactory",{get:function(){return this.useFactory},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"toValue",{get:function(){return this.useValue},enumerable:!0,configurable:!0}),b}(i);b.Binding=j,b.bind=d;var k=function(){function a(a){this.token=a}return a.prototype.toClass=function(a){if(!g.isType(a))throw new h.BaseException('Trying to create a class provider but "'+g.string
2016-04-30 23:48:20 +03:00
})(function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=a():a()});
2016-01-25 00:27:39 +03:00
//# sourceMappingURL=redoc.min.js.map