redoc/dist/redoc.min.js

2540 lines
1.3 MiB
JavaScript
Raw Normal View History

2016-02-22 16:27:45 +03:00
/*eslint no-unused-vars: 0*/
/*eslint strict: 0*/
var $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };
function $buo_f(){
var e = document.createElement('script');
e.src = '//browser-update.org/update.min.js';
document.body.appendChild(e);
}
try {document.addEventListener('DOMContentLoaded', $buo_f, false);}
2016-06-18 21:14:20 +03:00
catch(e){window['attachEvent']('onload', $buo_f);}
2016-02-22 16:27:45 +03:00
2016-05-20 23:13:38 +03:00
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e){function t(e){var t=e[v];return t}function n(e){var t=e.data;t.target.addEventListener("readystatechange",function(){t.target.readyState===XMLHttpRequest.DONE&&(t.aborted||e.invoke())});var n=t.target[v];return n||(t.target[v]=e),a.apply(t.target,t.args),e}function r(){}function o(e){var t=e.data;return t.aborted=!0,i.apply(t.target,t.args)}var a=c.patchMethod(e.XMLHttpRequest.prototype,"send",function(){return function(e,t){var a=Zone.current,i={target:e,isPeriodic:!1,delay:null,args:t,aborted:!1};return a.scheduleMacroTask("XMLHttpRequest.send",r,i,n,o)}}),i=c.patchMethod(e.XMLHttpRequest.prototype,"abort",function(e){return function(e,n){var r=t(e);if(r&&"string"==typeof r.type){if(null==r.cancelFn)return;r.zone.cancelTask(r)}}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(8),c=t(3),u="set",l="clear",p=["alert","prompt","confirm"],h="undefined"==typeof window?e:window;s.patchTimer(h,u,l,"Timeout"),s.patchTimer(h,u,l,"Interval"),s.patchTimer(h,u,l,"Immediate"),s.patchTimer(h,"request","cancelMacroTask","AnimationFrame"),s.patchTimer(h,"mozRequest","mozCancel","AnimationFrame"),s.patchTimer(h,"webkitRequest","webkitCancel","AnimationFrame");for(var f=0;f<p.length;f++){var d=p[f];c.patchMethod(h,d,function(e,t,n){return function(t,r){return Zone.current.run(e,h,r,n)}})}r.eventTargetPatch(h),i.propertyDescriptorPatch(h),c.patchClass("MutationObserver"),c.patchClass("WebKitMutationObserver"),c.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(h),n(h);var v=c.zoneSymbol("xhrTask");h.navigator&&h.navigator.geolocation&&c.patchPrototype(h.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(){D||T||0!=b.length||(e[y]?e[y].resolve(0)[g](a):e[k](a,0))}function r(e){n(),b.push(e)}function o(e){var t=e&&e.rejection;t&&console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t),console.error(e)}function a(){if(!_){for(_=!0;b.length;){var e=b;b=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){o(r)}}}for(;w.length;){var a=w;w=[];for(var i=function(e){var t=a[e];try{t.zone.runGuarded(function(){throw t})}catch(n){o(n)}},t=0;t<a.length;t++)i(t)}_=!1,D=!1}}function i(e){return e&&e.then}function s(e){return e}function c(e){return M.reject(e)}function u(e,t){return function(n){l(e,t,n)}}function l(e,t,r){if(e[S]===O)if(r instanceof M&&r[S]!==O)p(r),l(e,r[S],r[E]);else if(i(r))r.then(u(e,t),u(e,!1));else{e[S]=t;var o=e[E];e[E]=r;for(var a=0;a<o.length;)h(e,o[a++],o[a++],o[a++],o[a++]);if(0==o.length&&t==Z){e[S]=C;try{throw new Error("Uncaught (in promise): "+r)}catch(s){var c=s;c.rejection=r,c.promise=e,c.zone=f.current,c.task=f.currentTask,w.push(c),n()}}}return e}function p(e){if(e[S]===C){e[S]=Z;for(var t=0;t<w.length;t++)if(e===w[t].promise){w.splice(t,1);break}}}function h(e,t,n,r,o){p(e);var a=e[S]?r||s:o||c;t.scheduleMicroTask(P,function(){try{l(n,!0,t.run(a,null,[e[E]]))}catch(r){l(n,!1,r)}})}var f=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return T},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))
2016-01-25 00:27:39 +03:00
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Reflect;
(function (Reflect) {
2016-03-15 17:20:16 +03:00
"use strict";
2016-01-25 00:27:39 +03:00
// Load global or shim versions of Map, Set, and WeakMap
var functionPrototype = Object.getPrototypeOf(Function);
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
// [[Metadata]] internal slot
var __Metadata__ = new _WeakMap();
/**
* Applies a set of decorators to a property of a target object.
* @param decorators An array of decorators.
* @param target The target object.
* @param targetKey (Optional) The property key to decorate.
* @param targetDescriptor (Optional) The property descriptor for the target key
* @remarks Decorators are applied in reverse order.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* C = Reflect.decorate(decoratorsArray, C);
*
* // property (on constructor)
* Reflect.decorate(decoratorsArray, C, "staticProperty");
*
* // property (on prototype)
* Reflect.decorate(decoratorsArray, C.prototype, "property");
*
* // method (on constructor)
* Object.defineProperty(C, "staticMethod",
* Reflect.decorate(decoratorsArray, C, "staticMethod",
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
*
* // method (on prototype)
* Object.defineProperty(C.prototype, "method",
* Reflect.decorate(decoratorsArray, C.prototype, "method",
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
*
*/
function decorate(decorators, target, targetKey, targetDescriptor) {
if (!IsUndefined(targetDescriptor)) {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsObject(target)) {
throw new TypeError();
}
else if (IsUndefined(targetKey)) {
throw new TypeError();
}
else if (!IsObject(targetDescriptor)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
}
else if (!IsUndefined(targetKey)) {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsObject(target)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
}
else {
if (!IsArray(decorators)) {
throw new TypeError();
}
else if (!IsConstructor(target)) {
throw new TypeError();
}
return DecorateConstructor(decorators, target);
}
}
Reflect.decorate = decorate;
/**
* A default metadata decorator factory that can be used on a class, class member, or parameter.
* @param metadataKey The key for the metadata entry.
* @param metadataValue The value for the metadata entry.
* @returns A decorator function.
* @remarks
* If `metadataKey` is already defined for the target and target key, the
* metadataValue for that key will be overwritten.
* @example
*
* // constructor
* @Reflect.metadata(key, value)
* class C {
* }
*
* // property (on constructor, TypeScript only)
* class C {
* @Reflect.metadata(key, value)
* static staticProperty;
* }
*
* // property (on prototype, TypeScript only)
* class C {
* @Reflect.metadata(key, value)
* property;
* }
*
* // method (on constructor)
* class C {
* @Reflect.metadata(key, value)
* static staticMethod() { }
* }
*
* // method (on prototype)
* class C {
* @Reflect.metadata(key, value)
* method() { }
* }
*
*/
function metadata(metadataKey, metadataValue) {
function decorator(target, targetKey) {
if (!IsUndefined(targetKey)) {
if (!IsObject(target)) {
throw new TypeError();
}
targetKey = ToPropertyKey(targetKey);
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
}
else {
if (!IsConstructor(target)) {
throw new TypeError();
}
2016-03-15 17:20:16 +03:00
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
2016-01-25 00:27:39 +03:00
}
}
return decorator;
}
Reflect.metadata = metadata;
/**
* Define a unique metadata entry on the target.
* @param metadataKey A key used to store and retrieve metadata.
* @param metadataValue A value that contains attached metadata.
* @param target The target object on which to define metadata.
* @param targetKey (Optional) The property key for the target.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* Reflect.defineMetadata("custom:annotation", options, C);
*
* // property (on constructor)
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
*
* // property (on prototype)
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
*
* // method (on constructor)
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
*
* // method (on prototype)
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
*
* // decorator factory as metadata-producing annotation.
* function MyAnnotation(options): Decorator {
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
* }
*
*/
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
}
Reflect.defineMetadata = defineMetadata;
/**
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.hasMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
*
*/
function hasMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryHasMetadata(metadataKey, target, targetKey);
}
Reflect.hasMetadata = hasMetadata;
/**
* Gets a value indicating whether the target object has the provided metadata key defined.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.hasOwnMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
*
*/
function hasOwnMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
}
Reflect.hasOwnMetadata = hasOwnMetadata;
/**
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
*
*/
function getMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryGetMetadata(metadataKey, target, targetKey);
}
Reflect.getMetadata = getMetadata;
/**
* Gets the metadata value for the provided metadata key on the target object.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getOwnMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
*
*/
function getOwnMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
}
Reflect.getOwnMetadata = getOwnMetadata;
/**
* Gets the metadata keys defined on the target object or its prototype chain.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns An array of unique metadata keys.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getMetadataKeys(C);
*
* // property (on constructor)
* result = Reflect.getMetadataKeys(C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getMetadataKeys(C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getMetadataKeys(C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getMetadataKeys(C.prototype, "method");
*
*/
function getMetadataKeys(target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryMetadataKeys(target, targetKey);
}
Reflect.getMetadataKeys = getMetadataKeys;
/**
* Gets the unique metadata keys defined on the target object.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns An array of unique metadata keys.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.getOwnMetadataKeys(C);
*
* // property (on constructor)
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
*
*/
function getOwnMetadataKeys(target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
return OrdinaryOwnMetadataKeys(target, targetKey);
}
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
/**
* Deletes the metadata entry from the target object with the provided key.
* @param metadataKey A key used to store and retrieve metadata.
* @param target The target object on which the metadata is defined.
* @param targetKey (Optional) The property key for the target.
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
* @example
*
* class C {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* result = Reflect.deleteMetadata("custom:annotation", C);
*
* // property (on constructor)
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
*
* // property (on prototype)
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
*
* // method (on constructor)
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
*
* // method (on prototype)
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
*
*/
function deleteMetadata(metadataKey, target, targetKey) {
if (!IsObject(target)) {
throw new TypeError();
}
else if (!IsUndefined(targetKey)) {
targetKey = ToPropertyKey(targetKey);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (IsUndefined(metadataMap)) {
return false;
}
if (!metadataMap.delete(metadataKey)) {
return false;
}
if (metadataMap.size > 0) {
return true;
}
var targetMetadata = __Metadata__.get(target);
targetMetadata.delete(targetKey);
if (targetMetadata.size > 0) {
return true;
}
__Metadata__.delete(target);
return true;
}
Reflect.deleteMetadata = deleteMetadata;
function DecorateConstructor(decorators, target) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
var decorated = decorator(target);
if (!IsUndefined(decorated)) {
if (!IsConstructor(decorated)) {
throw new TypeError();
}
target = decorated;
}
}
return target;
}
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
var decorated = decorator(target, propertyKey, descriptor);
if (!IsUndefined(decorated)) {
if (!IsObject(decorated)) {
throw new TypeError();
}
descriptor = decorated;
}
}
return descriptor;
}
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
for (var i = decorators.length - 1; i >= 0; --i) {
var decorator = decorators[i];
decorator(target, propertyKey);
}
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
function GetOrCreateMetadataMap(target, targetKey, create) {
var targetMetadata = __Metadata__.get(target);
if (!targetMetadata) {
if (!create) {
return undefined;
}
targetMetadata = new _Map();
__Metadata__.set(target, targetMetadata);
}
var keyMetadata = targetMetadata.get(targetKey);
if (!keyMetadata) {
if (!create) {
return undefined;
}
keyMetadata = new _Map();
targetMetadata.set(targetKey, keyMetadata);
}
return keyMetadata;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
function OrdinaryHasMetadata(MetadataKey, O, P) {
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) {
return true;
}
var parent = GetPrototypeOf(O);
if (parent !== null) {
return OrdinaryHasMetadata(MetadataKey, parent, P);
}
return false;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (metadataMap === undefined) {
return false;
}
return Boolean(metadataMap.has(MetadataKey));
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
function OrdinaryGetMetadata(MetadataKey, O, P) {
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
if (hasOwn) {
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
}
var parent = GetPrototypeOf(O);
if (parent !== null) {
return OrdinaryGetMetadata(MetadataKey, parent, P);
}
return undefined;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (metadataMap === undefined) {
return undefined;
}
return metadataMap.get(MetadataKey);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
2016-01-25 00:27:39 +03:00
metadataMap.set(MetadataKey, MetadataValue);
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
function OrdinaryMetadataKeys(O, P) {
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
var parent = GetPrototypeOf(O);
if (parent === null) {
return ownKeys;
}
var parentKeys = OrdinaryMetadataKeys(parent, P);
if (parentKeys.length <= 0) {
return ownKeys;
}
if (ownKeys.length <= 0) {
return parentKeys;
}
var set = new _Set();
var keys = [];
for (var _i = 0; _i < ownKeys.length; _i++) {
var key = ownKeys[_i];
var hasKey = set.has(key);
if (!hasKey) {
set.add(key);
keys.push(key);
}
}
for (var _a = 0; _a < parentKeys.length; _a++) {
var key = parentKeys[_a];
var hasKey = set.has(key);
if (!hasKey) {
set.add(key);
keys.push(key);
}
}
return keys;
}
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
function OrdinaryOwnMetadataKeys(target, targetKey) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
var keys = [];
if (metadataMap) {
metadataMap.forEach(function (_, key) { return keys.push(key); });
}
return keys;
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
function IsUndefined(x) {
return x === undefined;
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
function IsArray(x) {
return Array.isArray(x);
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
function IsObject(x) {
return typeof x === "object" ? x !== null : typeof x === "function";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
function IsConstructor(x) {
return typeof x === "function";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
function IsSymbol(x) {
return typeof x === "symbol";
}
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
function ToPropertyKey(value) {
if (IsSymbol(value)) {
return value;
}
return String(value);
}
function GetPrototypeOf(O) {
var proto = Object.getPrototypeOf(O);
if (typeof O !== "function" || O === functionPrototype) {
return proto;
}
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
// Try to determine the superclass constructor. Compatible implementations
// must either set __proto__ on a subclass constructor to the superclass constructor,
// or ensure each class has a valid `constructor` property on its prototype that
// points back to the constructor.
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
// This is the case when in ES6 or when using __proto__ in a compatible browser.
if (proto !== functionPrototype) {
return proto;
}
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
var prototype = O.prototype;
var prototypeProto = Object.getPrototypeOf(prototype);
if (prototypeProto == null || prototypeProto === Object.prototype) {
return proto;
}
// if the constructor was not a function, then we cannot determine the heritage.
var constructor = prototypeProto.constructor;
if (typeof constructor !== "function") {
return proto;
}
// if we have some kind of self-reference, then we cannot determine the heritage.
if (constructor === O) {
return proto;
}
// we have a pretty good guess at the heritage.
return constructor;
}
// naive Map shim
function CreateMapPolyfill() {
var cacheSentinel = {};
function Map() {
this._keys = [];
this._values = [];
this._cache = cacheSentinel;
}
Map.prototype = {
get size() {
return this._keys.length;
},
has: function (key) {
if (key === this._cache) {
return true;
}
if (this._find(key) >= 0) {
this._cache = key;
return true;
}
return false;
},
get: function (key) {
var index = this._find(key);
if (index >= 0) {
this._cache = key;
return this._values[index];
}
return undefined;
},
set: function (key, value) {
this.delete(key);
this._keys.push(key);
this._values.push(value);
this._cache = key;
return this;
},
delete: function (key) {
var index = this._find(key);
if (index >= 0) {
this._keys.splice(index, 1);
this._values.splice(index, 1);
this._cache = cacheSentinel;
return true;
}
return false;
},
clear: function () {
this._keys.length = 0;
this._values.length = 0;
this._cache = cacheSentinel;
},
forEach: function (callback, thisArg) {
var size = this.size;
for (var i = 0; i < size; ++i) {
var key = this._keys[i];
var value = this._values[i];
this._cache = key;
callback.call(this, value, key, this);
}
},
_find: function (key) {
var keys = this._keys;
var size = keys.length;
for (var i = 0; i < size; ++i) {
if (keys[i] === key) {
return i;
}
}
return -1;
}
};
return Map;
}
// naive Set shim
function CreateSetPolyfill() {
var cacheSentinel = {};
function Set() {
this._map = new _Map();
}
Set.prototype = {
get size() {
return this._map.length;
},
has: function (value) {
return this._map.has(value);
},
add: function (value) {
this._map.set(value, value);
return this;
},
delete: function (value) {
return this._map.delete(value);
},
clear: function () {
this._map.clear();
},
forEach: function (callback, thisArg) {
this._map.forEach(callback, thisArg);
}
};
return Set;
}
// naive WeakMap shim
function CreateWeakMapPolyfill() {
var UUID_SIZE = 16;
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
var nodeCrypto = isNode && require("crypto");
var hasOwn = Object.prototype.hasOwnProperty;
var keys = {};
var rootKey = CreateUniqueKey();
function WeakMap() {
this._key = CreateUniqueKey();
}
WeakMap.prototype = {
has: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return this._key in table;
}
return false;
},
get: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return table[this._key];
}
return undefined;
},
set: function (target, value) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
2016-01-25 00:27:39 +03:00
table[this._key] = value;
return this;
},
delete: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table && this._key in table) {
return delete table[this._key];
}
return false;
},
clear: function () {
// NOTE: not a real clear, just makes the previous data unreachable
this._key = CreateUniqueKey();
}
};
function FillRandomBytes(buffer, size) {
for (var i = 0; i < size; ++i) {
buffer[i] = Math.random() * 255 | 0;
}
}
function GenRandomBytes(size) {
if (nodeCrypto) {
var data = nodeCrypto.randomBytes(size);
return data;
}
else if (typeof Uint8Array === "function") {
var data = new Uint8Array(size);
if (typeof crypto !== "undefined") {
crypto.getRandomValues(data);
}
else if (typeof msCrypto !== "undefined") {
msCrypto.getRandomValues(data);
}
else {
FillRandomBytes(data, size);
}
return data;
}
else {
var data = new Array(size);
FillRandomBytes(data, size);
return data;
}
}
function CreateUUID() {
var data = GenRandomBytes(UUID_SIZE);
// mark as random - RFC 4122 § 4.4
data[6] = data[6] & 0x4f | 0x40;
data[8] = data[8] & 0xbf | 0x80;
var result = "";
for (var offset = 0; offset < UUID_SIZE; ++offset) {
var byte = data[offset];
if (offset === 4 || offset === 6 || offset === 8) {
result += "-";
}
if (byte < 16) {
result += "0";
}
result += byte.toString(16).toLowerCase();
}
return result;
}
function CreateUniqueKey() {
var key;
do {
key = "@@WeakMap@@" + CreateUUID();
} while (hasOwn.call(keys, key));
keys[key] = true;
return key;
}
function GetOrCreateWeakMapTable(target, create) {
if (!hasOwn.call(target, rootKey)) {
if (!create) {
return undefined;
}
Object.defineProperty(target, rootKey, { value: Object.create(null) });
}
return target[rootKey];
}
return WeakMap;
}
// hook global Reflect
(function (__global) {
if (typeof __global.Reflect !== "undefined") {
if (__global.Reflect !== Reflect) {
for (var p in Reflect) {
__global.Reflect[p] = Reflect[p];
}
}
}
else {
__global.Reflect = Reflect;
}
})(typeof window !== "undefined" ? window :
typeof WorkerGlobalScope !== "undefined" ? self :
typeof global !== "undefined" ? global :
Function("return this;")());
})(Reflect || (Reflect = {}));
2016-05-20 23:13:38 +03:00
//# sourceMappingURL=Reflect.js.map
!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:[
2016-03-15 00:42:27 +03:00
2016-06-18 21:14:20 +03:00
/* **********************************************
Begin prism-core.js
********************************************** */
var _self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
: {} // if in node js
);
/**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.org/licenses/mit-license.php/
* @author Lea Verou http://lea.verou.me
*/
var Prism = (function(){
// Private helper vars
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
var _ = _self.Prism = {
util: {
encode: function (tokens) {
if (tokens instanceof Token) {
return new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);
} else if (_.util.type(tokens) === 'Array') {
return tokens.map(_.util.encode);
} else {
return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
}
},
type: function (o) {
return Object.prototype.toString.call(o).match(/\[object (\w+)\]/)[1];
},
// Deep clone a language definition (e.g. to extend it)
clone: function (o) {
var type = _.util.type(o);
switch (type) {
case 'Object':
var clone = {};
for (var key in o) {
if (o.hasOwnProperty(key)) {
clone[key] = _.util.clone(o[key]);
}
}
return clone;
case 'Array':
// Check for existence for IE8
return o.map && o.map(function(v) { return _.util.clone(v); });
}
return o;
}
},
languages: {
extend: function (id, redef) {
var lang = _.util.clone(_.languages[id]);
for (var key in redef) {
lang[key] = redef[key];
}
return lang;
},
/**
* Insert a token before another token in a language literal
* As this needs to recreate the object (we cannot actually insert before keys in object literals),
* we cannot just provide an object, we need anobject and a key.
* @param inside The key (or language id) of the parent
* @param before The key to insert before. If not provided, the function appends instead.
* @param insert Object with the key/value pairs to insert
* @param root The object that contains `inside`. If equal to Prism.languages, it can be omitted.
*/
insertBefore: function (inside, before, insert, root) {
root = root || _.languages;
var grammar = root[inside];
if (arguments.length == 2) {
insert = arguments[1];
for (var newToken in insert) {
if (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) {
if (insert.hasOwnProperty(newToken)) {
ret[newToken] = insert[newToken];
}
}
}
ret[token] = grammar[token];
}
}
// Update references in other language definitions
_.languages.DFS(_.languages, function(key, value) {
if (value === root[inside] && key != inside) {
this[key] = ret;
}
});
return root[inside] = ret;
},
// Traverse a language definition with Depth First Search
DFS: function(o, callback, type) {
for (var i in o) {
if (o.hasOwnProperty(i)) {
callback.call(o, i, o[i], type || i);
if (_.util.type(o[i]) === 'Object') {
_.languages.DFS(o[i], callback);
}
else if (_.util.type(o[i]) === 'Array') {
_.languages.DFS(o[i], callback, i);
}
}
}
}
},
plugins: {},
highlightAll: function(async, callback) {
var elements = document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');
for (var i=0, element; element = elements[i++];) {
_.highlightElement(element, async === true, callback);
}
},
highlightElement: function(element, async, callback) {
// Find language
var language, grammar, parent = element;
while (parent && !lang.test(parent.className)) {
parent = parent.parentNode;
}
if (parent) {
language = (parent.className.match(lang) || [,''])[1];
grammar = _.languages[language];
}
// Set language on the element, if not present
element.className = element.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
// Set language on the parent, for styling
parent = element.parentNode;
if (/pre/i.test(parent.nodeName)) {
parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
}
var code = element.textContent;
var env = {
element: element,
language: language,
grammar: grammar,
code: code
};
if (!code || !grammar) {
_.hooks.run('complete', env);
return;
}
_.hooks.run('before-highlight', env);
if (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: true
}));
}
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;
var strarr = [text];
var 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]) {
continue;
}
var patterns = grammar[token];
patterns = (_.util.type(patterns) === "Array") ? 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++) { // Dont cache length as it changes during the loop
var str = strarr[i];
if (strarr.length > text.length) {
// Something went terribly wrong, ABORT, ABORT!
break tokenloop;
}
if (str instanceof Token) {
continue;
}
pattern.lastIndex = 0;
var match = pattern.exec(str);
if (match) {
if(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);
var args = [i, 1];
if (before) {
args.push(before);
}
var wrapped = new Token(token, inside? _.tokenize(match, inside) : match, alias);
args.push(wrapped);
if (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) {
return;
}
for (var i=0, callback; callback = callbacks[i++];) {
callback(env);
}
}
}
};
var Token = _.Token = function(type, content, alias) {
this.type = type;
this.content = content;
this.alias = alias;
};
Token.stringify = function(o, language, parent) {
if (typeof o == 'string') {
return o;
}
if (_.util.type(o) === 'Array') {
return o.map(function(element) {
return Token.stringify(element, language, o);
}).join('');
}
var env = {
type: o.type,
content: Token.stringify(o.content, language, parent),
tag: 'span',
classes: ['token', o.type],
attributes: {},
language: language,
parent: parent
};
if (env.type == 'comment') {
env.attributes['spellcheck'] = 'true';
}
if (o.alias) {
var aliases = _.util.type(o.alias) === 'Array' ? o.alias : [o.alias];
Array.prototype.push.apply(env.classes, aliases);
}
_.hooks.run('wrap', env);
var attributes = '';
for (var name in env.attributes) {
attributes += (attributes ? ' ' : '') + name + '="' + (env.attributes[name] || '') + '"';
}
return '<' + env.tag + ' class="' + env.classes.join(' ') + '" ' + attributes + '>' + env.content + '</' + env.tag + '>';
};
if (!_self.document) {
if (!_self.addEventListener) {
// in Node.js
return _self.Prism;
}
// In worker
_self.addEventListener('message', function(evt) {
var message = JSON.parse(evt.data),
lang = message.language,
code = message.code,
immediateClose = message.immediateClose;
_self.postMessage(_.highlight(code, _.languages[lang], lang));
if (immediateClose) {
_self.close();
}
}, false);
return _self.Prism;
}
// Get current script and highlight
var script = document.getElementsByTagName('script');
script = script[script.length - 1];
if (script) {
_.filename = script.src;
if (document.addEventListener && !script.hasAttribute('data-manual')) {
document.addEventListener('DOMContentLoaded', _.highlightAll);
}
}
return _self.Prism;
})();
if (typeof module !== 'undefined' && module.exports) {
module.exports = Prism;
}
// hack for components to work correctly in node.js
if (typeof global !== 'undefined') {
global.Prism = Prism;
}
/* **********************************************
Begin prism-markup.js
********************************************** */
Prism.languages.markup = {
'comment': /<!--[\w\W]*?-->/,
'prolog': /<\?[\w\W]+?\?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
pattern: /<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
inside: {
'tag': {
pattern: /^<\/?[^\s>\/]+/i,
inside: {
'punctuation': /^<\/?/,
'namespace': /^[^\s>\/:]+:/
}
},
'attr-value': {
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
inside: {
'punctuation': /[=>"']/
}
},
'punctuation': /\/?>/,
'attr-name': {
pattern: /[^\s>\/]+/,
inside: {
'namespace': /^[^\s>\/:]+:/
}
}
}
},
'entity': /&#?[\da-z]{1,8};/i
};
// Plugin to make entity title show the real entity, idea by Roman Komarov
Prism.hooks.add('wrap', function(env) {
if (env.type === 'entity') {
env.attributes['title'] = env.content.replace(/&amp;/, '&');
}
});
Prism.languages.xml = Prism.languages.markup;
Prism.languages.html = Prism.languages.markup;
Prism.languages.mathml = Prism.languages.markup;
Prism.languages.svg = Prism.languages.markup;
/* **********************************************
Begin prism-css.js
********************************************** */
Prism.languages.css = {
'comment': /\/\*[\w\W]*?\*\//,
'atrule': {
pattern: /@[\w-]+?.*?(;|(?=\s*\{))/i,
inside: {
'rule': /@[\w-]+/
// See rest below
}
},
'url': /url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,
'selector': /[^\{\}\s][^\{\};]*?(?=\s*\{)/,
'string': /("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,
'property': /(\b|\B)[\w-]+(?=\s*:)/i,
'important': /\B!important\b/i,
'function': /[-a-z0-9]+(?=\()/i,
'punctuation': /[(){};:]/
};
Prism.languages.css['atrule'].inside.rest = Prism.util.clone(Prism.languages.css);
if (Prism.languages.markup) {
Prism.languages.insertBefore('markup', 'tag', {
'style': {
pattern: /(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,
lookbehind: true,
inside: Prism.languages.css,
alias: 'language-css'
}
});
Prism.languages.insertBefore('inside', 'attr-value', {
'style-attr': {
pattern: /\s*style=("|').*?\1/i,
inside: {
'attr-name': {
pattern: /^\s*style/i,
inside: Prism.languages.markup.tag.inside
},
'punctuation': /^\s*=\s*['"]|['"]\s*$/,
'attr-value': {
pattern: /.+/i,
inside: Prism.languages.css
}
},
alias: 'language-css'
}
}, Prism.languages.markup.tag);
}
/* **********************************************
Begin prism-clike.js
********************************************** */
Prism.languages.clike = {
'comment': [
{
pattern: /(^|[^\\])\/\*[\w\W]*?\*\//,
lookbehind: true
},
{
pattern: /(^|[^\\:])\/\/.*/,
lookbehind: true
}
],
'string': /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
'class-name': {
pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,
lookbehind: true,
inside: {
punctuation: /(\.|\\)/
}
},
'keyword': /\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
'boolean': /\b(true|false)\b/,
'function': /[a-z0-9_]+(?=\()/i,
'number': /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,
'operator': /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,
'punctuation': /[{}[\];(),.:]/
};
/* **********************************************
Begin prism-javascript.js
********************************************** */
Prism.languages.javascript = Prism.languages.extend('clike', {
'keyword': /\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,
'number': /\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
'function': /[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i
});
Prism.languages.insertBefore('javascript', 'keyword', {
'regex': {
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,
lookbehind: true
}
});
Prism.languages.insertBefore('javascript', 'class-name', {
'template-string': {
pattern: /`(?:\\`|\\?[^`])*`/,
inside: {
'interpolation': {
pattern: /\$\{[^}]+\}/,
inside: {
'interpolation-punctuation': {
pattern: /^\$\{|\}$/,
alias: 'punctuation'
},
rest: Prism.languages.javascript
}
},
'string': /[\s\S]+/
}
}
});
if (Prism.languages.markup) {
Prism.languages.insertBefore('markup', 'tag', {
'script': {
pattern: /(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,
lookbehind: true,
inside: Prism.languages.javascript,
alias: 'language-javascript'
}
});
}
Prism.languages.js = Prism.languages.javascript;
/* **********************************************
Begin prism-file-highlight.js
********************************************** */
(function () {
if (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) {
return;
}
self.Prism.fileHighlight = function() {
var Extensions = {
'js': 'javascript',
'html': 'markup',
'svg': 'markup',
'xml': 'markup',
'py': 'python',
'rb': 'ruby',
'ps1': 'powershell',
'psm1': 'powershell'
};
if(Array.prototype.forEach) { // Check to prevent error in IE8
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
var src = pre.getAttribute('data-src');
var language, parent = pre;
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
while (parent && !lang.test(parent.className)) {
parent = parent.parentNode;
}
if (parent) {
language = (pre.className.match(lang) || [, ''])[1];
}
if (!language) {
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
language = Extensions[extension] || extension;
}
var code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
}
else if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
}
else {
code.textContent = '✖ Error: File does not exist or is empty';
}
}
};
xhr.send(null);
});
}
};
self.Prism.fileHighlight();
})();
/* */
"format cjs";
Prism.languages.actionscript = Prism.languages.extend('javascript', {
'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,
'operator': /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/
});
Prism.languages.actionscript['class-name'].alias = 'function';
if (Prism.languages.markup) {
Prism.languages.insertBefore('actionscript', 'string', {
'xml': {
pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\\1|\\?(?!\1)[\w\W])*\2)*\s*\/?>/,
lookbehind: true,
inside: {
rest: Prism.languages.markup
}
}
});
}
/* */
"format cjs";
Prism.languages.c = Prism.languages.extend('clike', {
'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
'operator': /\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/,
'number': /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i
});
Prism.languages.insertBefore('c', 'string', {
'macro': {
// allow for multiline macro definitions
// spaces after the # character compile fine with gcc
pattern: /(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,
lookbehind: true,
alias: 'property',
inside: {
// highlight the path of the include statement as a string
'string': {
pattern: /(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,
lookbehind: true
},
// highlight macro directives as keywords
'directive': {
pattern: /(#\s*)\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,
lookbehind: true,
alias: 'keyword'
}
}
},
// highlight predefined macros as constants
'constant': /\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\b/
});
delete Prism.languages.c['class-name'];
delete Prism.languages.c['boolean'];
/* */
"format cjs";
Prism.languages.cpp = Prism.languages.extend('c', {
'keyword': /\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
'boolean': /\b(true|false)\b/,
'operator': /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/
});
Prism.languages.insertBefore('cpp', 'keyword', {
'class-name': {
pattern: /(class\s+)[a-z0-9_]+/i,
lookbehind: true
}
});
/* */
"format cjs";
Prism.languages.csharp = Prism.languages.extend('clike', {
'keyword': /\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,
'string': [
/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,
/("|')(\\?.)*?\1/
],
'number': /\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i
});
Prism.languages.insertBefore('csharp', 'keyword', {
'preprocessor': {
pattern: /(^\s*)#.*/m,
lookbehind: true,
alias: 'property',
inside: {
// highlight preprocessor directives as keywords
'directive': {
pattern: /(\s*#)\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,
lookbehind: true,
alias: 'keyword'
}
}
}
});
/* */
"format cjs";
/**
* Original by Aaron Harun: http://aahacreative.com/2012/07/31/php-syntax-highlighting-prism/
* Modified by Miles Johnson: http://milesj.me
*
* Supports the following:
* - Extends clike syntax
* - Support for PHP 5.3+ (namespaces, traits, generators, etc)
* - Smarter constant and function matching
*
* Adds the following new token classes:
* constant, delimiter, variable, function, package
*/
Prism.languages.php = Prism.languages.extend('clike', {
'keyword': /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,
'constant': /\b[A-Z0-9_]{2,}\b/,
'comment': {
pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,
lookbehind: true
}
});
// Shell-like comments are matched after strings, because they are less
// common than strings containing hashes...
Prism.languages.insertBefore('php', 'class-name', {
'shell-comment': {
pattern: /(^|[^\\])#.*/,
lookbehind: true,
alias: 'comment'
}
});
Prism.languages.insertBefore('php', 'keyword', {
'delimiter': /\?>|<\?(?:php)?/i,
'variable': /\$\w+\b/i,
'package': {
pattern: /(\\|namespace\s+|use\s+)[\w\\]+/,
lookbehind: true,
inside: {
punctuation: /\\/
}
}
});
// Must be defined after the function pattern
Prism.languages.insertBefore('php', 'operator', {
'property': {
pattern: /(->)[\w]+/,
lookbehind: true
}
});
// Add HTML support of the markup language exists
if (Prism.languages.markup) {
// Tokenize all inline PHP blocks that are wrapped in <?php ?>
// This allows for easy PHP + markup highlighting
Prism.hooks.add('before-highlight', function(env) {
if (env.language !== 'php') {
return;
}
env.tokenStack = [];
env.backupCode = env.code;
env.code = env.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/ig, function(match) {
env.tokenStack.push(match);
return '{{{PHP' + env.tokenStack.length + '}}}';
});
});
// Restore env.code for other plugins (e.g. line-numbers)
Prism.hooks.add('before-insert', function(env) {
if (env.language === 'php') {
env.code = env.backupCode;
delete env.backupCode;
}
});
// Re-insert the tokens after highlighting
Prism.hooks.add('after-highlight', function(env) {
if (env.language !== 'php') {
return;
}
for (var i = 0, t; t = env.tokenStack[i]; i++) {
// The replace prevents $$, $&, $`, $', $n, $nn from being interpreted as special patterns
env.highlightedCode = env.highlightedCode.replace('{{{PHP' + (i + 1) + '}}}', Prism.highlight(t, env.grammar, 'php').replace(/\$/g, '$$$$'));
}
env.element.innerHTML = env.highlightedCode;
});
// Wrap tokens in classes that are missing them
Prism.hooks.add('wrap', function(env) {
if (env.language === 'php' && env.type === 'markup') {
env.content = env.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g, "<span class=\"token php\">$1</span>");
}
});
// Add the rules before all others
Prism.languages.insertBefore('php', 'comment', {
'markup': {
pattern: /<[^?]\/?(.*?)>/,
inside: Prism.languages.markup
},
'php': /\{\{\{PHP[0-9]+\}\}\}/
});
}
/* */
"format cjs";
(function(Prism) {
// Ignore comments starting with { to privilege string interpolation highlighting
var comment = /#(?!\{).+/,
interpolation = {
pattern: /#\{[^}]+\}/,
alias: 'variable'
};
Prism.languages.coffeescript = Prism.languages.extend('javascript', {
'comment': comment,
'string': [
// Strings are multiline
/'(?:\\?[^\\])*?'/,
{
// Strings are multiline
pattern: /"(?:\\?[^\\])*?"/,
inside: {
'interpolation': interpolation
}
}
],
'keyword': /\b(and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,
'class-member': {
pattern: /@(?!\d)\w+/,
alias: 'variable'
}
});
Prism.languages.insertBefore('coffeescript', 'comment', {
'multiline-comment': {
pattern: /###[\s\S]+?###/,
alias: 'comment'
},
// Block regexp can contain comments and interpolation
'block-regex': {
pattern: /\/{3}[\s\S]*?\/{3}/,
alias: 'regex',
inside: {
'comment': comment,
'interpolation': interpolation
}
}
});
Prism.languages.insertBefore('coffeescript', 'string', {
'inline-javascript': {
pattern: /`(?:\\?[\s\S])*?`/,
inside: {
'delimiter': {
pattern: /^`|`$/,
alias: 'punctuation'
},
rest: Prism.languages.javascript
}
},
// Block strings
'multiline-string': [
{
pattern: /'''[\s\S]*?'''/,
alias: 'string'
},
{
pattern: /"""[\s\S]*?"""/,
alias: 'string',
inside: {
interpolation: interpolation
}
}
]
});
Prism.languages.insertBefore('coffeescript', 'keyword', {
// Object property
'property': /(?!\d)\w+(?=\s*:(?!:))/
});
}(Prism));
/* */
"format cjs";
Prism.languages.go = Prism.languages.extend('clike', {
'keyword': /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
'builtin': /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,
'boolean': /\b(_|iota|nil|true|false)\b/,
'operator': /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
'number': /\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,
'string': /("|'|`)(\\?.|\r|\n)*?\1/
});
delete Prism.languages.go['class-name'];
/* */
"format cjs";
Prism.languages.haskell= {
'comment': {
pattern: /(^|[^-!#$%*+=?&@|~.:<>^\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\/].*|{-[\w\W]*?-})/m,
lookbehind: true
},
'char': /'([^\\']|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,
'string': /"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/,
'keyword' : /\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,
'import_statement' : {
// The imported or hidden names are not included in this import
// statement. This is because we want to highlight those exactly like
// we do for the names in the program.
pattern: /(\r?\n|\r|^)\s*import\s+(qualified\s+)?([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*(\s+as\s+([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)?(\s+hiding\b)?/m,
inside: {
'keyword': /\b(import|qualified|as|hiding)\b/
}
},
// These are builtin variables only. Constructors are highlighted later as a constant.
'builtin': /\b(abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,
// decimal integers and floating point numbers | octal integers | hexadecimal integers
'number' : /\b(\d+(\.\d+)?(e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,
// Most of this is needed because of the meaning of a single '.'.
// If it stands alone freely, it is the function composition.
// It may also be a separator between a module name and an identifier => no
// operator. If it comes together with other special characters it is an
// operator too.
'operator' : /\s\.\s|[-!#$%*+=?&@|~.:<>^\\\/]*\.[-!#$%*+=?&@|~.:<>^\\\/]+|[-!#$%*+=?&@|~.:<>^\\\/]+\.[-!#$%*+=?&@|~.:<>^\\\/]*|[-!#$%*+=?&@|~:<>^\\\/]+|`([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`/,
// In Haskell, nearly everything is a variable, do not highlight these.
'hvariable': /\b([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*\b/,
'constant': /\b([A-Z][_a-zA-Z0-9']*\.)*[A-Z][_a-zA-Z0-9']*\b/,
'punctuation' : /[{}[\];(),.:]/
};
/* */
"format cjs";
Prism.languages.java = Prism.languages.extend('clike', {
'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,
'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,
'operator': {
pattern: /(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,
lookbehind: true
}
});
/* */
"format cjs";
Prism.languages.lua = {
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
// \z may be used to skip the following space
'string': /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[\s\S]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,
'number': /\b0x[a-f\d]+\.?[a-f\d]*(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|\.?\d*(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
'keyword': /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,
'function': /(?!\d)\w+(?=\s*(?:[({]))/,
'operator': [
/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,
{
// Match ".." but don't break "..."
pattern: /(^|[^.])\.\.(?!\.)/,
lookbehind: true
}
],
'punctuation': /[\[\](){},;]|\.+|:+/
};
/* */
"format cjs";
Prism.languages.matlab = {
// We put string before comment, because of printf() patterns that contain "%"
'string': /\B'(?:''|[^'\n])*'/,
'comment': [
/%\{[\s\S]*?\}%/,
/%.+/
],
// FIXME We could handle imaginary numbers as a whole
'number': /\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/,
'keyword': /\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/,
'function': /(?!\d)\w+(?=\s*\()/,
'operator': /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,
'punctuation': /\.{3}|[.,;\[\](){}!]/
};
/* */
"format cjs";
Prism.languages.perl = {
'comment': [
{
// POD
pattern: /(^\s*)=\w+[\s\S]*?=cut.*/m,
lookbehind: true
},
{
pattern: /(^|[^\\$])#.*/,
lookbehind: true
}
],
// TODO Could be nice to handle Heredoc too.
'string': [
// q/.../
/\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,
// q a...a
/\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\1/,
// q(...)
/\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/,
// q{...}
/\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/,
// q[...]
/\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/,
// q<...>
/\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/,
// "...", `...`
/("|`)(?:[^\\]|\\[\s\S])*?\1/,
// '...'
// FIXME Multi-line single-quoted strings are not supported as they would break variables containing '
/'(?:[^'\\\r\n]|\\.)*'/
],
'regex': [
// m/.../
/\b(?:m|qr)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[msixpodualngc]*/,
// m a...a
/\b(?:m|qr)\s+([a-zA-Z0-9])(?:[^\\]|\\.)*?\1[msixpodualngc]*/,
// m(...)
/\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/,
// m{...}
/\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/,
// m[...]
/\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/,
// m<...>
/\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/,
// The lookbehinds prevent -s from breaking
// FIXME We don't handle change of separator like s(...)[...]
// s/.../.../
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,
lookbehind: true
},
// s a...a...a
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,
lookbehind: true
},
// s(...)(...)
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/,
lookbehind: true
},
// s{...}{...}
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/,
lookbehind: true
},
// s[...][...]
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/,
lookbehind: true
},
// s<...><...>
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/,
lookbehind: true
},
// /.../
// The look-ahead tries to prevent two divisions on
// the same line from being highlighted as regex.
// This does not support multi-line regex.
/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/
],
// FIXME Not sure about the handling of ::, ', and #
'variable': [
// ${^POSTMATCH}
/[&*$@%]\{\^[A-Z]+\}/,
// $^V
/[&*$@%]\^[A-Z_]/,
// ${...}
/[&*$@%]#?(?=\{)/,
// $foo
/[&*$@%]#?((::)*'?(?!\d)[\w$]+)+(::)*/i,
// $1
/[&*$@%]\d+/,
// $_, @_, %!
// The negative lookahead prevents from breaking the %= operator
/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/
],
'filehandle': {
// <>, <FOO>, _
pattern: /<(?![<=])\S*>|\b_\b/,
alias: 'symbol'
},
'vstring': {
// v1.2, 1.2.3
pattern: /v\d+(\.\d+)*|\d+(\.\d+){2,}/,
alias: 'string'
},
'function': {
pattern: /sub [a-z0-9_]+/i,
inside: {
keyword: /sub/
}
},
'keyword': /\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|say|state|sub|switch|undef|unless|until|use|when|while)\b/,
'number': /\b-?(0x[\dA-Fa-f](_?[\dA-Fa-f])*|0b[01](_?[01])*|(\d(_?\d)*)?\.?\d(_?\d)*([Ee][+-]?\d+)?)\b/,
'operator': /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/,
'punctuation': /[{}[\];(),:]/
};
/* */
"format cjs";
Prism.languages.python= {
'triple-quoted-string': {
pattern: /"""[\s\S]+?"""|'''[\s\S]+?'''/,
alias: 'string'
},
'comment': {
pattern: /(^|[^\\])#.*/,
lookbehind: true
},
'string': /("|')(?:\\?.)*?\1/,
'function' : {
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,
lookbehind: true
},
'class-name': {
pattern: /(\bclass\s+)[a-z0-9_]+/i,
lookbehind: true
},
'keyword' : /\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,
'boolean' : /\b(?:True|False)\b/,
'number' : /\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
'operator' : /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,
'punctuation' : /[{}[\];(),.:]/
};
/* */
"format cjs";
Prism.languages.r = {
'comment': /#.*/,
'string': /(['"])(?:\\?.)*?\1/,
'percent-operator': {
// Includes user-defined operators
// and %%, %*%, %/%, %in%, %o%, %x%
pattern: /%[^%\s]*%/,
alias: 'operator'
},
'boolean': /\b(?:TRUE|FALSE)\b/,
'ellipsis': /\.\.(?:\.|\d+)/,
'number': [
/\b(?:NaN|Inf)\b/,
/\b(?:0x[\dA-Fa-f]+(?:\.\d*)?|\d*\.?\d+)(?:[EePp][+-]?\d+)?[iL]?\b/
],
'keyword': /\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,
'operator': /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,
'punctuation': /[(){}\[\],;]/
};
/* */
"format cjs";
/**
* Original by Samuel Flores
*
* Adds the following new token classes:
* constant, builtin, variable, symbol, regex
*/
(function(Prism) {
Prism.languages.ruby = Prism.languages.extend('clike', {
'comment': /#(?!\{[^\r\n]*?\}).*/,
'keyword': /\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/
});
var interpolation = {
pattern: /#\{[^}]+\}/,
inside: {
'delimiter': {
pattern: /^#\{|\}$/,
alias: 'tag'
},
rest: Prism.util.clone(Prism.languages.ruby)
}
};
Prism.languages.insertBefore('ruby', 'keyword', {
'regex': [
{
pattern: /%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
// Here we need to specifically allow interpolation
pattern: /%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,
lookbehind: true
}
],
'variable': /[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,
'symbol': /:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/
});
Prism.languages.insertBefore('ruby', 'number', {
'builtin': /\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
'constant': /\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/
});
Prism.languages.ruby.string = [
{
pattern: /%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,
inside: {
'interpolation': interpolation
}
},
{
// Here we need to specifically allow 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));
/* */
"format cjs";
(function(Prism) {
var insideString = {
variable: [
// Arithmetic Environment
{
pattern: /\$?\(\([\w\W]+?\)\)/,
inside: {
// If there is a $ sign at the beginning highlight $(( and )) as variable
variable: [{
pattern: /(^\$\(\([\w\W]+)\)\)/,
lookbehind: true
},
/^\$\(\(/,
],
number: /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
operator: /--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,
// If there is no $ sign at the beginning highlight (( and )) as punctuation
punctuation: /\(\(?|\)\)?|,|;/
}
},
// Command Substitution
{
pattern: /\$\([^)]+\)|`[^`]+`/,
inside: {
variable: /^\$\(|^`|\)$|`$/
}
},
/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i
],
};
Prism.languages.bash = {
'shebang': {
pattern: /^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,
alias: 'important'
},
'comment': {
pattern: /(^|[^"{\\])#.*/,
lookbehind: true
},
'string': [
//Support for Here-Documents https://en.wikipedia.org/wiki/Here_document
{
pattern: /((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,
lookbehind: true,
inside: insideString
},
{
pattern: /("|')(?:\\?[\s\S])*?\1/g,
inside: insideString
}
],
'variable': insideString.variable,
// Originally based on http://ss64.com/bash/
'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: true
},
'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: true
},
'boolean': {
pattern: /(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,
lookbehind: true
},
'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);
/* */
"format cjs";
// issues: nested multiline comments
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'
}
// See rest below
}
}
}
},
'keyword': /\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,
'number': /\b([\d_]+(\.[\de_]+)?|0x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
'constant': /\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
'atrule': /@\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,
'builtin': /\b([A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/
});
Prism.languages.swift['string'].inside['interpolation'].inside.rest = Prism.util.clone(Prism.languages.swift);
/* */
"format cjs";
Prism.languages.objectivec = Prism.languages.extend('c', {
'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
'operator': /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
});
/* */
"format cjs";
Prism.languages.scala = Prism.languages.extend('java', {
'keyword': /<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,
'string': /"""[\W\w]*?"""|"(?:[^"\\\r\n]|\\.)*"|'(?:[^\\\r\n']|\\.[^\\']*)'/,
'builtin': /\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/,
'number': /\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i,
'symbol': /'[^\d\s\\]\w*/
});
delete Prism.languages.scala['class-name'];
delete Prism.languages.scala['function'];
2016-07-01 18:45:13 +03:00
!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(q.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=p[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?w[a]=b:w[a]=k(b)})(d[h],arguments[h]);e(g);var i=o(a[0]);if(a.length>1)for(var h
this.importsWithPrefixes=new Map}return g(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return a.hasModifier(j.StmtModifier.Final)?f(a.type)?b.print("const "):b.print("final "):i.isBlank(a.type)&&b.print("var "),i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.print(a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("("),a.value.visitExpression(this,b),b.print(" as "),a.type.visitType(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.print("class "+a.name),i.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),i.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(j.StmtModifier.Final)?b.print("final "):i.isBlank(a.type)&&b.print("var "),i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println(a.name+";")},b.prototype._visitClassGetter=function(a,b){i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println("get "+a.name+" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print(a.name+"("),this._visitParams(a.constructorMethod.params,b),b.print(")");var c=a.constructorMethod.body,d=c.length>0?e(c[0]):null;i.isPresent(d)&&(b.print(": "),d.visitExpression(this,b),c=c.slice(1)),b.println(" {"),b.incIndent(),this.visitAllStatements(c,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case j.BuiltinMethod.ConcatArray:b=".addAll";break;case j.BuiltinMethod.SubscribeObservable:b="listen";break;case j.BuiltinMethod.bind:b=null;break;default:throw new h.BaseException("Unknown builtin method: "+a)}return b},b.prototype.visitTryCatchStmt=function(a,b){return b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+k.CATCH_ERROR_VAR.name+", "+k.CATCH_STACK_VAR.name+") {"),b.incIndent(),this.visitAllStatements(a.catchStmts,b),b.decIndent(),b.println("}"),null},b.prototype.visitBinaryOperatorExpr=function(b,c){switch(b.operator){case j.BinaryOperator.Identical:c.print("identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;case j.BinaryOperator.NotIdentical:c.print("!identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;default:a.prototype.visitBinaryOperatorExpr.call(this,b,c)}return null},b.prototype.visitLiteralArrayExpr=function(b,c){return f(b.type)&&c.print("const "),a.prototype.visitLiteralArrayExpr.call(this,b,c)},b.prototype.visitLiteralMapExpr=function(b,c){return f(b.type)&&c.print("const "),i.isPresent(b.valueType)&&(c.print("<String, "),b.valueType.visitType(this,c),c.print(">")),a.prototype.visitLiteralMapExpr.call(this,b,c)},b.prototype.visitInstantiateExpr=function(a,b){return b.print(f(a.type)?"con
return a},a.prototype.visitText=function(a,b){return a},a.prototype.visitComment=function(a,b){return a},a.prototype.visitExpansion=function(a,b){return this.isExpanded=!0,"plural"==a.type?e(a,this.errors):f(a,this.errors)},a.prototype.visitExpansionCase=function(a,b){throw new g.BaseException("Should not be reached")},a}();return c.exports}),a.registerDynamic("40",["19","1a","1f","3b","36","41","3e","42","3f"],!0,function(a,b,c){"use strict";var d=a("19"),e=a("1a"),f=a("1f"),g=a("3b"),h=a("36"),i=a("41"),j=a("3e"),k=a("42"),l=a("3f"),m="ph",n="name",o=/<ph(\s)+name=("(\w)+")><\/ph>/gi,p=function(){function a(a,b,c,d,e,f){this._htmlParser=a,this._parser=b,this._messagesContent=c,this._messages=d,this._implicitTags=e,this._implicitAttrs=f}return a.prototype.parse=function(a,b,c,d){void 0===c&&(c=!1),void 0===d&&(d=i.DEFAULT_INTERPOLATION_CONFIG),this.errors=[],this._interpolationConfig=d;var e=this._htmlParser.parse(a,b,!0);if(e.errors.length>0)return e;var f=j.expandNodes(e.rootNodes),g=this._recurse(f.nodes);return(k=this.errors).push.apply(k,f.errors),this.errors.length>0?new h.HtmlParseTreeResult([],this.errors):new h.HtmlParseTreeResult(g,[]);var k},a.prototype._processI18nPart=function(a){try{return a.hasI18n?this._mergeI18Part(a):this._recurseIntoI18nPart(a)}catch(b){if(b instanceof l.I18nError)return this.errors.push(b),[];throw b}},a.prototype._mergeI18Part=function(a){var b=a.createMessage(this._parser,this._interpolationConfig),c=k.id(b);if(!d.StringMapWrapper.contains(this._messages,c))throw new l.I18nError(a.sourceSpan,"Cannot find message for id '"+c+"', content '"+b.content+"'.");var e=this._messages[c];return this._mergeTrees(a,e,a.children)},a.prototype._recurseIntoI18nPart=function(a){if(f.isPresent(a.rootElement)){var b=a.rootElement,c=this._recurse(a.children),d=this._i18nAttributes(b);return[new g.HtmlElementAst(b.name,d,c,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)]}return f.isPresent(a.rootTextNode)?[a.rootTextNode]:this._recurse(a.children)},a.prototype._recurse=function(a){var b=this,c=l.partition(a,this.errors,this._implicitTags);return d.ListWrapper.flatten(c.map(function(a){return b._processI18nPart(a)}))},a.prototype._mergeTrees=function(a,b,c){var d=new q;g.htmlVisitAll(d,c);var h=this._mergeTreesHelper(b,d.mapping);if(f.isPresent(a.rootElement)){var i=a.rootElement,j=this._i18nAttributes(i);return[new g.HtmlElementAst(i.name,j,h,i.sourceSpan,i.startSourceSpan,i.endSourceSpan)]}if(f.isPresent(a.rootTextNode))throw new e.BaseException("should not be reached");return h},a.prototype._mergeTreesHelper=function(a,b){var c=this;return a.map(function(d){if(d instanceof g.HtmlElementAst)return c._mergeElementOrInterpolation(d,a,b);if(d instanceof g.HtmlTextAst)return d;throw new e.BaseException("should not be reached")})},a.prototype._mergeElementOrInterpolation=function(a,b,c){var d=this._getName(a),g=d[0],h=f.NumberWrapper.parseInt(d.substring(1),10),i=c[h];if("t"==g)return this._mergeTextInterpolation(a,i);if("e"==g)return this._mergeElement(a,i,c);throw new e.BaseException("should not be reached")},a.prototype._getName=function(a){if(a.name!=m)throw new l.I18nError(a.sourceSpan,'Unexpected tag "'+a.name+'". Only "'+m+'" tags are allowed.');var b=a.attrs.filter(function(a){return a.name==n});if(0==b.length)throw new l.I18nError(a.sourceSpan,'Missing "'+n+'" attribute.');return b[0].value},a.prototype._mergeTextInterpolation=function(a,b){var c=this._parser.splitInterpolation(b.value,b.sourceSpan.toString(),this._interpolationConfig),d=f.isPresent(c)?c.expressions:[],e=this._messagesContent.substring(a.startSourceSpan.end.offset,a.endSourceSpan.start.offset),h=this._replacePlaceholdersWithExpressions(e,d,b.sourceSpan);return new g.HtmlTextAst(h,b.sourceSpan)},a.prototype._mergeElement=function(a,b,c){var d=this._mergeTreesHelper(a.children,c);return new g.HtmlElementAst(b.name,this._i18nAttributes(b),d,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)},a.prototype._i18nAttributes=function(a){var b=this,c=[],e=f.isPresent(this._implicitAttrs[a.name])?this._implicitAttrs[a.name]:[];return a.attrs.
},a.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},a.prototype.print=function(a,b){void 0===b&&(b=!1),a.length>0&&this._currentLine.parts.push(a),b&&this._lines.push(new k(this._indent))},a.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},a.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},a.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},a.prototype.pushClass=function(a){this._classes.push(a)},a.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(a.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),a.prototype.toSource=function(){var a=this._lines;return 0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1)),a.map(function(a){return a.parts.length>0?e(a.indent)+a.parts.join(""):""}).join("\n")},a}();b.EmitterVisitorContext=l;var m=function(){function a(a){this._escapeDollarInStrings=a}return a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),b.println(";"),null},a.prototype.visitReturnStmt=function(a,b){return b.print("return "),a.value.visitExpression(this,b),b.println(";"),null},a.prototype.visitIfStmt=function(a,b){b.print("if ("),a.condition.visitExpression(this,b),b.print(") {");var c=g.isPresent(a.falseCase)&&a.falseCase.length>0;return a.trueCase.length<=1&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent())),b.println("}"),null},a.prototype.visitThrowStmt=function(a,b){return b.print("throw "),a.error.visitExpression(this,b),b.println(";"),null},a.prototype.visitCommentStmt=function(a,b){var c=a.comment.split("\n");return c.forEach(function(a){b.println("// "+a)}),null},a.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),b.print(a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("] = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("."+a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;return g.isPresent(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),g.isBlank(c))?null:(b.print("."+c+"("),this.visitAllExpressions(a.args,b,","),b.print(")"),null)},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitReadVarExpr=function(a,c){var d=a.name;if(g.isPresent(a.builtin))switch(a.builtin){case h.BuiltinVar.Super:d="super";break;case h.BuiltinVar.This:d="this";break;case h.BuiltinVar.CatchError:d=b.CATCH_ERROR_VAR.name;break;case h.BuiltinVar.CatchStack:d=b.CATCH_STACK_VAR.name;break;default:throw new f.BaseException("Unknown builtin variable "+a.builtin)}return c.print(d),null},a.prototype.visitInstantiateExpr=function(a,b){return b.print("new "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitLiteralExpr=function(a,b){var c=a.value;return g.isString(c)?b.print(d(c,this._escapeDollarInStrings)):g.isBlank(c)?b.print("null"):b.print(""+c),null},a.prototype.visitConditionalExpr=function(a,b){return b.print("("),a.condition.visitExpression(this,b),b.print("? "),a.trueCase.visitExpression(this,b),b.print(": "),a.falseCase.visitExpression(this,b),b.print(")"),null},a.prototype.visitNotExpr=function(a,b){return b.print("!"),a.condition.visitExpression(this,
function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(f);b.PropertyWrite=m;var n=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(f);b.SafePropertyRead=n;var o=function(a){function b(b,c){a.call(this),this.obj=b,this.key=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(f);b.KeyedRead=o;var p=function(a){function b(b,c,d){a.call(this),this.obj=b,this.key=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(f);b.KeyedWrite=p;var q=function(a){function b(b,c,d){a.call(this),this.exp=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(f);b.BindingPipe=q;var r=function(a){function b(b){a.call(this),this.value=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(f);b.LiteralPrimitive=r;var s=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(f);b.LiteralArray=s;var t=function(a){function b(b,c){a.call(this),this.keys=b,this.values=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(f);b.LiteralMap=t;var u=function(a){function b(b,c){a.call(this),this.strings=b,this.expressions=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(f);b.Interpolation=u;var v=function(a){function b(b,c,d){a.call(this),this.operation=b,this.left=c,this.right=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(f);b.Binary=v;var w=function(a){function b(b){a.call(this),this.expression=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(f);b.PrefixNot=w;var x=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(f);b.MethodCall=x;var y=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(f);b.SafeMethodCall=y;var z=function(a){function b(b,c){a.call(this),this.target=b,this.args=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(f);b.FunctionCall=z;var A=function(a){function b(b,c,d){a.call(this),this.ast=b,this.source=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(f);b.ASTWithSource=A;var B=function(){function a(a,b,c,d){this.key=a,this.keyIsVar=b,this.name=c,this.expression=d}return a}();b.TemplateBinding=B;var C=function(){function a(){}return a.prototype.visitBinary=function(a,b){return a.left.visit(this),a.right.visit(this),null},a.prototype.visitChain=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){return a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this),null},a.prototype.visitPipe=function(a,b){return a.exp.visit(this),this.visitAll(a.args,b),null},a.prototype.visitFunctionCall=function(a,b){return a.target.visit(this),this.visitAll(a.args,b),null},a.prototype.visitImplicitReceiver=function(a,b){return null},a.prototype.visitInterpolation=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitKeyedRead=function(a,b){return a.obj.visit(this),a.key.visit(this),null},a.prototype.visitKeyedWrite=function(a,b){return a.obj.visit(this),a.key.visit(this),a.value.visit(this),null},a.prototype
this.file=a,this.tokenizeExpansionForms=b,this.interpolationConfig=c,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=a.content,this._length=a.content.length,this._advance()}return a.prototype._processCarriageReturns=function(a){return s.StringWrapper.replaceAll(a,A,"\n")},a.prototype.tokenize=function(){for(;this._peek!==r.$EOF;){var a=this._getLocation();try{this._attemptCharCode(r.$LT)?this._attemptCharCode(r.$BANG)?this._attemptCharCode(r.$LBRACKET)?this._consumeCdata(a):this._attemptCharCode(r.$MINUS)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(r.$SLASH)?this._consumeTagClose(a):this._consumeTagOpen(a):l(this._input,this._index,this.interpolationConfig.start)&&this.tokenizeExpansionForms?this._consumeExpansionFormStart():m(this._peek)&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionCaseStart():this._peek===r.$RBRACE&&this._isInExpansionCase()&&this.tokenizeExpansionForms?this._consumeExpansionCaseEnd():this._peek===r.$RBRACE&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionFormEnd():this._consumeText()}catch(b){if(!(b instanceof B))throw b;this.errors.push(b.error)}}return this._beginToken(w.EOF),this._endToken([]),new z(p(this.tokens),this.errors)},a.prototype._getLocation=function(){return new v.ParseLocation(this.file,this._index,this._line,this._column)},a.prototype._getSpan=function(a,b){return s.isBlank(a)&&(a=this._getLocation()),s.isBlank(b)&&(b=this._getLocation()),new v.ParseSourceSpan(a,b)},a.prototype._beginToken=function(a,b){void 0===b&&(b=null),s.isBlank(b)&&(b=this._getLocation()),this._currentTokenStart=b,this._currentTokenType=a},a.prototype._endToken=function(a,b){void 0===b&&(b=null),s.isBlank(b)&&(b=this._getLocation());var c=new x(this._currentTokenType,a,new v.ParseSourceSpan(this._currentTokenStart,b));return this.tokens.push(c),this._currentTokenStart=null,this._currentTokenType=null,c},a.prototype._createError=function(a,b){var c=new y(a,this._currentTokenType,b);return this._currentTokenStart=null,this._currentTokenType=null,new B(c)},a.prototype._advance=function(){if(this._index>=this._length)throw this._createError(e(r.$EOF),this._getSpan());this._peek===r.$LF?(this._line++,this._column=0):this._peek!==r.$LF&&this._peek!==r.$CR&&this._column++,this._index++,this._peek=this._index>=this._length?r.$EOF:s.StringWrapper.charCodeAt(this._input,this._index),this._nextPeek=this._index+1>=this._length?r.$EOF:s.StringWrapper.charCodeAt(this._input,this._index+1)},a.prototype._attemptCharCode=function(a){return this._peek===a?(this._advance(),!0):!1},a.prototype._attemptCharCodeCaseInsensitive=function(a){return n(this._peek,a)?(this._advance(),!0):!1},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(e(this._peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){var b=a.length;if(this._index+b>this._length)return!1;for(var c=this._savePosition(),d=0;b>d;d++)if(!this._attemptCharCode(s.StringWrapper.charCodeAt(a,d)))return this._restorePosition(c),!1;return!0},a.prototype._attemptStrCaseInsensitive=function(a){for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(s.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(e(this._peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this._peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this._index-c.offset<b)throw this._createError(e(this._peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this._peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this._peek===r.$AMPERSAND)return this._decodeEntity();var b=this._index;return this._advance(),this._input[b]},a.prototype._decodeEntity=function(){var a=this.
})}return a}();b.ProviderViewContext=t;var u=function(){function a(a,b,c,d,e,f,h){var i=this;this._viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=d,this._sourceSpan=h,this._transformedProviders=new o.CompileTokenMap,this._seenProviders=new o.CompileTokenMap,this._hasViewContainer=!1,this._attrs={},e.forEach(function(a){return i._attrs[a.name]=a.value});var k=d.map(function(a){return a.directive});this._allProviders=g(k,h,a.errors),this._contentQueries=j(k);var l=new o.CompileTokenMap;this._allProviders.values().forEach(function(a){i._addQueryReadsTo(a.token,l)}),f.forEach(function(a){i._addQueryReadsTo(new o.CompileTokenMetadata({value:a.name}),l)}),n.isPresent(l.get(p.identifierToken(p.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(a){var b=a.eager||n.isPresent(l.get(a.token));b&&i._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return a.prototype.afterElement=function(){var a=this;this._allProviders.values().forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(a.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedDirectiveAsts",{get:function(){var a=this._transformedProviders.values().map(function(a){return a.token.identifier}),b=m.ListWrapper.clone(this._directiveAsts);return m.ListWrapper.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),a.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=n.isPresent(c.read)?c.read:a;n.isBlank(b.get(d))&&b.add(d,!0)})},a.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;null!==d;)b=d._contentQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b.filter(function(a){return a.descendants||1>=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b),c},a.prototype._getOrCreateLocalProvider=function(a,b,c){var f=this,g=this._allProviders.get(b);if(n.isBlank(g)||(a===r.ProviderAstType.Directive||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.PrivateService||(a===r.ProviderAstType.PrivateService||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(b);if(n.isPresent(h))return h;if(n.isPresent(this._seenProviders.get(b)))return this._viewContext.errors.push(new s("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.add(b,!0);var i=g.providers.map(function(a){var b,e=a.useValue,h=a.useExisting;if(n.isPresent(a.useExisting)){var i=f._getDependency(g.providerType,new o.CompileDiDependencyMetadata({token:a.useExisting}),c);n.isPresent(i.token)?h=i.token:(h=null,e=i.value)}else if(n.isPresent(a.useFactory)){var j=n.isPresent(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}else if(n.isPresent(a.useClass)){var j=n.isPresent(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}return d(a,{useExisting:h,useValue:e,deps:b})});return h=e(g,{eager:c,providers:i}),this._transformedProviders.add(b,h),h},a.prototype._getLocalDependency=function(a,b,c){if(void 0===c&&(c=null),b.isAttribute){var d=this._attrs[b.token.value];return new o.CompileDiDependencyMetadata({isValue:!0,value:n.normalizeBlank(d)})}if(n.isPresent(b.query)||n.isPresent(b.viewQuery))return b;if(n.isPresent(b.token)){if(a===r.ProviderAstType.Directive||a===r.ProviderAstType.Component){if(b.token.equalsTo(p.identifierToken(p.Identifiers.Renderer))||b.token.equalsTo(p.identifierToken(p.Identifiers.ElementRef))||b.token.equalsTo(p.identifierToken(p.Identifiers.ChangeDetectorRef))||b.token.equalsTo(p.identifierToken(p.Id
}(p||(p={}));var q=function(){function a(a,b,c){this._nameResolver=a,this._implicitReceiver=b,this._valueUnwrapper=c,this.needsValueUnwrapper=!1}return a.prototype.visitBinary=function(a,b){var c;switch(a.operation){case"+":c=m.BinaryOperator.Plus;break;case"-":c=m.BinaryOperator.Minus;break;case"*":c=m.BinaryOperator.Multiply;break;case"/":c=m.BinaryOperator.Divide;break;case"%":c=m.BinaryOperator.Modulo;break;case"&&":c=m.BinaryOperator.And;break;case"||":c=m.BinaryOperator.Or;break;case"==":c=m.BinaryOperator.Equals;break;case"!=":c=m.BinaryOperator.NotEquals;break;case"===":c=m.BinaryOperator.Identical;break;case"!==":c=m.BinaryOperator.NotIdentical;break;case"<":c=m.BinaryOperator.Lower;break;case">":c=m.BinaryOperator.Bigger;break;case"<=":c=m.BinaryOperator.LowerEquals;break;case">=":c=m.BinaryOperator.BiggerEquals;break;default:throw new j.BaseException("Unsupported operation "+a.operation)}return h(b,new m.BinaryOperatorExpr(c,a.left.visit(this,p.Expression),a.right.visit(this,p.Expression)))},a.prototype.visitChain=function(a,b){return f(b,a),this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){var c=a.condition.visit(this,p.Expression);return h(b,c.conditional(a.trueExp.visit(this,p.Expression),a.falseExp.visit(this,p.Expression)))},a.prototype.visitPipe=function(a,b){var c=a.exp.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression),e=this._nameResolver.callPipe(a.name,c,d);return this.needsValueUnwrapper=!0,h(b,this._valueUnwrapper.callMethod("unwrap",[e]))},a.prototype.visitFunctionCall=function(a,b){return h(b,a.target.visit(this,p.Expression).callFn(this.visitAll(a.args,p.Expression)))},a.prototype.visitImplicitReceiver=function(a,b){return g(b,a),n},a.prototype.visitInterpolation=function(a,b){g(b,a);for(var c=[m.literal(a.expressions.length)],d=0;d<a.strings.length-1;d++)c.push(m.literal(a.strings[d])),c.push(a.expressions[d].visit(this,p.Expression));return c.push(m.literal(a.strings[a.strings.length-1])),m.importExpr(l.Identifiers.interpolate).callFn(c)},a.prototype.visitKeyedRead=function(a,b){return h(b,a.obj.visit(this,p.Expression).key(a.key.visit(this,p.Expression)))},a.prototype.visitKeyedWrite=function(a,b){var c=a.obj.visit(this,p.Expression),d=a.key.visit(this,p.Expression),e=a.value.visit(this,p.Expression);return h(b,c.key(d).set(e))},a.prototype.visitLiteralArray=function(a,b){return h(b,this._nameResolver.createLiteralArray(this.visitAll(a.expressions,b)))},a.prototype.visitLiteralMap=function(a,b){for(var c=[],d=0;d<a.keys.length;d++)c.push([a.keys[d],a.values[d].visit(this,p.Expression)]);return h(b,this._nameResolver.createLiteralMap(c))},a.prototype.visitLiteralPrimitive=function(a,b){return h(b,m.literal(a.value))},a.prototype.visitMethodCall=function(a,b){var c=this.visitAll(a.args,p.Expression),d=null,e=a.receiver.visit(this,p.Expression);if(e===n){var f=this._nameResolver.getLocal(a.name);k.isPresent(f)?d=f.callFn(c):e=this._implicitReceiver}return k.isBlank(d)&&(d=e.callMethod(a.name,c)),h(b,d)},a.prototype.visitPrefixNot=function(a,b){return h(b,m.not(a.expression.visit(this,p.Expression)))},a.prototype.visitPropertyRead=function(a,b){var c=null,d=a.receiver.visit(this,p.Expression);return d===n&&(c=this._nameResolver.getLocal(a.name),k.isBlank(c)&&(d=this._implicitReceiver)),k.isBlank(c)&&(c=d.prop(a.name)),h(b,c)},a.prototype.visitPropertyWrite=function(a,b){var c=a.receiver.visit(this,p.Expression);if(c===n){var d=this._nameResolver.getLocal(a.name);if(k.isPresent(d))throw new j.BaseException("Cannot assign to a reference or variable!");c=this._implicitReceiver}return h(b,c.prop(a.name).set(a.value.visit(this,p.Expression)))},a.prototype.visitSafePropertyRead=function(a,b){var c=a.receiver.visit(this,p.Expression);return h(b,c.isBlank().conditional(m.NULL_EXPR,c.prop(a.name)))},a.prototype.visitSafeMethodCall=function(a,b){var c=a.receiver.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression);return h(b,c.isBlank().conditional(m.NULL_EXPR,c.callMethod(a.name,d)))},a.prototype.visitAll=function(a,b){var c=this;return a.map(function(a){retu
},enumerable:!0,configurable:!0}),a}();b.BoundEventAst=j;var k=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}();b.ReferenceAst=k;var l=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}();b.VariableAst=l;var m=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.ElementAst=m;var n=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}();b.EmbeddedTemplateAst=n;var o=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}();b.BoundDirectivePropertyAst=o;var p=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}();b.DirectiveAst=p;var q=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();b.ProviderAst=q,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(b.ProviderAstType||(b.ProviderAstType={}));var r=(b.ProviderAstType,function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}());b.NgContentAst=r,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style",a[a.Animation=4]="Animation"}(b.PropertyBindingType||(b.PropertyBindingType={}));b.PropertyBindingType;return b.templateVisitAll=d,c.exports}),a.registerDynamic("60",["9","19","1f","51","1b","30","54","18","61","62","58","1c"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var e;return e=b>0?l.literal(a).lowerEquals(n.InjectMethodVars.requestNodeIndex).and(n.InjectMethodVars.requestNodeIndex.lowerEquals(l.literal(a+b))):l.literal(a).identical(n.InjectMethodVars.requestNodeIndex),new l.IfStmt(n.InjectMethodVars.token.identical(p.createDiTokenExpression(c.token)).and(e),[new l.ReturnStatement(d)])}function e(a,b,c,d,e,f){var g,h,i=f.view;if(d?(g=l.literalArr(c),h=new l.ArrayType(l.DYNAMIC_TYPE)):(g=c[0],h=c[0].type),j.isBlank(h)&&(h=l.DYNAMIC_TYPE),e)i.fields.push(new l.ClassField(a,h)),i.createMethod.addStmt(l.THIS_EXPR.prop(a).set(g).toStmt());else{var k="_"+a;i.fields.push(new l.ClassField(k,h));var m=new r.CompileMethod(i);m.resetDebugInfo(f.nodeIndex,f.sourceAst),m.addStmt(new l.IfStmt(l.THIS_EXPR.prop(k).isBlank(),[l.THIS_EXPR.prop(k).set(g).toStmt()])),m.addStmt(new l.ReturnStatement(l.THIS_EXPR.prop(k))),i.getters.push(new l.ClassGetter(a,m.finish(),h))}return l.THIS_EXPR.prop(a)}function f(a){return s.visitValue(a,new w,null)}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("9"),i=a("19"),j=a("1f"),k=a("51"),l=a("1b"),m=a("30"),n=a("54"),o=a("18"),p=a("61"),q=a("62"),r=a("58"),s=a("1c"),t=function(){function a(a,b,c,d,e){this.parent=a,this.view=b,this.nodeIndex=c,this.renderNode=d,this.sourceAst=e}return a.prototype.isNull=function(){return j.isBlank(this.renderNode)},a.prototype.isRootElement=function(){return this.view!=this.parent.view},a}();b.CompileNo
this.args=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitInstantiateExpr(this,b)},b}(w);b.InstantiateExpr=E;var F=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralExpr(this,b)},b}(w);b.LiteralExpr=F;var G=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c),this.value=b,this.typeParams=d}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitExternalExpr(this,b)},b}(w);b.ExternalExpr=G;var H=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.condition=b,this.falseCase=d,this.trueCase=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitConditionalExpr(this,b)},b}(w);b.ConditionalExpr=H;var I=function(a){function c(c){a.call(this,b.BOOL_TYPE),this.condition=c}return n(c,a),c.prototype.visitExpression=function(a,b){return a.visitNotExpr(this,b)},c}(w);b.NotExpr=I;var J=function(a){function b(b,c){a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitCastExpr(this,b)},b}(w);b.CastExpr=J;var K=function(){function a(a,b){void 0===b&&(b=null),this.name=a,this.type=b}return a}();b.FnParam=K;var L=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.params=b,this.statements=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitFunctionExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===b&&(b=null),new T(a,this.params,this.statements,this.type,b)},b}(w);b.FunctionExpr=L;var M=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.operator=b,this.rhs=d,this.lhs=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitBinaryOperatorExpr(this,b)},b}(w);b.BinaryOperatorExpr=M;var N=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.name=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadPropExpr(this,b)},b.prototype.set=function(a){return new B(this.receiver,this.name,a)},b}(w);b.ReadPropExpr=N;var O=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.index=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadKeyExpr(this,b)},b.prototype.set=function(a){return new A(this.receiver,this.index,a)},b}(w);b.ReadKeyExpr=O;var P=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralArrayExpr(this,b)},b}(w);b.LiteralArrayExpr=P;var Q=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b,this.valueType=null,o.isPresent(c)&&(this.valueType=c.valueType)}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralMapExpr(this,b)},b}(w);b.LiteralMapExpr=Q,b.THIS_EXPR=new y(x.This),b.SUPER_EXPR=new y(x.Super),b.CATCH_ERROR_VAR=new y(x.CatchError),b.CATCH_STACK_VAR=new y(x.CatchStack),b.NULL_EXPR=new F(null,null),function(a){a[a.Final=0]="Final",a[a.Private=1]="Private"}(b.StmtModifier||(b.StmtModifier={}));var R=(b.StmtModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Statement=R;var S=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,e),this.name=b,this.value=c,this.type=o.isPresent(d)?d:c.type}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareVarStmt(this,b)},b}(R);b.DeclareVarStmt=S;var T=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,f),this.name=b,this.params=c,this.statements=d,this.type=e}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareFunctionStmt(this,b)},b}(R);b.DeclareFunctionStmt=T;var U=function(a){function b(b){a.call(this),this.expr=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.
this.stateChangeExpr=b,this.steps=c}return k(b,a),b.fromJson=function(a){var c=a.value,e=h(c.steps,d);return new b(c.stateChangeExpr,e)},b.prototype.toJson=function(){return{"class":"AnimationStateTransitionMetadata",value:{stateChangeExpr:this.stateChangeExpr,steps:this.steps.toJson()}}},b}(x);b.CompileAnimationStateTransitionMetadata=z;var A=function(){function a(){}return a}();b.CompileAnimationMetadata=A;var B=function(a){function b(b){void 0===b&&(b=[]),a.call(this),this.steps=b}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationKeyframesSequenceMetadata",value:g(this.steps)}},b}(A);b.CompileAnimationKeyframesSequenceMetadata=B;var C=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.offset=b,this.styles=c}return k(b,a),b.fromJson=function(a){var c=a.value,d=c.offset,e=p.isPresent(d)?p.NumberWrapper.parseFloat(d):null,f=c.styles;return new b(e,f)},b.prototype.toJson=function(){return{"class":"AnimationStyleMetadata",value:{offset:this.offset,styles:this.styles}}},b}(A);b.CompileAnimationStyleMetadata=C;var D=function(a){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=null),a.call(this),this.timings=b,this.styles=c}return k(b,a),b.fromJson=function(a){var c=a.value,e=c.timings,f=h(c.styles,d);return new b(e,f)},b.prototype.toJson=function(){return{"class":"AnimationAnimateMetadata",value:{timings:this.timings,styles:i(this.styles)}}},b}(A);b.CompileAnimationAnimateMetadata=D;var E=function(a){function b(b){void 0===b&&(b=null),a.call(this),this.steps=b}return k(b,a),b}(A);b.CompileAnimationWithStepsMetadata=E;var F=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationSequenceMetadata",value:g(this.steps)}},b}(E);b.CompileAnimationSequenceMetadata=F;var G=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationGroupMetadata",value:g(this.steps)}},b}(E);b.CompileAnimationGroupMetadata=G;var H=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.value;this.runtime=c,this.name=d,this.prefix=f,this.moduleUrl=e,this.value=g}return a.fromJson=function(b){var c=p.isArray(b.value)?f(b.value,d):h(b.value,d);return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:c})},a.prototype.toJson=function(){var a=p.isArray(this.value)?g(this.value):i(this.value);return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,value:a}},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a}();b.CompileIdentifierMetadata=H;var I=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=p.normalizeBool(c),this.isSelf=p.normalizeBool(d),this.isHost=p.normalizeBool(e),this.isSkipSelf=p.normalizeBool(f),this.isOptional=p.normalizeBool(g),this.isValue=p.normalizeBool(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:h(b.token,M.fromJson),query:h(b.query,P.fromJson),viewQuery:h(b.viewQuery,P.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:i(this.token),query:i(this.query),viewQuery:i(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}();b.CompileDiDependencyMetadata=I;var J=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=p.normalizeBlank(g),th
name:"flattenNestedViewRenderNodes",moduleUrl:j,runtime:H}),a.devModeEqual=new g.CompileIdentifierMetadata({name:"devModeEqual",moduleUrl:k,runtime:I}),a.interpolate=new g.CompileIdentifierMetadata({name:"interpolate",moduleUrl:j,runtime:J}),a.castByValue=new g.CompileIdentifierMetadata({name:"castByValue",moduleUrl:j,runtime:L}),a.EMPTY_ARRAY=new g.CompileIdentifierMetadata({name:"EMPTY_ARRAY",moduleUrl:j,runtime:M}),a.EMPTY_MAP=new g.CompileIdentifierMetadata({name:"EMPTY_MAP",moduleUrl:j,runtime:N}),a.pureProxies=[null,new g.CompileIdentifierMetadata({name:"pureProxy1",moduleUrl:j,runtime:f.pureProxy1}),new g.CompileIdentifierMetadata({name:"pureProxy2",moduleUrl:j,runtime:f.pureProxy2}),new g.CompileIdentifierMetadata({name:"pureProxy3",moduleUrl:j,runtime:f.pureProxy3}),new g.CompileIdentifierMetadata({name:"pureProxy4",moduleUrl:j,runtime:f.pureProxy4}),new g.CompileIdentifierMetadata({name:"pureProxy5",moduleUrl:j,runtime:f.pureProxy5}),new g.CompileIdentifierMetadata({name:"pureProxy6",moduleUrl:j,runtime:f.pureProxy6}),new g.CompileIdentifierMetadata({name:"pureProxy7",moduleUrl:j,runtime:f.pureProxy7}),new g.CompileIdentifierMetadata({name:"pureProxy8",moduleUrl:j,runtime:f.pureProxy8}),new g.CompileIdentifierMetadata({name:"pureProxy9",moduleUrl:j,runtime:f.pureProxy9}),new g.CompileIdentifierMetadata({name:"pureProxy10",moduleUrl:j,runtime:f.pureProxy10})],a.SecurityContext=new g.CompileIdentifierMetadata({name:"SecurityContext",moduleUrl:h.assetUrl("core","security"),runtime:f.SecurityContext}),a.AnimationKeyframe=new g.CompileIdentifierMetadata({name:"AnimationKeyframe",moduleUrl:h.assetUrl("core","animation/animation_keyframe"),runtime:Q}),a.AnimationStyles=new g.CompileIdentifierMetadata({name:"AnimationStyles",moduleUrl:h.assetUrl("core","animation/animation_styles"),runtime:R}),a.NoOpAnimationPlayer=new g.CompileIdentifierMetadata({name:"NoOpAnimationPlayer",moduleUrl:h.assetUrl("core","animation/animation_player"),runtime:S}),a.AnimationGroupPlayer=new g.CompileIdentifierMetadata({name:"AnimationGroupPlayer",moduleUrl:h.assetUrl("core","animation/animation_group_player"),runtime:O}),a.AnimationSequencePlayer=new g.CompileIdentifierMetadata({name:"AnimationSequencePlayer",moduleUrl:h.assetUrl("core","animation/animation_sequence_player"),runtime:P}),a.prepareFinalAnimationStyles=new g.CompileIdentifierMetadata({name:"prepareFinalAnimationStyles",moduleUrl:T,runtime:f.prepareFinalAnimationStyles}),a.balanceAnimationKeyframes=new g.CompileIdentifierMetadata({name:"balanceAnimationKeyframes",moduleUrl:T,runtime:f.balanceAnimationKeyframes}),a.clearStyles=new g.CompileIdentifierMetadata({name:"clearStyles",moduleUrl:T,runtime:f.clearStyles}),a.renderStyles=new g.CompileIdentifierMetadata({name:"renderStyles",moduleUrl:T,runtime:f.renderStyles}),a.collectAndResolveStyles=new g.CompileIdentifierMetadata({name:"collectAndResolveStyles",moduleUrl:T,runtime:f.collectAndResolveStyles}),a}();return b.Identifiers=U,b.identifierToken=d,c.exports}),a.registerDynamic("61",["1a","1f","1b","51"],!0,function(a,b,c){"use strict";function d(a,b,c){if(b===c)return a;for(var d=l.THIS_EXPR,e=b;e!==c&&k.isPresent(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new j.BaseException("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof l.ReadPropExpr){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return l.replaceVarInExpression(l.THIS_EXPR.name,d,a)}function e(a,b){var c=[g(a)];return b&&c.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",c)}function f(a,b){return"viewFactory_"+a.type.name+b}function g(a){return k.isPresent(a.value)?l.literal(a.value):a.identifierIsInstance?l.importExpr(a.identifier).instantiate([],l.importType(a.identifier,[],[l.TypeModifier.Const])):l.importExpr(a.identifier)}function h(a){for(var b=[],c=l.literalArr([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof l.ArrayType?(b.length>0&&(c=c.callMethod(l.BuiltinMethod.Co
useClass:n.CachedXHR}],b.bootstrap=d,b.bootstrapWorkerUi=e;var p=[h.COMPILER_PROVIDERS,{provide:h.CompilerConfig,useFactory:function(a,b){return new h.CompilerConfig({platformDirectives:a,platformPipes:b})},deps:[i.PLATFORM_DIRECTIVES,i.PLATFORM_PIPES]},{provide:h.XHR,useClass:o.XHRImpl},{provide:i.PLATFORM_DIRECTIVES,useValue:g.COMMON_DIRECTIVES,multi:!0},{provide:i.PLATFORM_PIPES,useValue:g.COMMON_PIPES,multi:!0}];b.bootstrapWorkerApp=f}(a("45")),c.exports}),a.registerDynamic("6f",["6c"],!0,function(a,b,c){return c.exports=a("6c"),c.exports}),a.registerDynamic("70",[],!0,function(a,b,c){return function(){var a=function(b,c){return null===b.parentNode?c:a(b.parentNode,c.concat([b]))},b=function(a,b){return getComputedStyle(a,null).getPropertyValue(b)},d=function(a){return b(a,"overflow")+b(a,"overflow-y")+b(a,"overflow-x")},e=function(a){return/(auto|scroll)/.test(d(a))},f=function(b){if(b instanceof HTMLElement){for(var c=a(b.parentNode,[]),d=0;d<c.length;d+=1)if(e(c[d]))return c[d];return window}};"object"==typeof c&&null!==c?c.exports=f:window.Scrollparent=f}(),c.exports}),a.registerDynamic("71",["70"],!0,function(a,b,c){return c.exports=a("70"),c.exports}),a.register("72",["73","74","75","76","77","78","79","7a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.SpecManager,c=a.RedocComponent,d=a.BaseComponent},function(a){e=a.OptionsService},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]}],execute:function(){"use strict";l=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=j(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&k(b,c,g),g},m=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},n=function(a){function b(a,c){i(this,b),f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a),this.optionsService=c}return g(b,a),h(b,[{key:"prepareModel",value:function(){this.data=this.componentSchema.info,this.specUrl=this.optionsService.options.specUrl,NaN!==parseInt(this.data.version.substring(0,1))&&(this.data.version="v"+this.data.version)}}]),b}(d),a("ApiInfo",n),a("ApiInfo",n=l([c({selector:"api-info",styles:["\n .api-info-header {\n font-weight: normal; }\n\n :host > div {\n width: 60%; }\n\n a.openapi-button {\n padding: 3px 8px 4px 8px;\n color: #0033a0;\n border: 1px solid #0033a0;\n margin-left: 0.5em;\n font-weight: normal; }\n "],template:'\n <div>\n <h1 class="api-info-header">{{data.title}} ({{data.version}})</h1>\n <p *ngIf="data.description" [innerHtml]="data.description | marked"> </p>\n <p>\n <!-- TODO: create separate components for contact and license ? -->\n <span *ngIf="data.contact"> Contact:\n <a *ngIf="data.contact.url" href="{{data.contact.url}}">\n {{data.contact.name || data.contact.url}}</a>\n <a *ngIf="data.contact.email" href="mailto:{{data.contact.email}}">\n {{data.contact.email}}</a>\n </span>\n <span *ngIf="data.license"> License:\n <a *ngIf="data.license.url" href="{{data.license.url}}"> {{data.license.name}} </a>\n <span *ngIf="!data.license.url"> {{data.license.name}} </span>\n </span>\n </p>\n <p>\n Download OpenAPI (fka Swagger) specification:\n <a class="openapi-button" target="_blank" attr.href=\'{{specUrl}}\'> Download </a>\n </p>\n </div>\n '}),m("design:paramtypes",[b,e])],n))}}}),a.register("7b",["73","75","76","77","78","79","7a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m;return{setters:[function(a){b=a.RedocComponent,c=a.BaseComp
directives:[w,p,e(function(){return s}),q],detect:!0}),u("design:paramtypes",[h,c,d])],w))}}}),a.register("7e",["9","77","78","79","83","84","85","7a","6d","7d"],function(a){function b(a,b){b.parentNode.insertBefore(a,b.nextSibling)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;return{setters:[function(a){c=a.Component,d=a.ElementRef,e=a.ViewContainerRef,f=a.Input,g=a.ComponentResolver,h=a.Renderer},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.OptionsService},function(a){m=a.SpecManager},function(a){n=a["default"]},function(a){o=a["default"]},function(a){p=a.CORE_DIRECTIVES},function(a){q=a.JsonSchema}],execute:function(){"use strict";r=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=k(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&o(b,c,g),g},s=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},t={},u=function(){function a(b,c,d,e,f,g){j(this,a),this.specMgr=b,this.location=c,this.elementRef=d,this.resolver=e,this.optionsService=f,this._renderer=g,this["final"]=!1,this.loaded=!1}return i(a,[{key:"normalizePointer",value:function(){var a=this.specMgr.byPointer(this.pointer);return a&&a.$ref||this.pointer}},{key:"_loadAfterSelf",value:function(){var a=this;return this.resolver.resolveComponent(q).then(function(b){var c=a.location.parentInjector,d=a.location.createComponent(b,null,c,null);return a.initComponent(d.instance),a._renderer.setElementAttribute(d.location.nativeElement,"class",a.location.element.nativeElement.className),d.changeDetectorRef.detectChanges(),d})["catch"](function(a){throw console.log(a),a})}},{key:"load",value:function(){this.optionsService.options.disableLazySchemas||this.loaded||(this.pointer&&this._loadAfterSelf(),this.loaded=!0)}},{key:"loadCached",value:function(){var a=this;this.pointer=this.normalizePointer(),t[this.pointer]?t[this.pointer].then(function(c){setTimeout(function(){var d=c.location.nativeElement;return c.instance.hasDescendants||c.instance._hasSubSchemas?void a._loadAfterSelf():void b(d.cloneNode(!0),a.elementRef.nativeElement)})}):t[this.pointer]=this._loadAfterSelf()}},{key:"initComponent",value:function(a){n(a,this)}},{key:"ngAfterViewInit",value:function(){return this.optionsService.options.disableLazySchemas?void this._loadAfterSelf():void(this.auto&&this.loadCached())}},{key:"ngOnDestroy",value:function(){t={}}}]),a}(),a("JsonSchemaLazy",u),r([f(),s("design:type",String)],u.prototype,"pointer",void 0),r([f(),s("design:type",Boolean)],u.prototype,"auto",void 0),r([f(),s("design:type",Boolean)],u.prototype,"isRequestSchema",void 0),r([f(),s("design:type",Boolean)],u.prototype,"final",void 0),r([f(),s("design:type",Boolean)],u.prototype,"nestOdd",void 0),r([f(),s("design:type",String)],u.prototype,"childFor",void 0),r([f(),s("design:type",Boolean)],u.prototype,"isArray",void 0),a("JsonSchemaLazy",u=r([c({selector:"json-schema-lazy",template:"",directives:[p]}),s("design:paramtypes",[m,e,d,g,l,h])],u))}}}),a.register("86",["73","74","75","76","77","78","79","80","81","87","88","7a","7d","7e"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;return{setters:[function(a){c=a.RedocComponent,d=a.BaseComponent,e=a.SpecManager},function(a){f=a.OptionsService},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a.Zippy},function(a){n=a["default"]},function(a){o=a.statusCodeType},function(a){p=a["default"]},function(a){q=a.JsonSchema},function(a){r=a.JsonSchemaLazy}],execute:function(){"use strict";s=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=k(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,
directives:[o,k,m,p,q],detect:!0}),t("design:paramtypes",[e])],u))}}}),a.register("a2",["2","9","73","74","75","76","77","78","79","7a","a1"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){b=a.Method},function(a){c=a.forwardRef},function(a){d=a.RedocComponent,e=a.BaseComponent,f=a.SpecManager},function(a){g=a.SchemaHelper},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a["default"]},function(a){m=a["default"]},function(a){n=a.EncodeURIComponentPipe}],execute:function(){"use strict";o=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=l(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&m(b,c,g),g},p=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},q=function(a){function b(a){k(this,b),h(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a)}return i(b,a),j(b,[{key:"prepareModel",value:function(){this.data={};var a=g.buildMenuTree(this.specMgr.schema);a.forEach(function(a){a.methods=a.methods||[],a.methods.forEach(function(b){b.tag=a.name})}),this.data.tags=a}},{key:"trackByPointer",value:function(a,b){return b.pointer}},{key:"trackByTagName",value:function(a,b){return b.name}}]),b}(e),a("MethodsList",q),a("MethodsList",q=o([d({selector:"methods-list",template:'\n <div class="methods">\n <div class="tag" *ngFor="let tag of data.tags;trackBy:trackByTagName">\n <div class="tag-info" [attr.tag]="tag.name" *ngIf="!tag.empty">\n <h1 class="sharable-header"> <a class="share-link" href="#tag/{{tag.name | encodeURIComponent}}"></a>{{tag.name}} </h1>\n <p *ngIf="tag.description" [innerHtml]="tag.description | marked"> </p>\n </div>\n <method *ngFor="let method of tag.methods;trackBy:trackByPointer" [pointer]="method.pointer" [attr.pointer]="method.pointer"\n [attr.tag]="method.tag" [tag]="method.tag" [attr.operation-id]="method.operationId"></method>\n </div>\n </div>\n ',styles:['\n .share-link {\n cursor: pointer;\n margin-left: -15px;\n padding: 0;\n line-height: 1;\n width: 15px;\n display: inline-block; }\n\n .share-link:before {\n content: "";\n width: 15px;\n height: 15px;\n background-size: contain;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==");\n opacity: 0.5;\n visibility: hidden;\n display: inline-block;\n vertical-align: middle; }\n\n .sharable-header {\n color: #263238; }\n\n .sharable-header:hover .share-link:before, .share-link:hover:before {\n visibil
a.whenStable(e)})};g.global.frameworkStabilizers||(g.global.frameworkStabilizers=f.ListWrapper.createGrowableSize(0)),g.global.frameworkStabilizers.push(b)},a.prototype.findTestabilityInTree=function(a,b,c){if(null==b)return null;var d=a.getTestability(b);return g.isPresent(d)?d:c?e.getDOM().isShadowRoot(b)?this.findTestabilityInTree(a,e.getDOM().getHost(b),!0):this.findTestabilityInTree(a,e.getDOM().parentElement(b),!0):null},a}();return b.BrowserGetTestability=i,c.exports}),a.registerDynamic("d6",["b3","cc"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("b3"),f=a("cc"),g={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},h=function(a){function b(){a.call(this)}return d(b,a),b.prototype.supports=function(a){return a=a.toLowerCase(),e.StringMapWrapper.contains(g,a)},b}(f.EventManagerPlugin);return b.HammerGesturesPluginCommon=h,c.exports}),a.registerDynamic("cd",["9","b4","ae","d6"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("b4"),g=a("ae"),h=a("d6");b.HAMMER_GESTURE_CONFIG=new e.OpaqueToken("HammerGestureConfig");var i=function(){function a(){this.events=[],this.overrides={}}return a.prototype.buildHammer=function(a){var b=new Hammer(a);b.get("pinch").set({enable:!0}),b.get("rotate").set({enable:!0});for(var c in this.overrides)b.get(c).set(this.overrides[c]);return b},a.decorators=[{type:e.Injectable}],a}();b.HammerGestureConfig=i;var j=function(a){function c(b){a.call(this),this._config=b}return d(c,a),c.prototype.supports=function(b){if(!a.prototype.supports.call(this,b)&&!this.isCustomEvent(b))return!1;if(!g.isPresent(window.Hammer))throw new f.BaseException("Hammer.js is not loaded, can not bind "+b+" event");return!0},c.prototype.addEventListener=function(a,b,c){var d=this,e=this.manager.getZone();return b=b.toLowerCase(),e.runOutsideAngular(function(){var f=d._config.buildHammer(a),g=function(a){e.runGuarded(function(){c(a)})};return f.on(b,g),function(){f.off(b,g)}})},c.prototype.isCustomEvent=function(a){return this._config.events.indexOf(a)>-1},c.decorators=[{type:e.Injectable}],c.ctorParameters=[{type:i,decorators:[{type:e.Inject,args:[b.HAMMER_GESTURE_CONFIG]}]}],c}(h.HammerGesturesPluginCommon);return b.HammerGesturesPlugin=j,c.exports}),a.registerDynamic("ce",["9","ae","b3","ab","cc","45"],!0,function(a,b,c){return function(c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("ae"),g=a("b3"),h=a("ab"),i=a("cc"),j=["alt","control","meta","shift"],k={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},l=function(a){function b(){a.call(this)}return d(b,a),b.prototype.supports=function(a){return f.isPresent(b.parseEventName(a))},b.prototype.addEventListener=function(a,c,d){var e=b.parseEventName(c),f=b.eventCallback(a,g.StringMapWrapper.get(e,"fullKey"),d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return h.getDOM().onAndCancel(a,g.StringMapWrapper.get(e,"domEventName"),f)})},b.parseEventName=function(a){var c=a.toLowerCase().split("."),d=c.shift();if(0===c.length||!f.StringWrapper.equals(d,"keydown")&&!f.StringWrapper.equals(d,"keyup"))return null;var e=b._normalizeKey(c.pop()),h="";if(j.forEach(function(a){g.ListWrapper.contains(c,a)&&(g.ListWrapper.remove(c,a
return this._runOnService("createViewRoot",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,m.RenderStoreObject)]),b},a.prototype.createTemplateAnchor=function(a,b){var c=this._rootRenderer.allocateNode();return this._runOnService("createTemplateAnchor",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(c,m.RenderStoreObject)]),c},a.prototype.createText=function(a,b,c){var d=this._rootRenderer.allocateNode();return this._runOnService("createText",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(d,m.RenderStoreObject)]),d},a.prototype.projectNodes=function(a,b){this._runOnService("projectNodes",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,m.RenderStoreObject)])},a.prototype.attachViewAfter=function(a,b){this._runOnService("attachViewAfter",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,m.RenderStoreObject)])},a.prototype.detachView=function(a){this._runOnService("detachView",[new i.FnArg(a,m.RenderStoreObject)])},a.prototype.destroyView=function(a,b){this._runOnService("destroyView",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,m.RenderStoreObject)]),this._rootRenderer.destroyNodes(b)},a.prototype.setElementProperty=function(a,b,c){this._runOnService("setElementProperty",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.setElementAttribute=function(a,b,c){this._runOnService("setElementAttribute",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.setBindingDebugInfo=function(a,b,c){this._runOnService("setBindingDebugInfo",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.setElementClass=function(a,b,c){this._runOnService("setElementClass",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.setElementStyle=function(a,b,c){this._runOnService("setElementStyle",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.invokeElementMethod=function(a,b,c){this._runOnService("invokeElementMethod",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(c,null)])},a.prototype.setText=function(a,b){this._runOnService("setText",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null)])},a.prototype.listen=function(a,b,c){var d=this;a.events.listen(b,c);var e=this._rootRenderer.allocateId();return this._runOnService("listen",[new i.FnArg(a,m.RenderStoreObject),new i.FnArg(b,null),new i.FnArg(e,null)]),function(){a.events.unlisten(b,c),d._runOnService("listenDone",[new i.FnArg(e,null)])}},a.prototype.listenGlobal=function(a,b,c){var e=this;this._rootRenderer.globalEvents.listen(d(a,b),c);var f=this._rootRenderer.allocateId();return this._runOnService("listenGlobal",[new i.FnArg(a,null),new i.FnArg(b,null),new i.FnArg(f,null)]),function(){e._rootRenderer.globalEvents.unlisten(d(a,b),c),e._runOnService("listenDone",[new i.FnArg(f,null)])}},a.prototype.animate=function(a,b,c,d,e,f){return null},a}();b.WebWorkerRenderer=p;var q=function(){function a(){}return a.prototype._getListeners=function(a){h.isBlank(this._listeners)&&(this._listeners=new Map);var b=this._listeners.get(a);return h.isBlank(b)&&(b=[],this._listeners.set(a,b)),b},a.prototype.listen=function(a,b){this._getListeners(a).push(b)},a.prototype.unlisten=function(a,b){g.ListWrapper.remove(this._getListeners(a),b)},a.prototype.dispatchEvent=function(a,b){for(var c=this._getListeners(a),d=0;d<c.length;d++)c[d](b)},a}();b.NamedEventEmitter=q;var r=function(){function a(){this.events=new q}return a}();return b.WebWorkerRenderNode=r,c.exports}),a.registerDynamic("de",["ab"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("ab"),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.makeCurrent=function(){e.setRootDomAdapter(new b)},b.prototype.logError=function(a){console.error?console.error(a):console.log(a)},b.prototype.log=function(a){console.log(a)},b.prototyp
}var e=a("e5").has,f=a("e5").unescapeMd,g=a("e5").replaceEntities,h=a("e5").escapeHtml,i={};i.blockquote_open=function(){return"<blockquote>\n"},i.blockquote_close=function(a,b){return"</blockquote>"+j(a,b)},i.code=function(a,b){return a[b].block?"<pre><code>"+h(a[b].content)+"</code></pre>"+j(a,b):"<code>"+h(a[b].content)+"</code>"},i.fence=function(a,b,c,d,i){var k,l,m=a[b],n="",o=c.langPrefix,p="";if(m.params){if(k=m.params.split(/\s+/g)[0],e(i.rules.fence_custom,k))return i.rules.fence_custom[k](a,b,c,d,i);p=h(g(f(k))),n=' class="'+o+p+'"'}return l=c.highlight?c.highlight(m.content,p)||h(m.content):h(m.content),"<pre><code"+n+">"+l+"</code></pre>"+j(a,b)},i.fence_custom={},i.heading_open=function(a,b){return"<h"+a[b].hLevel+">"},i.heading_close=function(a,b){return"</h"+a[b].hLevel+">\n"},i.hr=function(a,b,c){return(c.xhtmlOut?"<hr />":"<hr>")+j(a,b)},i.bullet_list_open=function(){return"<ul>\n"},i.bullet_list_close=function(a,b){return"</ul>"+j(a,b)},i.list_item_open=function(){return"<li>"},i.list_item_close=function(){return"</li>\n"},i.ordered_list_open=function(a,b){var c=a[b],d=c.order>1?' start="'+c.order+'"':"";return"<ol"+d+">\n"},i.ordered_list_close=function(a,b){return"</ol>"+j(a,b)},i.paragraph_open=function(a,b){return a[b].tight?"":"<p>"},i.paragraph_close=function(a,b){var c=!(a[b].tight&&b&&"inline"===a[b-1].type&&!a[b-1].content);return(a[b].tight?"":"</p>")+(c?j(a,b):"")},i.link_open=function(a,b,c){var d=a[b].title?' title="'+h(g(a[b].title))+'"':"",e=c.linkTarget?' target="'+c.linkTarget+'"':"";return'<a href="'+h(a[b].href)+'"'+d+e+">"},i.link_close=function(){return"</a>"},i.image=function(a,b,c){var d=' src="'+h(a[b].src)+'"',e=a[b].title?' title="'+h(g(a[b].title))+'"':"",f=' alt="'+(a[b].alt?h(g(a[b].alt)):"")+'"',i=c.xhtmlOut?" /":"";return"<img"+d+f+e+i+">"},i.table_open=function(){return"<table>\n"},i.table_close=function(){return"</table>\n"},i.thead_open=function(){return"<thead>\n"},i.thead_close=function(){return"</thead>\n"},i.tbody_open=function(){return"<tbody>\n"},i.tbody_close=function(){return"</tbody>\n"},i.tr_open=function(){return"<tr>"},i.tr_close=function(){return"</tr>\n"},i.th_open=function(a,b){var c=a[b];return"<th"+(c.align?' style="text-align:'+c.align+'"':"")+">"},i.th_close=function(){return"</th>"},i.td_open=function(a,b){var c=a[b];return"<td"+(c.align?' style="text-align:'+c.align+'"':"")+">"},i.td_close=function(){return"</td>"},i.strong_open=function(){return"<strong>"},i.strong_close=function(){return"</strong>"},i.em_open=function(){return"<em>"},i.em_close=function(){return"</em>"},i.del_open=function(){return"<del>"},i.del_close=function(){return"</del>"},i.ins_open=function(){return"<ins>"},i.ins_close=function(){return"</ins>"},i.mark_open=function(){return"<mark>"},i.mark_close=function(){return"</mark>"},i.sub=function(a,b){return"<sub>"+h(a[b].content)+"</sub>"},i.sup=function(a,b){return"<sup>"+h(a[b].content)+"</sup>"},i.hardbreak=function(a,b,c){return c.xhtmlOut?"<br />\n":"<br>\n"},i.softbreak=function(a,b,c){return c.breaks?c.xhtmlOut?"<br />\n":"<br>\n":"\n"},i.text=function(a,b){return h(a[b].content)},i.htmlblock=function(a,b){return a[b].content},i.htmltag=function(a,b){return a[b].content},i.abbr_open=function(a,b){return'<abbr title="'+h(g(a[b].title))+'">'},i.abbr_close=function(){return"</abbr>"},i.footnote_ref=function(a,b){var c=Number(a[b].id+1).toString(),d="fnref"+c;return a[b].subId>0&&(d+=":"+a[b].subId),'<sup class="footnote-ref"><a href="#fn'+c+'" id="'+d+'">['+c+"]</a></sup>"},i.footnote_block_open=function(a,b,c){var d=c.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n';return d+'<section class="footnotes">\n<ol class="footnotes-list">\n'},i.footnote_block_close=function(){return"</ol>\n</section>\n"},i.footnote_open=function(a,b){var c=Number(a[b].id+1).toString();return'<li id="fn'+c+'" class="footnote-item">'},i.footnote_close=function(){return"</li>\n"},i.footnote_anchor=function(a,b){var c=Number(a[b].id+1).toString(),d="fnref"+c;return a[b].subId>0&&(d+=":"+a[b].subId),' <a href="#'+d+'" class="fo
q>4&&(q=1),1>q&&(q=1),i=o-a.bMarks[h]+q,a.tokens.push({type:"list_item_open",lines:y=[b,0],level:a.level++}),k=a.blkIndent,l=a.tight,j=a.tShift[b],m=a.parentType,a.tShift[b]=u-a.bMarks[b],a.blkIndent=i,a.tight=!0,a.parentType="list",a.parser.tokenize(a,b,c,!0),a.tight&&!w||(D=!1),w=a.line-b>1&&a.isEmpty(a.line-1),a.blkIndent=k,a.tShift[b]=j,a.tight=l,a.parentType=m,a.tokens.push({type:"list_item_close",level:--a.level}),h=b=a.line,y[1]=h,u=a.bMarks[b],h>=c)||a.isEmpty(h)||a.tShift[h]<a.blkIndent);){for(C=!1,A=0,B=z.length;B>A;A++)if(z[A](a,h,c,!0)){C=!0;break}if(C)break;if(t){if(o=e(a,h),0>o)break}else if(o=d(a,h),0>o)break;if(s!==a.src.charCodeAt(o-1))break}return a.tokens.push({type:t?"ordered_list_close":"bullet_list_close",level:--a.level}),x[1]=h,a.line=h,D&&f(a,v),!0},c.exports}),a.registerDynamic("ff",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b,c,d){var e,f,g,h,i,j=a.bMarks[b]+a.tShift[b],k=a.eMarks[b];if(j+4>k)return!1;if(91!==a.src.charCodeAt(j))return!1;if(94!==a.src.charCodeAt(j+1))return!1;if(a.level>=a.options.maxNesting)return!1;for(h=j+2;k>h;h++){if(32===a.src.charCodeAt(h))return!1;if(93===a.src.charCodeAt(h))break}return h===j+2?!1:h+1>=k||58!==a.src.charCodeAt(++h)?!1:d?!0:(h++,a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.refs||(a.env.footnotes.refs={}),i=a.src.slice(j+2,h-2),a.env.footnotes.refs[":"+i]=-1,a.tokens.push({type:"footnote_reference_open",label:i,level:a.level++}),e=a.bMarks[b],f=a.tShift[b],g=a.parentType,a.tShift[b]=a.skipSpaces(h)-h,a.bMarks[b]=h,a.blkIndent+=4,a.parentType="footnote",a.tShift[b]<a.blkIndent&&(a.tShift[b]+=a.blkIndent,a.bMarks[b]-=a.blkIndent),a.parser.tokenize(a,b,c,!0),a.parentType=g,a.blkIndent-=4,a.tShift[b]=f,a.bMarks[b]=e,a.tokens.push({type:"footnote_reference_close",level:--a.level}),!0)},c.exports}),a.registerDynamic("100",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b,c,d){var e,f,g,h=a.bMarks[b]+a.tShift[b],i=a.eMarks[b];if(h>=i)return!1;if(e=a.src.charCodeAt(h),35!==e||h>=i)return!1;for(f=1,e=a.src.charCodeAt(++h);35===e&&i>h&&6>=f;)f++,e=a.src.charCodeAt(++h);return f>6||i>h&&32!==e?!1:d?!0:(i=a.skipCharsBack(i,32,h),g=a.skipCharsBack(i,35,h),g>h&&32===a.src.charCodeAt(g-1)&&(i=g),a.line=b+1,a.tokens.push({type:"heading_open",hLevel:f,lines:[b,a.line],level:a.level}),i>h&&a.tokens.push({type:"inline",content:a.src.slice(h,i).trim(),level:a.level+1,lines:[b,a.line],children:[]}),a.tokens.push({type:"heading_close",hLevel:f,level:a.level}),!0)},c.exports}),a.registerDynamic("101",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b,c){var d,e,f,g=b+1;return g>=c?!1:a.tShift[g]<a.blkIndent?!1:a.tShift[g]-a.blkIndent>3?!1:(e=a.bMarks[g]+a.tShift[g],f=a.eMarks[g],e>=f?!1:(d=a.src.charCodeAt(e),45!==d&&61!==d?!1:(e=a.skipChars(e,d),e=a.skipSpaces(e),f>e?!1:(e=a.bMarks[b]+a.tShift[b],a.line=g+1,a.tokens.push({type:"heading_open",hLevel:61===d?1:2,lines:[b,a.line],level:a.level}),a.tokens.push({type:"inline",content:a.src.slice(e,a.eMarks[b]).trim(),level:a.level+1,lines:[b,a.line-1],children:[]}),a.tokens.push({type:"heading_close",hLevel:61===d?1:2,level:a.level}),!0))))},c.exports}),a.registerDynamic("102",[],!0,function(a,b,c){"use strict";var d={};return["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(a){d[a]=!0}),c.exports=d,c.exports}),a.registerDynamic("103",["102","45"],!0,function(a,b,c){return function(b){"use strict";function d(a){var b=32|a;return b>=97&&122>=b}var e=a("102"),f=/^<([a-zA-Z]{1,15})[\s\/>]/,g=/^<\/([a-zA-Z]{1,15})[\s>]/;c.exports=function(a,b,c,h){var i,j,k,l=a.bMarks[b],m=a.eMarks[b],n=a.tShift[b];if(l+=n,!a.options.html)return!1;if(n>3||l+2>=m)return!1;if(60!==a.src.charCodeAt(l))return!1;if(i=a.src.charCodeAt(l+1),33===i||63===i){if(h)r
DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:"",emsp13:"",emsp14:"",ENG:"Ŋ",eng:"ŋ",ensp:"",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"",escr:"",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"",ExponentialE:"",exponentiale:"",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",Fscr:"",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:"",half:"½",hamilt:"",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"",hfr:"𝔥",HilbertSpace:"",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"",hyphen:"",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"",Imacr:"
return b=void 0==b?[]:b,c.concat(b)}function c(a){var c=b(a.inputs,n),f=b(a.directives,i),g=b(a.pipes,[m,l,j,k]);return void 0===a.onPushOnly&&(a.onPushOnly=!0),function(b){var h=d({selector:a.selector,inputs:c,outputs:a.outputs,providers:a.providers,changeDetection:a.onPushOnly?e.OnPush:e.Default,animations:a.animations,templateUrl:a.templateUrl,template:a.template,styles:a.styles,directives:f,pipes:g});return h(b)||b}}var d,e,f,g,h,i,j,k,l,m,n,o;return{setters:[function(a){d=a.Component,e=a.ChangeDetectionStrategy},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a.SpecManager},function(a){i=a.CORE_DIRECTIVES,j=a.JsonPipe,k=a.AsyncPipe},function(a){l=a.MarkedPipe,m=a.JsonPointerEscapePipe}],execute:function(){"use strict";a("RedocComponent",c),a("SpecManager",h),n=["pointer"],o=function(){function a(b){g(this,a),this.specMgr=b,this.componentSchema=null,this.dereferencedCache={}}return f(a,[{key:"ngOnInit",value:function(){this.componentSchema=this.specMgr.byPointer(this.pointer||""),this.prepareModel(),this.init()}},{key:"ngOnDestroy",value:function(){this.destroy()}},{key:"prepareModel",value:function(){}},{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),a}(),a("BaseComponent",o)}}}),a.register("124",["9","73","74","75","76","77","78","79","7a","c7","9d"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;return{setters:[function(a){b=a.ElementRef,c=a.ChangeDetectorRef,d=a.trigger,e=a.state,f=a.animate,g=a.transition,h=a.style},function(a){i=a.RedocComponent,j=a.BaseComponent,k=a.SpecManager},function(a){l=a.ScrollService,m=a.Hash,n=a.MenuService,o=a.OptionsService},function(a){p=a["default"]},function(a){q=a["default"]},function(a){r=a["default"]},function(a){s=a["default"]},function(a){t=a["default"]},function(a){u=a["default"]},function(a){v=a.BrowserDomAdapter},function(a){w=a.global}],execute:function(){"use strict";x=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=t(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&u(b,c,g),g},y=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},z=function(a){function b(a,c,d,e,f,g,h,i){var j=this;s(this,b),p(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a),this.dom=d,this.scrollService=e,this.menuService=f,this.hash=g,this.detectorRef=i,this.$element=c.nativeElement,this.activeCatCaption="",this.activeItemCaption="",this.options=h.options,this.menuService.changed.subscribe(function(a){return j.changed(a)})}return q(b,a),r(b,[{key:"changed",value:function(a){var b=a.cat,c=a.item;this.activeCatCaption=b.name||"",this.activeItemCaption=c&&c.summary||"",this.detectorRef.detectChanges()}},{key:"activateAndScroll",value:function(a,b){this.mobileMode()&&this.toggleMobileNav(),this.menuService.activate(a,b),this.menuService.scrollToActive()}},{key:"init",value:function(){var a=this;this.$mobileNav=this.dom.querySelector(this.$element,".mobile-nav"),this.$resourcesNav=this.dom.querySelector(this.$element,"#resources-nav"),this.scrollService.scrollYOffset=function(){var b=a.$mobileNav.clientHeight;return a.options.scrollYOffset()+b}}},{key:"prepareModel",value:function(){this.data={},this.data.menu=this.menuService.categories}},{key:"mobileMode",value:function(){return this.$mobileNav.clientHeight>0}},{key:"toggleMobileNav",value:function(){var a=this.dom,b=this.options.$scrollParent===w?a.defaultDoc().body:this.$scrollParent.$scrollParent;if(a.hasStyle(this.$resourcesNav,"height"))a.removeStyle(this.$resourcesNav,"height"),a.removeStyle(b,"overflow-y");else{var c=this.options.$scrollParent.innerHeight||this.options.$scrollParent.clientHeight,d=c-this.$mobileNav.getBoundingClientRect().bottom;a.setStyle(b,"overflow-y","hidden"),a.setStyle(this.$resourcesNav,"height",d+"px")}}},{key:"destroy",value:function(){this.scrollService.unbind(),this.hash.unbind()}}]),b}(j),a("SideMenu",z),a("SideMenu",z
}}]),a}(),a("StickySidebar",l),j([d(),k("design:type",Object)],l.prototype,"scrollParent",void 0),j([d(),k("design:type",Object)],l.prototype,"scrollYOffset",void 0),a("StickySidebar",l=j([b({selector:"[sticky-sidebar]"}),k("design:paramtypes",[c,i])],l))}}}),a.register("129",["9","77","78","79","7a","6d"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;return{setters:[function(a){b=a.Component,c=a.EventEmitter,d=a.Input,e=a.Output,f=a.ChangeDetectorRef,g=a.ChangeDetectionStrategy},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.CORE_DIRECTIVES}],execute:function(){"use strict";m=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=j(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&k(b,c,g),g},n=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},o=function(){function a(b){i(this,a),this.changeDetector=b,this.change=new c,this.tabs=[]}return h(a,[{key:"selectTab",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];a.active||(this.tabs.forEach(function(a){a.active=!1}),a.active=!0,b&&this.change.next(a.tabTitle))}},{key:"selectyByTitle",value:function(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=void 0,d=void 0;this.tabs.forEach(function(b){b.active&&(c=b),b.active=!1,b.tabTitle===a&&(d=b)}),d?d.active=!0:c.active=!0,b&&this.change.next(a),this.changeDetector.markForCheck()}},{key:"addTab",value:function(a){0===this.tabs.length&&(a.active=!0),this.tabs.push(a)}},{key:"ngOnInit",value:function(){var a=this;this.selected&&this.selected.subscribe(function(b){return a.selectyByTitle(b)})}}]),a}(),a("Tabs",o),m([d(),n("design:type",Object)],o.prototype,"selected",void 0),m([e(),n("design:type",Object)],o.prototype,"change",void 0),a("Tabs",o=m([b({selector:"tabs",template:'\n <ul>\n <li *ngFor="let tab of tabs" [ngClass]="{active: tab.active}" (click)="selectTab(tab)"\n class="tab-{{tab.tabStatus}}">{{tab.tabTitle}}</li>\n </ul>\n <ng-content></ng-content>\n ',directives:[l],styles:['\n ul {\n display: block;\n margin: 0;\n padding: 0; }\n\n li {\n list-style: none;\n display: inline-block;\n cursor: pointer; }\n\n .tab-success:before, .tab-error:before, .tab-redirect:before, .tab-info:before {\n content: "";\n display: inline-block;\n position: relative;\n top: -2px;\n height: 4px;\n width: 4px;\n border-radius: 50%;\n margin-right: 0.5em; }\n\n .tab-success:before {\n box-shadow: 0 0 3px 0 #00aa13;\n background-color: #00aa13; }\n\n .tab-error:before {\n box-shadow: 0 0 3px 0 #e53935;\n background-color: #e53935; }\n\n .tab-redirect:before {\n box-shadow: 0 0 3px 0 #f1c400;\n background-color: #f1c400; }\n\n .tab-info:before {\n box-shadow: 0 0 3px 0 #0033a0;\n background-color: #0033a0; }\n '],changeDetection:g.OnPush}),n("design:paramtypes",[f])],o)),p=function q(a){i(this,q),this.active=!1,a.addTab(this)},a("Tab",p),m([d(),n("design:type",Boolean)],p.prototype,"active",void 0),m([d(),n("design:type",String)],p.prototype,"tabTitle",void 0),m([d(),n("design:type",String)],p.prototype,"tabStatus",void 0),a("Tab",p=m([b({selector:"tab",template:'\n <div class="tab-wrap" [ngClass]="{\'active\': active}">\n <ng-content></ng-content>\n </div>\n ',directives:[l],styles:["\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }"]}),n("design:paramtypes",[o])],p))}}}),a.registerDynamic("12a",["9","12b","12c","12d"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("12b"),f=a("12c"),g=a("12d"),h=functio
return b.FormBuilder=h,c.exports}),a.registerDynamic("148",["149","14a","14b","14c","14d","14e","14f","150","151","152","153","154","155","156","157"],!0,function(a,b,c){"use strict";var d=a("149"),e=a("14a"),f=a("14b"),g=a("14c"),h=a("14d"),i=a("14e"),j=a("14f"),k=a("150"),l=a("151"),m=a("152"),n=a("153"),o=a("154"),p=a("155"),q=a("156"),r=a("149");b.CheckboxControlValueAccessor=r.CheckboxControlValueAccessor;var s=a("14a");b.DefaultValueAccessor=s.DefaultValueAccessor;var t=a("157");b.NgControl=t.NgControl;var u=a("14b");b.NgControlGroup=u.NgControlGroup;var v=a("14c");b.NgControlName=v.NgControlName;var w=a("14d");b.NgControlStatus=w.NgControlStatus;var x=a("14e");b.NgForm=x.NgForm;var y=a("14f");b.NgFormControl=y.NgFormControl;var z=a("150");b.NgFormModel=z.NgFormModel;var A=a("151");b.NgModel=A.NgModel;var B=a("152");b.NumberValueAccessor=B.NumberValueAccessor;var C=a("153");b.RadioButtonState=C.RadioButtonState,b.RadioControlValueAccessor=C.RadioControlValueAccessor;var D=a("154");b.NgSelectOption=D.NgSelectOption,b.SelectControlValueAccessor=D.SelectControlValueAccessor;var E=a("155");b.NgSelectMultipleOption=E.NgSelectMultipleOption,b.SelectMultipleControlValueAccessor=E.SelectMultipleControlValueAccessor;var F=a("156");return b.MaxLengthValidator=F.MaxLengthValidator,b.MinLengthValidator=F.MinLengthValidator,b.PatternValidator=F.PatternValidator,b.RequiredValidator=F.RequiredValidator,b.FORM_DIRECTIVES=[g.NgControlName,f.NgControlGroup,j.NgFormControl,l.NgModel,k.NgFormModel,i.NgForm,o.NgSelectOption,p.NgSelectMultipleOption,e.DefaultValueAccessor,m.NumberValueAccessor,d.CheckboxControlValueAccessor,o.SelectControlValueAccessor,p.SelectMultipleControlValueAccessor,n.RadioControlValueAccessor,h.NgControlStatus,q.RequiredValidator,q.MinLengthValidator,q.MaxLengthValidator,q.PatternValidator],c.exports}),a.registerDynamic("14b",["9","158","159","15a"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("158"),g=a("159"),h=a("15a");b.controlGroupProvider={provide:g.ControlContainer,useExisting:e.forwardRef(function(){return i})};var i=function(a){function c(b,c,d){a.call(this),this._validators=c,this._asyncValidators=d,this._parent=b}return d(c,a),c.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},c.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(c.prototype,"control",{get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return h.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return h.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return h.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControlGroup]",providers:[b.controlGroupProvider],inputs:["name: ngControlGroup"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:g.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[f.NG_VALIDATORS]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[f.NG_ASYNC_VALIDATORS]}]}],c}(g.ControlContainer);return b.NgControlGroup=i,c.exports}),a.registerDynamic("14c",["9","12b","158","159","15b","157","15a"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("12b"),g=a("158"),h=a("159"),i=a("15b"),j=a("157"
}),c.prototype.viewToModelUpdate=function(a){this.viewModel=a,f.ObservableWrapper.callEmit(this.update,a)},c.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([ngControl]):not([ngFormControl])",providers:[b.formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_VALIDATORS]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[h.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[i.NG_VALUE_ACCESSOR]}]}],c}(j.NgControl);return b.NgModel=l,c.exports}),a.registerDynamic("15b",["9"],!0,function(a,b,c){"use strict";var d=a("9");return b.NG_VALUE_ACCESSOR=new d.OpaqueToken("NgValueAccessor"),c.exports}),a.registerDynamic("154",["9","138","12c","15b"],!0,function(a,b,c){"use strict";function d(a,b){return h.isBlank(a)?""+b:(h.isPrimitive(b)||(b="Object"),h.StringWrapper.slice(a+": "+b,0,50))}function e(a){return a.split(":")[0]}var f=a("9"),g=a("138"),h=a("12c"),i=a("15b");b.SELECT_VALUE_ACCESSOR={provide:i.NG_VALUE_ACCESSOR,useExisting:f.forwardRef(function(){return j}),multi:!0};var j=function(){function a(a,b){this._renderer=a,this._elementRef=b,this._optionMap=new Map,this._idCounter=0,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this.value=a;var b=d(this._getOptionId(a),a);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",b)},a.prototype.registerOnChange=function(a){var b=this;this.onChange=function(c){b.value=c,a(b._getOptionValue(c))}},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.prototype._registerOption=function(){return(this._idCounter++).toString()},a.prototype._getOptionId=function(a){for(var b=0,c=g.MapWrapper.keys(this._optionMap);b<c.length;b++){var d=c[b];if(h.looseIdentical(this._optionMap.get(d),a))return d}return null},a.prototype._getOptionValue=function(a){var b=this._optionMap.get(e(a));return h.isPresent(b)?b:a},a.decorators=[{type:f.Directive,args:[{selector:"select:not([multiple])[ngControl],select:not([multiple])[ngFormControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[b.SELECT_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:f.Renderer},{type:f.ElementRef}],a}();b.SelectControlValueAccessor=j;var k=function(){function a(a,b,c){this._element=a,this._renderer=b,this._select=c,h.isPresent(this._select)&&(this.id=this._select._registerOption())}return Object.defineProperty(a.prototype,"ngValue",{set:function(a){null!=this._select&&(this._select._optionMap.set(this.id,a),this._setElementValue(d(this.id,a)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{set:function(a){this._setElementValue(a),h.isPresent(this._select)&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),a.prototype._setElementValue=function(a){this._renderer.setElementProperty(this._element.nativeElement,"value",a)},a.prototype.ngOnDestroy=function(){h.isPresent(this._select)&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},a.decorators=[{type:f.Directive,args:[{selector:"option"}]}],a.ctorParameters=[{type:f.ElementRef},{type:f.Renderer},{type:j,decorators:[{type:f.Optional},{type:f.Host}]}],a.propDecorators={ngValue:[{type:f.Input,args:["ngValue"]}],value:[{type:f.Input,args:["value"]}]},a}();return b.NgSelectOption=k,c.exports}),a.registerDynamic("156",["9","12c","158"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("12c"),f=a("158"),g=f.Validators.required;b.REQUIRED_VALIDATOR={provide:f.NG_VALIDATORS,useValue:g,multi:!0};var h=function(){function a(){}return a.decorators=[{type:d.Directive,args:[{selector:"[required][ngControl],[required][ngFormControl],[required][ngModel]",providers:[b.REQUIRED_VALIDATOR]}]}],a}();b.RequiredValidator=h,b.MIN_LENGTH_VALIDATOR={provide:f.NG_VALIDATORS,useExisting:d.forward
}function o(a){return a instanceof N.Promise}function p(a){return Array.isArray(a)}function q(a){return a instanceof b.Date&&!isNaN(a.valueOf())}function r(){}function s(a){if("string"==typeof a)return a;if(void 0===a||null===a)return""+a;if(a.name)return a.name;if(a.overriddenName)return a.overriddenName;var b=a.toString(),c=b.indexOf("\n");return-1===c?b:b.substring(0,c)}function t(a){return a}function u(a,b){return a}function v(a,b){return a[b]}function w(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function x(a){return a}function y(a){return g(a)?null:a}function z(a){return g(a)?!1:a}function A(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function B(a){console.log(a)}function C(a){console.warn(a)}function D(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var g=d.shift();e=e.hasOwnProperty(g)&&f(e[g])?e[g]:e[g]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function E(){if(g(Y))if(f(K.Symbol)&&f(Symbol.iterator))Y=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(Y=c)}return Y}function F(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function G(a){return!A(a)}function H(a,b){return a.constructor===b}function I(a){return N.encodeURI(a)}function J(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var K,L=this,M=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};K="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:L:window,b.scheduleMicroTask=d,b.IS_DART=!1;var N=K;b.global=N,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=N.Math,b.Date=N.Date,N.assert=function(a){},b.isPresent=f,b.isBlank=g,b.isBoolean=h,b.isNumber=i,b.isString=j,b.isFunction=k,b.isType=l,b.isStringMap=m;var O=Object.getPrototypeOf({});b.isStrictStringMap=n,b.isPromise=o,b.isArray=p,b.isDate=q,b.noop=r,b.stringify=s,b.serializeEnum=t,b.deserializeEnum=u,b.resolveEnumToken=v;var P=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=P;var Q=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=Q;var R=function(a){function b(b){a.call(this),this.message=b}return M(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=R;var S=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new R("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new R("Invalid integer literal when parsing "+a+
}function x(a){return a}function y(a){return g(a)?null:a}function z(a){return g(a)?!1:a}function A(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function B(a){console.log(a)}function C(a){console.warn(a)}function D(a,b,c){for(var d=b.split("."),e=a;d.length>1;){var g=d.shift();e=e.hasOwnProperty(g)&&f(e[g])?e[g]:e[g]={}}void 0!==e&&null!==e||(e={}),e[d.shift()]=c}function E(){if(g(Y))if(f(K.Symbol)&&f(Symbol.iterator))Y=Symbol.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),b=0;b<a.length;++b){var c=a[b];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(Y=c)}return Y}function F(a,b,c,d){var e=c+"\nreturn "+b+"\n//# sourceURL="+a,f=[],g=[];for(var h in d)f.push(h),g.push(d[h]);return(new(Function.bind.apply(Function,[void 0].concat(f.concat(e))))).apply(void 0,g)}function G(a){return!A(a)}function H(a,b){return a.constructor===b}function I(a){return N.encodeURI(a)}function J(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var K,L=this,M=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};K="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:L:window,b.scheduleMicroTask=d,b.IS_DART=!1;var N=K;b.global=N,b.Type=Function,b.getTypeNameForDebugging=e,b.Math=N.Math,b.Date=N.Date,N.assert=function(a){},b.isPresent=f,b.isBlank=g,b.isBoolean=h,b.isNumber=i,b.isString=j,b.isFunction=k,b.isType=l,b.isStringMap=m;var O=Object.getPrototypeOf({});b.isStrictStringMap=n,b.isPromise=o,b.isArray=p,b.isDate=q,b.noop=r,b.stringify=s,b.serializeEnum=t,b.deserializeEnum=u,b.resolveEnumToken=v;var P=function(){function a(){}return a.fromCharCode=function(a){return String.fromCharCode(a)},a.charCodeAt=function(a,b){return a.charCodeAt(b)},a.split=function(a,b){return a.split(b)},a.equals=function(a,b){return a===b},a.stripLeft=function(a,b){if(a&&a.length){for(var c=0,d=0;d<a.length&&a[d]==b;d++)c++;a=a.substring(c)}return a},a.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,d=a.length-1;d>=0&&a[d]==b;d--)c--;a=a.substring(0,c)}return a},a.replace=function(a,b,c){return a.replace(b,c)},a.replaceAll=function(a,b,c){return a.replace(b,c)},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.replaceAllMapped=function(a,b,c){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return a.splice(-2,2),c(a)})},a.contains=function(a,b){return-1!=a.indexOf(b)},a.compare=function(a,b){return b>a?-1:a>b?1:0},a}();b.StringWrapper=P;var Q=function(){function a(a){void 0===a&&(a=[]),this.parts=a}return a.prototype.add=function(a){this.parts.push(a)},a.prototype.toString=function(){return this.parts.join("")},a}();b.StringJoiner=Q;var R=function(a){function b(b){a.call(this),this.message=b}return M(b,a),b.prototype.toString=function(){return this.message},b}(Error);b.NumberParseError=R;var S=function(){function a(){}return a.toFixed=function(a,b){return a.toFixed(b)},a.equal=function(a,b){return a===b},a.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw new R("Invalid integer literal when parsing "+a);return b},a.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw new R("Invalid integer literal when parsing "+a+" in base "+b)},a.parseFloat=function(a){return parseFloat(a)},Object.defineProperty(a,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),a.isNumeric=function(a){return!isNaN(a-parseFloat(a))},a.isNaN=function(a){return isNaN(a)},a.isInteger=function(a){return Number.isInteger(a)},a}();b.NumberWrapper=S,b.RegExp=N.RegExp;var T=function(){function a(){}return a.create=function(a,b){return void 0===b&&(b=""),b=b.replace(/g/g,""),new N.RegExp(a,b+"g")},a.firstMatch=function(a,b){return a.lastIndex=0,a.exec(b)},a.test=funct
if(d.isString(a)){var b=a.split(e),c=b[0],f=b[1];return d.global.System["import"](c+g).then(function(a){return a[f+h]})}return Promise.resolve(null)},a.prototype.clearCache=function(){},a}();return b.SystemJsCmpFactoryResolver=i,c.exports}),a.registerDynamic("19b",["196","19c","19d","19e","19f","1a0","1a1","197","19a","1a2","1a3","1a4"],!0,function(a,b,c){"use strict";var d=a("196");b.Compiler=d.Compiler;var e=a("19c");b.ComponentFactory=e.ComponentFactory,b.ComponentRef=e.ComponentRef;var f=a("19d");b.ComponentFactoryResolver=f.ComponentFactoryResolver,b.NoComponentFactoryError=f.NoComponentFactoryError;var g=a("19e");b.ComponentResolver=g.ComponentResolver;var h=a("19f");b.DynamicComponentLoader=h.DynamicComponentLoader;var i=a("1a0");b.ElementRef=i.ElementRef;var j=a("1a1");b.ExpressionChangedAfterItHasBeenCheckedException=j.ExpressionChangedAfterItHasBeenCheckedException;var k=a("197");b.QueryList=k.QueryList;var l=a("19a");b.SystemJsCmpFactoryResolver=l.SystemJsCmpFactoryResolver,b.SystemJsComponentResolver=l.SystemJsComponentResolver;var m=a("1a2");b.TemplateRef=m.TemplateRef;var n=a("1a3");b.ViewContainerRef=n.ViewContainerRef;var o=a("1a4");return b.EmbeddedViewRef=o.EmbeddedViewRef,b.ViewRef=o.ViewRef,c.exports}),a.registerDynamic("1a5",["1a6"],!0,function(a,b,c){"use strict";var d=a("1a6");return b.ChangeDetectionStrategy=d.ChangeDetectionStrategy,b.ChangeDetectorRef=d.ChangeDetectorRef,b.CollectionChangeRecord=d.CollectionChangeRecord,b.DefaultIterableDiffer=d.DefaultIterableDiffer,b.IterableDiffers=d.IterableDiffers,b.KeyValueChangeRecord=d.KeyValueChangeRecord,b.KeyValueDiffers=d.KeyValueDiffers,b.SimpleChange=d.SimpleChange,b.WrappedValue=d.WrappedValue,c.exports}),a.registerDynamic("1a7",["1a8"],!0,function(a,b,c){"use strict";var d=a("1a8");return b.PLATFORM_DIRECTIVES=new d.OpaqueToken("Platform Directives"),b.PLATFORM_PIPES=new d.OpaqueToken("Platform Pipes"),c.exports}),a.registerDynamic("1a9",["1aa","1ab","1ac","1ad","1ae"],!0,function(a,b,c){"use strict";function d(){return g.reflector}var e=a("1aa"),f=a("1ab"),g=a("1ac"),h=a("1ad"),i=a("1ae");return b.PLATFORM_COMMON_PROVIDERS=[e.PLATFORM_CORE_PROVIDERS,{provide:g.Reflector,useFactory:d,deps:[]},{provide:h.ReflectorReader,useExisting:g.Reflector},i.TestabilityRegistry,f.Console],c.exports}),a.registerDynamic("1ae",["1af","198","199","123","9d","193"],!0,function(a,b,c){"use strict";function d(a){n=a}var e=a("1af"),f=a("198"),g=a("199"),h=a("123"),i=a("9d"),j=a("193"),k=function(){function a(a){this._ngZone=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return a.prototype._watchAngularEvents=function(){var a=this;f.ObservableWrapper.subscribe(this._ngZone.onUnstable,function(b){a._didWork=!0,a._isZoneStable=!1}),this._ngZone.runOutsideAngular(function(){f.ObservableWrapper.subscribe(a._ngZone.onStable,function(b){j.NgZone.assertNotInAngularZone(),i.scheduleMicroTask(function(){a._isZoneStable=!0,a._runCallbacksIfReady()})})})},a.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},a.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new h.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},a.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},a.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()?i.scheduleMicroTask(function(){for(;0!==a._callbacks.length;)a._callbacks.pop()(a._didWork);a._didWork=!1}):this._didWork=!0},a.prototype.whenStable=function(a){this._callbacks.push(a),this._runCallbacksIfReady()},a.prototype.getPendingRequestCount=function(){return this._pendingCount},a.prototype.findBindings=function(a,b,c){return[]},a.prototype.findProviders=function(a,b,c){return[]},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:j.NgZone}],a}();b.Testability=k;var l=function(){function a(){this._applications=new g.Map,n.addToWindow(this)}re
}),Object.defineProperty(b.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){this._hostElement.parentView.destroy()},b.prototype.onDestroy=function(a){this.hostView.onDestroy(a)},b}(h);b.ComponentRef_=i;var j=new Object,k=function(){function a(a,b,c){this.selector=a,this._viewFactory=b,this._componentType=c}return Object.defineProperty(a.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),a.prototype.create=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var d=a.get(g.ViewUtils);f.isBlank(b)&&(b=[]);var e=this._viewFactory(d,a,null),h=e.create(j,b,c);return new i(h,this._componentType)},a}();return b.ComponentFactory=k,c.exports}),a.registerDynamic("19e",["1af","198","123","9d","1ac","19c"],!0,function(a,b,c){"use strict";function d(a){return a instanceof k.ComponentFactory}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("1af"),g=a("198"),h=a("123"),i=a("9d"),j=a("1ac"),k=a("19c"),l=function(){function a(){}return a}();b.ComponentResolver=l;var m=function(a){function b(){a.apply(this,arguments)}return e(b,a),b.prototype.resolveComponent=function(a){if(i.isString(a))return g.PromiseWrapper.reject(new h.BaseException("Cannot resolve component using '"+a+"'."),null);var b=j.reflector.annotations(a),c=b.find(d);if(i.isBlank(c))throw new h.BaseException("No precompiled component "+i.stringify(a)+" found");return g.PromiseWrapper.resolve(c)},b.prototype.clearCache=function(){},b.decorators=[{type:f.Injectable}],b}(l);return b.ReflectorComponentResolver=m,c.exports}),a.registerDynamic("1a2",["9d"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9d"),f=new Object,g=function(){function a(){}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),a}();b.TemplateRef=g;var h=function(a){function b(b,c){a.call(this),this._appElement=b,this._viewFactory=c}return d(b,a),b.prototype.createEmbeddedView=function(a){var b=this._viewFactory(this._appElement.parentView.viewUtils,this._appElement.parentInjector,this._appElement);return e.isBlank(a)&&(a=f),b.create(a,null,null),b.ref},Object.defineProperty(b.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0}),b}(g);return b.TemplateRef_=h,c.exports}),a.registerDynamic("1c0",["1c1"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("1c1"),f=function(a){function b(b,c){a.call(this),this.subject=b,this.observer=c,this.isUnsubscribed=!1}return d(b,a),b.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var a=this.subject,b=a.observers;if(this.subject=null,b&&0!==b.length&&!a.isUnsubscribed){var c=b.indexOf(this.observer);-1!==c&&b.splice(c,1)}}},b}(e.Subscription);return b.SubjectSubscription=f,c.exports}),a.registerDynamic("1c2",[],!0,function(a,b,c){"use strict";function d(a){throw a}return b.throwError=d,c.exports}),a.registerDynamic("1c3",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(){a.call(this,"object unsubscribed"),this.name="Objec
0==this.activeAnimationPlayers.length)this.renderer.detachView(this.flatRootNodes);else{var b=new r.AnimationGroupPlayer(this.activeAnimationPlayers.getAllPlayers());b.onDone(function(){a.renderer.detachView(a.flatRootNodes)})}},Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parent",{get:function(){return h.isPresent(this.declarationAppElement)?this.declarationAppElement.parentView:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"flatRootNodes",{get:function(){return l.flattenNestedViewRenderNodes(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lastRootNode",{get:function(){var a=this.rootNodesOrAppElements.length>0?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null;return d(a)},enumerable:!0,configurable:!0}),a.prototype.dirtyParentQueriesInternal=function(){},a.prototype.detectChanges=function(a){var b=t(this.clazz);this.cdMode!==m.ChangeDetectorStatus.Checked&&this.cdMode!==m.ChangeDetectorStatus.Errored&&(this.cdMode===m.ChangeDetectorStatus.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(a),this.cdMode===m.ChangeDetectorStatus.CheckOnce&&(this.cdMode=m.ChangeDetectorStatus.Checked),this.numberOfChecks++,n.wtfLeave(b))},a.prototype.detectChangesInternal=function(a){this.detectContentChildrenChanges(a),this.detectViewChildrenChanges(a)},a.prototype.detectContentChildrenChanges=function(a){for(var b=0;b<this.contentChildren.length;++b){var c=this.contentChildren[b];c.cdMode!==m.ChangeDetectorStatus.Detached&&c.detectChanges(a)}},a.prototype.detectViewChildrenChanges=function(a){for(var b=0;b<this.viewChildren.length;++b){var c=this.viewChildren[b];c.cdMode!==m.ChangeDetectorStatus.Detached&&c.detectChanges(a)}},a.prototype.addToContentChildren=function(a){a.parentView.contentChildren.push(this),this.viewContainerElement=a,this.dirtyParentQueriesInternal()},a.prototype.removeFromContentChildren=function(a){g.ListWrapper.remove(a.parentView.contentChildren,this),this.dirtyParentQueriesInternal(),this.viewContainerElement=null},a.prototype.markAsCheckOnce=function(){this.cdMode=m.ChangeDetectorStatus.CheckOnce},a.prototype.markPathToRootAsCheckOnce=function(){for(var a=this;h.isPresent(a)&&a.cdMode!==m.ChangeDetectorStatus.Detached;){a.cdMode===m.ChangeDetectorStatus.Checked&&(a.cdMode=m.ChangeDetectorStatus.CheckOnce);var b=a.type===k.ViewType.COMPONENT?a.declarationAppElement:a.viewContainerElement;a=h.isPresent(b)?b.parentView:null}},a.prototype.eventHandler=function(a){return a},a.prototype.throwDestroyedError=function(a){throw new o.ViewDestroyedException(a)},a}();b.AppView=u;var v=function(a){function b(b,c,d,e,f,g,h,i){a.call(this,b,c,d,e,f,g,h),this.staticNodeDebugInfos=i,this._currentDebugContext=null}return e(b,a),b.prototype.create=function(b,c,d){this._resetDebug();try{return a.prototype.create.call(this,b,c,d)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},b.prototype.injectorGet=function(b,c,d){this._resetDebug();try{return a.prototype.injectorGet.call(this,b,c,d)}catch(e){throw this._rethrowWithContext(e,e.stack),e}},b.prototype.detach=function(){this._resetDebug();try{a.prototype.detach.call(this)}catch(b){throw this._rethrowWithContext(b,b.stack),b}},b.prototype.destroyLocal=function(){this._resetDebug();try{a.prototype.destroyLocal.call(this)}catch(b){throw this._rethrowWithContext(b,b.stack),b}},b.prototype.detectChanges=function(b){this._resetDebug();try{a.prototype.detectChanges.call(this,b)}catch(c){throw this._rethrowWithContext(c,c.stack),c}},b.prototype._resetDebug=function(){this._currentDebugContext=null},b.prototype.debug=function(a,b,c){return this._currentDebugContext=new p.DebugContext(this,a,b,c)},b.prototype._rethrowWithContext=function(a,b){if(!(a instanceof o.ViewWrappedException)&&(a instanceof o.ExpressionChangedAfterItHasBeenCheckedException||(this.cdMode=m.ChangeDetectorStatus.Errored),h.isPresent(this._currentDebugContext)))throw new o.ViewWrappe
b.bind=d;var k=function(){function a(a){this.token=a}return a.prototype.toClass=function(a){if(!h.isType(a))throw new g.BaseException('Trying to create a class provider but "'+h.stringify(a)+'" is not a class!');return new i(this.token,{useClass:a})},a.prototype.toValue=function(a){return new i(this.token,{useValue:a})},a.prototype.toAlias=function(a){if(h.isBlank(a))throw new g.BaseException("Can not alias "+h.stringify(this.token)+" to a blank value!");return new i(this.token,{useExisting:a})},a.prototype.toFactory=function(a,b){if(!h.isFunction(a))throw new g.BaseException('Trying to create a factory provider but "'+h.stringify(a)+'" is not a function!');return new i(this.token,{useFactory:a,deps:b})},a}();return b.ProviderBuilder=k,b.provide=e,c.exports}),a.registerDynamic("1e1",["1e0"],!0,function(a,b,c){"use strict";function d(a){return a&&"object"==typeof a&&a.provide}function e(a){return new f.Provider(a.provide,a)}var f=a("1e0");return b.isProviderLiteral=d,b.createProvider=e,c.exports}),a.registerDynamic("1df",["9d","199","1ac","1de","18a","1dd","189","1e0","1e1"],!0,function(a,b,c){"use strict";function d(a){var b,c;if(m.isPresent(a.useClass)){var d=s.resolveForwardRef(a.useClass);b=o.reflector.factory(d),c=j(d)}else m.isPresent(a.useExisting)?(b=function(a){return a},c=[v.fromKey(p.ReflectiveKey.get(a.useExisting))]):m.isPresent(a.useFactory)?(b=a.useFactory,c=i(a.useFactory,a.dependencies)):(b=function(){return a.useValue},c=w);return new y(b,c)}function e(a){return new x(p.ReflectiveKey.get(a.token),[d(a)],a.multi)}function f(a){var b=h(a,[]),c=b.map(e);return n.MapWrapper.values(g(c,new Map))}function g(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(m.isPresent(e)){if(d.multiProvider!==e.multiProvider)throw new r.MixingMultiProvidersWithRegularProvidersError(e,d);if(d.multiProvider)for(var f=0;f<d.resolvedFactories.length;f++)e.resolvedFactories.push(d.resolvedFactories[f]);else b.set(d.key.id,d)}else{var g;g=d.multiProvider?new x(d.key,n.ListWrapper.clone(d.resolvedFactories),d.multiProvider):d,b.set(d.key.id,g)}}return b}function h(a,b){return a.forEach(function(a){if(a instanceof m.Type)b.push(t.provide(a,{useClass:a}));else if(a instanceof t.Provider)b.push(a);else if(u.isProviderLiteral(a))b.push(u.createProvider(a));else{if(!(a instanceof Array))throw a instanceof t.ProviderBuilder?new r.InvalidProviderError(a.token):new r.InvalidProviderError(a);h(a,b)}}),b}function i(a,b){if(m.isBlank(b))return j(a);var c=b.map(function(a){return[a]});return b.map(function(b){return k(a,b,c)})}function j(a){var b=o.reflector.parameters(a);if(m.isBlank(b))return[];if(b.some(m.isBlank))throw new r.NoAnnotationError(a,b);return b.map(function(c){return k(a,c,b)})}function k(a,b,c){var d=[],e=null,f=!1;if(!m.isArray(b))return b instanceof q.InjectMetadata?l(b.token,f,null,null,d):l(b,f,null,null,d);for(var g=null,h=null,i=0;i<b.length;++i){var j=b[i];j instanceof m.Type?e=j:j instanceof q.InjectMetadata?e=j.token:j instanceof q.OptionalMetadata?f=!0:j instanceof q.SelfMetadata?h=j:j instanceof q.HostMetadata?h=j:j instanceof q.SkipSelfMetadata?g=j:j instanceof q.DependencyMetadata&&(m.isPresent(j.token)&&(e=j.token),d.push(j))}if(e=s.resolveForwardRef(e),m.isPresent(e))return l(e,f,g,h,d);throw new r.NoAnnotationError(a,c)}function l(a,b,c,d,e){return new v(p.ReflectiveKey.get(a),b,c,d,e)}var m=a("9d"),n=a("199"),o=a("1ac"),p=a("1de"),q=a("18a"),r=a("1dd"),s=a("189"),t=a("1e0"),u=a("1e1"),v=function(){function a(a,b,c,d,e){this.key=a,this.optional=b,this.lowerBoundVisibility=c,this.upperBoundVisibility=d,this.properties=e}return a.fromKey=function(b){return new a(b,!1,null,null,[])},a}();b.ReflectiveDependency=v;var w=[],x=function(){function a(a,b,c){this.key=a,this.resolvedFactories=b,this.multiProvider=c}return Object.defineProperty(a.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),a}();b.ResolvedReflectiveProvider_=x;var y=function(){function a(a,b){this.factory=a,this.dependencies=b}return a}();return b.ResolvedReflectiveFactory=y,b.r
},b.prototype.setter=function(a){return this._setters.has(a)?this._setters.get(a):this.reflectionCapabilities.setter(a)},b.prototype.method=function(a){return this._methods.has(a)?this._methods.get(a):this.reflectionCapabilities.method(a)},b.prototype._getReflectionInfo=function(a){return h.isPresent(this._usedKeys)&&this._usedKeys.add(a),this._injectableInfo.get(a)},b.prototype._containsReflectionInfo=function(a){return this._injectableInfo.has(a)},b.prototype.importUri=function(a){return this.reflectionCapabilities.importUri(a)},b}(i.ReflectorReader);return b.Reflector=k,c.exports}),a.registerDynamic("1ac",["1ea","1e9"],!0,function(a,b,c){"use strict";var d=a("1ea"),e=a("1e9"),f=a("1e9");return b.ReflectionInfo=f.ReflectionInfo,b.Reflector=f.Reflector,b.reflector=new e.Reflector(new d.ReflectionCapabilities),c.exports}),a.registerDynamic("1ea",["9d"],!0,function(a,b,c){"use strict";function d(a){return a?a.map(function(a){var b=a.type,c=b.annotationCls,d=a.args?a.args:[],e=Object.create(c.prototype);return c.apply(e,d),e}):[]}var e=a("9d"),f=function(){function a(a){this._reflect=e.isPresent(a)?a:e.global.Reflect}return a.prototype.isReflectionEnabled=function(){return!0},a.prototype.factory=function(a){switch(a.length){case 0:return function(){return new a};case 1:return function(b){return new a(b)};case 2:return function(b,c){return new a(b,c)};case 3:return function(b,c,d){return new a(b,c,d)};case 4:return function(b,c,d,e){return new a(b,c,d,e)};case 5:return function(b,c,d,e,f){return new a(b,c,d,e,f)};case 6:return function(b,c,d,e,f,g){return new a(b,c,d,e,f,g)};case 7:return function(b,c,d,e,f,g,h){return new a(b,c,d,e,f,g,h)};case 8:return function(b,c,d,e,f,g,h,i){return new a(b,c,d,e,f,g,h,i)};case 9:return function(b,c,d,e,f,g,h,i,j){return new a(b,c,d,e,f,g,h,i,j)};case 10:return function(b,c,d,e,f,g,h,i,j,k){return new a(b,c,d,e,f,g,h,i,j,k)};case 11:return function(b,c,d,e,f,g,h,i,j,k,l){return new a(b,c,d,e,f,g,h,i,j,k,l)};case 12:return function(b,c,d,e,f,g,h,i,j,k,l,m){return new a(b,c,d,e,f,g,h,i,j,k,l,m)};case 13:return function(b,c,d,e,f,g,h,i,j,k,l,m,n){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n)};case 14:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o)};case 15:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)};case 16:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q)};case 17:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r)};case 18:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s)};case 19:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t)};case 20:return function(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){return new a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u)}}throw new Error("Cannot create a factory for '"+e.stringify(a)+"' because its constructor has more than 20 arguments")},a.prototype._zipTypesAndAnnotations=function(a,b){var c;c="undefined"==typeof a?new Array(b.length):new Array(a.length);for(var d=0;d<c.length;d++)"undefined"==typeof a?c[d]=[]:a[d]!=Object?c[d]=[a[d]]:c[d]=[],e.isPresent(b)&&e.isPresent(b[d])&&(c[d]=c[d].concat(b[d]));return c},a.prototype.parameters=function(a){if(e.isPresent(a.parameters))return a.parameters;if(e.isPresent(a.ctorParameters)){var b=a.ctorParameters,c=b.map(function(a){return a&&a.type}),f=b.map(function(a){return a&&d(a.decorators)});return this._zipTypesAndAnnotations(c,f)}if(e.isPresent(this._reflect)&&e.isPresent(this._reflect.getMetadata)){var g=this._reflect.getMetadata("parameters",a),h=this._reflect.getMetadata("design:paramtypes",a);if(e.isPresent(h)||e.isPresent(g))return this._zipTypesAndAnnotations(h,g)}var i=new Array(a.length);return i.fill(void 0),i},a.prototype.annotations=function(a){if(e.isPresent(a.annotations)){var b=a.annotations;return e.isFunction(b)&&b.annotations&&(b=b.annotations),b}if(e.isPresent(a.decorators))return d(a.decorators);if(e.isPresent(this.
b.isPrimitive=G,b.hasConstructor=H,b.escape=I,b.escapeRegExp=J,c.exports}),a.registerDynamic("1b7",["123","9d"],!0,function(a,b,c){"use strict";var d=a("123"),e=a("9d"),f=function(){function a(){}return Object.defineProperty(a.prototype,"parentPlayer",{get:function(){throw new d.BaseException("NOT IMPLEMENTED: Base Class")},set:function(a){throw new d.BaseException("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),a}();b.AnimationPlayer=f;var g=function(){function a(){var a=this;this._subscriptions=[],this.parentPlayer=null,e.scheduleMicroTask(function(){return a._onFinish()})}return a.prototype._onFinish=function(){this._subscriptions.forEach(function(a){a()}),this._subscriptions=[]},a.prototype.onDone=function(a){this._subscriptions.push(a)},a.prototype.play=function(){},a.prototype.pause=function(){},a.prototype.restart=function(){},a.prototype.finish=function(){this._onFinish()},a.prototype.destroy=function(){},a.prototype.reset=function(){},a.prototype.setPosition=function(a){},a.prototype.getPosition=function(){return 0},a}();return b.NoOpAnimationPlayer=g,c.exports}),a.registerDynamic("1ee",["18d","191","1a8","1aa","1b1","192","194","19b","1be","1ae","1a5","1a7","1a9","1b4","1b2","9d","198","123","1eb","1bc","1b7"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}d(a("18d")),d(a("191")),d(a("1a8"));var e=a("1aa");b.createPlatform=e.createPlatform,b.assertPlatform=e.assertPlatform,b.disposePlatform=e.disposePlatform,b.getPlatform=e.getPlatform,b.coreBootstrap=e.coreBootstrap,b.coreLoadAndBootstrap=e.coreLoadAndBootstrap,b.createNgZone=e.createNgZone,b.PlatformRef=e.PlatformRef,b.ApplicationRef=e.ApplicationRef,b.enableProdMode=e.enableProdMode,b.lockRunMode=e.lockRunMode,b.isDevMode=e.isDevMode;var f=a("1b1");b.APP_ID=f.APP_ID,b.APP_INITIALIZER=f.APP_INITIALIZER,b.PACKAGE_ROOT_URL=f.PACKAGE_ROOT_URL,b.PLATFORM_INITIALIZER=f.PLATFORM_INITIALIZER,d(a("192")),d(a("194")),d(a("19b"));var g=a("1be");b.DebugElement=g.DebugElement,b.DebugNode=g.DebugNode,b.asNativeElements=g.asNativeElements,b.getDebugNode=g.getDebugNode,d(a("1ae")),d(a("1a5")),d(a("1a7")),d(a("1a9")),d(a("1b4"));var h=a("1b2");b.wtfCreateScope=h.wtfCreateScope,b.wtfLeave=h.wtfLeave,b.wtfStartTimeRange=h.wtfStartTimeRange,b.wtfEndTimeRange=h.wtfEndTimeRange;var i=a("9d");b.Type=i.Type;var j=a("198");b.EventEmitter=j.EventEmitter;var k=a("123");b.ExceptionHandler=k.ExceptionHandler,b.WrappedException=k.WrappedException,b.BaseException=k.BaseException,d(a("1eb")),d(a("1bc"));var l=a("1b7");return b.AnimationPlayer=l.AnimationPlayer,c.exports}),a.registerDynamic("9",["1ee"],!0,function(a,b,c){return c.exports=a("1ee"),c.exports}),a.register("88",["80"],function(a){function b(a){if(100>a||a>599)throw new Error("invalid HTTP code");var b="success";return a>=300&&400>a?b="redirect":a>=400?b="error":200>a&&(b="info"),b}function c(a,b){for(var c=d(b),e=-1,f=c.length;++e<f;){var g=c[e];void 0===a[g]&&(a[g]=b[g])}return a}var d;return{setters:[function(a){d=a["default"]}],execute:function(){"use strict";a("statusCodeType",b),a("defaults",c)}}}),a.register("9f",["9","77","78","79","80","85","87","88","183","7a","9a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;return{setters:[function(a){b=a.Injectable},function(a){c=a["default"]},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a.JsonPointer},function(a){i=a.defaults},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a["default"]}],execute:function(){"use strict";m=function(a,b,c,d){var f,g=arguments.length,h=3>g?b:null===d?d=e(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(a,b,c,d);else for(var i=a.length-1;i>=0;i--)(f=a[i])&&(h=(3>g?f(h):g>3?f(b,c,h):f(b,c))||h);return g>3&&h&&k(b,c,h),h},n=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},o=function(){function a(b){d(this,a),this._schema=b,this._dereferencer=new s(b,this)}return c(a,[{key:"normal
b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var f=z(b.pipes,a);return-1===f?this:(b.pipes.splice(f,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},f.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&!this._readableState.endEmitted){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&m(this,d):A(r,this))}return c},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var a=this._readableState;return a.flowing||(G("resume"),a.flowing=!0,s(this,a)),this},f.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(G("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(G("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return y(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){G("wrapped _read",b),c&&(c=!1,a.resume())},d},f._fromList=v}(a("20d").Buffer,a("45")),c.exports}),a.registerDynamic("224",["45"],!0,function(a,b,c){return function(a){"use strict";function b(b){for(var c=new Array(arguments.length-1),d=0;d<c.length;)c[d++]=arguments[d];a.nextTick(function(){b.apply(null,c)})}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?c.exports=b:c.exports=a.nextTick}(a("45")),c.exports}),a.registerDynamic("220",["224"],!0,function(a,b,c){return c.exports=a("224"),c.exports}),a.registerDynamic("225",[],!0,function(a,b,c){function d(a,b){function c(){if(!d){if(e("throwDeprecation"))throw new Error(b);e("traceDeprecation")?console.trace(b):console.warn(b),d=!0}return a.apply(this,arguments)}if(e("noDeprecation"))return a;var d=!1;return c}function e(a){try{if(!f.localStorage)return!1}catch(b){return!1}var c=f.localStorage[a];return null==c?!1:"true"===String(c).toLowerCase()}var f=this;return c.exports=d,c.exports}),a.registerDynamic("226",["225"],!0,function(a,b,c){return c.exports=a("225"),c.exports}),a.registerDynamic("227",[],!0,function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}return c.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newLis
a._subscribers=[]}function M(a){return new ta(this,a).promise}function N(a){var b=this;return new b(Z(a)?function(c,d){for(var e=a.length,f=0;e>f;f++)b.resolve(a[f]).then(c,d)}:function(a,b){b(new TypeError("You must pass an array to race."))})}function O(a){var b=this,c=new b(s);return D(c,a),c}function P(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function R(a){this[ia]=K(),this._result=this._state=void 0,this._subscribers=[],s!==a&&("function"!=typeof a&&P(),this instanceof R?J(this,a):Q())}function S(a,b){this._instanceConstructor=a,this.promise=new a(s),this.promise[ia]||L(this.promise),Z(b)?(this._input=b,this.length=b.length,this._remaining=b.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&C(this.promise,this._result))):D(this.promise,T())}function T(){return new Error("Array Methods must be provided an Array")}function U(){var a;if("undefined"!=typeof e)a=e;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(b){throw new Error("polyfill failed because global object is unavailable in this environment")}var c=a.Promise;c&&"[object Promise]"===Object.prototype.toString.call(c.resolve())&&!c.cast||(a.Promise=sa)}var V;V=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var W,X,Y,Z=V,$=0,_=function(a,b){fa[$]=a,fa[$+1]=b,$+=2,2===$&&(X?X(o):Y())},aa="undefined"!=typeof window?window:void 0,ba=aa||{},ca=ba.MutationObserver||ba.WebKitMutationObserver,da="undefined"==typeof self&&"undefined"!=typeof b&&"[object process]"==={}.toString.call(b),ea="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,fa=new Array(1e3);Y=da?j():ca?l():ea?m():void 0===aa&&"function"==typeof a?p():n();var ga=q,ha=r,ia=Math.random().toString(36).substring(16),ja=void 0,ka=1,la=2,ma=new G,na=new G,oa=0,pa=M,qa=N,ra=O,sa=R;R.all=pa,R.race=qa,R.resolve=ha,R.reject=ra,R._setScheduler=h,R._setAsap=i,R._asap=_,R.prototype={constructor:R,then:ga,"catch":function(a){return this.then(null,a)}};var ta=S;S.prototype._enumerate=function(){for(var a=this.length,b=this._input,c=0;this._state===ja&&a>c;c++)this._eachEntry(b[c],c)},S.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;if(d===ha){var e=v(a);if(e===ga&&a._state!==ja)this._settledAt(a._state,b,a._result);else if("function"!=typeof e)this._remaining--,this._result[b]=a;else if(c===sa){var f=new c(s);z(f,a,e),this._willSettleAt(f,b)}else this._willSettleAt(new c(function(b){b(a)}),b)}else this._willSettleAt(d(a),b)},S.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===ja&&(this._remaining--,a===la?D(d,c):this._result[b]=c),0===this._remaining&&C(d,this._result)},S.prototype._willSettleAt=function(a,b){var c=this;E(a,void 0,function(a){c._settledAt(ka,b,a)},function(a){c._settledAt(la,b,a)})};var ua=U,va={Promise:sa,polyfill:ua};"function"==typeof d&&d.amd?d(function(){return va}):"undefined"!=typeof c&&c.exports?c.exports=va:"undefined"!=typeof this&&(this.ES6Promise=va),ua()}).call(this)}(a("45")),c.exports}),a.registerDynamic("240",["23f"],!0,function(a,b,c){return c.exports=a("23f"),c.exports}),a.registerDynamic("20c",["240"],!0,function(a,b,c){"use strict";return c.exports="function"==typeof Promise?Promise:a("240").Promise,c.exports}),a.registerDynamic("241",["217","216","215","23e","20c","20d"],!0,function(a,b,c){return function(b){"use strict";function d(a,b,c){try{a=j.stripHash(a);var d=b._add(a),g={url:a,extension:j.getExtension(a)};return e(g,c).then(function(a){return d.pathType=a.plugin.name,g.data=a.result,f(g,c)}).then(function(a){return d.value=a.result,a.result})}catch(h){return l.reject(h)}}function e(a,b){return new l(function(c,d){function e(b){d(!b||b instanceof SyntaxError?h.syntax
a.result+=h}}function r(a,b,c,d){var e,f,g,h;for(O.isObject(c)||o(a,"cannot merge mappings; the provided source object is unacceptable"),e=Object.keys(c),g=0,h=e.length;h>g;g+=1)f=e[g],T.call(b,f)||(b[f]=c[f],d[f]=!0)}function s(a,b,c,d,e,f){var g,h;if(e=String(e),null===b&&(b={}),"tag:yaml.org,2002:merge"===d)if(Array.isArray(f))for(g=0,h=f.length;h>g;g+=1)r(a,b,f[g],c);else r(a,b,f,c);else a.json||T.call(c,e)||!T.call(b,e)||o(a,"duplicated mapping key"),b[e]=f,delete c[e];return b}function t(a){var b;b=a.input.charCodeAt(a.position),10===b?a.position++:13===b?(a.position++,10===a.input.charCodeAt(a.position)&&a.position++):o(a,"a line break is expected"),a.line+=1,a.lineStart=a.position}function u(a,b,c){for(var f=0,g=a.input.charCodeAt(a.position);0!==g;){for(;e(g);)g=a.input.charCodeAt(++a.position);if(b&&35===g)do g=a.input.charCodeAt(++a.position);while(10!==g&&13!==g&&0!==g);if(!d(g))break;for(t(a),g=a.input.charCodeAt(a.position),f++,a.lineIndent=0;32===g;)a.lineIndent++,g=a.input.charCodeAt(++a.position)}return-1!==c&&0!==f&&a.lineIndent<c&&p(a,"deficient indentation"),f}function v(a){var b,c=a.position;return b=a.input.charCodeAt(c),(45===b||46===b)&&b===a.input.charCodeAt(c+1)&&b===a.input.charCodeAt(c+2)&&(c+=3,b=a.input.charCodeAt(c),0===b||f(b))}function w(a,b){1===b?a.result+=" ":b>1&&(a.result+=O.repeat("\n",b-1))}function x(a,b,c){var h,i,j,k,l,m,n,o,p,r=a.kind,s=a.result;if(p=a.input.charCodeAt(a.position),f(p)||g(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)return!1;if((63===p||45===p)&&(i=a.input.charCodeAt(a.position+1),f(i)||c&&g(i)))return!1;for(a.kind="scalar",a.result="",j=k=a.position,l=!1;0!==p;){if(58===p){if(i=a.input.charCodeAt(a.position+1),f(i)||c&&g(i))break}else if(35===p){if(h=a.input.charCodeAt(a.position-1),f(h))break}else{if(a.position===a.lineStart&&v(a)||c&&g(p))break;if(d(p)){if(m=a.line,n=a.lineStart,o=a.lineIndent,u(a,!1,-1),a.lineIndent>=b){l=!0,p=a.input.charCodeAt(a.position);continue}a.position=k,a.line=m,a.lineStart=n,a.lineIndent=o;break}}l&&(q(a,j,k,!1),w(a,a.line-m),j=k=a.position,l=!1),e(p)||(k=a.position+1),p=a.input.charCodeAt(++a.position)}return q(a,j,k,!1),a.result?!0:(a.kind=r,a.result=s,!1)}function y(a,b){var c,e,f;if(c=a.input.charCodeAt(a.position),39!==c)return!1;for(a.kind="scalar",a.result="",a.position++,e=f=a.position;0!==(c=a.input.charCodeAt(a.position));)if(39===c){if(q(a,e,a.position,!0),c=a.input.charCodeAt(++a.position),39!==c)return!0;e=f=a.position,a.position++}else d(c)?(q(a,e,f,!0),w(a,u(a,!1,b)),e=f=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a single quoted scalar"):(a.position++,f=a.position);o(a,"unexpected end of the stream within a single quoted scalar")}function z(a,b){var c,e,f,g,j,k;if(k=a.input.charCodeAt(a.position),34!==k)return!1;for(a.kind="scalar",a.result="",a.position++,c=e=a.position;0!==(k=a.input.charCodeAt(a.position));){if(34===k)return q(a,c,a.position,!0),a.position++,!0;if(92===k){if(q(a,c,a.position,!0),k=a.input.charCodeAt(++a.position),d(k))u(a,!1,b);else if(256>k&&ea[k])a.result+=fa[k],a.position++;else if((j=i(k))>0){for(f=j,g=0;f>0;f--)k=a.input.charCodeAt(++a.position),(j=h(k))>=0?g=(g<<4)+j:o(a,"expected hexadecimal character");a.result+=l(g),a.position++}else o(a,"unknown escape sequence");c=e=a.position}else d(k)?(q(a,c,e,!0),w(a,u(a,!1,b)),c=e=a.position):a.position===a.lineStart&&v(a)?o(a,"unexpected end of the document within a double quoted scalar"):(a.position++,e=a.position)}o(a,"unexpected end of the stream within a double quoted scalar")}function A(a,b){var c,d,e,g,h,i,j,k,l,m,n,p=!0,q=a.tag,r=a.anchor,t={};if(n=a.input.charCodeAt(a.position),91===n)g=93,j=!1,d=[];else{if(123!==n)return!1;g=125,j=!0,d={}}for(null!==a.anchor&&(a.anchorMap[a.anchor]=d),n=a.input.charCodeAt(++a.position);0!==n;){if(u(a,!0,b),n=a.input.charCodeAt(a.position),n===g)return a.position++,a.tag=q,a.anchor=r,a.kind=j?"mapping":"sequence",a.result=d,!0;p||o(a,"missed comma between flow collection entries"),l=k=m=null,h=i=!1,63===n&&(e=a.input
return c.exports=new f("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:e}),c.exports}),a.registerDynamic("26d",["25e"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b,c,d,e,f,h=a;for(f=new Array(h.length),b=0,c=h.length;c>b;b+=1){if(d=h[b],"[object Object]"!==g.call(d))return!1;if(e=Object.keys(d),1!==e.length)return!1;f[b]=[e[0],d[e[0]]]}return!0}function e(a){if(null===a)return[];var b,c,d,e,f,g=a;for(f=new Array(g.length),b=0,c=g.length;c>b;b+=1)d=g[b],e=Object.keys(d),f[b]=[e[0],d[e[0]]];return f}var f=a("25e"),g=Object.prototype.toString;return c.exports=new f("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:d,construct:e}),c.exports}),a.registerDynamic("26e",["25e"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!0;var b,c=a;for(b in c)if(g.call(c,b)&&null!==c[b])return!1;return!0}function e(a){return null!==a?a:{}}var f=a("25e"),g=Object.prototype.hasOwnProperty;return c.exports=new f("tag:yaml.org,2002:set",{kind:"mapping",resolve:d,construct:e}),c.exports}),a.registerDynamic("25a",["25d","268","269","26a","26b","26c","26d","26e"],!0,function(a,b,c){"use strict";var d=a("25d");return c.exports=new d({include:[a("268")],implicit:[a("269"),a("26a")],explicit:[a("26b"),a("26c"),a("26d"),a("26e")]}),c.exports}),a.registerDynamic("26f",["25e"],!0,function(a,b,c){"use strict";function d(){return!0}function e(){}function f(){return""}function g(a){return"undefined"==typeof a}var h=a("25e");return c.exports=new h("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("270",["25e"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;if(0===a.length)return!1;var b=a,c=/\/([gim]*)$/.exec(a),d="";if("/"===b[0]){if(c&&(d=c[1]),d.length>3)return!1;if("/"!==b[b.length-d.length-1])return!1}return!0}function e(a){var b=a,c=/\/([gim]*)$/.exec(a),d="";return"/"===b[0]&&(c&&(d=c[1]),b=b.slice(1,b.length-d.length-1)),new RegExp(b,d)}function f(a){var b="/"+a.source+"/";return a.global&&(b+="g"),a.multiline&&(b+="m"),a.ignoreCase&&(b+="i"),b}function g(a){return"[object RegExp]"===Object.prototype.toString.call(a)}var h=a("25e");return c.exports=new h("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:d,construct:e,predicate:g,represent:f}),c.exports}),a.registerDynamic("25e",["259"],!0,function(a,b,c){"use strict";function d(a){var b={};return null!==a&&Object.keys(a).forEach(function(c){a[c].forEach(function(a){b[String(a)]=c})}),b}function e(a,b){if(b=b||{},Object.keys(b).forEach(function(b){if(-1===g.indexOf(b))throw new f('Unknown option "'+b+'" is met in definition of "'+a+'" YAML type.')}),this.tag=a,this.kind=b.kind||null,this.resolve=b.resolve||function(){return!0},this.construct=b.construct||function(a){return a},this.instanceOf=b.instanceOf||null,this.predicate=b.predicate||null,this.represent=b.represent||null,this.defaultStyle=b.defaultStyle||null,this.styleAliases=d(b.styleAliases||null),-1===h.indexOf(this.kind))throw new f('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}var f=a("259"),g=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],h=["scalar","sequence","mapping"];return c.exports=e,c.exports}),a.registerDynamic("271",["25e"],!0,function(a,b,c){"use strict";function d(a){if(null===a)return!1;try{var b="("+a+")",c=h.parse(b,{range:!0});return"Program"===c.type&&1===c.body.length&&"ExpressionStatement"===c.body[0].type&&"FunctionExpression"===c.body[0].expression.type}catch(d){return!1}}function e(a){var b,c="("+a+")",d=h.parse(c,{range:!0}),e=[];if("Program"!==d.type||1!==d.body.length||"ExpressionStatement"!==d.body[0].type||"FunctionExpression"!==d.body[0].expression.type)throw new Error("Failed to resolve function");return d.body[0].expression.params.forEach(function(a){e.push(a.name)}),b=d.body[0].expression.body.range,new Function(e,c.slice(b[0]+1,b[1]-1))}function f(a){return a.toString()}function g(a){return"[object Function]"===Object.prototype.toString.call(a)}var h;try{var i=a;h=i("esprima")}ca
for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.leng
a._displayTypeHint="This field may contain data of any type",a.isTrivial=!0}},simpleType:{check:function(a){return"object"===a.type?!(a.properties&&d(a.properties).length||"object"==typeof a.additionalProperties):"array"!==a.type&&a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){a.isTrivial=!0,a._pointer&&(a._pointer=void 0,a._displayType=b.title?b.title+" ("+b.type+")":b.type)}()}},integer:{check:function(a){return"integer"===a.type||"number"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c="";b.minimum&&b.maximum?(c+=b.exclusiveMinimum?"( ":"[ ",c+=b.minimum,c+=" .. ",c+=b.maximum,c+=b.exclusiveMaximum?" )":" ]"):b.maximum?(c+=b.exclusiveMaximum?"< ":"<= ",c+=b.maximum):b.minimum&&(c+=b.exclusiveMinimum?"> ":">= ",c+=b.minimum),c&&(a._range=c)}()}},string:{check:function(a){return"string"===a.type},inject:function(a){var b=arguments.length<=1||void 0===arguments[1]?a:arguments[1];return function(){var c;b.minLength&&b.maxLength?c="[ "+b.minLength+" .. "+b.maxLength+" ]":b.maxLength?c="<= "+b.maxLength:b.minimum&&(c=">= "+b.minLength),c&&(a._range=c+" characters")}()}},file:{check:function(a){return"file"===a.type},inject:function(a,b,c,d){return void 0===b&&(b=a),function(){a.isFile=!0;var c=void 0;c="formData"===b["in"]?g.dirName(d,1):g.dirName(d,3);var f=e.instance().byPointer(c),h=e.instance().schema;a._produces=f&&f.produces||h.produces,a._consumes=f&&f.consumes||h.consumes}()}}},k=function(){function a(){c(this,a)}return b(a,null,[{key:"preprocess",value:function(b,c,d){return b["x-redoc-schema-precompiled"]?b:(a.runInjectors(b,b,c,d),b["x-redoc-schema-precompiled"]=!0,b)}},{key:"runInjectors",value:function(a,b,c,e){var f=!0,g=!1,i=void 0;try{for(var k,l=h(d(j));!(f=(k=l.next()).done);f=!0){var m=k.value,n=j[m];n.check(b)&&n.inject(a,b,c,e)}}catch(o){g=!0,i=o}finally{try{!f&&l["return"]&&l["return"]()}finally{if(g)throw i}}}},{key:"preprocessProperties",value:function(b,c,e){var h={};b.required&&b.required.forEach(function(a){return h[a]=!0});var i=-1,j=b.properties&&d(b.properties).map(function(d,j){var k=f({},b.properties[d]),l=k._pointer||g.join(c,["properties",d]);return k=a.preprocess(k,l),k._name=d,k._pointer===e.childFor&&(k._pointer=null),k._required=!!h[d],k.isDiscriminator=b.discriminator===d,k.isDiscriminator&&(i=j),k});if(j=j||[],b.additionalProperties&&"object"==typeof b.additionalProperties){var k=a.preprocessAdditionalProperties(b,c);k._additional=!0,j.push(k)}if(i>-1){var l=j.splice(i,1);j.push(l[0])}e.skipReadOnly&&(j=j.filter(function(a){return!a.readOnly})),b._properties=j}},{key:"preprocessAdditionalProperties",value:function(b,c){var d=b.additionalProperties,e=d._pointer||g.join(c,["additionalProperties"]),f=a.preprocess(d,e);return f._name="<Additional Properties> *",f}},{key:"unwrapArray",value:function(b,c){var d=b;if(b&&"array"===b.type){var e=b.items._pointer||g.join(c,["items"]);d=b.items,d._isArray=!0,d._pointer=e,d=a.unwrapArray(d,e)}return d}},{key:"methodSummary",value:function(a){return a.summary||a.operationId||a.description.substring(0,50)}},{key:"buildMenuTree",value:function(b){var c={},e=b.tags||[],f=!0,j=!1,k=void 0;try{for(var l,m=h(e);!(f=(l=m.next()).done);f=!0){var n=l.value;c[n.name]={description:n.description,name:n.name,"x-traitTag":n["x-traitTag"],methods:[]}}}catch(o){j=!0,k=o}finally{try{!f&&m["return"]&&m["return"]()}finally{if(j)throw k}}var p=b.paths,q=!0,r=!1,s=void 0;try{for(var t,u=h(d(p));!(q=(t=u.next()).done);q=!0){var v=t.value,w=d(p[v]).filter(function(a){return i.has(a)}),x=!0,y=!1,z=void 0;try{for(var A,B=h(w);!(x=(A=B.next()).done);x=!0){var C=A.value,D=p[v][C],E=D.tags;E&&E.length||(E=[""]);var F=g.compile(["paths",v,C]),G=a.methodSummary(D),H=!0,I=!1,J=void 0;try{for(var K,L=h(E);!(H=(K=L.next()).done);H=!0){var n=K.value,M=c[n];c[n]||(M={name:n,empty:""===n},c[n]=M),M["x-traitTag"]||(M.methods||(M.methods=[]),M.methods.push({pointer:F,summary:G,operationId:D.operationId,tag:n}))}}catch(o){I=!0,J=o}finally{try{!H&&L["return
})(function(a){"function"==typeof define&&define.amd?define([],a):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=a():a()});