mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 11:33:43 +03:00
1030 lines
1.4 MiB
JavaScript
1030 lines
1.4 MiB
JavaScript
|
/*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);}
|
|||
|
|
|||
|
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,exports,e){(function(t){"use strict";var n=e(1),r=e(2),o=e(6),i=e(10);o.Zone.prototype.scheduleMicrotask?console.warn("Zone-microtasks already exported on window the object!"):(n.addMicrotaskSupport(o.Zone),t.Zone=o.Zone,t.zone=new t.Zone,t.Promise=r.Promise,i.apply())}).call(exports,function(){return this}())},function(t,exports,e){(function(t){function n(t){u._asap(this.bind(t))}function r(t){return t.prototype.scheduleMicrotask=n,t}var o,i="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),a=t.navigator&&t.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i&&!a&&(o=Promise.resolve());var u=e(2).Promise;o&&u._setScheduler(function(t){o.then(t)}),u._setAsap(function(e,n){t.zone.scheduleMicrotask(function(){e(n)})}),exports.addMicrotaskSupport=r}).call(exports,function(){return this}())},function(t,exports,e){var n;(function(t,r){/*!
|
|||
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|||
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|||
|
* @license Licensed under MIT license
|
|||
|
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
|
|||
|
* @version 3.0.2
|
|||
|
*/
|
|||
|
(function(){"use strict";function o(t){return"function"==typeof t||"object"==typeof t&&null!==t}function i(t){return"function"==typeof t}function a(t){return"object"==typeof t&&null!==t}function u(t){U=t}function c(t){J=t}function s(){return function(){process.nextTick(h)}}function p(){return function(){X(h)}}function f(){var t=0,e=new Q(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function l(){var t=new MessageChannel;return t.port1.onmessage=h,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(h,1)}}function h(){for(var t=0;Y>t;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}Y=0}function v(){try{var t=e(4);return X=t.runOnLoop||t.runOnContext,p()}catch(n){return d()}}function y(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function g(){return new TypeError("A promises callback cannot return that same promise.")}function b(t){try{return t.then}catch(e){return at.error=e,at}}function w(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function k(t,e,n){J(function(t){var r=!1,o=w(n,e,function(n){r||(r=!0,e!==n?T(t,n):O(t,n))},function(e){r||(r=!0,j(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,j(t,o))},t)}function E(t,e){e._state===ot?O(t,e._result):e._state===it?j(t,e._result):S(e,void 0,function(e){T(t,e)},function(e){j(t,e)})}function _(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=b(e);n===at?j(t,at.error):void 0===n?O(t,e):i(n)?k(t,e,n):O(t,e)}}function T(t,e){t===e?j(t,m()):o(e)?_(t,e):O(t,e)}function P(t){t._onerror&&t._onerror(t._result),L(t)}function O(t,e){t._state===rt&&(t._result=e,t._state=ot,0!==t._subscribers.length&&J(L,t))}function j(t,e){t._state===rt&&(t._state=it,t._result=e,J(P,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ot]=n,o[i+it]=r,0===i&&t._state&&J(L,t)}function L(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?A(n,r,o,i):o(i);t._subscribers.length=0}}function M(){this.error=null}function z(t,e){try{return t(e)}catch(n){return ut.error=n,ut}}function A(t,e,n,r){var o,a,u,c,s=i(n);if(s){if(o=z(n,r),o===ut?(c=!0,a=o.error,o=null):u=!0,e===o)return void j(e,g())}else o=r,u=!0;e._state!==rt||(s&&u?T(e,o):c?j(e,a):t===ot?O(e,o):t===it&&j(e,o))}function x(t,e){try{e(function(e){T(t,e)},function(e){j(t,e)})}catch(n){j(t,n)}}function C(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(y),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?O(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&O(n.promise,n._result))):j(n.promise,n._validationError())}function R(t){return new ct(this,t).promise}function q(t){function e(t){T(o,t)}function n(t){j(o,t)}var r=this,o=new r(y);if(!K(t))return j(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===rt&&i>a;a++)S(r.resolve(t[a]),void 0,e,n);return o}function F(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return T(n,t),n}function W(t){var e=this,n=new e(y);return j(n,t),n}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function I(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(t){this._id=dt++,this._state=void 0,this._result=void 0,this._subscribers=[],y!==t&&(i(t)||Z(),this instanceof N||I(),x(this,t))}function H(){var e;if("undefined"!=typeof t)e=t;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;(!r||"[object Promise]"!==Object.prototype.toString.call(r.resolve())||r.cast)&&(e.Promise=ht)}var D;D=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var X,U,G,K=D,Y=0,J=({}.toString,function(t,e){nt[Y]=t,n
|
|||
|
/*! *****************************************************************************
|
|||
|
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) {
|
|||
|
"use strict";
|
|||
|
// 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();
|
|||
|
}
|
|||
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
|
|||
|
}
|
|||
|
}
|
|||
|
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-
|
|||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
|||
|
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) {
|
|||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
|||
|
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) {
|
|||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
|||
|
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) {
|
|||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
|
|||
|
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) {
|
|||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
|||
|
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) {
|
|||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|||
|
if (table) {
|
|||
|
return this._key in table;
|
|||
|
}
|
|||
|
return false;
|
|||
|
},
|
|||
|
get: function (target) {
|
|||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|||
|
if (table) {
|
|||
|
return table[this._key];
|
|||
|
}
|
|||
|
return undefined;
|
|||
|
},
|
|||
|
set: function (target, value) {
|
|||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
|
|||
|
table[this._key] = value;
|
|||
|
return this;
|
|||
|
},
|
|||
|
delete: function (target) {
|
|||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
|||
|
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 = {}));
|
|||
|
|
|||
|
!function e(t,n,r){function s(i,u){if(!n[i]){if(!t[i]){var c="function"==typeof require&&require;if(!u&&c)return c(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(n){var e=t[i][1][n];return s(e?e:n)},f,f.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(t,n,e){(function(n){"use strict";if(t(189),t(2),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{189:189,2:2}],2:[function(t,n,e){n.exports=t(190)},{190:190}],3:[function(t,n,e){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,n,e){var r=t(84)("unscopables"),o=Array.prototype;void 0==o[r]&&t(32)(o,r,{}),n.exports=function(t){o[r][t]=!0}},{32:32,84:84}],5:[function(t,n,e){var r=t(39);n.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{39:39}],6:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].copyWithin||function copyWithin(t,n){var e=r(this),u=i(e.length),c=o(t,u),a=o(n,u),s=arguments,f=s.length>2?s[2]:void 0,l=Math.min((void 0===f?u:o(f,u))-a,u-c),h=1;for(c>a&&a+l>c&&(h=-1,a+=l-1,c+=l-1);l-- >0;)a in e?e[c]=e[a]:delete e[c],c+=h,a+=h;return e}},{77:77,80:80,81:81}],7:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].fill||function fill(t){for(var n=r(this),e=i(n.length),u=arguments,c=u.length,a=o(c>1?u[1]:void 0,e),s=c>2?u[2]:void 0,f=void 0===s?e:o(s,e);f>a;)n[a++]=t;return n}},{77:77,80:80,81:81}],8:[function(t,n,e){var r=t(79),o=t(80),i=t(77);n.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if(c=a[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f;return!t&&-1}}},{77:77,79:79,80:80}],9:[function(t,n,e){var r=t(18),o=t(35),i=t(81),u=t(80),c=t(10);n.exports=function(t){var n=1==t,e=2==t,a=3==t,s=4==t,f=6==t,l=5==t||f;return function(h,p,v){for(var g,y,d=i(h),m=o(d),x=r(p,v,3),S=u(m.length),w=0,b=n?c(h,S):e?c(h,0):void 0;S>w;w++)if((l||w in m)&&(g=m[w],y=x(g,w,d),t))if(n)b[w]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:b.push(g)}else if(s)return!1;return f?-1:a||s?s:b}}},{10:10,18:18,35:35,80:80,81:81}],10:[function(t,n,e){var r=t(39),o=t(37),i=t(84)("species");n.exports=function(t,n){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),new(void 0===e?Array:e)(n)}},{37:37,39:39,84:84}],11:[function(t,n,e){var r=t(12),o=t(84)("toStringTag"),i="Arguments"==r(function(){return arguments}());n.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(n=Object(t))[o])?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},{12:12,84:84}],12:[function(t,n,e){var r={}.toString;n.exports=function(t){return r.call(t).slice(8,-1)}},{}],13:[function(t,n,e){"use strict";var r=t(47),o=t(32),i=t(61),u=t(18),c=t(70),a=t(19),s=t(28),f=t(43),l=t(45),h=t(83)("id"),p=t(31),v=t(39),g=t(66),y=t(20),d=Object.isExtensible||v,m=y?"_s":"size",x=0,S=function(t,n){if(!v(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!p(t,h)){if(!d(t))return"F";if(!n)return"E";o(t,h,++x)}return"O"+t[h]},w=function(t,n){var e,r=S(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};n.exports={getConstructor:function(t,n,e,o){var f=t(function(t,i){c(t,f,n),t._i=r.create(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&s(i,e,t[o],t)});return i(f.prototype,{clear:function clear(){for(var t=this,n=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete n[e.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var n=this,e=w(n,t);if(e){var r=e.n,o=e.p;delete n._i[e.i],e.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==e&&(n._f=r),n._l==e&&(n._l=o),n[m]--}return!!e},for
|
|||
|
tanh:function tanh(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},{23:23,50:50}],114:[function(t,n,e){var r=t(23);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{23:23}],115:[function(t,n,e){"use strict";var r=t(47),o=t(30),i=t(31),u=t(12),c=t(82),a=t(25),s=t(75).trim,f="Number",l=o[f],h=l,p=l.prototype,v=u(r.create(p))==f,g="trim"in String.prototype,y=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():s(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,l=a.length;l>f;f++)if(u=a.charCodeAt(f),48>u||u>o)return NaN;return parseInt(a,r)}}return+n};l(" 0o1")&&l("0b1")&&!l("+0x1")||(l=function Number(t){var n=arguments.length<1?0:t,e=this;return e instanceof l&&(v?a(function(){p.valueOf.call(e)}):u(e)!=f)?new h(y(n)):y(n)},r.each.call(t(20)?r.getNames(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){i(h,t)&&!i(l,t)&&r.setDesc(l,t,r.getDesc(h,t))}),l.prototype=p,p.constructor=l,t(62)(o,f,l))},{12:12,20:20,25:25,30:30,31:31,47:47,62:62,75:75,82:82}],116:[function(t,n,e){var r=t(23);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},{23:23}],117:[function(t,n,e){var r=t(23),o=t(30).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&o(t)}})},{23:23,30:30}],118:[function(t,n,e){var r=t(23);r(r.S,"Number",{isInteger:t(38)})},{23:23,38:38}],119:[function(t,n,e){var r=t(23);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{23:23}],120:[function(t,n,e){var r=t(23),o=t(38),i=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},{23:23,38:38}],121:[function(t,n,e){var r=t(23);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{23:23}],122:[function(t,n,e){var r=t(23);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{23:23}],123:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseFloat:parseFloat})},{23:23}],124:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseInt:parseInt})},{23:23}],125:[function(t,n,e){var r=t(23);r(r.S+r.F,"Object",{assign:t(54)})},{23:23,54:54}],126:[function(t,n,e){var r=t(39);t(55)("freeze",function(t){return function freeze(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],127:[function(t,n,e){var r=t(79);t(55)("getOwnPropertyDescriptor",function(t){return function getOwnPropertyDescriptor(n,e){return t(r(n),e)}})},{55:55,79:79}],128:[function(t,n,e){t(55)("getOwnPropertyNames",function(){return t(29).get})},{29:29,55:55}],129:[function(t,n,e){var r=t(81);t(55)("getPrototypeOf",function(t){return function getPrototypeOf(n){return t(r(n))}})},{55:55,81:81}],130:[function(t,n,e){var r=t(39);t(55)("isExtensible",function(t){return function isExtensible(n){return r(n)?t?t(n):!0:!1}})},{39:39,55:55}],131:[function(t,n,e){var r=t(39);t(55)("isFrozen",function(t){return function isFrozen(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],132:[function(t,n,e){var r=t(39);t(55)("isSealed",function(t){return function isSealed(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],133:[function(t,n,e){var r=t(23);r(r.S,"Object",{is:t(64)})},{23:23,64:64}],134:[function(t,n,e){var r=t(81);t(55)("keys",function(t){return function keys(n){return t(r(n))}})},{55:55,81:81}],135:[function(t,n,e){var r=t(39);t(55)("preventExtensions",function(t){return function preventExtensions(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],136:[function(t,n,e){var r=t(39);t(55)("seal",function(t){return function seal(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],137:[function(t,n,e){var r=t(23);r(r.S,"Object",{setPrototypeOf:t(65).set})},{23:23,65:65}],138:[function(t,n,e){"use strict";var r=t(11),o={};o[t(84)("toStringTag")]="z",o+""!="[object z]"&&t(62)(Object.prototype,"toString",function toString(){return"[object "+r(this)+"]"},!0)},{11:11,62:62,84:84}],139:[
|
|||
|
|
|||
|
!function(e){function r(e,r,o){return 4===arguments.length?t.apply(this,arguments):void n(e,{declarative:!0,deps:r,declare:o})}function t(e,r,t,o){n(e,{declarative:!1,deps:r,executingRequire:t,execute:o})}function n(e,r){r.name=e,e in p||(p[e]=r),r.normalizedDeps=r.deps}function o(e,r){if(r[e.groupIndex]=r[e.groupIndex]||[],-1==v.call(r[e.groupIndex],e)){r[e.groupIndex].push(e);for(var t=0,n=e.normalizedDeps.length;n>t;t++){var a=e.normalizedDeps[t],u=p[a];if(u&&!u.evaluated){var d=e.groupIndex+(u.declarative!=e.declarative);if(void 0===u.groupIndex||u.groupIndex<d){if(void 0!==u.groupIndex&&(r[u.groupIndex].splice(v.call(r[u.groupIndex],u),1),0==r[u.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");u.groupIndex=d}o(u,r)}}}}function a(e){var r=p[e];r.groupIndex=0;var t=[];o(r,t);for(var n=!!r.declarative==t.length%2,a=t.length-1;a>=0;a--){for(var u=t[a],i=0;i<u.length;i++){var s=u[i];n?d(s):l(s)}n=!n}}function u(e){return x[e]||(x[e]={name:e,dependencies:[],exports:{},importers:[]})}function d(r){if(!r.module){var t=r.module=u(r.name),n=r.module.exports,o=r.declare.call(e,function(e,r){if(t.locked=!0,"object"==typeof e)for(var o in e)n[o]=e[o];else n[e]=r;for(var a=0,u=t.importers.length;u>a;a++){var d=t.importers[a];if(!d.locked)for(var i=0;i<d.dependencies.length;++i)d.dependencies[i]===t&&d.setters[i](n)}return t.locked=!1,r},r.name);t.setters=o.setters,t.execute=o.execute;for(var a=0,i=r.normalizedDeps.length;i>a;a++){var l,s=r.normalizedDeps[a],c=p[s],v=x[s];v?l=v.exports:c&&!c.declarative?l=c.esModule:c?(d(c),v=c.module,l=v.exports):l=f(s),v&&v.importers?(v.importers.push(t),t.dependencies.push(v)):t.dependencies.push(null),t.setters[a]&&t.setters[a](l)}}}function i(e){var r,t=p[e];if(t)t.declarative?c(e,[]):t.evaluated||l(t),r=t.module.exports;else if(r=f(e),!r)throw new Error("Unable to load dependency "+e+".");return(!t||t.declarative)&&r&&r.__useDefault?r["default"]:r}function l(r){if(!r.module){var t={},n=r.module={exports:t,id:r.name};if(!r.executingRequire)for(var o=0,a=r.normalizedDeps.length;a>o;o++){var u=r.normalizedDeps[o],d=p[u];d&&l(d)}r.evaluated=!0;var c=r.execute.call(e,function(e){for(var t=0,n=r.deps.length;n>t;t++)if(r.deps[t]==e)return i(r.normalizedDeps[t]);throw new TypeError("Module "+e+" not declared as a dependency.")},t,n);c&&(n.exports=c),t=n.exports,t&&t.__esModule?r.esModule=t:r.esModule=s(t)}}function s(r){if(r===e)return r;var t={};if("object"==typeof r||"function"==typeof r)if(g){var n;for(var o in r)(n=Object.getOwnPropertyDescriptor(r,o))&&h(t,o,n)}else{var a=r&&r.hasOwnProperty;for(var o in r)(!a||r.hasOwnProperty(o))&&(t[o]=r[o])}return t["default"]=r,h(t,"__useDefault",{value:!0}),t}function c(r,t){var n=p[r];if(n&&!n.evaluated&&n.declarative){t.push(r);for(var o=0,a=n.normalizedDeps.length;a>o;o++){var u=n.normalizedDeps[o];-1==v.call(t,u)&&(p[u]?c(u,t):f(u))}n.evaluated||(n.evaluated=!0,n.module.execute.call(e))}}function f(e){if(D[e])return D[e];if("@node/"==e.substr(0,6))return y(e.substr(6));var r=p[e];if(!r)throw"Module "+e+" not present.";return a(e),c(e,[]),p[e]=void 0,r.declarative&&h(r.module.exports,"__esModule",{value:!0}),D[e]=r.declarative?r.module.exports:r.esModule}var p={},v=Array.prototype.indexOf||function(e){for(var r=0,t=this.length;t>r;r++)if(this[r]===e)return r;return-1},g=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(m){g=!1}var h;!function(){try{Object.defineProperty({},"a",{})&&(h=Object.defineProperty)}catch(e){h=function(e,r,t){try{e[r]=t.value||t.get.call(e)}catch(n){}}}}();var x={},y="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,D={"@empty":{}};return function(e,n,o){return function(a){a(function(a){for(var u={_nodeRequire:y,register:r,registerDynamic:t,get:f,set:function(e,r){D[e]=r},newModule:function(e){return e}},d=0;d<n.length;d++)(function(e,r){r&&r.__esModule?D[e]=r:D[e]=s(r)})(n[d],arguments[d]);o(u);var i=f(e[0]);if(e.length>1)for(var d=1;d<e.length;d++)f(e[d]);return i.__useDefault?i["default"]:i})}}}("undefined"!=typ
|
|||
|
},function(_7){RedocComponent=_7.RedocComponent,BaseComponent=_7.BaseComponent},function(_){_get=_["default"]},function(_2){_inherits=_2["default"]},function(_3){_createClass=_3["default"]},function(_4){_classCallCheck=_4["default"]},function(_13){redocEvents=_13.redocEvents},function(_5){ChangeDetectionStrategy=_5.ChangeDetectionStrategy,provide=_5.provide,enableProdMode=_5.enableProdMode,ElementRef=_5.ElementRef},function(_10){MethodsList=_10["default"]},function(_8){SchemaManager=_8["default"]},function(_11){SideMenu=_11["default"]},function(_12){OptionsManager=_12["default"]},function(_d){BrowserDomAdapter=_d.BrowserDomAdapter,bootstrap=_d.bootstrap},function(_a){ApiLogo=_a["default"]},function(_c){StickySidebar=_c["default"]},function(_e){}],execute:function(){"use strict";dom=new BrowserDomAdapter,_modeLocked=!1,Redoc=function(_BaseComponent){function Redoc(schemaMgr,optionsMgr,elementRef){_classCallCheck(this,_Redoc),_get(Object.getPrototypeOf(_Redoc.prototype),"constructor",this).call(this,schemaMgr),this.element=elementRef.nativeElement,optionsMgr.parseOptions(this.element),optionsMgr.options.$scrollParent=detectScollParent(this.element),this.options=optionsMgr.options}_inherits(Redoc,_BaseComponent),_createClass(Redoc,null,[{key:"showLoadingAnimation",value:function(){var elem=dom.query("redoc");dom.addClass(elem,"loading")}},{key:"hideLoadingAnimation",value:function(){var redocEl=dom.query("redoc");dom.addClass(redocEl,"loading-remove"),setTimeout(function(){dom.removeClass(redocEl,"loading-remove"),dom.removeClass(redocEl,"loading")},400)}},{key:"init",value:function(schemaUrl,options){var optionsMgr=new OptionsManager;optionsMgr.options=options;var providers=[provide(OptionsManager,{useValue:optionsMgr})];return Redoc.appRef&&Redoc.dispose(),Redoc.showLoadingAnimation(),SchemaManager.instance().load(schemaUrl).then(function(){return _modeLocked||optionsMgr.options.debugMode||(enableProdMode(),_modeLocked=!0),bootstrap(Redoc,providers)}).then(function(appRef){Redoc.hideLoadingAnimation(),Redoc.appRef=appRef,setTimeout(function(){return redocEvents.bootstrapped.next()}),console.log("ReDoc bootstrapped!")},function(error){throw console.log(error),error})}},{key:"autoInit",value:function(){var specUrlAttributeName="spec-url",redocEl=dom.query("redoc");if(redocEl&&dom.hasAttribute(redocEl,specUrlAttributeName)){var url=dom.getAttribute(redocEl,specUrlAttributeName);Redoc.init(url)}}},{key:"dispose",value:function(){var el=dom.query("redoc"),elClone=void 0,parent=void 0,nextSibling=void 0;el&&(parent=el.parentElement,nextSibling=el.nextElementSibling),elClone=el.cloneNode(!1),Redoc.appRef&&(Redoc.appRef.dispose(),Redoc.appRef=null,elClone.innerHTML="Loading...",parent&&parent.insertBefore(elClone,nextSibling))}}]);var _Redoc=Redoc;return Redoc=Reflect.metadata("parameters",[[SchemaManager],[OptionsManager],[ElementRef]])(Redoc)||Redoc,Redoc=RedocComponent({selector:"redoc",providers:[SchemaManager,BrowserDomAdapter],template:'\n <div class="redoc-wrap">\n <div class="menu-content" sticky-sidebar [scrollParent]="options.$scrollParent" [scrollYOffset]="options.scrollYOffset">\n <api-logo> </api-logo>\n <side-menu> </side-menu>\n </div>\n <div id="api-content">\n <api-info> </api-info>\n <methods-list> </methods-list>\n <footer>\n <div class="powered-by-badge">\n <a href="https://github.com/Rebilly/ReDoc" title="Swagger-generated API Reference Documentation" target="_blank">\n Powered by <strong>ReDoc</strong>\n </a>\n </div>\n </footer>\n </div>\n </div>\n ',styles:['\n :host{display:block;box-sizing:border-box}.redoc-wrap{position:relative}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:10px 20px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (ma
|
|||
|
collection_1.StringMapWrapper.set(result,"fullKey",fullKey),result},KeyEventsPlugin.getEventFullKey=function(event){var fullKey="",key=dom_adapter_1.DOM.getEventKey(event);return key=key.toLowerCase(),lang_1.StringWrapper.equals(key," ")?key="space":lang_1.StringWrapper.equals(key,".")&&(key="dot"),modifierKeys.forEach(function(modifierName){if(modifierName!=key){var modifierGetter=collection_1.StringMapWrapper.get(modifierKeyGetters,modifierName);modifierGetter(event)&&(fullKey+=modifierName+".")}}),fullKey+=key},KeyEventsPlugin.eventCallback=function(element,fullKey,handler,zone){return function(event){lang_1.StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event),fullKey)&&zone.run(function(){return handler(event)})}},KeyEventsPlugin._normalizeKey=function(keyName){switch(keyName){case"esc":return"escape";default:return keyName}},KeyEventsPlugin=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],KeyEventsPlugin)}(event_manager_1.EventManagerPlugin);exports.KeyEventsPlugin=KeyEventsPlugin}($__require("37")),global.define=__define,module.exports}),$__System.registerDynamic("3d",["3b","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},event_manager_1=$__require("3b"),collection_1=$__require("3a"),_eventNames={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},HammerGesturesPluginCommon=function(_super){function HammerGesturesPluginCommon(){_super.call(this)}return __extends(HammerGesturesPluginCommon,_super),HammerGesturesPluginCommon.prototype.supports=function(eventName){return eventName=eventName.toLowerCase(),collection_1.StringMapWrapper.contains(_eventNames,eventName)},HammerGesturesPluginCommon}(event_manager_1.EventManagerPlugin);return exports.HammerGesturesPluginCommon=HammerGesturesPluginCommon,global.define=__define,module.exports}),$__System.registerDynamic("3e",["3d","2b","3f","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},hammer_common_1=$__require("3d"),lang_1=$__require("2b"),exceptions_1=$__require("3f"),di_1=$__require("3c"),HammerGesturesPlugin=function(_super){function HammerGesturesPlugin(){_super.apply(this,arguments)}return __extends(HammerGesturesPlugin,_super),HammerGesturesPlugin.prototype.supports=function(eventName){if(!_super.prototype.supports.call(this,eventName))return!1;if(!lang_1.isPresent(window.Hammer))throw new exceptions_1.BaseException("Hammer.js is not loaded, can not bind "+eventName+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(element,eventName,handler){var zone=this.manager.getZone();return eventName=eventName.toLowerCase(),zone.runOutsideAngular(function(){var mc=new Hammer(element);mc.get("pinch").set({enable:!0}),mc.
|
|||
|
return this.data.delay=delay,this},CssAnimationBuilder.prototype.setStyles=function(from,to){return this.setFromStyles(from).setToStyles(to)},CssAnimationBuilder.prototype.setFromStyles=function(from){return this.data.fromStyles=from,this},CssAnimationBuilder.prototype.setToStyles=function(to){return this.data.toStyles=to,this},CssAnimationBuilder.prototype.start=function(element){return new animation_1.Animation(element,this.data,this.browserDetails)},CssAnimationBuilder}();return exports.CssAnimationBuilder=CssAnimationBuilder,global.define=__define,module.exports}),$__System.registerDynamic("49",["2b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b");return exports.Math=lang_1.global.Math,exports.NaN=typeof exports.NaN,global.define=__define,module.exports}),$__System.registerDynamic("4c",["3c","49","39"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),math_1=$__require("49"),dom_adapter_1=$__require("39"),BrowserDetails=function(){function BrowserDetails(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return BrowserDetails.prototype.doesElapsedTimeIncludesDelay=function(){var _this=this,div=dom_adapter_1.DOM.createElement("div");dom_adapter_1.DOM.setAttribute(div,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(timestamp){dom_adapter_1.DOM.on(div,"transitionend",function(event){var elapsed=math_1.Math.round(1e3*event.elapsedTime);_this.elapsedTimeIncludesDelay=2==elapsed,dom_adapter_1.DOM.remove(div)}),dom_adapter_1.DOM.setStyle(div,"width","2px")},2)},BrowserDetails.prototype.raf=function(callback,frames){void 0===frames&&(frames=1);var queue=new RafQueue(callback,frames);return function(){return queue.cancel()}},BrowserDetails=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],BrowserDetails)}();exports.BrowserDetails=BrowserDetails;var RafQueue=function(){function RafQueue(callback,frames){this.callback=callback,this.frames=frames,this._raf()}return RafQueue.prototype._raf=function(){var _this=this;this.currentFrameId=dom_adapter_1.DOM.requestAnimationFrame(function(timestamp){return _this._nextFrame(timestamp)})},RafQueue.prototype._nextFrame=function(timestamp){this.frames--,this.frames>0?this._raf():this.callback(timestamp)},RafQueue.prototype.cancel=function(){dom_adapter_1.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},RafQueue}();return global.define=__define,module.exports}),$__System.registerDynamic("4d",["3c","4b","4c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),css_animation_builder_1=$__require("4b
|
|||
|
record&&isProfilerAvailable&&browser_1.window.console.profile(profileName);for(var start=dom_adapter_1.DOM.performanceNow(),numTicks=0;5>numTicks||dom_adapter_1.DOM.performanceNow()-start<500;)this.appRef.tick(),numTicks++;var end=dom_adapter_1.DOM.performanceNow();record&&isProfilerAvailable&&browser_1.window.console.profileEnd(profileName);var msPerTick=(end-start)/numTicks;browser_1.window.console.log("ran "+numTicks+" change detection cycles"),browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick,2)+" ms per check")},AngularProfiler}();return exports.AngularProfiler=AngularProfiler,global.define=__define,module.exports}),$__System.registerDynamic("5b",["2b","59"],!0,function($__require,exports,module){"use strict";function enableDebugTools(ref){context.ng=new common_tools_1.AngularTools(ref)}function disableDebugTools(){delete context.ng}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),common_tools_1=$__require("59"),context=lang_1.global;return exports.enableDebugTools=enableDebugTools,exports.disableDebugTools=disableDebugTools,global.define=__define,module.exports}),$__System.registerDynamic("5c",["2b","3c","15","23","5d","39","45","38","3e","4f","51","4e","4c","4d","42","43","44","3b","56","57","5b"],!0,function($__require,exports,module){"use strict";function _exceptionHandler(){return new core_1.ExceptionHandler(dom_adapter_1.DOM,!lang_1.IS_DART)}function _document(){return dom_adapter_1.DOM.defaultDoc()}function initDomAdapter(){browser_adapter_1.BrowserDomAdapter.makeCurrent(),wtf_init_1.wtfInit(),testability_2.BrowserGetTestability.init()}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),di_1=$__require("3c"),core_1=$__require("15"),common_1=$__require("23"),testability_1=$__require("5d"),dom_adapter_1=$__require("39"),dom_events_1=$__require("45"),key_events_1=$__require("38"),hammer_gestures_1=$__require("3e"),dom_tokens_1=$__require("4f"),dom_renderer_1=$__require("51"),shared_styles_host_1=$__require("4e"),shared_styles_host_2=$__require("4e"),browser_details_1=$__require("4c"),animation_builder_1=$__require("4d"),browser_adapter_1=$__require("42"),testability_2=$__require("43"),wtf_init_1=$__require("44"),event_manager_1=$__require("3b"),common_dom_1=$__require("56"),dom_tokens_2=$__require("4f");exports.DOCUMENT=dom_tokens_2.DOCUMENT;var title_1=$__require("57");exports.Title=title_1.Title;var common_dom_2=$__require("56");exports.ELEMENT_PROBE_PROVIDERS=common_dom_2.ELEMENT_PROBE_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE,exports.inspectNativeElement=common_dom_2.inspectNativeElement,exports.By=common_dom_2.By;var browser_adapter_2=$__require("42");exports.BrowserDomAdapter=browser_adapter_2.BrowserDomAdapter;var tools_1=$__require("5b");return exports.enableDebugTools=tools_1.enableDebugTools,exports.disableDebugTools=tools_1.disableDebugTools,exports.BROWSER_PROVIDERS=lang_1.CONST_EXPR([core_1.PLATFORM_COMMON_PROVIDERS,new di_1.Provider(core_1.PLATFORM_INITIALIZER,{useValue:initDomAdapter,multi:!0})]),exports.BROWSER_APP_COMMON_PROVIDERS=lang_1.CONST_EXPR([core_1.APPLICATION_COMMON_PROVIDERS,common_1.FORM_PROVIDERS,new di_1.Provider(core_1.PLATFORM_PIPES,{useValue:common_1.COMMON_PIPES,multi:!0}),new di_1.Provider(core_1.PLATFORM_DIRECTIVES,{useValue:common_1.COMMON_DIRECTIVES,multi:!0}),new di_1.Provider(core_1.ExceptionHandler,{useFactory:_exceptionHandler,deps:[]}),new di_1.Provider(dom_tokens_1.DOCUMENT,{useFactory:_document,deps:[]}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:dom_events_1.DomEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:key_events_1.KeyEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:hammer_gestures_1.HammerGesturesPlugin,multi:!0}),new di_1.Provider(dom_renderer_1.DomRootRenderer,{useClass:dom_renderer_1.DomRootRenderer_}),new di_1.Provider(core_1.RootRenderer,{useExisting:dom_renderer_1.DomRootRenderer}),new di_1.Provider(sh
|
|||
|
parsedElement=new template_ast_1.NgContentAst(this.ngContentCount++,elementNgContentIndex,element.sourceSpan);else if(isTemplateElement)this._assertAllEventsPublishedByDirectives(directives,events),this._assertNoComponentsNorElementBindingsOnTemplate(directives,elementProps,element.sourceSpan),parsedElement=new template_ast_1.EmbeddedTemplateAst(attrs,events,vars,directives,children,elementNgContentIndex,element.sourceSpan);else{this._assertOnlyOneComponent(directives,element.sourceSpan);var elementExportAsVars=vars.filter(function(varAst){return 0===varAst.value.length});parsedElement=new template_ast_1.ElementAst(nodeName,attrs,elementProps,events,elementExportAsVars,directives,children,elementNgContentIndex,element.sourceSpan)}if(hasInlineTemplates){var templateCssSelector=createElementCssSelector(TEMPLATE_ELEMENT,templateMatchableAttrs),templateDirectives=this._createDirectiveAsts(element.name,this._parseDirectives(this.selectorMatcher,templateCssSelector),templateElementOrDirectiveProps,[],element.sourceSpan),templateElementProps=this._createElementPropertyAsts(element.name,templateElementOrDirectiveProps,templateDirectives);this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectives,templateElementProps,element.sourceSpan),parsedElement=new template_ast_1.EmbeddedTemplateAst([],[],templateVars,templateDirectives,[parsedElement],component.findNgContentIndex(templateCssSelector),element.sourceSpan)}return parsedElement},TemplateParseVisitor.prototype._parseInlineTemplateBinding=function(attr,targetMatchableAttrs,targetProps,targetVars){var templateBindingsSource=null;if(attr.name==TEMPLATE_ATTR)templateBindingsSource=attr.value;else if(attr.name.startsWith(TEMPLATE_ATTR_PREFIX)){var key=attr.name.substring(TEMPLATE_ATTR_PREFIX.length);templateBindingsSource=0==attr.value.length?key:key+" "+attr.value}if(lang_1.isPresent(templateBindingsSource)){for(var bindings=this._parseTemplateBindings(templateBindingsSource,attr.sourceSpan),i=0;i<bindings.length;i++){var binding=bindings[i];binding.keyIsVar?(targetVars.push(new template_ast_1.VariableAst(binding.key,binding.name,attr.sourceSpan)),targetMatchableAttrs.push([binding.key,binding.name])):lang_1.isPresent(binding.expression)?this._parsePropertyAst(binding.key,binding.expression,attr.sourceSpan,targetMatchableAttrs,targetProps):(targetMatchableAttrs.push([binding.key,""]),this._parseLiteralAttr(binding.key,null,attr.sourceSpan,targetProps))}return!0}return!1},TemplateParseVisitor.prototype._parseAttr=function(attr,targetMatchableAttrs,targetProps,targetEvents,targetVars){var attrName=this._normalizeAttributeName(attr.name),attrValue=attr.value,bindParts=lang_1.RegExpWrapper.firstMatch(BIND_NAME_REGEXP,attrName),hasBinding=!1;if(lang_1.isPresent(bindParts))if(hasBinding=!0,lang_1.isPresent(bindParts[1]))this._parseProperty(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps);else if(lang_1.isPresent(bindParts[2])){var identifier=bindParts[5];this._parseVariable(identifier,attrValue,attr.sourceSpan,targetVars)}else lang_1.isPresent(bindParts[3])?this._parseEvent(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents):lang_1.isPresent(bindParts[4])?(this._parseProperty(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[6])?(this._parseProperty(bindParts[6],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[6],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[7])?this._parseProperty(bindParts[7],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps):lang_1.isPresent(bindParts[8])&&this._parseEvent(bindParts[8],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents);else hasBinding=this._parsePropertyInterpolation(attrName,attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps);return hasBinding||this._parseLiteralAttr(attrName,attrValue,attr.sourceSpan,targetProps),hasBinding},
|
|||
|
"use strict";var global=this,__define=global.define;global.define=void 0;var ParseLocation=function(){function ParseLocation(file,offset,line,col){this.file=file,this.offset=offset,this.line=line,this.col=col}return ParseLocation.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},ParseLocation}();exports.ParseLocation=ParseLocation;var ParseSourceFile=function(){function ParseSourceFile(content,url){this.content=content,this.url=url}return ParseSourceFile}();exports.ParseSourceFile=ParseSourceFile;var ParseError=function(){function ParseError(location,msg){this.location=location,this.msg=msg}return ParseError.prototype.toString=function(){var source=this.location.file.content,ctxStart=this.location.offset;ctxStart>source.length-1&&(ctxStart=source.length-1);for(var ctxEnd=ctxStart,ctxLen=0,ctxLines=0;100>ctxLen&&ctxStart>0&&(ctxStart--,ctxLen++,"\n"!=source[ctxStart]||3!=++ctxLines););for(ctxLen=0,ctxLines=0;100>ctxLen&&ctxEnd<source.length-1&&(ctxEnd++,ctxLen++,"\n"!=source[ctxEnd]||3!=++ctxLines););var context=source.substring(ctxStart,this.location.offset)+"[ERROR ->]"+source.substring(this.location.offset,ctxEnd+1);return this.msg+' ("'+context+'"): '+this.location},ParseError}();exports.ParseError=ParseError;var ParseSourceSpan=function(){function ParseSourceSpan(start,end){this.start=start,this.end=end}return ParseSourceSpan.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},ParseSourceSpan}();return exports.ParseSourceSpan=ParseSourceSpan,global.define=__define,module.exports}),$__System.registerDynamic("71",["2b","3a","79","3c","7a","73","72"],!0,function($__require,exports,module){"use strict";function mergeNsAndName(prefix,localName){return lang_1.isPresent(prefix)?"@"+prefix+":"+localName:localName}function getElementFullName(prefix,localName,parentElement){return lang_1.isBlank(prefix)&&(prefix=html_tags_1.getHtmlTagDefinition(localName).implicitNamespacePrefix,lang_1.isBlank(prefix)&&lang_1.isPresent(parentElement)&&(prefix=html_tags_1.getNsPrefix(parentElement.name))),mergeNsAndName(prefix,localName)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),collection_1=$__require("3a"),html_ast_1=$__require("79"),di_1=$__require("3c"),html_lexer_1=$__require("7a"),parse_util_1=$__require("73"),html_tags_1=$__require("72"),HtmlTreeError=function(_super){function HtmlTreeError(elementName,location,msg){_super.call(this,location,msg),this.elementName=elementName}return __extends(HtmlTreeError,_super),HtmlTreeError.create=function(elementName,location,msg){return new HtmlTreeError(elementName,location,msg)},HtmlTreeError}(parse_util_1.ParseError);exports.HtmlTreeError=HtmlTreeError;var HtmlParseTreeResult=function(){function HtmlParseTreeResult(rootNodes,errors){this.rootNodes=rootNodes,this.errors=errors}return HtmlParseTreeResult}();exports.HtmlParseTreeResult=HtmlParseTreeResult;var HtmlParser=function(){function HtmlParser(){}return HtmlParser.prototype.parse=function(sourceContent,sourceUrl){var tokensAndErrors=html_lexer_1.tokenizeHtml(sourceContent,sourceUrl),treeAndErrors=new TreeBuilder(tokensAndErrors.tokens).build();return new HtmlParseTreeResult(treeAndErrors.rootNodes,tokensAndErrors.errors.concat(
|
|||
|
return new CompileDirectiveMetadata({isComponent:data.isComponent,dynamicLoadable:data.dynamicLoadable,selector:data.selector,exportAs:data.exportAs,type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,changeDetection:lang_1.isPresent(data.changeDetection)?change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data.changeDetection]:data.changeDetection,inputs:data.inputs,outputs:data.outputs,hostListeners:data.hostListeners,hostProperties:data.hostProperties,hostAttributes:data.hostAttributes,lifecycleHooks:data.lifecycleHooks.map(function(hookValue){return interfaces_1.LIFECYCLE_HOOKS_VALUES[hookValue]}),template:lang_1.isPresent(data.template)?CompileTemplateMetadata.fromJson(data.template):data.template})},CompileDirectiveMetadata.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,dynamicLoadable:this.dynamicLoadable,selector:this.selector,exportAs:this.exportAs,type:lang_1.isPresent(this.type)?this.type.toJson():this.type,changeDetection:lang_1.isPresent(this.changeDetection)?lang_1.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(hook){return lang_1.serializeEnum(hook)}),template:lang_1.isPresent(this.template)?this.template.toJson():this.template}},CompileDirectiveMetadata}();exports.CompileDirectiveMetadata=CompileDirectiveMetadata,exports.createHostComponentMeta=createHostComponentMeta;var CompilePipeMetadata=function(){function CompilePipeMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,name=_b.name,pure=_b.pure;this.type=type,this.name=name,this.pure=lang_1.normalizeBool(pure)}return CompilePipeMetadata.fromJson=function(data){return new CompilePipeMetadata({type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,name:data.name,pure:data.pure})},CompilePipeMetadata.prototype.toJson=function(){return{"class":"Pipe",type:lang_1.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},CompilePipeMetadata}();exports.CompilePipeMetadata=CompilePipeMetadata;var _COMPILE_METADATA_FROM_JSON={Directive:CompileDirectiveMetadata.fromJson,Pipe:CompilePipeMetadata.fromJson};return global.define=__define,module.exports}),$__System.registerDynamic("7f",["2b","7e"],!0,function($__require,exports,module){"use strict";function hasLifecycleHook(lcInterface,token){if(!(token instanceof lang_1.Type))return!1;var proto=token.prototype;switch(lcInterface){case interfaces_1.LifecycleHooks.AfterContentInit:return!!proto.ngAfterContentInit;case interfaces_1.LifecycleHooks.AfterContentChecked:return!!proto.ngAfterContentChecked;case interfaces_1.LifecycleHooks.AfterViewInit:return!!proto.ngAfterViewInit;case interfaces_1.LifecycleHooks.AfterViewChecked:return!!proto.ngAfterViewChecked;case interfaces_1.LifecycleHooks.OnChanges:return!!proto.ngOnChanges;case interfaces_1.LifecycleHooks.DoCheck:return!!proto.ngDoCheck;case interfaces_1.LifecycleHooks.OnDestroy:return!!proto.ngOnDestroy;case interfaces_1.LifecycleHooks.OnInit:return!!proto.ngOnInit;default:return!1}}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),interfaces_1=$__require("7e");return exports.hasLifecycleHook=hasLifecycleHook,global.define=__define,module.exports}),$__System.registerDynamic("6c",["3c","2b","3f","63","80","81","82","83","7f","7e","84","85","70","7c"],!0,function($__require,exports,module){"use strict";function flattenDirectives(view,platformDirectives){var directives=[];return lang_1.isPresent(platformDirectives)&&flattenArray(platformDirectives,directives),lang_1.isPresent(view.directives)&&flattenArray(view.directives,directives),directives}function flattenPipes(view,platformPipes){var pipes=[];return lang_1.isPresent(platformPipes)&&flattenArray(platformPipes,pipes),lang_1.isPresent(view.pipes)&&flattenArray(view.pipes,pipes),pipes}function flattenArray(tree,out){for(var i=0;i<tree.length;i++){var item=di_1.resolve
|
|||
|
"use strict";function isStyleUrlResolvable(url){if(lang_1.isBlank(url)||0===url.length||"/"==url[0])return!1;var schemeMatch=lang_1.RegExpWrapper.firstMatch(_urlWithSchemaRe,url);return lang_1.isBlank(schemeMatch)||"package"==schemeMatch[1]||"asset"==schemeMatch[1]}function extractStyleUrls(resolver,baseUrl,cssText){var foundUrls=[],modifiedCssText=lang_1.StringWrapper.replaceAllMapped(cssText,_cssImportRe,function(m){var url=lang_1.isPresent(m[1])?m[1]:m[2];return isStyleUrlResolvable(url)?(foundUrls.push(resolver.resolve(baseUrl,url)),""):m[0]});return new StyleWithImports(modifiedCssText,foundUrls)}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),StyleWithImports=function(){function StyleWithImports(style,styleUrls){this.style=style,this.styleUrls=styleUrls}return StyleWithImports}();exports.StyleWithImports=StyleWithImports,exports.isStyleUrlResolvable=isStyleUrlResolvable,exports.extractStyleUrls=extractStyleUrls;var _cssImportRe=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,_urlWithSchemaRe=/^([a-zA-Z\-\+\.]+):/g;return global.define=__define,module.exports}),$__System.registerDynamic("67",["65","7d","7b","2b","62","8c","7c","78","70","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},source_module_1=$__require("65"),view_1=$__require("7d"),xhr_1=$__require("7b"),lang_1=$__require("2b"),async_1=$__require("62"),shadow_css_1=$__require("8c"),url_resolver_1=$__require("7c"),style_url_resolver_1=$__require("78"),util_1=$__require("70"),di_1=$__require("3c"),COMPONENT_VARIABLE="%COMP%",HOST_ATTR="_nghost-"+COMPONENT_VARIABLE,CONTENT_ATTR="_ngcontent-"+COMPONENT_VARIABLE,StyleCompiler=function(){function StyleCompiler(_xhr,_urlResolver){this._xhr=_xhr,this._urlResolver=_urlResolver,this._styleCache=new Map,this._shadowCss=new shadow_css_1.ShadowCss}return StyleCompiler.prototype.compileComponentRuntime=function(template){var styles=template.styles,styleAbsUrls=template.styleUrls;return this._loadStyles(styles,styleAbsUrls,template.encapsulation===view_1.ViewEncapsulation.Emulated)},StyleCompiler.prototype.compileComponentCodeGen=function(template){var shim=template.encapsulation===view_1.ViewEncapsulation.Emulated;return this._styleCodeGen(template.styles,template.styleUrls,shim)},StyleCompiler.prototype.compileStylesheetCodeGen=function(stylesheetUrl,cssText){var styleWithImports=style_url_resolver_1.extractStyleUrls(this._urlResolver,stylesheetUrl,cssText);return[this._styleModule(stylesheetUrl,!1,this._styleCodeGen([styleWithImports.style],styleWithImports.styleUrls,!1)),this._styleModule(stylesheetUrl,!0,this._styleCodeGen([styleWithImports.style],styleWithImports.styleUrls,!0))]},StyleCompiler.prototype.clearCache=function(){this._styleCache.clear()},StyleCompiler.prototype._loadStyles=function(plainStyles,absUrls,encapsulate){var _this=this,promises=absUrls.map(function(absUrl){var cacheKey=""+absUrl+(encapsulate?".shim":""),result=_this._styleCache.get(cacheKey);return lang_1.isBlank(result)&&(result=_this._xhr.get(absUrl).then(function(style){var styleWithImports=style_url_resolver_1.extractStyleUrls(_this._urlResolver,absUrl,style);return _this._loadStyles([styleWithImports.style],styleWithImports.styleUrls,encapsulate)}),_this._styleCache.set(cacheKey,result)),result});return async_1.PromiseWrapper.all(promises).then(function(nestedStyles){var result=plainStyles.map(function(plainStyle){retu
|
|||
|
var lang_1=$__require("2b"),MODULE_REGEXP=/#MODULE\[([^\]]*)\]/g;exports.moduleRef=moduleRef;var SourceModule=function(){function SourceModule(moduleUrl,sourceWithModuleRefs){this.moduleUrl=moduleUrl,this.sourceWithModuleRefs=sourceWithModuleRefs}return SourceModule.getSourceWithoutImports=function(sourceWithModuleRefs){return lang_1.StringWrapper.replaceAllMapped(sourceWithModuleRefs,MODULE_REGEXP,function(match){return""})},SourceModule.prototype.getSourceWithImports=function(){var _this=this,moduleAliases={},imports=[],newSource=lang_1.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs,MODULE_REGEXP,function(match){var moduleUrl=match[1],alias=moduleAliases[moduleUrl];return lang_1.isBlank(alias)&&(moduleUrl==_this.moduleUrl?alias="":(alias="import"+imports.length,imports.push([moduleUrl,alias])),moduleAliases[moduleUrl]=alias),alias.length>0?alias+".":""});return new SourceWithImports(newSource,imports)},SourceModule}();exports.SourceModule=SourceModule;var SourceExpression=function(){function SourceExpression(declarations,expression){this.declarations=declarations,this.expression=expression}return SourceExpression}();exports.SourceExpression=SourceExpression;var SourceExpressions=function(){function SourceExpressions(declarations,expressions){this.declarations=declarations,this.expressions=expressions}return SourceExpressions}();exports.SourceExpressions=SourceExpressions;var SourceWithImports=function(){function SourceWithImports(source,imports){this.source=source,this.imports=imports}return SourceWithImports}();return exports.SourceWithImports=SourceWithImports,global.define=__define,module.exports}),$__System.registerDynamic("70",["2b"],!0,function($__require,exports,module){"use strict";function camelCaseToDashCase(input){return lang_1.StringWrapper.replaceAllMapped(input,CAMEL_CASE_REGEXP,function(m){return"-"+m[1].toLowerCase()})}function dashCaseToCamelCase(input){return lang_1.StringWrapper.replaceAllMapped(input,DASH_CASE_REGEXP,function(m){return m[1].toUpperCase()})}function escapeSingleQuoteString(input){return lang_1.isBlank(input)?null:"'"+escapeString(input,SINGLE_QUOTE_ESCAPE_STRING_RE)+"'"}function escapeDoubleQuoteString(input){return lang_1.isBlank(input)?null:'"'+escapeString(input,DOUBLE_QUOTE_ESCAPE_STRING_RE)+'"'}function escapeString(input,re){return lang_1.StringWrapper.replaceAllMapped(input,re,function(match){return"$"==match[0]?lang_1.IS_DART?"\\$":"$":"\n"==match[0]?"\\n":"\r"==match[0]?"\\r":"\\"+match[0]})}function codeGenExportVariable(name){return lang_1.IS_DART?"const "+name+" = ":"var "+name+" = exports['"+name+"'] = "}function codeGenConstConstructorCall(name){return lang_1.IS_DART?"const "+name:"new "+name}function codeGenValueFn(params,value,fnName){return void 0===fnName&&(fnName=""),lang_1.IS_DART?codeGenFnHeader(params,fnName)+" => "+value:codeGenFnHeader(params,fnName)+" { return "+value+"; }"}function codeGenFnHeader(params,fnName){return void 0===fnName&&(fnName=""),lang_1.IS_DART?fnName+"("+params.join(",")+")":"function "+fnName+"("+params.join(",")+")"}function codeGenToString(expr){return lang_1.IS_DART?"'${"+expr+"}'":expr}function splitAtColon(input,defaultValues){var parts=lang_1.StringWrapper.split(input.trim(),/\s*:\s*/g);return parts.length>1?parts:defaultValues}function escapeValue(value){return value instanceof Expression?value.expression:lang_1.isString(value)?escapeSingleQuoteString(value):lang_1.isBlank(value)?"null":""+value}function codeGenArray(data){return"["+data.map(escapeValue).join(",")+"]"}function codeGenFlatArray(values){for(var result="([",isFirstArrayEntry=!0,concatFn=lang_1.IS_DART?".addAll":"concat",i=0;i<values.length;i++){var value=values[i];value instanceof Expression&&value.isArray?(result+="])."+concatFn+"("+value.expression+")."+concatFn+"([",isFirstArrayEntry=!0):(isFirstArrayEntry||(result+=","),isFirstArrayEntry=!1,result+=escapeValue(value))}return result+="])"}function codeGenStringMap(keyValueArray){return"{"+keyValueArray.map(codeGenKeyValue).join(",")+"}"}function codeGenKeyValue(keyValue){return escapeValue(keyValue[0])+"
|
|||
|
case"":case".":break;case"..":out.length>0?out.pop():up++;break;default:out.push(segment)}}if(""==leadingSlash){for(;up-- >0;)out.unshift("..");0===out.length&&out.push(".")}return leadingSlash+out.join("/")+trailingSlash}function _joinAndCanonicalizePath(parts){var path=parts[_ComponentIndex.Path];return path=lang_1.isBlank(path)?"":_removeDotSegments(path),parts[_ComponentIndex.Path]=path,_buildFromEncodedParts(parts[_ComponentIndex.Scheme],parts[_ComponentIndex.UserInfo],parts[_ComponentIndex.Domain],parts[_ComponentIndex.Port],path,parts[_ComponentIndex.QueryData],parts[_ComponentIndex.Fragment])}function _resolveUrl(base,url){var parts=_split(encodeURI(url)),baseParts=_split(base);if(lang_1.isPresent(parts[_ComponentIndex.Scheme]))return _joinAndCanonicalizePath(parts);parts[_ComponentIndex.Scheme]=baseParts[_ComponentIndex.Scheme];for(var i=_ComponentIndex.Scheme;i<=_ComponentIndex.Port;i++)lang_1.isBlank(parts[i])&&(parts[i]=baseParts[i]);if("/"==parts[_ComponentIndex.Path][0])return _joinAndCanonicalizePath(parts);var path=baseParts[_ComponentIndex.Path];lang_1.isBlank(path)&&(path="/");var index=path.lastIndexOf("/");return path=path.substring(0,index+1)+parts[_ComponentIndex.Path],parts[_ComponentIndex.Path]=path,_joinAndCanonicalizePath(parts)}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3c"),lang_1=$__require("2b"),application_tokens_1=$__require("90"),di_2=$__require("3c");exports.createWithoutPackagePrefix=createWithoutPackagePrefix,exports.DEFAULT_PACKAGE_URL_PROVIDER=new di_2.Provider(application_tokens_1.PACKAGE_ROOT_URL,{useValue:"/"});var UrlResolver=function(){function UrlResolver(packagePrefix){void 0===packagePrefix&&(packagePrefix=null),lang_1.isPresent(packagePrefix)&&(this._packagePrefix=lang_1.StringWrapper.stripRight(packagePrefix,"/")+"/")}return UrlResolver.prototype.resolve=function(baseUrl,url){var resolvedUrl=url;return lang_1.isPresent(baseUrl)&&baseUrl.length>0&&(resolvedUrl=_resolveUrl(baseUrl,resolvedUrl)),lang_1.isPresent(this._packagePrefix)&&"package"==getUrlScheme(resolvedUrl)&&(resolvedUrl=resolvedUrl.replace("package:",this._packagePrefix)),resolvedUrl},UrlResolver=__decorate([di_1.Injectable(),__param(0,di_1.Inject(application_tokens_1.PACKAGE_ROOT_URL)),__metadata("design:paramtypes",[String])],UrlResolver)}();exports.UrlResolver=UrlResolver,exports.getUrlScheme=getUrlScheme;var _ComponentIndex,_splitRe=lang_1.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(_ComponentIndex){_ComponentIndex[_ComponentIndex.Scheme=1]="Scheme",_ComponentIndex[_ComponentIndex.UserInfo=2]="UserInfo",_ComponentIndex[_ComponentIndex.Domain=3]="Domain",_ComponentIndex[_ComponentIndex.Port=4]="Port",_ComponentIndex[_ComponentIndex.Path=5]="Path",_ComponentIndex[_ComponentIndex.QueryData=6]="QueryData",_ComponentIndex[_ComponentIndex.Fragment=7]="Fragment"}(_ComponentIndex||(_ComponentIndex={})),global.define=__define,module.exports}),$__System.registerDynamic("91",["5e","61","63","65","85","64","6a","2b","3c","71","6b","6c","66","67","68","69","6e","5f","76","8f","7c"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}function _createChangeDetectorGenConfig(){retur
|
|||
|
var thenableThenGotten=!1;P.resolve($.setDesc({},"then",{get:function(){thenableThenGotten=!0}})),works=thenableThenGotten}}catch(e){works=!1}return works}(),sameConstructor=function(a,b){return LIBRARY&&a===P&&b===Wrapper?!0:same(a,b)},getConstructor=function(C){var S=anObject(C)[SPECIES];return void 0!=S?S:C},isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},PromiseCapability=function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)},perform=function(exec){try{exec()}catch(e){return{error:e}}},notify=function(record,isReject){if(!record.n){record.n=!0;var chain=record.c;asap(function(){for(var value=record.v,ok=1==record.s,i=0,run=function(reaction){var result,then,handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject;try{handler?(ok||(record.h=!0),result=handler===!0?value:handler(value),result===reaction.promise?reject(TypeError("Promise-chain cycle")):(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)):reject(value)}catch(e){reject(e)}};chain.length>i;)run(chain[i++]);chain.length=0,record.n=!1,isReject&&setTimeout(function(){var handler,console,promise=record.p;isUnhandled(promise)&&(isNode?process.emit("unhandledRejection",value,promise):(handler=global.onunhandledrejection)?handler({promise:promise,reason:value}):(console=global.console)&&console.error&&console.error("Unhandled promise rejection",value)),record.a=void 0},1)})}},isUnhandled=function(promise){var reaction,record=promise._d,chain=record.a||record.c,i=0;if(record.h)return!1;for(;chain.length>i;)if(reaction=chain[i++],reaction.fail||!isUnhandled(reaction.promise))return!1;return!0},$reject=function(value){var record=this;record.d||(record.d=!0,record=record.r||record,record.v=value,record.s=2,record.a=record.c.slice(),notify(record,!0))},$resolve=function(value){var then,record=this;if(!record.d){record.d=!0,record=record.r||record;try{if(record.p===value)throw TypeError("Promise can't be resolved itself");(then=isThenable(value))?asap(function(){var wrapper={r:record,d:!1};try{then.call(value,ctx($resolve,wrapper,1),ctx($reject,wrapper,1))}catch(e){$reject.call(wrapper,e)}}):(record.v=value,record.s=1,notify(record,!1))}catch(e){$reject.call({r:record,d:!1},e)}}};USE_NATIVE||(P=function(executor){aFunction(executor);var record=this._d={p:strictNew(this,P,PROMISE),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{executor(ctx($resolve,record,1),ctx($reject,record,1))}catch(err){$reject.call(record,err)}},$__require("b5")(P.prototype,{then:function(onFulfilled,onRejected){var reaction=new PromiseCapability(speciesConstructor(this,P)),promise=reaction.promise,record=this._d;return reaction.ok="function"==typeof onFulfilled?onFulfilled:!0,reaction.fail="function"==typeof onRejected&&onRejected,record.c.push(reaction),record.a&&record.a.push(reaction),record.s&¬ify(record,!1),promise},"catch":function(onRejected){return this.then(void 0,onRejected)}})),$export($export.G+$export.W+$export.F*!USE_NATIVE,{Promise:P}),$__require("b6")(P,PROMISE),$__require("b7")(PROMISE),Wrapper=$__require("30")[PROMISE],$export($export.S+$export.F*!USE_NATIVE,PROMISE,{reject:function(r){var capability=new PromiseCapability(this),$$reject=capability.reject;return $$reject(r),capability.promise}}),$export($export.S+$export.F*(!USE_NATIVE||testResolve(!0)),PROMISE,{resolve:function(x){if(x instanceof P&&sameConstructor(x.constructor,this))return x;var capability=new PromiseCapability(this),$$resolve=capability.resolve;return $$resolve(x),capability.promise}}),$export($export.S+$export.F*!(USE_NATIVE&&$__require("9f")(function(iter){P.all(iter)["catch"](function(){})})),PROMISE,{all:function(iterable){var C=getConstructor(this),capability=new PromiseCapability(C),resolve=capability.resolve,reject=capability.reject,values=[],abrupt=perform(function(){forOf(iterable,!1,values.push,valu
|
|||
|
}catch(e){}return!1},validator.isMultibyte=function(str){return multibyte.test(str)},validator.isAscii=function(str){return ascii.test(str)},validator.isFullWidth=function(str){return fullWidth.test(str)},validator.isHalfWidth=function(str){return halfWidth.test(str)},validator.isVariableWidth=function(str){return fullWidth.test(str)&&halfWidth.test(str)},validator.isSurrogatePair=function(str){return surrogatePair.test(str)},validator.isBase64=function(str){return base64.test(str)},validator.isMongoId=function(str){return validator.isHexadecimal(str)&&24===str.length},validator.isISO8601=function(str){return iso8601.test(str)},validator.ltrim=function(str,chars){var pattern=chars?new RegExp("^["+chars+"]+","g"):/^\s+/g;return str.replace(pattern,"")},validator.rtrim=function(str,chars){var pattern=chars?new RegExp("["+chars+"]+$","g"):/\s+$/g;return str.replace(pattern,"")},validator.trim=function(str,chars){var pattern=chars?new RegExp("^["+chars+"]+|["+chars+"]+$","g"):/^\s+|\s+$/g;return str.replace(pattern,"")},validator.escape=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\`/g,"`")},validator.stripLow=function(str,keep_new_lines){var chars=keep_new_lines?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return validator.blacklist(str,chars)},validator.whitelist=function(str,chars){return str.replace(new RegExp("[^"+chars+"]+","g"),"")},validator.blacklist=function(str,chars){return str.replace(new RegExp("["+chars+"]+","g"),"")};var default_normalize_email_options={lowercase:!0,remove_dots:!0,remove_extension:!0};return validator.normalizeEmail=function(email,options){if(options=merge(options,default_normalize_email_options),!validator.isEmail(email))return!1;var parts=email.split("@",2);if(parts[1]=parts[1].toLowerCase(),"gmail.com"===parts[1]||"googlemail.com"===parts[1]){if(options.remove_extension&&(parts[0]=parts[0].split("+")[0]),options.remove_dots&&(parts[0]=parts[0].replace(/\./g,"")),!parts[0].length)return!1;parts[0]=parts[0].toLowerCase(),parts[1]="gmail.com"}else options.lowercase&&(parts[0]=parts[0].toLowerCase());return parts.join("@")},validator.init(),validator}),global.define=__define,module.exports}),$__System.registerDynamic("cb",["ca"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("ca"),global.define=__define,module.exports}),$__System.registerDynamic("cc",["cb"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var validator=$__require("cb"),FormatValidators={date:function(date){if("string"!=typeof date)return!0;var matches=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(date);return null===matches?!1:matches[2]<"01"||matches[2]>"12"||matches[3]<"01"||matches[3]>"31"?!1:!0},"date-time":function(dateTime){if("string"!=typeof dateTime)return!0;var s=dateTime.toLowerCase().split("t");if(!FormatValidators.date(s[0]))return!1;var matches=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(s[1]);return null===matches?!1:matches[1]>"23"||matches[2]>"59"||matches[3]>"59"?!1:!0},email:function(email){return"string"!=typeof email?!0:validator.isEmail(email,{require_tld:!0})},hostname:function(hostname){if("string"!=typeof hostname)return!0;var valid=/^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(hostname);if(valid){if(hostname.length>255)return!1;for(var labels=hostname.split("."),i=0;i<labels.length;i++)if(labels[i].length>63)return!1}return valid},"host-name":function(hostname){return FormatValidators.hostname.call(this,hostname)},ipv4:function(ipv4){return"string"!=typeof ipv4?!0:validator.isIP(ipv4,4)},ipv6:function(ipv6){return"string"!=typeof ipv6?!0:validator.isIP(ipv6,6)},regex:function(str){try{return RegExp(str),!0}catch(e){return!1}},uri:function(uri){return this.options.strictUris?FormatValidators["strict-uri"].apply(this,arguments):"string"!=typeof uri||RegExp(
|
|||
|
report.path.pop(),report.path.pop();else if("array"===type){var idx2=schemaDependency.length;for(0===idx2&&report.addError("KEYWORD_MUST_BE",["dependencies","not empty array"]);idx2--;)"string"!=typeof schemaDependency[idx2]&&report.addError("KEYWORD_VALUE_TYPE",["dependensices","string"]);Utils.isUniqueArray(schemaDependency)===!1&&report.addError("KEYWORD_MUST_BE",["dependencies","an array with unique items"])}else report.addError("KEYWORD_VALUE_TYPE",["dependencies","object or array"])}},"enum":function(report,schema){Array.isArray(schema["enum"])===!1?report.addError("KEYWORD_TYPE_EXPECTED",["enum","array"]):0===schema["enum"].length?report.addError("KEYWORD_MUST_BE",["enum","an array with at least one element"]):Utils.isUniqueArray(schema["enum"])===!1&&report.addError("KEYWORD_MUST_BE",["enum","an array with unique elements"])},type:function(report,schema){var primitiveTypes=["array","boolean","integer","number","null","object","string"],primitiveTypeStr=primitiveTypes.join(","),isArray=Array.isArray(schema.type);if(isArray){for(var idx=schema.type.length;idx--;)-1===primitiveTypes.indexOf(schema.type[idx])&&report.addError("KEYWORD_TYPE_EXPECTED",["type",primitiveTypeStr]);Utils.isUniqueArray(schema.type)===!1&&report.addError("KEYWORD_MUST_BE",["type","an object with unique properties"])}else"string"==typeof schema.type?-1===primitiveTypes.indexOf(schema.type)&&report.addError("KEYWORD_TYPE_EXPECTED",["type",primitiveTypeStr]):report.addError("KEYWORD_TYPE_EXPECTED",["type",["string","array"]]);this.options.noEmptyStrings===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.minLength&&void 0===schema["enum"]&&void 0===schema.format&&(schema.minLength=1),this.options.noEmptyArrays===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.minItems&&(schema.minItems=1),this.options.forceProperties===!0&&("object"===schema.type||isArray&&-1!==schema.type.indexOf("object"))&&void 0===schema.properties&&void 0===schema.patternProperties&&report.addError("KEYWORD_UNDEFINED_STRICT",["properties"]),this.options.forceItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.items&&report.addError("KEYWORD_UNDEFINED_STRICT",["items"]),this.options.forceMinItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.minItems&&report.addError("KEYWORD_UNDEFINED_STRICT",["minItems"]),this.options.forceMaxItems===!0&&("array"===schema.type||isArray&&-1!==schema.type.indexOf("array"))&&void 0===schema.maxItems&&report.addError("KEYWORD_UNDEFINED_STRICT",["maxItems"]),this.options.forceMinLength===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.minLength&&void 0===schema.format&&void 0===schema["enum"]&&void 0===schema.pattern&&report.addError("KEYWORD_UNDEFINED_STRICT",["minLength"]),this.options.forceMaxLength===!0&&("string"===schema.type||isArray&&-1!==schema.type.indexOf("string"))&&void 0===schema.maxLength&&void 0===schema.format&&void 0===schema["enum"]&&void 0===schema.pattern&&report.addError("KEYWORD_UNDEFINED_STRICT",["maxLength"])},allOf:function(report,schema){if(Array.isArray(schema.allOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["allOf","array"]);else if(0===schema.allOf.length)report.addError("KEYWORD_MUST_BE",["allOf","an array with at least one element"]);else for(var idx=schema.allOf.length;idx--;)report.path.push("allOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.allOf[idx]),report.path.pop(),report.path.pop()},anyOf:function(report,schema){if(Array.isArray(schema.anyOf)===!1)report.addError("KEYWORD_TYPE_EXPECTED",["anyOf","array"]);else if(0===schema.anyOf.length)report.addError("KEYWORD_MUST_BE",["anyOf","an array with at least one element"]);else for(var idx=schema.anyOf.length;idx--;)report.path.push("anyOf"),report.path.push(idx.toString()),exports.validateSchema.call(this,report,schema.anyOf[idx]),report.path.pop(),report.path.pop()},oneOf:function(report,schema){if(Array
|
|||
|
"default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.","default":!1},"in":{type:"string",description:"Determines the location of the parameter.","enum":["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean","default":!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string","enum":["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean","enum":[!0],description:"Determines whether or not this parameter is required or optional."},"in":{type:"string",description:"Determines the location of the parameter.","enum":["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string","enum":["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},"default":{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},"enum":{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in"
|
|||
|
},global.define=__define,module.exports}),$__System.registerDynamic("fb",["fa"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("fa"),global.define=__define,module.exports}),$__System.registerDynamic("fc",["fb"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__System._nodeRequire?$__System._nodeRequire("events"):$__require("fb"),global.define=__define,module.exports}),$__System.registerDynamic("fd",["fc"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("fc"),global.define=__define,module.exports}),$__System.registerDynamic("fe",["e8"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(Buffer){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=$__require("e8").Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;if(buffer.copy(this.charBuffer,this.charReceived,0,available),this.charReceived+=available,this.charReceived<this.charLength)return"";buffer=buffer.slice(available,buffer.length),charStr=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var charCode=charStr.charCodeAt(charStr.length-1);if(!(charCode>=55296&&56319>=charCode)){if(this.charReceived=this.charLength=0,0===buffer.length)return charStr;break}this.charLength+=this.surrogateSize,charStr=""}this.detectIncompleteChar(buffer);var end=buffer.length;this.charLength&&(buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end),end-=this.charReceived),charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1,charCode=charStr.charCodeAt(end);if(charCode>=55296&&56319>=charCode){var size=this.surrogateSize;return this.charLength+=size,this.charReceived+=size,this.charBuffer.copy(this.charBuffer,size,0,size),buffer.copy(this.charBuffer,0,0,size),charStr.substring(0,end)}return charStr},StringDecoder.prototype.detectIncompleteChar=function(buffer){for(var i=buffer.length>=3?3:buffer.length;i>0;i--){var c=buffer[buffer.length-i];if(1==i&&c>>5==6){this.charLength=2;break}if(2>=i&&c>>4==14){this.charLength=3;break}if(3>=i&&c>>3==30){this.charLength=4;break}}this.charReceived=i},StringDecoder.prototype.end=function(buffer){var res="";if(buffer&&buffer.length&&(res=this.write(buffer)),this.charReceived){var cr=this.charReceived,buf=this.charBuffer,enc=this.encoding;res+=buf.slice(0,cr).toString(enc)}return res}}($__require("e8").Buffer),global.define=__define,module.exports}),$__System.registerDynamic("ff",["fe"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("fe"),
|
|||
|
}else headers[line]=!0}}return headers}var global=this,__define=global.define;global.define=void 0;var Stream=$__require("106"),util=$__require("e3"),Response=module.exports=function(res){this.offset=0,this.readable=!0};util.inherits(Response,Stream);var capable={streaming:!0,status2:!0};Response.prototype.getResponse=function(xhr){var respType=String(xhr.responseType).toLowerCase();return"blob"===respType?xhr.responseBlob||xhr.response:"arraybuffer"===respType?xhr.response:xhr.responseText},Response.prototype.getHeader=function(key){return this.headers[key.toLowerCase()]},Response.prototype.handle=function(res){if(2===res.readyState&&capable.status2){try{this.statusCode=res.status,this.headers=parseHeaders(res)}catch(err){capable.status2=!1}capable.status2&&this.emit("ready")}else if(capable.streaming&&3===res.readyState){try{this.statusCode||(this.statusCode=res.status,this.headers=parseHeaders(res),this.emit("ready"))}catch(err){}try{this._emitData(res)}catch(err){capable.streaming=!1}}else 4===res.readyState&&(this.statusCode||(this.statusCode=res.status,this.emit("ready")),this._emitData(res),res.error?this.emit("error",this.getResponse(res)):this.emit("end"),this.emit("close"))},Response.prototype._emitData=function(res){var respBody=this.getResponse(res);return respBody.toString().match(/ArrayBuffer/)?(this.emit("data",new Uint8Array(respBody,this.offset)),void(this.offset=respBody.byteLength)):void(respBody.length>this.offset&&(this.emit("data",respBody.slice(this.offset)),this.offset=respBody.length))};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)};return global.define=__define,module.exports}),$__System.registerDynamic("108",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(){function InvalidCharacterError(message){this.message=message}var object="undefined"!=typeof exports?exports:this,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";InvalidCharacterError.prototype=new Error,InvalidCharacterError.prototype.name="InvalidCharacterError",object.btoa||(object.btoa=function(input){for(var block,charCode,idx=0,map=chars,output="";input.charAt(0|idx)||(map="=",idx%1);output+=map.charAt(63&block>>8-idx%1*8)){if(charCode=input.charCodeAt(idx+=.75),charCode>255)throw new InvalidCharacterError("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");block=block<<8|charCode}return output}),object.atob||(object.atob=function(input){if(input=input.replace(/=+$/,""),input.length%4==1)throw new InvalidCharacterError("'atob' failed: The string to be decoded is not correctly encoded.");for(var bs,buffer,bc=0,idx=0,output="";buffer=input.charAt(idx++);~buffer&&(bs=bc%4?64*bs+buffer:buffer,bc++%4)?output+=String.fromCharCode(255&bs>>(-2*bc&6)):0)buffer=chars.indexOf(buffer);return output})}(),global.define=__define,module.exports}),$__System.registerDynamic("109",["108"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("108"),global.define=__define,module.exports}),$__System.registerDynamic("10a",["106","107","109","101"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var Stream=$__require("106"),Response=$__require("107"),Base64=$__require("109"),inherits=$__require("101"),Request=module.exports=function(xhr,params){var self=this;self.writable=!0,self.xhr=xhr,self.body=[],self.uri=(params.protocol||"http:")+"//"+params.host+(params.port?":"+params.port:"")+(params.path||"/"),"undefined"==typeof params.withCredentials&&(params.withCredentials=!0);try{xhr.withCredentials=params.withCredentials}catch(e){}if(params.responseType)try{xhr.responseType=params.responseType}catch(e){}if(xhr.open(params.method||"GET",self.uri,!0),xhr.onerror=function(event){self.emit("error",new Error("Network error"))},self._headers={},params.headers)for(var keys=objectKeys(params.headers),i=0;i<keys.length;i++){var key=keys[i];if(self.isSafeR
|
|||
|
global.define=__define,module.exports}),$__System.registerDynamic("116",["ed","111","113","ea","117","112","eb","de","37"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function read(path,$refs,options){try{path=util.path.stripHash(path),util.debug("Reading %s",path);var $ref=$refs._get$Ref(path);return $ref&&!$ref.isExpired()?(util.debug(" cached from %s",$ref.pathType),Promise.resolve({$ref:$ref,cached:!0})):($ref=new $Ref($refs,path),read$Ref($ref,options))}catch(e){return Promise.reject(e)}}function read$Ref($ref,options){try{var promise=options.$refs.external&&(read$RefFile($ref,options)||read$RefUrl($ref,options));return promise?promise.then(function(data){var value=parse(data,$ref.path,options);return $ref.setValue(value,options),{$ref:$ref,cached:!1}}):Promise.reject(ono.syntax('Unable to resolve $ref pointer "%s"',$ref.path))}catch(e){return Promise.reject(e)}}function read$RefFile($ref,options){return process.browser||util.path.isUrl($ref.path)?void 0:($ref.pathType="fs",new Promise(function(resolve,reject){var file;try{file=util.path.urlToLocalPath($ref.path)}catch(err){reject(ono.uri(err,"Malformed URI: %s",$ref.path))}util.debug("Opening file: %s",file);try{fs.readFile(file,function(err,data){err?reject(ono(err,'Error opening file "%s"',$ref.path)):resolve(data)})}catch(err){reject(ono(err,'Error opening file "%s"',file))}}))}function read$RefUrl($ref,options){var u=url.parse($ref.path);return process.browser&&!u.protocol&&(u.protocol=url.parse(location.href).protocol),"http:"===u.protocol?($ref.pathType="http",download(u,options)):"https:"===u.protocol?($ref.pathType="https",download(u,options)):void 0}var fs=$__require("ed"),download=$__require("111"),parse=$__require("113"),util=$__require("ea"),$Ref=$__require("117"),Promise=$__require("112"),url=$__require("eb"),ono=$__require("de");module.exports=read}($__require("37")),global.define=__define,module.exports}),$__System.registerDynamic("118",["112","117","119","116","ea","eb"],!0,function($__require,exports,module){"use strict";function resolve(parser,options){try{if(!options.$refs.external)return Promise.resolve();util.debug("Resolving $ref pointers in %s",parser.$refs._basePath);var promises=crawl(parser.schema,parser.$refs._basePath+"#",parser.$refs,options);return Promise.all(promises)}catch(e){return Promise.reject(e)}}function crawl(obj,path,$refs,options){var promises=[];return obj&&"object"==typeof obj&&Object.keys(obj).forEach(function(key){var keyPath=Pointer.join(path,key),value=obj[key];if($Ref.isExternal$Ref(value)){var promise=resolve$Ref(value,keyPath,$refs,options);promises.push(promise)}else promises=promises.concat(crawl(value,keyPath,$refs,options))}),promises}function resolve$Ref($ref,path,$refs,options){util.debug('Resolving $ref pointer "%s" at %s',$ref.$ref,path);var resolvedPath=url.resolve(path,$ref.$ref);return read(resolvedPath,$refs,options).then(function(result){if(!result.cached){util.debug("Resolving $ref pointers in %s",result.$ref.path);var promises=crawl(result.$ref.value,result.$ref.path+"#",$refs,options);return Promise.all(promises)}})}var global=this,__define=global.define;global.define=void 0;var Promise=$__require("112"),$Ref=$__require("117"),Pointer=$__require("119"),read=$__require("116"),util=$__require("ea"),url=$__require("eb");return module.exports=resolve,global.define=__define,module.exports}),$__System.registerDynamic("11a",["117","119","ea","eb"],!0,function($__require,exports,module){"use strict";function bundle(parser,options){util.debug("Bundling $ref pointers in %s",parser.$refs._basePath);var inventory=[];crawl(parser.schema,parser.$refs._basePath+"#","#",inventory,parser.$refs,options),remap(inventory)}function crawl(obj,path,pathFromRoot,inventory,$refs,options){if(obj&&"object"==typeof obj){var keys=Object.keys(obj),defs=keys.indexOf("definitions");defs>0&&keys.splice(0,0,keys.splice(defs,1)[0]),keys.forEach(function(key){var keyPath=Pointer.join(path,key),keyPathFromRoot=Pointer.join(pathFromRoot,key)
|
|||
|
65279===input.charCodeAt(0)&&(input=input.slice(1)));var state=new State(input,options);for(state.input+="\x00";32===state.input.charCodeAt(state.position);)state.lineIndent+=1,state.position+=1;for(;state.position<state.length-1;)readDocument(state);return state.documents}function loadAll(input,iterator,options){var index,length,documents=loadDocuments(input,options);for(index=0,length=documents.length;length>index;index+=1)iterator(documents[index])}function load(input,options){var documents=loadDocuments(input,options);if(0!==documents.length){if(1===documents.length)return documents[0];throw new YAMLException("expected a single document in the stream, but found more")}}function safeLoadAll(input,output,options){loadAll(input,output,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}function safeLoad(input,options){return load(input,common.extend({schema:DEFAULT_SAFE_SCHEMA},options))}var global=this,__define=global.define;global.define=void 0;for(var common=$__require("11e"),YAMLException=$__require("120"),Mark=$__require("11d"),DEFAULT_SAFE_SCHEMA=$__require("121"),DEFAULT_FULL_SCHEMA=$__require("122"),_hasOwnProperty=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;256>i;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);var directiveHandlers={YAML:function(state,name,args){var match,major,minor;null!==state.version&&throwError(state,"duplication of %YAML directive"),1!==args.length&&throwError(state,"YAML directive accepts exactly one argument"),match=/^([0-9]+)\.([0-9]+)$/.exec(args[0]),null===match&&throwError(state,"ill-formed argument of the YAML directive"),major=parseInt(match[1],10),minor=parseInt(match[2],10),1!==major&&throwError(state,"unacceptable YAML version of the document"),state.version=args[0],state.checkLineBreaks=2>minor,1!==minor&&2!==minor&&throwWarning(state,"unsupported YAML version of the document")},TAG:function(state,name,args){var handle,prefix;2!==args.length&&throwError(state,"TAG directive accepts exactly two arguments"),handle=args[0],prefix=args[1],PATTERN_TAG_HANDLE.test(handle)||throwError(state,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty.call(state.tagMap,handle)&&throwError(state,'there is a previously declared suffix for "'+handle+'" tag handle'),PATTERN_TAG_URI.test(prefix)||throwError(state,"ill-formed tag prefix (second argument) of the TAG directive"),state.tagMap[handle]=prefix}};return module.exports.loadAll=loadAll,module.exports.load=load,module.exports.safeLoadAll=safeLoadAll,module.exports.safeLoad=safeLoad,global.define=__define,module.exports}),$__System.registerDynamic("123",["11e","120","122","121"],!0,function($__require,exports,module){"use strict";function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(null===map)return{};for(result={},keys=Object.keys(map),index=0,length=keys.length;length>index;index+=1)tag=keys[index],style=String(map[tag]),"!!"===tag.slice(0,2)&&(tag="tag:yaml.org,2002:"+tag.slice(2)),type=schema.compiledTypeMap[tag],type&&_hasOwnProperty.call(type.styleAliases,style)&&(style=type.styleAliases[style]),result[tag]=style;return result}function encodeHex(character){var string,handle,length;if(string=character.toString(16).toUpperCase(),255>=character)handle="x",length=2;else if(65535>=character)handle="u",length=4;else{if(!(4294967295>=character))throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");handle="U",length=8}return"\\"+handle+common.rep
|
|||
|
NodeBuffer?new NodeBuffer(result):result}function representYamlBinary(object){var idx,tail,result="",bits=0,max=object.length,map=BASE64_MAP;for(idx=0;max>idx;idx++)idx%3===0&&idx&&(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[63&bits]),bits=(bits<<8)+object[idx];return tail=max%3,0===tail?(result+=map[bits>>18&63],result+=map[bits>>12&63],result+=map[bits>>6&63],result+=map[63&bits]):2===tail?(result+=map[bits>>10&63],result+=map[bits>>4&63],result+=map[bits<<2&63],result+=map[64]):1===tail&&(result+=map[bits>>2&63],result+=map[bits<<4&63],result+=map[64],result+=map[64]),result}function isBinary(object){return NodeBuffer&&NodeBuffer.isBuffer(object)}var NodeBuffer=$__require("@empty").Buffer,Type=$__require("125"),BASE64_MAP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";module.exports=new Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})}($__require("@empty").Buffer),global.define=__define,module.exports}),$__System.registerDynamic("133",["125"],!0,function($__require,exports,module){"use strict";function resolveYamlOmap(data){if(null===data)return!0;var index,length,pair,pairKey,pairHasKey,objectKeys=[],object=data;for(index=0,length=object.length;length>index;index+=1){if(pair=object[index],pairHasKey=!1,"[object Object]"!==_toString.call(pair))return!1;for(pairKey in pair)if(_hasOwnProperty.call(pair,pairKey)){if(pairHasKey)return!1;pairHasKey=!0}if(!pairHasKey)return!1;if(-1!==objectKeys.indexOf(pairKey))return!1;objectKeys.push(pairKey)}return!0}function constructYamlOmap(data){return null!==data?data:[]}var global=this,__define=global.define;global.define=void 0;var Type=$__require("125"),_hasOwnProperty=Object.prototype.hasOwnProperty,_toString=Object.prototype.toString;return module.exports=new Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),global.define=__define,module.exports}),$__System.registerDynamic("134",["125"],!0,function($__require,exports,module){"use strict";function resolveYamlPairs(data){if(null===data)return!0;var index,length,pair,keys,result,object=data;for(result=new Array(object.length),index=0,length=object.length;length>index;index+=1){if(pair=object[index],"[object Object]"!==_toString.call(pair))return!1;if(keys=Object.keys(pair),1!==keys.length)return!1;result[index]=[keys[0],pair[keys[0]]]}return!0}function constructYamlPairs(data){if(null===data)return[];var index,length,pair,keys,result,object=data;for(result=new Array(object.length),index=0,length=object.length;length>index;index+=1)pair=object[index],keys=Object.keys(pair),result[index]=[keys[0],pair[keys[0]]];return result}var global=this,__define=global.define;global.define=void 0;var Type=$__require("125"),_toString=Object.prototype.toString;return module.exports=new Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),global.define=__define,module.exports}),$__System.registerDynamic("135",["125"],!0,function($__require,exports,module){"use strict";function resolveYamlSet(data){if(null===data)return!0;var key,object=data;for(key in object)if(_hasOwnProperty.call(object,key)&&null!==object[key])return!1;return!0}function constructYamlSet(data){return null!==data?data:{}}var global=this,__define=global.define;global.define=void 0;var Type=$__require("125"),_hasOwnProperty=Object.prototype.hasOwnProperty;return module.exports=new Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),global.define=__define,module.exports}),$__System.registerDynamic("121",["124","12f","130","131","132","133","134","135"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var Schema=$__require("124");return module.exports=new Schema({include:[$__require("12f")],implicit:[$__require("130"),$__require("131")],explicit:[$__require("132"),$__require("133"),$__require("134"),$__requi
|
|||
|
offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return 16>n?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;length>i;i++){if(codePoint=string.charCodeAt(i),codePoint>55295&&57344>codePoint){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,128>codePoint){if((units-=1)<0)break;bytes.push(codePoint)}else if(2048>codePoint){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(65536>codePoint){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(1114112>codePoint))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;i++)byteArray.push(255&str.charCodeAt(i));return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);i++)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;length>i&&!(i+offset>=dst.length||i>=src.length);i++)dst[i+offset]=src[i];return i}var global=this,__define=global.define;global.define=void 0;var base64=$__require("140"),ieee754=$__require("142"),isArray=$__require("144");exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.poolSize=8192;var rootParent={};Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT?(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array):(Buffer.prototype.length=void 0,Buffer.prototype.parent=void 0),Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);len>i&&a[i]===b[i];)++i;return i!==len&&(x=a[i],y=b[i]),y>x?-1:x>y?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError("list argument must be an Array of Buffers.");if(0===list.length)return new Buffer(0);var i;if(void 0===length)for(length=0,i=0;i<list.length;i++)length+=list[i].length;var buf=new Buffer(length),pos=0;for(i=0;i<list.length;i++){var item=list[i];item.copy(buf,pos),pos+=item.length}return buf},Buffer.byteLength=byteLength,Buffer.prototype.toString=function(){var length=0|this.length;return 0===length?"":0===arguments.length?utf8Slice(this,0,length):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:0===Buffer.compare(this,b)},Buffer.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return this.length>0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),"<Buffer "+str+">"},Buffer.prototype.compare=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?0:Buffer.compare(this,b)},Buffer.prototy
|
|||
|
isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),!0)):output.push("");return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\n")>-1&&(str=array?str.split("\n").map(function(line){return" "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return" "+line}).join("\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^
|
|||
|
circular&&foundCircularReference(path,$refs,options);var dereferencedValue=util.dereference($ref,pointer.value);return circular||(circular=crawl(dereferencedValue,pointer.path,pathFromRoot,parents,$refs,options)),circular&&!directCircular&&"ignore"===options.$refs.circular&&(dereferencedValue=$ref),directCircular&&(dereferencedValue.$ref=pathFromRoot),{circular:circular,value:dereferencedValue}}function foundCircularReference(keyPath,$refs,options){if($refs.circular=!0,!options.$refs.circular)throw ono.reference("Circular $ref pointer found at %s",keyPath);return!0}var global=this,__define=global.define;global.define=void 0;var $Ref=$__require("117"),Pointer=$__require("119"),util=$__require("ea"),ono=$__require("de"),url=$__require("eb");return module.exports=dereference,global.define=__define,module.exports}),$__System.registerDynamic("15c",["dc","e1","dd","e4","e6","11c","de","13e","13d"],!0,function($__require,exports,module){"use strict";function SwaggerParser(){$RefParser.apply(this,arguments)}var global=this,__define=global.define;global.define=void 0;var validateSchema=$__require("dc"),validateSpec=$__require("e1"),util=$__require("dd"),Options=$__require("e4"),Promise=$__require("e6"),maybe=$__require("11c"),ono=$__require("de"),$RefParser=$__require("13e"),dereference=$__require("13d");return module.exports=SwaggerParser,util.inherits(SwaggerParser,$RefParser),SwaggerParser.YAML=$RefParser.YAML,SwaggerParser.parse=$RefParser.parse,SwaggerParser.resolve=$RefParser.resolve,SwaggerParser.bundle=$RefParser.bundle,SwaggerParser.dereference=$RefParser.dereference,Object.defineProperty(SwaggerParser.prototype,"api",{configurable:!0,enumerable:!0,get:function(){return this.schema}}),SwaggerParser.prototype.parse=function(api,options,callback){"function"==typeof options&&(callback=options,options=void 0),options=new Options(options);var apiParam=api;return $RefParser.prototype.parse.call(this,api,options).then(function(schema){var supportedSwaggerVersions=["2.0"];if(void 0===schema.swagger||void 0===schema.info||void 0===schema.paths)throw ono.syntax("%s is not a valid Swagger API definition",apiParam);if("number"==typeof schema.swagger)throw ono.syntax('Swagger version number must be a string (e.g. "2.0") not a number.');if("number"==typeof schema.info.version)throw ono.syntax('API version number must be a string (e.g. "1.0.0") not a number.');if(-1===supportedSwaggerVersions.indexOf(schema.swagger))throw ono.syntax("Unsupported Swagger version: %d. Swagger Parser only supports version %s",schema.swagger,supportedSwaggerVersions.join(", "));return maybe(callback,Promise.resolve(schema))})["catch"](function(err){return maybe(callback,Promise.reject(err))})},SwaggerParser.validate=function(api,options,callback){var Class=this;return(new Class).validate(api,options,callback)},SwaggerParser.prototype.validate=function(api,options,callback){"function"==typeof options&&(callback=options,options=void 0),options=new Options(options);var me=this,circular$RefOption=options.$refs.circular;return options.validate.schema&&(options.$refs.circular="ignore"),this.dereference(api,options).then(function(){if(options.$refs.circular=circular$RefOption,options.validate.schema&&(validateSchema(me.api),me.$refs.circular))if(circular$RefOption===!0)dereference(me,options);else if(circular$RefOption===!1)throw ono.reference("The API contains circular references");return options.validate.spec&&validateSpec(me.api),maybe(callback,Promise.resolve(me.schema))})["catch"](function(err){return maybe(callback,Promise.reject(err))})},global.define=__define,module.exports}),$__System.registerDynamic("15d",["15c"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("15c"),global.define=__define,module.exports}),$__System.registerDynamic("b9",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,global.define=__define,module.exports}),$__System.registerDynamic("15e",["15f","160"],!0,function($__require,exports,module){var
|
|||
|
root=root||_.languages;var grammar=root[inside];if(2==arguments.length){insert=arguments[1];for(var newToken in insert)insert.hasOwnProperty(newToken)&&(grammar[newToken]=insert[newToken]);return grammar}var ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);ret[token]=grammar[token]}return _.languages.DFS(_.languages,function(key,value){value===root[inside]&&key!=inside&&(this[key]=ret)}),root[inside]=ret},DFS:function(o,callback,type){for(var i in o)o.hasOwnProperty(i)&&(callback.call(o,i,o[i],type||i),"Object"===_.util.type(o[i])?_.languages.DFS(o[i],callback):"Array"===_.util.type(o[i])&&_.languages.DFS(o[i],callback,i))}},plugins:{},highlightAll:function(async,callback){for(var element,elements=document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),i=0;element=elements[i++];)_.highlightElement(element,async===!0,callback)},highlightElement:function(element,async,callback){for(var language,grammar,parent=element;parent&&!lang.test(parent.className);)parent=parent.parentNode;parent&&(language=(parent.className.match(lang)||[,""])[1],grammar=_.languages[language]),element.className=element.className.replace(lang,"").replace(/\s+/g," ")+" language-"+language,parent=element.parentNode,/pre/i.test(parent.nodeName)&&(parent.className=parent.className.replace(lang,"").replace(/\s+/g," ")+" language-"+language);var code=element.textContent,env={element:element,language:language,grammar:grammar,code:code};if(!code||!grammar)return void _.hooks.run("complete",env);if(_.hooks.run("before-highlight",env),async&&_self.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){env.highlightedCode=evt.data,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,callback&&callback.call(env.element),_.hooks.run("after-highlight",env),_.hooks.run("complete",env)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else env.highlightedCode=_.highlight(env.code,env.grammar,env.language),_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,callback&&callback.call(element),_.hooks.run("after-highlight",env),_.hooks.run("complete",env)},highlight:function(text,grammar,language){var tokens=_.tokenize(text,grammar);return Token.stringify(_.util.encode(tokens),language)},tokenize:function(text,grammar,language){var Token=_.Token,strarr=[text],rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}tokenloop:for(var token in grammar)if(grammar.hasOwnProperty(token)&&grammar[token]){var patterns=grammar[token];patterns="Array"===_.util.type(patterns)?patterns:[patterns];for(var j=0;j<patterns.length;++j){var pattern=patterns[j],inside=pattern.inside,lookbehind=!!pattern.lookbehind,lookbehindLength=0,alias=pattern.alias;pattern=pattern.pattern||pattern;for(var i=0;i<strarr.length;i++){var str=strarr[i];if(strarr.length>text.length)break tokenloop;if(!(str instanceof Token)){pattern.lastIndex=0;var match=pattern.exec(str);if(match){lookbehind&&(lookbehindLength=match[1].length);var from=match.index-1+lookbehindLength,match=match[0].slice(lookbehindLength),len=match.length,to=from+len,before=str.slice(0,from+1),after=str.slice(to+1),args=[i,1];before&&args.push(before);var wrapped=new Token(token,inside?_.tokenize(match,inside):match,alias);args.push(wrapped),after&&args.push(after),Array.prototype.splice.apply(strarr,args)}}}}}return strarr},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(callbacks&&callbacks.length)for(var callback,i=0;callback=callbacks[i++];)callback(env)}}},Token=_.Token=function(type,content,alias){this.type=type,this.content=content,this.alias=alias};if(Token.stringify=function(o,language,parent){if("string"==typeof o)return o;if("Array"===_.util.type(o))return o.map(fun
|
|||
|
}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:interpolation}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:interpolation}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:interpolation}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:interpolation}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:interpolation}}]}(Prism),global.define=__define,module.exports}),$__System.registerDynamic("187",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(Prism){var insideString={variable:[{pattern:/\$?\(\([\w\W]+?\)\)/,inside:{variable:[{pattern:/(^\$\(\([\w\W]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\([^)]+\)|`[^`]+`/,inside:{variable:/^\$\(|^`|\)$|`$/}},/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i]};Prism.languages.bash={shebang:{pattern:/^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,alias:"important"},comment:{pattern:/(^|[^"{\\])#.*/,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,lookbehind:!0,inside:insideString},{pattern:/("|')(?:\\?[\s\S])*?\1/g,inside:insideString}],variable:insideString.variable,"function":{pattern:/(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/,lookbehind:!0},keyword:{pattern:/(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/,lookbehind:!0},"boolean":{pattern:/(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,lookbehind:!0},operator:/&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];]/};var inside=insideString.variable[1].inside;inside["function"]=Prism.languages.bash["function"],inside.keyword=Prism.languages.bash.keyword,inside["boolean"]=Prism.languages.bash["boolean"],inside.operator=Prism.languages.bash.operator,inside.punctuation=Prism.languages.bash.punctuation}(Prism),global.define=__define,module.exports}),$__System.registerDynamic("188",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|
|
|||
|
out+=this.renderer.strong(this.output(cap[2]||cap[1]));else if(cap=this.rules.em.exec(src))src=src.substring(cap[0].length),out+=this.renderer.em(this.output(cap[2]||cap[1]));else if(cap=this.rules.code.exec(src))src=src.substring(cap[0].length),out+=this.renderer.codespan(escape(cap[2],!0));else if(cap=this.rules.br.exec(src))src=src.substring(cap[0].length),out+=this.renderer.br();else if(cap=this.rules.del.exec(src))src=src.substring(cap[0].length),out+=this.renderer.del(this.output(cap[1]));else if(cap=this.rules.text.exec(src))src=src.substring(cap[0].length),out+=this.renderer.text(escape(this.smartypants(cap[0])));else if(src)throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}else src=src.substring(cap[0].length),text=escape(cap[1]),href=text,out+=this.renderer.link(href,null,text);return out},InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return"!"!==cap[0].charAt(0)?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))},InlineLexer.prototype.smartypants=function(text){return this.options.smartypants?text.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):text},InlineLexer.prototype.mangle=function(text){if(!this.options.mangle)return text;for(var ch,out="",l=text.length,i=0;l>i;i++)ch=text.charCodeAt(i),Math.random()>.5&&(ch="x"+ch.toString(16)),out+="&#"+ch+";";return out},Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);null!=out&&out!==code&&(escaped=!0,code=out)}return lang?'<pre><code class="'+this.options.langPrefix+escape(lang,!0)+'">'+(escaped?code:escape(code,!0))+"\n</code></pre>\n":"<pre><code>"+(escaped?code:escape(code,!0))+"\n</code></pre>"},Renderer.prototype.blockquote=function(quote){return"<blockquote>\n"+quote+"</blockquote>\n"},Renderer.prototype.html=function(html){return html},Renderer.prototype.heading=function(text,level,raw){return"<h"+level+' id="'+this.options.headerPrefix+raw.toLowerCase().replace(/[^\w]+/g,"-")+'">'+text+"</h"+level+">\n"},Renderer.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"</"+type+">\n"},Renderer.prototype.listitem=function(text){return"<li>"+text+"</li>\n"},Renderer.prototype.paragraph=function(text){return"<p>"+text+"</p>\n"},Renderer.prototype.table=function(header,body){return"<table>\n<thead>\n"+header+"</thead>\n<tbody>\n"+body+"</tbody>\n</table>\n"},Renderer.prototype.tablerow=function(content){return"<tr>\n"+content+"</tr>\n"},Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td",tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"</"+type+">\n"},Renderer.prototype.strong=function(text){return"<strong>"+text+"</strong>"},Renderer.prototype.em=function(text){return"<em>"+text+"</em>"},Renderer.prototype.codespan=function(text){return"<code>"+text+"</code>"},Renderer.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},Renderer.prototype.del=function(text){return"<del>"+text+"</del>"},Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===prot.indexOf("javascript:")||0===prot.indexOf("vbscript:"))return""}var out='<a href="'+href+'"';return title&&(out+=' title="'+title+'"'),out+=">"+text+"</a>"},Renderer.prototype.image=function(href,title,text){var out='<img src="'+href+'" alt="'+text+'"';return title&&(out+=' title="'+title+'"'),out+=this.options.xhtml?"/>":">"},Renderer.prototype.text=function(text){return text},Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)},Parser.prototype.parse=function(src){this.inline=new
|
|||
|
module.exports}),$__System.registerDynamic("195",["2b","3f","194","15","3a","18e"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),exceptions_1=$__require("3f"),intl_1=$__require("194"),core_1=$__require("15"),collection_1=$__require("3a"),invalid_pipe_argument_exception_1=$__require("18e"),defaultLocale="en-US",_re=lang_1.RegExpWrapper.create("^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$"),NumberPipe=function(){function NumberPipe(){}return NumberPipe._format=function(value,style,digits,currency,currencyAsSymbol){if(void 0===currency&&(currency=null),void 0===currencyAsSymbol&&(currencyAsSymbol=!1),lang_1.isBlank(value))return null;if(!lang_1.isNumber(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(NumberPipe,value);var minInt=1,minFraction=0,maxFraction=3;if(lang_1.isPresent(digits)){var parts=lang_1.RegExpWrapper.firstMatch(_re,digits);if(lang_1.isBlank(parts))throw new exceptions_1.BaseException(digits+" is not a valid digit info for number pipes");lang_1.isPresent(parts[1])&&(minInt=lang_1.NumberWrapper.parseIntAutoRadix(parts[1])),lang_1.isPresent(parts[3])&&(minFraction=lang_1.NumberWrapper.parseIntAutoRadix(parts[3])),lang_1.isPresent(parts[5])&&(maxFraction=lang_1.NumberWrapper.parseIntAutoRadix(parts[5]))}return intl_1.NumberFormatter.format(value,defaultLocale,style,{minimumIntegerDigits:minInt,minimumFractionDigits:minFraction,maximumFractionDigits:maxFraction,currency:currency,currencyAsSymbol:currencyAsSymbol})},NumberPipe=__decorate([lang_1.CONST(),core_1.Injectable(),__metadata("design:paramtypes",[])],NumberPipe)}();exports.NumberPipe=NumberPipe;var DecimalPipe=function(_super){function DecimalPipe(){_super.apply(this,arguments)}return __extends(DecimalPipe,_super),DecimalPipe.prototype.transform=function(value,args){var digits=collection_1.ListWrapper.first(args);return NumberPipe._format(value,intl_1.NumberFormatStyle.Decimal,digits)},DecimalPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"number"}),core_1.Injectable(),__metadata("design:paramtypes",[])],DecimalPipe)}(NumberPipe);exports.DecimalPipe=DecimalPipe;var PercentPipe=function(_super){function PercentPipe(){_super.apply(this,arguments)}return __extends(PercentPipe,_super),PercentPipe.prototype.transform=function(value,args){var digits=collection_1.ListWrapper.first(args);return NumberPipe._format(value,intl_1.NumberFormatStyle.Percent,digits)},PercentPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"percent"}),core_1.Injectable(),__metadata("design:paramtypes",[])],PercentPipe)}(NumberPipe);exports.PercentPipe=PercentPipe;var CurrencyPipe=function(_super){function CurrencyPipe(){_super.apply(this,arguments)}return __extends(CurrencyPipe,_super),CurrencyPipe.prototype.transform=function(value,args){var currencyCode=lang_1.isPresent(args)&&args.length>0?args[0]:"USD",symbolDisplay=lang_1.isPresent(args)&&args.length>1?args[1]:!1,digits=lang_1.isPresent(args)&&args.length>2?args[2]:null;return NumberPipe._format(value,intl_1.NumberFormatStyle.Currency,digits,currencyCode,symbolDisplay)},CurrencyPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"currency"}),core_1.Injectable(),__metadata("design:paramtypes",[])],CurrencyPipe)}(NumberPipe);return
|
|||
|
})})},NgForm.prototype.getControl=function(dir){return this.form.find(dir.path)},NgForm.prototype.removeControl=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path);lang_1.isPresent(container)&&(container.removeControl(dir.name),container.updateValueAndValidity({emitEvent:!1}))})},NgForm.prototype.addControlGroup=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path),group=new model_1.ControlGroup({});shared_1.setUpControlGroup(group,dir),container.addControl(dir.name,group),group.updateValueAndValidity({emitEvent:!1})})},NgForm.prototype.removeControlGroup=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path);lang_1.isPresent(container)&&(container.removeControl(dir.name),container.updateValueAndValidity({emitEvent:!1}))})},NgForm.prototype.getControlGroup=function(dir){return this.form.find(dir.path)},NgForm.prototype.updateModel=function(dir,value){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var ctrl=_this.form.find(dir.path);ctrl.updateValue(value)})},NgForm.prototype.onSubmit=function(){return async_1.ObservableWrapper.callEmit(this.ngSubmit,null),!1},NgForm.prototype._findContainer=function(path){return path.pop(),collection_1.ListWrapper.isEmpty(path)?this.form:this.form.find(path)},NgForm=__decorate([core_1.Directive({selector:"form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]",bindings:[formDirectiveProvider],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__metadata("design:paramtypes",[Array,Array])],NgForm)}(control_container_1.ControlContainer);return exports.NgForm=NgForm,global.define=__define,module.exports}),$__System.registerDynamic("1a4",["15","19a","2b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("15"),control_value_accessor_1=$__require("19a"),lang_1=$__require("2b"),DEFAULT_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return DefaultValueAccessor}),multi:!0})),DefaultValueAccessor=function(){function DefaultValueAccessor(_renderer,_elementRef){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=function(_){},this.onTouched=function(){}}return DefaultValueAccessor.prototype.writeValue=function(value){var normalizedValue=lang_1.isBlank(value)?"":value;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",normalizedValue)},DefaultValueAccessor.prototype.registerOnChange=function(fn){this.onChange=fn},DefaultValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},DefaultValueAccessor=__decorate([core_1.Directive({selector:"input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[DEFAULT_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef])],DefaultVal
|
|||
|
return!isOptional||collection_1.StringMapWrapper.get(this._optionals,controlName)},ControlGroup}(AbstractControl);exports.ControlGroup=ControlGroup;var ControlArray=function(_super){function ControlArray(controls,validator,asyncValidator){void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),_super.call(this,validator,asyncValidator),this.controls=controls,this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return __extends(ControlArray,_super),ControlArray.prototype.at=function(index){return this.controls[index]},ControlArray.prototype.push=function(control){this.controls.push(control),control.setParent(this),this.updateValueAndValidity()},ControlArray.prototype.insert=function(index,control){collection_1.ListWrapper.insert(this.controls,index,control),control.setParent(this),this.updateValueAndValidity()},ControlArray.prototype.removeAt=function(index){collection_1.ListWrapper.removeAt(this.controls,index),this.updateValueAndValidity()},Object.defineProperty(ControlArray.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),ControlArray.prototype._updateValue=function(){this._value=this.controls.map(function(control){return control.value})},ControlArray.prototype._anyControlsHaveStatus=function(status){return this.controls.some(function(c){return c.status==status})},ControlArray.prototype._setParentForControls=function(){var _this=this;this.controls.forEach(function(control){control.setParent(_this)})},ControlArray}(AbstractControl);return exports.ControlArray=ControlArray,global.define=__define,module.exports}),$__System.registerDynamic("1ad",["15","3a","2b","19f"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("15"),collection_1=$__require("3a"),lang_1=$__require("2b"),modelModule=$__require("19f"),FormBuilder=function(){function FormBuilder(){}return FormBuilder.prototype.group=function(controlsConfig,extra){void 0===extra&&(extra=null);var controls=this._reduceControls(controlsConfig),optionals=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"optionals"):null,validator=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"validator"):null,asyncValidator=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"asyncValidator"):null;return new modelModule.ControlGroup(controls,optionals,validator,asyncValidator)},FormBuilder.prototype.control=function(value,validator,asyncValidator){return void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),new modelModule.Control(value,validator,asyncValidator)},FormBuilder.prototype.array=function(controlsConfig,validator,asyncValidator){var _this=this;void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null);var controls=controlsConfig.map(function(c){return _this._createControl(c)});return new modelModule.ControlArray(controls,validator,asyncValidator)},FormBuilder.prototype._reduceControls=function(controlsConfig){var _this=this,controls={};return collection_1.StringMapWrapper.forEach(controlsConfig,function(controlConfig,controlName){controls[controlName]=_this._createControl(controlConfig)}),controls},FormBuilder.prototype._createControl=function(controlConfig){if(controlConfig instanceof modelModule.Control||controlConfig instanceof modelModule.ControlGroup||controlConfig instanceo
|
|||
|
return null===bindingFn?completer.resolve(this._initApp(zone,additionalProviders)):zone.run(function(){async_1.PromiseWrapper.then(bindingFn(zone),function(providers){lang_1.isPresent(additionalProviders)&&(providers=collection_1.ListWrapper.concat(providers,additionalProviders));var promise=_this._initApp(zone,providers);completer.resolve(promise)})}),completer.promise},PlatformRef_.prototype._initApp=function(zone,providers){var injector,app,_this=this;zone.run(function(){providers=collection_1.ListWrapper.concat(providers,[di_1.provide(ng_zone_1.NgZone,{useValue:zone}),di_1.provide(ApplicationRef,{useFactory:function(){return app},deps:[]})]);var exceptionHandler;try{injector=_this.injector.resolveAndCreateChild(providers),exceptionHandler=injector.get(exceptions_1.ExceptionHandler),zone.overrideOnErrorHandler(function(e,s){return exceptionHandler.call(e,s)})}catch(e){lang_1.isPresent(exceptionHandler)?exceptionHandler.call(e,e.stack):lang_1.print(e.toString())}}),app=new ApplicationRef_(this,zone,injector),this._applications.push(app);var promise=_runAppInitializers(injector);return null!==promise?async_1.PromiseWrapper.then(promise,function(_){return app}):app},PlatformRef_.prototype.dispose=function(){collection_1.ListWrapper.clone(this._applications).forEach(function(app){return app.dispose()}),this._disposeListeners.forEach(function(dispose){return dispose()}),this._dispose()},PlatformRef_.prototype._applicationDisposed=function(app){collection_1.ListWrapper.remove(this._applications,app)},PlatformRef_}(PlatformRef);exports.PlatformRef_=PlatformRef_;var ApplicationRef=function(){function ApplicationRef(){}return Object.defineProperty(ApplicationRef.prototype,"injector",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"zone",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"componentTypes",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ApplicationRef}();exports.ApplicationRef=ApplicationRef;var ApplicationRef_=function(_super){function ApplicationRef_(_platform,_zone,_injector){var _this=this;_super.call(this),this._platform=_platform,this._zone=_zone,this._injector=_injector,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,lang_1.isPresent(this._zone)&&async_1.ObservableWrapper.subscribe(this._zone.onTurnDone,function(_){_this._zone.run(function(){_this.tick()})}),this._enforceNoNewChanges=lang_1.assertionsEnabled()}return __extends(ApplicationRef_,_super),ApplicationRef_.prototype.registerBootstrapListener=function(listener){this._bootstrapListeners.push(listener)},ApplicationRef_.prototype.registerDisposeListener=function(dispose){this._disposeListeners.push(dispose)},ApplicationRef_.prototype.registerChangeDetector=function(changeDetector){this._changeDetectorRefs.push(changeDetector)},ApplicationRef_.prototype.unregisterChangeDetector=function(changeDetector){collection_1.ListWrapper.remove(this._changeDetectorRefs,changeDetector)},ApplicationRef_.prototype.bootstrap=function(componentType,providers){var _this=this,completer=async_1.PromiseWrapper.completer();return this._zone.run(function(){var componentProviders=_componentProviders(componentType);lang_1.isPresent(providers)&&componentProviders.push(providers);var exceptionHandler=_this._injector.get(exceptions_1.ExceptionHandler);_this._rootComponentTypes.push(componentType);try{var injector=_this._injector.resolveAndCreateChild(componentProviders),compRefToken=injector.get(application_tokens_1.APP_COMPONENT_REF_PROMISE),tick=function(componentRef){_this._loadComponent(componentRef),completer.resolve(componentRef)},tickResult=async_1.PromiseWrapper.then(compRefToken,tick);lang_1.IS_DART&&async_1.PromiseWrapper.then(tickResult,function(_){}),async_1.PromiseWrapper.then(tickResult,null,function(err,stackTrace){return complete
|
|||
|
return DirectiveResolver.prototype.resolve=function(type){var typeMetadata=reflection_1.reflector.annotations(di_1.resolveForwardRef(type));if(lang_1.isPresent(typeMetadata)){var metadata=typeMetadata.find(_isDirectiveMetadata);if(lang_1.isPresent(metadata)){var propertyMetadata=reflection_1.reflector.propMetadata(type);return this._mergeWithPropertyMetadata(metadata,propertyMetadata,type)}}throw new exceptions_1.BaseException("No Directive annotation found on "+lang_1.stringify(type))},DirectiveResolver.prototype._mergeWithPropertyMetadata=function(dm,propertyMetadata,directiveType){var inputs=[],outputs=[],host={},queries={};return collection_1.StringMapWrapper.forEach(propertyMetadata,function(metadata,propName){metadata.forEach(function(a){if(a instanceof metadata_1.InputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?inputs.push(propName+": "+a.bindingPropertyName):inputs.push(propName)),a instanceof metadata_1.OutputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?outputs.push(propName+": "+a.bindingPropertyName):outputs.push(propName)),a instanceof metadata_1.HostBindingMetadata&&(lang_1.isPresent(a.hostPropertyName)?host["["+a.hostPropertyName+"]"]=propName:host["["+propName+"]"]=propName),a instanceof metadata_1.HostListenerMetadata){var args=lang_1.isPresent(a.args)?a.args.join(", "):"";host["("+a.eventName+")"]=propName+"("+args+")"}a instanceof metadata_1.ContentChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ContentChildMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildMetadata&&(queries[propName]=a)})}),this._merge(dm,inputs,outputs,host,queries,directiveType)},DirectiveResolver.prototype._merge=function(dm,inputs,outputs,host,queries,directiveType){var mergedOutputs,mergedInputs=lang_1.isPresent(dm.inputs)?collection_1.ListWrapper.concat(dm.inputs,inputs):inputs;lang_1.isPresent(dm.outputs)?(dm.outputs.forEach(function(propName){if(collection_1.ListWrapper.contains(outputs,propName))throw new exceptions_1.BaseException("Output event '"+propName+"' defined multiple times in '"+lang_1.stringify(directiveType)+"'")}),mergedOutputs=collection_1.ListWrapper.concat(dm.outputs,outputs)):mergedOutputs=outputs;var mergedHost=lang_1.isPresent(dm.host)?collection_1.StringMapWrapper.merge(dm.host,host):host,mergedQueries=lang_1.isPresent(dm.queries)?collection_1.StringMapWrapper.merge(dm.queries,queries):queries;return dm instanceof metadata_1.ComponentMetadata?new metadata_1.ComponentMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,moduleId:dm.moduleId,queries:mergedQueries,changeDetection:dm.changeDetection,providers:dm.providers,viewProviders:dm.viewProviders}):new metadata_1.DirectiveMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,queries:mergedQueries,providers:dm.providers})},DirectiveResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],DirectiveResolver)}();return exports.DirectiveResolver=DirectiveResolver,exports.CODEGEN_DIRECTIVE_RESOLVER=new DirectiveResolver,global.define=__define,module.exports}),$__System.registerDynamic("7d",["2b","37"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b");!function(ViewEncapsulation){ViewEncapsulation[ViewEncapsulation.Emula
|
|||
|
return this._appElement.nativeElement},enumerable:!0,configurable:!0}),ElementRef_}();return exports.ElementRef_=ElementRef_,global.define=__define,module.exports}),$__System.registerDynamic("1c3",["3a","3f","2b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("3a"),exceptions_1=$__require("3f"),lang_1=$__require("2b"),ViewContainerRef=function(){function ViewContainerRef(){}return Object.defineProperty(ViewContainerRef.prototype,"element",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef.prototype.clear=function(){for(var i=this.length-1;i>=0;i--)this.remove(i)},Object.defineProperty(ViewContainerRef.prototype,"length",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef}();exports.ViewContainerRef=ViewContainerRef;var ViewContainerRef_=function(_super){function ViewContainerRef_(_element){_super.call(this),this._element=_element}return __extends(ViewContainerRef_,_super),ViewContainerRef_.prototype.get=function(index){return this._element.nestedViews[index].ref},Object.defineProperty(ViewContainerRef_.prototype,"length",{get:function(){var views=this._element.nestedViews;return lang_1.isPresent(views)?views.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef_.prototype,"element",{get:function(){return this._element.ref},enumerable:!0,configurable:!0}),ViewContainerRef_.prototype.createEmbeddedView=function(templateRef,index){void 0===index&&(index=-1),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.createEmbeddedViewInContainer(this._element.ref,index,templateRef)},ViewContainerRef_.prototype.createHostView=function(hostViewFactoryRef,index,dynamicallyCreatedProviders,projectableNodes){void 0===index&&(index=-1),void 0===dynamicallyCreatedProviders&&(dynamicallyCreatedProviders=null),void 0===projectableNodes&&(projectableNodes=null),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.createHostViewInContainer(this._element.ref,index,hostViewFactoryRef,dynamicallyCreatedProviders,projectableNodes)},ViewContainerRef_.prototype.insert=function(viewRef,index){void 0===index&&(index=-1),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.attachViewInContainer(this._element.ref,index,viewRef)},ViewContainerRef_.prototype.indexOf=function(viewRef){return collection_1.ListWrapper.indexOf(this._element.nestedViews,viewRef.internalView)},ViewContainerRef_.prototype.remove=function(index){void 0===index&&(index=-1),-1==index&&(index=this.length-1);var vm=this._element.parentView.viewManager;return vm.destroyViewInContainer(this._element.ref,index)},ViewContainerRef_.prototype.detach=function(index){void 0===index&&(index=-1),-1==index&&(index=this.length-1);var vm=this._element.parentView.viewManager;return vm.detachViewInContainer(this._element.ref,index)},ViewContainerRef_}(ViewContainerRef);return exports.ViewContainerRef_=ViewContainerRef_,global.define=__define,module.exports}),$__System.registerDynamic("1c2",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},TemplateRef=function(){function TemplateRef(){}return Object.defineProperty(TemplateRef.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),TemplateRef}();exports.TemplateRef=TemplateRef;var TemplateRef_=function(_super){function TemplateRef_(_elementRef){_super.call(this),this._elementRef=_elementRef}return __extends(TemplateRef_,_super),Object.defineProper
|
|||
|
oldSeqRecord.currentValue=value,_this._addToChanges(oldSeqRecord))):(seqChanged=!0,null!==oldSeqRecord&&(oldSeqRecord._next=null,_this._removeFromSeq(lastOldSeqRecord,oldSeqRecord),_this._addToRemovals(oldSeqRecord)),records.has(key)?newSeqRecord=records.get(key):(newSeqRecord=new KVChangeRecord(key),records.set(key,newSeqRecord),newSeqRecord.currentValue=value,_this._addToAdditions(newSeqRecord))),seqChanged&&(_this._isInRemovals(newSeqRecord)&&_this._removeFromRemovals(newSeqRecord),null==lastNewSeqRecord?_this._mapHead=newSeqRecord:lastNewSeqRecord._next=newSeqRecord),lastOldSeqRecord=oldSeqRecord,lastNewSeqRecord=newSeqRecord,oldSeqRecord=null===oldSeqRecord?null:oldSeqRecord._next}),this._truncate(lastOldSeqRecord,oldSeqRecord),this.isDirty},DefaultKeyValueDiffer.prototype._reset=function(){if(this.isDirty){var record;for(record=this._previousMapHead=this._mapHead;null!==record;record=record._next)record._nextPrevious=record._next;for(record=this._changesHead;null!==record;record=record._nextChanged)record.previousValue=record.currentValue;for(record=this._additionsHead;null!=record;record=record._nextAdded)record.previousValue=record.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},DefaultKeyValueDiffer.prototype._truncate=function(lastRecord,record){for(;null!==record;){null===lastRecord?this._mapHead=null:lastRecord._next=null;var nextRecord=record._next;this._addToRemovals(record),lastRecord=record,record=nextRecord}for(var rec=this._removalsHead;null!==rec;rec=rec._nextRemoved)rec.previousValue=rec.currentValue,rec.currentValue=null,this._records["delete"](rec.key)},DefaultKeyValueDiffer.prototype._isInRemovals=function(record){return record===this._removalsHead||null!==record._nextRemoved||null!==record._prevRemoved},DefaultKeyValueDiffer.prototype._addToRemovals=function(record){null===this._removalsHead?this._removalsHead=this._removalsTail=record:(this._removalsTail._nextRemoved=record,record._prevRemoved=this._removalsTail,this._removalsTail=record)},DefaultKeyValueDiffer.prototype._removeFromSeq=function(prev,record){var next=record._next;null===prev?this._mapHead=next:prev._next=next},DefaultKeyValueDiffer.prototype._removeFromRemovals=function(record){var prev=record._prevRemoved,next=record._nextRemoved;null===prev?this._removalsHead=next:prev._nextRemoved=next,null===next?this._removalsTail=prev:next._prevRemoved=prev,record._prevRemoved=record._nextRemoved=null},DefaultKeyValueDiffer.prototype._addToAdditions=function(record){null===this._additionsHead?this._additionsHead=this._additionsTail=record:(this._additionsTail._nextAdded=record,this._additionsTail=record)},DefaultKeyValueDiffer.prototype._addToChanges=function(record){null===this._changesHead?this._changesHead=this._changesTail=record:(this._changesTail._nextChanged=record,this._changesTail=record)},DefaultKeyValueDiffer.prototype.toString=function(){var record,items=[],previous=[],changes=[],additions=[],removals=[];for(record=this._mapHead;null!==record;record=record._next)items.push(lang_1.stringify(record));for(record=this._previousMapHead;null!==record;record=record._nextPrevious)previous.push(lang_1.stringify(record));for(record=this._changesHead;null!==record;record=record._nextChanged)changes.push(lang_1.stringify(record));for(record=this._additionsHead;null!==record;record=record._nextAdded)additions.push(lang_1.stringify(record));for(record=this._removalsHead;null!==record;record=record._nextRemoved)removals.push(lang_1.stringify(record));return"map: "+items.join(", ")+"\nprevious: "+previous.join(", ")+"\nadditions: "+additions.join(", ")+"\nchanges: "+changes.join(", ")+"\nremovals: "+removals.join(", ")+"\n"},DefaultKeyValueDiffer.prototype._forEach=function(obj,fn){obj instanceof Map?obj.forEach(fn):collection_1.StringMapWrapper.forEach(obj,fn)},DefaultKeyValueDiffer}();exports.DefaultKeyValueDiffer=DefaultKeyValueDiffer;var KVChangeRecord=function(){function KVChangeRecord(key){this.key=key,this.previousValue=null,this.currentValue=
|
|||
|
this.simple=!1},SimpleExpressionChecker.prototype.visitSafeMethodCall=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitFunctionCall=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitLiteralArray=function(ast){this.visitAll(ast.expressions)},SimpleExpressionChecker.prototype.visitLiteralMap=function(ast){this.visitAll(ast.values)},SimpleExpressionChecker.prototype.visitBinary=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitPrefixNot=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitConditional=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitPipe=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedRead=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedWrite=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitAll=function(asts){for(var res=collection_1.ListWrapper.createFixedSize(asts.length),i=0;i<asts.length;++i)res[i]=asts[i].visit(this);return res},SimpleExpressionChecker.prototype.visitChain=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitQuote=function(ast){this.simple=!1},SimpleExpressionChecker}();return global.define=__define,module.exports}),$__System.registerDynamic("1ca",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var DebugContext=function(){function DebugContext(element,componentElement,directive,context,locals,injector){this.element=element,this.componentElement=componentElement,this.directive=directive,this.context=context,this.locals=locals,this.injector=injector}return DebugContext}();exports.DebugContext=DebugContext;var ChangeDetectorGenConfig=function(){function ChangeDetectorGenConfig(genDebugInfo,logBindingUpdate,useJit){this.genDebugInfo=genDebugInfo,this.logBindingUpdate=logBindingUpdate,this.useJit=useJit}return ChangeDetectorGenConfig}();exports.ChangeDetectorGenConfig=ChangeDetectorGenConfig;var ChangeDetectorDefinition=function(){function ChangeDetectorDefinition(id,strategy,variableNames,bindingRecords,eventRecords,directiveRecords,genConfig){this.id=id,this.strategy=strategy,this.variableNames=variableNames,this.bindingRecords=bindingRecords,this.eventRecords=eventRecords,this.directiveRecords=directiveRecords,this.genConfig=genConfig}return ChangeDetectorDefinition}();return exports.ChangeDetectorDefinition=ChangeDetectorDefinition,global.define=__define,module.exports}),$__System.registerDynamic("1d4",["2b","3a"],!0,function($__require,exports,module){"use strict";function sanitizeName(s){return lang_1.StringWrapper.replaceAll(s,_whiteSpaceRegExp,"")}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),collection_1=$__require("3a"),_STATE_ACCESSOR="state",_PROP_BINDING_INDEX="propertyBindingIndex",_DIRECTIVES_ACCESSOR="directiveIndices",_DISPATCHER_ACCESSOR="dispatcher",_LOCALS_ACCESSOR="locals",_MODE_ACCESSOR="mode",_PIPES_ACCESSOR="pipes",_PROTOS_ACCESSOR="protos";exports.CONTEXT_ACCESSOR="context",exports.CONTEXT_INDEX=0;var _FIELD_PREFIX="this.",_whiteSpaceRegExp=/\W/g;exports.sanitizeName=sanitizeName;var CodegenNameUtil=function(){function CodegenNameUtil(_records,_eventBindings,_directiveRecords,_utilName){this._records=_records,this._eventBindings=_eventBindings,this._directiveRecords=_directiveRecords,this._utilName=_utilName,this._sanitizedEventNames=new collection_1.Map,this._sanitizedNames=collection_1.ListWrapper.createFixedSize(this._records.length+1),this._sanitizedNames[exports.CONTEXT_INDEX]=exports.CONTEXT_ACCESSOR;for(var i=0,iLen=this._records.length;iLen>i;++i)this._sanitizedNames[i+1]=sanitizeName(""+this._records[i].name+i);for(var ebIndex=0;ebIndex<_eventBindings.length;++ebIndex){for(var eb=_eventBindings[ebIndex],names=[exports.CONTEXT_ACCESSOR],i=0,iLen=eb.records.length;iLen>i;++i)names.push(sanitizeName(""+eb.records[i].name+i+"_"+ebIndex));this._sanitizedEventNames.set(eb,names)}}return CodegenNameUtil.prototype._addFieldPrefix=function(name){return""+_FIELD_PREFIX+name},Codege
|
|||
|
}function _srcToDstSelfIndex(indexMap,srcIdx){var dstIdx=indexMap.get(srcIdx);return lang_1.isPresent(dstIdx)?dstIdx:srcIdx}function _createSelfRecord(r,contextIndex,selfIndex){return new proto_record_1.ProtoRecord(proto_record_1.RecordType.Self,"self",null,[],r.fixedArgs,contextIndex,r.directiveIndex,selfIndex,r.bindingRecord,r.lastInBinding,r.lastInDirective,!1,!1,r.propertyBindingIndex)}function _haveSameDirIndex(a,b){var di1=lang_1.isBlank(a.directiveIndex)?null:a.directiveIndex.directiveIndex,ei1=lang_1.isBlank(a.directiveIndex)?null:a.directiveIndex.elementIndex,di2=lang_1.isBlank(b.directiveIndex)?null:b.directiveIndex.directiveIndex,ei2=lang_1.isBlank(b.directiveIndex)?null:b.directiveIndex.elementIndex;return di1===di2&&ei1===ei2}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),collection_1=$__require("3a"),proto_record_1=$__require("1d7");return exports.coalesce=coalesce,global.define=__define,module.exports}),$__System.registerDynamic("1da",["2b","3f","3a","74","8a","1db","1dc","1d8","1d9","1d7"],!0,function($__require,exports,module){"use strict";function createPropertyRecords(definition){var recordBuilder=new ProtoRecordBuilder;return collection_1.ListWrapper.forEachWithIndex(definition.bindingRecords,function(b,index){return recordBuilder.add(b,definition.variableNames,index)}),coalesce_1.coalesce(recordBuilder.records)}function createEventRecords(definition){var varNames=collection_1.ListWrapper.concat(["$event"],definition.variableNames);return definition.eventRecords.map(function(er){var records=_ConvertAstIntoProtoRecords.create(er,varNames),dirIndex=er.implicitReceiver instanceof directive_record_1.DirectiveIndex?er.implicitReceiver:null;return new event_binding_1.EventBinding(er.target.name,er.target.elementIndex,dirIndex,records)})}function _arrayFn(length){switch(length){case 0:return change_detection_util_1.ChangeDetectionUtil.arrayFn0;case 1:return change_detection_util_1.ChangeDetectionUtil.arrayFn1;case 2:return change_detection_util_1.ChangeDetectionUtil.arrayFn2;case 3:return change_detection_util_1.ChangeDetectionUtil.arrayFn3;case 4:return change_detection_util_1.ChangeDetectionUtil.arrayFn4;case 5:return change_detection_util_1.ChangeDetectionUtil.arrayFn5;case 6:return change_detection_util_1.ChangeDetectionUtil.arrayFn6;case 7:return change_detection_util_1.ChangeDetectionUtil.arrayFn7;case 8:return change_detection_util_1.ChangeDetectionUtil.arrayFn8;case 9:return change_detection_util_1.ChangeDetectionUtil.arrayFn9;default:throw new exceptions_1.BaseException("Does not support literal maps with more than 9 elements")}}function _mapPrimitiveName(keys){var stringifiedKeys=keys.map(function(k){return lang_1.isString(k)?'"'+k+'"':""+k}).join(", ");return"mapFn(["+stringifiedKeys+"])"}function _operationToPrimitiveName(operation){switch(operation){case"+":return"operation_add";case"-":return"operation_subtract";case"*":return"operation_multiply";case"/":return"operation_divide";case"%":return"operation_remainder";case"==":return"operation_equals";case"!=":return"operation_not_equals";case"===":return"operation_identical";case"!==":return"operation_not_identical";case"<":return"operation_less_then";case">":return"operation_greater_then";case"<=":return"operation_less_or_equals_then";case">=":return"operation_greater_or_equals_then";default:throw new exceptions_1.BaseException("Unsupported operation "+operation)}}function _operationToFunction(operation){switch(operation){case"+":return change_detection_util_1.ChangeDetectionUtil.operation_add;case"-":return change_detection_util_1.ChangeDetectionUtil.operation_subtract;case"*":return change_detection_util_1.ChangeDetectionUtil.operation_multiply;case"/":return change_detection_util_1.ChangeDetectionUtil.operation_divide;case"%":return change_detection_util_1.ChangeDetectionUtil.operation_remainder;case"==":return change_detection_util_1.ChangeDetectionUtil.operation_equals;case"!=":return change_detection_util_1.ChangeDetectionUtil.operation_not_equals;case"===":return change_detection_util_1.ChangeDetec
|
|||
|
return this._factory()},JitProtoChangeDetector.prototype._createFactory=function(definition){return new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition,"util","AbstractChangeDetector","ChangeDetectorStatus").generate()},JitProtoChangeDetector}();return exports.JitProtoChangeDetector=JitProtoChangeDetector,global.define=__define,module.exports}),$__System.registerDynamic("1de",["3f"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},exceptions_1=$__require("3f"),ExpressionChangedAfterItHasBeenCheckedException=function(_super){function ExpressionChangedAfterItHasBeenCheckedException(exp,oldValue,currValue,context){_super.call(this,"Expression '"+exp+"' has changed after it was checked. "+("Previous value: '"+oldValue+"'. Current value: '"+currValue+"'"))}return __extends(ExpressionChangedAfterItHasBeenCheckedException,_super),ExpressionChangedAfterItHasBeenCheckedException}(exceptions_1.BaseException);exports.ExpressionChangedAfterItHasBeenCheckedException=ExpressionChangedAfterItHasBeenCheckedException;var ChangeDetectionError=function(_super){function ChangeDetectionError(exp,originalException,originalStack,context){_super.call(this,originalException+" in ["+exp+"]",originalException,originalStack,context),this.location=exp}return __extends(ChangeDetectionError,_super),ChangeDetectionError}(exceptions_1.WrappedException);exports.ChangeDetectionError=ChangeDetectionError;var DehydratedException=function(_super){function DehydratedException(details){_super.call(this,"Attempt to use a dehydrated detector: "+details)}return __extends(DehydratedException,_super),DehydratedException}(exceptions_1.BaseException);exports.DehydratedException=DehydratedException;var EventEvaluationError=function(_super){function EventEvaluationError(eventName,originalException,originalStack,context){_super.call(this,'Error during evaluation of "'+eventName+'"',originalException,originalStack,context)}return __extends(EventEvaluationError,_super),EventEvaluationError}(exceptions_1.WrappedException);exports.EventEvaluationError=EventEvaluationError;var EventEvaluationErrorContext=function(){function EventEvaluationErrorContext(element,componentElement,context,locals,injector){this.element=element,this.componentElement=componentElement,this.context=context,this.locals=locals,this.injector=injector}return EventEvaluationErrorContext}();return exports.EventEvaluationErrorContext=EventEvaluationErrorContext,global.define=__define,module.exports}),$__System.registerDynamic("1df",["2b","3f","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),exceptions_1=$__require("3f"),collection_1=$__require("3a"),Locals=function(){function Locals(parent,current){this.parent=parent,this.current=current}return Locals.prototype.contains=function(name){return this.current.has(name)?!0:lang_1.isPresent(this.parent)?this.parent.contains(name):!1},Locals.prototype.get=function(name){if(this.current.has(name))return this.current.get(name);if(lang_1.isPresent(this.parent))return this.parent.get(name);throw new exceptions_1.BaseException("Cannot find '"+name+"'")},Locals.prototype.set=function(name,value){if(!this.current.has(name))throw new exceptions_1.BaseException("Setting of new keys post-construction is not supported. Key: "+name+".");this.current.set(name,value)},Locals.prototype.clearLocalValues=function(){collection_1.MapWrapper.clearValues(this.current)},Locals}();return exports.Locals=Locals,global.define=__define,module.exports}),$__System.registerDynamic("1e0",[],!0,function($__require,exports,module){"use strict";function isObservable(value){return!1}var global=this,__define=global.define;return global.define=void 0,exports.isObservable=isObservable,global.define=__define,module.exports}
|
|||
|
for(var res=collection_1.ListWrapper.createFixedSize(proto.args.length),args=proto.args,i=0;i<args.length;++i)res[i]=values[args[i]];return res},DynamicChangeDetector}(abstract_change_detector_1.AbstractChangeDetector);return exports.DynamicChangeDetector=DynamicChangeDetector,global.define=__define,module.exports}),$__System.registerDynamic("1e1",["8b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},constants_1=$__require("8b"),ChangeDetectorRef=function(){function ChangeDetectorRef(){}return ChangeDetectorRef}();exports.ChangeDetectorRef=ChangeDetectorRef;var ChangeDetectorRef_=function(_super){function ChangeDetectorRef_(_cd){_super.call(this),this._cd=_cd}return __extends(ChangeDetectorRef_,_super),ChangeDetectorRef_.prototype.markForCheck=function(){this._cd.markPathToRootAsCheckOnce()},ChangeDetectorRef_.prototype.detach=function(){this._cd.mode=constants_1.ChangeDetectionStrategy.Detached},ChangeDetectorRef_.prototype.detectChanges=function(){this._cd.detectChanges()},ChangeDetectorRef_.prototype.checkNoChanges=function(){this._cd.checkNoChanges()},ChangeDetectorRef_.prototype.reattach=function(){this._cd.mode=constants_1.ChangeDetectionStrategy.CheckAlways,this.markForCheck()},ChangeDetectorRef_}(ChangeDetectorRef);return exports.ChangeDetectorRef_=ChangeDetectorRef_,global.define=__define,module.exports}),$__System.registerDynamic("1e2",[],!0,function($__require,exports,module){"use strict";function implementsOnDestroy(pipe){return pipe.constructor.prototype.ngOnDestroy}var global=this,__define=global.define;return global.define=void 0,exports.implementsOnDestroy=implementsOnDestroy,global.define=__define,module.exports}),$__System.registerDynamic("1e3",["2b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("2b"),DIRECTIVE_LIFECYCLE="directiveLifecycle",BINDING="native",DIRECTIVE="directive",ELEMENT_PROPERTY="elementProperty",ELEMENT_ATTRIBUTE="elementAttribute",ELEMENT_CLASS="elementClass",ELEMENT_STYLE="elementStyle",TEXT_NODE="textNode",EVENT="event",HOST_EVENT="hostEvent",BindingTarget=function(){function BindingTarget(mode,elementIndex,name,unit,debug){this.mode=mode,this.elementIndex=elementIndex,this.name=name,this.unit=unit,this.debug=debug}return BindingTarget.prototype.isDirective=function(){return this.mode===DIRECTIVE},BindingTarget.prototype.isElementProperty=function(){return this.mode===ELEMENT_PROPERTY},BindingTarget.prototype.isElementAttribute=function(){return this.mode===ELEMENT_ATTRIBUTE},BindingTarget.prototype.isElementClass=function(){return this.mode===ELEMENT_CLASS},BindingTarget.prototype.isElementStyle=function(){return this.mode===ELEMENT_STYLE},BindingTarget.prototype.isTextNode=function(){return this.mode===TEXT_NODE},BindingTarget}();exports.BindingTarget=BindingTarget;var BindingRecord=function(){function BindingRecord(mode,target,implicitReceiver,ast,setter,lifecycleEvent,directiveRecord){this.mode=mode,this.target=target,this.implicitReceiver=implicitReceiver,this.ast=ast,this.setter=setter,this.lifecycleEvent=lifecycleEvent,this.directiveRecord=directiveRecord}return BindingRecord.prototype.isDirectiveLifecycle=function(){return this.mode===DIRECTIVE_LIFECYCLE},BindingRecord.prototype.callOnChanges=function(){return lang_1.isPresent(this.directiveRecord)&&this.directiveRecord.callOnChanges},BindingRecord.prototype.isDefaultChangeDetection=function(){return lang_1.isBlank(this.directiveRecord)||this.directiveRecord.isDefaultChangeDetection()},BindingRecord.createDirectiveDoCheck=function(directiveRecord){return new BindingRecord(DIRECTIVE_LIFECYCLE,null,0,null,null,"DoCheck",directiveRecord)},BindingRecord.createDirectiveOnInit=function(directiveRecord){return new BindingRecord(DIRECTIVE_LIFECYCLE,null,0,null,null,"OnInit",direc
|
|||
|
subscriber.error(err)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},Observable_1=$__require("1e8"),Subscription_1=$__require("1e5"),queue_1=$__require("1ed"),PromiseObservable=function(_super){function PromiseObservable(promise,scheduler){void 0===scheduler&&(scheduler=queue_1.queue),_super.call(this),this.promise=promise,this.scheduler=scheduler,this._isScalar=!1}return __extends(PromiseObservable,_super),PromiseObservable.create=function(promise,scheduler){return void 0===scheduler&&(scheduler=queue_1.queue),new PromiseObservable(promise,scheduler)},PromiseObservable.prototype._subscribe=function(subscriber){var _this=this,scheduler=this.scheduler,promise=this.promise;if(scheduler!==queue_1.queue){var subscription=new Subscription_1.Subscription;if(this._isScalar){var value=this.value;subscription.add(scheduler.schedule(dispatchNext,0,{value:value,subscriber:subscriber}))}else promise.then(function(value){_this._isScalar=!0,_this.value=value,subscription.add(scheduler.schedule(dispatchNext,0,{value:value,subscriber:subscriber}))},function(err){return subscription.add(scheduler.schedule(dispatchError,0,{err:err,subscriber:subscriber}))}).then(null,function(err){scheduler.schedule(function(){throw err})});return subscription}this._isScalar?(subscriber.next(this.value),subscriber.complete()):promise.then(function(value){_this._isScalar=!0,_this.value=value,subscriber.next(value),subscriber.complete()},function(err){return subscriber.error(err)}).then(null,function(err){setTimeout(function(){throw err})})},PromiseObservable}(Observable_1.Observable);return exports.PromiseObservable=PromiseObservable,global.define=__define,module.exports}),$__System.registerDynamic("1ef",["1f0"],!0,function($__require,exports,module){function toPromise(PromiseCtor){var _this=this;if(PromiseCtor||(root_1.root.Rx&&root_1.root.Rx.config&&root_1.root.Rx.config.Promise?PromiseCtor=root_1.root.Rx.config.Promise:root_1.root.Promise&&(PromiseCtor=root_1.root.Promise)),!PromiseCtor)throw new Error("no Promise impl found");return new PromiseCtor(function(resolve,reject){var value;_this.subscribe(function(x){return value=x},function(err){return reject(err)},function(){return resolve(value)})})}var global=this,__define=global.define;global.define=void 0;var root_1=$__require("1f0");return exports.toPromise=toPromise,global.define=__define,module.exports}),$__System.registerDynamic("1f1",[],!0,function($__require,exports,module){function throwError(e){throw e}var global=this,__define=global.define;return global.define=void 0,exports.throwError=throwError,global.define=__define,module.exports}),$__System.registerDynamic("1f2",[],!0,function($__require,exports,module){function tryOrOnError(target){function tryCatcher(){try{tryCatcher.target.apply(this,arguments)}catch(e){this.error(e)}}return tryCatcher.target=target,tryCatcher}var global=this,__define=global.define;return global.define=void 0,exports.tryOrOnError=tryOrOnError,global.define=__define,module.exports}),$__System.registerDynamic("1f3",[],!0,function($__require,exports,module){function noop(){}var global=this,__define=global.define;return global.define=void 0,exports.noop=noop,global.define=__define,module.exports}),$__System.registerDynamic("1e5",["1f3"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var noop_1=$__require("1f3"),Subscription=function(){function Subscription(_unsubscribe){this.isUnsubscribed=!1,_unsubscribe&&(this._unsubscribe=_unsubscribe)}return Subscription.prototype._unsubscribe=function(){noop_1.noop()},Subscription.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var unsubscribe=this._unsubscribe,subscriptions=this._subscriptions;if(this._subscriptions=void 0,unsubscribe&&unsubscribe.call(this),null!=subscriptions)for(var index=-1,len=subscriptions.length;++index<len;)subsc
|
|||
|
return injector_1.UNDEFINED},AppElement.prototype._buildAttribute=function(dep){var attributes=this.proto.attributes;return lang_1.isPresent(attributes)&&collection_1.StringMapWrapper.contains(attributes,dep.attributeName)?attributes[dep.attributeName]:null},AppElement.prototype.addDirectivesMatchingQuery=function(query,list){var templateRef=this.getTemplateRef();query.selector===template_ref_1.TemplateRef&&lang_1.isPresent(templateRef)&&list.push(templateRef),null!=this._strategy&&this._strategy.addDirectivesMatchingQuery(query,list)},AppElement.prototype._buildQueryStrategy=function(){return 0===this.proto.protoQueryRefs.length?_emptyQueryStrategy:this.proto.protoQueryRefs.length<=InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES?new InlineQueryStrategy(this):new DynamicQueryStrategy(this)},AppElement.prototype.getDirectiveAtIndex=function(index){return this._injector.getAt(index)},AppElement.prototype.ngAfterViewChecked=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.updateViewQueries()},AppElement.prototype.ngAfterContentChecked=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.updateContentQueries()},AppElement.prototype.traverseAndSetQueriesAsDirty=function(){for(var inj=this;lang_1.isPresent(inj);)inj._setQueriesAsDirty(),inj=lang_1.isBlank(inj.parent)&&inj.parentView.proto.type===view_type_1.ViewType.EMBEDDED?inj.parentView.containerAppElement:inj.parent},AppElement.prototype._setQueriesAsDirty=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.setContentQueriesAsDirty(),this.parentView.proto.type===view_type_1.ViewType.COMPONENT&&this.parentView.containerAppElement._queryStrategy.setViewQueriesAsDirty()},AppElement}();exports.AppElement=AppElement;var _EmptyQueryStrategy=function(){function _EmptyQueryStrategy(){}return _EmptyQueryStrategy.prototype.setContentQueriesAsDirty=function(){},_EmptyQueryStrategy.prototype.setViewQueriesAsDirty=function(){},_EmptyQueryStrategy.prototype.updateContentQueries=function(){},_EmptyQueryStrategy.prototype.updateViewQueries=function(){},_EmptyQueryStrategy.prototype.findQuery=function(query){throw new exceptions_1.BaseException("Cannot find query for directive "+query+".")},_EmptyQueryStrategy}(),_emptyQueryStrategy=new _EmptyQueryStrategy,InlineQueryStrategy=function(){function InlineQueryStrategy(ei){var protoRefs=ei.proto.protoQueryRefs;protoRefs.length>0&&(this.query0=new QueryRef(protoRefs[0],ei)),protoRefs.length>1&&(this.query1=new QueryRef(protoRefs[1],ei)),protoRefs.length>2&&(this.query2=new QueryRef(protoRefs[2],ei))}return InlineQueryStrategy.prototype.setContentQueriesAsDirty=function(){lang_1.isPresent(this.query0)&&!this.query0.isViewQuery&&(this.query0.dirty=!0),lang_1.isPresent(this.query1)&&!this.query1.isViewQuery&&(this.query1.dirty=!0),lang_1.isPresent(this.query2)&&!this.query2.isViewQuery&&(this.query2.dirty=!0)},InlineQueryStrategy.prototype.setViewQueriesAsDirty=function(){lang_1.isPresent(this.query0)&&this.query0.isViewQuery&&(this.query0.dirty=!0),lang_1.isPresent(this.query1)&&this.query1.isViewQuery&&(this.query1.dirty=!0),lang_1.isPresent(this.query2)&&this.query2.isViewQuery&&(this.query2.dirty=!0)},InlineQueryStrategy.prototype.updateContentQueries=function(){lang_1.isPresent(this.query0)&&!this.query0.isViewQuery&&this.query0.update(),lang_1.isPresent(this.query1)&&!this.query1.isViewQuery&&this.query1.update(),lang_1.isPresent(this.query2)&&!this.query2.isViewQuery&&this.query2.update()},InlineQueryStrategy.prototype.updateViewQueries=function(){lang_1.isPresent(this.query0)&&this.query0.isViewQuery&&this.query0.update(),lang_1.isPresent(this.query1)&&this.query1.isViewQuery&&this.query1.update(),lang_1.isPresent(this.query2)&&this.query2.isViewQuery&&this.query2.update()},InlineQueryStrategy.prototype.findQuery=function(query){if(lang_1.isPresent(this.query0)&&this.query0.protoQueryRef.query===query)return this.query0;if(lang_1.isPresent(this.query1)&&this.query1.protoQueryRef.query===query)return this.query1;if(lang_1.isPresent(this.query2)&&this.query2.protoQueryRef.query===query
|
|||
|
if(0==index)return this.obj0;if(1==index)return this.obj1;if(2==index)return this.obj2;if(3==index)return this.obj3;if(4==index)return this.obj4;if(5==index)return this.obj5;if(6==index)return this.obj6;if(7==index)return this.obj7;if(8==index)return this.obj8;if(9==index)return this.obj9;throw new exceptions_1.OutOfBoundsError(index)},InjectorInlineStrategy.prototype.getMaxNumberOfObjects=function(){return _MAX_CONSTRUCTION_COUNTER},InjectorInlineStrategy}();exports.InjectorInlineStrategy=InjectorInlineStrategy;var InjectorDynamicStrategy=function(){function InjectorDynamicStrategy(protoStrategy,injector){this.protoStrategy=protoStrategy,this.injector=injector,this.objs=collection_1.ListWrapper.createFixedSize(protoStrategy.providers.length),collection_1.ListWrapper.fill(this.objs,exports.UNDEFINED)}return InjectorDynamicStrategy.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},InjectorDynamicStrategy.prototype.instantiateProvider=function(provider,visibility){return this.injector._new(provider,visibility)},InjectorDynamicStrategy.prototype.getObjByKeyId=function(keyId,visibility){for(var p=this.protoStrategy,i=0;i<p.keyIds.length;i++)if(p.keyIds[i]===keyId&&canSee(p.visibilities[i],visibility))return this.objs[i]===exports.UNDEFINED&&(this.objs[i]=this.injector._new(p.providers[i],p.visibilities[i])),this.objs[i];return exports.UNDEFINED},InjectorDynamicStrategy.prototype.getObjAtIndex=function(index){if(0>index||index>=this.objs.length)throw new exceptions_1.OutOfBoundsError(index);return this.objs[index]},InjectorDynamicStrategy.prototype.getMaxNumberOfObjects=function(){return this.objs.length},InjectorDynamicStrategy}();exports.InjectorDynamicStrategy=InjectorDynamicStrategy;var ProviderWithVisibility=function(){function ProviderWithVisibility(provider,visibility){this.provider=provider,this.visibility=visibility}return ProviderWithVisibility.prototype.getKeyId=function(){return this.provider.key.id},ProviderWithVisibility}();exports.ProviderWithVisibility=ProviderWithVisibility;var Injector=function(){function Injector(_proto,_parent,_isHostBoundary,_depProvider,_debugContext){void 0===_parent&&(_parent=null),void 0===_isHostBoundary&&(_isHostBoundary=!1),void 0===_depProvider&&(_depProvider=null),void 0===_debugContext&&(_debugContext=null),this._isHostBoundary=_isHostBoundary,this._depProvider=_depProvider,this._debugContext=_debugContext,this._constructionCounter=0,this._proto=_proto,this._parent=_parent,this._strategy=_proto._strategy.createInjectorStrategy(this)}return Injector.resolve=function(providers){return provider_1.resolveProviders(providers)},Injector.resolveAndCreate=function(providers){var resolvedProviders=Injector.resolve(providers);return Injector.fromResolvedProviders(resolvedProviders)},Injector.fromResolvedProviders=function(providers){return new Injector(ProtoInjector.fromResolvedProviders(providers))},Injector.fromResolvedBindings=function(providers){return Injector.fromResolvedProviders(providers)},Object.defineProperty(Injector.prototype,"hostBoundary",{get:function(){return this._isHostBoundary},enumerable:!0,configurable:!0}),Injector.prototype.debugContext=function(){return this._debugContext()},Injector.prototype.get=function(token){return this._getByKey(key_1.Key.get(token),null,null,!1,Visibility.PublicAndPrivate)},Injector.prototype.getOptional=function(token){return this._getByKey(key_1.Key.get(token),null,null,!0,Visibility.PublicAndPrivate)},Injector.prototype.getAt=function(index){return this._strategy.getObjAtIndex(index)},Object.defineProperty(Injector.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(Injector.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),Injector.prototype.resolveAndCreateChild=function(providers){var resolvedProviders=Injector.resolve(providers);return this.createChildFromResolved(resolvedProviders)},Injector.prototype.createChildFromResolved=function(providers){var bd=providers.map(function(b){return new Prov
|
|||
|
var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("2b"),OpaqueToken=function(){function OpaqueToken(_desc){this._desc=_desc}return OpaqueToken.prototype.toString=function(){return"Token "+this._desc},OpaqueToken=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],OpaqueToken)}();return exports.OpaqueToken=OpaqueToken,global.define=__define,module.exports}),$__System.registerDynamic("3c",["1cb","1d2","1fd","1f6","1f5","1fc","1fb","1ff"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0;var metadata_1=$__require("1cb");exports.InjectMetadata=metadata_1.InjectMetadata,exports.OptionalMetadata=metadata_1.OptionalMetadata,exports.InjectableMetadata=metadata_1.InjectableMetadata,exports.SelfMetadata=metadata_1.SelfMetadata,exports.HostMetadata=metadata_1.HostMetadata,exports.SkipSelfMetadata=metadata_1.SkipSelfMetadata,exports.DependencyMetadata=metadata_1.DependencyMetadata,__export($__require("1d2"));var forward_ref_1=$__require("1fd");exports.forwardRef=forward_ref_1.forwardRef,exports.resolveForwardRef=forward_ref_1.resolveForwardRef;var injector_1=$__require("1f6");exports.Injector=injector_1.Injector;var provider_1=$__require("1f5");exports.Binding=provider_1.Binding,exports.ProviderBuilder=provider_1.ProviderBuilder,exports.ResolvedFactory=provider_1.ResolvedFactory,exports.Dependency=provider_1.Dependency,exports.bind=provider_1.bind,exports.Provider=provider_1.Provider,exports.provide=provider_1.provide;var key_1=$__require("1fc");exports.Key=key_1.Key,exports.TypeLiteral=key_1.TypeLiteral;var exceptions_1=$__require("1fb");exports.NoProviderError=exceptions_1.NoProviderError,exports.AbstractProviderError=exceptions_1.AbstractProviderError,exports.CyclicDependencyError=exceptions_1.CyclicDependencyError,exports.InstantiationError=exceptions_1.InstantiationError,exports.InvalidProviderError=exceptions_1.InvalidProviderError,exports.NoAnnotationError=exceptions_1.NoAnnotationError,exports.OutOfBoundsError=exceptions_1.OutOfBoundsError;var opaque_token_1=$__require("1ff");return exports.OpaqueToken=opaque_token_1.OpaqueToken,global.define=__define,module.exports}),$__System.registerDynamic("90",["3c","2b"],!0,function($__require,exports,module){"use strict";function _appIdRandomProviderFactory(){return""+_randomChar()+_randomChar()+_randomChar()}function _randomChar(){return lang_1.StringWrapper.fromCharCode(97+lang_1.Math.floor(25*lang_1.Math.random()))}var global=this,__define=global.define;global.define=void 0;var di_1=$__require("3c"),lang_1=$__require("2b");return exports.APP_COMPONENT_REF_PROMISE=lang_1.CONST_EXPR(new di_1.OpaqueToken("Promise<ComponentRef>")),exports.APP_COMPONENT=lang_1.CONST_EXPR(new di_1.OpaqueToken("AppComponent")),exports.APP_ID=lang_1.CONST_EXPR(new di_1.OpaqueToken("AppId")),exports.APP_ID_RANDOM_PROVIDER=lang_1.CONST_EXPR(new di_1.Provider(exports.APP_ID,{useFactory:_appIdRandomProviderFactory,deps:[]})),exports.PLATFORM_INITIALIZER=lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Initializer")),exports.APP_INITIALIZER=lang_1.CONST_EXPR(new di_1.OpaqueToken("Application Initializer")),exports.PACKAGE_ROOT_URL=lang_1.CONST_EXPR(new di_1.OpaqueToken("Application Packages Root URL")),global.define=__define,module.exports}),$__System.registerDynamic("8d",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0,function(ViewType){ViewType[ViewType.HOST=0]="HOST",ViewType[ViewType.COMPONENT=
|
|||
|
}var parameters=new Array(typeOrFunc.length);return parameters.fill(void 0),parameters},ReflectionCapabilities.prototype.annotations=function(typeOrFunc){if(lang_1.isPresent(typeOrFunc.annotations)){var annotations=typeOrFunc.annotations;return lang_1.isFunction(annotations)&&annotations.annotations&&(annotations=annotations.annotations),annotations}if(lang_1.isPresent(this._reflect)&&lang_1.isPresent(this._reflect.getMetadata)){var annotations=this._reflect.getMetadata("annotations",typeOrFunc);if(lang_1.isPresent(annotations))return annotations}return[]},ReflectionCapabilities.prototype.propMetadata=function(typeOrFunc){if(lang_1.isPresent(typeOrFunc.propMetadata)){var propMetadata=typeOrFunc.propMetadata;return lang_1.isFunction(propMetadata)&&propMetadata.propMetadata&&(propMetadata=propMetadata.propMetadata),propMetadata}if(lang_1.isPresent(this._reflect)&&lang_1.isPresent(this._reflect.getMetadata)){var propMetadata=this._reflect.getMetadata("propMetadata",typeOrFunc);if(lang_1.isPresent(propMetadata))return propMetadata}return{}},ReflectionCapabilities.prototype.interfaces=function(type){throw new exceptions_1.BaseException("JavaScript does not support interfaces")},ReflectionCapabilities.prototype.getter=function(name){return new Function("o","return o."+name+";")},ReflectionCapabilities.prototype.setter=function(name){return new Function("o","v","return o."+name+" = v;")},ReflectionCapabilities.prototype.method=function(name){var functionBody="if (!o."+name+") throw new Error('\""+name+"\" is undefined');\n return o."+name+".apply(o, args);";return new Function("o","args",functionBody)},ReflectionCapabilities.prototype.importUri=function(type){return"./"},ReflectionCapabilities}();return exports.ReflectionCapabilities=ReflectionCapabilities,global.define=__define,module.exports}),$__System.registerDynamic("84",["201","94"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var reflector_1=$__require("201"),reflector_2=$__require("201");exports.Reflector=reflector_2.Reflector,exports.ReflectionInfo=reflector_2.ReflectionInfo;var reflection_capabilities_1=$__require("94");return exports.reflector=new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities),global.define=__define,module.exports}),$__System.registerDynamic("15",["52","1b4","1b6","3c","1b7","2b","5a","90","1bb","1bc","1be","54","5d","1cc","85","1c4","200","84"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0,__export($__require("52")),__export($__require("1b4")),__export($__require("1b6")),__export($__require("3c")),__export($__require("1b7"));var lang_1=$__require("2b");exports.enableProdMode=lang_1.enableProdMode;var application_ref_1=$__require("5a");exports.platform=application_ref_1.platform,exports.createNgZone=application_ref_1.createNgZone,exports.PlatformRef=application_ref_1.PlatformRef,exports.ApplicationRef=application_ref_1.ApplicationRef;var application_tokens_1=$__require("90");exports.APP_ID=application_tokens_1.APP_ID,exports.APP_COMPONENT=application_tokens_1.APP_COMPONENT,exports.APP_INITIALIZER=application_tokens_1.APP_INITIALIZER,exports.PACKAGE_ROOT_URL=application_tokens_1.PACKAGE_ROOT_URL,exports.PLATFORM_INITIALIZER=application_tokens_1.PLATFORM_INITIALIZER,__export($__require("1bb")),__export($__require("1bc")),__export($__require("1be"));var debug_node_1=$__require("54");return exports.DebugElement=debug_node_1.DebugElement,exports.DebugNode=debug_node_1.DebugNode,exports.asNativeElements=debug_node_1.asNativeElements,__export($__require("5d")),__export($__require("1cc")),__export($__require("85")),__export($__require("1c4")),__export($__require("200")),__export($__require("84")),global.define=__define,module.exports}),$__System.registerDynamic("2b",[],!0,function($__require,exports,module){"use strict";function getTypeNameForDebugging(type){return type.name}function lockMode(){_modeLocked=!0}fu
|
|||
|
var global=this,__define=global.define;global.define=void 0;var $=$__require("af");return module.exports=function(P,D){return $.create(P,D)},global.define=__define,module.exports}),$__System.registerDynamic("20b",["20a"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports={"default":$__require("20a"),__esModule:!0},global.define=__define,module.exports}),$__System.registerDynamic("aa",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it},global.define=__define,module.exports}),$__System.registerDynamic("a4",["aa"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var isObject=$__require("aa");return module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it},global.define=__define,module.exports}),$__System.registerDynamic("b3",["af","aa","a4","98"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var getDesc=$__require("af").getDesc,isObject=$__require("aa"),anObject=$__require("a4"),check=function(O,proto){if(anObject(O),!isObject(proto)&&null!==proto)throw TypeError(proto+": can't set as prototype!")};return module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(test,buggy,set){try{set=$__require("98")(Function.call,getDesc(Object.prototype,"__proto__").set,2),set(test,[]),buggy=!(test instanceof Array)}catch(e){buggy=!0}return function(O,proto){return check(O,proto),buggy?O.__proto__=proto:set(O,proto),O}}({},!1):void 0),check:check},global.define=__define,module.exports}),$__System.registerDynamic("20c",["99","b3"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var $export=$__require("99");return $export($export.S,"Object",{setPrototypeOf:$__require("b3").set}),global.define=__define,module.exports}),$__System.registerDynamic("20d",["20c","30"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,$__require("20c"),module.exports=$__require("30").Object.setPrototypeOf,global.define=__define,module.exports}),$__System.registerDynamic("20e",["20d"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports={"default":$__require("20d"),__esModule:!0},global.define=__define,module.exports}),$__System.registerDynamic("7",["20b","20e"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var _Object$create=$__require("20b")["default"],_Object$setPrototypeOf=$__require("20e")["default"];return exports["default"]=function(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=_Object$create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(_Object$setPrototypeOf?_Object$setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)},exports.__esModule=!0,global.define=__define,module.exports}),$__System.registerDynamic("20f",["af"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var $=$__require("af");return module.exports=function(it,key,desc){return $.setDesc(it,key,desc)},global.define=__define,module.exports}),$__System.registerDynamic("210",["20f"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports={"default":$__require("20f"),__esModule:!0},global.define=__define,module.exports}),$__System.registerDynamic("8",["210"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var _Object$defineProperty=$__require("210")["default"];return exports["default"]=function(){
|
|||
|
|
|||
|
//# sourceMappingURL=redoc.min.js.map
|